RTEMS 4.11
Annotated Report
Sun Dec 23 00:49:10 2012

ffc0e180 <IMFS_chown>: int IMFS_chown( const rtems_filesystem_location_info_t *loc, uid_t owner, gid_t group ) {
ffc0e180:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0e184:	7c 08 02 a6 	mflr    r0                                     
ffc0e188:	90 01 00 2c 	stw     r0,44(r1)                              
ffc0e18c:	93 e1 00 24 	stw     r31,36(r1)                             
  IMFS_jnode_t  *jnode;                                               
#if defined(RTEMS_POSIX_API)                                          
  uid_t          st_uid;                                              
#endif                                                                
                                                                      
  jnode = (IMFS_jnode_t *) loc->node_access;                          
ffc0e190:	83 e3 00 08 	lwz     r31,8(r3)                              
int IMFS_chown(                                                       
  const rtems_filesystem_location_info_t *loc,                        
  uid_t owner,                                                        
  gid_t group                                                         
)                                                                     
{                                                                     
ffc0e194:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc0e198:	7c 9d 23 78 	mr      r29,r4                                 
ffc0e19c:	93 c1 00 20 	stw     r30,32(r1)                             
ffc0e1a0:	7c be 2b 78 	mr      r30,r5                                 
  /*                                                                  
   *  Verify I am the owner of the node or the super user.            
   */                                                                 
                                                                      
#if defined(RTEMS_POSIX_API)                                          
  st_uid = geteuid();                                                 
ffc0e1a4:	48 00 0b f5 	bl      ffc0ed98 <geteuid>                     
                                                                      
  if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )               
ffc0e1a8:	a1 3f 00 3c 	lhz     r9,60(r31)                             
ffc0e1ac:	7f 89 18 00 	cmpw    cr7,r9,r3                              
ffc0e1b0:	41 9e 00 0c 	beq-    cr7,ffc0e1bc <IMFS_chown+0x3c>         
ffc0e1b4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e1b8:	40 9e 00 40 	bne-    cr7,ffc0e1f8 <IMFS_chown+0x78>         <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EPERM );                    
#endif                                                                
                                                                      
  jnode->st_uid = owner;                                              
ffc0e1bc:	b3 bf 00 3c 	sth     r29,60(r31)                            
  jnode->st_gid = group;                                              
                                                                      
  IMFS_update_ctime( jnode );                                         
ffc0e1c0:	38 61 00 08 	addi    r3,r1,8                                
ffc0e1c4:	38 80 00 00 	li      r4,0                                   
  if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )               
    rtems_set_errno_and_return_minus_one( EPERM );                    
#endif                                                                
                                                                      
  jnode->st_uid = owner;                                              
  jnode->st_gid = group;                                              
ffc0e1c8:	b3 df 00 3e 	sth     r30,62(r31)                            
                                                                      
  IMFS_update_ctime( jnode );                                         
ffc0e1cc:	4b ff 6a 89 	bl      ffc04c54 <gettimeofday>                
ffc0e1d0:	81 21 00 08 	lwz     r9,8(r1)                               
                                                                      
  return 0;                                                           
ffc0e1d4:	38 60 00 00 	li      r3,0                                   
#endif                                                                
                                                                      
  jnode->st_uid = owner;                                              
  jnode->st_gid = group;                                              
                                                                      
  IMFS_update_ctime( jnode );                                         
ffc0e1d8:	91 3f 00 48 	stw     r9,72(r31)                             
                                                                      
  return 0;                                                           
}                                                                     
ffc0e1dc:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc0e1e0:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0e1e4:	7c 08 03 a6 	mtlr    r0                                     
ffc0e1e8:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0e1ec:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0e1f0:	38 21 00 28 	addi    r1,r1,40                               
ffc0e1f4:	4e 80 00 20 	blr                                            
                                                                      
#if defined(RTEMS_POSIX_API)                                          
  st_uid = geteuid();                                                 
                                                                      
  if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )               
    rtems_set_errno_and_return_minus_one( EPERM );                    
ffc0e1f8:	48 00 4e 81 	bl      ffc13078 <__errno>                     
ffc0e1fc:	39 20 00 01 	li      r9,1                                   
ffc0e200:	91 23 00 00 	stw     r9,0(r3)                               
ffc0e204:	38 60 ff ff 	li      r3,-1                                  
ffc0e208:	4b ff ff d4 	b       ffc0e1dc <IMFS_chown+0x5c>             
                                                                      

ffc06e90 <IMFS_dump_directory>: */ static void IMFS_dump_directory( IMFS_jnode_t *the_directory, int level ) {
ffc06e90:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc06e94:	7c 08 02 a6 	mflr    r0                                     
ffc06e98:	7d 80 00 26 	mfcr    r12                                    
ffc06e9c:	90 01 00 44 	stw     r0,68(r1)                              
ffc06ea0:	93 61 00 2c 	stw     r27,44(r1)                             
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc06ea4:	83 63 00 50 	lwz     r27,80(r3)                             
ffc06ea8:	93 41 00 28 	stw     r26,40(r1)                             
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 ));            
ffc06eac:	3b 43 00 54 	addi    r26,r3,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 );                    
ffc06eb0:	7f 9b d0 00 	cmpw    cr7,r27,r26                            
 */                                                                   
static void IMFS_dump_directory(                                      
  IMFS_jnode_t  *the_directory,                                       
  int            level                                                
)                                                                     
{                                                                     
ffc06eb4:	92 81 00 10 	stw     r20,16(r1)                             
ffc06eb8:	92 a1 00 14 	stw     r21,20(r1)                             
ffc06ebc:	92 c1 00 18 	stw     r22,24(r1)                             
ffc06ec0:	92 e1 00 1c 	stw     r23,28(r1)                             
ffc06ec4:	93 01 00 20 	stw     r24,32(r1)                             
ffc06ec8:	93 21 00 24 	stw     r25,36(r1)                             
ffc06ecc:	93 81 00 30 	stw     r28,48(r1)                             
ffc06ed0:	93 a1 00 34 	stw     r29,52(r1)                             
ffc06ed4:	93 c1 00 38 	stw     r30,56(r1)                             
ffc06ed8:	93 e1 00 3c 	stw     r31,60(r1)                             
ffc06edc:	91 81 00 0c 	stw     r12,12(r1)                             
  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 );                    
ffc06ee0:	41 9e 00 c4 	beq-    cr7,ffc06fa4 <IMFS_dump_directory+0x114>
ffc06ee4:	2e 04 00 00 	cmpwi   cr4,r4,0                               
ffc06ee8:	3f c0 00 00 	lis     r30,0                                  
ffc06eec:	3f 80 ff c2 	lis     r28,-62                                
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
      return;                                                         
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", IMFS_type( the_jnode ) );     
ffc06ef0:	3e 80 ff c2 	lis     r20,-62                                
      return;                                                         
  }                                                                   
  puts("");                                                           
ffc06ef4:	3f 20 ff c2 	lis     r25,-62                                
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
ffc06ef8:	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" );                       
ffc06efc:	3e e0 ff c2 	lis     r23,-62                                
        the_jnode->info.file.indirect,                                
        the_jnode->info.file.doubly_indirect,                         
        the_jnode->info.file.triply_indirect                          
      );                                                              
#else                                                                 
      fprintf(stdout, " (file %" PRId32 ")",                          
ffc06f00:	3e c0 ff c2 	lis     r22,-62                                
ffc06f04:	7c 9d 23 78 	mr      r29,r4                                 
ffc06f08:	3b de 28 30 	addi    r30,r30,10288                          
ffc06f0c:	3b 9c 78 40 	addi    r28,r28,30784                          
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
      return;                                                         
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", IMFS_type( the_jnode ) );     
ffc06f10:	3a 94 78 a0 	addi    r20,r20,30880                          
)                                                                     
{                                                                     
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
  switch( IMFS_type( the_jnode ) ) {                                  
ffc06f14:	3f 00 ff c2 	lis     r24,-62                                
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", IMFS_type( the_jnode ) );     
      return;                                                         
  }                                                                   
  puts("");                                                           
ffc06f18:	3b 39 6a b0 	addi    r25,r25,27312                          
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
ffc06f1c:	3a b5 78 8c 	addi    r21,r21,30860                          
    case IMFS_HARD_LINK:                                              
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
ffc06f20:	3a f7 78 78 	addi    r23,r23,30840                          
        the_jnode->info.file.indirect,                                
        the_jnode->info.file.doubly_indirect,                         
        the_jnode->info.file.triply_indirect                          
      );                                                              
#else                                                                 
      fprintf(stdout, " (file %" PRId32 ")",                          
ffc06f24:	3a d6 78 6c 	addi    r22,r22,30828                          
        !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++ )                                      
ffc06f28:	41 90 00 2c 	blt-    cr4,ffc06f54 <IMFS_dump_directory+0xc4><== NEVER TAKEN
ffc06f2c:	3b e0 00 00 	li      r31,0                                  
      fprintf(stdout, "...." );                                       
ffc06f30:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc06f34:	7f 83 e3 78 	mr      r3,r28                                 
ffc06f38:	38 80 00 01 	li      r4,1                                   
ffc06f3c:	80 c9 00 08 	lwz     r6,8(r9)                               
ffc06f40:	38 a0 00 04 	li      r5,4                                   
        !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++ )                                      
ffc06f44:	3b ff 00 01 	addi    r31,r31,1                              
      fprintf(stdout, "...." );                                       
ffc06f48:	48 01 1f a1 	bl      ffc18ee8 <fwrite>                      
        !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++ )                                      
ffc06f4c:	7f 9d f8 00 	cmpw    cr7,r29,r31                            
ffc06f50:	40 9c ff e0 	bge+    cr7,ffc06f30 <IMFS_dump_directory+0xa0>
  IMFS_jnode_t *the_jnode                                             
)                                                                     
{                                                                     
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
ffc06f54:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc06f58:	38 7b 00 0c 	addi    r3,r27,12                              
ffc06f5c:	80 89 00 08 	lwz     r4,8(r9)                               
ffc06f60:	48 01 11 29 	bl      ffc18088 <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;                                    
ffc06f64:	81 3b 00 4c 	lwz     r9,76(r27)                             
ffc06f68:	80 a9 00 00 	lwz     r5,0(r9)                               
  switch( IMFS_type( the_jnode ) ) {                                  
ffc06f6c:	2b 85 00 06 	cmplwi  cr7,r5,6                               
ffc06f70:	40 9d 00 7c 	ble-    cr7,ffc06fec <IMFS_dump_directory+0x15c><== ALWAYS TAKEN
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
      return;                                                         
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", IMFS_type( the_jnode ) );     
ffc06f74:	81 3e 00 00 	lwz     r9,0(r30)                              <== NOT EXECUTED
ffc06f78:	7e 84 a3 78 	mr      r4,r20                                 <== NOT EXECUTED
ffc06f7c:	80 69 00 08 	lwz     r3,8(r9)                               <== NOT EXECUTED
ffc06f80:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc06f84:	48 01 0f 09 	bl      ffc17e8c <fprintf>                     <== NOT EXECUTED
}                                                                     
                                                                      
static inline bool IMFS_is_directory( const IMFS_jnode_t *node )      
{                                                                     
  return node->control->imfs_type == IMFS_DIRECTORY;                  
ffc06f88:	81 3b 00 4c 	lwz     r9,76(r27)                             
    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 ) )                             
ffc06f8c:	81 29 00 00 	lwz     r9,0(r9)                               
ffc06f90:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06f94:	41 9e 00 98 	beq-    cr7,ffc0702c <IMFS_dump_directory+0x19c>
                                                                      
  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 ) {                                 
ffc06f98:	83 7b 00 00 	lwz     r27,0(r27)                             
  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 );                    
ffc06f9c:	7f 9b d0 00 	cmpw    cr7,r27,r26                            
ffc06fa0:	40 9e ff 88 	bne+    cr7,ffc06f28 <IMFS_dump_directory+0x98>
      fprintf(stdout, "...." );                                       
    IMFS_print_jnode( the_jnode );                                    
    if ( IMFS_is_directory( the_jnode ) )                             
      IMFS_dump_directory( the_jnode, level + 1 );                    
  }                                                                   
}                                                                     
ffc06fa4:	80 01 00 44 	lwz     r0,68(r1)                              
ffc06fa8:	81 81 00 0c 	lwz     r12,12(r1)                             
ffc06fac:	7c 08 03 a6 	mtlr    r0                                     
ffc06fb0:	82 81 00 10 	lwz     r20,16(r1)                             
ffc06fb4:	82 a1 00 14 	lwz     r21,20(r1)                             
ffc06fb8:	7d 80 81 20 	mtcrf   8,r12                                  
ffc06fbc:	82 c1 00 18 	lwz     r22,24(r1)                             
ffc06fc0:	82 e1 00 1c 	lwz     r23,28(r1)                             
ffc06fc4:	83 01 00 20 	lwz     r24,32(r1)                             
ffc06fc8:	83 21 00 24 	lwz     r25,36(r1)                             
ffc06fcc:	83 41 00 28 	lwz     r26,40(r1)                             
ffc06fd0:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc06fd4:	83 81 00 30 	lwz     r28,48(r1)                             
ffc06fd8:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc06fdc:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc06fe0:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc06fe4:	38 21 00 40 	addi    r1,r1,64                               
ffc06fe8:	4e 80 00 20 	blr                                            
)                                                                     
{                                                                     
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
  switch( IMFS_type( the_jnode ) ) {                                  
ffc06fec:	39 38 78 24 	addi    r9,r24,30756                           
ffc06ff0:	54 a5 10 3a 	rlwinm  r5,r5,2,0,29                           
ffc06ff4:	7d 49 28 2e 	lwzx    r10,r9,r5                              
ffc06ff8:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc06ffc:	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" );                        
ffc07000:	81 3e 00 00 	lwz     r9,0(r30)                              
)                                                                     
{                                                                     
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
  switch( IMFS_type( the_jnode ) ) {                                  
ffc07004:	4e 80 04 20 	bctr                                           
    case IMFS_HARD_LINK:                                              
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
ffc07008:	80 c9 00 08 	lwz     r6,8(r9)                               
ffc0700c:	7e e3 bb 78 	mr      r3,r23                                 
ffc07010:	38 80 00 01 	li      r4,1                                   
ffc07014:	38 a0 00 13 	li      r5,19                                  
ffc07018:	48 01 1e d1 	bl      ffc18ee8 <fwrite>                      
ffc0701c:	81 3b 00 4c 	lwz     r9,76(r27)                             
    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 ) )                             
ffc07020:	81 29 00 00 	lwz     r9,0(r9)                               
ffc07024:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07028:	40 9e ff 70 	bne+    cr7,ffc06f98 <IMFS_dump_directory+0x108><== ALWAYS TAKEN
      IMFS_dump_directory( the_jnode, level + 1 );                    
ffc0702c:	7f 63 db 78 	mr      r3,r27                                 
ffc07030:	38 9d 00 01 	addi    r4,r29,1                               
ffc07034:	4b ff fe 5d 	bl      ffc06e90 <IMFS_dump_directory>         
ffc07038:	4b ff ff 60 	b       ffc06f98 <IMFS_dump_directory+0x108>   
      fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",           
        the_jnode->info.device.major, the_jnode->info.device.minor ); 
      break;                                                          
                                                                      
    case IMFS_LINEAR_FILE:                                            
      fprintf(stdout, " (file %" PRId32 " %p)",                       
ffc0703c:	3c 80 ff c2 	lis     r4,-62                                 
ffc07040:	80 69 00 08 	lwz     r3,8(r9)                               
ffc07044:	80 bb 00 54 	lwz     r5,84(r27)                             
ffc07048:	38 84 78 5c 	addi    r4,r4,30812                            
ffc0704c:	80 db 00 58 	lwz     r6,88(r27)                             
ffc07050:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07054:	48 01 0e 39 	bl      ffc17e8c <fprintf>                     
                                                                      
    default:                                                          
      fprintf(stdout, " bad type %d\n", IMFS_type( the_jnode ) );     
      return;                                                         
  }                                                                   
  puts("");                                                           
ffc07058:	7f 23 cb 78 	mr      r3,r25                                 
ffc0705c:	48 01 31 01 	bl      ffc1a15c <puts>                        
ffc07060:	4b ff ff 28 	b       ffc06f88 <IMFS_dump_directory+0xf8>    
    case IMFS_DIRECTORY:                                              
      fprintf(stdout, "/" );                                          
      break;                                                          
                                                                      
    case IMFS_DEVICE:                                                 
      fprintf(stdout, " (device %" PRId32 ", %" PRId32 ")",           
ffc07064:	80 69 00 08 	lwz     r3,8(r9)                               
ffc07068:	3c 80 ff c2 	lis     r4,-62                                 
ffc0706c:	80 bb 00 50 	lwz     r5,80(r27)                             
ffc07070:	38 84 78 48 	addi    r4,r4,30792                            
ffc07074:	80 db 00 54 	lwz     r6,84(r27)                             
ffc07078:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0707c:	48 01 0e 11 	bl      ffc17e8c <fprintf>                     
ffc07080:	4b ff ff d8 	b       ffc07058 <IMFS_dump_directory+0x1c8>   
  IMFS_assert( the_jnode );                                           
                                                                      
  fprintf(stdout, "%s", the_jnode->name );                            
  switch( IMFS_type( the_jnode ) ) {                                  
    case IMFS_DIRECTORY:                                              
      fprintf(stdout, "/" );                                          
ffc07084:	80 89 00 08 	lwz     r4,8(r9)                               
ffc07088:	38 60 00 2f 	li      r3,47                                  
ffc0708c:	48 01 0e e5 	bl      ffc17f70 <fputc>                       
ffc07090:	4b ff ff c8 	b       ffc07058 <IMFS_dump_directory+0x1c8>   
    case IMFS_SYM_LINK:                                               
      fprintf(stdout, " links not printed\n" );                       
      return;                                                         
                                                                      
    case IMFS_FIFO:                                                   
      fprintf(stdout, " FIFO not printed\n" );                        
ffc07094:	80 c9 00 08 	lwz     r6,8(r9)                               
ffc07098:	7e a3 ab 78 	mr      r3,r21                                 
ffc0709c:	38 80 00 01 	li      r4,1                                   
ffc070a0:	38 a0 00 12 	li      r5,18                                  
ffc070a4:	48 01 1e 45 	bl      ffc18ee8 <fwrite>                      
ffc070a8:	4b ff fe e0 	b       ffc06f88 <IMFS_dump_directory+0xf8>    
        the_jnode->info.file.indirect,                                
        the_jnode->info.file.doubly_indirect,                         
        the_jnode->info.file.triply_indirect                          
      );                                                              
#else                                                                 
      fprintf(stdout, " (file %" PRId32 ")",                          
ffc070ac:	80 bb 00 54 	lwz     r5,84(r27)                             
ffc070b0:	7e c4 b3 78 	mr      r4,r22                                 
ffc070b4:	80 69 00 08 	lwz     r3,8(r9)                               
ffc070b8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc070bc:	48 01 0d d1 	bl      ffc17e8c <fprintf>                     
ffc070c0:	4b ff ff 98 	b       ffc07058 <IMFS_dump_directory+0x1c8>   
                                                                      

ffc0e3dc <IMFS_eval_token>: rtems_filesystem_eval_path_context_t *ctx, void *arg, const char *token, size_t tokenlen ) {
ffc0e3dc:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0e3e0:	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(           
ffc0e3e4:	38 80 00 01 	li      r4,1                                   
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
ffc0e3e8:	90 01 00 24 	stw     r0,36(r1)                              
ffc0e3ec:	93 a1 00 14 	stw     r29,20(r1)                             
  rtems_filesystem_eval_path_generic_status status =                  
    RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;                          
  rtems_filesystem_location_info_t *currentloc =                      
    rtems_filesystem_eval_path_get_currentloc( ctx );                 
  IMFS_jnode_t *dir = currentloc->node_access;                        
ffc0e3f0:	83 a3 00 20 	lwz     r29,32(r3)                             
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
ffc0e3f4:	93 61 00 0c 	stw     r27,12(r1)                             
ffc0e3f8:	7c bb 2b 78 	mr      r27,r5                                 
ffc0e3fc:	93 c1 00 18 	stw     r30,24(r1)                             
ffc0e400:	7c de 33 78 	mr      r30,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;                        
  bool access_ok = rtems_filesystem_eval_path_check_access(           
ffc0e404:	80 bd 00 30 	lwz     r5,48(r29)                             
ffc0e408:	a0 dd 00 3c 	lhz     r6,60(r29)                             
ffc0e40c:	a0 fd 00 3e 	lhz     r7,62(r29)                             
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
ffc0e410:	93 81 00 10 	stw     r28,16(r1)                             
ffc0e414:	7c 7c 1b 78 	mr      r28,r3                                 
ffc0e418:	93 41 00 08 	stw     r26,8(r1)                              
ffc0e41c:	93 e1 00 1c 	stw     r31,28(r1)                             
  rtems_filesystem_eval_path_generic_status status =                  
    RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;                          
  rtems_filesystem_location_info_t *currentloc =                      
    rtems_filesystem_eval_path_get_currentloc( ctx );                 
  IMFS_jnode_t *dir = currentloc->node_access;                        
  bool access_ok = rtems_filesystem_eval_path_check_access(           
ffc0e420:	48 00 10 05 	bl      ffc0f424 <rtems_filesystem_eval_path_check_access>
    dir->st_mode,                                                     
    dir->st_uid,                                                      
    dir->st_gid                                                       
  );                                                                  
                                                                      
  if ( access_ok ) {                                                  
ffc0e424:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e428:	40 9e 00 30 	bne-    cr7,ffc0e458 <IMFS_eval_token+0x7c>    
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
ffc0e42c:	38 60 00 01 	li      r3,1                                   
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;           
    }                                                                 
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc0e430:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0e434:	83 41 00 08 	lwz     r26,8(r1)                              
ffc0e438:	7c 08 03 a6 	mtlr    r0                                     
ffc0e43c:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0e440:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0e444:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0e448:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0e44c:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0e450:	38 21 00 20 	addi    r1,r1,32                               
ffc0e454:	4e 80 00 20 	blr                                            
static inline bool rtems_filesystem_is_current_directory(             
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 1 && token [0] == '.';                           
ffc0e458:	2f 9e 00 01 	cmpwi   cr7,r30,1                              
ffc0e45c:	41 9e 01 5c 	beq-    cr7,ffc0e5b8 <IMFS_eval_token+0x1dc>   
static inline bool rtems_filesystem_is_parent_directory(              
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 2 && token [0] == '.' && token [1] == '.';       
ffc0e460:	2f 9e 00 02 	cmpwi   cr7,r30,2                              
ffc0e464:	41 9e 00 c8 	beq-    cr7,ffc0e52c <IMFS_eval_token+0x150>   
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc0e468:	83 fd 00 50 	lwz     r31,80(r29)                            
    if ( rtems_filesystem_is_parent_directory( token, tokenlen ) ) {  
      return dir->Parent;                                             
    } else {                                                          
      rtems_chain_control *entries = &dir->info.directory.Entries;    
      rtems_chain_node *current = rtems_chain_first( entries );       
      rtems_chain_node *tail = rtems_chain_tail( entries );           
ffc0e46c:	3b 5d 00 54 	addi    r26,r29,84                             
                                                                      
      while ( current != tail ) {                                     
ffc0e470:	7f 9f d0 00 	cmpw    cr7,r31,r26                            
ffc0e474:	41 9e 00 b0 	beq-    cr7,ffc0e524 <IMFS_eval_token+0x148>   
        IMFS_jnode_t *entry = (IMFS_jnode_t *) current;               
        bool match = strncmp( entry->name, token, tokenlen ) == 0     
ffc0e478:	38 7f 00 0c 	addi    r3,r31,12                              
ffc0e47c:	7f 64 db 78 	mr      r4,r27                                 
ffc0e480:	7f c5 f3 78 	mr      r5,r30                                 
ffc0e484:	48 00 64 e5 	bl      ffc14968 <strncmp>                     
          && entry->name [tokenlen] == '\0';                          
ffc0e488:	7d 3f f2 14 	add     r9,r31,r30                             
ffc0e48c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e490:	40 9e 00 88 	bne-    cr7,ffc0e518 <IMFS_eval_token+0x13c>   
ffc0e494:	89 29 00 0c 	lbz     r9,12(r9)                              
ffc0e498:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e49c:	40 9e 00 7c 	bne-    cr7,ffc0e518 <IMFS_eval_token+0x13c>   
  rtems_chain_extract_unprotected( &node->Node );                     
}                                                                     
                                                                      
static inline IMFS_jnode_types_t IMFS_type( const IMFS_jnode_t *node )
{                                                                     
  return node->control->imfs_type;                                    
ffc0e4a0:	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;                                                  
ffc0e4a4:	39 40 00 00 	li      r10,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 );    
ffc0e4a8:	80 7c 00 04 	lwz     r3,4(r28)                              
ffc0e4ac:	81 29 00 00 	lwz     r9,0(r9)                               
ffc0e4b0:	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 ); 
}                                                                     
ffc0e4b4:	81 1c 00 10 	lwz     r8,16(r28)                             
      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)) {
ffc0e4b8:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc0e4bc:	91 5c 00 0c 	stw     r10,12(r28)                            
                                                                      
  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 );    
ffc0e4c0:	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)) {
ffc0e4c4:	41 9e 01 08 	beq-    cr7,ffc0e5cc <IMFS_eval_token+0x1f0>   
        entry = entry->info.hard_link.link_node;                      
      }                                                               
                                                                      
      if ( type == IMFS_SYM_LINK && (follow_sym_link || !terminal)) { 
ffc0e4c8:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc0e4cc:	41 9e 00 8c 	beq-    cr7,ffc0e558 <IMFS_eval_token+0x17c>   
  IMFS_jnode_types_t type                                             
)                                                                     
{                                                                     
  rtems_filesystem_global_location_t **fs_root_ptr = NULL;            
                                                                      
  if ( type == IMFS_DIRECTORY ) {                                     
ffc0e4d0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e4d4:	40 9e 00 94 	bne-    cr7,ffc0e568 <IMFS_eval_token+0x18c>   
    if ( node->info.directory.mt_fs != NULL ) {                       
ffc0e4d8:	83 df 00 5c 	lwz     r30,92(r31)                            
ffc0e4dc:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0e4e0:	41 9e 00 88 	beq-    cr7,ffc0e568 <IMFS_eval_token+0x18c>   
                                                                      
          if ( !terminal ) {                                          
            status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;     
          }                                                           
        } else {                                                      
          access_ok = rtems_filesystem_eval_path_check_access(        
ffc0e4e4:	80 bf 00 30 	lwz     r5,48(r31)                             
ffc0e4e8:	7f 83 e3 78 	mr      r3,r28                                 
ffc0e4ec:	a0 df 00 3c 	lhz     r6,60(r31)                             
ffc0e4f0:	38 80 00 01 	li      r4,1                                   
ffc0e4f4:	a0 ff 00 3e 	lhz     r7,62(r31)                             
ffc0e4f8:	48 00 0f 2d 	bl      ffc0f424 <rtems_filesystem_eval_path_check_access>
            RTEMS_FS_PERMS_EXEC,                                      
            entry->st_mode,                                           
            entry->st_uid,                                            
            entry->st_gid                                             
          );                                                          
          if ( access_ok ) {                                          
ffc0e4fc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e500:	41 9e ff 2c 	beq+    cr7,ffc0e42c <IMFS_eval_token+0x50>    <== NEVER TAKEN
            rtems_filesystem_eval_path_restart( ctx, fs_root_ptr );   
ffc0e504:	7f 83 e3 78 	mr      r3,r28                                 
ffc0e508:	38 9e 00 24 	addi    r4,r30,36                              
ffc0e50c:	4b ff 7e d1 	bl      ffc063dc <rtems_filesystem_eval_path_restart>
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
ffc0e510:	38 60 00 01 	li      r3,1                                   
ffc0e514:	4b ff ff 1c 	b       ffc0e430 <IMFS_eval_token+0x54>        
};                                                                    
                                                                      
void IMFS_eval_path( rtems_filesystem_eval_path_context_t *ctx )      
{                                                                     
  rtems_filesystem_eval_path_generic( ctx, NULL, &IMFS_eval_config ); 
}                                                                     
ffc0e518:	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 ) {                                     
ffc0e51c:	7f 9a f8 00 	cmpw    cr7,r26,r31                            
ffc0e520:	40 9e ff 58 	bne+    cr7,ffc0e478 <IMFS_eval_token+0x9c>    
            rtems_filesystem_eval_path_restart( ctx, fs_root_ptr );   
          }                                                           
        }                                                             
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;           
ffc0e524:	38 60 00 02 	li      r3,2                                   
ffc0e528:	4b ff ff 08 	b       ffc0e430 <IMFS_eval_token+0x54>        
static inline bool rtems_filesystem_is_parent_directory(              
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 2 && token [0] == '.' && token [1] == '.';       
ffc0e52c:	89 3b 00 00 	lbz     r9,0(r27)                              
ffc0e530:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
ffc0e534:	40 9e ff 34 	bne+    cr7,ffc0e468 <IMFS_eval_token+0x8c>    
ffc0e538:	89 3b 00 01 	lbz     r9,1(r27)                              
ffc0e53c:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
ffc0e540:	40 9e ff 28 	bne+    cr7,ffc0e468 <IMFS_eval_token+0x8c>    <== NEVER TAKEN
{                                                                     
  if ( rtems_filesystem_is_current_directory( token, tokenlen ) ) {   
    return dir;                                                       
  } else {                                                            
    if ( rtems_filesystem_is_parent_directory( token, tokenlen ) ) {  
      return dir->Parent;                                             
ffc0e544:	83 fd 00 08 	lwz     r31,8(r29)                             
  );                                                                  
                                                                      
  if ( access_ok ) {                                                  
    IMFS_jnode_t *entry = IMFS_search_in_directory( dir, token, tokenlen );
                                                                      
    if ( entry != NULL ) {                                            
ffc0e548:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0e54c:	40 be ff 54 	bne-    cr7,ffc0e4a0 <IMFS_eval_token+0xc4>    
            rtems_filesystem_eval_path_restart( ctx, fs_root_ptr );   
          }                                                           
        }                                                             
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;           
ffc0e550:	38 60 00 02 	li      r3,2                                   
ffc0e554:	4b ff fe dc 	b       ffc0e430 <IMFS_eval_token+0x54>        
                                                                      
      if ( type == IMFS_HARD_LINK && (follow_hard_link || !terminal)) {
        entry = entry->info.hard_link.link_node;                      
      }                                                               
                                                                      
      if ( type == IMFS_SYM_LINK && (follow_sym_link || !terminal)) { 
ffc0e558:	71 09 00 10 	andi.   r9,r8,16                               
ffc0e55c:	40 82 00 90 	bne-    ffc0e5ec <IMFS_eval_token+0x210>       
ffc0e560:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e564:	41 9e 00 88 	beq-    cr7,ffc0e5ec <IMFS_eval_token+0x210>   
      } else {                                                        
        rtems_filesystem_global_location_t **fs_root_ptr =            
          IMFS_is_mount_point( entry, type );                         
                                                                      
        if ( fs_root_ptr == NULL ) {                                  
          --dir->reference_count;                                     
ffc0e568:	a1 3d 00 34 	lhz     r9,52(r29)                             
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;           
    }                                                                 
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc0e56c:	80 01 00 24 	lwz     r0,36(r1)                              
      } else {                                                        
        rtems_filesystem_global_location_t **fs_root_ptr =            
          IMFS_is_mount_point( entry, type );                         
                                                                      
        if ( fs_root_ptr == NULL ) {                                  
          --dir->reference_count;                                     
ffc0e570:	39 29 ff ff 	addi    r9,r9,-1                               
                                                                      
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;                            
ffc0e574:	81 5f 00 4c 	lwz     r10,76(r31)                            
ffc0e578:	b1 3d 00 34 	sth     r9,52(r29)                             
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;           
    }                                                                 
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc0e57c:	7c 08 03 a6 	mtlr    r0                                     
        rtems_filesystem_global_location_t **fs_root_ptr =            
          IMFS_is_mount_point( entry, type );                         
                                                                      
        if ( fs_root_ptr == NULL ) {                                  
          --dir->reference_count;                                     
          ++entry->reference_count;                                   
ffc0e580:	a1 3f 00 34 	lhz     r9,52(r31)                             
ffc0e584:	81 4a 00 04 	lwz     r10,4(r10)                             
ffc0e588:	39 29 00 01 	addi    r9,r9,1                                
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;           
    }                                                                 
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc0e58c:	83 41 00 08 	lwz     r26,8(r1)                              
        rtems_filesystem_global_location_t **fs_root_ptr =            
          IMFS_is_mount_point( entry, type );                         
                                                                      
        if ( fs_root_ptr == NULL ) {                                  
          --dir->reference_count;                                     
          ++entry->reference_count;                                   
ffc0e590:	b1 3f 00 34 	sth     r9,52(r31)                             
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;           
    }                                                                 
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc0e594:	83 61 00 0c 	lwz     r27,12(r1)                             
          IMFS_is_mount_point( entry, type );                         
                                                                      
        if ( fs_root_ptr == NULL ) {                                  
          --dir->reference_count;                                     
          ++entry->reference_count;                                   
          currentloc->node_access = entry;                            
ffc0e598:	93 fc 00 20 	stw     r31,32(r28)                            
ffc0e59c:	91 5c 00 28 	stw     r10,40(r28)                            
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;           
    }                                                                 
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc0e5a0:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0e5a4:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0e5a8:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0e5ac:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0e5b0:	38 21 00 20 	addi    r1,r1,32                               
ffc0e5b4:	4e 80 00 20 	blr                                            
static inline bool rtems_filesystem_is_current_directory(             
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 1 && token [0] == '.';                           
ffc0e5b8:	89 3b 00 00 	lbz     r9,0(r27)                              
ffc0e5bc:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
ffc0e5c0:	40 9e fe a8 	bne+    cr7,ffc0e468 <IMFS_eval_token+0x8c>    
ffc0e5c4:	7f bf eb 78 	mr      r31,r29                                
ffc0e5c8:	4b ff fe d8 	b       ffc0e4a0 <IMFS_eval_token+0xc4>        
      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)) {
ffc0e5cc:	71 09 00 08 	andi.   r9,r8,8                                
ffc0e5d0:	41 82 00 0c 	beq-    ffc0e5dc <IMFS_eval_token+0x200>       
        entry = entry->info.hard_link.link_node;                      
ffc0e5d4:	83 ff 00 50 	lwz     r31,80(r31)                            
ffc0e5d8:	4b ff ff 90 	b       ffc0e568 <IMFS_eval_token+0x18c>       
      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)) {
ffc0e5dc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e5e0:	40 be ff 88 	bne-    cr7,ffc0e568 <IMFS_eval_token+0x18c>   <== ALWAYS TAKEN
        entry = entry->info.hard_link.link_node;                      
ffc0e5e4:	83 ff 00 50 	lwz     r31,80(r31)                            <== NOT EXECUTED
ffc0e5e8:	4b ff ff 80 	b       ffc0e568 <IMFS_eval_token+0x18c>       <== NOT EXECUTED
      }                                                               
                                                                      
      if ( type == IMFS_SYM_LINK && (follow_sym_link || !terminal)) { 
        const char *target = entry->info.sym_link.name;               
ffc0e5ec:	83 ff 00 50 	lwz     r31,80(r31)                            
                                                                      
        rtems_filesystem_eval_path_recursive( ctx, target, strlen( target ) );
ffc0e5f0:	7f e3 fb 78 	mr      r3,r31                                 
ffc0e5f4:	48 00 62 d9 	bl      ffc148cc <strlen>                      
ffc0e5f8:	7f e4 fb 78 	mr      r4,r31                                 
ffc0e5fc:	7c 65 1b 78 	mr      r5,r3                                  
ffc0e600:	7f 83 e3 78 	mr      r3,r28                                 
ffc0e604:	4b ff 7e 79 	bl      ffc0647c <rtems_filesystem_eval_path_recursive>
ffc0e608:	4b ff fe 24 	b       ffc0e42c <IMFS_eval_token+0x50>        
                                                                      

ffc0e61c <IMFS_fchmod>: int IMFS_fchmod( const rtems_filesystem_location_info_t *loc, mode_t mode ) {
ffc0e61c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0e620:	7c 08 02 a6 	mflr    r0                                     
ffc0e624:	90 01 00 24 	stw     r0,36(r1)                              
ffc0e628:	93 e1 00 1c 	stw     r31,28(r1)                             
  IMFS_jnode_t  *jnode;                                               
#if defined(RTEMS_POSIX_API)                                          
  uid_t          st_uid;                                              
#endif                                                                
                                                                      
  jnode = loc->node_access;                                           
ffc0e62c:	83 e3 00 08 	lwz     r31,8(r3)                              
                                                                      
int IMFS_fchmod(                                                      
  const rtems_filesystem_location_info_t *loc,                        
  mode_t mode                                                         
)                                                                     
{                                                                     
ffc0e630:	93 c1 00 18 	stw     r30,24(r1)                             
ffc0e634:	7c 9e 23 78 	mr      r30,r4                                 
                                                                      
  /*                                                                  
   *  Verify I am the owner of the node or the super user.            
   */                                                                 
#if defined(RTEMS_POSIX_API)                                          
  st_uid = geteuid();                                                 
ffc0e638:	48 00 07 61 	bl      ffc0ed98 <geteuid>                     
                                                                      
  if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )               
ffc0e63c:	a1 3f 00 3c 	lhz     r9,60(r31)                             
ffc0e640:	7f 89 18 00 	cmpw    cr7,r9,r3                              
ffc0e644:	41 9e 00 0c 	beq-    cr7,ffc0e650 <IMFS_fchmod+0x34>        
ffc0e648:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e64c:	40 9e 00 48 	bne-    cr7,ffc0e694 <IMFS_fchmod+0x78>        <== ALWAYS TAKEN
                                                                      
  /*                                                                  
   * Change only the RWX permissions on the jnode to mode.            
   */                                                                 
                                                                      
  jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
ffc0e650:	81 3f 00 30 	lwz     r9,48(r31)                             
  jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
ffc0e654:	57 de 05 3e 	clrlwi  r30,r30,20                             
                                                                      
  IMFS_update_ctime( jnode );                                         
ffc0e658:	38 61 00 08 	addi    r3,r1,8                                
                                                                      
  /*                                                                  
   * Change only the RWX permissions on the jnode to mode.            
   */                                                                 
                                                                      
  jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
ffc0e65c:	55 29 00 26 	rlwinm  r9,r9,0,0,19                           
  jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
ffc0e660:	7f c9 4b 78 	or      r9,r30,r9                              
ffc0e664:	91 3f 00 30 	stw     r9,48(r31)                             
                                                                      
  IMFS_update_ctime( jnode );                                         
ffc0e668:	38 80 00 00 	li      r4,0                                   
ffc0e66c:	4b ff 65 e9 	bl      ffc04c54 <gettimeofday>                
ffc0e670:	81 21 00 08 	lwz     r9,8(r1)                               
                                                                      
  return 0;                                                           
ffc0e674:	38 60 00 00 	li      r3,0                                   
   */                                                                 
                                                                      
  jnode->st_mode &= ~(S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
  jnode->st_mode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
                                                                      
  IMFS_update_ctime( jnode );                                         
ffc0e678:	91 3f 00 48 	stw     r9,72(r31)                             
                                                                      
  return 0;                                                           
}                                                                     
ffc0e67c:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0e680:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0e684:	7c 08 03 a6 	mtlr    r0                                     
ffc0e688:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0e68c:	38 21 00 20 	addi    r1,r1,32                               
ffc0e690:	4e 80 00 20 	blr                                            
   */                                                                 
#if defined(RTEMS_POSIX_API)                                          
  st_uid = geteuid();                                                 
                                                                      
  if ( ( st_uid != jnode->st_uid ) && ( st_uid != 0 ) )               
    rtems_set_errno_and_return_minus_one( EPERM );                    
ffc0e694:	48 00 49 e5 	bl      ffc13078 <__errno>                     
ffc0e698:	39 20 00 01 	li      r9,1                                   
ffc0e69c:	91 23 00 00 	stw     r9,0(r3)                               
ffc0e6a0:	38 60 ff ff 	li      r3,-1                                  
ffc0e6a4:	4b ff ff d8 	b       ffc0e67c <IMFS_fchmod+0x60>            
                                                                      

ffc04d24 <IMFS_fifo_write>: static ssize_t IMFS_fifo_write( rtems_libio_t *iop, const void *buffer, size_t count ) {
ffc04d24:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc04d28:	7c 08 02 a6 	mflr    r0                                     
ffc04d2c:	7c 66 1b 78 	mr      r6,r3                                  
ffc04d30:	90 01 00 24 	stw     r0,36(r1)                              
ffc04d34:	93 c1 00 18 	stw     r30,24(r1)                             
ffc04d38:	93 e1 00 1c 	stw     r31,28(r1)                             
  IMFS_jnode_t *jnode = iop->pathinfo.node_access;                    
ffc04d3c:	83 e3 00 1c 	lwz     r31,28(r3)                             
                                                                      
  int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);        
ffc04d40:	80 7f 00 50 	lwz     r3,80(r31)                             
ffc04d44:	48 00 ca 49 	bl      ffc1178c <pipe_write>                  
  if (err > 0) {                                                      
ffc04d48:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc04d4c:	40 81 00 38 	ble-    ffc04d84 <IMFS_fifo_write+0x60>        
    IMFS_mtime_ctime_update(jnode);                                   
ffc04d50:	38 61 00 08 	addi    r3,r1,8                                
ffc04d54:	38 80 00 00 	li      r4,0                                   
ffc04d58:	48 00 12 29 	bl      ffc05f80 <gettimeofday>                
ffc04d5c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc04d60:	91 3f 00 44 	stw     r9,68(r31)                             
ffc04d64:	91 3f 00 48 	stw     r9,72(r31)                             
  }                                                                   
                                                                      
  IMFS_FIFO_RETURN(err);                                              
}                                                                     
ffc04d68:	80 01 00 24 	lwz     r0,36(r1)                              
ffc04d6c:	7f c3 f3 78 	mr      r3,r30                                 
ffc04d70:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc04d74:	7c 08 03 a6 	mtlr    r0                                     
ffc04d78:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc04d7c:	38 21 00 20 	addi    r1,r1,32                               
ffc04d80:	4e 80 00 20 	blr                                            
  int err = pipe_write(JNODE2PIPE(jnode), buffer, count, iop);        
  if (err > 0) {                                                      
    IMFS_mtime_ctime_update(jnode);                                   
  }                                                                   
                                                                      
  IMFS_FIFO_RETURN(err);                                              
ffc04d84:	41 82 ff e4 	beq+    ffc04d68 <IMFS_fifo_write+0x44>        <== NEVER TAKEN
ffc04d88:	7f de 00 d0 	neg     r30,r30                                
ffc04d8c:	48 01 04 e5 	bl      ffc15270 <__errno>                     
ffc04d90:	93 c3 00 00 	stw     r30,0(r3)                              
ffc04d94:	3b c0 ff ff 	li      r30,-1                                 
ffc04d98:	4b ff ff d0 	b       ffc04d68 <IMFS_fifo_write+0x44>        
                                                                      

ffc0e6a8 <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 ) {
ffc0e6a8:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0e6ac:	7c 08 02 a6 	mflr    r0                                     
ffc0e6b0:	90 01 00 34 	stw     r0,52(r1)                              
   /*                                                                 
    * Traverse tree that starts at the mt_fs_root and deallocate memory
    * associated memory space                                         
    */                                                                
                                                                      
   loc = temp_mt_entry->mt_fs_root->location;                         
ffc0e6b4:	81 03 00 24 	lwz     r8,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                 
)                                                                     
{                                                                     
ffc0e6b8:	93 e1 00 2c 	stw     r31,44(r1)                             
   /*                                                                 
    * Traverse tree that starts at the mt_fs_root and deallocate memory
    * associated memory space                                         
    */                                                                
                                                                      
   loc = temp_mt_entry->mt_fs_root->location;                         
ffc0e6bc:	80 e8 00 08 	lwz     r7,8(r8)                               
ffc0e6c0:	81 68 00 00 	lwz     r11,0(r8)                              
ffc0e6c4:	81 27 00 4c 	lwz     r9,76(r7)                              
   jnode = (IMFS_jnode_t *)loc.node_access;                           
ffc0e6c8:	7c ff 3b 78 	mr      r31,r7                                 
   /*                                                                 
    * Traverse tree that starts at the mt_fs_root and deallocate memory
    * associated memory space                                         
    */                                                                
                                                                      
   loc = temp_mt_entry->mt_fs_root->location;                         
ffc0e6cc:	80 68 00 04 	lwz     r3,4(r8)                               
ffc0e6d0:	81 49 00 00 	lwz     r10,0(r9)                              
ffc0e6d4:	80 88 00 0c 	lwz     r4,12(r8)                              
ffc0e6d8:	80 a8 00 10 	lwz     r5,16(r8)                              
ffc0e6dc:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0e6e0:	80 c8 00 14 	lwz     r6,20(r8)                              
                                                                      
   /*                                                                 
    *  Set this to null to indicate that it is being unmounted.       
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root->location.node_access = NULL;            
ffc0e6e4:	39 40 00 00 	li      r10,0                                  
    ((IMFS_jnode_t *)( rtems_chain_head( jnode_get_control( jnode ) )->next))
                                                                      
void IMFS_fsunmount(                                                  
  rtems_filesystem_mount_table_entry_t *temp_mt_entry                 
)                                                                     
{                                                                     
ffc0e6e8:	93 c1 00 28 	stw     r30,40(r1)                             
   /*                                                                 
    * Traverse tree that starts at the mt_fs_root and deallocate memory
    * associated memory space                                         
    */                                                                
                                                                      
   loc = temp_mt_entry->mt_fs_root->location;                         
ffc0e6ec:	91 61 00 08 	stw     r11,8(r1)                              
ffc0e6f0:	90 61 00 0c 	stw     r3,12(r1)                              
ffc0e6f4:	90 e1 00 10 	stw     r7,16(r1)                              
ffc0e6f8:	90 81 00 14 	stw     r4,20(r1)                              
ffc0e6fc:	90 a1 00 18 	stw     r5,24(r1)                              
ffc0e700:	90 c1 00 1c 	stw     r6,28(r1)                              
                                                                      
   /*                                                                 
    *  Set this to null to indicate that it is being unmounted.       
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root->location.node_access = NULL;            
ffc0e704:	91 48 00 08 	stw     r10,8(r8)                              
ffc0e708:	81 29 00 04 	lwz     r9,4(r9)                               
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
ffc0e70c:	83 df 00 08 	lwz     r30,8(r31)                             
     loc.node_access = (void *)jnode;                                 
ffc0e710:	93 e1 00 10 	stw     r31,16(r1)                             
ffc0e714:	91 21 00 18 	stw     r9,24(r1)                              
     IMFS_Set_handlers( &loc );                                       
                                                                      
     if ( !IMFS_is_directory( jnode ) || jnode_has_no_children( jnode ) ) {
ffc0e718:	40 9e 00 40 	bne-    cr7,ffc0e758 <IMFS_fsunmount+0xb0>     <== NEVER TAKEN
ffc0e71c:	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 );                            
ffc0e720:	39 5f 00 54 	addi    r10,r31,84                             
ffc0e724:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc0e728:	41 9e 00 30 	beq-    cr7,ffc0e758 <IMFS_fsunmount+0xb0>     
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc0e72c:	7d 3f 4b 78 	mr      r31,r9                                 
       if ( IMFS_is_directory( jnode ) ) {                            
         if ( jnode_has_children( jnode ) )                           
           jnode = jnode_get_first_child( jnode );                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
ffc0e730:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0e734:	41 9e 00 74 	beq-    cr7,ffc0e7a8 <IMFS_fsunmount+0x100>    <== NEVER TAKEN
ffc0e738:	81 3f 00 4c 	lwz     r9,76(r31)                             
    */                                                                
                                                                      
   temp_mt_entry->mt_fs_root->location.node_access = NULL;            
                                                                      
   do {                                                               
     next = jnode->Parent;                                            
ffc0e73c:	83 df 00 08 	lwz     r30,8(r31)                             
ffc0e740:	81 49 00 00 	lwz     r10,0(r9)                              
ffc0e744:	81 29 00 04 	lwz     r9,4(r9)                               
ffc0e748:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
     loc.node_access = (void *)jnode;                                 
ffc0e74c:	93 e1 00 10 	stw     r31,16(r1)                             
ffc0e750:	91 21 00 18 	stw     r9,24(r1)                              
     IMFS_Set_handlers( &loc );                                       
                                                                      
     if ( !IMFS_is_directory( jnode ) || jnode_has_no_children( jnode ) ) {
ffc0e754:	41 9e ff c8 	beq+    cr7,ffc0e71c <IMFS_fsunmount+0x74>     
        result = IMFS_rmnod( NULL, &loc );                            
ffc0e758:	38 60 00 00 	li      r3,0                                   
ffc0e75c:	38 81 00 08 	addi    r4,r1,8                                
ffc0e760:	4b ff 5c dd 	bl      ffc0443c <IMFS_rmnod>                  
        if ( result != 0 )                                            
ffc0e764:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e768:	40 9e 00 58 	bne-    cr7,ffc0e7c0 <IMFS_fsunmount+0x118>    <== NEVER TAKEN
	  rtems_fatal_error_occurred( 0xdeadbeef );                          
        IMFS_node_destroy( jnode );                                   
ffc0e76c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0e770:	4b ff 58 f9 	bl      ffc04068 <IMFS_node_destroy>           
        jnode = next;                                                 
     }                                                                
     if ( jnode != NULL ) {                                           
ffc0e774:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0e778:	41 9e 00 30 	beq-    cr7,ffc0e7a8 <IMFS_fsunmount+0x100>    
ffc0e77c:	81 3e 00 4c 	lwz     r9,76(r30)                             
       if ( IMFS_is_directory( jnode ) ) {                            
ffc0e780:	7f df f3 78 	mr      r31,r30                                
ffc0e784:	81 49 00 00 	lwz     r10,0(r9)                              
ffc0e788:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0e78c:	40 9e ff 7c 	bne+    cr7,ffc0e708 <IMFS_fsunmount+0x60>     <== NEVER TAKEN
ffc0e790:	83 fe 00 50 	lwz     r31,80(r30)                            
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc0e794:	39 5e 00 54 	addi    r10,r30,84                             
         if ( jnode_has_children( jnode ) )                           
ffc0e798:	7f 1f 50 00 	cmpw    cr6,r31,r10                            
ffc0e79c:	40 ba ff 94 	bne-    cr6,ffc0e730 <IMFS_fsunmount+0x88>     
ffc0e7a0:	7f df f3 78 	mr      r31,r30                                
ffc0e7a4:	4b ff ff 64 	b       ffc0e708 <IMFS_fsunmount+0x60>         
           jnode = jnode_get_first_child( jnode );                    
       }                                                              
     }                                                                
   } while (jnode != NULL);                                           
}                                                                     
ffc0e7a8:	80 01 00 34 	lwz     r0,52(r1)                              
ffc0e7ac:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc0e7b0:	7c 08 03 a6 	mtlr    r0                                     
ffc0e7b4:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc0e7b8:	38 21 00 30 	addi    r1,r1,48                               
ffc0e7bc:	4e 80 00 20 	blr                                            
     IMFS_Set_handlers( &loc );                                       
                                                                      
     if ( !IMFS_is_directory( jnode ) || jnode_has_no_children( jnode ) ) {
        result = IMFS_rmnod( NULL, &loc );                            
        if ( result != 0 )                                            
	  rtems_fatal_error_occurred( 0xdeadbeef );                          
ffc0e7c0:	3c 60 de ad 	lis     r3,-8531                               <== NOT EXECUTED
ffc0e7c4:	60 63 be ef 	ori     r3,r3,48879                            <== NOT EXECUTED
ffc0e7c8:	4b ff bb d5 	bl      ffc0a39c <rtems_fatal_error_occurred>  <== NOT EXECUTED
                                                                      

ffc03f00 <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] ) {
ffc03f00:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc03f04:	7c 08 02 a6 	mflr    r0                                     
ffc03f08:	93 81 00 08 	stw     r28,8(r1)                              
ffc03f0c:	7c 9c 23 78 	mr      r28,r4                                 
  static int imfs_instance;                                           
                                                                      
  int rv = 0;                                                         
  IMFS_fs_info_t *fs_info = calloc( 1, sizeof( *fs_info ) );          
ffc03f10:	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]      
)                                                                     
{                                                                     
ffc03f14:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc03f18:	7c 7d 1b 78 	mr      r29,r3                                 
  static int imfs_instance;                                           
                                                                      
  int rv = 0;                                                         
  IMFS_fs_info_t *fs_info = calloc( 1, sizeof( *fs_info ) );          
ffc03f1c:	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]      
)                                                                     
{                                                                     
ffc03f20:	93 c1 00 10 	stw     r30,16(r1)                             
ffc03f24:	93 e1 00 14 	stw     r31,20(r1)                             
ffc03f28:	7c bf 2b 78 	mr      r31,r5                                 
ffc03f2c:	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 ) );          
ffc03f30:	48 00 08 89 	bl      ffc047b8 <calloc>                      
                                                                      
  if ( fs_info != NULL ) {                                            
ffc03f34:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc03f38:	41 82 01 04 	beq-    ffc0403c <IMFS_initialize_support+0x13c>
    IMFS_jnode_t *root_node;                                          
                                                                      
    fs_info->instance = imfs_instance++;                              
ffc03f3c:	3d 00 00 00 	lis     r8,0                                   
ffc03f40:	81 48 29 30 	lwz     r10,10544(r8)                          
      fs_info->node_controls,                                         
      node_controls,                                                  
      sizeof( fs_info->node_controls )                                
    );                                                                
                                                                      
    root_node = IMFS_allocate_node(                                   
ffc03f44:	3c a0 ff c2 	lis     r5,-62                                 
ffc03f48:	38 a5 f6 a4 	addi    r5,r5,-2396                            
  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++;                              
ffc03f4c:	38 ea 00 01 	addi    r7,r10,1                               
ffc03f50:	91 5e 00 00 	stw     r10,0(r30)                             
      fs_info->node_controls,                                         
      node_controls,                                                  
      sizeof( fs_info->node_controls )                                
    );                                                                
                                                                      
    root_node = IMFS_allocate_node(                                   
ffc03f54:	38 c0 00 00 	li      r6,0                                   
  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++;                              
ffc03f58:	90 e8 29 30 	stw     r7,10544(r8)                           
    memcpy(                                                           
ffc03f5c:	80 ff 00 00 	lwz     r7,0(r31)                              
ffc03f60:	80 9f 00 04 	lwz     r4,4(r31)                              
ffc03f64:	81 1f 00 08 	lwz     r8,8(r31)                              
ffc03f68:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc03f6c:	90 fe 00 08 	stw     r7,8(r30)                              
      fs_info->node_controls,                                         
      node_controls,                                                  
      sizeof( fs_info->node_controls )                                
    );                                                                
                                                                      
    root_node = IMFS_allocate_node(                                   
ffc03f70:	38 e0 41 ed 	li      r7,16877                               
                                                                      
  if ( fs_info != NULL ) {                                            
    IMFS_jnode_t *root_node;                                          
                                                                      
    fs_info->instance = imfs_instance++;                              
    memcpy(                                                           
ffc03f74:	91 1e 00 10 	stw     r8,16(r30)                             
      fs_info->node_controls,                                         
      node_controls,                                                  
      sizeof( fs_info->node_controls )                                
    );                                                                
                                                                      
    root_node = IMFS_allocate_node(                                   
ffc03f78:	39 00 00 00 	li      r8,0                                   
                                                                      
  if ( fs_info != NULL ) {                                            
    IMFS_jnode_t *root_node;                                          
                                                                      
    fs_info->instance = imfs_instance++;                              
    memcpy(                                                           
ffc03f7c:	90 9e 00 0c 	stw     r4,12(r30)                             
ffc03f80:	91 5e 00 14 	stw     r10,20(r30)                            
ffc03f84:	80 9f 00 14 	lwz     r4,20(r31)                             
ffc03f88:	81 7f 00 10 	lwz     r11,16(r31)                            
ffc03f8c:	81 5f 00 18 	lwz     r10,24(r31)                            
ffc03f90:	90 9e 00 1c 	stw     r4,28(r30)                             
ffc03f94:	91 7e 00 18 	stw     r11,24(r30)                            
ffc03f98:	91 5e 00 20 	stw     r10,32(r30)                            
      fs_info->node_controls,                                         
      node_controls,                                                  
      sizeof( fs_info->node_controls )                                
    );                                                                
                                                                      
    root_node = IMFS_allocate_node(                                   
ffc03f9c:	80 9e 00 08 	lwz     r4,8(r30)                              
ffc03fa0:	48 00 a2 6d 	bl      ffc0e20c <IMFS_allocate_node>          
      "",                                                             
      0,                                                              
      (S_IFDIR | 0755),                                               
      NULL                                                            
    );                                                                
    if ( root_node != NULL ) {                                        
ffc03fa4:	2c 03 00 00 	cmpwi   r3,0                                   
ffc03fa8:	41 82 00 94 	beq-    ffc0403c <IMFS_initialize_support+0x13c><== NEVER TAKEN
    errno = ENOMEM;                                                   
    rv = -1;                                                          
  }                                                                   
                                                                      
  if ( rv == 0 ) {                                                    
    IMFS_determine_bytes_per_block(                                   
ffc03fac:	3d 40 00 00 	lis     r10,0                                  
                                                                      
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;                            
ffc03fb0:	80 e3 00 4c 	lwz     r7,76(r3)                              
ffc03fb4:	81 4a 27 94 	lwz     r10,10132(r10)                         
      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;
ffc03fb8:	3c c0 ff c2 	lis     r6,-62                                 
ffc03fbc:	80 e7 00 04 	lwz     r7,4(r7)                               
ffc03fc0:	38 c6 fe 80 	addi    r6,r6,-384                             
                                                                      
  /*                                                                  
   * 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) {                      
ffc03fc4:	2f 8a 00 10 	cmpwi   cr7,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;         
ffc03fc8:	81 1d 00 24 	lwz     r8,36(r29)                             
      0,                                                              
      (S_IFDIR | 0755),                                               
      NULL                                                            
    );                                                                
    if ( root_node != NULL ) {                                        
      mt_entry->fs_info = fs_info;                                    
ffc03fcc:	93 dd 00 08 	stw     r30,8(r29)                             
      mt_entry->ops = op_table;                                       
ffc03fd0:	93 9d 00 0c 	stw     r28,12(r29)                            
      mt_entry->pathconf_limits_and_options = &IMFS_LIMITS_AND_OPTIONS;
ffc03fd4:	90 dd 00 2c 	stw     r6,44(r29)                             
      mt_entry->mt_fs_root->location.node_access = root_node;         
ffc03fd8:	90 68 00 08 	stw     r3,8(r8)                               
ffc03fdc:	90 e8 00 10 	stw     r7,16(r8)                              
                                                                      
  /*                                                                  
   * 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) {                      
ffc03fe0:	41 9e 00 30 	beq-    cr7,ffc04010 <IMFS_initialize_support+0x110>
      is_valid = true;                                                
      break;                                                          
    }                                                                 
    if(bit_mask > requested_bytes_per_block)                          
ffc03fe4:	2f 8a 00 0f 	cmpwi   cr7,r10,15                             
ffc03fe8:	40 9d 00 24 	ble-    cr7,ffc0400c <IMFS_initialize_support+0x10c>
ffc03fec:	39 00 00 05 	li      r8,5                                   
ffc03ff0:	7d 09 03 a6 	mtctr   r8                                     
ffc03ff4:	39 20 00 20 	li      r9,32                                  
                                                                      
  /*                                                                  
   * 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) {                      
ffc03ff8:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
  int bit_mask;                                                       
                                                                      
  /*                                                                  
   * check, whether requested bytes per block is valid                
   */                                                                 
  for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
ffc03ffc:	55 29 08 3c 	rlwinm  r9,r9,1,0,30                           
    if (bit_mask == requested_bytes_per_block) {                      
ffc04000:	41 9e 00 10 	beq-    cr7,ffc04010 <IMFS_initialize_support+0x110>
      is_valid = true;                                                
      break;                                                          
    }                                                                 
    if(bit_mask > requested_bytes_per_block)                          
ffc04004:	41 9c 00 08 	blt-    cr7,ffc0400c <IMFS_initialize_support+0x10c><== NEVER TAKEN
  int bit_mask;                                                       
                                                                      
  /*                                                                  
   * check, whether requested bytes per block is valid                
   */                                                                 
  for (bit_mask = 16; !is_valid && (bit_mask <= 512); bit_mask <<= 1) {
ffc04008:	42 00 ff f0 	bdnz+   ffc03ff8 <IMFS_initialize_support+0xf8>
    if(bit_mask > requested_bytes_per_block)                          
      break;                                                          
  }                                                                   
  *dest_bytes_per_block = ((is_valid)                                 
			   ? requested_bytes_per_block                                     
			   : default_bytes_per_block);                                     
ffc0400c:	39 40 00 80 	li      r10,128                                
      break;                                                          
    }                                                                 
    if(bit_mask > requested_bytes_per_block)                          
      break;                                                          
  }                                                                   
  *dest_bytes_per_block = ((is_valid)                                 
ffc04010:	3d 20 00 00 	lis     r9,0                                   
ffc04014:	91 49 28 44 	stw     r10,10308(r9)                          
  const IMFS_node_control *const node_controls [IMFS_TYPE_COUNT]      
)                                                                     
{                                                                     
  static int imfs_instance;                                           
                                                                      
  int rv = 0;                                                         
ffc04018:	38 60 00 00 	li      r3,0                                   
      IMFS_MEMFILE_DEFAULT_BYTES_PER_BLOCK                            
    );                                                                
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc0401c:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc04020:	83 81 00 08 	lwz     r28,8(r1)                              
ffc04024:	7c 08 03 a6 	mtlr    r0                                     
ffc04028:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0402c:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc04030:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc04034:	38 21 00 18 	addi    r1,r1,24                               
ffc04038:	4e 80 00 20 	blr                                            
    } else {                                                          
      errno = ENOMEM;                                                 
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    errno = ENOMEM;                                                   
ffc0403c:	48 00 f0 3d 	bl      ffc13078 <__errno>                     
ffc04040:	39 20 00 0c 	li      r9,12                                  
ffc04044:	91 23 00 00 	stw     r9,0(r3)                               
    if(bit_mask > requested_bytes_per_block)                          
      break;                                                          
  }                                                                   
  *dest_bytes_per_block = ((is_valid)                                 
			   ? requested_bytes_per_block                                     
			   : default_bytes_per_block);                                     
ffc04048:	38 60 ff ff 	li      r3,-1                                  
ffc0404c:	4b ff ff d0 	b       ffc0401c <IMFS_initialize_support+0x11c>
                                                                      

ffc0621c <IMFS_make_generic_node>: const char *path, mode_t mode, const IMFS_node_control *node_control, void *context ) {
ffc0621c:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc06220:	7c 08 02 a6 	mflr    r0                                     
  int rv = 0;                                                         
                                                                      
  mode &= ~rtems_filesystem_umask;                                    
ffc06224:	3d 20 00 00 	lis     r9,0                                   
ffc06228:	81 29 27 90 	lwz     r9,10128(r9)                           
  const char *path,                                                   
  mode_t mode,                                                        
  const IMFS_node_control *node_control,                              
  void *context                                                       
)                                                                     
{                                                                     
ffc0622c:	90 01 00 7c 	stw     r0,124(r1)                             
ffc06230:	93 e1 00 74 	stw     r31,116(r1)                            
  int rv = 0;                                                         
                                                                      
  mode &= ~rtems_filesystem_umask;                                    
ffc06234:	83 e9 00 08 	lwz     r31,8(r9)                              
  const char *path,                                                   
  mode_t mode,                                                        
  const IMFS_node_control *node_control,                              
  void *context                                                       
)                                                                     
{                                                                     
ffc06238:	93 a1 00 6c 	stw     r29,108(r1)                            
ffc0623c:	7c dd 33 78 	mr      r29,r6                                 
  int rv = 0;                                                         
                                                                      
  mode &= ~rtems_filesystem_umask;                                    
ffc06240:	7c 9f f8 78 	andc    r31,r4,r31                             
                                                                      
  switch (mode & S_IFMT) {                                            
ffc06244:	57 e9 04 26 	rlwinm  r9,r31,0,16,19                         
  const char *path,                                                   
  mode_t mode,                                                        
  const IMFS_node_control *node_control,                              
  void *context                                                       
)                                                                     
{                                                                     
ffc06248:	93 c1 00 70 	stw     r30,112(r1)                            
  int rv = 0;                                                         
                                                                      
  mode &= ~rtems_filesystem_umask;                                    
                                                                      
  switch (mode & S_IFMT) {                                            
ffc0624c:	2f 89 20 00 	cmpwi   cr7,r9,8192                            
  const char *path,                                                   
  mode_t mode,                                                        
  const IMFS_node_control *node_control,                              
  void *context                                                       
)                                                                     
{                                                                     
ffc06250:	93 81 00 68 	stw     r28,104(r1)                            
ffc06254:	7c be 2b 78 	mr      r30,r5                                 
  int rv = 0;                                                         
                                                                      
  mode &= ~rtems_filesystem_umask;                                    
                                                                      
  switch (mode & S_IFMT) {                                            
ffc06258:	41 9e 00 5c 	beq-    cr7,ffc062b4 <IMFS_make_generic_node+0x98>
ffc0625c:	2b 89 20 00 	cmplwi  cr7,r9,8192                            
ffc06260:	41 9d 00 40 	bgt-    cr7,ffc062a0 <IMFS_make_generic_node+0x84><== ALWAYS TAKEN
ffc06264:	2f 89 10 00 	cmpwi   cr7,r9,4096                            <== NOT EXECUTED
ffc06268:	41 9e 00 4c 	beq-    cr7,ffc062b4 <IMFS_make_generic_node+0x98><== NOT EXECUTED
        rv = -1;                                                      
      }                                                               
                                                                      
      rtems_filesystem_eval_path_cleanup( &ctx );                     
    } else {                                                          
      errno = EINVAL;                                                 
ffc0626c:	48 01 28 f5 	bl      ffc18b60 <__errno>                     
      rv = -1;                                                        
    }                                                                 
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc06270:	80 01 00 7c 	lwz     r0,124(r1)                             
      }                                                               
                                                                      
      rtems_filesystem_eval_path_cleanup( &ctx );                     
    } else {                                                          
      errno = EINVAL;                                                 
      rv = -1;                                                        
ffc06274:	3b e0 ff ff 	li      r31,-1                                 
    }                                                                 
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc06278:	83 81 00 68 	lwz     r28,104(r1)                            
ffc0627c:	7c 08 03 a6 	mtlr    r0                                     
        rv = -1;                                                      
      }                                                               
                                                                      
      rtems_filesystem_eval_path_cleanup( &ctx );                     
    } else {                                                          
      errno = EINVAL;                                                 
ffc06280:	39 20 00 16 	li      r9,22                                  
ffc06284:	91 23 00 00 	stw     r9,0(r3)                               
      rv = -1;                                                        
    }                                                                 
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc06288:	7f e3 fb 78 	mr      r3,r31                                 
ffc0628c:	83 a1 00 6c 	lwz     r29,108(r1)                            
ffc06290:	83 c1 00 70 	lwz     r30,112(r1)                            
ffc06294:	83 e1 00 74 	lwz     r31,116(r1)                            
ffc06298:	38 21 00 78 	addi    r1,r1,120                              
ffc0629c:	4e 80 00 20 	blr                                            
{                                                                     
  int rv = 0;                                                         
                                                                      
  mode &= ~rtems_filesystem_umask;                                    
                                                                      
  switch (mode & S_IFMT) {                                            
ffc062a0:	2f 89 60 00 	cmpwi   cr7,r9,24576                           
ffc062a4:	41 9e 00 10 	beq-    cr7,ffc062b4 <IMFS_make_generic_node+0x98>
ffc062a8:	6d 2a ff ff 	xoris   r10,r9,65535                           
ffc062ac:	2f 8a 80 00 	cmpwi   cr7,r10,-32768                         
ffc062b0:	40 9e ff bc 	bne+    cr7,ffc0626c <IMFS_make_generic_node+0x50><== ALWAYS TAKEN
      rv = -1;                                                        
      break;                                                          
  }                                                                   
                                                                      
  if ( rv == 0 ) {                                                    
    if ( node_control->imfs_type == IMFS_GENERIC ) {                  
ffc062b4:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc062b8:	2f 89 00 07 	cmpwi   cr7,r9,7                               
ffc062bc:	40 be ff b0 	bne-    cr7,ffc0626c <IMFS_make_generic_node+0x50>
      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 =            
ffc062c0:	7c 64 1b 78 	mr      r4,r3                                  
ffc062c4:	38 a0 00 78 	li      r5,120                                 
ffc062c8:	38 61 00 08 	addi    r3,r1,8                                
ffc062cc:	48 00 25 29 	bl      ffc087f4 <rtems_filesystem_eval_path_start>
ffc062d0:	7c 7c 1b 78 	mr      r28,r3                                 
        rtems_filesystem_eval_path_start( &ctx, path, eval_flags );   
                                                                      
      if ( IMFS_is_imfs_instance( currentloc ) ) {                    
ffc062d4:	4b ff fe d5 	bl      ffc061a8 <IMFS_is_imfs_instance>       
ffc062d8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc062dc:	40 9e 00 40 	bne-    cr7,ffc0631c <IMFS_make_generic_node+0x100>
          IMFS_update_mtime( parent );                                
        } else {                                                      
          rv = -1;                                                    
        }                                                             
      } else {                                                        
        rtems_filesystem_eval_path_error( &ctx, ENOTSUP );            
ffc062e0:	38 61 00 08 	addi    r3,r1,8                                
ffc062e4:	38 80 00 86 	li      r4,134                                 
ffc062e8:	48 00 21 3d 	bl      ffc08424 <rtems_filesystem_eval_path_error>
        rv = -1;                                                      
ffc062ec:	3b e0 ff ff 	li      r31,-1                                 
      }                                                               
                                                                      
      rtems_filesystem_eval_path_cleanup( &ctx );                     
ffc062f0:	38 61 00 08 	addi    r3,r1,8                                
ffc062f4:	48 00 26 49 	bl      ffc0893c <rtems_filesystem_eval_path_cleanup>
      rv = -1;                                                        
    }                                                                 
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc062f8:	80 01 00 7c 	lwz     r0,124(r1)                             
ffc062fc:	7f e3 fb 78 	mr      r3,r31                                 
ffc06300:	83 81 00 68 	lwz     r28,104(r1)                            
ffc06304:	7c 08 03 a6 	mtlr    r0                                     
ffc06308:	83 a1 00 6c 	lwz     r29,108(r1)                            
ffc0630c:	83 c1 00 70 	lwz     r30,112(r1)                            
ffc06310:	83 e1 00 74 	lwz     r31,116(r1)                            
ffc06314:	38 21 00 78 	addi    r1,r1,120                              
ffc06318:	4e 80 00 20 	blr                                            
      if ( IMFS_is_imfs_instance( currentloc ) ) {                    
        IMFS_types_union info;                                        
        IMFS_jnode_t *new_node;                                       
                                                                      
        info.generic.context = context;                               
        new_node = IMFS_create_node_with_control(                     
ffc0631c:	80 a1 00 10 	lwz     r5,16(r1)                              
ffc06320:	7f e7 fb 78 	mr      r7,r31                                 
ffc06324:	80 c1 00 14 	lwz     r6,20(r1)                              
ffc06328:	7f 83 e3 78 	mr      r3,r28                                 
ffc0632c:	7f c4 f3 78 	mr      r4,r30                                 
                                                                      
      if ( IMFS_is_imfs_instance( currentloc ) ) {                    
        IMFS_types_union info;                                        
        IMFS_jnode_t *new_node;                                       
                                                                      
        info.generic.context = context;                               
ffc06330:	93 a1 00 40 	stw     r29,64(r1)                             
        new_node = IMFS_create_node_with_control(                     
ffc06334:	39 01 00 40 	addi    r8,r1,64                               
ffc06338:	48 00 da 01 	bl      ffc13d38 <IMFS_create_node_with_control>
          IMFS_jnode_t *parent = currentloc->node_access;             
                                                                      
          IMFS_update_ctime( parent );                                
          IMFS_update_mtime( parent );                                
        } else {                                                      
          rv = -1;                                                    
ffc0633c:	3b e0 ff ff 	li      r31,-1                                 
          rtems_filesystem_eval_path_get_tokenlen( &ctx ),            
          mode,                                                       
          &info                                                       
        );                                                            
                                                                      
        if ( new_node != NULL ) {                                     
ffc06340:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06344:	41 be ff ac 	beq-    cr7,ffc062f0 <IMFS_make_generic_node+0xd4>
          IMFS_jnode_t *parent = currentloc->node_access;             
                                                                      
          IMFS_update_ctime( parent );                                
ffc06348:	38 80 00 00 	li      r4,0                                   
          mode,                                                       
          &info                                                       
        );                                                            
                                                                      
        if ( new_node != NULL ) {                                     
          IMFS_jnode_t *parent = currentloc->node_access;             
ffc0634c:	83 dc 00 08 	lwz     r30,8(r28)                             
                                                                      
          IMFS_update_ctime( parent );                                
ffc06350:	38 61 00 58 	addi    r3,r1,88                               
ffc06354:	48 00 09 a5 	bl      ffc06cf8 <gettimeofday>                
ffc06358:	81 21 00 58 	lwz     r9,88(r1)                              
          IMFS_update_mtime( parent );                                
ffc0635c:	38 61 00 58 	addi    r3,r1,88                               
        );                                                            
                                                                      
        if ( new_node != NULL ) {                                     
          IMFS_jnode_t *parent = currentloc->node_access;             
                                                                      
          IMFS_update_ctime( parent );                                
ffc06360:	91 3e 00 48 	stw     r9,72(r30)                             
          IMFS_update_mtime( parent );                                
ffc06364:	38 80 00 00 	li      r4,0                                   
ffc06368:	3b e0 00 00 	li      r31,0                                  
ffc0636c:	48 00 09 8d 	bl      ffc06cf8 <gettimeofday>                
ffc06370:	81 21 00 58 	lwz     r9,88(r1)                              
ffc06374:	91 3e 00 44 	stw     r9,68(r30)                             
ffc06378:	4b ff ff 78 	b       ffc062f0 <IMFS_make_generic_node+0xd4> 
                                                                      

ffc115b4 <IMFS_memfile_addblock>: */ MEMFILE_STATIC int IMFS_memfile_addblock( IMFS_jnode_t *the_jnode, unsigned int block ) {
ffc115b4:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc115b8:	7c 08 02 a6 	mflr    r0                                     
  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 );
ffc115bc:	38 a0 00 01 	li      r5,1                                   
 */                                                                   
MEMFILE_STATIC int IMFS_memfile_addblock(                             
   IMFS_jnode_t  *the_jnode,                                          
   unsigned int   block                                               
)                                                                     
{                                                                     
ffc115c0:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc115c4:	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 );
ffc115c8:	4b ff fa 49 	bl      ffc11010 <IMFS_memfile_get_block_pointer>
ffc115cc:	7c 7f 1b 78 	mr      r31,r3                                 
  if ( *block_entry_ptr )                                             
ffc115d0:	81 23 00 00 	lwz     r9,0(r3)                               
    return 0;                                                         
ffc115d4:	38 60 00 00 	li      r3,0                                   
                                                                      
  /*                                                                  
   * Obtain the pointer for the specified block number                
   */                                                                 
  block_entry_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 1 );
  if ( *block_entry_ptr )                                             
ffc115d8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc115dc:	41 9e 00 18 	beq-    cr7,ffc115f4 <IMFS_memfile_addblock+0x40>
  if ( !memory )                                                      
    return 1;                                                         
                                                                      
  *block_entry_ptr = memory;                                          
  return 0;                                                           
}                                                                     
ffc115e0:	80 01 00 14 	lwz     r0,20(r1)                              
ffc115e4:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc115e8:	7c 08 03 a6 	mtlr    r0                                     
ffc115ec:	38 21 00 10 	addi    r1,r1,16                               
ffc115f0:	4e 80 00 20 	blr                                            
    return 0;                                                         
                                                                      
  /*                                                                  
   *  There is no memory for this block number so allocate it.        
   */                                                                 
  memory = memfile_alloc_block();                                     
ffc115f4:	4b ff f9 d9 	bl      ffc10fcc <memfile_alloc_block>         
  if ( !memory )                                                      
ffc115f8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc115fc:	41 82 00 10 	beq-    ffc1160c <IMFS_memfile_addblock+0x58>  <== NEVER TAKEN
    return 1;                                                         
                                                                      
  *block_entry_ptr = memory;                                          
ffc11600:	90 7f 00 00 	stw     r3,0(r31)                              
  return 0;                                                           
ffc11604:	38 60 00 00 	li      r3,0                                   
ffc11608:	4b ff ff d8 	b       ffc115e0 <IMFS_memfile_addblock+0x2c>  
  /*                                                                  
   *  There is no memory for this block number so allocate it.        
   */                                                                 
  memory = memfile_alloc_block();                                     
  if ( !memory )                                                      
    return 1;                                                         
ffc1160c:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc11610:	4b ff ff d0 	b       ffc115e0 <IMFS_memfile_addblock+0x2c>  <== NOT EXECUTED
                                                                      

ffc118bc <IMFS_memfile_extend>: MEMFILE_STATIC int IMFS_memfile_extend( IMFS_jnode_t *the_jnode, bool zero_fill, off_t new_length ) {
ffc118bc:	94 21 ff b8 	stwu    r1,-72(r1)                             
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc118c0:	39 00 00 00 	li      r8,0                                   
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   bool           zero_fill,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
ffc118c4:	7d 80 00 26 	mfcr    r12                                    
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc118c8:	7f 88 28 00 	cmpw    cr7,r8,r5                              
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   bool           zero_fill,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
ffc118cc:	93 21 00 2c 	stw     r25,44(r1)                             
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc118d0:	3f 20 00 00 	lis     r25,0                                  
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   bool           zero_fill,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
ffc118d4:	7c 08 02 a6 	mflr    r0                                     
ffc118d8:	93 e1 00 44 	stw     r31,68(r1)                             
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc118dc:	83 f9 28 44 	lwz     r31,10308(r25)                         
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   bool           zero_fill,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
ffc118e0:	92 c1 00 20 	stw     r22,32(r1)                             
ffc118e4:	7c 96 23 78 	mr      r22,r4                                 
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc118e8:	57 e9 f0 be 	rlwinm  r9,r31,30,2,31                         
ffc118ec:	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                                          
)                                                                     
{                                                                     
ffc118f0:	92 e1 00 24 	stw     r23,36(r1)                             
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc118f4:	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                                          
)                                                                     
{                                                                     
ffc118f8:	93 41 00 30 	stw     r26,48(r1)                             
ffc118fc:	7c d7 33 78 	mr      r23,r6                                 
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc11900:	39 4a 00 01 	addi    r10,r10,1                              
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   bool           zero_fill,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
ffc11904:	93 c1 00 40 	stw     r30,64(r1)                             
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc11908:	7d 2a 49 d6 	mullw   r9,r10,r9                              
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   bool           zero_fill,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
ffc1190c:	90 01 00 4c 	stw     r0,76(r1)                              
ffc11910:	7c ba 2b 78 	mr      r26,r5                                 
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc11914:	39 29 ff ff 	addi    r9,r9,-1                               
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   bool           zero_fill,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
ffc11918:	93 01 00 28 	stw     r24,40(r1)                             
ffc1191c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc11920:	93 61 00 34 	stw     r27,52(r1)                             
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc11924:	7d 29 f9 d6 	mullw   r9,r9,r31                              
MEMFILE_STATIC int IMFS_memfile_extend(                               
   IMFS_jnode_t  *the_jnode,                                          
   bool           zero_fill,                                          
   off_t          new_length                                          
)                                                                     
{                                                                     
ffc11928:	93 81 00 38 	stw     r28,56(r1)                             
ffc1192c:	93 a1 00 3c 	stw     r29,60(r1)                             
ffc11930:	91 81 00 1c 	stw     r12,28(r1)                             
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc11934:	40 9d 01 f8 	ble-    cr7,ffc11b2c <IMFS_memfile_extend+0x270><== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( EFBIG );                    
                                                                      
  /*                                                                  
   *  Verify new file size is actually larger than current size       
   */                                                                 
  if ( new_length <= the_jnode->info.file.size )                      
ffc11938:	83 7e 00 50 	lwz     r27,80(r30)                            
ffc1193c:	83 1e 00 54 	lwz     r24,84(r30)                            
ffc11940:	7f 9a d8 00 	cmpw    cr7,r26,r27                            
ffc11944:	40 9d 01 28 	ble-    cr7,ffc11a6c <IMFS_memfile_extend+0x1b0><== ALWAYS TAKEN
    return 0;                                                         
                                                                      
  /*                                                                  
   *  Calculate the number of range of blocks to allocate             
   */                                                                 
  new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;             
ffc11948:	7f fc fe 70 	srawi   r28,r31,31                             
ffc1194c:	7f 85 e3 78 	mr      r5,r28                                 
ffc11950:	7f e6 fb 78 	mr      r6,r31                                 
ffc11954:	7f 43 d3 78 	mr      r3,r26                                 
ffc11958:	7e e4 bb 78 	mr      r4,r23                                 
ffc1195c:	48 00 af 35 	bl      ffc1c890 <__divdi3>                    
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc11960:	7f 63 db 78 	mr      r3,r27                                 
    return 0;                                                         
                                                                      
  /*                                                                  
   *  Calculate the number of range of blocks to allocate             
   */                                                                 
  new_blocks = new_length / IMFS_MEMFILE_BYTES_PER_BLOCK;             
ffc11964:	7c 9d 23 78 	mr      r29,r4                                 
  old_blocks = the_jnode->info.file.size / IMFS_MEMFILE_BYTES_PER_BLOCK;
ffc11968:	7f 85 e3 78 	mr      r5,r28                                 
ffc1196c:	7f e6 fb 78 	mr      r6,r31                                 
ffc11970:	7f 04 c3 78 	mr      r4,r24                                 
ffc11974:	48 00 af 1d 	bl      ffc1c890 <__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 ) {                                             
ffc11978:	2e 16 00 00 	cmpwi   cr4,r22,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++ ) {            
ffc1197c:	7f 9d 20 40 	cmplw   cr7,r29,r4                             
  /*                                                                  
   *  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;
ffc11980:	7f 84 f9 d6 	mullw   r28,r4,r31                             
                                                                      
  /*                                                                  
   *  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;
ffc11984:	7c 9b 23 78 	mr      r27,r4                                 
  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++ ) {            
ffc11988:	7c 9f 23 78 	mr      r31,r4                                 
  /*                                                                  
   *  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;
ffc1198c:	7f 9c c0 50 	subf    r28,r28,r24                            
                                                                      
  /*                                                                  
   *  Now allocate each of those blocks.                              
   */                                                                 
  for ( block=old_blocks ; block<=new_blocks ; block++ ) {            
ffc11990:	40 bc 00 14 	bge+    cr7,ffc119a4 <IMFS_memfile_extend+0xe8><== ALWAYS TAKEN
ffc11994:	48 00 00 64 	b       ffc119f8 <IMFS_memfile_extend+0x13c>   <== NOT EXECUTED
ffc11998:	3b ff 00 01 	addi    r31,r31,1                              
ffc1199c:	7f 9d f8 40 	cmplw   cr7,r29,r31                            
ffc119a0:	41 9c 00 58 	blt-    cr7,ffc119f8 <IMFS_memfile_extend+0x13c>
    if ( !IMFS_memfile_addblock( the_jnode, block ) ) {               
ffc119a4:	7f e4 fb 78 	mr      r4,r31                                 
ffc119a8:	7f c3 f3 78 	mr      r3,r30                                 
ffc119ac:	4b ff fc 09 	bl      ffc115b4 <IMFS_memfile_addblock>       
ffc119b0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc119b4:	40 9e 01 08 	bne-    cr7,ffc11abc <IMFS_memfile_extend+0x200><== NEVER TAKEN
       if ( zero_fill ) {                                             
ffc119b8:	41 92 ff e0 	beq+    cr4,ffc11998 <IMFS_memfile_extend+0xdc>
          size_t count = IMFS_MEMFILE_BYTES_PER_BLOCK - offset;       
          block_p *block_ptr =                                        
ffc119bc:	7f e4 fb 78 	mr      r4,r31                                 
   *  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;       
ffc119c0:	83 19 28 44 	lwz     r24,10308(r25)                         
          block_p *block_ptr =                                        
ffc119c4:	38 a0 00 00 	li      r5,0                                   
ffc119c8:	7f c3 f3 78 	mr      r3,r30                                 
ffc119cc:	4b ff f6 45 	bl      ffc11010 <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;       
ffc119d0:	7f 1c c0 50 	subf    r24,r28,r24                            
          block_p *block_ptr =                                        
            IMFS_memfile_get_block_pointer( the_jnode, block, 0 );    
                                                                      
          memset( &(*block_ptr) [offset], 0, count);                  
ffc119d4:	80 63 00 00 	lwz     r3,0(r3)                               
ffc119d8:	38 80 00 00 	li      r4,0                                   
ffc119dc:	7f 05 c3 78 	mr      r5,r24                                 
ffc119e0:	7c 63 e2 14 	add     r3,r3,r28                              
  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++ ) {            
ffc119e4:	3b ff 00 01 	addi    r31,r31,1                              
       if ( zero_fill ) {                                             
          size_t count = IMFS_MEMFILE_BYTES_PER_BLOCK - offset;       
          block_p *block_ptr =                                        
            IMFS_memfile_get_block_pointer( the_jnode, block, 0 );    
                                                                      
          memset( &(*block_ptr) [offset], 0, count);                  
ffc119e8:	48 00 24 89 	bl      ffc13e70 <memset>                      
  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++ ) {            
ffc119ec:	7f 9d f8 40 	cmplw   cr7,r29,r31                            
          size_t count = IMFS_MEMFILE_BYTES_PER_BLOCK - offset;       
          block_p *block_ptr =                                        
            IMFS_memfile_get_block_pointer( the_jnode, block, 0 );    
                                                                      
          memset( &(*block_ptr) [offset], 0, count);                  
          offset = 0;                                                 
ffc119f0:	3b 80 00 00 	li      r28,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++ ) {            
ffc119f4:	40 9c ff b0 	bge+    cr7,ffc119a4 <IMFS_memfile_extend+0xe8>
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
ffc119f8:	93 5e 00 50 	stw     r26,80(r30)                            
                                                                      
  IMFS_update_ctime(the_jnode);                                       
ffc119fc:	38 80 00 00 	li      r4,0                                   
ffc11a00:	38 61 00 08 	addi    r3,r1,8                                
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
ffc11a04:	92 fe 00 54 	stw     r23,84(r30)                            
                                                                      
  IMFS_update_ctime(the_jnode);                                       
ffc11a08:	4b ff 32 4d 	bl      ffc04c54 <gettimeofday>                
ffc11a0c:	81 21 00 08 	lwz     r9,8(r1)                               
  IMFS_update_mtime(the_jnode);                                       
ffc11a10:	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);                                       
ffc11a14:	91 3e 00 48 	stw     r9,72(r30)                             
  IMFS_update_mtime(the_jnode);                                       
ffc11a18:	38 80 00 00 	li      r4,0                                   
ffc11a1c:	4b ff 32 39 	bl      ffc04c54 <gettimeofday>                
  return 0;                                                           
}                                                                     
ffc11a20:	80 01 00 4c 	lwz     r0,76(r1)                              
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
                                                                      
  IMFS_update_ctime(the_jnode);                                       
  IMFS_update_mtime(the_jnode);                                       
ffc11a24:	81 21 00 08 	lwz     r9,8(r1)                               
  return 0;                                                           
ffc11a28:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc11a2c:	7c 08 03 a6 	mtlr    r0                                     
ffc11a30:	81 81 00 1c 	lwz     r12,28(r1)                             
   *  Set the new length of the file.                                 
   */                                                                 
  the_jnode->info.file.size = new_length;                             
                                                                      
  IMFS_update_ctime(the_jnode);                                       
  IMFS_update_mtime(the_jnode);                                       
ffc11a34:	91 3e 00 44 	stw     r9,68(r30)                             
  return 0;                                                           
}                                                                     
ffc11a38:	7d 80 81 20 	mtcrf   8,r12                                  
ffc11a3c:	82 c1 00 20 	lwz     r22,32(r1)                             
ffc11a40:	82 e1 00 24 	lwz     r23,36(r1)                             
ffc11a44:	83 01 00 28 	lwz     r24,40(r1)                             
ffc11a48:	83 21 00 2c 	lwz     r25,44(r1)                             
ffc11a4c:	83 41 00 30 	lwz     r26,48(r1)                             
ffc11a50:	83 61 00 34 	lwz     r27,52(r1)                             
ffc11a54:	83 81 00 38 	lwz     r28,56(r1)                             
ffc11a58:	83 a1 00 3c 	lwz     r29,60(r1)                             
ffc11a5c:	83 c1 00 40 	lwz     r30,64(r1)                             
ffc11a60:	83 e1 00 44 	lwz     r31,68(r1)                             
ffc11a64:	38 21 00 48 	addi    r1,r1,72                               
ffc11a68:	4e 80 00 20 	blr                                            
    rtems_set_errno_and_return_minus_one( EFBIG );                    
                                                                      
  /*                                                                  
   *  Verify new file size is actually larger than current size       
   */                                                                 
  if ( new_length <= the_jnode->info.file.size )                      
ffc11a6c:	40 9e 00 0c 	bne-    cr7,ffc11a78 <IMFS_memfile_extend+0x1bc><== NEVER TAKEN
ffc11a70:	7f 97 c0 40 	cmplw   cr7,r23,r24                            
ffc11a74:	41 9d fe d4 	bgt+    cr7,ffc11948 <IMFS_memfile_extend+0x8c><== ALWAYS TAKEN
    return 0;                                                         
ffc11a78:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
  the_jnode->info.file.size = new_length;                             
                                                                      
  IMFS_update_ctime(the_jnode);                                       
  IMFS_update_mtime(the_jnode);                                       
  return 0;                                                           
}                                                                     
ffc11a7c:	80 01 00 4c 	lwz     r0,76(r1)                              
ffc11a80:	81 81 00 1c 	lwz     r12,28(r1)                             
ffc11a84:	7c 08 03 a6 	mtlr    r0                                     
ffc11a88:	82 c1 00 20 	lwz     r22,32(r1)                             
ffc11a8c:	82 e1 00 24 	lwz     r23,36(r1)                             
ffc11a90:	7d 80 81 20 	mtcrf   8,r12                                  
ffc11a94:	83 01 00 28 	lwz     r24,40(r1)                             
ffc11a98:	83 21 00 2c 	lwz     r25,44(r1)                             
ffc11a9c:	83 41 00 30 	lwz     r26,48(r1)                             
ffc11aa0:	83 61 00 34 	lwz     r27,52(r1)                             
ffc11aa4:	83 81 00 38 	lwz     r28,56(r1)                             
ffc11aa8:	83 a1 00 3c 	lwz     r29,60(r1)                             
ffc11aac:	83 c1 00 40 	lwz     r30,64(r1)                             
ffc11ab0:	83 e1 00 44 	lwz     r31,68(r1)                             
ffc11ab4:	38 21 00 48 	addi    r1,r1,72                               
ffc11ab8:	4e 80 00 20 	blr                                            
                                                                      
          memset( &(*block_ptr) [offset], 0, count);                  
          offset = 0;                                                 
       }                                                              
    } else {                                                          
       for ( ; block>=old_blocks ; block-- ) {                        
ffc11abc:	7f 9f d8 40 	cmplw   cr7,r31,r27                            <== NOT EXECUTED
ffc11ac0:	41 9c 00 1c 	blt-    cr7,ffc11adc <IMFS_memfile_extend+0x220><== NOT EXECUTED
         IMFS_memfile_remove_block( the_jnode, block );               
ffc11ac4:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc11ac8:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
                                                                      
          memset( &(*block_ptr) [offset], 0, count);                  
          offset = 0;                                                 
       }                                                              
    } else {                                                          
       for ( ; block>=old_blocks ; block-- ) {                        
ffc11acc:	3b ff ff ff 	addi    r31,r31,-1                             <== NOT EXECUTED
         IMFS_memfile_remove_block( the_jnode, block );               
ffc11ad0:	4b ff fd b1 	bl      ffc11880 <IMFS_memfile_remove_block>   <== NOT EXECUTED
                                                                      
          memset( &(*block_ptr) [offset], 0, count);                  
          offset = 0;                                                 
       }                                                              
    } else {                                                          
       for ( ; block>=old_blocks ; block-- ) {                        
ffc11ad4:	7f 9b f8 40 	cmplw   cr7,r27,r31                            <== NOT EXECUTED
ffc11ad8:	40 9d ff ec 	ble+    cr7,ffc11ac4 <IMFS_memfile_extend+0x208><== NOT EXECUTED
         IMFS_memfile_remove_block( the_jnode, block );               
       }                                                              
       rtems_set_errno_and_return_minus_one( ENOSPC );                
ffc11adc:	48 00 15 9d 	bl      ffc13078 <__errno>                     <== NOT EXECUTED
  the_jnode->info.file.size = new_length;                             
                                                                      
  IMFS_update_ctime(the_jnode);                                       
  IMFS_update_mtime(the_jnode);                                       
  return 0;                                                           
}                                                                     
ffc11ae0:	80 01 00 4c 	lwz     r0,76(r1)                              <== NOT EXECUTED
ffc11ae4:	81 81 00 1c 	lwz     r12,28(r1)                             <== NOT EXECUTED
       }                                                              
    } else {                                                          
       for ( ; block>=old_blocks ; block-- ) {                        
         IMFS_memfile_remove_block( the_jnode, block );               
       }                                                              
       rtems_set_errno_and_return_minus_one( ENOSPC );                
ffc11ae8:	39 20 00 1c 	li      r9,28                                  <== NOT EXECUTED
  the_jnode->info.file.size = new_length;                             
                                                                      
  IMFS_update_ctime(the_jnode);                                       
  IMFS_update_mtime(the_jnode);                                       
  return 0;                                                           
}                                                                     
ffc11aec:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
       }                                                              
    } else {                                                          
       for ( ; block>=old_blocks ; block-- ) {                        
         IMFS_memfile_remove_block( the_jnode, block );               
       }                                                              
       rtems_set_errno_and_return_minus_one( ENOSPC );                
ffc11af0:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
  the_jnode->info.file.size = new_length;                             
                                                                      
  IMFS_update_ctime(the_jnode);                                       
  IMFS_update_mtime(the_jnode);                                       
  return 0;                                                           
}                                                                     
ffc11af4:	7d 80 81 20 	mtcrf   8,r12                                  <== NOT EXECUTED
       }                                                              
    } else {                                                          
       for ( ; block>=old_blocks ; block-- ) {                        
         IMFS_memfile_remove_block( the_jnode, block );               
       }                                                              
       rtems_set_errno_and_return_minus_one( ENOSPC );                
ffc11af8:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  the_jnode->info.file.size = new_length;                             
                                                                      
  IMFS_update_ctime(the_jnode);                                       
  IMFS_update_mtime(the_jnode);                                       
  return 0;                                                           
}                                                                     
ffc11afc:	82 c1 00 20 	lwz     r22,32(r1)                             <== NOT EXECUTED
ffc11b00:	82 e1 00 24 	lwz     r23,36(r1)                             <== NOT EXECUTED
ffc11b04:	83 01 00 28 	lwz     r24,40(r1)                             <== NOT EXECUTED
ffc11b08:	83 21 00 2c 	lwz     r25,44(r1)                             <== NOT EXECUTED
ffc11b0c:	83 41 00 30 	lwz     r26,48(r1)                             <== NOT EXECUTED
ffc11b10:	83 61 00 34 	lwz     r27,52(r1)                             <== NOT EXECUTED
ffc11b14:	83 81 00 38 	lwz     r28,56(r1)                             <== NOT EXECUTED
ffc11b18:	83 a1 00 3c 	lwz     r29,60(r1)                             <== NOT EXECUTED
ffc11b1c:	83 c1 00 40 	lwz     r30,64(r1)                             <== NOT EXECUTED
ffc11b20:	83 e1 00 44 	lwz     r31,68(r1)                             <== NOT EXECUTED
ffc11b24:	38 21 00 48 	addi    r1,r1,72                               <== NOT EXECUTED
ffc11b28:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    IMFS_assert( IMFS_type( the_jnode ) == IMFS_MEMORY_FILE );        
                                                                      
  /*                                                                  
   *  Verify new file size is supported                               
   */                                                                 
  if ( new_length >= IMFS_MEMFILE_MAXIMUM_SIZE )                      
ffc11b2c:	40 9e 00 0c 	bne-    cr7,ffc11b38 <IMFS_memfile_extend+0x27c><== NEVER TAKEN
ffc11b30:	7f 89 30 40 	cmplw   cr7,r9,r6                              
ffc11b34:	41 9d fe 04 	bgt+    cr7,ffc11938 <IMFS_memfile_extend+0x7c>
    rtems_set_errno_and_return_minus_one( EFBIG );                    
ffc11b38:	48 00 15 41 	bl      ffc13078 <__errno>                     
ffc11b3c:	39 20 00 1b 	li      r9,27                                  
ffc11b40:	91 23 00 00 	stw     r9,0(r3)                               
ffc11b44:	38 60 ff ff 	li      r3,-1                                  
ffc11b48:	4b ff ff 34 	b       ffc11a7c <IMFS_memfile_extend+0x1c0>   
                                                                      

ffc11010 <IMFS_memfile_get_block_pointer>: my_block = block; /* * Is the block number in the simple indirect portion? */ if ( my_block <= LAST_INDIRECT ) {
ffc11010:	3d 20 00 00 	lis     r9,0                                   
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
ffc11014:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc11018:	7c 08 02 a6 	mflr    r0                                     
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
ffc1101c:	81 29 28 44 	lwz     r9,10308(r9)                           
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
ffc11020:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc11024:	7c 7f 1b 78 	mr      r31,r3                                 
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
ffc11028:	55 29 f0 be 	rlwinm  r9,r9,30,2,31                          
ffc1102c:	39 49 ff ff 	addi    r10,r9,-1                              
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
ffc11030:	90 01 00 24 	stw     r0,36(r1)                              
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
ffc11034:	7f 84 50 40 	cmplw   cr7,r4,r10                             
#endif                                                                
   IMFS_jnode_t   *the_jnode,                                         
   unsigned int    block,                                             
   int             malloc_it                                          
)                                                                     
{                                                                     
ffc11038:	93 81 00 10 	stw     r28,16(r1)                             
ffc1103c:	93 a1 00 14 	stw     r29,20(r1)                             
ffc11040:	93 c1 00 18 	stw     r30,24(r1)                             
  my_block = block;                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
ffc11044:	41 9d 00 40 	bgt-    cr7,ffc11084 <IMFS_memfile_get_block_pointer+0x74>
    p = info->indirect;                                               
                                                                      
    if ( malloc_it ) {                                                
ffc11048:	2f 85 00 00 	cmpwi   cr7,r5,0                               
                                                                      
  /*                                                                  
   *  Is the block number in the simple indirect portion?             
   */                                                                 
  if ( my_block <= LAST_INDIRECT ) {                                  
    p = info->indirect;                                               
ffc1104c:	80 63 00 58 	lwz     r3,88(r3)                              
                                                                      
    if ( malloc_it ) {                                                
ffc11050:	40 9e 01 3c 	bne-    cr7,ffc1118c <IMFS_memfile_get_block_pointer+0x17c>
        info->indirect = p;                                           
      }                                                               
      return &info->indirect[ my_block ];                             
    }                                                                 
                                                                      
    if ( !p )                                                         
ffc11054:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11058:	41 9e 01 e8 	beq-    cr7,ffc11240 <IMFS_memfile_get_block_pointer+0x230><== NEVER TAKEN
      return 0;                                                       
                                                                      
    return &info->indirect[ my_block ];                               
ffc1105c:	54 84 10 3a 	rlwinm  r4,r4,2,0,29                           
ffc11060:	7c 63 22 14 	add     r3,r3,r4                               
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
ffc11064:	80 01 00 24 	lwz     r0,36(r1)                              
ffc11068:	83 81 00 10 	lwz     r28,16(r1)                             
ffc1106c:	7c 08 03 a6 	mtlr    r0                                     
ffc11070:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc11074:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc11078:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc1107c:	38 21 00 20 	addi    r1,r1,32                               
ffc11080:	4e 80 00 20 	blr                                            
                                                                      
  /*                                                                  
   *  Is the block number in the doubly indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
ffc11084:	39 49 00 01 	addi    r10,r9,1                               
ffc11088:	7d 4a 49 d6 	mullw   r10,r10,r9                             
ffc1108c:	39 0a ff ff 	addi    r8,r10,-1                              
ffc11090:	7f 84 40 40 	cmplw   cr7,r4,r8                              
ffc11094:	40 9d 00 98 	ble-    cr7,ffc1112c <IMFS_memfile_get_block_pointer+0x11c>
  }                                                                   
                                                                      
  /*                                                                  
   *  Is the block number in the triply indirect portion?             
   */                                                                 
  if ( my_block <= LAST_TRIPLY_INDIRECT ) {                           
ffc11098:	39 0a 00 01 	addi    r8,r10,1                               
ffc1109c:	7d 08 49 d6 	mullw   r8,r8,r9                               
ffc110a0:	39 08 ff ff 	addi    r8,r8,-1                               
ffc110a4:	7f 84 40 40 	cmplw   cr7,r4,r8                              
ffc110a8:	41 9d 01 98 	bgt-    cr7,ffc11240 <IMFS_memfile_get_block_pointer+0x230><== NEVER TAKEN
    my_block -= FIRST_TRIPLY_INDIRECT;                                
ffc110ac:	7c 8a 20 50 	subf    r4,r10,r4                              
    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;                               
                                                                      
    p = info->triply_indirect;                                        
ffc110b0:	80 63 00 60 	lwz     r3,96(r3)                              
   *  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;                     
ffc110b4:	7d 04 4b 96 	divwu   r8,r4,r9                               
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
ffc110b8:	7f c8 4b 96 	divwu   r30,r8,r9                              
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
                                                                      
    p = info->triply_indirect;                                        
                                                                      
    if ( malloc_it ) {                                                
ffc110bc:	2f 85 00 00 	cmpwi   cr7,r5,0                               
   *  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;                     
ffc110c0:	7d 48 49 d6 	mullw   r10,r8,r9                              
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
ffc110c4:	7d 3e 49 d6 	mullw   r9,r30,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;                     
ffc110c8:	7f 8a 20 50 	subf    r28,r10,r4                             
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
    triply = doubly / IMFS_MEMFILE_BLOCK_SLOTS;                       
    doubly %= IMFS_MEMFILE_BLOCK_SLOTS;                               
ffc110cc:	7f a9 40 50 	subf    r29,r9,r8                              
                                                                      
    p = info->triply_indirect;                                        
                                                                      
    if ( malloc_it ) {                                                
ffc110d0:	41 9e 01 20 	beq-    cr7,ffc111f0 <IMFS_memfile_get_block_pointer+0x1e0>
      if ( !p ) {                                                     
ffc110d4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc110d8:	41 9e 01 c0 	beq-    cr7,ffc11298 <IMFS_memfile_get_block_pointer+0x288>
        if ( !p )                                                     
           return 0;                                                  
        info->triply_indirect = p;                                    
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
ffc110dc:	57 de 10 3a 	rlwinm  r30,r30,2,0,29                         
ffc110e0:	7c c3 f0 2e 	lwzx    r6,r3,r30                              
ffc110e4:	7f c3 f2 14 	add     r30,r3,r30                             
      if ( !p1 ) {                                                    
ffc110e8:	2f 86 00 00 	cmpwi   cr7,r6,0                               
ffc110ec:	41 9e 01 98 	beq-    cr7,ffc11284 <IMFS_memfile_get_block_pointer+0x274>
        if ( !p1 )                                                    
           return 0;                                                  
        p[ triply ] = (block_p) p1;                                   
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
ffc110f0:	57 bd 10 3a 	rlwinm  r29,r29,2,0,29                         
ffc110f4:	7c e6 e8 2e 	lwzx    r7,r6,r29                              
ffc110f8:	7f a6 ea 14 	add     r29,r6,r29                             
      if ( !p2 ) {                                                    
ffc110fc:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc11100:	41 9e 01 5c 	beq-    cr7,ffc1125c <IMFS_memfile_get_block_pointer+0x24c>
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
ffc11104:	80 01 00 24 	lwz     r0,36(r1)                              
        p2 = memfile_alloc_block();                                   
        if ( !p2 )                                                    
           return 0;                                                  
        p1[ doubly ] = (block_p) p2;                                  
      }                                                               
      return (block_p *)&p2[ singly ];                                
ffc11108:	57 83 10 3a 	rlwinm  r3,r28,2,0,29                          
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
ffc1110c:	83 a1 00 14 	lwz     r29,20(r1)                             
        p2 = memfile_alloc_block();                                   
        if ( !p2 )                                                    
           return 0;                                                  
        p1[ doubly ] = (block_p) p2;                                  
      }                                                               
      return (block_p *)&p2[ singly ];                                
ffc11110:	7c 67 1a 14 	add     r3,r7,r3                               
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
ffc11114:	7c 08 03 a6 	mtlr    r0                                     
ffc11118:	83 81 00 10 	lwz     r28,16(r1)                             
ffc1111c:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc11120:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc11124:	38 21 00 20 	addi    r1,r1,32                               
ffc11128:	4e 80 00 20 	blr                                            
  /*                                                                  
   *  Is the block number in the doubly indirect portion?             
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
    my_block -= FIRST_DOUBLY_INDIRECT;                                
ffc1112c:	7c 89 20 50 	subf    r4,r9,r4                               
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
                                                                      
    p = info->doubly_indirect;                                        
ffc11130:	80 63 00 5c 	lwz     r3,92(r3)                              
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
    my_block -= FIRST_DOUBLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
ffc11134:	7f c4 4b 96 	divwu   r30,r4,r9                              
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
                                                                      
    p = info->doubly_indirect;                                        
    if ( malloc_it ) {                                                
ffc11138:	2f 85 00 00 	cmpwi   cr7,r5,0                               
   */                                                                 
                                                                      
  if ( my_block <= LAST_DOUBLY_INDIRECT ) {                           
    my_block -= FIRST_DOUBLY_INDIRECT;                                
                                                                      
    singly = my_block % IMFS_MEMFILE_BLOCK_SLOTS;                     
ffc1113c:	7d 3e 49 d6 	mullw   r9,r30,r9                              
ffc11140:	7f a9 20 50 	subf    r29,r9,r4                              
    doubly = my_block / IMFS_MEMFILE_BLOCK_SLOTS;                     
                                                                      
    p = info->doubly_indirect;                                        
    if ( malloc_it ) {                                                
ffc11144:	41 9e 00 6c 	beq-    cr7,ffc111b0 <IMFS_memfile_get_block_pointer+0x1a0>
                                                                      
      if ( !p ) {                                                     
ffc11148:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1114c:	41 9e 01 24 	beq-    cr7,ffc11270 <IMFS_memfile_get_block_pointer+0x260>
        if ( !p )                                                     
           return 0;                                                  
        info->doubly_indirect = p;                                    
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
ffc11150:	57 de 10 3a 	rlwinm  r30,r30,2,0,29                         
ffc11154:	7d 03 f0 2e 	lwzx    r8,r3,r30                              
ffc11158:	7f c3 f2 14 	add     r30,r3,r30                             
      if ( !p1 ) {                                                    
ffc1115c:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc11160:	41 9e 00 e8 	beq-    cr7,ffc11248 <IMFS_memfile_get_block_pointer+0x238>
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
ffc11164:	80 01 00 24 	lwz     r0,36(r1)                              
        if ( !p1 )                                                    
           return 0;                                                  
        p[ doubly ] = (block_p) p1;                                   
      }                                                               
                                                                      
      return (block_p *)&p1[ singly ];                                
ffc11168:	57 a3 10 3a 	rlwinm  r3,r29,2,0,29                          
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
ffc1116c:	83 81 00 10 	lwz     r28,16(r1)                             
        if ( !p1 )                                                    
           return 0;                                                  
        p[ doubly ] = (block_p) p1;                                   
      }                                                               
                                                                      
      return (block_p *)&p1[ singly ];                                
ffc11170:	7c 68 1a 14 	add     r3,r8,r3                               
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
ffc11174:	7c 08 03 a6 	mtlr    r0                                     
ffc11178:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc1117c:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc11180:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc11184:	38 21 00 20 	addi    r1,r1,32                               
ffc11188:	4e 80 00 20 	blr                                            
  if ( my_block <= LAST_INDIRECT ) {                                  
    p = info->indirect;                                               
                                                                      
    if ( malloc_it ) {                                                
                                                                      
      if ( !p ) {                                                     
ffc1118c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11190:	40 9e fe cc 	bne+    cr7,ffc1105c <IMFS_memfile_get_block_pointer+0x4c>
        p = memfile_alloc_block();                                    
ffc11194:	90 81 00 08 	stw     r4,8(r1)                               
ffc11198:	4b ff fe 35 	bl      ffc10fcc <memfile_alloc_block>         
        if ( !p )                                                     
ffc1119c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc111a0:	80 81 00 08 	lwz     r4,8(r1)                               
ffc111a4:	41 82 00 9c 	beq-    ffc11240 <IMFS_memfile_get_block_pointer+0x230><== NEVER TAKEN
           return 0;                                                  
        info->indirect = p;                                           
ffc111a8:	90 7f 00 58 	stw     r3,88(r31)                             
ffc111ac:	4b ff fe b0 	b       ffc1105c <IMFS_memfile_get_block_pointer+0x4c>
      }                                                               
                                                                      
      return (block_p *)&p1[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
ffc111b0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc111b4:	41 9e 00 8c 	beq-    cr7,ffc11240 <IMFS_memfile_get_block_pointer+0x230><== NEVER TAKEN
      return 0;                                                       
                                                                      
    p = (block_p *)p[ doubly ];                                       
ffc111b8:	57 de 10 3a 	rlwinm  r30,r30,2,0,29                         
ffc111bc:	7d 43 f0 2e 	lwzx    r10,r3,r30                             
    if ( !p )                                                         
ffc111c0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc111c4:	41 9e 00 7c 	beq-    cr7,ffc11240 <IMFS_memfile_get_block_pointer+0x230><== NEVER TAKEN
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
ffc111c8:	80 01 00 24 	lwz     r0,36(r1)                              
                                                                      
    p = (block_p *)p[ doubly ];                                       
    if ( !p )                                                         
      return 0;                                                       
                                                                      
    return (block_p *)&p[ singly ];                                   
ffc111cc:	57 a3 10 3a 	rlwinm  r3,r29,2,0,29                          
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
ffc111d0:	83 81 00 10 	lwz     r28,16(r1)                             
                                                                      
    p = (block_p *)p[ doubly ];                                       
    if ( !p )                                                         
      return 0;                                                       
                                                                      
    return (block_p *)&p[ singly ];                                   
ffc111d4:	7c 6a 1a 14 	add     r3,r10,r3                              
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
ffc111d8:	7c 08 03 a6 	mtlr    r0                                     
ffc111dc:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc111e0:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc111e4:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc111e8:	38 21 00 20 	addi    r1,r1,32                               
ffc111ec:	4e 80 00 20 	blr                                            
        p1[ doubly ] = (block_p) p2;                                  
      }                                                               
      return (block_p *)&p2[ singly ];                                
    }                                                                 
                                                                      
    if ( !p )                                                         
ffc111f0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc111f4:	41 9e 00 4c 	beq-    cr7,ffc11240 <IMFS_memfile_get_block_pointer+0x230><== NEVER TAKEN
      return 0;                                                       
                                                                      
    p1 = (block_p *) p[ triply ];                                     
ffc111f8:	57 de 10 3a 	rlwinm  r30,r30,2,0,29                         
ffc111fc:	7d 43 f0 2e 	lwzx    r10,r3,r30                             
    if ( !p1 )                                                        
ffc11200:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc11204:	41 9e 00 3c 	beq-    cr7,ffc11240 <IMFS_memfile_get_block_pointer+0x230><== NEVER TAKEN
      return 0;                                                       
                                                                      
    p2 = (block_p *)p1[ doubly ];                                     
ffc11208:	57 bd 10 3a 	rlwinm  r29,r29,2,0,29                         
ffc1120c:	7d 2a e8 2e 	lwzx    r9,r10,r29                             
    if ( !p2 )                                                        
ffc11210:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc11214:	41 9e 00 2c 	beq-    cr7,ffc11240 <IMFS_memfile_get_block_pointer+0x230><== NEVER TAKEN
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
ffc11218:	80 01 00 24 	lwz     r0,36(r1)                              
                                                                      
    p2 = (block_p *)p1[ doubly ];                                     
    if ( !p2 )                                                        
      return 0;                                                       
                                                                      
    return (block_p *)&p2[ singly ];                                  
ffc1121c:	57 83 10 3a 	rlwinm  r3,r28,2,0,29                          
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
ffc11220:	83 a1 00 14 	lwz     r29,20(r1)                             
                                                                      
    p2 = (block_p *)p1[ doubly ];                                     
    if ( !p2 )                                                        
      return 0;                                                       
                                                                      
    return (block_p *)&p2[ singly ];                                  
ffc11224:	7c 69 1a 14 	add     r3,r9,r3                               
                                                                      
  /*                                                                  
   *  This means the requested block number is out of range.          
   */                                                                 
  return 0;                                                           
}                                                                     
ffc11228:	7c 08 03 a6 	mtlr    r0                                     
ffc1122c:	83 81 00 10 	lwz     r28,16(r1)                             
ffc11230:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc11234:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc11238:	38 21 00 20 	addi    r1,r1,32                               
ffc1123c:	4e 80 00 20 	blr                                            
    if ( malloc_it ) {                                                
                                                                      
      if ( !p ) {                                                     
        p = memfile_alloc_block();                                    
        if ( !p )                                                     
           return 0;                                                  
ffc11240:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc11244:	4b ff fe 20 	b       ffc11064 <IMFS_memfile_get_block_pointer+0x54><== NOT EXECUTED
        info->doubly_indirect = p;                                    
      }                                                               
                                                                      
      p1 = (block_p *)p[ doubly ];                                    
      if ( !p1 ) {                                                    
        p1 = memfile_alloc_block();                                   
ffc11248:	4b ff fd 85 	bl      ffc10fcc <memfile_alloc_block>         
        if ( !p1 )                                                    
ffc1124c:	7c 68 1b 79 	mr.     r8,r3                                  
ffc11250:	41 a2 ff f0 	beq-    ffc11240 <IMFS_memfile_get_block_pointer+0x230><== NEVER TAKEN
           return 0;                                                  
        p[ doubly ] = (block_p) p1;                                   
ffc11254:	91 1e 00 00 	stw     r8,0(r30)                              
ffc11258:	4b ff ff 0c 	b       ffc11164 <IMFS_memfile_get_block_pointer+0x154>
        p[ triply ] = (block_p) p1;                                   
      }                                                               
                                                                      
      p2 = (block_p *)p1[ doubly ];                                   
      if ( !p2 ) {                                                    
        p2 = memfile_alloc_block();                                   
ffc1125c:	4b ff fd 71 	bl      ffc10fcc <memfile_alloc_block>         
        if ( !p2 )                                                    
ffc11260:	7c 67 1b 79 	mr.     r7,r3                                  
ffc11264:	41 a2 ff dc 	beq-    ffc11240 <IMFS_memfile_get_block_pointer+0x230><== NEVER TAKEN
           return 0;                                                  
        p1[ doubly ] = (block_p) p2;                                  
ffc11268:	90 fd 00 00 	stw     r7,0(r29)                              
ffc1126c:	4b ff fe 98 	b       ffc11104 <IMFS_memfile_get_block_pointer+0xf4>
                                                                      
    p = info->doubly_indirect;                                        
    if ( malloc_it ) {                                                
                                                                      
      if ( !p ) {                                                     
        p = memfile_alloc_block();                                    
ffc11270:	4b ff fd 5d 	bl      ffc10fcc <memfile_alloc_block>         
        if ( !p )                                                     
ffc11274:	2c 03 00 00 	cmpwi   r3,0                                   
ffc11278:	41 a2 ff c8 	beq-    ffc11240 <IMFS_memfile_get_block_pointer+0x230><== NEVER TAKEN
           return 0;                                                  
        info->doubly_indirect = p;                                    
ffc1127c:	90 7f 00 5c 	stw     r3,92(r31)                             
ffc11280:	4b ff fe d0 	b       ffc11150 <IMFS_memfile_get_block_pointer+0x140>
        info->triply_indirect = p;                                    
      }                                                               
                                                                      
      p1 = (block_p *) p[ triply ];                                   
      if ( !p1 ) {                                                    
        p1 = memfile_alloc_block();                                   
ffc11284:	4b ff fd 49 	bl      ffc10fcc <memfile_alloc_block>         
        if ( !p1 )                                                    
ffc11288:	7c 66 1b 79 	mr.     r6,r3                                  
ffc1128c:	41 a2 ff b4 	beq-    ffc11240 <IMFS_memfile_get_block_pointer+0x230><== NEVER TAKEN
           return 0;                                                  
        p[ triply ] = (block_p) p1;                                   
ffc11290:	90 de 00 00 	stw     r6,0(r30)                              
ffc11294:	4b ff fe 5c 	b       ffc110f0 <IMFS_memfile_get_block_pointer+0xe0>
                                                                      
    p = info->triply_indirect;                                        
                                                                      
    if ( malloc_it ) {                                                
      if ( !p ) {                                                     
        p = memfile_alloc_block();                                    
ffc11298:	4b ff fd 35 	bl      ffc10fcc <memfile_alloc_block>         
        if ( !p )                                                     
ffc1129c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc112a0:	41 a2 ff a0 	beq-    ffc11240 <IMFS_memfile_get_block_pointer+0x230><== NEVER TAKEN
           return 0;                                                  
        info->triply_indirect = p;                                    
ffc112a4:	90 7f 00 60 	stw     r3,96(r31)                             
ffc112a8:	4b ff fe 34 	b       ffc110dc <IMFS_memfile_get_block_pointer+0xcc>
                                                                      

ffc112ac <IMFS_memfile_read>: IMFS_jnode_t *the_jnode, off_t start, unsigned char *destination, unsigned int length ) {
ffc112ac:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc112b0:	7c 08 02 a6 	mflr    r0                                     
ffc112b4:	93 01 00 20 	stw     r24,32(r1)                             
ffc112b8:	7c f8 3b 78 	mr      r24,r7                                 
ffc112bc:	90 01 00 44 	stw     r0,68(r1)                              
ffc112c0:	93 41 00 28 	stw     r26,40(r1)                             
ffc112c4:	7c 7a 1b 78 	mr      r26,r3                                 
ffc112c8:	93 c1 00 38 	stw     r30,56(r1)                             
ffc112cc:	7c be 2b 78 	mr      r30,r5                                 
ffc112d0:	93 e1 00 3c 	stw     r31,60(r1)                             
ffc112d4:	7c df 33 78 	mr      r31,r6                                 
ffc112d8:	92 e1 00 1c 	stw     r23,28(r1)                             
ffc112dc:	93 21 00 24 	stw     r25,36(r1)                             
ffc112e0:	93 61 00 2c 	stw     r27,44(r1)                             
ffc112e4:	93 81 00 30 	stw     r28,48(r1)                             
ffc112e8:	93 a1 00 34 	stw     r29,52(r1)                             
  rtems_chain_extract_unprotected( &node->Node );                     
}                                                                     
                                                                      
static inline IMFS_jnode_types_t IMFS_type( const IMFS_jnode_t *node )
{                                                                     
  return node->control->imfs_type;                                    
ffc112ec:	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 ) {                 
ffc112f0:	81 29 00 00 	lwz     r9,0(r9)                               
ffc112f4:	2f 89 00 05 	cmpwi   cr7,r9,5                               
ffc112f8:	41 9e 01 d8 	beq-    cr7,ffc114d0 <IMFS_memfile_read+0x224> 
  /*                                                                  
   *  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 )                        
ffc112fc:	81 23 00 50 	lwz     r9,80(r3)                              
ffc11300:	39 40 00 00 	li      r10,0                                  
ffc11304:	83 83 00 54 	lwz     r28,84(r3)                             
ffc11308:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
                                                                      
  /*                                                                  
   *  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;                                         
ffc1130c:	7c c9 33 78 	mr      r9,r6                                  
ffc11310:	7d 48 32 14 	add     r10,r8,r6                              
  if ( last_byte > the_jnode->info.file.size )                        
ffc11314:	40 9d 01 24 	ble-    cr7,ffc11438 <IMFS_memfile_read+0x18c> <== ALWAYS TAKEN
    my_length = the_jnode->info.file.size - start;                    
ffc11318:	7f 89 e0 50 	subf    r28,r9,r28                             
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
ffc1131c:	3f 20 00 00 	lis     r25,0                                  
ffc11320:	83 b9 28 44 	lwz     r29,10308(r25)                         
ffc11324:	7f e4 fb 78 	mr      r4,r31                                 
ffc11328:	7f c3 f3 78 	mr      r3,r30                                 
ffc1132c:	7f bb fe 70 	srawi   r27,r29,31                             
ffc11330:	7f 65 db 78 	mr      r5,r27                                 
ffc11334:	7f a6 eb 78 	mr      r6,r29                                 
ffc11338:	48 00 b9 7d 	bl      ffc1ccb4 <__moddi3>                    
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
ffc1133c:	7f c3 f3 78 	mr      r3,r30                                 
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
ffc11340:	7c 97 23 78 	mr      r23,r4                                 
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
ffc11344:	7f 65 db 78 	mr      r5,r27                                 
ffc11348:	7f e4 fb 78 	mr      r4,r31                                 
ffc1134c:	7f a6 eb 78 	mr      r6,r29                                 
ffc11350:	48 00 b5 41 	bl      ffc1c890 <__divdi3>                    
  if ( start_offset )  {                                              
ffc11354:	2f 97 00 00 	cmpwi   cr7,r23,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;                       
ffc11358:	7c 9f 23 78 	mr      r31,r4                                 
  if ( start_offset )  {                                              
ffc1135c:	41 9e 00 e8 	beq-    cr7,ffc11444 <IMFS_memfile_read+0x198> 
    to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;            
ffc11360:	7f b7 e8 50 	subf    r29,r23,r29                            
ffc11364:	7f 9c e8 40 	cmplw   cr7,r28,r29                            
ffc11368:	7f 9b e3 78 	mr      r27,r28                                
ffc1136c:	41 9d 01 b4 	bgt-    cr7,ffc11520 <IMFS_memfile_read+0x274> 
    if ( to_copy > my_length )                                        
      to_copy = my_length;                                            
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc11370:	7f 43 d3 78 	mr      r3,r26                                 
ffc11374:	7f e4 fb 78 	mr      r4,r31                                 
ffc11378:	38 a0 00 00 	li      r5,0                                   
ffc1137c:	4b ff fc 95 	bl      ffc11010 <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
ffc11380:	7c 69 1b 79 	mr.     r9,r3                                  
      return copied;                                                  
ffc11384:	38 60 00 00 	li      r3,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 )                                                 
ffc11388:	41 82 00 7c 	beq-    ffc11404 <IMFS_memfile_read+0x158>     <== NEVER TAKEN
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ start_offset ], to_copy );           
ffc1138c:	80 89 00 00 	lwz     r4,0(r9)                               
ffc11390:	7f 03 c3 78 	mr      r3,r24                                 
ffc11394:	7f 65 db 78 	mr      r5,r27                                 
ffc11398:	7c 84 ba 14 	add     r4,r4,r23                              
ffc1139c:	48 00 29 e1 	bl      ffc13d7c <memcpy>                      
ffc113a0:	83 b9 28 44 	lwz     r29,10308(r25)                         
    dest += to_copy;                                                  
ffc113a4:	7f d8 da 14 	add     r30,r24,r27                            
    block++;                                                          
ffc113a8:	3b ff 00 01 	addi    r31,r31,1                              
    my_length -= to_copy;                                             
ffc113ac:	7f 9b e0 50 	subf    r28,r27,r28                            
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
ffc113b0:	7f 9c e8 40 	cmplw   cr7,r28,r29                            
ffc113b4:	40 bc 00 20 	bge+    cr7,ffc113d4 <IMFS_memfile_read+0x128> 
ffc113b8:	48 00 00 98 	b       ffc11450 <IMFS_memfile_read+0x1a4>     
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
ffc113bc:	80 89 00 00 	lwz     r4,0(r9)                               
    dest += to_copy;                                                  
    block++;                                                          
    my_length -= to_copy;                                             
    copied += to_copy;                                                
ffc113c0:	7f 7b ea 14 	add     r27,r27,r29                            
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
ffc113c4:	48 00 29 b9 	bl      ffc13d7c <memcpy>                      
                                                                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
ffc113c8:	81 39 28 44 	lwz     r9,10308(r25)                          
ffc113cc:	7f 89 e0 40 	cmplw   cr7,r9,r28                             
ffc113d0:	41 9d 00 80 	bgt-    cr7,ffc11450 <IMFS_memfile_read+0x1a4> 
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc113d4:	7f e4 fb 78 	mr      r4,r31                                 
ffc113d8:	38 a0 00 00 	li      r5,0                                   
ffc113dc:	7f 43 d3 78 	mr      r3,r26                                 
ffc113e0:	4b ff fc 31 	bl      ffc11010 <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
    dest += to_copy;                                                  
    block++;                                                          
    my_length -= to_copy;                                             
ffc113e4:	7f 9d e0 50 	subf    r28,r29,r28                            
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
ffc113e8:	7c 69 1b 79 	mr.     r9,r3                                  
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
ffc113ec:	7f a5 eb 78 	mr      r5,r29                                 
ffc113f0:	7f c3 f3 78 	mr      r3,r30                                 
    dest += to_copy;                                                  
    block++;                                                          
ffc113f4:	3b ff 00 01 	addi    r31,r31,1                              
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], to_copy );                      
    dest += to_copy;                                                  
ffc113f8:	7f de ea 14 	add     r30,r30,r29                            
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
ffc113fc:	40 82 ff c0 	bne+    ffc113bc <IMFS_memfile_read+0x110>     <== ALWAYS TAKEN
  IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );            
                                                                      
  if ( my_length ) {                                                  
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
    if ( !block_ptr )                                                 
      return copied;                                                  
ffc11400:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
                                                                      
  return copied;                                                      
}                                                                     
ffc11404:	80 01 00 44 	lwz     r0,68(r1)                              <== NOT EXECUTED
ffc11408:	82 e1 00 1c 	lwz     r23,28(r1)                             <== NOT EXECUTED
ffc1140c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc11410:	83 01 00 20 	lwz     r24,32(r1)                             <== NOT EXECUTED
ffc11414:	83 21 00 24 	lwz     r25,36(r1)                             <== NOT EXECUTED
ffc11418:	83 41 00 28 	lwz     r26,40(r1)                             <== NOT EXECUTED
ffc1141c:	83 61 00 2c 	lwz     r27,44(r1)                             <== NOT EXECUTED
ffc11420:	83 81 00 30 	lwz     r28,48(r1)                             <== NOT EXECUTED
ffc11424:	83 a1 00 34 	lwz     r29,52(r1)                             <== NOT EXECUTED
ffc11428:	83 c1 00 38 	lwz     r30,56(r1)                             <== NOT EXECUTED
ffc1142c:	83 e1 00 3c 	lwz     r31,60(r1)                             <== NOT EXECUTED
ffc11430:	38 21 00 40 	addi    r1,r1,64                               <== NOT EXECUTED
ffc11434:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  /*                                                                  
   *  If the last byte we are supposed to read is past the end of this
   *  in memory file, then shorten the length to read.                
   */                                                                 
  last_byte = start + length;                                         
  if ( last_byte > the_jnode->info.file.size )                        
ffc11438:	41 9e 00 f0 	beq-    cr7,ffc11528 <IMFS_memfile_read+0x27c> <== ALWAYS TAKEN
                                                                      
  /*                                                                  
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
ffc1143c:	7d 1c 43 78 	mr      r28,r8                                 <== NOT EXECUTED
ffc11440:	4b ff fe dc 	b       ffc1131c <IMFS_memfile_read+0x70>      <== NOT EXECUTED
  unsigned int         last_byte;                                     
  unsigned int         copied;                                        
  unsigned int         start_offset;                                  
  unsigned char       *dest;                                          
                                                                      
  dest = destination;                                                 
ffc11444:	7f 1e c3 78 	mr      r30,r24                                
   */                                                                 
  last_byte = start + length;                                         
  if ( last_byte > the_jnode->info.file.size )                        
    my_length = the_jnode->info.file.size - start;                    
                                                                      
  copied = 0;                                                         
ffc11448:	3b 60 00 00 	li      r27,0                                  
ffc1144c:	4b ff ff 64 	b       ffc113b0 <IMFS_memfile_read+0x104>     
  /*                                                                  
   *  Phase 3: possibly the first part of one block                   
   */                                                                 
  IMFS_assert( my_length < IMFS_MEMFILE_BYTES_PER_BLOCK );            
                                                                      
  if ( my_length ) {                                                  
ffc11450:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc11454:	41 9e 00 30 	beq-    cr7,ffc11484 <IMFS_memfile_read+0x1d8> 
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc11458:	7f 43 d3 78 	mr      r3,r26                                 
ffc1145c:	7f e4 fb 78 	mr      r4,r31                                 
ffc11460:	38 a0 00 00 	li      r5,0                                   
ffc11464:	4b ff fb ad 	bl      ffc11010 <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
ffc11468:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1146c:	41 a2 ff 94 	beq-    ffc11400 <IMFS_memfile_read+0x154>     <== NEVER TAKEN
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], my_length );                    
ffc11470:	80 83 00 00 	lwz     r4,0(r3)                               
ffc11474:	7f 85 e3 78 	mr      r5,r28                                 
ffc11478:	7f c3 f3 78 	mr      r3,r30                                 
ffc1147c:	48 00 29 01 	bl      ffc13d7c <memcpy>                      
    copied += my_length;                                              
ffc11480:	7f 7b e2 14 	add     r27,r27,r28                            
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
ffc11484:	38 61 00 08 	addi    r3,r1,8                                
ffc11488:	38 80 00 00 	li      r4,0                                   
ffc1148c:	4b ff 37 c9 	bl      ffc04c54 <gettimeofday>                
ffc11490:	81 21 00 08 	lwz     r9,8(r1)                               
                                                                      
  return copied;                                                      
ffc11494:	7f 63 db 78 	mr      r3,r27                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], my_length );                    
    copied += my_length;                                              
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
ffc11498:	91 3a 00 40 	stw     r9,64(r26)                             
                                                                      
  return copied;                                                      
}                                                                     
ffc1149c:	80 01 00 44 	lwz     r0,68(r1)                              
ffc114a0:	82 e1 00 1c 	lwz     r23,28(r1)                             
ffc114a4:	7c 08 03 a6 	mtlr    r0                                     
ffc114a8:	83 01 00 20 	lwz     r24,32(r1)                             
ffc114ac:	83 21 00 24 	lwz     r25,36(r1)                             
ffc114b0:	83 41 00 28 	lwz     r26,40(r1)                             
ffc114b4:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc114b8:	83 81 00 30 	lwz     r28,48(r1)                             
ffc114bc:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc114c0:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc114c4:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc114c8:	38 21 00 40 	addi    r1,r1,64                               
ffc114cc:	4e 80 00 20 	blr                                            
  if ( IMFS_type( the_jnode ) == IMFS_LINEAR_FILE ) {                 
    unsigned char  *file_ptr;                                         
                                                                      
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
ffc114d0:	81 43 00 50 	lwz     r10,80(r3)                             
ffc114d4:	39 20 00 00 	li      r9,0                                   
ffc114d8:	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;    
ffc114dc:	80 83 00 58 	lwz     r4,88(r3)                              
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
ffc114e0:	7c ff 58 10 	subfc   r7,r31,r11                             
ffc114e4:	7c de 51 10 	subfe   r6,r30,r10                             
ffc114e8:	7f 89 30 00 	cmpw    cr7,r9,r6                              
ffc114ec:	40 9d 00 4c 	ble-    cr7,ffc11538 <IMFS_memfile_read+0x28c> <== ALWAYS TAKEN
      my_length = the_jnode->info.linearfile.size - start;            
ffc114f0:	7f 7f 58 50 	subf    r27,r31,r11                            
                                                                      
    memcpy(dest, &file_ptr[start], my_length);                        
ffc114f4:	7c 84 fa 14 	add     r4,r4,r31                              
ffc114f8:	7f 65 db 78 	mr      r5,r27                                 
ffc114fc:	7f 03 c3 78 	mr      r3,r24                                 
ffc11500:	48 00 28 7d 	bl      ffc13d7c <memcpy>                      
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], my_length );                    
    copied += my_length;                                              
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
ffc11504:	38 61 00 08 	addi    r3,r1,8                                
ffc11508:	38 80 00 00 	li      r4,0                                   
ffc1150c:	4b ff 37 49 	bl      ffc04c54 <gettimeofday>                
ffc11510:	81 21 00 08 	lwz     r9,8(r1)                               
                                                                      
  return copied;                                                      
ffc11514:	7f 63 db 78 	mr      r3,r27                                 
      return copied;                                                  
    memcpy( dest, &(*block_ptr)[ 0 ], my_length );                    
    copied += my_length;                                              
  }                                                                   
                                                                      
  IMFS_update_atime( the_jnode );                                     
ffc11518:	91 3a 00 40 	stw     r9,64(r26)                             
ffc1151c:	4b ff ff 80 	b       ffc1149c <IMFS_memfile_read+0x1f0>     
ffc11520:	7f bb eb 78 	mr      r27,r29                                
ffc11524:	4b ff fe 4c 	b       ffc11370 <IMFS_memfile_read+0xc4>      
  /*                                                                  
   *  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 )                        
ffc11528:	7f 8a e0 40 	cmplw   cr7,r10,r28                            
ffc1152c:	41 bd fd ec 	bgt-    cr7,ffc11318 <IMFS_memfile_read+0x6c>  
                                                                      
  /*                                                                  
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
ffc11530:	7d 1c 43 78 	mr      r28,r8                                 
ffc11534:	4b ff fd e8 	b       ffc1131c <IMFS_memfile_read+0x70>      
  if ( IMFS_type( the_jnode ) == IMFS_LINEAR_FILE ) {                 
    unsigned char  *file_ptr;                                         
                                                                      
    file_ptr = (unsigned char *)the_jnode->info.linearfile.direct;    
                                                                      
    if (my_length > (the_jnode->info.linearfile.size - start))        
ffc11538:	40 9e 00 0c 	bne-    cr7,ffc11544 <IMFS_memfile_read+0x298> <== NEVER TAKEN
ffc1153c:	7f 88 38 40 	cmplw   cr7,r8,r7                              
ffc11540:	41 9d ff b0 	bgt+    cr7,ffc114f0 <IMFS_memfile_read+0x244> <== ALWAYS TAKEN
                                                                      
  /*                                                                  
   *  Linear files (as created from a tar file are easier to handle   
   *  than block files).                                              
   */                                                                 
  my_length = length;                                                 
ffc11544:	7d 1b 43 78 	mr      r27,r8                                 <== NOT EXECUTED
ffc11548:	4b ff ff ac 	b       ffc114f4 <IMFS_memfile_read+0x248>     <== NOT EXECUTED
                                                                      

ffc116d4 <IMFS_memfile_remove>: * is better to stick to simple, easy to understand algorithms. */ IMFS_jnode_t *IMFS_memfile_remove( IMFS_jnode_t *the_jnode ) {
ffc116d4:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc116d8:	7c 08 02 a6 	mflr    r0                                     
ffc116dc:	90 01 00 2c 	stw     r0,44(r1)                              
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
  info = &the_jnode->info.file;                                       
                                                                      
  if ( info->indirect ) {                                             
ffc116e0:	81 23 00 58 	lwz     r9,88(r3)                              
 *         is better to stick to simple, easy to understand algorithms.
 */                                                                   
IMFS_jnode_t *IMFS_memfile_remove(                                    
 IMFS_jnode_t  *the_jnode                                             
)                                                                     
{                                                                     
ffc116e4:	93 c1 00 20 	stw     r30,32(r1)                             
                                                                      
  /*                                                                  
   *  Eventually this could be set smarter at each call to            
   *  memfile_free_blocks_in_table to greatly speed this up.          
   */                                                                 
  to_free = IMFS_MEMFILE_BLOCK_SLOTS;                                 
ffc116e8:	3f c0 00 00 	lis     r30,0                                  
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
  info = &the_jnode->info.file;                                       
                                                                      
  if ( info->indirect ) {                                             
ffc116ec:	2f 89 00 00 	cmpwi   cr7,r9,0                               
 *         is better to stick to simple, easy to understand algorithms.
 */                                                                   
IMFS_jnode_t *IMFS_memfile_remove(                                    
 IMFS_jnode_t  *the_jnode                                             
)                                                                     
{                                                                     
ffc116f0:	93 a1 00 1c 	stw     r29,28(r1)                             
                                                                      
  /*                                                                  
   *  Eventually this could be set smarter at each call to            
   *  memfile_free_blocks_in_table to greatly speed this up.          
   */                                                                 
  to_free = IMFS_MEMFILE_BLOCK_SLOTS;                                 
ffc116f4:	83 be 28 44 	lwz     r29,10308(r30)                         
 *         is better to stick to simple, easy to understand algorithms.
 */                                                                   
IMFS_jnode_t *IMFS_memfile_remove(                                    
 IMFS_jnode_t  *the_jnode                                             
)                                                                     
{                                                                     
ffc116f8:	93 41 00 10 	stw     r26,16(r1)                             
ffc116fc:	7c 7a 1b 78 	mr      r26,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;                                 
ffc11700:	57 bd f0 be 	rlwinm  r29,r29,30,2,31                        
 *         is better to stick to simple, easy to understand algorithms.
 */                                                                   
IMFS_jnode_t *IMFS_memfile_remove(                                    
 IMFS_jnode_t  *the_jnode                                             
)                                                                     
{                                                                     
ffc11704:	93 21 00 0c 	stw     r25,12(r1)                             
ffc11708:	93 61 00 14 	stw     r27,20(r1)                             
ffc1170c:	93 81 00 18 	stw     r28,24(r1)                             
ffc11710:	93 e1 00 24 	stw     r31,36(r1)                             
   *    + doubly indirect                                             
   *    + triply indirect                                             
   */                                                                 
  info = &the_jnode->info.file;                                       
                                                                      
  if ( info->indirect ) {                                             
ffc11714:	41 9e 00 10 	beq-    cr7,ffc11724 <IMFS_memfile_remove+0x50>
    memfile_free_blocks_in_table( &info->indirect, to_free );         
ffc11718:	38 63 00 58 	addi    r3,r3,88                               
ffc1171c:	7f a4 eb 78 	mr      r4,r29                                 
ffc11720:	4b ff ff 25 	bl      ffc11644 <memfile_free_blocks_in_table>
  }                                                                   
                                                                      
  if ( info->doubly_indirect ) {                                      
ffc11724:	81 3a 00 5c 	lwz     r9,92(r26)                             
ffc11728:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1172c:	41 9e 00 68 	beq-    cr7,ffc11794 <IMFS_memfile_remove+0xc0>
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
ffc11730:	81 5e 28 44 	lwz     r10,10308(r30)                         
ffc11734:	55 48 f0 bf 	rlwinm. r8,r10,30,2,31                         
ffc11738:	41 82 00 50 	beq-    ffc11788 <IMFS_memfile_remove+0xb4>    <== NEVER TAKEN
ffc1173c:	3f 80 00 00 	lis     r28,0                                  
ffc11740:	38 60 00 00 	li      r3,0                                   
ffc11744:	3b e0 00 00 	li      r31,0                                  
ffc11748:	3b 9c 28 44 	addi    r28,r28,10308                          
ffc1174c:	48 00 00 08 	b       ffc11754 <IMFS_memfile_remove+0x80>    
ffc11750:	81 3a 00 5c 	lwz     r9,92(r26)                             
      if ( info->doubly_indirect[i] ) {                               
ffc11754:	54 63 10 3a 	rlwinm  r3,r3,2,0,29                           
ffc11758:	7d 49 18 2e 	lwzx    r10,r9,r3                              
  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++ ) {                  
ffc1175c:	3b ff 00 01 	addi    r31,r31,1                              
      if ( info->doubly_indirect[i] ) {                               
        memfile_free_blocks_in_table(                                 
ffc11760:	7f a4 eb 78 	mr      r4,r29                                 
    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] ) {                               
ffc11764:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc11768:	7c 69 1a 14 	add     r3,r9,r3                               
ffc1176c:	41 9e 00 08 	beq-    cr7,ffc11774 <IMFS_memfile_remove+0xa0><== NEVER TAKEN
        memfile_free_blocks_in_table(                                 
ffc11770:	4b ff fe d5 	bl      ffc11644 <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++ ) {                  
ffc11774:	81 3c 00 00 	lwz     r9,0(r28)                              
ffc11778:	7f e3 fb 78 	mr      r3,r31                                 
ffc1177c:	55 29 f0 be 	rlwinm  r9,r9,30,2,31                          
ffc11780:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
ffc11784:	41 9c ff cc 	blt+    cr7,ffc11750 <IMFS_memfile_remove+0x7c>
      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 );  
ffc11788:	38 7a 00 5c 	addi    r3,r26,92                              
ffc1178c:	7f a4 eb 78 	mr      r4,r29                                 
ffc11790:	4b ff fe b5 	bl      ffc11644 <memfile_free_blocks_in_table>
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
ffc11794:	80 7a 00 60 	lwz     r3,96(r26)                             
ffc11798:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1179c:	41 9e 00 b4 	beq-    cr7,ffc11850 <IMFS_memfile_remove+0x17c>
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
ffc117a0:	81 5e 28 44 	lwz     r10,10308(r30)                         
ffc117a4:	55 4a f0 bf 	rlwinm. r10,r10,30,2,31                        
ffc117a8:	41 82 00 9c 	beq-    ffc11844 <IMFS_memfile_remove+0x170>   <== NEVER TAKEN
      p = (block_p *) info->triply_indirect[i];                       
ffc117ac:	83 c3 00 00 	lwz     r30,0(r3)                              
      if ( !p )  /* ensure we have a valid pointer */                 
ffc117b0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc117b4:	41 9e 00 90 	beq-    cr7,ffc11844 <IMFS_memfile_remove+0x170><== NEVER TAKEN
ffc117b8:	3f 80 00 00 	lis     r28,0                                  
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      p = (block_p *) info->triply_indirect[i];                       
ffc117bc:	3b 20 00 00 	li      r25,0                                  
      if ( !p )  /* ensure we have a valid pointer */                 
ffc117c0:	3b 60 00 00 	li      r27,0                                  
ffc117c4:	3b 9c 28 44 	addi    r28,r28,10308                          
         break;                                                       
      for ( j=0 ; j<IMFS_MEMFILE_BLOCK_SLOTS ; j++ ) {                
ffc117c8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc117cc:	41 9e 00 44 	beq-    cr7,ffc11810 <IMFS_memfile_remove+0x13c><== NEVER TAKEN
ffc117d0:	39 20 00 00 	li      r9,0                                   
ffc117d4:	3b e0 00 00 	li      r31,0                                  
        if ( p[j] ) {                                                 
ffc117d8:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc117dc:	7d 5e 48 2e 	lwzx    r10,r30,r9                             
  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++ ) {                
ffc117e0:	3b ff 00 01 	addi    r31,r31,1                              
        if ( p[j] ) {                                                 
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
ffc117e4:	7f a4 eb 78 	mr      r4,r29                                 
    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++ ) {                
        if ( p[j] ) {                                                 
ffc117e8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc117ec:	7c 7e 4a 14 	add     r3,r30,r9                              
ffc117f0:	41 9e 00 08 	beq-    cr7,ffc117f8 <IMFS_memfile_remove+0x124><== NEVER TAKEN
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
ffc117f4:	4b ff fe 51 	bl      ffc11644 <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++ ) {                
ffc117f8:	81 5c 00 00 	lwz     r10,0(r28)                             
ffc117fc:	7f e9 fb 78 	mr      r9,r31                                 
ffc11800:	55 4a f0 be 	rlwinm  r10,r10,30,2,31                        
ffc11804:	7f 9f 50 40 	cmplw   cr7,r31,r10                            
ffc11808:	41 9c ff d0 	blt+    cr7,ffc117d8 <IMFS_memfile_remove+0x104>
ffc1180c:	80 7a 00 60 	lwz     r3,96(r26)                             
        if ( p[j] ) {                                                 
          memfile_free_blocks_in_table( (block_p **)&p[j], to_free);  
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
ffc11810:	7c 63 ca 14 	add     r3,r3,r25                              
ffc11814:	7f a4 eb 78 	mr      r4,r29                                 
ffc11818:	4b ff fe 2d 	bl      ffc11644 <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++ ) {                  
ffc1181c:	81 5c 00 00 	lwz     r10,0(r28)                             
ffc11820:	3b 7b 00 01 	addi    r27,r27,1                              
ffc11824:	55 4a f0 be 	rlwinm  r10,r10,30,2,31                        
ffc11828:	7f 9b 50 40 	cmplw   cr7,r27,r10                            
ffc1182c:	40 9c 00 18 	bge-    cr7,ffc11844 <IMFS_memfile_remove+0x170>
      p = (block_p *) info->triply_indirect[i];                       
ffc11830:	80 7a 00 60 	lwz     r3,96(r26)                             
 *         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(                                    
ffc11834:	57 79 10 3a 	rlwinm  r25,r27,2,0,29                         
                                                                      
  }                                                                   
                                                                      
  if ( info->triply_indirect ) {                                      
    for ( i=0 ; i<IMFS_MEMFILE_BLOCK_SLOTS ; i++ ) {                  
      p = (block_p *) info->triply_indirect[i];                       
ffc11838:	7f c3 c8 2e 	lwzx    r30,r3,r25                             
      if ( !p )  /* ensure we have a valid pointer */                 
ffc1183c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc11840:	40 9e ff 88 	bne+    cr7,ffc117c8 <IMFS_memfile_remove+0xf4><== ALWAYS TAKEN
        }                                                             
      }                                                               
      memfile_free_blocks_in_table(                                   
        (block_p **)&info->triply_indirect[i], to_free );             
    }                                                                 
    memfile_free_blocks_in_table(                                     
ffc11844:	38 7a 00 60 	addi    r3,r26,96                              
ffc11848:	7f a4 eb 78 	mr      r4,r29                                 
ffc1184c:	4b ff fd f9 	bl      ffc11644 <memfile_free_blocks_in_table>
        (block_p **)&info->triply_indirect, to_free );                
  }                                                                   
                                                                      
  return the_jnode;                                                   
}                                                                     
ffc11850:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc11854:	7f 43 d3 78 	mr      r3,r26                                 
ffc11858:	83 21 00 0c 	lwz     r25,12(r1)                             
ffc1185c:	7c 08 03 a6 	mtlr    r0                                     
ffc11860:	83 41 00 10 	lwz     r26,16(r1)                             
ffc11864:	83 61 00 14 	lwz     r27,20(r1)                             
ffc11868:	83 81 00 18 	lwz     r28,24(r1)                             
ffc1186c:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc11870:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc11874:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc11878:	38 21 00 28 	addi    r1,r1,40                               
ffc1187c:	4e 80 00 20 	blr                                            
                                                                      

ffc11880 <IMFS_memfile_remove_block>: */ MEMFILE_STATIC int IMFS_memfile_remove_block( IMFS_jnode_t *the_jnode, unsigned int block ) {
ffc11880:	94 21 ff f8 	stwu    r1,-8(r1)                              <== NOT EXECUTED
ffc11884:	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 );  
ffc11888:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
 */                                                                   
MEMFILE_STATIC int IMFS_memfile_remove_block(                         
   IMFS_jnode_t  *the_jnode,                                          
   unsigned int   block                                               
)                                                                     
{                                                                     
ffc1188c:	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 );  
ffc11890:	4b ff f7 81 	bl      ffc11010 <IMFS_memfile_get_block_pointer><== NOT EXECUTED
ffc11894:	7c 69 1b 78 	mr      r9,r3                                  <== NOT EXECUTED
  IMFS_assert( block_ptr );                                           
                                                                      
  ptr = *block_ptr;                                                   
  *block_ptr = 0;                                                     
ffc11898:	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;                                                   
ffc1189c:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
  *block_ptr = 0;                                                     
ffc118a0:	91 49 00 00 	stw     r10,0(r9)                              <== NOT EXECUTED
  memfile_free_block( ptr );                                          
ffc118a4:	4b ff fd 71 	bl      ffc11614 <memfile_free_block>          <== NOT EXECUTED
                                                                      
  return 1;                                                           
}                                                                     
ffc118a8:	80 01 00 0c 	lwz     r0,12(r1)                              <== NOT EXECUTED
ffc118ac:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc118b0:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc118b4:	38 21 00 08 	addi    r1,r1,8                                <== NOT EXECUTED
ffc118b8:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc11b4c <IMFS_memfile_write>: IMFS_jnode_t *the_jnode, off_t start, const unsigned char *source, unsigned int length ) {
ffc11b4c:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc11b50:	7c 08 02 a6 	mflr    r0                                     
   *  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 ) {                      
ffc11b54:	39 40 00 00 	li      r10,0                                  
   IMFS_jnode_t          *the_jnode,                                  
   off_t                  start,                                      
   const unsigned char   *source,                                     
   unsigned int           length                                      
)                                                                     
{                                                                     
ffc11b58:	93 41 00 28 	stw     r26,40(r1)                             
ffc11b5c:	7c 7a 1b 78 	mr      r26,r3                                 
ffc11b60:	93 61 00 2c 	stw     r27,44(r1)                             
ffc11b64:	7c bb 2b 78 	mr      r27,r5                                 
ffc11b68:	93 81 00 30 	stw     r28,48(r1)                             
ffc11b6c:	7c fc 3b 78 	mr      r28,r7                                 
ffc11b70:	93 a1 00 34 	stw     r29,52(r1)                             
ffc11b74:	7d 1d 43 78 	mr      r29,r8                                 
ffc11b78:	93 c1 00 38 	stw     r30,56(r1)                             
ffc11b7c:	7c de 33 78 	mr      r30,r6                                 
  /*                                                                  
   *  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;                                      
ffc11b80:	7c c8 32 14 	add     r6,r8,r6                               
   IMFS_jnode_t          *the_jnode,                                  
   off_t                  start,                                      
   const unsigned char   *source,                                     
   unsigned int           length                                      
)                                                                     
{                                                                     
ffc11b84:	90 01 00 44 	stw     r0,68(r1)                              
ffc11b88:	92 e1 00 1c 	stw     r23,28(r1)                             
ffc11b8c:	93 01 00 20 	stw     r24,32(r1)                             
ffc11b90:	93 21 00 24 	stw     r25,36(r1)                             
ffc11b94:	93 e1 00 3c 	stw     r31,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;                                      
  if ( last_byte > the_jnode->info.file.size ) {                      
ffc11b98:	81 23 00 50 	lwz     r9,80(r3)                              
ffc11b9c:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc11ba0:	81 43 00 54 	lwz     r10,84(r3)                             
ffc11ba4:	41 9d 01 b8 	bgt-    cr7,ffc11d5c <IMFS_memfile_write+0x210><== NEVER TAKEN
ffc11ba8:	41 9e 01 ac 	beq-    cr7,ffc11d54 <IMFS_memfile_write+0x208><== ALWAYS TAKEN
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
ffc11bac:	3f 20 00 00 	lis     r25,0                                  
ffc11bb0:	83 f9 28 44 	lwz     r31,10308(r25)                         
ffc11bb4:	7f 63 db 78 	mr      r3,r27                                 
ffc11bb8:	7f c4 f3 78 	mr      r4,r30                                 
ffc11bbc:	7f f8 fe 70 	srawi   r24,r31,31                             
ffc11bc0:	7f 05 c3 78 	mr      r5,r24                                 
ffc11bc4:	7f e6 fb 78 	mr      r6,r31                                 
ffc11bc8:	48 00 b0 ed 	bl      ffc1ccb4 <__moddi3>                    
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
ffc11bcc:	7f 63 db 78 	mr      r3,r27                                 
   */                                                                 
                                                                      
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
ffc11bd0:	7c 97 23 78 	mr      r23,r4                                 
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
ffc11bd4:	7f 05 c3 78 	mr      r5,r24                                 
ffc11bd8:	7f c4 f3 78 	mr      r4,r30                                 
ffc11bdc:	7f e6 fb 78 	mr      r6,r31                                 
ffc11be0:	48 00 ac b1 	bl      ffc1c890 <__divdi3>                    
  if ( start_offset )  {                                              
ffc11be4:	2f 97 00 00 	cmpwi   cr7,r23,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;                       
ffc11be8:	7c 9e 23 78 	mr      r30,r4                                 
    status = IMFS_memfile_extend( the_jnode, zero_fill, last_byte );  
    if ( status )                                                     
      return status;                                                  
  }                                                                   
                                                                      
  copied = 0;                                                         
ffc11bec:	3b 60 00 00 	li      r27,0                                  
  /*                                                                  
   *  Phase 1: possibly the last part of one block                    
   */                                                                 
  start_offset = start % IMFS_MEMFILE_BYTES_PER_BLOCK;                
  block = start / IMFS_MEMFILE_BYTES_PER_BLOCK;                       
  if ( start_offset )  {                                              
ffc11bf0:	41 9e 00 54 	beq-    cr7,ffc11c44 <IMFS_memfile_write+0xf8> 
    to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK - start_offset;            
ffc11bf4:	7f 77 f8 50 	subf    r27,r23,r31                            
ffc11bf8:	7f 9b e8 40 	cmplw   cr7,r27,r29                            
ffc11bfc:	40 9d 00 08 	ble-    cr7,ffc11c04 <IMFS_memfile_write+0xb8> 
ffc11c00:	7f bb eb 78 	mr      r27,r29                                
    if ( to_copy > my_length )                                        
      to_copy = my_length;                                            
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc11c04:	7f 43 d3 78 	mr      r3,r26                                 
ffc11c08:	7f c4 f3 78 	mr      r4,r30                                 
ffc11c0c:	38 a0 00 00 	li      r5,0                                   
ffc11c10:	4b ff f4 01 	bl      ffc11010 <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
ffc11c14:	7c 69 1b 79 	mr.     r9,r3                                  
      return copied;                                                  
ffc11c18:	38 60 00 00 	li      r3,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 )                                                 
ffc11c1c:	41 82 00 7c 	beq-    ffc11c98 <IMFS_memfile_write+0x14c>    <== NEVER TAKEN
        block,                                                        
        to_copy,                                                      
        src                                                           
      );                                                              
    #endif                                                            
    memcpy( &(*block_ptr)[ start_offset ], src, to_copy );            
ffc11c20:	80 69 00 00 	lwz     r3,0(r9)                               
ffc11c24:	7f 84 e3 78 	mr      r4,r28                                 
ffc11c28:	7f 65 db 78 	mr      r5,r27                                 
ffc11c2c:	7c 63 ba 14 	add     r3,r3,r23                              
ffc11c30:	48 00 21 4d 	bl      ffc13d7c <memcpy>                      
ffc11c34:	83 f9 28 44 	lwz     r31,10308(r25)                         
    src += to_copy;                                                   
ffc11c38:	7f 9c da 14 	add     r28,r28,r27                            
    block++;                                                          
ffc11c3c:	3b de 00 01 	addi    r30,r30,1                              
    my_length -= to_copy;                                             
ffc11c40:	7f bb e8 50 	subf    r29,r27,r29                            
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
ffc11c44:	7f 9d f8 40 	cmplw   cr7,r29,r31                            
ffc11c48:	40 bc 00 20 	bge+    cr7,ffc11c68 <IMFS_memfile_write+0x11c>
ffc11c4c:	48 00 00 80 	b       ffc11ccc <IMFS_memfile_write+0x180>    
    if ( !block_ptr )                                                 
      return copied;                                                  
    #if 0                                                             
      fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
    #endif                                                            
    memcpy( &(*block_ptr)[ 0 ], src, to_copy );                       
ffc11c50:	80 63 00 00 	lwz     r3,0(r3)                               
 *  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(                            
ffc11c54:	7f 7b fa 14 	add     r27,r27,r31                            
    if ( !block_ptr )                                                 
      return copied;                                                  
    #if 0                                                             
      fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
    #endif                                                            
    memcpy( &(*block_ptr)[ 0 ], src, to_copy );                       
ffc11c58:	48 00 21 25 	bl      ffc13d7c <memcpy>                      
  /*                                                                  
   *  Phase 2: all of zero of more blocks                             
   */                                                                 
                                                                      
  to_copy = IMFS_MEMFILE_BYTES_PER_BLOCK;                             
  while ( my_length >= IMFS_MEMFILE_BYTES_PER_BLOCK ) {               
ffc11c5c:	81 39 28 44 	lwz     r9,10308(r25)                          
ffc11c60:	7f 89 e8 40 	cmplw   cr7,r9,r29                             
ffc11c64:	41 9d 00 68 	bgt-    cr7,ffc11ccc <IMFS_memfile_write+0x180>
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc11c68:	7f c4 f3 78 	mr      r4,r30                                 
ffc11c6c:	38 a0 00 00 	li      r5,0                                   
ffc11c70:	7f 43 d3 78 	mr      r3,r26                                 
ffc11c74:	4b ff f3 9d 	bl      ffc11010 <IMFS_memfile_get_block_pointer>
      fprintf(stdout, "write %d in %d: %*s\n", to_copy, block, to_copy, src );
    #endif                                                            
    memcpy( &(*block_ptr)[ 0 ], src, to_copy );                       
    src += to_copy;                                                   
    block++;                                                          
    my_length -= to_copy;                                             
ffc11c78:	7f bf e8 50 	subf    r29,r31,r29                            
   */                                                                 
                                                                      
  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 )                                                 
ffc11c7c:	2c 03 00 00 	cmpwi   r3,0                                   
      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 );                       
ffc11c80:	7f 84 e3 78 	mr      r4,r28                                 
ffc11c84:	7f e5 fb 78 	mr      r5,r31                                 
    src += to_copy;                                                   
ffc11c88:	7f 9c fa 14 	add     r28,r28,r31                            
    block++;                                                          
ffc11c8c:	3b de 00 01 	addi    r30,r30,1                              
   */                                                                 
                                                                      
  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 )                                                 
ffc11c90:	40 82 ff c0 	bne+    ffc11c50 <IMFS_memfile_write+0x104>    <== ALWAYS TAKEN
ffc11c94:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
                                                                      
  return copied;                                                      
}                                                                     
ffc11c98:	80 01 00 44 	lwz     r0,68(r1)                              <== NOT EXECUTED
ffc11c9c:	82 e1 00 1c 	lwz     r23,28(r1)                             <== NOT EXECUTED
ffc11ca0:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc11ca4:	83 01 00 20 	lwz     r24,32(r1)                             <== NOT EXECUTED
ffc11ca8:	83 21 00 24 	lwz     r25,36(r1)                             <== NOT EXECUTED
ffc11cac:	83 41 00 28 	lwz     r26,40(r1)                             <== NOT EXECUTED
ffc11cb0:	83 61 00 2c 	lwz     r27,44(r1)                             <== NOT EXECUTED
ffc11cb4:	83 81 00 30 	lwz     r28,48(r1)                             <== NOT EXECUTED
ffc11cb8:	83 a1 00 34 	lwz     r29,52(r1)                             <== NOT EXECUTED
ffc11cbc:	83 c1 00 38 	lwz     r30,56(r1)                             <== NOT EXECUTED
ffc11cc0:	83 e1 00 3c 	lwz     r31,60(r1)                             <== NOT EXECUTED
ffc11cc4:	38 21 00 40 	addi    r1,r1,64                               <== NOT EXECUTED
ffc11cc8:	4e 80 00 20 	blr                                            <== NOT EXECUTED
   *  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 ) {                                                  
ffc11ccc:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc11cd0:	41 9e 00 34 	beq-    cr7,ffc11d04 <IMFS_memfile_write+0x1b8>
    block_ptr = IMFS_memfile_get_block_pointer( the_jnode, block, 0 );
ffc11cd4:	7f 43 d3 78 	mr      r3,r26                                 
ffc11cd8:	7f c4 f3 78 	mr      r4,r30                                 
ffc11cdc:	38 a0 00 00 	li      r5,0                                   
ffc11ce0:	4b ff f3 31 	bl      ffc11010 <IMFS_memfile_get_block_pointer>
    if ( !block_ptr )                                                 
ffc11ce4:	7c 69 1b 79 	mr.     r9,r3                                  
ffc11ce8:	7f 63 db 78 	mr      r3,r27                                 
ffc11cec:	41 a2 ff ac 	beq-    ffc11c98 <IMFS_memfile_write+0x14c>    <== 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 );                     
ffc11cf0:	80 69 00 00 	lwz     r3,0(r9)                               
ffc11cf4:	7f 84 e3 78 	mr      r4,r28                                 
ffc11cf8:	7f a5 eb 78 	mr      r5,r29                                 
ffc11cfc:	48 00 20 81 	bl      ffc13d7c <memcpy>                      
    my_length = 0;                                                    
    copied += to_copy;                                                
ffc11d00:	7f 7b ea 14 	add     r27,r27,r29                            
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
ffc11d04:	38 61 00 08 	addi    r3,r1,8                                
ffc11d08:	38 80 00 00 	li      r4,0                                   
ffc11d0c:	4b ff 2f 49 	bl      ffc04c54 <gettimeofday>                
                                                                      
  return copied;                                                      
}                                                                     
ffc11d10:	80 01 00 44 	lwz     r0,68(r1)                              
    memcpy( &(*block_ptr)[ 0 ], src, my_length );                     
    my_length = 0;                                                    
    copied += to_copy;                                                
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
ffc11d14:	81 21 00 08 	lwz     r9,8(r1)                               
                                                                      
  return copied;                                                      
ffc11d18:	7f 63 db 78 	mr      r3,r27                                 
}                                                                     
ffc11d1c:	7c 08 03 a6 	mtlr    r0                                     
ffc11d20:	82 e1 00 1c 	lwz     r23,28(r1)                             
    memcpy( &(*block_ptr)[ 0 ], src, my_length );                     
    my_length = 0;                                                    
    copied += to_copy;                                                
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
ffc11d24:	91 3a 00 44 	stw     r9,68(r26)                             
ffc11d28:	91 3a 00 48 	stw     r9,72(r26)                             
                                                                      
  return copied;                                                      
}                                                                     
ffc11d2c:	83 01 00 20 	lwz     r24,32(r1)                             
ffc11d30:	83 21 00 24 	lwz     r25,36(r1)                             
ffc11d34:	83 41 00 28 	lwz     r26,40(r1)                             
ffc11d38:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc11d3c:	83 81 00 30 	lwz     r28,48(r1)                             
ffc11d40:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc11d44:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc11d48:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc11d4c:	38 21 00 40 	addi    r1,r1,64                               
ffc11d50:	4e 80 00 20 	blr                                            
   *  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 ) {                      
ffc11d54:	7f 86 50 40 	cmplw   cr7,r6,r10                             
ffc11d58:	40 9d fe 54 	ble+    cr7,ffc11bac <IMFS_memfile_write+0x60> 
    bool zero_fill = start > the_jnode->info.file.size;               
ffc11d5c:	7f 9b 48 00 	cmpw    cr7,r27,r9                             
ffc11d60:	38 80 00 01 	li      r4,1                                   
ffc11d64:	40 9d 00 50 	ble-    cr7,ffc11db4 <IMFS_memfile_write+0x268><== ALWAYS TAKEN
                                                                      
    status = IMFS_memfile_extend( the_jnode, zero_fill, last_byte );  
ffc11d68:	7f 43 d3 78 	mr      r3,r26                                 
ffc11d6c:	54 84 07 fe 	clrlwi  r4,r4,31                               
ffc11d70:	38 a0 00 00 	li      r5,0                                   
ffc11d74:	4b ff fb 49 	bl      ffc118bc <IMFS_memfile_extend>         
    if ( status )                                                     
ffc11d78:	2c 03 00 00 	cmpwi   r3,0                                   
ffc11d7c:	41 82 fe 30 	beq+    ffc11bac <IMFS_memfile_write+0x60>     
  }                                                                   
                                                                      
  IMFS_mtime_ctime_update( the_jnode );                               
                                                                      
  return copied;                                                      
}                                                                     
ffc11d80:	80 01 00 44 	lwz     r0,68(r1)                              
ffc11d84:	82 e1 00 1c 	lwz     r23,28(r1)                             
ffc11d88:	7c 08 03 a6 	mtlr    r0                                     
ffc11d8c:	83 01 00 20 	lwz     r24,32(r1)                             
ffc11d90:	83 21 00 24 	lwz     r25,36(r1)                             
ffc11d94:	83 41 00 28 	lwz     r26,40(r1)                             
ffc11d98:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc11d9c:	83 81 00 30 	lwz     r28,48(r1)                             
ffc11da0:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc11da4:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc11da8:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc11dac:	38 21 00 40 	addi    r1,r1,64                               
ffc11db0:	4e 80 00 20 	blr                                            
   *  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;               
ffc11db4:	41 9e 00 24 	beq-    cr7,ffc11dd8 <IMFS_memfile_write+0x28c><== ALWAYS TAKEN
ffc11db8:	38 80 00 00 	li      r4,0                                   
                                                                      
    status = IMFS_memfile_extend( the_jnode, zero_fill, last_byte );  
ffc11dbc:	7f 43 d3 78 	mr      r3,r26                                 
ffc11dc0:	54 84 07 fe 	clrlwi  r4,r4,31                               
ffc11dc4:	38 a0 00 00 	li      r5,0                                   
ffc11dc8:	4b ff fa f5 	bl      ffc118bc <IMFS_memfile_extend>         
    if ( status )                                                     
ffc11dcc:	2c 03 00 00 	cmpwi   r3,0                                   
ffc11dd0:	41 82 fd dc 	beq+    ffc11bac <IMFS_memfile_write+0x60>     
ffc11dd4:	4b ff ff ac 	b       ffc11d80 <IMFS_memfile_write+0x234>    
   *  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;               
ffc11dd8:	7f 9e 50 40 	cmplw   cr7,r30,r10                            
ffc11ddc:	41 bd ff 8c 	bgt-    cr7,ffc11d68 <IMFS_memfile_write+0x21c>
ffc11de0:	4b ff ff d8 	b       ffc11db8 <IMFS_memfile_write+0x26c>    
                                                                      

ffc04168 <IMFS_mknod>: dev_t dev, IMFS_jnode_types_t *type, IMFS_types_union *info ) { if ( S_ISDIR( mode ) ) {
ffc04168:	54 c9 04 26 	rlwinm  r9,r6,0,16,19                          
  const char *name,                                                   
  size_t namelen,                                                     
  mode_t mode,                                                        
  dev_t dev                                                           
)                                                                     
{                                                                     
ffc0416c:	94 21 ff d0 	stwu    r1,-48(r1)                             
  dev_t dev,                                                          
  IMFS_jnode_types_t *type,                                           
  IMFS_types_union *info                                              
)                                                                     
{                                                                     
  if ( S_ISDIR( mode ) ) {                                            
ffc04170:	2f 89 40 00 	cmpwi   cr7,r9,16384                           
  const char *name,                                                   
  size_t namelen,                                                     
  mode_t mode,                                                        
  dev_t dev                                                           
)                                                                     
{                                                                     
ffc04174:	7c 08 02 a6 	mflr    r0                                     
ffc04178:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc0417c:	7c ca 33 78 	mr      r10,r6                                 
ffc04180:	7c 7f 1b 78 	mr      r31,r3                                 
ffc04184:	90 01 00 34 	stw     r0,52(r1)                              
ffc04188:	7c 8b 23 78 	mr      r11,r4                                 
ffc0418c:	7c a6 2b 78 	mr      r6,r5                                  
  dev_t dev,                                                          
  IMFS_jnode_types_t *type,                                           
  IMFS_types_union *info                                              
)                                                                     
{                                                                     
  if ( S_ISDIR( mode ) ) {                                            
ffc04190:	41 9e 00 b0 	beq-    cr7,ffc04240 <IMFS_mknod+0xd8>         
    *type = IMFS_DIRECTORY;                                           
  } else if ( S_ISREG( mode ) ) {                                     
ffc04194:	6d 25 ff ff 	xoris   r5,r9,65535                            
ffc04198:	2f 85 80 00 	cmpwi   cr7,r5,-32768                          
ffc0419c:	41 9e 00 ac 	beq-    cr7,ffc04248 <IMFS_mknod+0xe0>         
    *type = IMFS_MEMORY_FILE;                                         
  } else if ( S_ISBLK( mode ) || S_ISCHR( mode ) ) {                  
ffc041a0:	2f 89 60 00 	cmpwi   cr7,r9,24576                           
ffc041a4:	41 9e 00 8c 	beq-    cr7,ffc04230 <IMFS_mknod+0xc8>         
ffc041a8:	2f 89 20 00 	cmpwi   cr7,r9,8192                            
ffc041ac:	41 9e 00 84 	beq-    cr7,ffc04230 <IMFS_mknod+0xc8>         
    rtems_filesystem_split_dev_t(                                     
      dev,                                                            
      info->device.major,                                             
      info->device.minor                                              
    );                                                                
  } else if (S_ISFIFO( mode )) {                                      
ffc041b0:	2f 89 10 00 	cmpwi   cr7,r9,4096                            
ffc041b4:	40 be 00 08 	bne+    cr7,ffc041bc <IMFS_mknod+0x54>         <== NEVER TAKEN
    *type = IMFS_FIFO;                                                
ffc041b8:	38 00 00 06 	li      r0,6                                   
  size_t namelen,                                                     
  mode_t mode,                                                        
  const IMFS_types_union *info                                        
)                                                                     
{                                                                     
  const IMFS_fs_info_t *fs_info =                                     
ffc041bc:	81 3f 00 14 	lwz     r9,20(r31)                             
    (const IMFS_fs_info_t *) parentloc->mt_entry->fs_info;            
                                                                      
  return IMFS_create_node_with_control(                               
ffc041c0:	54 08 10 3a 	rlwinm  r8,r0,2,0,29                           
ffc041c4:	7f e3 fb 78 	mr      r3,r31                                 
ffc041c8:	81 29 00 08 	lwz     r9,8(r9)                               
ffc041cc:	7d 65 5b 78 	mr      r5,r11                                 
ffc041d0:	7d 47 53 78 	mr      r7,r10                                 
ffc041d4:	7d 29 42 14 	add     r9,r9,r8                               
ffc041d8:	80 89 00 08 	lwz     r4,8(r9)                               
ffc041dc:	39 01 00 08 	addi    r8,r1,8                                
ffc041e0:	48 00 a1 89 	bl      ffc0e368 <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 ) {                                           
ffc041e4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc041e8:	41 9e 00 68 	beq-    cr7,ffc04250 <IMFS_mknod+0xe8>         
    IMFS_jnode_t *parent = parentloc->node_access;                    
                                                                      
    IMFS_update_ctime( parent );                                      
ffc041ec:	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;                    
ffc041f0:	83 ff 00 08 	lwz     r31,8(r31)                             
                                                                      
    IMFS_update_ctime( parent );                                      
ffc041f4:	38 61 00 20 	addi    r3,r1,32                               
ffc041f8:	48 00 0a 5d 	bl      ffc04c54 <gettimeofday>                
ffc041fc:	81 21 00 20 	lwz     r9,32(r1)                              
    IMFS_update_mtime( parent );                                      
ffc04200:	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 );                                      
ffc04204:	91 3f 00 48 	stw     r9,72(r31)                             
    IMFS_update_mtime( parent );                                      
ffc04208:	38 80 00 00 	li      r4,0                                   
ffc0420c:	48 00 0a 49 	bl      ffc04c54 <gettimeofday>                
ffc04210:	81 21 00 20 	lwz     r9,32(r1)                              
  size_t namelen,                                                     
  mode_t mode,                                                        
  dev_t dev                                                           
)                                                                     
{                                                                     
  int rv = 0;                                                         
ffc04214:	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 );                                      
ffc04218:	91 3f 00 44 	stw     r9,68(r31)                             
  } else {                                                            
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc0421c:	80 01 00 34 	lwz     r0,52(r1)                              
ffc04220:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc04224:	7c 08 03 a6 	mtlr    r0                                     
ffc04228:	38 21 00 30 	addi    r1,r1,48                               
ffc0422c:	4e 80 00 20 	blr                                            
    *type = IMFS_DIRECTORY;                                           
  } else if ( S_ISREG( mode ) ) {                                     
    *type = IMFS_MEMORY_FILE;                                         
  } else if ( S_ISBLK( mode ) || S_ISCHR( mode ) ) {                  
    *type = IMFS_DEVICE;                                              
    rtems_filesystem_split_dev_t(                                     
ffc04230:	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;                                              
ffc04234:	38 00 00 01 	li      r0,1                                   
    rtems_filesystem_split_dev_t(                                     
ffc04238:	91 01 00 0c 	stw     r8,12(r1)                              
ffc0423c:	4b ff ff 80 	b       ffc041bc <IMFS_mknod+0x54>             
  IMFS_jnode_types_t *type,                                           
  IMFS_types_union *info                                              
)                                                                     
{                                                                     
  if ( S_ISDIR( mode ) ) {                                            
    *type = IMFS_DIRECTORY;                                           
ffc04240:	38 00 00 00 	li      r0,0                                   
ffc04244:	4b ff ff 78 	b       ffc041bc <IMFS_mknod+0x54>             
  } else if ( S_ISREG( mode ) ) {                                     
    *type = IMFS_MEMORY_FILE;                                         
ffc04248:	38 00 00 04 	li      r0,4                                   
ffc0424c:	4b ff ff 70 	b       ffc041bc <IMFS_mknod+0x54>             
    IMFS_jnode_t *parent = parentloc->node_access;                    
                                                                      
    IMFS_update_ctime( parent );                                      
    IMFS_update_mtime( parent );                                      
  } else {                                                            
    rv = -1;                                                          
ffc04250:	38 60 ff ff 	li      r3,-1                                  
ffc04254:	4b ff ff c8 	b       ffc0421c <IMFS_mknod+0xb4>             
                                                                      

ffc04258 <IMFS_mount>: #endif #include "imfs.h" int IMFS_mount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
ffc04258:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc0425c:	7c 08 02 a6 	mflr    r0                                     
ffc04260:	90 01 00 0c 	stw     r0,12(r1)                              
  int rv = 0;                                                         
  IMFS_jnode_t *node = mt_entry->mt_point_node->location.node_access; 
ffc04264:	81 23 00 20 	lwz     r9,32(r3)                              
ffc04268:	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;                  
ffc0426c:	81 49 00 4c 	lwz     r10,76(r9)                             
                                                                      
  if ( IMFS_is_directory( node ) ) {                                  
ffc04270:	81 4a 00 00 	lwz     r10,0(r10)                             
ffc04274:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc04278:	40 9e 00 3c 	bne-    cr7,ffc042b4 <IMFS_mount+0x5c>         
    if ( node->info.directory.mt_fs == NULL ) {                       
ffc0427c:	81 49 00 5c 	lwz     r10,92(r9)                             
ffc04280:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc04284:	40 9e 00 1c 	bne-    cr7,ffc042a0 <IMFS_mount+0x48>         <== NEVER TAKEN
      node->info.directory.mt_fs = mt_entry;                          
ffc04288:	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;                                                         
ffc0428c:	38 60 00 00 	li      r3,0                                   
    errno = ENOTDIR;                                                  
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc04290:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc04294:	38 21 00 08 	addi    r1,r1,8                                
ffc04298:	7c 08 03 a6 	mtlr    r0                                     
ffc0429c:	4e 80 00 20 	blr                                            
                                                                      
  if ( IMFS_is_directory( node ) ) {                                  
    if ( node->info.directory.mt_fs == NULL ) {                       
      node->info.directory.mt_fs = mt_entry;                          
    } else {                                                          
      errno = EBUSY;                                                  
ffc042a0:	48 00 ed d9 	bl      ffc13078 <__errno>                     <== NOT EXECUTED
ffc042a4:	39 20 00 10 	li      r9,16                                  <== NOT EXECUTED
ffc042a8:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
      rv = -1;                                                        
ffc042ac:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc042b0:	4b ff ff e0 	b       ffc04290 <IMFS_mount+0x38>             <== NOT EXECUTED
    }                                                                 
  } else {                                                            
    errno = ENOTDIR;                                                  
ffc042b4:	48 00 ed c5 	bl      ffc13078 <__errno>                     
ffc042b8:	39 20 00 14 	li      r9,20                                  
ffc042bc:	91 23 00 00 	stw     r9,0(r3)                               
    rv = -1;                                                          
ffc042c0:	38 60 ff ff 	li      r3,-1                                  
ffc042c4:	4b ff ff cc 	b       ffc04290 <IMFS_mount+0x38>             
                                                                      

ffc0e85c <IMFS_node_remove_directory>: } static IMFS_jnode_t *IMFS_node_remove_directory( IMFS_jnode_t *node ) {
ffc0e85c:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc0e860:	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 );                            
ffc0e864:	39 43 00 54 	addi    r10,r3,84                              
ffc0e868:	90 01 00 0c 	stw     r0,12(r1)                              
  if ( !rtems_chain_is_empty( &node->info.directory.Entries ) ) {     
ffc0e86c:	81 23 00 50 	lwz     r9,80(r3)                              
ffc0e870:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc0e874:	40 9e 00 20 	bne-    cr7,ffc0e894 <IMFS_node_remove_directory+0x38>
    errno = ENOTEMPTY;                                                
    node = NULL;                                                      
  } else if ( IMFS_is_mount_point( node ) ) {                         
ffc0e878:	81 23 00 5c 	lwz     r9,92(r3)                              
ffc0e87c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e880:	40 9e 00 34 	bne-    cr7,ffc0e8b4 <IMFS_node_remove_directory+0x58><== NEVER TAKEN
    errno = EBUSY;                                                    
    node = NULL;                                                      
  }                                                                   
                                                                      
  return node;                                                        
}                                                                     
ffc0e884:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc0e888:	38 21 00 08 	addi    r1,r1,8                                
ffc0e88c:	7c 08 03 a6 	mtlr    r0                                     
ffc0e890:	4e 80 00 20 	blr                                            
static IMFS_jnode_t *IMFS_node_remove_directory(                      
  IMFS_jnode_t *node                                                  
)                                                                     
{                                                                     
  if ( !rtems_chain_is_empty( &node->info.directory.Entries ) ) {     
    errno = ENOTEMPTY;                                                
ffc0e894:	48 00 47 e5 	bl      ffc13078 <__errno>                     
    errno = EBUSY;                                                    
    node = NULL;                                                      
  }                                                                   
                                                                      
  return node;                                                        
}                                                                     
ffc0e898:	80 01 00 0c 	lwz     r0,12(r1)                              
static IMFS_jnode_t *IMFS_node_remove_directory(                      
  IMFS_jnode_t *node                                                  
)                                                                     
{                                                                     
  if ( !rtems_chain_is_empty( &node->info.directory.Entries ) ) {     
    errno = ENOTEMPTY;                                                
ffc0e89c:	39 20 00 5a 	li      r9,90                                  
    errno = EBUSY;                                                    
    node = NULL;                                                      
  }                                                                   
                                                                      
  return node;                                                        
}                                                                     
ffc0e8a0:	7c 08 03 a6 	mtlr    r0                                     
static IMFS_jnode_t *IMFS_node_remove_directory(                      
  IMFS_jnode_t *node                                                  
)                                                                     
{                                                                     
  if ( !rtems_chain_is_empty( &node->info.directory.Entries ) ) {     
    errno = ENOTEMPTY;                                                
ffc0e8a4:	91 23 00 00 	stw     r9,0(r3)                               
    node = NULL;                                                      
ffc0e8a8:	38 60 00 00 	li      r3,0                                   
    errno = EBUSY;                                                    
    node = NULL;                                                      
  }                                                                   
                                                                      
  return node;                                                        
}                                                                     
ffc0e8ac:	38 21 00 08 	addi    r1,r1,8                                
ffc0e8b0:	4e 80 00 20 	blr                                            
{                                                                     
  if ( !rtems_chain_is_empty( &node->info.directory.Entries ) ) {     
    errno = ENOTEMPTY;                                                
    node = NULL;                                                      
  } else if ( IMFS_is_mount_point( node ) ) {                         
    errno = EBUSY;                                                    
ffc0e8b4:	48 00 47 c5 	bl      ffc13078 <__errno>                     <== NOT EXECUTED
    node = NULL;                                                      
  }                                                                   
                                                                      
  return node;                                                        
}                                                                     
ffc0e8b8:	80 01 00 0c 	lwz     r0,12(r1)                              <== NOT EXECUTED
{                                                                     
  if ( !rtems_chain_is_empty( &node->info.directory.Entries ) ) {     
    errno = ENOTEMPTY;                                                
    node = NULL;                                                      
  } else if ( IMFS_is_mount_point( node ) ) {                         
    errno = EBUSY;                                                    
ffc0e8bc:	39 20 00 10 	li      r9,16                                  <== NOT EXECUTED
    node = NULL;                                                      
  }                                                                   
                                                                      
  return node;                                                        
}                                                                     
ffc0e8c0:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
{                                                                     
  if ( !rtems_chain_is_empty( &node->info.directory.Entries ) ) {     
    errno = ENOTEMPTY;                                                
    node = NULL;                                                      
  } else if ( IMFS_is_mount_point( node ) ) {                         
    errno = EBUSY;                                                    
ffc0e8c4:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc0e8c8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
    node = NULL;                                                      
  }                                                                   
                                                                      
  return node;                                                        
}                                                                     
ffc0e8cc:	38 21 00 08 	addi    r1,r1,8                                <== NOT EXECUTED
ffc0e8d0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc042c8 <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;
ffc042c8:	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;                                    
ffc042cc:	81 2a 00 4c 	lwz     r9,76(r10)                             
ffc042d0:	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 ) {                                              
ffc042d4:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc042d8:	41 9e 00 18 	beq-    cr7,ffc042f0 <IMFS_node_type+0x28>     
ffc042dc:	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;                            
ffc042e0:	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 ) {                                              
ffc042e4:	41 9e 00 1c 	beq-    cr7,ffc04300 <IMFS_node_type+0x38>     <== NEVER TAKEN
ffc042e8:	7d 23 4b 78 	mr      r3,r9                                  
      type = imfs_type;                                               
      break;                                                          
  }                                                                   
                                                                      
  return type;                                                        
}                                                                     
ffc042ec:	4e 80 00 20 	blr                                            
ffc042f0:	81 2a 00 50 	lwz     r9,80(r10)                             
ffc042f4:	81 29 00 4c 	lwz     r9,76(r9)                              
ffc042f8:	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;                                                          
ffc042fc:	4e 80 00 20 	blr                                            
ffc04300:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc04304 <IMFS_readlink>: node = loc->node_access; IMFS_assert( node->control->imfs_type == IMFS_SYM_LINK ); for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
ffc04304:	2c 05 00 00 	cmpwi   r5,0                                   
)                                                                     
{                                                                     
  IMFS_jnode_t      *node;                                            
  ssize_t            i;                                               
                                                                      
  node = loc->node_access;                                            
ffc04308:	81 03 00 08 	lwz     r8,8(r3)                               
                                                                      
  IMFS_assert( node->control->imfs_type == IMFS_SYM_LINK );           
                                                                      
  for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
ffc0430c:	41 82 00 4c 	beq-    ffc04358 <IMFS_readlink+0x54>          <== NEVER TAKEN
ffc04310:	81 28 00 50 	lwz     r9,80(r8)                              
ffc04314:	89 29 00 00 	lbz     r9,0(r9)                               
ffc04318:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0431c:	41 9e 00 3c 	beq-    cr7,ffc04358 <IMFS_readlink+0x54>      <== NEVER TAKEN
ffc04320:	39 40 00 00 	li      r10,0                                  
ffc04324:	7c a9 03 a6 	mtctr   r5                                     
ffc04328:	38 60 00 00 	li      r3,0                                   
ffc0432c:	48 00 00 14 	b       ffc04340 <IMFS_readlink+0x3c>          
ffc04330:	81 28 00 50 	lwz     r9,80(r8)                              
ffc04334:	7d 29 18 ae 	lbzx    r9,r9,r3                               
ffc04338:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0433c:	41 9e 00 18 	beq-    cr7,ffc04354 <IMFS_readlink+0x50>      
ffc04340:	38 63 00 01 	addi    r3,r3,1                                
    buf[i] = node->info.sym_link.name[i];                             
ffc04344:	7d 24 51 ae 	stbx    r9,r4,r10                              
                                                                      
  node = loc->node_access;                                            
                                                                      
  IMFS_assert( node->control->imfs_type == IMFS_SYM_LINK );           
                                                                      
  for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
ffc04348:	7c 6a 1b 78 	mr      r10,r3                                 
ffc0434c:	42 00 ff e4 	bdnz+   ffc04330 <IMFS_readlink+0x2c>          
    buf[i] = node->info.sym_link.name[i];                             
                                                                      
  return i;                                                           
}                                                                     
ffc04350:	4e 80 00 20 	blr                                            
ffc04354:	4e 80 00 20 	blr                                            
                                                                      
  node = loc->node_access;                                            
                                                                      
  IMFS_assert( node->control->imfs_type == IMFS_SYM_LINK );           
                                                                      
  for( i=0; ((i<bufsize) && (node->info.sym_link.name[i] != '\0')); i++ )
ffc04358:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
    buf[i] = node->info.sym_link.name[i];                             
                                                                      
  return i;                                                           
}                                                                     
ffc0435c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc04360 <IMFS_rename>: const rtems_filesystem_location_info_t *oldloc, const rtems_filesystem_location_info_t *newparentloc, const char *name, size_t namelen ) {
ffc04360:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc04364:	7c 08 02 a6 	mflr    r0                                     
ffc04368:	90 01 00 2c 	stw     r0,44(r1)                              
ffc0436c:	93 e1 00 24 	stw     r31,36(r1)                             
  int rv = 0;                                                         
  IMFS_jnode_t *node = oldloc->node_access;                           
ffc04370:	83 e4 00 08 	lwz     r31,8(r4)                              
  const rtems_filesystem_location_info_t *oldloc,                     
  const rtems_filesystem_location_info_t *newparentloc,               
  const char *name,                                                   
  size_t namelen                                                      
)                                                                     
{                                                                     
ffc04374:	93 c1 00 20 	stw     r30,32(r1)                             
  /*                                                                  
   * FIXME: Due to insufficient checks we can create inaccessible nodes with
   * this operation.                                                  
   */                                                                 
                                                                      
  if ( node->Parent != NULL ) {                                       
ffc04378:	81 3f 00 08 	lwz     r9,8(r31)                              
  const rtems_filesystem_location_info_t *oldloc,                     
  const rtems_filesystem_location_info_t *newparentloc,               
  const char *name,                                                   
  size_t namelen                                                      
)                                                                     
{                                                                     
ffc0437c:	93 a1 00 1c 	stw     r29,28(r1)                             
  /*                                                                  
   * FIXME: Due to insufficient checks we can create inaccessible nodes with
   * this operation.                                                  
   */                                                                 
                                                                      
  if ( node->Parent != NULL ) {                                       
ffc04380:	2f 89 00 00 	cmpwi   cr7,r9,0                               
  size_t namelen                                                      
)                                                                     
{                                                                     
  int rv = 0;                                                         
  IMFS_jnode_t *node = oldloc->node_access;                           
  IMFS_jnode_t *new_parent = newparentloc->node_access;               
ffc04384:	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 ) {                                       
ffc04388:	41 9e 00 a0 	beq-    cr7,ffc04428 <IMFS_rename+0xc8>        <== NEVER TAKEN
    if ( namelen < IMFS_NAME_MAX ) {                                  
ffc0438c:	2b 87 00 1f 	cmplwi  cr7,r7,31                              
ffc04390:	7c fd 3b 78 	mr      r29,r7                                 
ffc04394:	41 9d 00 80 	bgt-    cr7,ffc04414 <IMFS_rename+0xb4>        <== NEVER TAKEN
      memcpy( node->name, name, namelen );                            
ffc04398:	7c c4 33 78 	mr      r4,r6                                  
ffc0439c:	7c e5 3b 78 	mr      r5,r7                                  
ffc043a0:	38 7f 00 0c 	addi    r3,r31,12                              
ffc043a4:	48 00 f9 d9 	bl      ffc13d7c <memcpy>                      
      node->name [namelen] = '\0';                                    
ffc043a8:	7f bf ea 14 	add     r29,r31,r29                            
ffc043ac:	39 20 00 00 	li      r9,0                                   
ffc043b0:	99 3d 00 0c 	stb     r9,12(r29)                             
RTEMS_INLINE_ROUTINE void _Chain_Append_unprotected(                  
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
ffc043b4:	38 fe 00 54 	addi    r7,r30,84                              
                                                                      
      IMFS_remove_from_directory( node );                             
      IMFS_add_to_directory( new_parent, node );                      
      IMFS_update_ctime( node );                                      
ffc043b8:	38 61 00 08 	addi    r3,r1,8                                
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc043bc:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc043c0:	38 80 00 00 	li      r4,0                                   
  previous       = the_node->previous;                                
ffc043c4:	81 1f 00 04 	lwz     r8,4(r31)                              
  next->previous = previous;                                          
ffc043c8:	91 09 00 04 	stw     r8,4(r9)                               
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc043cc:	81 5e 00 58 	lwz     r10,88(r30)                            
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  next->previous = previous;                                          
  previous->next = next;                                              
ffc043d0:	91 28 00 00 	stw     r9,0(r8)                               
static inline void IMFS_add_to_directory(                             
  IMFS_jnode_t *dir,                                                  
  IMFS_jnode_t *node                                                  
)                                                                     
{                                                                     
  node->Parent = dir;                                                 
ffc043d4:	93 df 00 08 	stw     r30,8(r31)                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
ffc043d8:	90 ff 00 00 	stw     r7,0(r31)                              
  tail->previous = the_node;                                          
ffc043dc:	93 fe 00 58 	stw     r31,88(r30)                            
  old_last->next = the_node;                                          
ffc043e0:	93 ea 00 00 	stw     r31,0(r10)                             
  the_node->previous = old_last;                                      
ffc043e4:	91 5f 00 04 	stw     r10,4(r31)                             
ffc043e8:	48 00 08 6d 	bl      ffc04c54 <gettimeofday>                
ffc043ec:	81 21 00 08 	lwz     r9,8(r1)                               
  const rtems_filesystem_location_info_t *newparentloc,               
  const char *name,                                                   
  size_t namelen                                                      
)                                                                     
{                                                                     
  int rv = 0;                                                         
ffc043f0:	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 );                                      
ffc043f4:	91 3f 00 48 	stw     r9,72(r31)                             
    errno = EINVAL;                                                   
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc043f8:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc043fc:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc04400:	7c 08 03 a6 	mtlr    r0                                     
ffc04404:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc04408:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0440c:	38 21 00 28 	addi    r1,r1,40                               
ffc04410:	4e 80 00 20 	blr                                            
                                                                      
      IMFS_remove_from_directory( node );                             
      IMFS_add_to_directory( new_parent, node );                      
      IMFS_update_ctime( node );                                      
    } else {                                                          
      errno = ENAMETOOLONG;                                           
ffc04414:	48 00 ec 65 	bl      ffc13078 <__errno>                     <== NOT EXECUTED
ffc04418:	39 20 00 5b 	li      r9,91                                  <== NOT EXECUTED
ffc0441c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
      rv = -1;                                                        
ffc04420:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc04424:	4b ff ff d4 	b       ffc043f8 <IMFS_rename+0x98>            <== NOT EXECUTED
    }                                                                 
  } else {                                                            
    errno = EINVAL;                                                   
ffc04428:	48 00 ec 51 	bl      ffc13078 <__errno>                     <== NOT EXECUTED
ffc0442c:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc04430:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    rv = -1;                                                          
ffc04434:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc04438:	4b ff ff c0 	b       ffc043f8 <IMFS_rename+0x98>            <== NOT EXECUTED
                                                                      

ffc04574 <IMFS_unmount>: #endif #include "imfs.h" int IMFS_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
ffc04574:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc04578:	7c 08 02 a6 	mflr    r0                                     
ffc0457c:	90 01 00 0c 	stw     r0,12(r1)                              
  int rv = 0;                                                         
  IMFS_jnode_t *node = mt_entry->mt_point_node->location.node_access; 
ffc04580:	81 23 00 20 	lwz     r9,32(r3)                              
ffc04584:	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;                  
ffc04588:	81 49 00 4c 	lwz     r10,76(r9)                             
                                                                      
  if ( IMFS_is_directory( node ) ) {                                  
ffc0458c:	81 4a 00 00 	lwz     r10,0(r10)                             
ffc04590:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc04594:	40 9e 00 3c 	bne-    cr7,ffc045d0 <IMFS_unmount+0x5c>       <== NEVER TAKEN
    if ( node->info.directory.mt_fs == mt_entry ) {                   
ffc04598:	81 09 00 5c 	lwz     r8,92(r9)                              
ffc0459c:	7f 88 18 00 	cmpw    cr7,r8,r3                              
ffc045a0:	40 9e 00 1c 	bne-    cr7,ffc045bc <IMFS_unmount+0x48>       <== NEVER TAKEN
      node->info.directory.mt_fs = NULL;                              
ffc045a4:	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;                                                         
ffc045a8:	38 60 00 00 	li      r3,0                                   
    errno = ENOTDIR;                                                  
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc045ac:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc045b0:	38 21 00 08 	addi    r1,r1,8                                
ffc045b4:	7c 08 03 a6 	mtlr    r0                                     
ffc045b8:	4e 80 00 20 	blr                                            
                                                                      
  if ( IMFS_is_directory( node ) ) {                                  
    if ( node->info.directory.mt_fs == mt_entry ) {                   
      node->info.directory.mt_fs = NULL;                              
    } else {                                                          
      errno = EINVAL;                                                 
ffc045bc:	48 00 ea bd 	bl      ffc13078 <__errno>                     <== NOT EXECUTED
ffc045c0:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc045c4:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
      rv = -1;                                                        
ffc045c8:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc045cc:	4b ff ff e0 	b       ffc045ac <IMFS_unmount+0x38>           <== NOT EXECUTED
    }                                                                 
  } else {                                                            
    errno = ENOTDIR;                                                  
ffc045d0:	48 00 ea a9 	bl      ffc13078 <__errno>                     <== NOT EXECUTED
ffc045d4:	39 20 00 14 	li      r9,20                                  <== NOT EXECUTED
ffc045d8:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    rv = -1;                                                          
ffc045dc:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc045e0:	4b ff ff cc 	b       ffc045ac <IMFS_unmount+0x38>           <== NOT EXECUTED
                                                                      

ffc04e84 <RTEMS_Malloc_Initialize>: Heap_Initialization_or_extend_handler extend ) { Heap_Control *heap = RTEMS_Malloc_Heap; if ( !rtems_configuration_get_unified_work_area() ) {
ffc04e84:	3d 20 ff c2 	lis     r9,-62                                 
void RTEMS_Malloc_Initialize(                                         
  const Heap_Area *areas,                                             
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
ffc04e88:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc04e8c:	7c 08 02 a6 	mflr    r0                                     
  Heap_Control *heap = RTEMS_Malloc_Heap;                             
ffc04e90:	3d 40 00 00 	lis     r10,0                                  
                                                                      
  if ( !rtems_configuration_get_unified_work_area() ) {               
ffc04e94:	89 29 eb 29 	lbz     r9,-5335(r9)                           
void RTEMS_Malloc_Initialize(                                         
  const Heap_Area *areas,                                             
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
ffc04e98:	93 81 00 18 	stw     r28,24(r1)                             
  Heap_Control *heap = RTEMS_Malloc_Heap;                             
                                                                      
  if ( !rtems_configuration_get_unified_work_area() ) {               
ffc04e9c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
void RTEMS_Malloc_Initialize(                                         
  const Heap_Area *areas,                                             
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
ffc04ea0:	90 01 00 2c 	stw     r0,44(r1)                              
ffc04ea4:	93 21 00 0c 	stw     r25,12(r1)                             
ffc04ea8:	93 41 00 10 	stw     r26,16(r1)                             
ffc04eac:	93 61 00 14 	stw     r27,20(r1)                             
ffc04eb0:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc04eb4:	93 c1 00 20 	stw     r30,32(r1)                             
ffc04eb8:	93 e1 00 24 	stw     r31,36(r1)                             
  Heap_Control *heap = RTEMS_Malloc_Heap;                             
ffc04ebc:	83 8a 27 90 	lwz     r28,10128(r10)                         
                                                                      
  if ( !rtems_configuration_get_unified_work_area() ) {               
ffc04ec0:	40 9e 00 64 	bne-    cr7,ffc04f24 <RTEMS_Malloc_Initialize+0xa0>
    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) {                                
ffc04ec4:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc04ec8:	7c 9b 23 78 	mr      r27,r4                                 
ffc04ecc:	41 9e 00 b8 	beq-    cr7,ffc04f84 <RTEMS_Malloc_Initialize+0x100>
ffc04ed0:	3f 20 ff c1 	lis     r25,-63                                
ffc04ed4:	3b 39 b0 60 	addi    r25,r25,-20384                         
ffc04ed8:	7c ba 2b 78 	mr      r26,r5                                 
ffc04edc:	7c 7f 1b 78 	mr      r31,r3                                 
ffc04ee0:	3b c0 00 00 	li      r30,0                                  
ffc04ee4:	7f 3d cb 78 	mr      r29,r25                                
      const Heap_Area *area = &areas [i];                             
      uintptr_t space_available = (*init_or_extend)(                  
ffc04ee8:	7f 83 e3 78 	mr      r3,r28                                 
ffc04eec:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc04ef0:	80 bf 00 04 	lwz     r5,4(r31)                              
ffc04ef4:	38 c0 00 08 	li      r6,8                                   
ffc04ef8:	7f a9 03 a6 	mtctr   r29                                    
ffc04efc:	4e 80 04 21 	bctrl                                          
        area->begin,                                                  
        area->size,                                                   
        page_size                                                     
      );                                                              
                                                                      
      if ( space_available > 0 ) {                                    
ffc04f00:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04f04:	41 9e 00 08 	beq-    cr7,ffc04f0c <RTEMS_Malloc_Initialize+0x88><== NEVER TAKEN
        init_or_extend = extend;                                      
ffc04f08:	7f 5d d3 78 	mr      r29,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) {                                
ffc04f0c:	3b de 00 01 	addi    r30,r30,1                              
ffc04f10:	7f 9e d8 00 	cmpw    cr7,r30,r27                            
ffc04f14:	3b ff 00 08 	addi    r31,r31,8                              
ffc04f18:	40 9e ff d0 	bne+    cr7,ffc04ee8 <RTEMS_Malloc_Initialize+0x64><== NEVER TAKEN
      if ( space_available > 0 ) {                                    
        init_or_extend = extend;                                      
      }                                                               
    }                                                                 
                                                                      
    if ( init_or_extend == _Heap_Initialize ) {                       
ffc04f1c:	7f 9d c8 00 	cmpw    cr7,r29,r25                            
ffc04f20:	41 9e 00 64 	beq-    cr7,ffc04f84 <RTEMS_Malloc_Initialize+0x100><== NEVER TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   *  If configured, initialize the statistics support                
   */                                                                 
  if ( rtems_malloc_statistics_helpers != NULL ) {                    
ffc04f24:	3d 20 00 00 	lis     r9,0                                   
ffc04f28:	81 29 28 08 	lwz     r9,10248(r9)                           
ffc04f2c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04f30:	41 9e 00 10 	beq-    cr7,ffc04f40 <RTEMS_Malloc_Initialize+0xbc>
    (*rtems_malloc_statistics_helpers->initialize)();                 
ffc04f34:	81 29 00 00 	lwz     r9,0(r9)                               
ffc04f38:	7d 29 03 a6 	mtctr   r9                                     
ffc04f3c:	4e 80 04 21 	bctrl                                          
  }                                                                   
                                                                      
  MSBUMP( space_available, _Protected_heap_Get_size( heap ) );        
ffc04f40:	3f e0 00 00 	lis     r31,0                                  
ffc04f44:	7f 83 e3 78 	mr      r3,r28                                 
ffc04f48:	83 df 2b a0 	lwz     r30,11168(r31)                         
ffc04f4c:	48 00 6e c1 	bl      ffc0be0c <_Protected_heap_Get_size>    
}                                                                     
ffc04f50:	80 01 00 2c 	lwz     r0,44(r1)                              
   */                                                                 
  if ( rtems_malloc_statistics_helpers != NULL ) {                    
    (*rtems_malloc_statistics_helpers->initialize)();                 
  }                                                                   
                                                                      
  MSBUMP( space_available, _Protected_heap_Get_size( heap ) );        
ffc04f54:	7c 63 f2 14 	add     r3,r3,r30                              
}                                                                     
ffc04f58:	83 21 00 0c 	lwz     r25,12(r1)                             
ffc04f5c:	7c 08 03 a6 	mtlr    r0                                     
ffc04f60:	83 41 00 10 	lwz     r26,16(r1)                             
ffc04f64:	83 61 00 14 	lwz     r27,20(r1)                             
ffc04f68:	83 81 00 18 	lwz     r28,24(r1)                             
ffc04f6c:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc04f70:	83 c1 00 20 	lwz     r30,32(r1)                             
   */                                                                 
  if ( rtems_malloc_statistics_helpers != NULL ) {                    
    (*rtems_malloc_statistics_helpers->initialize)();                 
  }                                                                   
                                                                      
  MSBUMP( space_available, _Protected_heap_Get_size( heap ) );        
ffc04f74:	90 7f 2b a0 	stw     r3,11168(r31)                          
}                                                                     
ffc04f78:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc04f7c:	38 21 00 28 	addi    r1,r1,40                               
ffc04f80:	4e 80 00 20 	blr                                            
        init_or_extend = extend;                                      
      }                                                               
    }                                                                 
                                                                      
    if ( init_or_extend == _Heap_Initialize ) {                       
      _Internal_error_Occurred(                                       
ffc04f84:	38 60 00 00 	li      r3,0                                   
ffc04f88:	38 80 00 01 	li      r4,1                                   
ffc04f8c:	38 a0 00 17 	li      r5,23                                  
ffc04f90:	48 00 63 e1 	bl      ffc0b370 <_Internal_error_Occurred>    
                                                                      

ffc2a27c <Stack_check_Dump_threads_usage>: static rtems_printk_plugin_t print_handler; static void Stack_check_Dump_threads_usage( Thread_Control *the_thread ) {
ffc2a27c:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc2a280:	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 );
ffc2a284:	39 43 00 c4 	addi    r10,r3,196                             
static rtems_printk_plugin_t   print_handler;                         
                                                                      
static void Stack_check_Dump_threads_usage(                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
ffc2a288:	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);                     
ffc2a28c:	55 4a 00 34 	rlwinm  r10,r10,0,0,26                         
ffc2a290:	93 81 00 30 	stw     r28,48(r1)                             
      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);                        
ffc2a294:	83 83 00 b4 	lwz     r28,180(r3)                            
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
ffc2a298:	81 03 00 b8 	lwz     r8,184(r3)                             
  size = Stack_check_usable_stack_size(stack);                        
ffc2a29c:	3b 9c ff 80 	addi    r28,r28,-128                           
static rtems_printk_plugin_t   print_handler;                         
                                                                      
static void Stack_check_Dump_threads_usage(                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
ffc2a2a0:	93 41 00 28 	stw     r26,40(r1)                             
    /*                                                                
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
ffc2a2a4:	39 28 01 00 	addi    r9,r8,256                              
    for (ebase = base + length; base < ebase; base++)                 
ffc2a2a8:	57 86 00 3a 	rlwinm  r6,r28,0,0,29                          
static rtems_printk_plugin_t   print_handler;                         
                                                                      
static void Stack_check_Dump_threads_usage(                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
ffc2a2ac:	93 e1 00 3c 	stw     r31,60(r1)                             
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
ffc2a2b0:	7c c9 32 14 	add     r6,r9,r6                               
ffc2a2b4:	7f 89 30 40 	cmplw   cr7,r9,r6                              
static rtems_printk_plugin_t   print_handler;                         
                                                                      
static void Stack_check_Dump_threads_usage(                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
ffc2a2b8:	92 e1 00 1c 	stw     r23,28(r1)                             
ffc2a2bc:	7c 7f 1b 78 	mr      r31,r3                                 
ffc2a2c0:	93 01 00 20 	stw     r24,32(r1)                             
ffc2a2c4:	93 21 00 24 	stw     r25,36(r1)                             
ffc2a2c8:	93 61 00 2c 	stw     r27,44(r1)                             
ffc2a2cc:	93 a1 00 34 	stw     r29,52(r1)                             
ffc2a2d0:	93 c1 00 38 	stw     r30,56(r1)                             
      current = 0;                                                    
    } else                                                            
  #endif                                                              
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
ffc2a2d4:	83 4a 00 20 	lwz     r26,32(r10)                            
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
ffc2a2d8:	40 9c 00 30 	bge-    cr7,ffc2a308 <Stack_check_Dump_threads_usage+0x8c><== NEVER TAKEN
      if (*base != U32_PATTERN)                                       
ffc2a2dc:	80 a8 01 00 	lwz     r5,256(r8)                             
ffc2a2e0:	6c aa 5a 5a 	xoris   r10,r5,23130                           
ffc2a2e4:	2f 8a a5 a5 	cmpwi   cr7,r10,-23131                         
ffc2a2e8:	41 9e 00 14 	beq-    cr7,ffc2a2fc <Stack_check_Dump_threads_usage+0x80><== ALWAYS TAKEN
ffc2a2ec:	48 00 00 f8 	b       ffc2a3e4 <Stack_check_Dump_threads_usage+0x168><== NOT EXECUTED
ffc2a2f0:	81 49 00 00 	lwz     r10,0(r9)                              
ffc2a2f4:	7f 8a 28 00 	cmpw    cr7,r10,r5                             
ffc2a2f8:	40 9e 00 ec 	bne-    cr7,ffc2a3e4 <Stack_check_Dump_threads_usage+0x168>
     * start at lower memory and find first word that does not        
     * match pattern                                                  
     */                                                               
                                                                      
    base += PATTERN_SIZE_WORDS;                                       
    for (ebase = base + length; base < ebase; base++)                 
ffc2a2fc:	39 29 00 04 	addi    r9,r9,4                                
ffc2a300:	7f 86 48 40 	cmplw   cr7,r6,r9                              
ffc2a304:	41 9d ff ec 	bgt+    cr7,ffc2a2f0 <Stack_check_Dump_threads_usage+0x74><== 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;                                                         
ffc2a308:	3a e0 00 00 	li      r23,0                                  <== NOT EXECUTED
                                                                      
  #if (CPU_ALLOCATE_INTERRUPT_STACK == TRUE)                          
    if ( the_thread )                                                 
  #endif                                                              
    {                                                                 
      (*print_handler)(                                               
ffc2a30c:	3f a0 00 00 	lis     r29,0                                  
ffc2a310:	83 7f 00 08 	lwz     r27,8(r31)                             
ffc2a314:	3b dd 5d 48 	addi    r30,r29,23880                          
ffc2a318:	83 3d 5d 48 	lwz     r25,23880(r29)                         
ffc2a31c:	83 1e 00 04 	lwz     r24,4(r30)                             
ffc2a320:	38 80 00 05 	li      r4,5                                   
ffc2a324:	38 a1 00 08 	addi    r5,r1,8                                
ffc2a328:	7f 63 db 78 	mr      r3,r27                                 
ffc2a32c:	4b fe 8a 79 	bl      ffc12da4 <rtems_object_get_name>       
ffc2a330:	3c 80 ff c6 	lis     r4,-58                                 
ffc2a334:	7c 66 1b 78 	mr      r6,r3                                  
ffc2a338:	7f 29 03 a6 	mtctr   r25                                    
ffc2a33c:	38 84 76 b0 	addi    r4,r4,30384                            
ffc2a340:	7f 65 db 78 	mr      r5,r27                                 
ffc2a344:	7f 03 c3 78 	mr      r3,r24                                 
ffc2a348:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2a34c:	4e 80 04 21 	bctrl                                          
                                                                      
  (*print_handler)(                                                   
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
ffc2a350:	80 df 00 b4 	lwz     r6,180(r31)                            
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
ffc2a354:	81 5d 5d 48 	lwz     r10,23880(r29)                         
ffc2a358:	3c 80 ff c6 	lis     r4,-58                                 
    print_context,                                                    
    " %010p - %010p %010p  %8" PRId32 "   ",                          
    stack->area,                                                      
    stack->area + stack->size - 1,                                    
ffc2a35c:	80 bf 00 b8 	lwz     r5,184(r31)                            
ffc2a360:	38 c6 ff ff 	addi    r6,r6,-1                               
      else {                                                          
        (*print_handler)( print_context, "0x%08" PRIx32 "  INTR", ~0 );
      }                                                               
    #endif                                                            
                                                                      
  (*print_handler)(                                                   
ffc2a364:	7d 49 03 a6 	mtctr   r10                                    
ffc2a368:	80 7e 00 04 	lwz     r3,4(r30)                              
ffc2a36c:	38 84 76 c0 	addi    r4,r4,30400                            
ffc2a370:	7c c5 32 14 	add     r6,r5,r6                               
ffc2a374:	7f 47 d3 78 	mr      r7,r26                                 
ffc2a378:	7f 88 e3 78 	mr      r8,r28                                 
ffc2a37c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2a380:	4e 80 04 21 	bctrl                                          
    stack->area + stack->size - 1,                                    
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
ffc2a384:	81 5e 00 08 	lwz     r10,8(r30)                             
    (*print_handler)( print_context, "Unavailable\n" );               
ffc2a388:	81 3d 5d 48 	lwz     r9,23880(r29)                          
    stack->area + stack->size - 1,                                    
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
ffc2a38c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
    (*print_handler)( print_context, "Unavailable\n" );               
ffc2a390:	80 7e 00 04 	lwz     r3,4(r30)                              
    stack->area + stack->size - 1,                                    
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
ffc2a394:	41 9e 00 60 	beq-    cr7,ffc2a3f4 <Stack_check_Dump_threads_usage+0x178><== NEVER TAKEN
    (*print_handler)( print_context, "Unavailable\n" );               
  } else {                                                            
    (*print_handler)( print_context, "%8" PRId32 "\n", used );        
ffc2a398:	3c 80 ff c6 	lis     r4,-58                                 
ffc2a39c:	7d 29 03 a6 	mtctr   r9                                     
ffc2a3a0:	7e e5 bb 78 	mr      r5,r23                                 
ffc2a3a4:	38 84 76 f0 	addi    r4,r4,30448                            
ffc2a3a8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2a3ac:	4e 80 04 21 	bctrl                                          
  }                                                                   
                                                                      
                                                                      
}                                                                     
ffc2a3b0:	80 01 00 44 	lwz     r0,68(r1)                              
ffc2a3b4:	82 e1 00 1c 	lwz     r23,28(r1)                             
ffc2a3b8:	7c 08 03 a6 	mtlr    r0                                     
ffc2a3bc:	83 01 00 20 	lwz     r24,32(r1)                             
ffc2a3c0:	83 21 00 24 	lwz     r25,36(r1)                             
ffc2a3c4:	83 41 00 28 	lwz     r26,40(r1)                             
ffc2a3c8:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc2a3cc:	83 81 00 30 	lwz     r28,48(r1)                             
ffc2a3d0:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc2a3d4:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc2a3d8:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc2a3dc:	38 21 00 40 	addi    r1,r1,64                               
ffc2a3e0:	4e 80 00 20 	blr                                            
    {                                                                 
      stack  = &the_thread->Start.Initial_stack;                      
      current = (void *)_CPU_Context_Get_SP( &the_thread->Registers );
    }                                                                 
                                                                      
  low  = Stack_check_usable_stack_start(stack);                       
ffc2a3e4:	3a e8 00 80 	addi    r23,r8,128                             
  size = Stack_check_usable_stack_size(stack);                        
                                                                      
  high_water_mark = Stack_check_find_high_water_mark(low, size);      
                                                                      
  if ( high_water_mark )                                              
    used = Stack_check_Calculate_used( low, size, high_water_mark );  
ffc2a3e8:	7e f7 e2 14 	add     r23,r23,r28                            
ffc2a3ec:	7e e9 b8 50 	subf    r23,r9,r23                             
ffc2a3f0:	4b ff ff 1c 	b       ffc2a30c <Stack_check_Dump_threads_usage+0x90>
    current,                                                          
    size                                                              
  );                                                                  
                                                                      
  if (Stack_check_Initialized == 0) {                                 
    (*print_handler)( print_context, "Unavailable\n" );               
ffc2a3f4:	3c 80 ff c6 	lis     r4,-58                                 <== NOT EXECUTED
ffc2a3f8:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc2a3fc:	38 84 76 e0 	addi    r4,r4,30432                            <== NOT EXECUTED
ffc2a400:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2a404:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
  } else {                                                            
    (*print_handler)( print_context, "%8" PRId32 "\n", used );        
  }                                                                   
                                                                      
                                                                      
}                                                                     
ffc2a408:	80 01 00 44 	lwz     r0,68(r1)                              <== NOT EXECUTED
ffc2a40c:	82 e1 00 1c 	lwz     r23,28(r1)                             <== NOT EXECUTED
ffc2a410:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc2a414:	83 01 00 20 	lwz     r24,32(r1)                             <== NOT EXECUTED
ffc2a418:	83 21 00 24 	lwz     r25,36(r1)                             <== NOT EXECUTED
ffc2a41c:	83 41 00 28 	lwz     r26,40(r1)                             <== NOT EXECUTED
ffc2a420:	83 61 00 2c 	lwz     r27,44(r1)                             <== NOT EXECUTED
ffc2a424:	83 81 00 30 	lwz     r28,48(r1)                             <== NOT EXECUTED
ffc2a428:	83 a1 00 34 	lwz     r29,52(r1)                             <== NOT EXECUTED
ffc2a42c:	83 c1 00 38 	lwz     r30,56(r1)                             <== NOT EXECUTED
ffc2a430:	83 e1 00 3c 	lwz     r31,60(r1)                             <== NOT EXECUTED
ffc2a434:	38 21 00 40 	addi    r1,r1,64                               <== NOT EXECUTED
ffc2a438:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc2a504 <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) {
ffc2a504:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc2a508:	7c 08 02 a6 	mflr    r0                                     
ffc2a50c:	93 e1 00 34 	stw     r31,52(r1)                             
ffc2a510:	7c 7f 1b 78 	mr      r31,r3                                 
  Stack_Control *stack = &running->Start.Initial_stack;               
  void          *pattern_area = Stack_check_Get_pattern(stack);       
  char           name[32];                                            
                                                                      
  printk("BLOWN STACK!!!\n");                                         
ffc2a514:	3c 60 ff c6 	lis     r3,-58                                 
  Thread_Control *running,                                            
  bool pattern_ok                                                     
) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;                                 
                                                                      
void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok)
{                                                                     
ffc2a518:	90 01 00 3c 	stw     r0,60(r1)                              
  Stack_Control *stack = &running->Start.Initial_stack;               
  void          *pattern_area = Stack_check_Get_pattern(stack);       
  char           name[32];                                            
                                                                      
  printk("BLOWN STACK!!!\n");                                         
ffc2a51c:	38 63 76 f8 	addi    r3,r3,30456                            
  Thread_Control *running,                                            
  bool pattern_ok                                                     
) RTEMS_COMPILER_NO_RETURN_ATTRIBUTE;                                 
                                                                      
void Stack_check_report_blown_task(Thread_Control *running, bool pattern_ok)
{                                                                     
ffc2a520:	93 a1 00 2c 	stw     r29,44(r1)                             
ffc2a524:	93 c1 00 30 	stw     r30,48(r1)                             
ffc2a528:	7c 9e 23 78 	mr      r30,r4                                 
  Stack_Control *stack = &running->Start.Initial_stack;               
  void          *pattern_area = Stack_check_Get_pattern(stack);       
ffc2a52c:	83 bf 00 b8 	lwz     r29,184(r31)                           
  char           name[32];                                            
                                                                      
  printk("BLOWN STACK!!!\n");                                         
ffc2a530:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2a534:	4b fd b1 11 	bl      ffc05644 <printk>                      
  printk("task control block: 0x%08" PRIxPTR "\n", running);          
ffc2a538:	3c 60 ff c6 	lis     r3,-58                                 
ffc2a53c:	38 63 77 08 	addi    r3,r3,30472                            
ffc2a540:	7f e4 fb 78 	mr      r4,r31                                 
ffc2a544:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2a548:	4b fd b0 fd 	bl      ffc05644 <printk>                      
  printk("task ID: 0x%08lx\n", (unsigned long) running->Object.id);   
ffc2a54c:	80 9f 00 08 	lwz     r4,8(r31)                              
ffc2a550:	3c 60 ff c6 	lis     r3,-58                                 
ffc2a554:	38 63 77 24 	addi    r3,r3,30500                            
ffc2a558:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2a55c:	4b fd b0 e9 	bl      ffc05644 <printk>                      
  printk(                                                             
ffc2a560:	80 9f 00 0c 	lwz     r4,12(r31)                             
ffc2a564:	3c 60 ff c6 	lis     r3,-58                                 
ffc2a568:	38 63 77 38 	addi    r3,r3,30520                            
ffc2a56c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2a570:	4b fd b0 d5 	bl      ffc05644 <printk>                      
    "task name: 0x%08" PRIx32 "\n",                                   
    running->Object.name.name_u32                                     
  );                                                                  
  printk(                                                             
ffc2a574:	80 7f 00 08 	lwz     r3,8(r31)                              
ffc2a578:	38 a1 00 08 	addi    r5,r1,8                                
ffc2a57c:	38 80 00 20 	li      r4,32                                  
ffc2a580:	4b fe 88 25 	bl      ffc12da4 <rtems_object_get_name>       
ffc2a584:	7c 64 1b 78 	mr      r4,r3                                  
ffc2a588:	3c 60 ff c6 	lis     r3,-58                                 
ffc2a58c:	38 63 77 4c 	addi    r3,r3,30540                            
ffc2a590:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2a594:	4b fd b0 b1 	bl      ffc05644 <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)                              
ffc2a598:	80 bf 00 b8 	lwz     r5,184(r31)                            
ffc2a59c:	80 9f 00 b4 	lwz     r4,180(r31)                            
  );                                                                  
  printk(                                                             
    "task name string: %s\n",                                         
    rtems_object_get_name(running->Object.id, sizeof(name), name)     
  );                                                                  
  printk(                                                             
ffc2a5a0:	3c 60 ff c6 	lis     r3,-58                                 
ffc2a5a4:	38 63 77 64 	addi    r3,r3,30564                            
ffc2a5a8:	7c c5 22 14 	add     r6,r5,r4                               
ffc2a5ac:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2a5b0:	4b fd b0 95 	bl      ffc05644 <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) {                                                  
ffc2a5b4:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc2a5b8:	41 9e 00 10 	beq-    cr7,ffc2a5c8 <Stack_check_report_blown_task+0xc4><== ALWAYS TAKEN
          rtems_configuration_get_user_multiprocessing_table()->node  
      );                                                              
    }                                                                 
  #endif                                                              
                                                                      
  rtems_fatal(                                                        
ffc2a5bc:	80 9f 00 0c 	lwz     r4,12(r31)                             
ffc2a5c0:	38 60 00 09 	li      r3,9                                   
ffc2a5c4:	4b fd f6 7d 	bl      ffc09c40 <rtems_fatal>                 
    (unsigned long) stack->size,                                      
    stack->area,                                                      
    ((char *) stack->area + stack->size)                              
  );                                                                  
  if (!pattern_ok) {                                                  
    printk(                                                           
ffc2a5c8:	3c 60 ff c6 	lis     r3,-58                                 
ffc2a5cc:	38 63 77 94 	addi    r3,r3,30612                            
ffc2a5d0:	38 80 00 80 	li      r4,128                                 
ffc2a5d4:	38 bd 00 08 	addi    r5,r29,8                               
ffc2a5d8:	38 dd 00 88 	addi    r6,r29,136                             
ffc2a5dc:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2a5e0:	4b fd b0 65 	bl      ffc05644 <printk>                      
ffc2a5e4:	4b ff ff d8 	b       ffc2a5bc <Stack_check_report_blown_task+0xb8>
                                                                      

ffc116ec <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();
ffc116ec:	3d 20 ff c3 	lis     r9,-61                                 
ffc116f0:	81 49 97 b4 	lwz     r10,-26700(r9)                         
  ticks                 = microseconds / microseconds_per_tick;       
ffc116f4:	7d 23 53 96 	divwu   r9,r3,r10                              
  if ( (microseconds % microseconds_per_tick) != 0 )                  
ffc116f8:	7d 49 51 d6 	mullw   r10,r9,r10                             
ffc116fc:	7f 83 50 00 	cmpw    cr7,r3,r10                             
ffc11700:	41 9e 00 08 	beq-    cr7,ffc11708 <TOD_MICROSECONDS_TO_TICKS+0x1c><== ALWAYS TAKEN
    ticks += 1;                                                       
ffc11704:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
                                                                      
  return ticks;                                                       
}                                                                     
ffc11708:	7d 23 4b 78 	mr      r3,r9                                  
ffc1170c:	4e 80 00 20 	blr                                            
                                                                      

ffc0b7a8 <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();
ffc0b7a8:	3d 20 ff c2 	lis     r9,-62                                 
ffc0b7ac:	81 29 ff a4 	lwz     r9,-92(r9)                             
ffc0b7b0:	3d 40 10 62 	lis     r10,4194                               
ffc0b7b4:	61 4a 4d d3 	ori     r10,r10,19923                          
ffc0b7b8:	7d 49 50 16 	mulhwu  r10,r9,r10                             
ffc0b7bc:	55 4a d1 be 	rlwinm  r10,r10,26,6,31                        
  ticks                 = milliseconds / milliseconds_per_tick;       
ffc0b7c0:	7d 23 53 96 	divwu   r9,r3,r10                              
  if ( (milliseconds % milliseconds_per_tick) != 0 )                  
ffc0b7c4:	7d 49 51 d6 	mullw   r10,r9,r10                             
ffc0b7c8:	7f 83 50 00 	cmpw    cr7,r3,r10                             
ffc0b7cc:	41 9e 00 08 	beq-    cr7,ffc0b7d4 <TOD_MILLISECONDS_TO_TICKS+0x2c><== ALWAYS TAKEN
    ticks += 1;                                                       
ffc0b7d0:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
                                                                      
  return ticks;                                                       
}                                                                     
ffc0b7d4:	7d 23 4b 78 	mr      r3,r9                                  
ffc0b7d8:	4e 80 00 20 	blr                                            
                                                                      

ffc0a65c <_API_extensions_Run_postdriver>: } } #endif void _API_extensions_Run_postdriver( void ) {
ffc0a65c:	94 21 ff f0 	stwu    r1,-16(r1)                             
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc0a660:	3d 20 00 00 	lis     r9,0                                   
ffc0a664:	7c 08 02 a6 	mflr    r0                                     
ffc0a668:	93 c1 00 08 	stw     r30,8(r1)                              
ffc0a66c:	3b c9 2e 34 	addi    r30,r9,11828                           
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _Chain_First( &_API_extensions_List );             
ffc0a670:	3b de 00 04 	addi    r30,r30,4                              
    }                                                                 
  }                                                                   
#endif                                                                
                                                                      
void _API_extensions_Run_postdriver( void )                           
{                                                                     
ffc0a674:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0a678:	83 e9 2e 34 	lwz     r31,11828(r9)                          
ffc0a67c:	90 01 00 14 	stw     r0,20(r1)                              
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _Chain_First( &_API_extensions_List );             
ffc0a680:	7f 9f f0 00 	cmpw    cr7,r31,r30                            
ffc0a684:	41 9e 00 1c 	beq-    cr7,ffc0a6a0 <_API_extensions_Run_postdriver+0x44><== NEVER TAKEN
     *  Currently all APIs configure this hook so it is always non-NULL.
     */                                                               
#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)              
    if ( the_extension->postdriver_hook )                             
#endif                                                                
      (*the_extension->postdriver_hook)();                            
ffc0a688:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc0a68c:	7d 29 03 a6 	mtctr   r9                                     
ffc0a690:	4e 80 04 21 	bctrl                                          
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _Chain_First( &_API_extensions_List );             
        !_Chain_Is_tail( &_API_extensions_List, the_node ) ;          
        the_node = the_node->next ) {                                 
ffc0a694:	83 ff 00 00 	lwz     r31,0(r31)                             
void _API_extensions_Run_postdriver( void )                           
{                                                                     
  Chain_Node             *the_node;                                   
  API_extensions_Control *the_extension;                              
                                                                      
  for ( the_node = _Chain_First( &_API_extensions_List );             
ffc0a698:	7f 9f f0 00 	cmpw    cr7,r31,r30                            
ffc0a69c:	40 9e ff ec 	bne+    cr7,ffc0a688 <_API_extensions_Run_postdriver+0x2c>
#if defined(FUNCTIONALITY_NOT_CURRENTLY_USED_BY_ANY_API)              
    if ( the_extension->postdriver_hook )                             
#endif                                                                
      (*the_extension->postdriver_hook)();                            
  }                                                                   
}                                                                     
ffc0a6a0:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0a6a4:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0a6a8:	7c 08 03 a6 	mtlr    r0                                     
ffc0a6ac:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0a6b0:	38 21 00 10 	addi    r1,r1,16                               
ffc0a6b4:	4e 80 00 20 	blr                                            
                                                                      

ffc0cf98 <_CORE_RWLock_Release>: #include <rtems/score/watchdog.h> CORE_RWLock_Status _CORE_RWLock_Release( CORE_RWLock_Control *the_rwlock ) {
ffc0cf98:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0cf9c:	7c 08 02 a6 	mflr    r0                                     
  ISR_Level       level;                                              
  Thread_Control *executing = _Thread_Executing;                      
ffc0cfa0:	3d 20 00 00 	lis     r9,0                                   
#include <rtems/score/watchdog.h>                                     
                                                                      
CORE_RWLock_Status _CORE_RWLock_Release(                              
  CORE_RWLock_Control  *the_rwlock                                    
)                                                                     
{                                                                     
ffc0cfa4:	90 01 00 14 	stw     r0,20(r1)                              
ffc0cfa8:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0cfac:	7c 7f 1b 78 	mr      r31,r3                                 
  ISR_Level       level;                                              
  Thread_Control *executing = _Thread_Executing;                      
ffc0cfb0:	81 09 31 b0 	lwz     r8,12720(r9)                           
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0cfb4:	7d 40 00 a6 	mfmsr   r10                                    
ffc0cfb8:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0cfbc:	7d 49 48 78 	andc    r9,r10,r9                              
ffc0cfc0:	7d 20 01 24 	mtmsr   r9                                     
   *  If locked for reading and no waiters, then OK to read.          
   *  If any thread is waiting, then we wait.                         
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
    if ( the_rwlock->current_state == CORE_RWLOCK_UNLOCKED){          
ffc0cfc4:	81 23 00 44 	lwz     r9,68(r3)                              
ffc0cfc8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0cfcc:	41 9e 00 cc 	beq-    cr7,ffc0d098 <_CORE_RWLock_Release+0x100>
      _ISR_Enable( level );                                           
      executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;          
      return CORE_RWLOCK_SUCCESSFUL;                                  
    }                                                                 
    if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) {
ffc0cfd0:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc0cfd4:	41 9e 00 94 	beq-    cr7,ffc0d068 <_CORE_RWLock_Release+0xd0>
          return CORE_RWLOCK_SUCCESSFUL;                              
        }                                                             
    }                                                                 
                                                                      
    /* CORE_RWLOCK_LOCKED_FOR_WRITING or READING with readers */      
    executing->Wait.return_code = CORE_RWLOCK_SUCCESSFUL;             
ffc0cfd8:	39 20 00 00 	li      r9,0                                   
ffc0cfdc:	91 28 00 34 	stw     r9,52(r8)                              
                                                                      
    /*                                                                
     * Implicitly transition to "unlocked" and find another thread interested
     * in obtaining this rwlock.                                      
     */                                                               
    the_rwlock->current_state = CORE_RWLOCK_UNLOCKED;                 
ffc0cfe0:	91 3f 00 44 	stw     r9,68(r31)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0cfe4:	7d 40 01 24 	mtmsr   r10                                    
  _ISR_Enable( level );                                               
                                                                      
  next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue );            
ffc0cfe8:	7f e3 fb 78 	mr      r3,r31                                 
ffc0cfec:	48 00 23 0d 	bl      ffc0f2f8 <_Thread_queue_Dequeue>       
                                                                      
  if ( next ) {                                                       
ffc0cff0:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0cff4:	41 82 00 5c 	beq-    ffc0d050 <_CORE_RWLock_Release+0xb8>   
    if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) {
ffc0cff8:	81 23 00 30 	lwz     r9,48(r3)                              
ffc0cffc:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc0d000:	41 9e 00 bc 	beq-    cr7,ffc0d0bc <_CORE_RWLock_Release+0x124>
    }                                                                 
                                                                      
    /*                                                                
     * Must be CORE_RWLOCK_THREAD_WAITING_FOR_READING                 
     */                                                               
    the_rwlock->number_of_readers += 1;                               
ffc0d004:	81 3f 00 48 	lwz     r9,72(r31)                             
ffc0d008:	39 29 00 01 	addi    r9,r9,1                                
ffc0d00c:	91 3f 00 48 	stw     r9,72(r31)                             
    the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_READING;       
ffc0d010:	39 20 00 01 	li      r9,1                                   
ffc0d014:	91 3f 00 44 	stw     r9,68(r31)                             
ffc0d018:	48 00 00 20 	b       ffc0d038 <_CORE_RWLock_Release+0xa0>   
    /*                                                                
     * Now see if more readers can be let go.                         
     */                                                               
    while ( 1 ) {                                                     
      next = _Thread_queue_First( &the_rwlock->Wait_queue );          
      if ( !next ||                                                   
ffc0d01c:	81 29 00 30 	lwz     r9,48(r9)                              
ffc0d020:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc0d024:	41 9e 00 2c 	beq-    cr7,ffc0d050 <_CORE_RWLock_Release+0xb8><== NEVER TAKEN
           next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE )
        return CORE_RWLOCK_SUCCESSFUL;                                
      the_rwlock->number_of_readers += 1;                             
ffc0d028:	81 3f 00 48 	lwz     r9,72(r31)                             
ffc0d02c:	39 29 00 01 	addi    r9,r9,1                                
ffc0d030:	91 3f 00 48 	stw     r9,72(r31)                             
      _Thread_queue_Extract( &the_rwlock->Wait_queue, next );         
ffc0d034:	48 00 27 8d 	bl      ffc0f7c0 <_Thread_queue_Extract>       
                                                                      
    /*                                                                
     * Now see if more readers can be let go.                         
     */                                                               
    while ( 1 ) {                                                     
      next = _Thread_queue_First( &the_rwlock->Wait_queue );          
ffc0d038:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d03c:	48 00 28 e1 	bl      ffc0f91c <_Thread_queue_First>         
      if ( !next ||                                                   
ffc0d040:	7c 69 1b 79 	mr.     r9,r3                                  
           next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE )
        return CORE_RWLOCK_SUCCESSFUL;                                
      the_rwlock->number_of_readers += 1;                             
      _Thread_queue_Extract( &the_rwlock->Wait_queue, next );         
ffc0d044:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d048:	7d 24 4b 78 	mr      r4,r9                                  
    /*                                                                
     * Now see if more readers can be let go.                         
     */                                                               
    while ( 1 ) {                                                     
      next = _Thread_queue_First( &the_rwlock->Wait_queue );          
      if ( !next ||                                                   
ffc0d04c:	40 82 ff d0 	bne+    ffc0d01c <_CORE_RWLock_Release+0x84>   
  }                                                                   
                                                                      
  /* indentation is to match _ISR_Disable at top */                   
                                                                      
  return CORE_RWLOCK_SUCCESSFUL;                                      
}                                                                     
ffc0d050:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0d054:	38 60 00 00 	li      r3,0                                   
ffc0d058:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0d05c:	7c 08 03 a6 	mtlr    r0                                     
ffc0d060:	38 21 00 10 	addi    r1,r1,16                               
ffc0d064:	4e 80 00 20 	blr                                            
      _ISR_Enable( level );                                           
      executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;          
      return CORE_RWLOCK_SUCCESSFUL;                                  
    }                                                                 
    if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) {
	the_rwlock->number_of_readers -= 1;                                  
ffc0d068:	81 23 00 48 	lwz     r9,72(r3)                              
ffc0d06c:	39 29 ff ff 	addi    r9,r9,-1                               
	if ( the_rwlock->number_of_readers != 0 ) {                          
ffc0d070:	2f 89 00 00 	cmpwi   cr7,r9,0                               
      _ISR_Enable( level );                                           
      executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;          
      return CORE_RWLOCK_SUCCESSFUL;                                  
    }                                                                 
    if ( the_rwlock->current_state == CORE_RWLOCK_LOCKED_FOR_READING ) {
	the_rwlock->number_of_readers -= 1;                                  
ffc0d074:	91 23 00 48 	stw     r9,72(r3)                              
	if ( the_rwlock->number_of_readers != 0 ) {                          
ffc0d078:	41 9e ff 60 	beq+    cr7,ffc0cfd8 <_CORE_RWLock_Release+0x40>
ffc0d07c:	7d 40 01 24 	mtmsr   r10                                    
  }                                                                   
                                                                      
  /* indentation is to match _ISR_Disable at top */                   
                                                                      
  return CORE_RWLOCK_SUCCESSFUL;                                      
}                                                                     
ffc0d080:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0d084:	38 60 00 00 	li      r3,0                                   
ffc0d088:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0d08c:	7c 08 03 a6 	mtlr    r0                                     
ffc0d090:	38 21 00 10 	addi    r1,r1,16                               
ffc0d094:	4e 80 00 20 	blr                                            
ffc0d098:	7d 40 01 24 	mtmsr   r10                                    
ffc0d09c:	80 01 00 14 	lwz     r0,20(r1)                              
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
    if ( the_rwlock->current_state == CORE_RWLOCK_UNLOCKED){          
      _ISR_Enable( level );                                           
      executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;          
ffc0d0a0:	39 20 00 02 	li      r9,2                                   
  }                                                                   
                                                                      
  /* indentation is to match _ISR_Disable at top */                   
                                                                      
  return CORE_RWLOCK_SUCCESSFUL;                                      
}                                                                     
ffc0d0a4:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0d0a8:	38 60 00 00 	li      r3,0                                   
ffc0d0ac:	7c 08 03 a6 	mtlr    r0                                     
   */                                                                 
                                                                      
  _ISR_Disable( level );                                              
    if ( the_rwlock->current_state == CORE_RWLOCK_UNLOCKED){          
      _ISR_Enable( level );                                           
      executing->Wait.return_code = CORE_RWLOCK_UNAVAILABLE;          
ffc0d0b0:	91 28 00 34 	stw     r9,52(r8)                              
  }                                                                   
                                                                      
  /* indentation is to match _ISR_Disable at top */                   
                                                                      
  return CORE_RWLOCK_SUCCESSFUL;                                      
}                                                                     
ffc0d0b4:	38 21 00 10 	addi    r1,r1,16                               
ffc0d0b8:	4e 80 00 20 	blr                                            
                                                                      
  next = _Thread_queue_Dequeue( &the_rwlock->Wait_queue );            
                                                                      
  if ( next ) {                                                       
    if ( next->Wait.option == CORE_RWLOCK_THREAD_WAITING_FOR_WRITE ) {
      the_rwlock->current_state = CORE_RWLOCK_LOCKED_FOR_WRITING;     
ffc0d0bc:	39 20 00 02 	li      r9,2                                   
ffc0d0c0:	91 3f 00 44 	stw     r9,68(r31)                             
      return CORE_RWLOCK_SUCCESSFUL;                                  
ffc0d0c4:	4b ff ff 8c 	b       ffc0d050 <_CORE_RWLock_Release+0xb8>   
                                                                      

ffc0d0c8 <_CORE_RWLock_Timeout>: void _CORE_RWLock_Timeout( Objects_Id id, void *ignored ) {
ffc0d0c8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0d0cc:	7c 08 02 a6 	mflr    r0                                     
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc0d0d0:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
void _CORE_RWLock_Timeout(                                            
  Objects_Id  id,                                                     
  void       *ignored                                                 
)                                                                     
{                                                                     
ffc0d0d4:	90 01 00 1c 	stw     r0,28(r1)                              
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc0d0d8:	48 00 1e 21 	bl      ffc0eef8 <_Thread_Get>                 
  switch ( location ) {                                               
ffc0d0dc:	81 21 00 08 	lwz     r9,8(r1)                               
ffc0d0e0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0d0e4:	40 9e 00 18 	bne-    cr7,ffc0d0fc <_CORE_RWLock_Timeout+0x34><== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_queue_Process_timeout( the_thread );                    
ffc0d0e8:	48 00 29 49 	bl      ffc0fa30 <_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;                  
ffc0d0ec:	3d 20 00 00 	lis     r9,0                                   
ffc0d0f0:	81 49 28 90 	lwz     r10,10384(r9)                          
                                                                      
    --level;                                                          
ffc0d0f4:	39 4a ff ff 	addi    r10,r10,-1                             
    _Thread_Dispatch_disable_level = level;                           
ffc0d0f8:	91 49 28 90 	stw     r10,10384(r9)                          
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
ffc0d0fc:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0d100:	38 21 00 18 	addi    r1,r1,24                               
ffc0d104:	7c 08 03 a6 	mtlr    r0                                     
ffc0d108:	4e 80 00 20 	blr                                            
                                                                      

ffc0aa44 <_CORE_mutex_Seize>: Objects_Id _id, bool _wait, Watchdog_Interval _timeout, ISR_Level _level ) {
ffc0aa44:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0aa48:	7c 08 02 a6 	mflr    r0                                     
ffc0aa4c:	93 e1 00 24 	stw     r31,36(r1)                             
   * 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 )                      
ffc0aa50:	3f e0 00 00 	lis     r31,0                                  
ffc0aa54:	81 3f 28 68 	lwz     r9,10344(r31)                          
ffc0aa58:	93 61 00 14 	stw     r27,20(r1)                             
ffc0aa5c:	7c db 33 78 	mr      r27,r6                                 
ffc0aa60:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0aa64:	93 81 00 18 	stw     r28,24(r1)                             
ffc0aa68:	7c 9c 23 78 	mr      r28,r4                                 
ffc0aa6c:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc0aa70:	7c 7d 1b 78 	mr      r29,r3                                 
ffc0aa74:	93 c1 00 20 	stw     r30,32(r1)                             
ffc0aa78:	7c be 2b 78 	mr      r30,r5                                 
ffc0aa7c:	90 01 00 2c 	stw     r0,44(r1)                              
ffc0aa80:	90 e1 00 08 	stw     r7,8(r1)                               
ffc0aa84:	41 9e 00 88 	beq-    cr7,ffc0ab0c <_CORE_mutex_Seize+0xc8>  
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
ffc0aa88:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc0aa8c:	41 9e 00 d4 	beq-    cr7,ffc0ab60 <_CORE_mutex_Seize+0x11c> 
ffc0aa90:	3d 20 00 00 	lis     r9,0                                   
ffc0aa94:	81 29 28 90 	lwz     r9,10384(r9)                           
ffc0aa98:	2b 89 00 01 	cmplwi  cr7,r9,1                               
ffc0aa9c:	41 9d 00 d8 	bgt-    cr7,ffc0ab74 <_CORE_mutex_Seize+0x130> 
ffc0aaa0:	38 81 00 08 	addi    r4,r1,8                                
ffc0aaa4:	48 00 5b 75 	bl      ffc10618 <_CORE_mutex_Seize_interrupt_trylock>
ffc0aaa8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0aaac:	41 9e 00 3c 	beq-    cr7,ffc0aae8 <_CORE_mutex_Seize+0xa4>  <== ALWAYS TAKEN
ffc0aab0:	3d 20 00 00 	lis     r9,0                                   
   *                                                                  
   * 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;                  
ffc0aab4:	81 5f 28 68 	lwz     r10,10344(r31)                         
ffc0aab8:	81 29 31 b0 	lwz     r9,12720(r9)                           
                                                                      
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;
ffc0aabc:	39 00 00 01 	li      r8,1                                   
ffc0aac0:	91 1d 00 30 	stw     r8,48(r29)                             
                                                                      
    ++level;                                                          
ffc0aac4:	39 4a 00 01 	addi    r10,r10,1                              
ffc0aac8:	93 a9 00 44 	stw     r29,68(r9)                             
ffc0aacc:	93 89 00 20 	stw     r28,32(r9)                             
    _Thread_Dispatch_disable_level = level;                           
ffc0aad0:	91 5f 28 68 	stw     r10,10344(r31)                         
ffc0aad4:	81 21 00 08 	lwz     r9,8(r1)                               
ffc0aad8:	7d 20 01 24 	mtmsr   r9                                     
ffc0aadc:	7f a3 eb 78 	mr      r3,r29                                 
ffc0aae0:	7f 64 db 78 	mr      r4,r27                                 
ffc0aae4:	4b ff fe 81 	bl      ffc0a964 <_CORE_mutex_Seize_interrupt_blocking>
}                                                                     
ffc0aae8:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc0aaec:	83 61 00 14 	lwz     r27,20(r1)                             
ffc0aaf0:	7c 08 03 a6 	mtlr    r0                                     
ffc0aaf4:	83 81 00 18 	lwz     r28,24(r1)                             
ffc0aaf8:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0aafc:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0ab00:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0ab04:	38 21 00 28 	addi    r1,r1,40                               
ffc0ab08:	4e 80 00 20 	blr                                            
  bool                 _wait,                                         
  Watchdog_Interval    _timeout,                                      
  ISR_Level            _level                                         
)                                                                     
{                                                                     
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
ffc0ab0c:	38 81 00 08 	addi    r4,r1,8                                
ffc0ab10:	48 00 5b 09 	bl      ffc10618 <_CORE_mutex_Seize_interrupt_trylock>
ffc0ab14:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ab18:	41 be ff d0 	beq-    cr7,ffc0aae8 <_CORE_mutex_Seize+0xa4>  
ffc0ab1c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0ab20:	40 be ff 90 	bne-    cr7,ffc0aab0 <_CORE_mutex_Seize+0x6c>  
ffc0ab24:	81 21 00 08 	lwz     r9,8(r1)                               
ffc0ab28:	7d 20 01 24 	mtmsr   r9                                     
}                                                                     
ffc0ab2c:	80 01 00 2c 	lwz     r0,44(r1)                              
  bool                 _wait,                                         
  Watchdog_Interval    _timeout,                                      
  ISR_Level            _level                                         
)                                                                     
{                                                                     
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
ffc0ab30:	3d 20 00 00 	lis     r9,0                                   
ffc0ab34:	81 29 31 b0 	lwz     r9,12720(r9)                           
ffc0ab38:	39 40 00 01 	li      r10,1                                  
}                                                                     
ffc0ab3c:	7c 08 03 a6 	mtlr    r0                                     
ffc0ab40:	83 61 00 14 	lwz     r27,20(r1)                             
ffc0ab44:	83 81 00 18 	lwz     r28,24(r1)                             
ffc0ab48:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0ab4c:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0ab50:	83 e1 00 24 	lwz     r31,36(r1)                             
  bool                 _wait,                                         
  Watchdog_Interval    _timeout,                                      
  ISR_Level            _level                                         
)                                                                     
{                                                                     
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
ffc0ab54:	91 49 00 34 	stw     r10,52(r9)                             
}                                                                     
ffc0ab58:	38 21 00 28 	addi    r1,r1,40                               
ffc0ab5c:	4e 80 00 20 	blr                                            
  bool                 _wait,                                         
  Watchdog_Interval    _timeout,                                      
  ISR_Level            _level                                         
)                                                                     
{                                                                     
  _CORE_mutex_Seize_body( _the_mutex, _id, _wait, _timeout, _level ); 
ffc0ab60:	38 81 00 08 	addi    r4,r1,8                                
ffc0ab64:	48 00 5a b5 	bl      ffc10618 <_CORE_mutex_Seize_interrupt_trylock>
ffc0ab68:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ab6c:	40 9e ff b8 	bne+    cr7,ffc0ab24 <_CORE_mutex_Seize+0xe0>  <== NEVER TAKEN
ffc0ab70:	4b ff ff 78 	b       ffc0aae8 <_CORE_mutex_Seize+0xa4>      
ffc0ab74:	38 60 00 00 	li      r3,0                                   
ffc0ab78:	38 80 00 00 	li      r4,0                                   
ffc0ab7c:	38 a0 00 12 	li      r5,18                                  
ffc0ab80:	48 00 07 f1 	bl      ffc0b370 <_Internal_error_Occurred>    
                                                                      

ffc0ad14 <_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 ) {
ffc0ad14:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0ad18:	7c 08 02 a6 	mflr    r0                                     
ffc0ad1c:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0ad20:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0ad24:	90 01 00 14 	stw     r0,20(r1)                              
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
                                                                      
  if ( (the_thread = _Thread_queue_Dequeue(&the_semaphore->Wait_queue)) ) {
ffc0ad28:	48 00 21 b5 	bl      ffc0cedc <_Thread_queue_Dequeue>       
ffc0ad2c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0ad30:	41 9e 00 1c 	beq-    cr7,ffc0ad4c <_CORE_semaphore_Surrender+0x38>
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
    _ISR_Enable( level );                                             
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc0ad34:	80 01 00 14 	lwz     r0,20(r1)                              
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
ffc0ad38:	38 60 00 00 	li      r3,0                                   
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
    _ISR_Enable( level );                                             
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc0ad3c:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0ad40:	7c 08 03 a6 	mtlr    r0                                     
ffc0ad44:	38 21 00 10 	addi    r1,r1,16                               
ffc0ad48:	4e 80 00 20 	blr                                            
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0ad4c:	7d 00 00 a6 	mfmsr   r8                                     
ffc0ad50:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0ad54:	7d 09 48 78 	andc    r9,r8,r9                               
ffc0ad58:	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 )
ffc0ad5c:	81 3f 00 48 	lwz     r9,72(r31)                             
        the_semaphore->count += 1;                                    
      else                                                            
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
ffc0ad60:	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 )
ffc0ad64:	81 5f 00 40 	lwz     r10,64(r31)                            
ffc0ad68:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc0ad6c:	40 9c 00 10 	bge-    cr7,ffc0ad7c <_CORE_semaphore_Surrender+0x68><== NEVER TAKEN
        the_semaphore->count += 1;                                    
ffc0ad70:	39 29 00 01 	addi    r9,r9,1                                
ffc0ad74:	91 3f 00 48 	stw     r9,72(r31)                             
{                                                                     
  Thread_Control *the_thread;                                         
  ISR_Level       level;                                              
  CORE_semaphore_Status status;                                       
                                                                      
  status = CORE_SEMAPHORE_STATUS_SUCCESSFUL;                          
ffc0ad78:	38 60 00 00 	li      r3,0                                   
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0ad7c:	7d 00 01 24 	mtmsr   r8                                     
        status = CORE_SEMAPHORE_MAXIMUM_COUNT_EXCEEDED;               
    _ISR_Enable( level );                                             
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc0ad80:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0ad84:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0ad88:	7c 08 03 a6 	mtlr    r0                                     
ffc0ad8c:	38 21 00 10 	addi    r1,r1,16                               
ffc0ad90:	4e 80 00 20 	blr                                            
                                                                      

ffc0a83c <_Chain_Initialize>: Chain_Node *current = head; Chain_Node *next = starting_address; head->previous = NULL; while ( count-- ) {
ffc0a83c:	2f 85 00 00 	cmpwi   cr7,r5,0                               
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *current = head;                                         
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
ffc0a840:	39 20 00 00 	li      r9,0                                   
  size_t         node_size                                            
)                                                                     
{                                                                     
  size_t count = number_nodes;                                        
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
ffc0a844:	39 03 00 04 	addi    r8,r3,4                                
  Chain_Node *current = head;                                         
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
ffc0a848:	91 23 00 04 	stw     r9,4(r3)                               
                                                                      
  while ( count-- ) {                                                 
ffc0a84c:	38 e5 ff ff 	addi    r7,r5,-1                               
ffc0a850:	41 9e 00 38 	beq-    cr7,ffc0a888 <_Chain_Initialize+0x4c>  <== NEVER TAKEN
ffc0a854:	7c a9 03 a6 	mtctr   r5                                     
ffc0a858:	7c 89 23 78 	mr      r9,r4                                  
ffc0a85c:	7c 6a 1b 78 	mr      r10,r3                                 
    current->next  = next;                                            
ffc0a860:	91 2a 00 00 	stw     r9,0(r10)                              
    next->previous = current;                                         
ffc0a864:	91 49 00 04 	stw     r10,4(r9)                              
ffc0a868:	7d 2a 4b 78 	mr      r10,r9                                 
    current        = next;                                            
    next           = (Chain_Node *)                                   
ffc0a86c:	7d 29 32 14 	add     r9,r9,r6                               
  Chain_Node *current = head;                                         
  Chain_Node *next = starting_address;                                
                                                                      
  head->previous = NULL;                                              
                                                                      
  while ( count-- ) {                                                 
ffc0a870:	42 00 ff f0 	bdnz+   ffc0a860 <_Chain_Initialize+0x24>      
#include <rtems/system.h>                                             
#include <rtems/score/address.h>                                      
#include <rtems/score/chain.h>                                        
#include <rtems/score/isr.h>                                          
                                                                      
void _Chain_Initialize(                                               
ffc0a874:	7c c6 39 d6 	mullw   r6,r6,r7                               
ffc0a878:	7c c4 32 14 	add     r6,r4,r6                               
    current        = next;                                            
    next           = (Chain_Node *)                                   
                        _Addresses_Add_offset( (void *) next, node_size );
  }                                                                   
                                                                      
  current->next = tail;                                               
ffc0a87c:	91 06 00 00 	stw     r8,0(r6)                               
  tail->previous = current;                                           
ffc0a880:	90 c3 00 08 	stw     r6,8(r3)                               
ffc0a884:	4e 80 00 20 	blr                                            
)                                                                     
{                                                                     
  size_t count = number_nodes;                                        
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *current = head;                                         
ffc0a888:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc0a88c:	4b ff ff f0 	b       ffc0a87c <_Chain_Initialize+0x40>      <== NOT EXECUTED
                                                                      

ffc0952c <_Event_Surrender>: rtems_event_set event_in, Event_Control *event, Thread_blocking_operation_States *sync_state, States_Control wait_state ) {
ffc0952c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc09530:	7c 08 02 a6 	mflr    r0                                     
ffc09534:	90 01 00 14 	stw     r0,20(r1)                              
ffc09538:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0953c:	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;                               
ffc09540:	81 63 00 30 	lwz     r11,48(r3)                             
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc09544:	7d 40 00 a6 	mfmsr   r10                                    
ffc09548:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0954c:	7d 49 48 78 	andc    r9,r10,r9                              
ffc09550:	7d 20 01 24 	mtmsr   r9                                     
RTEMS_INLINE_ROUTINE void _Event_sets_Post(                           
  rtems_event_set  the_new_events,                                    
  rtems_event_set *the_event_set                                      
)                                                                     
{                                                                     
  *the_event_set |= the_new_events;                                   
ffc09554:	81 25 00 00 	lwz     r9,0(r5)                               
ffc09558:	7c 84 4b 78 	or      r4,r4,r9                               
ffc0955c:	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;                           
ffc09560:	81 23 00 24 	lwz     r9,36(r3)                              
  seized_events = _Event_sets_Get( pending_events, event_condition ); 
                                                                      
  /*                                                                  
   *  No events were seized in this operation                         
   */                                                                 
  if ( _Event_sets_Is_empty( seized_events ) ) {                      
ffc09564:	7c 88 48 39 	and.    r8,r4,r9                               
ffc09568:	41 82 00 d4 	beq-    ffc0963c <_Event_Surrender+0x110>      
                                                                      
  /*                                                                  
   *  If we are in an ISR and sending to the current thread, then     
   *  we have a critical section issue to deal with.                  
   */                                                                 
  if ( _ISR_Is_in_progress() &&                                       
ffc0956c:	3c 60 00 00 	lis     r3,0                                   
ffc09570:	38 63 31 a0 	addi    r3,r3,12704                            
ffc09574:	80 03 00 08 	lwz     r0,8(r3)                               
ffc09578:	2f 80 00 00 	cmpwi   cr7,r0,0                               
ffc0957c:	41 9e 00 10 	beq-    cr7,ffc0958c <_Event_Surrender+0x60>   
ffc09580:	80 63 00 10 	lwz     r3,16(r3)                              
ffc09584:	7f 9f 18 00 	cmpw    cr7,r31,r3                             
ffc09588:	41 9e 00 74 	beq-    cr7,ffc095fc <_Event_Surrender+0xd0>   
RTEMS_INLINE_ROUTINE bool _States_Are_set (                           
  States_Control the_states,                                          
  States_Control mask                                                 
)                                                                     
{                                                                     
   return ( (the_states & mask) != STATES_READY);                     
ffc0958c:	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 ) ) {   
ffc09590:	7c e3 30 39 	and.    r3,r7,r6                               
ffc09594:	41 82 00 a8 	beq-    ffc0963c <_Event_Surrender+0x110>      
    if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
ffc09598:	7f 89 40 00 	cmpw    cr7,r9,r8                              
ffc0959c:	41 9e 00 0c 	beq-    cr7,ffc095a8 <_Event_Surrender+0x7c>   
ffc095a0:	71 69 00 02 	andi.   r9,r11,2                               
ffc095a4:	41 82 00 98 	beq-    ffc0963c <_Event_Surrender+0x110>      <== NEVER TAKEN
      event->pending_events = _Event_sets_Clear(                      
        pending_events,                                               
        seized_events                                                 
      );                                                              
      the_thread->Wait.count = 0;                                     
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
ffc095a8:	81 3f 00 28 	lwz     r9,40(r31)                             
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) );                            
ffc095ac:	7c 84 40 78 	andc    r4,r4,r8                               
    if ( seized_events == event_condition || _Options_Is_any( option_set ) ) {
      event->pending_events = _Event_sets_Clear(                      
        pending_events,                                               
        seized_events                                                 
      );                                                              
      the_thread->Wait.count = 0;                                     
ffc095b0:	38 e0 00 00 	li      r7,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(                      
ffc095b4:	90 85 00 00 	stw     r4,0(r5)                               
        pending_events,                                               
        seized_events                                                 
      );                                                              
      the_thread->Wait.count = 0;                                     
ffc095b8:	90 ff 00 24 	stw     r7,36(r31)                             
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
ffc095bc:	91 09 00 00 	stw     r8,0(r9)                               
                                                                      
static inline void ppc_interrupt_flash( uint32_t level )              
{                                                                     
  uint32_t current_level;                                             
                                                                      
  __asm__ volatile (                                                  
ffc095c0:	7d 20 00 a6 	mfmsr   r9                                     
ffc095c4:	7d 40 01 24 	mtmsr   r10                                    
ffc095c8:	7d 20 01 24 	mtmsr   r9                                     
                                                                      
      _ISR_Flash( level );                                            
                                                                      
      if ( !_Watchdog_Is_active( &the_thread->Timer ) ) {             
ffc095cc:	81 3f 00 50 	lwz     r9,80(r31)                             
ffc095d0:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc095d4:	41 9e 00 80 	beq-    cr7,ffc09654 <_Event_Surrender+0x128>  
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc095d8:	7d 40 01 24 	mtmsr   r10                                    
      }                                                               
      return;                                                         
    }                                                                 
  }                                                                   
  _ISR_Enable( level );                                               
}                                                                     
ffc095dc:	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 );                  
ffc095e0:	7f e3 fb 78 	mr      r3,r31                                 
ffc095e4:	3c 80 10 07 	lis     r4,4103                                
ffc095e8:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc095ec:	7c 08 03 a6 	mtlr    r0                                     
ffc095f0:	60 84 ff f8 	ori     r4,r4,65528                            
ffc095f4:	38 21 00 10 	addi    r1,r1,16                               
ffc095f8:	48 00 2f c8 	b       ffc0c5c0 <_Thread_Clear_state>         
   *  If we are in an ISR and sending to the current thread, then     
   *  we have a critical section issue to deal with.                  
   */                                                                 
  if ( _ISR_Is_in_progress() &&                                       
       _Thread_Is_executing( the_thread ) &&                          
       ((*sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||         
ffc095fc:	80 66 00 00 	lwz     r3,0(r6)                               
ffc09600:	38 63 ff ff 	addi    r3,r3,-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 ) &&                          
ffc09604:	2b 83 00 01 	cmplwi  cr7,r3,1                               
ffc09608:	41 9d ff 84 	bgt+    cr7,ffc0958c <_Event_Surrender+0x60>   
       ((*sync_state == THREAD_BLOCKING_OPERATION_TIMEOUT) ||         
        (*sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED)) ) {
    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
ffc0960c:	7f 89 40 00 	cmpw    cr7,r9,r8                              
ffc09610:	41 9e 00 0c 	beq-    cr7,ffc0961c <_Event_Surrender+0xf0>   
ffc09614:	71 63 00 02 	andi.   r3,r11,2                               
ffc09618:	41 82 00 24 	beq-    ffc0963c <_Event_Surrender+0x110>      <== NEVER TAKEN
      event->pending_events = _Event_sets_Clear(                      
        pending_events,                                               
        seized_events                                                 
      );                                                              
      the_thread->Wait.count = 0;                                     
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
ffc0961c:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc09620:	7c 84 40 78 	andc    r4,r4,r8                               
    if ( seized_events == event_condition || _Options_Is_any(option_set) ) {
      event->pending_events = _Event_sets_Clear(                      
        pending_events,                                               
        seized_events                                                 
      );                                                              
      the_thread->Wait.count = 0;                                     
ffc09624:	38 e0 00 00 	li      r7,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(                      
ffc09628:	90 85 00 00 	stw     r4,0(r5)                               
        pending_events,                                               
        seized_events                                                 
      );                                                              
      the_thread->Wait.count = 0;                                     
ffc0962c:	90 ff 00 24 	stw     r7,36(r31)                             
      *(rtems_event_set *)the_thread->Wait.return_argument = seized_events;
ffc09630:	91 09 00 00 	stw     r8,0(r9)                               
      *sync_state = THREAD_BLOCKING_OPERATION_SATISFIED;              
ffc09634:	39 20 00 03 	li      r9,3                                   
ffc09638:	91 26 00 00 	stw     r9,0(r6)                               
ffc0963c:	7d 40 01 24 	mtmsr   r10                                    
      }                                                               
      return;                                                         
    }                                                                 
  }                                                                   
  _ISR_Enable( level );                                               
}                                                                     
ffc09640:	80 01 00 14 	lwz     r0,20(r1)                              
ffc09644:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc09648:	7c 08 03 a6 	mtlr    r0                                     
ffc0964c:	38 21 00 10 	addi    r1,r1,16                               
ffc09650:	4e 80 00 20 	blr                                            
RTEMS_INLINE_ROUTINE void _Watchdog_Deactivate(                       
  Watchdog_Control *the_watchdog                                      
)                                                                     
{                                                                     
                                                                      
  the_watchdog->state = WATCHDOG_REMOVE_IT;                           
ffc09654:	39 20 00 03 	li      r9,3                                   
ffc09658:	91 3f 00 50 	stw     r9,80(r31)                             
ffc0965c:	7d 40 01 24 	mtmsr   r10                                    
        _ISR_Enable( level );                                         
        _Thread_Unblock( the_thread );                                
      } else {                                                        
        _Watchdog_Deactivate( &the_thread->Timer );                   
        _ISR_Enable( level );                                         
        (void) _Watchdog_Remove( &the_thread->Timer );                
ffc09660:	38 7f 00 48 	addi    r3,r31,72                              
ffc09664:	48 00 45 c9 	bl      ffc0dc2c <_Watchdog_Remove>            
ffc09668:	4b ff ff 74 	b       ffc095dc <_Event_Surrender+0xb0>       
                                                                      

ffc0966c <_Event_Timeout>: void _Event_Timeout( Objects_Id id, void *arg ) {
ffc0966c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc09670:	7c 08 02 a6 	mflr    r0                                     
ffc09674:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc09678:	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 );                          
ffc0967c:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
void _Event_Timeout(                                                  
  Objects_Id  id,                                                     
  void       *arg                                                     
)                                                                     
{                                                                     
ffc09680:	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 );                          
ffc09684:	48 00 34 59 	bl      ffc0cadc <_Thread_Get>                 
  switch ( location ) {                                               
ffc09688:	81 21 00 08 	lwz     r9,8(r1)                               
ffc0968c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09690:	40 9e 00 50 	bne-    cr7,ffc096e0 <_Event_Timeout+0x74>     <== NEVER TAKEN
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc09694:	7d 40 00 a6 	mfmsr   r10                                    
ffc09698:	7d 10 42 a6 	mfsprg  r8,0                                   
ffc0969c:	7d 48 40 78 	andc    r8,r10,r8                              
ffc096a0:	7d 00 01 24 	mtmsr   r8                                     
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
ffc096a4:	3d 00 00 00 	lis     r8,0                                   
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
        if ( _Thread_Is_executing( the_thread ) ) {                   
ffc096a8:	81 08 31 b0 	lwz     r8,12720(r8)                           
            _ISR_Enable( level );                                     
            return;                                                   
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
ffc096ac:	91 23 00 24 	stw     r9,36(r3)                              
        if ( _Thread_Is_executing( the_thread ) ) {                   
ffc096b0:	7f 83 40 00 	cmpw    cr7,r3,r8                              
ffc096b4:	41 9e 00 40 	beq-    cr7,ffc096f4 <_Event_Timeout+0x88>     
          if ( *sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
            *sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;          
        }                                                             
                                                                      
        the_thread->Wait.return_code = RTEMS_TIMEOUT;                 
ffc096b8:	39 20 00 06 	li      r9,6                                   
ffc096bc:	91 23 00 34 	stw     r9,52(r3)                              
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc096c0:	7d 40 01 24 	mtmsr   r10                                    
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
ffc096c4:	3c 80 10 07 	lis     r4,4103                                
ffc096c8:	60 84 ff f8 	ori     r4,r4,65528                            
ffc096cc:	48 00 2e f5 	bl      ffc0c5c0 <_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;                  
ffc096d0:	3d 20 00 00 	lis     r9,0                                   
ffc096d4:	81 49 28 68 	lwz     r10,10344(r9)                          
                                                                      
    --level;                                                          
ffc096d8:	39 4a ff ff 	addi    r10,r10,-1                             
    _Thread_Dispatch_disable_level = level;                           
ffc096dc:	91 49 28 68 	stw     r10,10344(r9)                          
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
ffc096e0:	80 01 00 24 	lwz     r0,36(r1)                              
ffc096e4:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc096e8:	7c 08 03 a6 	mtlr    r0                                     
ffc096ec:	38 21 00 20 	addi    r1,r1,32                               
ffc096f0:	4e 80 00 20 	blr                                            
          }                                                           
        #endif                                                        
                                                                      
        the_thread->Wait.count = 0;                                   
        if ( _Thread_Is_executing( the_thread ) ) {                   
          if ( *sync_state == THREAD_BLOCKING_OPERATION_NOTHING_HAPPENED )
ffc096f4:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc096f8:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc096fc:	40 9e ff bc 	bne+    cr7,ffc096b8 <_Event_Timeout+0x4c>     
            *sync_state = THREAD_BLOCKING_OPERATION_TIMEOUT;          
ffc09700:	39 20 00 02 	li      r9,2                                   
ffc09704:	91 3f 00 00 	stw     r9,0(r31)                              
ffc09708:	4b ff ff b0 	b       ffc096b8 <_Event_Timeout+0x4c>         
                                                                      

ffc10768 <_Heap_Allocate_aligned_with_boundary>: Heap_Control *heap, uintptr_t alloc_size, uintptr_t alignment, uintptr_t boundary ) {
ffc10768:	7c 87 23 78 	mr      r7,r4                                  
ffc1076c:	7d 80 00 26 	mfcr    r12                                    
  Heap_Statistics *const stats = &heap->stats;                        
  uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
ffc10770:	38 84 00 04 	addi    r4,r4,4                                
  Heap_Control *heap,                                                 
  uintptr_t alloc_size,                                               
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
ffc10774:	94 21 ff e0 	stwu    r1,-32(r1)                             
  Heap_Block *block = NULL;                                           
  uintptr_t alloc_begin = 0;                                          
  uint32_t search_count = 0;                                          
  bool search_again = false;                                          
                                                                      
  if ( block_size_floor < alloc_size ) {                              
ffc10778:	7f 87 20 40 	cmplw   cr7,r7,r4                              
  Heap_Control *heap,                                                 
  uintptr_t alloc_size,                                               
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
ffc1077c:	7c 08 02 a6 	mflr    r0                                     
ffc10780:	93 a1 00 14 	stw     r29,20(r1)                             
ffc10784:	7c 7d 1b 78 	mr      r29,r3                                 
ffc10788:	90 01 00 24 	stw     r0,36(r1)                              
ffc1078c:	93 61 00 0c 	stw     r27,12(r1)                             
ffc10790:	93 81 00 10 	stw     r28,16(r1)                             
ffc10794:	93 c1 00 18 	stw     r30,24(r1)                             
ffc10798:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc1079c:	91 81 00 08 	stw     r12,8(r1)                              
  Heap_Statistics *const stats = &heap->stats;                        
  uintptr_t const block_size_floor = alloc_size + HEAP_BLOCK_HEADER_SIZE
    - HEAP_ALLOC_BONUS;                                               
  uintptr_t const page_size = heap->page_size;                        
ffc107a0:	81 63 00 10 	lwz     r11,16(r3)                             
  Heap_Block *block = NULL;                                           
  uintptr_t alloc_begin = 0;                                          
  uint32_t search_count = 0;                                          
  bool search_again = false;                                          
                                                                      
  if ( block_size_floor < alloc_size ) {                              
ffc107a4:	41 9d 01 c8 	bgt-    cr7,ffc1096c <_Heap_Allocate_aligned_with_boundary+0x204>
    /* Integer overflow occured */                                    
    return NULL;                                                      
  }                                                                   
                                                                      
  if ( boundary != 0 ) {                                              
ffc107a8:	2c 06 00 00 	cmpwi   r6,0                                   
ffc107ac:	40 82 01 a8 	bne-    ffc10954 <_Heap_Allocate_aligned_with_boundary+0x1ec>
  return &heap->free_list;                                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_head(heap)->next;                            
ffc107b0:	81 3d 00 08 	lwz     r9,8(r29)                              
                                                                      
  do {                                                                
    Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );  
                                                                      
    block = _Heap_Free_list_first( heap );                            
    while ( block != free_list_tail ) {                               
ffc107b4:	7f 9d 48 00 	cmpw    cr7,r29,r9                             
ffc107b8:	41 9e 01 e4 	beq-    cr7,ffc1099c <_Heap_Allocate_aligned_with_boundary+0x234>
       * The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag
       * field.  Thus the value is about one unit larger than the real block
       * size.  The greater than operator takes this into account.    
       */                                                             
      if ( block->size_and_flag > block_size_floor ) {                
        if ( alignment == 0 ) {                                       
ffc107bc:	2c 85 00 00 	cmpwi   cr1,r5,0                               
                                                                      
  do {                                                                
    Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );  
                                                                      
    block = _Heap_Free_list_first( heap );                            
    while ( block != free_list_tail ) {                               
ffc107c0:	3b c0 00 00 	li      r30,0                                  
  uintptr_t const block_begin = (uintptr_t) block;                    
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
                                                                      
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
ffc107c4:	3b 6b 00 07 	addi    r27,r11,7                              
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
                                                                      
  uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;                 
ffc107c8:	23 87 00 04 	subfic  r28,r7,4                               
ffc107cc:	48 00 00 24 	b       ffc107f0 <_Heap_Allocate_aligned_with_boundary+0x88>
       * The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag
       * field.  Thus the value is about one unit larger than the real block
       * size.  The greater than operator takes this into account.    
       */                                                             
      if ( block->size_and_flag > block_size_floor ) {                
        if ( alignment == 0 ) {                                       
ffc107d0:	40 86 00 7c 	bne-    cr1,ffc1084c <_Heap_Allocate_aligned_with_boundary+0xe4>
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(             
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;                  
ffc107d4:	3b e9 00 08 	addi    r31,r9,8                               
      }                                                               
                                                                      
      /* Statistics */                                                
      ++search_count;                                                 
                                                                      
      if ( alloc_begin != 0 ) {                                       
ffc107d8:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
          );                                                          
        }                                                             
      }                                                               
                                                                      
      /* Statistics */                                                
      ++search_count;                                                 
ffc107dc:	3b de 00 01 	addi    r30,r30,1                              
                                                                      
      if ( alloc_begin != 0 ) {                                       
ffc107e0:	40 9e 01 38 	bne-    cr7,ffc10918 <_Heap_Allocate_aligned_with_boundary+0x1b0>
        break;                                                        
      }                                                               
                                                                      
      block = block->next;                                            
ffc107e4:	81 29 00 08 	lwz     r9,8(r9)                               
                                                                      
  do {                                                                
    Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );  
                                                                      
    block = _Heap_Free_list_first( heap );                            
    while ( block != free_list_tail ) {                               
ffc107e8:	7f 9d 48 00 	cmpw    cr7,r29,r9                             
ffc107ec:	41 9e 00 20 	beq-    cr7,ffc1080c <_Heap_Allocate_aligned_with_boundary+0xa4>
      /*                                                              
       * The HEAP_PREV_BLOCK_USED flag is always set in the block size_and_flag
       * field.  Thus the value is about one unit larger than the real block
       * size.  The greater than operator takes this into account.    
       */                                                             
      if ( block->size_and_flag > block_size_floor ) {                
ffc107f0:	81 49 00 04 	lwz     r10,4(r9)                              
ffc107f4:	7f 84 50 40 	cmplw   cr7,r4,r10                             
ffc107f8:	41 bc ff d8 	blt-    cr7,ffc107d0 <_Heap_Allocate_aligned_with_boundary+0x68>
                                                                      
      if ( alloc_begin != 0 ) {                                       
        break;                                                        
      }                                                               
                                                                      
      block = block->next;                                            
ffc107fc:	81 29 00 08 	lwz     r9,8(r9)                               
          );                                                          
        }                                                             
      }                                                               
                                                                      
      /* Statistics */                                                
      ++search_count;                                                 
ffc10800:	3b de 00 01 	addi    r30,r30,1                              
                                                                      
  do {                                                                
    Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );  
                                                                      
    block = _Heap_Free_list_first( heap );                            
    while ( block != free_list_tail ) {                               
ffc10804:	7f 9d 48 00 	cmpw    cr7,r29,r9                             
ffc10808:	40 9e ff e8 	bne+    cr7,ffc107f0 <_Heap_Allocate_aligned_with_boundary+0x88>
          );                                                          
        }                                                             
      }                                                               
                                                                      
      /* Statistics */                                                
      ++search_count;                                                 
ffc1080c:	38 60 00 00 	li      r3,0                                   
      boundary                                                        
    );                                                                
  }                                                                   
                                                                      
  /* Statistics */                                                    
  if ( stats->max_search < search_count ) {                           
ffc10810:	81 3d 00 44 	lwz     r9,68(r29)                             
ffc10814:	7f 89 f0 40 	cmplw   cr7,r9,r30                             
ffc10818:	40 9c 00 08 	bge-    cr7,ffc10820 <_Heap_Allocate_aligned_with_boundary+0xb8>
    stats->max_search = search_count;                                 
ffc1081c:	93 dd 00 44 	stw     r30,68(r29)                            
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
ffc10820:	80 01 00 24 	lwz     r0,36(r1)                              
ffc10824:	81 81 00 08 	lwz     r12,8(r1)                              
ffc10828:	7c 08 03 a6 	mtlr    r0                                     
ffc1082c:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc10830:	83 81 00 10 	lwz     r28,16(r1)                             
ffc10834:	7d 80 81 20 	mtcrf   8,r12                                  
ffc10838:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc1083c:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc10840:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc10844:	38 21 00 20 	addi    r1,r1,32                               
ffc10848:	4e 80 00 20 	blr                                            
    - 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;                
ffc1084c:	55 4a 00 3c 	rlwinm  r10,r10,0,0,30                         
ffc10850:	80 1d 00 14 	lwz     r0,20(r29)                             
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
                                                                      
  uintptr_t const block_begin = (uintptr_t) block;                    
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
ffc10854:	7d 49 52 14 	add     r10,r9,r10                             
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
                                                                      
  uintptr_t alloc_end = block_end + HEAP_ALLOC_BONUS;                 
  uintptr_t alloc_begin = alloc_end - alloc_size;                     
ffc10858:	7f fc 52 14 	add     r31,r28,r10                            
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
ffc1085c:	7f ff 2b 96 	divwu   r31,r31,r5                             
ffc10860:	7f ff 29 d6 	mullw   r31,r31,r5                             
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
                                                                      
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
    + HEAP_BLOCK_HEADER_SIZE + page_size - 1;                         
ffc10864:	7d 00 d8 50 	subf    r8,r0,r27                              
  uintptr_t const block_begin = (uintptr_t) block;                    
  uintptr_t const block_size = _Heap_Block_size( block );             
  uintptr_t const block_end = block_begin + block_size;               
                                                                      
  uintptr_t const alloc_begin_floor = _Heap_Alloc_area_of_block( block );
  uintptr_t const alloc_begin_ceiling = block_end - min_block_size    
ffc10868:	7d 48 52 14 	add     r10,r8,r10                             
  uintptr_t alloc_begin = alloc_end - alloc_size;                     
                                                                      
  alloc_begin = _Heap_Align_down( alloc_begin, alignment );           
                                                                      
  /* Ensure that the we have a valid new block at the end */          
  if ( alloc_begin > alloc_begin_ceiling ) {                          
ffc1086c:	7f 8a f8 40 	cmplw   cr7,r10,r31                            
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(             
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;                  
ffc10870:	39 89 00 08 	addi    r12,r9,8                               
ffc10874:	40 9c 00 0c 	bge-    cr7,ffc10880 <_Heap_Allocate_aligned_with_boundary+0x118>
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
ffc10878:	7d 4a 2b 96 	divwu   r10,r10,r5                             
ffc1087c:	7f ea 29 d6 	mullw   r31,r10,r5                             
  }                                                                   
                                                                      
  alloc_end = alloc_begin + alloc_size;                               
                                                                      
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
ffc10880:	41 82 00 60 	beq-    ffc108e0 <_Heap_Allocate_aligned_with_boundary+0x178>
  /* Ensure that the we have a valid new block at the end */          
  if ( alloc_begin > alloc_begin_ceiling ) {                          
    alloc_begin = _Heap_Align_down( alloc_begin_ceiling, alignment ); 
  }                                                                   
                                                                      
  alloc_end = alloc_begin + alloc_size;                               
ffc10884:	7d 1f 3a 14 	add     r8,r31,r7                              
ffc10888:	7d 48 33 96 	divwu   r10,r8,r6                              
ffc1088c:	7d 4a 31 d6 	mullw   r10,r10,r6                             
                                                                      
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
ffc10890:	7c 6c 3a 14 	add     r3,r12,r7                              
    uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
                                                                      
    while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
ffc10894:	7f 9f 50 40 	cmplw   cr7,r31,r10                            
ffc10898:	40 9c 00 48 	bge-    cr7,ffc108e0 <_Heap_Allocate_aligned_with_boundary+0x178>
ffc1089c:	7f 88 50 40 	cmplw   cr7,r8,r10                             
ffc108a0:	40 9d 00 40 	ble-    cr7,ffc108e0 <_Heap_Allocate_aligned_with_boundary+0x178>
      if ( boundary_line < boundary_floor ) {                         
ffc108a4:	7f 83 50 40 	cmplw   cr7,r3,r10                             
ffc108a8:	40 bd 00 10 	ble+    cr7,ffc108b8 <_Heap_Allocate_aligned_with_boundary+0x150>
ffc108ac:	48 00 00 a0 	b       ffc1094c <_Heap_Allocate_aligned_with_boundary+0x1e4>
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
    uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
                                                                      
    while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
ffc108b0:	40 91 00 30 	ble-    cr4,ffc108e0 <_Heap_Allocate_aligned_with_boundary+0x178>
      if ( boundary_line < boundary_floor ) {                         
ffc108b4:	41 99 00 98 	bgt-    cr6,ffc1094c <_Heap_Allocate_aligned_with_boundary+0x1e4><== NEVER TAKEN
        return 0;                                                     
      }                                                               
      alloc_begin = boundary_line - alloc_size;                       
ffc108b8:	7f e7 50 50 	subf    r31,r7,r10                             
ffc108bc:	7f ff 2b 96 	divwu   r31,r31,r5                             
ffc108c0:	7f ff 29 d6 	mullw   r31,r31,r5                             
      alloc_begin = _Heap_Align_down( alloc_begin, alignment );       
      alloc_end = alloc_begin + alloc_size;                           
ffc108c4:	7d 1f 3a 14 	add     r8,r31,r7                              
ffc108c8:	7d 48 33 96 	divwu   r10,r8,r6                              
ffc108cc:	7d 4a 31 d6 	mullw   r10,r10,r6                             
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
    uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
                                                                      
    while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
ffc108d0:	7f 9f 50 40 	cmplw   cr7,r31,r10                            
ffc108d4:	7e 08 50 40 	cmplw   cr4,r8,r10                             
      if ( boundary_line < boundary_floor ) {                         
ffc108d8:	7f 03 50 40 	cmplw   cr6,r3,r10                             
  /* Ensure boundary constaint */                                     
  if ( boundary != 0 ) {                                              
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
    uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
                                                                      
    while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
ffc108dc:	41 9c ff d4 	blt+    cr7,ffc108b0 <_Heap_Allocate_aligned_with_boundary+0x148>
      boundary_line = _Heap_Align_down( alloc_end, boundary );        
    }                                                                 
  }                                                                   
                                                                      
  /* Ensure that the we have a valid new block at the beginning */    
  if ( alloc_begin >= alloc_begin_floor ) {                           
ffc108e0:	7f 8c f8 40 	cmplw   cr7,r12,r31                            
ffc108e4:	41 9d 00 68 	bgt-    cr7,ffc1094c <_Heap_Allocate_aligned_with_boundary+0x1e4>
ffc108e8:	7d 5f 5b 96 	divwu   r10,r31,r11                            
ffc108ec:	7d 4a 59 d6 	mullw   r10,r10,r11                            
ffc108f0:	21 09 ff f8 	subfic  r8,r9,-8                               
    uintptr_t const alloc_block_begin =                               
      (uintptr_t) _Heap_Block_of_alloc_area( alloc_begin, page_size );
    uintptr_t const free_size = alloc_block_begin - block_begin;      
ffc108f4:	7d 48 52 14 	add     r10,r8,r10                             
                                                                      
    if ( free_size >= min_block_size || free_size == 0 ) {            
ffc108f8:	7f 80 50 40 	cmplw   cr7,r0,r10                             
ffc108fc:	40 bd fe dc 	ble-    cr7,ffc107d8 <_Heap_Allocate_aligned_with_boundary+0x70>
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
    uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
                                                                      
    while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
      if ( boundary_line < boundary_floor ) {                         
        return 0;                                                     
ffc10900:	31 4a ff ff 	addic   r10,r10,-1                             
ffc10904:	7d 4a 51 10 	subfe   r10,r10,r10                            
ffc10908:	7f ff 50 38 	and     r31,r31,r10                            
      }                                                               
                                                                      
      /* Statistics */                                                
      ++search_count;                                                 
                                                                      
      if ( alloc_begin != 0 ) {                                       
ffc1090c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
          );                                                          
        }                                                             
      }                                                               
                                                                      
      /* Statistics */                                                
      ++search_count;                                                 
ffc10910:	3b de 00 01 	addi    r30,r30,1                              
                                                                      
      if ( alloc_begin != 0 ) {                                       
ffc10914:	41 9e fe d0 	beq+    cr7,ffc107e4 <_Heap_Allocate_aligned_with_boundary+0x7c>
    search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin );
  } while ( search_again );                                           
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    ++stats->allocs;                                                  
ffc10918:	81 5d 00 48 	lwz     r10,72(r29)                            
    stats->searches += search_count;                                  
                                                                      
    block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
ffc1091c:	7f a3 eb 78 	mr      r3,r29                                 
  } while ( search_again );                                           
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    ++stats->allocs;                                                  
    stats->searches += search_count;                                  
ffc10920:	81 1d 00 4c 	lwz     r8,76(r29)                             
                                                                      
    block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
ffc10924:	7d 24 4b 78 	mr      r4,r9                                  
    search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin );
  } while ( search_again );                                           
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    ++stats->allocs;                                                  
ffc10928:	39 4a 00 01 	addi    r10,r10,1                              
    stats->searches += search_count;                                  
ffc1092c:	7d 08 f2 14 	add     r8,r8,r30                              
    search_again = _Heap_Protection_free_delayed_blocks( heap, alloc_begin );
  } while ( search_again );                                           
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    ++stats->allocs;                                                  
ffc10930:	91 5d 00 48 	stw     r10,72(r29)                            
    stats->searches += search_count;                                  
                                                                      
    block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
ffc10934:	7f e5 fb 78 	mr      r5,r31                                 
  } while ( search_again );                                           
                                                                      
  if ( alloc_begin != 0 ) {                                           
    /* Statistics */                                                  
    ++stats->allocs;                                                  
    stats->searches += search_count;                                  
ffc10938:	91 1d 00 4c 	stw     r8,76(r29)                             
                                                                      
    block = _Heap_Block_allocate( heap, block, alloc_begin, alloc_size );
ffc1093c:	7c e6 3b 78 	mr      r6,r7                                  
ffc10940:	4b ff a8 c5 	bl      ffc0b204 <_Heap_Block_allocate>        
ffc10944:	7f e3 fb 78 	mr      r3,r31                                 
ffc10948:	4b ff fe c8 	b       ffc10810 <_Heap_Allocate_aligned_with_boundary+0xa8>
    uintptr_t const boundary_floor = alloc_begin_floor + alloc_size;  
    uintptr_t boundary_line = _Heap_Align_down( alloc_end, boundary );
                                                                      
    while ( alloc_begin < boundary_line && boundary_line < alloc_end ) {
      if ( boundary_line < boundary_floor ) {                         
        return 0;                                                     
ffc1094c:	3b e0 00 00 	li      r31,0                                  
ffc10950:	4b ff fe 88 	b       ffc107d8 <_Heap_Allocate_aligned_with_boundary+0x70>
    /* Integer overflow occured */                                    
    return NULL;                                                      
  }                                                                   
                                                                      
  if ( boundary != 0 ) {                                              
    if ( boundary < alloc_size ) {                                    
ffc10954:	7f 87 30 40 	cmplw   cr7,r7,r6                              
ffc10958:	41 9d 00 14 	bgt-    cr7,ffc1096c <_Heap_Allocate_aligned_with_boundary+0x204>
      return NULL;                                                    
    }                                                                 
                                                                      
    if ( alignment == 0 ) {                                           
ffc1095c:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc10960:	40 be fe 50 	bne-    cr7,ffc107b0 <_Heap_Allocate_aligned_with_boundary+0x48>
      alignment = page_size;                                          
ffc10964:	7d 65 5b 78 	mr      r5,r11                                 
ffc10968:	4b ff fe 48 	b       ffc107b0 <_Heap_Allocate_aligned_with_boundary+0x48>
  if ( stats->max_search < search_count ) {                           
    stats->max_search = search_count;                                 
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
ffc1096c:	80 01 00 24 	lwz     r0,36(r1)                              
  uint32_t search_count = 0;                                          
  bool search_again = false;                                          
                                                                      
  if ( block_size_floor < alloc_size ) {                              
    /* Integer overflow occured */                                    
    return NULL;                                                      
ffc10970:	38 60 00 00 	li      r3,0                                   
  if ( stats->max_search < search_count ) {                           
    stats->max_search = search_count;                                 
  }                                                                   
                                                                      
  return (void *) alloc_begin;                                        
}                                                                     
ffc10974:	81 81 00 08 	lwz     r12,8(r1)                              
ffc10978:	7c 08 03 a6 	mtlr    r0                                     
ffc1097c:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc10980:	83 81 00 10 	lwz     r28,16(r1)                             
ffc10984:	7d 80 81 20 	mtcrf   8,r12                                  
ffc10988:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc1098c:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc10990:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc10994:	38 21 00 20 	addi    r1,r1,32                               
ffc10998:	4e 80 00 20 	blr                                            
                                                                      
  do {                                                                
    Heap_Block *const free_list_tail = _Heap_Free_list_tail( heap );  
                                                                      
    block = _Heap_Free_list_first( heap );                            
    while ( block != free_list_tail ) {                               
ffc1099c:	3b c0 00 00 	li      r30,0                                  
ffc109a0:	4b ff fe 6c 	b       ffc1080c <_Heap_Allocate_aligned_with_boundary+0xa4>
                                                                      

ffc104fc <_Heap_Extend>: Heap_Control *heap, void *extend_area_begin_ptr, uintptr_t extend_area_size, uintptr_t unused __attribute__((unused)) ) {
ffc104fc:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc10500:	7d 80 00 26 	mfcr    r12                                    
ffc10504:	7c 08 02 a6 	mflr    r0                                     
  Heap_Block *start_block = first_block;                              
  Heap_Block *merge_below_block = NULL;                               
  Heap_Block *merge_above_block = NULL;                               
  Heap_Block *link_below_block = NULL;                                
  Heap_Block *link_above_block = NULL;                                
  Heap_Block *extend_first_block = NULL;                              
ffc10508:	39 20 00 00 	li      r9,0                                   
  Heap_Control *heap,                                                 
  void *extend_area_begin_ptr,                                        
  uintptr_t extend_area_size,                                         
  uintptr_t unused __attribute__((unused))                            
)                                                                     
{                                                                     
ffc1050c:	93 a1 00 34 	stw     r29,52(r1)                             
  Heap_Block *extend_first_block = NULL;                              
  Heap_Block *extend_last_block = NULL;                               
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const min_block_size = heap->min_block_size;              
  uintptr_t const extend_area_begin = (uintptr_t) extend_area_begin_ptr;
  uintptr_t const extend_area_end = extend_area_begin + extend_area_size;
ffc10510:	7f a4 2a 14 	add     r29,r4,r5                              
  uintptr_t const free_size = stats->free_size;                       
  uintptr_t extend_first_block_size = 0;                              
  uintptr_t extended_size = 0;                                        
  bool extend_area_ok = false;                                        
                                                                      
  if ( extend_area_end < extend_area_begin ) {                        
ffc10514:	7f 84 e8 40 	cmplw   cr7,r4,r29                             
  Heap_Control *heap,                                                 
  void *extend_area_begin_ptr,                                        
  uintptr_t extend_area_size,                                         
  uintptr_t unused __attribute__((unused))                            
)                                                                     
{                                                                     
ffc10518:	90 01 00 44 	stw     r0,68(r1)                              
ffc1051c:	93 41 00 28 	stw     r26,40(r1)                             
ffc10520:	93 61 00 2c 	stw     r27,44(r1)                             
ffc10524:	93 81 00 30 	stw     r28,48(r1)                             
ffc10528:	93 c1 00 38 	stw     r30,56(r1)                             
ffc1052c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc10530:	93 e1 00 3c 	stw     r31,60(r1)                             
ffc10534:	7c 9f 23 78 	mr      r31,r4                                 
ffc10538:	93 01 00 20 	stw     r24,32(r1)                             
ffc1053c:	93 21 00 24 	stw     r25,36(r1)                             
ffc10540:	91 81 00 1c 	stw     r12,28(r1)                             
  Heap_Statistics *const stats = &heap->stats;                        
  Heap_Block *const first_block = heap->first_block;                  
ffc10544:	83 63 00 20 	lwz     r27,32(r3)                             
  Heap_Block *start_block = first_block;                              
  Heap_Block *merge_below_block = NULL;                               
  Heap_Block *merge_above_block = NULL;                               
  Heap_Block *link_below_block = NULL;                                
  Heap_Block *link_above_block = NULL;                                
  Heap_Block *extend_first_block = NULL;                              
ffc10548:	91 21 00 0c 	stw     r9,12(r1)                              
  Heap_Block *extend_last_block = NULL;                               
ffc1054c:	91 21 00 08 	stw     r9,8(r1)                               
  uintptr_t const page_size = heap->page_size;                        
ffc10550:	83 83 00 10 	lwz     r28,16(r3)                             
  uintptr_t const min_block_size = heap->min_block_size;              
ffc10554:	80 c3 00 14 	lwz     r6,20(r3)                              
  uintptr_t const extend_area_begin = (uintptr_t) extend_area_begin_ptr;
  uintptr_t const extend_area_end = extend_area_begin + extend_area_size;
  uintptr_t const free_size = stats->free_size;                       
ffc10558:	83 43 00 30 	lwz     r26,48(r3)                             
  uintptr_t extend_first_block_size = 0;                              
  uintptr_t extended_size = 0;                                        
  bool extend_area_ok = false;                                        
                                                                      
  if ( extend_area_end < extend_area_begin ) {                        
ffc1055c:	40 9d 00 40 	ble-    cr7,ffc1059c <_Heap_Extend+0xa0>       
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
                                                                      
  return extended_size;                                               
}                                                                     
ffc10560:	80 01 00 44 	lwz     r0,68(r1)                              
  uintptr_t extend_first_block_size = 0;                              
  uintptr_t extended_size = 0;                                        
  bool extend_area_ok = false;                                        
                                                                      
  if ( extend_area_end < extend_area_begin ) {                        
    return 0;                                                         
ffc10564:	38 60 00 00 	li      r3,0                                   
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
                                                                      
  return extended_size;                                               
}                                                                     
ffc10568:	81 81 00 1c 	lwz     r12,28(r1)                             
ffc1056c:	7c 08 03 a6 	mtlr    r0                                     
ffc10570:	83 01 00 20 	lwz     r24,32(r1)                             
ffc10574:	83 21 00 24 	lwz     r25,36(r1)                             
ffc10578:	7d 80 81 20 	mtcrf   8,r12                                  
ffc1057c:	83 41 00 28 	lwz     r26,40(r1)                             
ffc10580:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc10584:	83 81 00 30 	lwz     r28,48(r1)                             
ffc10588:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc1058c:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc10590:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc10594:	38 21 00 40 	addi    r1,r1,64                               
ffc10598:	4e 80 00 20 	blr                                            
                                                                      
  if ( extend_area_end < extend_area_begin ) {                        
    return 0;                                                         
  }                                                                   
                                                                      
  extend_area_ok = _Heap_Get_first_and_last_block(                    
ffc1059c:	7c 83 23 78 	mr      r3,r4                                  
ffc105a0:	38 e1 00 0c 	addi    r7,r1,12                               
ffc105a4:	7c a4 2b 78 	mr      r4,r5                                  
ffc105a8:	39 01 00 08 	addi    r8,r1,8                                
ffc105ac:	7f 85 e3 78 	mr      r5,r28                                 
ffc105b0:	4b ff a6 7d 	bl      ffc0ac2c <_Heap_Get_first_and_last_block>
    page_size,                                                        
    min_block_size,                                                   
    &extend_first_block,                                              
    &extend_last_block                                                
  );                                                                  
  if (!extend_area_ok ) {                                             
ffc105b4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc105b8:	41 be ff a8 	beq-    cr7,ffc10560 <_Heap_Extend+0x64>       
ffc105bc:	7f 69 db 78 	mr      r9,r27                                 
ffc105c0:	3b 00 00 00 	li      r24,0                                  
ffc105c4:	38 a0 00 00 	li      r5,0                                   
ffc105c8:	3b 20 00 00 	li      r25,0                                  
ffc105cc:	38 c0 00 00 	li      r6,0                                   
ffc105d0:	48 00 00 38 	b       ffc10608 <_Heap_Extend+0x10c>          
      return 0;                                                       
    }                                                                 
                                                                      
    if ( extend_area_end == sub_area_begin ) {                        
      merge_below_block = start_block;                                
    } else if ( extend_area_end < sub_area_end ) {                    
ffc105d4:	7f 9d 50 40 	cmplw   cr7,r29,r10                            
ffc105d8:	40 9c 00 08 	bge-    cr7,ffc105e0 <_Heap_Extend+0xe4>       
ffc105dc:	7d 25 4b 78 	mr      r5,r9                                  
      link_below_block = start_block;                                 
    }                                                                 
                                                                      
    if ( sub_area_end == extend_area_begin ) {                        
ffc105e0:	7f 8a f8 00 	cmpw    cr7,r10,r31                            
ffc105e4:	41 9e 00 64 	beq-    cr7,ffc10648 <_Heap_Extend+0x14c>      
      start_block->prev_size = extend_area_end;                       
                                                                      
      merge_above_block = end_block;                                  
    } else if ( sub_area_end < extend_area_begin ) {                  
ffc105e8:	7f 9f 50 40 	cmplw   cr7,r31,r10                            
ffc105ec:	40 9d 00 08 	ble-    cr7,ffc105f4 <_Heap_Extend+0xf8>       
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area(           
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
ffc105f0:	7d 18 43 78 	mr      r24,r8                                 
    - 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;                
ffc105f4:	81 28 00 04 	lwz     r9,4(r8)                               
ffc105f8:	55 29 00 3c 	rlwinm  r9,r9,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);                 
ffc105fc:	7d 29 42 14 	add     r9,r9,r8                               
      link_above_block = end_block;                                   
    }                                                                 
                                                                      
    start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) );
  } while ( start_block != first_block );                             
ffc10600:	7f 9b 48 00 	cmpw    cr7,r27,r9                             
ffc10604:	41 9e 00 60 	beq-    cr7,ffc10664 <_Heap_Extend+0x168>      
    return 0;                                                         
  }                                                                   
                                                                      
  do {                                                                
    uintptr_t const sub_area_begin = (start_block != first_block) ?   
      (uintptr_t) start_block : heap->area_begin;                     
ffc10608:	7f 89 d8 00 	cmpw    cr7,r9,r27                             
ffc1060c:	41 9e 01 a4 	beq-    cr7,ffc107b0 <_Heap_Extend+0x2b4>      
ffc10610:	7d 27 4b 78 	mr      r7,r9                                  
    uintptr_t const sub_area_end = start_block->prev_size;            
ffc10614:	81 49 00 00 	lwz     r10,0(r9)                              
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
ffc10618:	7d 0a e3 96 	divwu   r8,r10,r28                             
    Heap_Block *const end_block =                                     
      _Heap_Block_of_alloc_area( sub_area_end, page_size );           
                                                                      
    if (                                                              
ffc1061c:	7f 9f 50 40 	cmplw   cr7,r31,r10                            
ffc10620:	7d 08 e1 d6 	mullw   r8,r8,r28                              
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
ffc10624:	39 08 ff f8 	addi    r8,r8,-8                               
ffc10628:	40 9c 00 0c 	bge-    cr7,ffc10634 <_Heap_Extend+0x138>      
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
ffc1062c:	7f 87 e8 40 	cmplw   cr7,r7,r29                             
ffc10630:	41 bc ff 30 	blt-    cr7,ffc10560 <_Heap_Extend+0x64>       
    ) {                                                               
      return 0;                                                       
    }                                                                 
                                                                      
    if ( extend_area_end == sub_area_begin ) {                        
ffc10634:	7f 87 e8 00 	cmpw    cr7,r7,r29                             
ffc10638:	40 9e ff 9c 	bne+    cr7,ffc105d4 <_Heap_Extend+0xd8>       
      merge_below_block = start_block;                                
    } else if ( extend_area_end < sub_area_end ) {                    
      link_below_block = start_block;                                 
    }                                                                 
                                                                      
    if ( sub_area_end == extend_area_begin ) {                        
ffc1063c:	7f 8a f8 00 	cmpw    cr7,r10,r31                            
      sub_area_end > extend_area_begin && extend_area_end > sub_area_begin
    ) {                                                               
      return 0;                                                       
    }                                                                 
                                                                      
    if ( extend_area_end == sub_area_begin ) {                        
ffc10640:	7d 26 4b 78 	mr      r6,r9                                  
      merge_below_block = start_block;                                
    } else if ( extend_area_end < sub_area_end ) {                    
      link_below_block = start_block;                                 
    }                                                                 
                                                                      
    if ( sub_area_end == extend_area_begin ) {                        
ffc10644:	40 9e ff a4 	bne+    cr7,ffc105e8 <_Heap_Extend+0xec>       <== ALWAYS TAKEN
      start_block->prev_size = extend_area_end;                       
ffc10648:	93 a9 00 00 	stw     r29,0(r9)                              
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_of_alloc_area(           
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
ffc1064c:	7d 19 43 78 	mr      r25,r8                                 
    - 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;                
ffc10650:	81 28 00 04 	lwz     r9,4(r8)                               
ffc10654:	55 29 00 3c 	rlwinm  r9,r9,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);                 
ffc10658:	7d 29 42 14 	add     r9,r9,r8                               
    } else if ( sub_area_end < extend_area_begin ) {                  
      link_above_block = end_block;                                   
    }                                                                 
                                                                      
    start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) );
  } while ( start_block != first_block );                             
ffc1065c:	7f 9b 48 00 	cmpw    cr7,r27,r9                             
ffc10660:	40 9e ff a8 	bne+    cr7,ffc10608 <_Heap_Extend+0x10c>      <== NEVER TAKEN
                                                                      
  if ( extend_area_begin < heap->area_begin ) {                       
ffc10664:	81 3e 00 18 	lwz     r9,24(r30)                             
ffc10668:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
ffc1066c:	41 9c 01 4c 	blt-    cr7,ffc107b8 <_Heap_Extend+0x2bc>      
    heap->area_begin = extend_area_begin;                             
  } else if ( heap->area_end < extend_area_end ) {                    
ffc10670:	81 3e 00 1c 	lwz     r9,28(r30)                             
ffc10674:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc10678:	40 9d 00 08 	ble-    cr7,ffc10680 <_Heap_Extend+0x184>      
    heap->area_end = extend_area_end;                                 
ffc1067c:	93 be 00 1c 	stw     r29,28(r30)                            
                                                                      
  extend_last_block->prev_size = extend_first_block_size;             
  extend_last_block->size_and_flag = 0;                               
  _Heap_Protection_block_initialize( heap, extend_last_block );       
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
ffc10680:	81 1e 00 20 	lwz     r8,32(r30)                             
  } else if ( heap->area_end < extend_area_end ) {                    
    heap->area_end = extend_area_end;                                 
  }                                                                   
                                                                      
  extend_first_block_size =                                           
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
ffc10684:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc10688:	81 41 00 08 	lwz     r10,8(r1)                              
                                                                      
  extend_last_block->prev_size = extend_first_block_size;             
  extend_last_block->size_and_flag = 0;                               
  _Heap_Protection_block_initialize( heap, extend_last_block );       
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
ffc1068c:	7f 88 48 40 	cmplw   cr7,r8,r9                              
  }                                                                   
                                                                      
  extend_first_block_size =                                           
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
                                                                      
  extend_first_block->prev_size = extend_area_end;                    
ffc10690:	93 a9 00 00 	stw     r29,0(r9)                              
    heap->area_begin = extend_area_begin;                             
  } else if ( heap->area_end < extend_area_end ) {                    
    heap->area_end = extend_area_end;                                 
  }                                                                   
                                                                      
  extend_first_block_size =                                           
ffc10694:	7d 09 50 50 	subf    r8,r9,r10                              
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
                                                                      
  extend_first_block->prev_size = extend_area_end;                    
  extend_first_block->size_and_flag =                                 
    extend_first_block_size | HEAP_PREV_BLOCK_USED;                   
ffc10698:	61 07 00 01 	ori     r7,r8,1                                
  _Heap_Protection_block_initialize( heap, extend_first_block );      
                                                                      
  extend_last_block->prev_size = extend_first_block_size;             
ffc1069c:	91 0a 00 00 	stw     r8,0(r10)                              
                                                                      
  extend_first_block_size =                                           
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
                                                                      
  extend_first_block->prev_size = extend_area_end;                    
  extend_first_block->size_and_flag =                                 
ffc106a0:	90 e9 00 04 	stw     r7,4(r9)                               
    extend_first_block_size | HEAP_PREV_BLOCK_USED;                   
  _Heap_Protection_block_initialize( heap, extend_first_block );      
                                                                      
  extend_last_block->prev_size = extend_first_block_size;             
  extend_last_block->size_and_flag = 0;                               
ffc106a4:	38 e0 00 00 	li      r7,0                                   
ffc106a8:	90 ea 00 04 	stw     r7,4(r10)                              
  _Heap_Protection_block_initialize( heap, extend_last_block );       
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
ffc106ac:	40 9d 01 40 	ble-    cr7,ffc107ec <_Heap_Extend+0x2f0>      <== ALWAYS TAKEN
    heap->first_block = extend_first_block;                           
ffc106b0:	91 3e 00 20 	stw     r9,32(r30)                             
  } else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) {
    heap->last_block = extend_last_block;                             
  }                                                                   
                                                                      
  if ( merge_below_block != NULL ) {                                  
ffc106b4:	2e 06 00 00 	cmpwi   cr4,r6,0                               
ffc106b8:	41 92 01 48 	beq-    cr4,ffc10800 <_Heap_Extend+0x304>      
  Heap_Control *heap,                                                 
  uintptr_t extend_area_begin,                                        
  Heap_Block *first_block                                             
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
ffc106bc:	81 3e 00 10 	lwz     r9,16(r30)                             
  uintptr_t const new_first_block_alloc_begin =                       
    _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
ffc106c0:	3b ff 00 08 	addi    r31,r31,8                              
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_up(                        
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  uintptr_t remainder = value % alignment;                            
ffc106c4:	7d 5f 4b 96 	divwu   r10,r31,r9                             
ffc106c8:	7d 4a 49 d6 	mullw   r10,r10,r9                             
                                                                      
  if ( remainder != 0 ) {                                             
ffc106cc:	7d 0a f8 51 	subf.   r8,r10,r31                             
ffc106d0:	41 82 00 0c 	beq-    ffc106dc <_Heap_Extend+0x1e0>          <== NEVER TAKEN
    return value - remainder + alignment;                             
ffc106d4:	7f ff 4a 14 	add     r31,r31,r9                             
ffc106d8:	7f e8 f8 50 	subf    r31,r8,r31                             
  uintptr_t const new_first_block_begin =                             
ffc106dc:	38 9f ff f8 	addi    r4,r31,-8                              
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
  uintptr_t const new_first_block_size =                              
    first_block_begin - new_first_block_begin;                        
  Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
                                                                      
  new_first_block->prev_size = first_block->prev_size;                
ffc106e0:	81 26 00 00 	lwz     r9,0(r6)                               
  uintptr_t const new_first_block_alloc_begin =                       
    _Heap_Align_up( extend_area_begin + HEAP_BLOCK_HEADER_SIZE, page_size );
  uintptr_t const new_first_block_begin =                             
    new_first_block_alloc_begin - HEAP_BLOCK_HEADER_SIZE;             
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
  uintptr_t const new_first_block_size =                              
ffc106e4:	7c c4 30 50 	subf    r6,r4,r6                               
    first_block_begin - new_first_block_begin;                        
  Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
                                                                      
  new_first_block->prev_size = first_block->prev_size;                
  new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED;
ffc106e8:	60 c6 00 01 	ori     r6,r6,1                                
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
  uintptr_t const new_first_block_size =                              
    first_block_begin - new_first_block_begin;                        
  Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
                                                                      
  new_first_block->prev_size = first_block->prev_size;                
ffc106ec:	91 3f ff f8 	stw     r9,-8(r31)                             
  new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED;
                                                                      
  _Heap_Free_block( heap, new_first_block );                          
ffc106f0:	7f c3 f3 78 	mr      r3,r30                                 
  uintptr_t const new_first_block_size =                              
    first_block_begin - new_first_block_begin;                        
  Heap_Block *const new_first_block = (Heap_Block *) new_first_block_begin;
                                                                      
  new_first_block->prev_size = first_block->prev_size;                
  new_first_block->size_and_flag = new_first_block_size | HEAP_PREV_BLOCK_USED;
ffc106f4:	90 c4 00 04 	stw     r6,4(r4)                               
                                                                      
  _Heap_Free_block( heap, new_first_block );                          
ffc106f8:	4b ff fd 95 	bl      ffc1048c <_Heap_Free_block>            
      link_below_block,                                               
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
ffc106fc:	2f 99 00 00 	cmpwi   cr7,r25,0                              
ffc10700:	41 9e 01 18 	beq-    cr7,ffc10818 <_Heap_Extend+0x31c>      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
ffc10704:	81 5e 00 10 	lwz     r10,16(r30)                            
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const last_block_new_size = _Heap_Align_down(             
    extend_area_end - last_block_begin - HEAP_BLOCK_HEADER_SIZE,      
ffc10708:	39 3d ff f8 	addi    r9,r29,-8                              
  uintptr_t extend_area_end                                           
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const last_block_new_size = _Heap_Align_down(             
ffc1070c:	7d 39 48 50 	subf    r9,r25,r9                              
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
    (last_block->size_and_flag - last_block_new_size)                 
ffc10710:	81 19 00 04 	lwz     r8,4(r25)                              
ffc10714:	7d 29 53 96 	divwu   r9,r9,r10                              
ffc10718:	7d 29 51 d6 	mullw   r9,r9,r10                              
      | HEAP_PREV_BLOCK_USED;                                         
                                                                      
  _Heap_Block_set_size( last_block, last_block_new_size );            
                                                                      
  _Heap_Free_block( heap, last_block );                               
ffc1071c:	7f c3 f3 78 	mr      r3,r30                                 
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
    (last_block->size_and_flag - last_block_new_size)                 
ffc10720:	7d 09 40 50 	subf    r8,r9,r8                               
    page_size                                                         
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
ffc10724:	7d 49 ca 14 	add     r10,r9,r25                             
    (last_block->size_and_flag - last_block_new_size)                 
      | HEAP_PREV_BLOCK_USED;                                         
ffc10728:	61 08 00 01 	ori     r8,r8,1                                
    page_size                                                         
  );                                                                  
  Heap_Block *const new_last_block =                                  
    _Heap_Block_at( last_block, last_block_new_size );                
                                                                      
  new_last_block->size_and_flag =                                     
ffc1072c:	91 0a 00 04 	stw     r8,4(r10)                              
    (last_block->size_and_flag - last_block_new_size)                 
      | HEAP_PREV_BLOCK_USED;                                         
                                                                      
  _Heap_Block_set_size( last_block, last_block_new_size );            
                                                                      
  _Heap_Free_block( heap, last_block );                               
ffc10730:	7f 24 cb 78 	mr      r4,r25                                 
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
ffc10734:	81 59 00 04 	lwz     r10,4(r25)                             
ffc10738:	55 4a 07 fe 	clrlwi  r10,r10,31                             
                                                                      
  block->size_and_flag = size | flag;                                 
ffc1073c:	7d 29 53 78 	or      r9,r9,r10                              
ffc10740:	91 39 00 04 	stw     r9,4(r25)                              
ffc10744:	4b ff fd 49 	bl      ffc1048c <_Heap_Free_block>            
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
                                                                      
  return extended_size;                                               
}                                                                     
ffc10748:	81 3e 00 24 	lwz     r9,36(r30)                             
 * This feature will be used to terminate the scattered heap area list.  See
 * also _Heap_Extend().                                               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{                                                                     
  _Heap_Block_set_size(                                               
ffc1074c:	81 1e 00 20 	lwz     r8,32(r30)                             
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
ffc10750:	81 49 00 04 	lwz     r10,4(r9)                              
 * This feature will be used to terminate the scattered heap area list.  See
 * also _Heap_Extend().                                               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Heap_Set_last_block_size( Heap_Control *heap )
{                                                                     
  _Heap_Block_set_size(                                               
ffc10754:	7d 09 40 50 	subf    r8,r9,r8                               
ffc10758:	80 01 00 44 	lwz     r0,68(r1)                              
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
ffc1075c:	55 4a 07 fe 	clrlwi  r10,r10,31                             
ffc10760:	81 81 00 1c 	lwz     r12,28(r1)                             
                                                                      
  block->size_and_flag = size | flag;                                 
ffc10764:	7d 4a 43 78 	or      r10,r10,r8                             
ffc10768:	7c 08 03 a6 	mtlr    r0                                     
ffc1076c:	91 49 00 04 	stw     r10,4(r9)                              
ffc10770:	7d 80 81 20 	mtcrf   8,r12                                  
    _Heap_Free_block( heap, extend_first_block );                     
  }                                                                   
                                                                      
  _Heap_Set_last_block_size( heap );                                  
                                                                      
  extended_size = stats->free_size - free_size;                       
ffc10774:	80 7e 00 30 	lwz     r3,48(r30)                             
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
ffc10778:	81 3e 00 2c 	lwz     r9,44(r30)                             
    _Heap_Free_block( heap, extend_first_block );                     
  }                                                                   
                                                                      
  _Heap_Set_last_block_size( heap );                                  
                                                                      
  extended_size = stats->free_size - free_size;                       
ffc1077c:	7c 7a 18 50 	subf    r3,r26,r3                              
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
                                                                      
  return extended_size;                                               
}                                                                     
ffc10780:	83 01 00 20 	lwz     r24,32(r1)                             
  _Heap_Set_last_block_size( heap );                                  
                                                                      
  extended_size = stats->free_size - free_size;                       
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
ffc10784:	7d 29 1a 14 	add     r9,r9,r3                               
                                                                      
  return extended_size;                                               
}                                                                     
ffc10788:	83 21 00 24 	lwz     r25,36(r1)                             
  _Heap_Set_last_block_size( heap );                                  
                                                                      
  extended_size = stats->free_size - free_size;                       
                                                                      
  /* Statistics */                                                    
  stats->size += extended_size;                                       
ffc1078c:	91 3e 00 2c 	stw     r9,44(r30)                             
                                                                      
  return extended_size;                                               
}                                                                     
ffc10790:	83 41 00 28 	lwz     r26,40(r1)                             
ffc10794:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc10798:	83 81 00 30 	lwz     r28,48(r1)                             
ffc1079c:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc107a0:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc107a4:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc107a8:	38 21 00 40 	addi    r1,r1,64                               
ffc107ac:	4e 80 00 20 	blr                                            
    return 0;                                                         
  }                                                                   
                                                                      
  do {                                                                
    uintptr_t const sub_area_begin = (start_block != first_block) ?   
      (uintptr_t) start_block : heap->area_begin;                     
ffc107b0:	80 fe 00 18 	lwz     r7,24(r30)                             
ffc107b4:	4b ff fe 60 	b       ffc10614 <_Heap_Extend+0x118>          
                                                                      
  extend_last_block->prev_size = extend_first_block_size;             
  extend_last_block->size_and_flag = 0;                               
  _Heap_Protection_block_initialize( heap, extend_last_block );       
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
ffc107b8:	81 1e 00 20 	lwz     r8,32(r30)                             
  } else if ( heap->area_end < extend_area_end ) {                    
    heap->area_end = extend_area_end;                                 
  }                                                                   
                                                                      
  extend_first_block_size =                                           
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
ffc107bc:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc107c0:	81 41 00 08 	lwz     r10,8(r1)                              
                                                                      
  extend_last_block->prev_size = extend_first_block_size;             
  extend_last_block->size_and_flag = 0;                               
  _Heap_Protection_block_initialize( heap, extend_last_block );       
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
ffc107c4:	7f 88 48 40 	cmplw   cr7,r8,r9                              
                                                                      
    start_block = _Heap_Block_at( end_block, _Heap_Block_size( end_block ) );
  } while ( start_block != first_block );                             
                                                                      
  if ( extend_area_begin < heap->area_begin ) {                       
    heap->area_begin = extend_area_begin;                             
ffc107c8:	93 fe 00 18 	stw     r31,24(r30)                            
  } else if ( heap->area_end < extend_area_end ) {                    
    heap->area_end = extend_area_end;                                 
  }                                                                   
                                                                      
  extend_first_block_size =                                           
ffc107cc:	7d 09 50 50 	subf    r8,r9,r10                              
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
                                                                      
  extend_first_block->prev_size = extend_area_end;                    
  extend_first_block->size_and_flag =                                 
    extend_first_block_size | HEAP_PREV_BLOCK_USED;                   
ffc107d0:	61 07 00 01 	ori     r7,r8,1                                
  }                                                                   
                                                                      
  extend_first_block_size =                                           
    (uintptr_t) extend_last_block - (uintptr_t) extend_first_block;   
                                                                      
  extend_first_block->prev_size = extend_area_end;                    
ffc107d4:	93 a9 00 00 	stw     r29,0(r9)                              
  extend_first_block->size_and_flag =                                 
ffc107d8:	90 e9 00 04 	stw     r7,4(r9)                               
    extend_first_block_size | HEAP_PREV_BLOCK_USED;                   
  _Heap_Protection_block_initialize( heap, extend_first_block );      
                                                                      
  extend_last_block->prev_size = extend_first_block_size;             
  extend_last_block->size_and_flag = 0;                               
ffc107dc:	38 e0 00 00 	li      r7,0                                   
  extend_first_block->prev_size = extend_area_end;                    
  extend_first_block->size_and_flag =                                 
    extend_first_block_size | HEAP_PREV_BLOCK_USED;                   
  _Heap_Protection_block_initialize( heap, extend_first_block );      
                                                                      
  extend_last_block->prev_size = extend_first_block_size;             
ffc107e0:	91 0a 00 00 	stw     r8,0(r10)                              
  extend_last_block->size_and_flag = 0;                               
ffc107e4:	90 ea 00 04 	stw     r7,4(r10)                              
  _Heap_Protection_block_initialize( heap, extend_last_block );       
                                                                      
  if ( (uintptr_t) extend_first_block < (uintptr_t) heap->first_block ) {
ffc107e8:	41 bd fe c8 	bgt-    cr7,ffc106b0 <_Heap_Extend+0x1b4>      <== ALWAYS TAKEN
    heap->first_block = extend_first_block;                           
  } else if ( (uintptr_t) extend_last_block > (uintptr_t) heap->last_block ) {
ffc107ec:	81 3e 00 24 	lwz     r9,36(r30)                             
ffc107f0:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc107f4:	40 bc fe c0 	bge-    cr7,ffc106b4 <_Heap_Extend+0x1b8>      
    heap->last_block = extend_last_block;                             
ffc107f8:	91 5e 00 24 	stw     r10,36(r30)                            
ffc107fc:	4b ff fe b8 	b       ffc106b4 <_Heap_Extend+0x1b8>          
  }                                                                   
                                                                      
  if ( merge_below_block != NULL ) {                                  
    _Heap_Merge_below( heap, extend_area_begin, merge_below_block );  
  } else if ( link_below_block != NULL ) {                            
ffc10800:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc10804:	41 be fe f8 	beq-    cr7,ffc106fc <_Heap_Extend+0x200>      
{                                                                     
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const link_begin = (uintptr_t) link;                      
                                                                      
  last_block->size_and_flag =                                         
    (link_begin - last_block_begin) | HEAP_PREV_BLOCK_USED;           
ffc10808:	7c aa 28 50 	subf    r5,r10,r5                              
ffc1080c:	60 a5 00 01 	ori     r5,r5,1                                
)                                                                     
{                                                                     
  uintptr_t const last_block_begin = (uintptr_t) last_block;          
  uintptr_t const link_begin = (uintptr_t) link;                      
                                                                      
  last_block->size_and_flag =                                         
ffc10810:	90 aa 00 04 	stw     r5,4(r10)                              
ffc10814:	4b ff fe e8 	b       ffc106fc <_Heap_Extend+0x200>          
    );                                                                
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
    _Heap_Merge_above( heap, merge_above_block, extend_area_end );    
  } else if ( link_above_block != NULL ) {                            
ffc10818:	2f 98 00 00 	cmpwi   cr7,r24,0                              
ffc1081c:	41 9e 00 2c 	beq-    cr7,ffc10848 <_Heap_Extend+0x34c>      
RTEMS_INLINE_ROUTINE void _Heap_Block_set_size(                       
  Heap_Block *block,                                                  
  uintptr_t size                                                      
)                                                                     
{                                                                     
  uintptr_t flag = block->size_and_flag & HEAP_PREV_BLOCK_USED;       
ffc10820:	81 38 00 04 	lwz     r9,4(r24)                              
ffc10824:	55 2a 07 fe 	clrlwi  r10,r9,31                              
)                                                                     
{                                                                     
  uintptr_t const link_begin = (uintptr_t) link;                      
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
                                                                      
  _Heap_Block_set_size( link, first_block_begin - link_begin );       
ffc10828:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc1082c:	7d 38 48 50 	subf    r9,r24,r9                              
                                                                      
  block->size_and_flag = size | flag;                                 
ffc10830:	7d 4a 4b 78 	or      r10,r10,r9                             
  }                                                                   
                                                                      
  if ( merge_above_block != NULL ) {                                  
    _Heap_Merge_above( heap, merge_above_block, extend_area_end );    
  } else if ( link_above_block != NULL ) {                            
    _Heap_Link_above(                                                 
ffc10834:	81 21 00 08 	lwz     r9,8(r1)                               
ffc10838:	91 58 00 04 	stw     r10,4(r24)                             
  uintptr_t const link_begin = (uintptr_t) link;                      
  uintptr_t const first_block_begin = (uintptr_t) first_block;        
                                                                      
  _Heap_Block_set_size( link, first_block_begin - link_begin );       
                                                                      
  last_block->size_and_flag |= HEAP_PREV_BLOCK_USED;                  
ffc1083c:	81 49 00 04 	lwz     r10,4(r9)                              
ffc10840:	61 4a 00 01 	ori     r10,r10,1                              
ffc10844:	91 49 00 04 	stw     r10,4(r9)                              
      extend_first_block,                                             
      extend_last_block                                               
    );                                                                
  }                                                                   
                                                                      
  if ( merge_below_block == NULL && merge_above_block == NULL ) {     
ffc10848:	40 92 ff 00 	bne+    cr4,ffc10748 <_Heap_Extend+0x24c>      
    _Heap_Free_block( heap, extend_first_block );                     
ffc1084c:	80 81 00 0c 	lwz     r4,12(r1)                              
ffc10850:	7f c3 f3 78 	mr      r3,r30                                 
ffc10854:	4b ff fc 39 	bl      ffc1048c <_Heap_Free_block>            
ffc10858:	4b ff fe f0 	b       ffc10748 <_Heap_Extend+0x24c>          
                                                                      

ffc109a4 <_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 ) {
ffc109a4:	2c 04 00 00 	cmpwi   r4,0                                   
    return do_free;                                                   
  }                                                                   
#endif                                                                
                                                                      
bool _Heap_Free( Heap_Control *heap, void *alloc_begin_ptr )          
{                                                                     
ffc109a8:	7c 69 1b 78 	mr      r9,r3                                  
  /*                                                                  
   * 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 ) {                                    
ffc109ac:	41 82 00 dc 	beq-    ffc10a88 <_Heap_Free+0xe4>             
ffc109b0:	81 03 00 10 	lwz     r8,16(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           
ffc109b4:	80 e3 00 20 	lwz     r7,32(r3)                              
                                                                      
  alloc_begin = (uintptr_t) alloc_begin_ptr;                          
  block = _Heap_Block_of_alloc_area( alloc_begin, heap->page_size );  
                                                                      
  if ( !_Heap_Is_block_in_heap( heap, block ) ) {                     
    return false;                                                     
ffc109b8:	38 60 00 00 	li      r3,0                                   
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
ffc109bc:	7d 44 43 96 	divwu   r10,r4,r8                              
ffc109c0:	7d 4a 41 d6 	mullw   r10,r10,r8                             
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
ffc109c4:	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;             
ffc109c8:	7f 8a 38 40 	cmplw   cr7,r10,r7                             
ffc109cc:	4d 9c 00 20 	bltlr   cr7                                    
ffc109d0:	80 c9 00 24 	lwz     r6,36(r9)                              
ffc109d4:	7f 8a 30 40 	cmplw   cr7,r10,r6                             
ffc109d8:	40 9d 00 08 	ble-    cr7,ffc109e0 <_Heap_Free+0x3c>         <== ALWAYS TAKEN
ffc109dc:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
ffc109e0:	81 6a 00 04 	lwz     r11,4(r10)                             
    - 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;                
ffc109e4:	55 65 00 3c 	rlwinm  r5,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);                 
ffc109e8:	7d 05 52 14 	add     r8,r5,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;             
ffc109ec:	7f 87 40 40 	cmplw   cr7,r7,r8                              
ffc109f0:	41 9d 00 94 	bgt-    cr7,ffc10a84 <_Heap_Free+0xe0>         <== NEVER TAKEN
ffc109f4:	7f 86 40 40 	cmplw   cr7,r6,r8                              
ffc109f8:	41 9c 00 88 	blt-    cr7,ffc10a80 <_Heap_Free+0xdc>         <== NEVER TAKEN
ffc109fc:	80 88 00 04 	lwz     r4,4(r8)                               
    return false;                                                     
  }                                                                   
                                                                      
  _Heap_Protection_block_check( heap, next_block );                   
                                                                      
  if ( !_Heap_Is_prev_used( next_block ) ) {                          
ffc10a00:	70 80 00 01 	andi.   r0,r4,1                                
ffc10a04:	41 82 00 8c 	beq-    ffc10a90 <_Heap_Free+0xec>             
    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 ));
ffc10a08:	7f 86 40 00 	cmpw    cr7,r6,r8                              
    - 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;                
ffc10a0c:	54 84 00 3c 	rlwinm  r4,r4,0,0,30                           
ffc10a10:	41 9e 00 84 	beq-    cr7,ffc10a94 <_Heap_Free+0xf0>         
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
ffc10a14:	7c 68 22 14 	add     r3,r8,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;                 
ffc10a18:	80 63 00 04 	lwz     r3,4(r3)                               
    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 ));
ffc10a1c:	70 60 00 01 	andi.   r0,r3,1                                
ffc10a20:	40 82 00 74 	bne-    ffc10a94 <_Heap_Free+0xf0>             
                                                                      
  if ( !_Heap_Is_prev_used( block ) ) {                               
ffc10a24:	71 60 00 01 	andi.   r0,r11,1                               
ffc10a28:	41 82 01 50 	beq-    ffc10b78 <_Heap_Free+0x1d4>            
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
ffc10a2c:	80 e8 00 08 	lwz     r7,8(r8)                               
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
    uintptr_t const size = block_size + next_block_size;              
ffc10a30:	7c 84 2a 14 	add     r4,r4,r5                               
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
ffc10a34:	81 08 00 0c 	lwz     r8,12(r8)                              
      next_block->prev_size = size;                                   
    }                                                                 
  } else if ( next_is_free ) {    /* coalesce next */                 
    uintptr_t const size = block_size + next_block_size;              
    _Heap_Free_list_replace( next_block, block );                     
    block->size_and_flag = size | HEAP_PREV_BLOCK_USED;               
ffc10a38:	60 86 00 01 	ori     r6,r4,1                                
)                                                                     
{                                                                     
  Heap_Block *next = old_block->next;                                 
  Heap_Block *prev = old_block->prev;                                 
                                                                      
  new_block->next = next;                                             
ffc10a3c:	90 ea 00 08 	stw     r7,8(r10)                              
  new_block->prev = prev;                                             
ffc10a40:	91 0a 00 0c 	stw     r8,12(r10)                             
                                                                      
  next->prev = new_block;                                             
  prev->next = new_block;                                             
ffc10a44:	91 48 00 08 	stw     r10,8(r8)                              
  Heap_Block *prev = old_block->prev;                                 
                                                                      
  new_block->next = next;                                             
  new_block->prev = prev;                                             
                                                                      
  next->prev = new_block;                                             
ffc10a48:	91 47 00 0c 	stw     r10,12(r7)                             
ffc10a4c:	90 ca 00 04 	stw     r6,4(r10)                              
    next_block  = _Heap_Block_at( block, size );                      
    next_block->prev_size = size;                                     
ffc10a50:	7c 84 51 2e 	stwx    r4,r4,r10                              
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
ffc10a54:	81 09 00 40 	lwz     r8,64(r9)                              
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
ffc10a58:	38 60 00 01 	li      r3,1                                   
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
ffc10a5c:	81 49 00 50 	lwz     r10,80(r9)                             
  stats->free_size += block_size;                                     
ffc10a60:	80 e9 00 30 	lwz     r7,48(r9)                              
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
ffc10a64:	39 08 ff ff 	addi    r8,r8,-1                               
  ++stats->frees;                                                     
ffc10a68:	39 4a 00 01 	addi    r10,r10,1                              
      stats->max_free_blocks = stats->free_blocks;                    
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
ffc10a6c:	91 09 00 40 	stw     r8,64(r9)                              
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
ffc10a70:	7c a7 2a 14 	add     r5,r7,r5                               
    }                                                                 
  }                                                                   
                                                                      
  /* Statistics */                                                    
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
ffc10a74:	91 49 00 50 	stw     r10,80(r9)                             
  stats->free_size += block_size;                                     
ffc10a78:	90 a9 00 30 	stw     r5,48(r9)                              
                                                                      
  return( true );                                                     
ffc10a7c:	4e 80 00 20 	blr                                            
ffc10a80:	4e 80 00 20 	blr                                            <== NOT EXECUTED
ffc10a84:	4e 80 00 20 	blr                                            <== NOT EXECUTED
   * 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;                                                      
ffc10a88:	38 60 00 01 	li      r3,1                                   
ffc10a8c:	4e 80 00 20 	blr                                            
ffc10a90:	4e 80 00 20 	blr                                            
                                                                      
  next_block_size = _Heap_Block_size( next_block );                   
  next_is_free = next_block != heap->last_block                       
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
                                                                      
  if ( !_Heap_Is_prev_used( block ) ) {                               
ffc10a94:	71 63 00 01 	andi.   r3,r11,1                               
ffc10a98:	40 82 00 28 	bne-    ffc10ac0 <_Heap_Free+0x11c>            
  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                       
ffc10a9c:	39 80 00 00 	li      r12,0                                  
    && !_Heap_Is_prev_used( _Heap_Block_at( next_block, next_block_size ));
                                                                      
  if ( !_Heap_Is_prev_used( block ) ) {                               
    uintptr_t const prev_size = block->prev_size;                     
ffc10aa0:	80 0a 00 00 	lwz     r0,0(r10)                              
                                                                      
  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;                                                     
ffc10aa4:	38 60 00 00 	li      r3,0                                   
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Block_at(                      
  const Heap_Block *block,                                            
  uintptr_t offset                                                    
)                                                                     
{                                                                     
  return (Heap_Block *) ((uintptr_t) block + offset);                 
ffc10aa8:	7d 60 50 50 	subf    r11,r0,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;             
ffc10aac:	7f 87 58 40 	cmplw   cr7,r7,r11                             
ffc10ab0:	4d 9d 00 20 	bgtlr   cr7                                    
ffc10ab4:	7f 86 58 40 	cmplw   cr7,r6,r11                             
ffc10ab8:	40 9c 00 54 	bge-    cr7,ffc10b0c <_Heap_Free+0x168>        <== ALWAYS TAKEN
ffc10abc:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    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;                                             
ffc10ac0:	80 e9 00 38 	lwz     r7,56(r9)                              
    next_block->prev_size = size;                                     
  } else {                        /* no coalesce */                   
    /* Add 'block' to the head of the free blocks list as it tends to 
       produce less fragmentation than adding to the tail. */         
    _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
    block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;         
ffc10ac4:	60 a4 00 01 	ori     r4,r5,1                                
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
    if ( stats->max_free_blocks < stats->free_blocks ) {              
ffc10ac8:	80 c9 00 3c 	lwz     r6,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;                                             
ffc10acc:	38 e7 00 01 	addi    r7,r7,1                                
    next_block->prev_size = size;                                     
  } else {                        /* no coalesce */                   
    /* Add 'block' to the head of the free blocks list as it tends to 
       produce less fragmentation than adding to the tail. */         
    _Heap_Free_list_insert_after( _Heap_Free_list_head( heap), block );
    block->size_and_flag = block_size | HEAP_PREV_BLOCK_USED;         
ffc10ad0:	90 8a 00 04 	stw     r4,4(r10)                              
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
    next_block->prev_size = block_size;                               
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
    if ( stats->max_free_blocks < stats->free_blocks ) {              
ffc10ad4:	7f 87 30 40 	cmplw   cr7,r7,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;         
    next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;               
ffc10ad8:	80 88 00 04 	lwz     r4,4(r8)                               
RTEMS_INLINE_ROUTINE void _Heap_Free_list_insert_after(               
  Heap_Block *block_before,                                           
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
ffc10adc:	80 c9 00 08 	lwz     r6,8(r9)                               
ffc10ae0:	54 84 00 3c 	rlwinm  r4,r4,0,0,30                           
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
ffc10ae4:	91 2a 00 0c 	stw     r9,12(r10)                             
  Heap_Block *new_block                                               
)                                                                     
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
ffc10ae8:	90 ca 00 08 	stw     r6,8(r10)                              
ffc10aec:	90 88 00 04 	stw     r4,4(r8)                               
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
  next->prev = new_block;                                             
ffc10af0:	91 46 00 0c 	stw     r10,12(r6)                             
    next_block->prev_size = block_size;                               
ffc10af4:	7c a5 51 2e 	stwx    r5,r5,r10                              
{                                                                     
  Heap_Block *next = block_before->next;                              
                                                                      
  new_block->next = next;                                             
  new_block->prev = block_before;                                     
  block_before->next = new_block;                                     
ffc10af8:	91 49 00 08 	stw     r10,8(r9)                              
                                                                      
    /* Statistics */                                                  
    ++stats->free_blocks;                                             
ffc10afc:	90 e9 00 38 	stw     r7,56(r9)                              
    if ( stats->max_free_blocks < stats->free_blocks ) {              
ffc10b00:	40 bd ff 54 	ble-    cr7,ffc10a54 <_Heap_Free+0xb0>         
      stats->max_free_blocks = stats->free_blocks;                    
ffc10b04:	90 e9 00 3c 	stw     r7,60(r9)                              
ffc10b08:	4b ff ff 4c 	b       ffc10a54 <_Heap_Free+0xb0>             
  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;                 
ffc10b0c:	80 eb 00 04 	lwz     r7,4(r11)                              
      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) ) {                        
ffc10b10:	70 e6 00 01 	andi.   r6,r7,1                                
ffc10b14:	41 82 00 60 	beq-    ffc10b74 <_Heap_Free+0x1d0>            <== NEVER TAKEN
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
ffc10b18:	2f 8c 00 00 	cmpwi   cr7,r12,0                              
ffc10b1c:	41 9e 00 38 	beq-    cr7,ffc10b54 <_Heap_Free+0x1b0>        
      uintptr_t const size = block_size + prev_size + next_block_size;
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
ffc10b20:	80 c9 00 38 	lwz     r6,56(r9)                              
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
      uintptr_t const size = block_size + prev_size + next_block_size;
ffc10b24:	7c 05 02 14 	add     r0,r5,r0                               
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
ffc10b28:	80 e8 00 08 	lwz     r7,8(r8)                               
      _HAssert( false );                                              
      return( false );                                                
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
      uintptr_t const size = block_size + prev_size + next_block_size;
ffc10b2c:	7c 80 22 14 	add     r4,r0,r4                               
  --stats->used_blocks;                                               
  ++stats->frees;                                                     
  stats->free_size += block_size;                                     
                                                                      
  return( true );                                                     
}                                                                     
ffc10b30:	81 48 00 0c 	lwz     r10,12(r8)                             
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
      uintptr_t const size = block_size + prev_size + next_block_size;
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
ffc10b34:	38 c6 ff ff 	addi    r6,r6,-1                               
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
ffc10b38:	60 88 00 01 	ori     r8,r4,1                                
RTEMS_INLINE_ROUTINE void _Heap_Free_list_remove( Heap_Block *block ) 
{                                                                     
  Heap_Block *next = block->next;                                     
  Heap_Block *prev = block->prev;                                     
                                                                      
  prev->next = next;                                                  
ffc10b3c:	90 ea 00 08 	stw     r7,8(r10)                              
  next->prev = prev;                                                  
ffc10b40:	91 47 00 0c 	stw     r10,12(r7)                             
    }                                                                 
                                                                      
    if ( next_is_free ) {       /* coalesce both */                   
      uintptr_t const size = block_size + prev_size + next_block_size;
      _Heap_Free_list_remove( next_block );                           
      stats->free_blocks -= 1;                                        
ffc10b44:	90 c9 00 38 	stw     r6,56(r9)                              
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
ffc10b48:	91 0b 00 04 	stw     r8,4(r11)                              
      next_block = _Heap_Block_at( prev_block, size );                
      _HAssert(!_Heap_Is_prev_used( next_block));                     
      next_block->prev_size = size;                                   
ffc10b4c:	7c 84 59 2e 	stwx    r4,r4,r11                              
ffc10b50:	4b ff ff 04 	b       ffc10a54 <_Heap_Free+0xb0>             
    } else {                      /* coalesce prev */                 
      uintptr_t const size = block_size + prev_size;                  
ffc10b54:	7c 05 02 14 	add     r0,r5,r0                               
      prev_block->size_and_flag = size | HEAP_PREV_BLOCK_USED;        
ffc10b58:	60 07 00 01 	ori     r7,r0,1                                
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
      next_block->prev_size = size;                                   
ffc10b5c:	7c 05 51 2e 	stwx    r0,r5,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;        
ffc10b60:	90 eb 00 04 	stw     r7,4(r11)                              
      next_block->size_and_flag &= ~HEAP_PREV_BLOCK_USED;             
ffc10b64:	80 e8 00 04 	lwz     r7,4(r8)                               
ffc10b68:	54 e7 00 3c 	rlwinm  r7,r7,0,0,30                           
ffc10b6c:	90 e8 00 04 	stw     r7,4(r8)                               
ffc10b70:	4b ff fe e4 	b       ffc10a54 <_Heap_Free+0xb0>             
ffc10b74:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  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                       
ffc10b78:	39 80 00 01 	li      r12,1                                  
ffc10b7c:	4b ff ff 24 	b       ffc10aa0 <_Heap_Free+0xfc>             
                                                                      

ffc15dc0 <_Heap_Get_free_information>: return &heap->free_list; } RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap ) { return _Heap_Free_list_head(heap)->next;
ffc15dc0:	81 23 00 08 	lwz     r9,8(r3)                               
)                                                                     
{                                                                     
  Heap_Block *the_block;                                              
  Heap_Block *const tail = _Heap_Free_list_tail(the_heap);            
                                                                      
  info->number = 0;                                                   
ffc15dc4:	39 40 00 00 	li      r10,0                                  
ffc15dc8:	91 44 00 00 	stw     r10,0(r4)                              
  info->largest = 0;                                                  
  info->total = 0;                                                    
                                                                      
  for(the_block = _Heap_Free_list_first(the_heap);                    
ffc15dcc:	38 e0 00 01 	li      r7,1                                   
ffc15dd0:	7f 83 48 00 	cmpw    cr7,r3,r9                              
{                                                                     
  Heap_Block *the_block;                                              
  Heap_Block *const tail = _Heap_Free_list_tail(the_heap);            
                                                                      
  info->number = 0;                                                   
  info->largest = 0;                                                  
ffc15dd4:	91 44 00 04 	stw     r10,4(r4)                              
  info->total = 0;                                                    
                                                                      
  for(the_block = _Heap_Free_list_first(the_heap);                    
ffc15dd8:	38 c0 00 00 	li      r6,0                                   
ffc15ddc:	39 00 00 00 	li      r8,0                                   
  Heap_Block *the_block;                                              
  Heap_Block *const tail = _Heap_Free_list_tail(the_heap);            
                                                                      
  info->number = 0;                                                   
  info->largest = 0;                                                  
  info->total = 0;                                                    
ffc15de0:	91 44 00 08 	stw     r10,8(r4)                              
                                                                      
  for(the_block = _Heap_Free_list_first(the_heap);                    
ffc15de4:	40 be 00 10 	bne+    cr7,ffc15df4 <_Heap_Get_free_information+0x34><== ALWAYS TAKEN
ffc15de8:	4e 80 00 20 	blr                                            <== NOT EXECUTED
ffc15dec:	80 c4 00 04 	lwz     r6,4(r4)                               
ffc15df0:	7c a7 2b 78 	mr      r7,r5                                  
    - 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;                
ffc15df4:	81 49 00 04 	lwz     r10,4(r9)                              
ffc15df8:	38 a7 00 01 	addi    r5,r7,1                                
ffc15dfc:	55 4a 00 3c 	rlwinm  r10,r10,0,0,30                         
    /* As we always coalesce free blocks, prev block must have been used. */
    _HAssert(_Heap_Is_prev_used(the_block));                          
                                                                      
    info->number++;                                                   
    info->total += the_size;                                          
    if ( info->largest < the_size )                                   
ffc15e00:	7f 8a 30 40 	cmplw   cr7,r10,r6                             
                                                                      
    /* As we always coalesce free blocks, prev block must have been used. */
    _HAssert(_Heap_Is_prev_used(the_block));                          
                                                                      
    info->number++;                                                   
    info->total += the_size;                                          
ffc15e04:	7d 08 52 14 	add     r8,r8,r10                              
    if ( info->largest < the_size )                                   
ffc15e08:	40 9d 00 08 	ble-    cr7,ffc15e10 <_Heap_Get_free_information+0x50>
        info->largest = the_size;                                     
ffc15e0c:	91 44 00 04 	stw     r10,4(r4)                              
  info->largest = 0;                                                  
  info->total = 0;                                                    
                                                                      
  for(the_block = _Heap_Free_list_first(the_heap);                    
      the_block != tail;                                              
      the_block = the_block->next)                                    
ffc15e10:	81 29 00 08 	lwz     r9,8(r9)                               
                                                                      
  info->number = 0;                                                   
  info->largest = 0;                                                  
  info->total = 0;                                                    
                                                                      
  for(the_block = _Heap_Free_list_first(the_heap);                    
ffc15e14:	7f 83 48 00 	cmpw    cr7,r3,r9                              
ffc15e18:	40 9e ff d4 	bne+    cr7,ffc15dec <_Heap_Get_free_information+0x2c>
ffc15e1c:	90 e4 00 00 	stw     r7,0(r4)                               
ffc15e20:	91 04 00 08 	stw     r8,8(r4)                               
ffc15e24:	4e 80 00 20 	blr                                            
                                                                      

ffc0d448 <_Heap_Greedy_allocate>: Heap_Block *_Heap_Greedy_allocate( Heap_Control *heap, const uintptr_t *block_sizes, size_t block_count ) {
ffc0d448:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0d44c:	7c 08 02 a6 	mflr    r0                                     
ffc0d450:	93 61 00 0c 	stw     r27,12(r1)                             
  Heap_Block *allocated_blocks = NULL;                                
  Heap_Block *blocks = NULL;                                          
  Heap_Block *current;                                                
  size_t i;                                                           
                                                                      
  for (i = 0; i < block_count; ++i) {                                 
ffc0d454:	7c bb 2b 79 	mr.     r27,r5                                 
Heap_Block *_Heap_Greedy_allocate(                                    
  Heap_Control *heap,                                                 
  const uintptr_t *block_sizes,                                       
  size_t block_count                                                  
)                                                                     
{                                                                     
ffc0d458:	93 c1 00 18 	stw     r30,24(r1)                             
ffc0d45c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0d460:	90 01 00 24 	stw     r0,36(r1)                              
ffc0d464:	93 81 00 10 	stw     r28,16(r1)                             
ffc0d468:	93 a1 00 14 	stw     r29,20(r1)                             
ffc0d46c:	93 e1 00 1c 	stw     r31,28(r1)                             
  Heap_Block *allocated_blocks = NULL;                                
  Heap_Block *blocks = NULL;                                          
  Heap_Block *current;                                                
  size_t i;                                                           
                                                                      
  for (i = 0; i < block_count; ++i) {                                 
ffc0d470:	41 82 00 e0 	beq-    ffc0d550 <_Heap_Greedy_allocate+0x108> 
  #include "config.h"                                                 
#endif                                                                
                                                                      
#include <rtems/score/heap.h>                                         
                                                                      
Heap_Block *_Heap_Greedy_allocate(                                    
ffc0d474:	3b 84 ff fc 	addi    r28,r4,-4                              
  Heap_Block *allocated_blocks = NULL;                                
  Heap_Block *blocks = NULL;                                          
  Heap_Block *current;                                                
  size_t i;                                                           
                                                                      
  for (i = 0; i < block_count; ++i) {                                 
ffc0d478:	3b e0 00 00 	li      r31,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;                                
ffc0d47c:	3b a0 00 00 	li      r29,0                                  
 * @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 );    
ffc0d480:	84 9c 00 04 	lwzu    r4,4(r28)                              
ffc0d484:	7f c3 f3 78 	mr      r3,r30                                 
ffc0d488:	38 a0 00 00 	li      r5,0                                   
ffc0d48c:	38 c0 00 00 	li      r6,0                                   
ffc0d490:	48 00 8f 19 	bl      ffc163a8 <_Heap_Allocate_aligned_with_boundary>
  Heap_Block *blocks = NULL;                                          
  Heap_Block *current;                                                
  size_t i;                                                           
                                                                      
  for (i = 0; i < block_count; ++i) {                                 
ffc0d494:	3b ff 00 01 	addi    r31,r31,1                              
    void *next = _Heap_Allocate( heap, block_sizes [i] );             
                                                                      
    if ( next != NULL ) {                                             
ffc0d498:	2c 03 00 00 	cmpwi   r3,0                                   
  Heap_Block *allocated_blocks = NULL;                                
  Heap_Block *blocks = NULL;                                          
  Heap_Block *current;                                                
  size_t i;                                                           
                                                                      
  for (i = 0; i < block_count; ++i) {                                 
ffc0d49c:	7f 9f d8 00 	cmpw    cr7,r31,r27                            
    void *next = _Heap_Allocate( heap, block_sizes [i] );             
                                                                      
    if ( next != NULL ) {                                             
ffc0d4a0:	41 82 00 1c 	beq-    ffc0d4bc <_Heap_Greedy_allocate+0x74>  <== NEVER TAKEN
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
ffc0d4a4:	81 3e 00 10 	lwz     r9,16(r30)                             
ffc0d4a8:	7c 63 4b 96 	divwu   r3,r3,r9                               
ffc0d4ac:	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;                            
ffc0d4b0:	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);                                        
ffc0d4b4:	39 29 ff f8 	addi    r9,r9,-8                               
ffc0d4b8:	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) {                                 
ffc0d4bc:	40 9e ff c4 	bne+    cr7,ffc0d480 <_Heap_Greedy_allocate+0x38>
  return &heap->free_list;                                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_head(heap)->next;                            
ffc0d4c0:	83 fe 00 08 	lwz     r31,8(r30)                             
      next_block->next = allocated_blocks;                            
      allocated_blocks = next_block;                                  
    }                                                                 
  }                                                                   
                                                                      
  while ( (current = _Heap_Free_list_first( heap )) != free_list_tail ) {
ffc0d4c4:	7f 9e f8 00 	cmpw    cr7,r30,r31                            
ffc0d4c8:	41 9e 00 90 	beq-    cr7,ffc0d558 <_Heap_Greedy_allocate+0x110><== NEVER TAKEN
ffc0d4cc:	3b 80 00 00 	li      r28,0                                  
ffc0d4d0:	48 00 00 08 	b       ffc0d4d8 <_Heap_Greedy_allocate+0x90>  
ffc0d4d4:	7d 3f 4b 78 	mr      r31,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;                
ffc0d4d8:	80 df 00 04 	lwz     r6,4(r31)                              
    _Heap_Block_allocate(                                             
ffc0d4dc:	7f e4 fb 78 	mr      r4,r31                                 
ffc0d4e0:	38 bf 00 08 	addi    r5,r31,8                               
ffc0d4e4:	54 c6 00 3c 	rlwinm  r6,r6,0,0,30                           
ffc0d4e8:	7f c3 f3 78 	mr      r3,r30                                 
ffc0d4ec:	38 c6 ff f8 	addi    r6,r6,-8                               
ffc0d4f0:	48 00 03 e5 	bl      ffc0d8d4 <_Heap_Block_allocate>        
      current,                                                        
      _Heap_Alloc_area_of_block( current ),                           
      _Heap_Block_size( current ) - HEAP_BLOCK_HEADER_SIZE            
    );                                                                
                                                                      
    current->next = blocks;                                           
ffc0d4f4:	93 9f 00 08 	stw     r28,8(r31)                             
ffc0d4f8:	7f fc fb 78 	mr      r28,r31                                
  return &heap->free_list;                                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_head(heap)->next;                            
ffc0d4fc:	81 3e 00 08 	lwz     r9,8(r30)                              
      next_block->next = allocated_blocks;                            
      allocated_blocks = next_block;                                  
    }                                                                 
  }                                                                   
                                                                      
  while ( (current = _Heap_Free_list_first( heap )) != free_list_tail ) {
ffc0d500:	7f 9e 48 00 	cmpw    cr7,r30,r9                             
ffc0d504:	40 9e ff d0 	bne+    cr7,ffc0d4d4 <_Heap_Greedy_allocate+0x8c>
                                                                      
    current->next = blocks;                                           
    blocks = current;                                                 
  }                                                                   
                                                                      
  while ( allocated_blocks != NULL ) {                                
ffc0d508:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0d50c:	41 9e 00 1c 	beq-    cr7,ffc0d528 <_Heap_Greedy_allocate+0xe0>
    current = allocated_blocks;                                       
    allocated_blocks = allocated_blocks->next;                        
ffc0d510:	7f a4 eb 78 	mr      r4,r29                                 
ffc0d514:	87 a4 00 08 	lwzu    r29,8(r4)                              
    _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( current ) );
ffc0d518:	7f c3 f3 78 	mr      r3,r30                                 
ffc0d51c:	48 00 90 c9 	bl      ffc165e4 <_Heap_Free>                  
                                                                      
    current->next = blocks;                                           
    blocks = current;                                                 
  }                                                                   
                                                                      
  while ( allocated_blocks != NULL ) {                                
ffc0d520:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0d524:	40 9e ff ec 	bne+    cr7,ffc0d510 <_Heap_Greedy_allocate+0xc8>
    allocated_blocks = allocated_blocks->next;                        
    _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( current ) );
  }                                                                   
                                                                      
  return blocks;                                                      
}                                                                     
ffc0d528:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0d52c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d530:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0d534:	7c 08 03 a6 	mtlr    r0                                     
ffc0d538:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0d53c:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0d540:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0d544:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0d548:	38 21 00 20 	addi    r1,r1,32                               
ffc0d54c:	4e 80 00 20 	blr                                            
  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;                                
ffc0d550:	3b a0 00 00 	li      r29,0                                  
ffc0d554:	4b ff ff 6c 	b       ffc0d4c0 <_Heap_Greedy_allocate+0x78>  
      next_block->next = allocated_blocks;                            
      allocated_blocks = next_block;                                  
    }                                                                 
  }                                                                   
                                                                      
  while ( (current = _Heap_Free_list_first( heap )) != free_list_tail ) {
ffc0d558:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
ffc0d55c:	4b ff ff c4 	b       ffc0d520 <_Heap_Greedy_allocate+0xd8>  <== NOT EXECUTED
                                                                      

ffc0d560 <_Heap_Greedy_free>: void _Heap_Greedy_free( Heap_Control *heap, Heap_Block *blocks ) { while ( blocks != NULL ) {
ffc0d560:	2c 04 00 00 	cmpwi   r4,0                                   
                                                                      
void _Heap_Greedy_free(                                               
  Heap_Control *heap,                                                 
  Heap_Block *blocks                                                  
)                                                                     
{                                                                     
ffc0d564:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0d568:	7c 08 02 a6 	mflr    r0                                     
ffc0d56c:	93 c1 00 08 	stw     r30,8(r1)                              
ffc0d570:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0d574:	90 01 00 14 	stw     r0,20(r1)                              
ffc0d578:	93 e1 00 0c 	stw     r31,12(r1)                             
  while ( blocks != NULL ) {                                          
ffc0d57c:	41 82 00 1c 	beq-    ffc0d598 <_Heap_Greedy_free+0x38>      <== NEVER TAKEN
    Heap_Block *current = blocks;                                     
                                                                      
    blocks = blocks->next;                                            
ffc0d580:	87 e4 00 08 	lwzu    r31,8(r4)                              
    _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( current ) );
ffc0d584:	7f c3 f3 78 	mr      r3,r30                                 
ffc0d588:	48 00 90 5d 	bl      ffc165e4 <_Heap_Free>                  
void _Heap_Greedy_free(                                               
  Heap_Control *heap,                                                 
  Heap_Block *blocks                                                  
)                                                                     
{                                                                     
  while ( blocks != NULL ) {                                          
ffc0d58c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0d590:	7f e4 fb 78 	mr      r4,r31                                 
ffc0d594:	40 9e ff ec 	bne+    cr7,ffc0d580 <_Heap_Greedy_free+0x20>  
    Heap_Block *current = blocks;                                     
                                                                      
    blocks = blocks->next;                                            
    _Heap_Free( heap, (void *) _Heap_Alloc_area_of_block( current ) );
  }                                                                   
}                                                                     
ffc0d598:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0d59c:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0d5a0:	7c 08 03 a6 	mtlr    r0                                     
ffc0d5a4:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0d5a8:	38 21 00 10 	addi    r1,r1,16                               
ffc0d5ac:	4e 80 00 20 	blr                                            
                                                                      

ffc15e94 <_Heap_Iterate>: void _Heap_Iterate( Heap_Control *heap, Heap_Block_visitor visitor, void *visitor_arg ) {
ffc15e94:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc15e98:	7c 08 02 a6 	mflr    r0                                     
ffc15e9c:	90 01 00 1c 	stw     r0,28(r1)                              
ffc15ea0:	93 c1 00 10 	stw     r30,16(r1)                             
  Heap_Block *current = heap->first_block;                            
ffc15ea4:	81 23 00 20 	lwz     r9,32(r3)                              
  Heap_Block *end = heap->last_block;                                 
ffc15ea8:	83 c3 00 24 	lwz     r30,36(r3)                             
void _Heap_Iterate(                                                   
  Heap_Control *heap,                                                 
  Heap_Block_visitor visitor,                                         
  void *visitor_arg                                                   
)                                                                     
{                                                                     
ffc15eac:	93 81 00 08 	stw     r28,8(r1)                              
ffc15eb0:	7c 9c 23 78 	mr      r28,r4                                 
  Heap_Block *current = heap->first_block;                            
  Heap_Block *end = heap->last_block;                                 
  bool stop = false;                                                  
                                                                      
  while ( !stop && current != end ) {                                 
ffc15eb4:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
void _Heap_Iterate(                                                   
  Heap_Control *heap,                                                 
  Heap_Block_visitor visitor,                                         
  void *visitor_arg                                                   
)                                                                     
{                                                                     
ffc15eb8:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc15ebc:	7c bd 2b 78 	mr      r29,r5                                 
ffc15ec0:	93 e1 00 14 	stw     r31,20(r1)                             
  Heap_Block *current = heap->first_block;                            
  Heap_Block *end = heap->last_block;                                 
  bool stop = false;                                                  
                                                                      
  while ( !stop && current != end ) {                                 
ffc15ec4:	40 be 00 0c 	bne+    cr7,ffc15ed0 <_Heap_Iterate+0x3c>      <== ALWAYS TAKEN
ffc15ec8:	48 00 00 3c 	b       ffc15f04 <_Heap_Iterate+0x70>          <== NOT EXECUTED
ffc15ecc:	41 9a 00 38 	beq-    cr6,ffc15f04 <_Heap_Iterate+0x70>      
ffc15ed0:	81 49 00 04 	lwz     r10,4(r9)                              
    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 );            
ffc15ed4:	7d 23 4b 78 	mr      r3,r9                                  
ffc15ed8:	7f a6 eb 78 	mr      r6,r29                                 
ffc15edc:	7f 89 03 a6 	mtctr   r28                                    
ffc15ee0:	55 44 00 3c 	rlwinm  r4,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);                 
ffc15ee4:	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;                 
ffc15ee8:	80 bf 00 04 	lwz     r5,4(r31)                              
ffc15eec:	54 a5 07 fe 	clrlwi  r5,r5,31                               
ffc15ef0:	4e 80 04 21 	bctrl                                          
ffc15ef4:	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 ) {                                 
ffc15ef8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc15efc:	7f 1e f8 00 	cmpw    cr6,r30,r31                            
ffc15f00:	41 9e ff cc 	beq+    cr7,ffc15ecc <_Heap_Iterate+0x38>      <== ALWAYS TAKEN
                                                                      
    stop = (*visitor)( current, size, used, visitor_arg );            
                                                                      
    current = next;                                                   
  }                                                                   
}                                                                     
ffc15f04:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc15f08:	83 81 00 08 	lwz     r28,8(r1)                              
ffc15f0c:	7c 08 03 a6 	mtlr    r0                                     
ffc15f10:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc15f14:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc15f18:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc15f1c:	38 21 00 18 	addi    r1,r1,24                               
ffc15f20:	4e 80 00 20 	blr                                            
                                                                      

ffc1e864 <_Heap_Size_of_alloc_area>: RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down( uintptr_t value, uintptr_t alignment ) { return value - (value % alignment);
ffc1e864:	81 23 00 10 	lwz     r9,16(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           
ffc1e868:	81 43 00 20 	lwz     r10,32(r3)                             
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Align_down(                      
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return value - (value % alignment);                                 
ffc1e86c:	7d 04 4b 96 	divwu   r8,r4,r9                               
ffc1e870:	7d 28 49 d6 	mullw   r9,r8,r9                               
  uintptr_t alloc_begin,                                              
  uintptr_t page_size                                                 
)                                                                     
{                                                                     
  return (Heap_Block *) (_Heap_Align_down( alloc_begin, page_size )   
    - HEAP_BLOCK_HEADER_SIZE);                                        
ffc1e874:	39 29 ff f8 	addi    r9,r9,-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;             
ffc1e878:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc1e87c:	41 9c 00 50 	blt-    cr7,ffc1e8cc <_Heap_Size_of_alloc_area+0x68>
ffc1e880:	81 03 00 24 	lwz     r8,36(r3)                              
ffc1e884:	7f 89 40 40 	cmplw   cr7,r9,r8                              
ffc1e888:	41 9d 00 44 	bgt-    cr7,ffc1e8cc <_Heap_Size_of_alloc_area+0x68>
    - 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;                
ffc1e88c:	80 e9 00 04 	lwz     r7,4(r9)                               
ffc1e890:	54 e7 00 3c 	rlwinm  r7,r7,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);                 
ffc1e894:	7d 27 4a 14 	add     r9,r7,r9                               
  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;             
ffc1e898:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc1e89c:	41 9d 00 30 	bgt-    cr7,ffc1e8cc <_Heap_Size_of_alloc_area+0x68><== NEVER TAKEN
ffc1e8a0:	7f 88 48 40 	cmplw   cr7,r8,r9                              
ffc1e8a4:	41 9c 00 28 	blt-    cr7,ffc1e8cc <_Heap_Size_of_alloc_area+0x68><== 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;                 
ffc1e8a8:	81 49 00 04 	lwz     r10,4(r9)                              
  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;                                                     
ffc1e8ac:	38 60 00 00 	li      r3,0                                   
  block_size = _Heap_Block_size( block );                             
  next_block = _Heap_Block_at( block, block_size );                   
                                                                      
  if (                                                                
    !_Heap_Is_block_in_heap( heap, next_block )                       
      || !_Heap_Is_prev_used( next_block )                            
ffc1e8b0:	71 48 00 01 	andi.   r8,r10,1                               
ffc1e8b4:	41 82 00 20 	beq-    ffc1e8d4 <_Heap_Size_of_alloc_area+0x70><== NEVER TAKEN
  ) {                                                                 
    return false;                                                     
  }                                                                   
                                                                      
  *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
ffc1e8b8:	20 84 00 04 	subfic  r4,r4,4                                
ffc1e8bc:	7d 24 4a 14 	add     r9,r4,r9                               
ffc1e8c0:	91 25 00 00 	stw     r9,0(r5)                               
                                                                      
  return true;                                                        
ffc1e8c4:	38 60 00 01 	li      r3,1                                   
ffc1e8c8:	4e 80 00 20 	blr                                            
  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;                                                     
ffc1e8cc:	38 60 00 00 	li      r3,0                                   
ffc1e8d0:	4e 80 00 20 	blr                                            
  }                                                                   
                                                                      
  *alloc_size = (uintptr_t) next_block + HEAP_ALLOC_BONUS - alloc_begin;
                                                                      
  return true;                                                        
}                                                                     
ffc1e8d4:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc0b974 <_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;
ffc0b974:	2f 85 00 00 	cmpwi   cr7,r5,0                               
bool _Heap_Walk(                                                      
  Heap_Control *heap,                                                 
  int source,                                                         
  bool dump                                                           
)                                                                     
{                                                                     
ffc0b978:	94 21 ff a0 	stwu    r1,-96(r1)                             
ffc0b97c:	7c 08 02 a6 	mflr    r0                                     
ffc0b980:	91 c1 00 18 	stw     r14,24(r1)                             
ffc0b984:	90 01 00 64 	stw     r0,100(r1)                             
ffc0b988:	92 e1 00 3c 	stw     r23,60(r1)                             
ffc0b98c:	93 01 00 40 	stw     r24,64(r1)                             
ffc0b990:	7c 98 23 78 	mr      r24,r4                                 
ffc0b994:	93 41 00 48 	stw     r26,72(r1)                             
ffc0b998:	93 61 00 4c 	stw     r27,76(r1)                             
ffc0b99c:	93 e1 00 5c 	stw     r31,92(r1)                             
ffc0b9a0:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0b9a4:	91 e1 00 1c 	stw     r15,28(r1)                             
ffc0b9a8:	92 01 00 20 	stw     r16,32(r1)                             
ffc0b9ac:	92 21 00 24 	stw     r17,36(r1)                             
ffc0b9b0:	92 41 00 28 	stw     r18,40(r1)                             
ffc0b9b4:	92 61 00 2c 	stw     r19,44(r1)                             
ffc0b9b8:	92 81 00 30 	stw     r20,48(r1)                             
ffc0b9bc:	92 a1 00 34 	stw     r21,52(r1)                             
ffc0b9c0:	92 c1 00 38 	stw     r22,56(r1)                             
ffc0b9c4:	93 21 00 44 	stw     r25,68(r1)                             
ffc0b9c8:	93 81 00 50 	stw     r28,80(r1)                             
ffc0b9cc:	93 a1 00 54 	stw     r29,84(r1)                             
ffc0b9d0:	93 c1 00 58 	stw     r30,88(r1)                             
  uintptr_t const page_size = heap->page_size;                        
ffc0b9d4:	83 63 00 10 	lwz     r27,16(r3)                             
  uintptr_t const min_block_size = heap->min_block_size;              
ffc0b9d8:	81 c3 00 14 	lwz     r14,20(r3)                             
  Heap_Block *const first_block = heap->first_block;                  
ffc0b9dc:	83 43 00 20 	lwz     r26,32(r3)                             
  Heap_Block *const last_block = heap->last_block;                    
ffc0b9e0:	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;                      
ffc0b9e4:	41 9e 00 78 	beq-    cr7,ffc0ba5c <_Heap_Walk+0xe8>         
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
ffc0b9e8:	3d 20 00 00 	lis     r9,0                                   
ffc0b9ec:	81 29 28 6c 	lwz     r9,10348(r9)                           
  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;                      
ffc0b9f0:	3f 20 ff c1 	lis     r25,-63                                
ffc0b9f4:	3b 39 b8 74 	addi    r25,r25,-18316                         
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
ffc0b9f8:	2f 89 00 03 	cmpwi   cr7,r9,3                               
    return true;                                                      
ffc0b9fc:	38 60 00 01 	li      r3,1                                   
  Heap_Block *const last_block = heap->last_block;                    
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
ffc0ba00:	41 9e 00 78 	beq-    cr7,ffc0ba78 <_Heap_Walk+0x104>        <== ALWAYS TAKEN
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
ffc0ba04:	80 01 00 64 	lwz     r0,100(r1)                             
ffc0ba08:	81 c1 00 18 	lwz     r14,24(r1)                             
ffc0ba0c:	7c 08 03 a6 	mtlr    r0                                     
ffc0ba10:	81 e1 00 1c 	lwz     r15,28(r1)                             
ffc0ba14:	82 01 00 20 	lwz     r16,32(r1)                             
ffc0ba18:	82 21 00 24 	lwz     r17,36(r1)                             
ffc0ba1c:	82 41 00 28 	lwz     r18,40(r1)                             
ffc0ba20:	82 61 00 2c 	lwz     r19,44(r1)                             
ffc0ba24:	82 81 00 30 	lwz     r20,48(r1)                             
ffc0ba28:	82 a1 00 34 	lwz     r21,52(r1)                             
ffc0ba2c:	82 c1 00 38 	lwz     r22,56(r1)                             
ffc0ba30:	82 e1 00 3c 	lwz     r23,60(r1)                             
ffc0ba34:	83 01 00 40 	lwz     r24,64(r1)                             
ffc0ba38:	83 21 00 44 	lwz     r25,68(r1)                             
ffc0ba3c:	83 41 00 48 	lwz     r26,72(r1)                             
ffc0ba40:	83 61 00 4c 	lwz     r27,76(r1)                             
ffc0ba44:	83 81 00 50 	lwz     r28,80(r1)                             
ffc0ba48:	83 a1 00 54 	lwz     r29,84(r1)                             
ffc0ba4c:	83 c1 00 58 	lwz     r30,88(r1)                             
ffc0ba50:	83 e1 00 5c 	lwz     r31,92(r1)                             
ffc0ba54:	38 21 00 60 	addi    r1,r1,96                               
ffc0ba58:	4e 80 00 20 	blr                                            
  Heap_Block *const last_block = heap->last_block;                    
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
ffc0ba5c:	3d 20 00 00 	lis     r9,0                                   
ffc0ba60:	81 29 28 6c 	lwz     r9,10348(r9)                           
  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;                      
ffc0ba64:	3f 20 ff c1 	lis     r25,-63                                
ffc0ba68:	3b 39 b8 70 	addi    r25,r25,-18320                         
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
ffc0ba6c:	2f 89 00 03 	cmpwi   cr7,r9,3                               
    return true;                                                      
ffc0ba70:	38 60 00 01 	li      r3,1                                   
  Heap_Block *const last_block = heap->last_block;                    
  Heap_Block *block = first_block;                                    
  Heap_Walk_printer printer = dump ?                                  
    _Heap_Walk_print : _Heap_Walk_print_nothing;                      
                                                                      
  if ( !_System_state_Is_up( _System_state_Get() ) ) {                
ffc0ba74:	40 9e ff 90 	bne+    cr7,ffc0ba04 <_Heap_Walk+0x90>         
  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)(                                                         
ffc0ba78:	80 ff 00 08 	lwz     r7,8(r31)                              
ffc0ba7c:	3c a0 ff c2 	lis     r5,-62                                 
ffc0ba80:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc0ba84:	7f 03 c3 78 	mr      r3,r24                                 
ffc0ba88:	81 1f 00 18 	lwz     r8,24(r31)                             
ffc0ba8c:	38 80 00 00 	li      r4,0                                   
ffc0ba90:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc0ba94:	38 a5 a8 b0 	addi    r5,r5,-22352                           
ffc0ba98:	90 e1 00 0c 	stw     r7,12(r1)                              
ffc0ba9c:	7f 66 db 78 	mr      r6,r27                                 
ffc0baa0:	7d c7 73 78 	mr      r7,r14                                 
ffc0baa4:	7f 29 03 a6 	mtctr   r25                                    
ffc0baa8:	91 41 00 10 	stw     r10,16(r1)                             
ffc0baac:	7f 4a d3 78 	mr      r10,r26                                
ffc0bab0:	92 e1 00 08 	stw     r23,8(r1)                              
ffc0bab4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0bab8:	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 ) {                                             
ffc0babc:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc0bac0:	41 9e 00 a4 	beq-    cr7,ffc0bb64 <_Heap_Walk+0x1f0>        
    (*printer)( source, true, "page size is zero\n" );                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
ffc0bac4:	73 67 00 07 	andi.   r7,r27,7                               
ffc0bac8:	40 82 00 c0 	bne-    ffc0bb88 <_Heap_Walk+0x214>            
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
ffc0bacc:	7d 2e db 96 	divwu   r9,r14,r27                             
ffc0bad0:	7d 29 d9 d6 	mullw   r9,r9,r27                              
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
ffc0bad4:	7f 8e 48 00 	cmpw    cr7,r14,r9                             
ffc0bad8:	40 9e 00 d8 	bne-    cr7,ffc0bbb0 <_Heap_Walk+0x23c>        
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(             
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;                  
ffc0badc:	39 3a 00 08 	addi    r9,r26,8                               
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
ffc0bae0:	7d 49 db 96 	divwu   r10,r9,r27                             
ffc0bae4:	7d 4a d9 d6 	mullw   r10,r10,r27                            
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
ffc0bae8:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc0baec:	40 9e 00 ec 	bne-    cr7,ffc0bbd8 <_Heap_Walk+0x264>        
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
ffc0baf0:	83 9a 00 04 	lwz     r28,4(r26)                             
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
ffc0baf4:	73 90 00 01 	andi.   r16,r28,1                              
ffc0baf8:	41 82 01 08 	beq-    ffc0bc00 <_Heap_Walk+0x28c>            
    - 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;                
ffc0bafc:	81 37 00 04 	lwz     r9,4(r23)                              
ffc0bb00:	55 29 00 3c 	rlwinm  r9,r9,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);                 
ffc0bb04:	7d 37 4a 14 	add     r9,r23,r9                              
  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;                 
ffc0bb08:	81 49 00 04 	lwz     r10,4(r9)                              
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
ffc0bb0c:	71 47 00 01 	andi.   r7,r10,1                               
ffc0bb10:	41 82 00 30 	beq-    ffc0bb40 <_Heap_Walk+0x1cc>            
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if (                                                                
ffc0bb14:	7f 9a 48 00 	cmpw    cr7,r26,r9                             
ffc0bb18:	41 9e 01 0c 	beq-    cr7,ffc0bc24 <_Heap_Walk+0x2b0>        
    _Heap_Block_at( last_block, _Heap_Block_size( last_block ) ) != first_block
  ) {                                                                 
    (*printer)(                                                       
ffc0bb1c:	3c a0 ff c2 	lis     r5,-62                                 
ffc0bb20:	7f 29 03 a6 	mtctr   r25                                    
ffc0bb24:	7f 03 c3 78 	mr      r3,r24                                 
ffc0bb28:	38 80 00 01 	li      r4,1                                   
ffc0bb2c:	38 a5 aa 18 	addi    r5,r5,-21992                           
ffc0bb30:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0bb34:	4e 80 04 21 	bctrl                                          
        "block 0x%08x: next block 0x%08x is not a successor\n",       
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
ffc0bb38:	38 60 00 00 	li      r3,0                                   
ffc0bb3c:	4b ff fe c8 	b       ffc0ba04 <_Heap_Walk+0x90>             
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( _Heap_Is_free( last_block ) ) {                                
    (*printer)(                                                       
ffc0bb40:	3c a0 ff c2 	lis     r5,-62                                 
ffc0bb44:	7f 29 03 a6 	mtctr   r25                                    
ffc0bb48:	7f 03 c3 78 	mr      r3,r24                                 
ffc0bb4c:	38 80 00 01 	li      r4,1                                   
ffc0bb50:	38 a5 aa 00 	addi    r5,r5,-22016                           
ffc0bb54:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0bb58:	4e 80 04 21 	bctrl                                          
        "block 0x%08x: next block 0x%08x is not a successor\n",       
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
ffc0bb5c:	38 60 00 00 	li      r3,0                                   
ffc0bb60:	4b ff fe a4 	b       ffc0ba04 <_Heap_Walk+0x90>             
    first_block, last_block,                                          
    first_free_block, last_free_block                                 
  );                                                                  
                                                                      
  if ( page_size == 0 ) {                                             
    (*printer)( source, true, "page size is zero\n" );                
ffc0bb64:	3c a0 ff c2 	lis     r5,-62                                 
ffc0bb68:	7f 29 03 a6 	mtctr   r25                                    
ffc0bb6c:	7f 03 c3 78 	mr      r3,r24                                 
ffc0bb70:	38 80 00 01 	li      r4,1                                   
ffc0bb74:	38 a5 a9 44 	addi    r5,r5,-22204                           
ffc0bb78:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0bb7c:	4e 80 04 21 	bctrl                                          
        "block 0x%08x: next block 0x%08x is not a successor\n",       
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
ffc0bb80:	38 60 00 00 	li      r3,0                                   
ffc0bb84:	4b ff fe 80 	b       ffc0ba04 <_Heap_Walk+0x90>             
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Addresses_Is_aligned( (void *) page_size ) ) {               
    (*printer)(                                                       
ffc0bb88:	3c a0 ff c2 	lis     r5,-62                                 
ffc0bb8c:	7f 29 03 a6 	mtctr   r25                                    
ffc0bb90:	7f 03 c3 78 	mr      r3,r24                                 
ffc0bb94:	38 80 00 01 	li      r4,1                                   
ffc0bb98:	38 a5 a9 58 	addi    r5,r5,-22184                           
ffc0bb9c:	7f 66 db 78 	mr      r6,r27                                 
ffc0bba0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0bba4:	4e 80 04 21 	bctrl                                          
        "block 0x%08x: next block 0x%08x is not a successor\n",       
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
ffc0bba8:	38 60 00 00 	li      r3,0                                   
ffc0bbac:	4b ff fe 58 	b       ffc0ba04 <_Heap_Walk+0x90>             
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_aligned( min_block_size, page_size ) ) {             
    (*printer)(                                                       
ffc0bbb0:	3c a0 ff c2 	lis     r5,-62                                 
ffc0bbb4:	7f 29 03 a6 	mtctr   r25                                    
ffc0bbb8:	7f 03 c3 78 	mr      r3,r24                                 
ffc0bbbc:	38 80 00 01 	li      r4,1                                   
ffc0bbc0:	38 a5 a9 78 	addi    r5,r5,-22152                           
ffc0bbc4:	7d c6 73 78 	mr      r6,r14                                 
ffc0bbc8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0bbcc:	4e 80 04 21 	bctrl                                          
        "block 0x%08x: next block 0x%08x is not a successor\n",       
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
ffc0bbd0:	38 60 00 00 	li      r3,0                                   
ffc0bbd4:	4b ff fe 30 	b       ffc0ba04 <_Heap_Walk+0x90>             
  }                                                                   
                                                                      
  if (                                                                
    !_Heap_Is_aligned( _Heap_Alloc_area_of_block( first_block ), page_size )
  ) {                                                                 
    (*printer)(                                                       
ffc0bbd8:	3c a0 ff c2 	lis     r5,-62                                 
ffc0bbdc:	7f 29 03 a6 	mtctr   r25                                    
ffc0bbe0:	7f 03 c3 78 	mr      r3,r24                                 
ffc0bbe4:	38 80 00 01 	li      r4,1                                   
ffc0bbe8:	38 a5 a9 9c 	addi    r5,r5,-22116                           
ffc0bbec:	7f 46 d3 78 	mr      r6,r26                                 
ffc0bbf0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0bbf4:	4e 80 04 21 	bctrl                                          
        "block 0x%08x: next block 0x%08x is not a successor\n",       
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
ffc0bbf8:	38 60 00 00 	li      r3,0                                   
ffc0bbfc:	4b ff fe 08 	b       ffc0ba04 <_Heap_Walk+0x90>             
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Is_prev_used( first_block ) ) {                         
    (*printer)(                                                       
ffc0bc00:	3c a0 ff c2 	lis     r5,-62                                 
ffc0bc04:	7f 29 03 a6 	mtctr   r25                                    
ffc0bc08:	7f 03 c3 78 	mr      r3,r24                                 
ffc0bc0c:	38 80 00 01 	li      r4,1                                   
ffc0bc10:	38 a5 a9 d0 	addi    r5,r5,-22064                           
ffc0bc14:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0bc18:	4e 80 04 21 	bctrl                                          
        "block 0x%08x: next block 0x%08x is not a successor\n",       
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
ffc0bc1c:	38 60 00 00 	li      r3,0                                   
ffc0bc20:	4b ff fd e4 	b       ffc0ba04 <_Heap_Walk+0x90>             
  return &heap->free_list;                                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_head(heap)->next;                            
ffc0bc24:	80 df 00 08 	lwz     r6,8(r31)                              
  int source,                                                         
  Heap_Walk_printer printer,                                          
  Heap_Control *heap                                                  
)                                                                     
{                                                                     
  uintptr_t const page_size = heap->page_size;                        
ffc0bc28:	80 9f 00 10 	lwz     r4,16(r31)                             
  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 ) {                            
ffc0bc2c:	7f 9f 30 00 	cmpw    cr7,r31,r6                             
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
ffc0bc30:	81 3f 00 20 	lwz     r9,32(r31)                             
  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 ) {                            
ffc0bc34:	41 9e 00 30 	beq-    cr7,ffc0bc64 <_Heap_Walk+0x2f0>        
  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;             
ffc0bc38:	7f 89 30 40 	cmplw   cr7,r9,r6                              
ffc0bc3c:	40 9d 03 14 	ble-    cr7,ffc0bf50 <_Heap_Walk+0x5dc>        <== ALWAYS TAKEN
    if ( !_Heap_Is_block_in_heap( heap, free_block ) ) {              
      (*printer)(                                                     
ffc0bc40:	3c a0 ff c2 	lis     r5,-62                                 
ffc0bc44:	7f 29 03 a6 	mtctr   r25                                    
ffc0bc48:	7f 03 c3 78 	mr      r3,r24                                 
ffc0bc4c:	38 80 00 01 	li      r4,1                                   
ffc0bc50:	38 a5 aa 48 	addi    r5,r5,-21944                           
ffc0bc54:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0bc58:	4e 80 04 21 	bctrl                                          
        "block 0x%08x: next block 0x%08x is not a successor\n",       
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
ffc0bc5c:	38 60 00 00 	li      r3,0                                   
ffc0bc60:	4b ff fd a4 	b       ffc0ba04 <_Heap_Walk+0x90>             
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
ffc0bc64:	3e 80 ff c2 	lis     r20,-62                                
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
      (*printer)(                                                     
ffc0bc68:	3e a0 ff c2 	lis     r21,-62                                
  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)(                                                         
ffc0bc6c:	3e 60 ff c2 	lis     r19,-62                                
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
ffc0bc70:	7f 5d d3 78 	mr      r29,r26                                
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
ffc0bc74:	3a 94 ac 64 	addi    r20,r20,-21404                         
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
      (*printer)(                                                     
ffc0bc78:	3a b5 ac 4c 	addi    r21,r21,-21428                         
  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)(                                                         
ffc0bc7c:	3a 73 ab a8 	addi    r19,r19,-21592                         
ffc0bc80:	3e 20 ff c2 	lis     r17,-62                                
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
ffc0bc84:	3e c0 ff c2 	lis     r22,-62                                
ffc0bc88:	3d e0 ff c2 	lis     r15,-62                                
  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)(                                                         
ffc0bc8c:	3e 40 ff c2 	lis     r18,-62                                
    - 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;                
ffc0bc90:	57 9c 00 3c 	rlwinm  r28,r28,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);                 
ffc0bc94:	7f dc ea 14 	add     r30,r28,r29                            
  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;             
ffc0bc98:	7f 89 f0 40 	cmplw   cr7,r9,r30                             
ffc0bc9c:	40 9d 00 30 	ble-    cr7,ffc0bccc <_Heap_Walk+0x358>        <== ALWAYS TAKEN
    Heap_Block *const next_block = _Heap_Block_at( block, block_size );
    uintptr_t const next_block_begin = (uintptr_t) next_block;        
    bool const is_not_last_block = block != last_block;               
                                                                      
    if ( !_Heap_Is_block_in_heap( heap, next_block ) ) {              
      (*printer)(                                                     
ffc0bca0:	3c a0 ff c2 	lis     r5,-62                                 
ffc0bca4:	7f 03 c3 78 	mr      r3,r24                                 
ffc0bca8:	38 80 00 01 	li      r4,1                                   
ffc0bcac:	38 a5 aa e8 	addi    r5,r5,-21784                           
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
      (*printer)(                                                     
ffc0bcb0:	7f a6 eb 78 	mr      r6,r29                                 
ffc0bcb4:	7f 29 03 a6 	mtctr   r25                                    
ffc0bcb8:	7f c7 f3 78 	mr      r7,r30                                 
ffc0bcbc:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0bcc0:	4e 80 04 21 	bctrl                                          
        "block 0x%08x: next block 0x%08x is not a successor\n",       
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
ffc0bcc4:	38 60 00 00 	li      r3,0                                   
ffc0bcc8:	4b ff fd 3c 	b       ffc0ba04 <_Heap_Walk+0x90>             
ffc0bccc:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc0bcd0:	7f 89 f0 40 	cmplw   cr7,r9,r30                             
ffc0bcd4:	41 bc ff cc 	blt-    cr7,ffc0bca0 <_Heap_Walk+0x32c>        
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
ffc0bcd8:	7d 5c db 96 	divwu   r10,r28,r27                            
ffc0bcdc:	7d 4a d9 d6 	mullw   r10,r10,r27                            
    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;               
ffc0bce0:	7f a9 ba 78 	xor     r9,r29,r23                             
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
ffc0bce4:	7f 9c 50 00 	cmpw    cr7,r28,r10                            
    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;               
ffc0bce8:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc0bcec:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
ffc0bcf0:	69 29 00 01 	xori    r9,r9,1                                
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
ffc0bcf4:	41 9e 00 5c 	beq-    cr7,ffc0bd50 <_Heap_Walk+0x3dc>        
ffc0bcf8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0bcfc:	40 9e 02 28 	bne-    cr7,ffc0bf24 <_Heap_Walk+0x5b0>        
  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;                 
ffc0bd00:	81 3e 00 04 	lwz     r9,4(r30)                              
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_prev_used( next_block ) ) {                        
ffc0bd04:	71 27 00 01 	andi.   r7,r9,1                                
ffc0bd08:	41 82 00 d4 	beq-    ffc0bddc <_Heap_Walk+0x468>            
      if ( !_Heap_Walk_check_free_block( source, printer, heap, block ) ) {
        return false;                                                 
      }                                                               
    } else if (prev_used) {                                           
ffc0bd0c:	2f 90 00 00 	cmpwi   cr7,r16,0                              
ffc0bd10:	41 9e 00 a4 	beq-    cr7,ffc0bdb4 <_Heap_Walk+0x440>        
      (*printer)(                                                     
ffc0bd14:	7f 03 c3 78 	mr      r3,r24                                 
ffc0bd18:	7f 29 03 a6 	mtctr   r25                                    
ffc0bd1c:	38 80 00 00 	li      r4,0                                   
ffc0bd20:	7e a5 ab 78 	mr      r5,r21                                 
ffc0bd24:	7f a6 eb 78 	mr      r6,r29                                 
ffc0bd28:	7f 87 e3 78 	mr      r7,r28                                 
ffc0bd2c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0bd30:	4e 80 04 21 	bctrl                                          
        block->prev_size                                              
      );                                                              
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
ffc0bd34:	7f 9a f0 00 	cmpw    cr7,r26,r30                            
ffc0bd38:	41 9e 01 68 	beq-    cr7,ffc0bea0 <_Heap_Walk+0x52c>        
ffc0bd3c:	83 9e 00 04 	lwz     r28,4(r30)                             
ffc0bd40:	7f dd f3 78 	mr      r29,r30                                
ffc0bd44:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc0bd48:	57 90 07 fe 	clrlwi  r16,r28,31                             
ffc0bd4c:	4b ff ff 44 	b       ffc0bc90 <_Heap_Walk+0x31c>            
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( block_size < min_block_size && is_not_last_block ) {         
ffc0bd50:	7f 8e e0 40 	cmplw   cr7,r14,r28                            
ffc0bd54:	40 9d 00 3c 	ble-    cr7,ffc0bd90 <_Heap_Walk+0x41c>        
ffc0bd58:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0bd5c:	41 9e ff a4 	beq+    cr7,ffc0bd00 <_Heap_Walk+0x38c>        <== NEVER TAKEN
      (*printer)(                                                     
ffc0bd60:	3c a0 ff c2 	lis     r5,-62                                 
ffc0bd64:	7f 29 03 a6 	mtctr   r25                                    
ffc0bd68:	7f 03 c3 78 	mr      r3,r24                                 
ffc0bd6c:	38 80 00 01 	li      r4,1                                   
ffc0bd70:	38 a5 ab 48 	addi    r5,r5,-21688                           
ffc0bd74:	7f a6 eb 78 	mr      r6,r29                                 
ffc0bd78:	7f 87 e3 78 	mr      r7,r28                                 
ffc0bd7c:	7d c8 73 78 	mr      r8,r14                                 
ffc0bd80:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0bd84:	4e 80 04 21 	bctrl                                          
        block,                                                        
        block_size,                                                   
        min_block_size                                                
      );                                                              
                                                                      
      return false;                                                   
ffc0bd88:	38 60 00 00 	li      r3,0                                   
ffc0bd8c:	4b ff fc 78 	b       ffc0ba04 <_Heap_Walk+0x90>             
    }                                                                 
                                                                      
    if ( next_block_begin <= block_begin && is_not_last_block ) {     
ffc0bd90:	7f 9d f0 40 	cmplw   cr7,r29,r30                            
ffc0bd94:	41 bc ff 6c 	blt-    cr7,ffc0bd00 <_Heap_Walk+0x38c>        
ffc0bd98:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0bd9c:	41 9e ff 64 	beq+    cr7,ffc0bd00 <_Heap_Walk+0x38c>        
      (*printer)(                                                     
ffc0bda0:	3c a0 ff c2 	lis     r5,-62                                 
ffc0bda4:	7f 03 c3 78 	mr      r3,r24                                 
ffc0bda8:	38 80 00 01 	li      r4,1                                   
ffc0bdac:	38 a5 ab 74 	addi    r5,r5,-21644                           
ffc0bdb0:	4b ff ff 00 	b       ffc0bcb0 <_Heap_Walk+0x33c>            
        "block 0x%08x: size %u\n",                                    
        block,                                                        
        block_size                                                    
      );                                                              
    } else {                                                          
      (*printer)(                                                     
ffc0bdb4:	7f a6 eb 78 	mr      r6,r29                                 
ffc0bdb8:	81 1d 00 00 	lwz     r8,0(r29)                              
ffc0bdbc:	7f 03 c3 78 	mr      r3,r24                                 
ffc0bdc0:	7f 29 03 a6 	mtctr   r25                                    
ffc0bdc4:	38 80 00 00 	li      r4,0                                   
ffc0bdc8:	7e 85 a3 78 	mr      r5,r20                                 
ffc0bdcc:	7f 87 e3 78 	mr      r7,r28                                 
ffc0bdd0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0bdd4:	4e 80 04 21 	bctrl                                          
ffc0bdd8:	4b ff ff 5c 	b       ffc0bd34 <_Heap_Walk+0x3c0>            
    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 ?                                 
ffc0bddc:	81 1d 00 0c 	lwz     r8,12(r29)                             
  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)(                                                         
ffc0bde0:	81 3f 00 08 	lwz     r9,8(r31)                              
  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;                            
ffc0bde4:	80 ff 00 0c 	lwz     r7,12(r31)                             
ffc0bde8:	7f 89 40 00 	cmpw    cr7,r9,r8                              
ffc0bdec:	41 9e 00 f4 	beq-    cr7,ffc0bee0 <_Heap_Walk+0x56c>        
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
ffc0bdf0:	7f 9f 40 00 	cmpw    cr7,r31,r8                             
ffc0bdf4:	41 9e 00 fc 	beq-    cr7,ffc0bef0 <_Heap_Walk+0x57c>        
ffc0bdf8:	39 36 ac 18 	addi    r9,r22,-21480                          
    block->next,                                                      
    block->next == last_free_block ?                                  
ffc0bdfc:	81 5d 00 08 	lwz     r10,8(r29)                             
  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)(                                                         
ffc0be00:	7f 87 50 00 	cmpw    cr7,r7,r10                             
ffc0be04:	41 9e 00 d4 	beq-    cr7,ffc0bed8 <_Heap_Walk+0x564>        
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
ffc0be08:	7f 9f 50 00 	cmpw    cr7,r31,r10                            
ffc0be0c:	41 9e 00 dc 	beq-    cr7,ffc0bee8 <_Heap_Walk+0x574>        
ffc0be10:	38 f6 ac 18 	addi    r7,r22,-21480                          
  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)(                                                         
ffc0be14:	90 e1 00 08 	stw     r7,8(r1)                               
ffc0be18:	7f 03 c3 78 	mr      r3,r24                                 
ffc0be1c:	38 80 00 00 	li      r4,0                                   
ffc0be20:	7f 29 03 a6 	mtctr   r25                                    
ffc0be24:	7e 65 9b 78 	mr      r5,r19                                 
ffc0be28:	7f a6 eb 78 	mr      r6,r29                                 
ffc0be2c:	7f 87 e3 78 	mr      r7,r28                                 
ffc0be30:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0be34:	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 ) {                        
ffc0be38:	81 1e 00 00 	lwz     r8,0(r30)                              
ffc0be3c:	7f 9c 40 00 	cmpw    cr7,r28,r8                             
ffc0be40:	40 9e 00 68 	bne-    cr7,ffc0bea8 <_Heap_Walk+0x534>        
    );                                                                
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
ffc0be44:	2f 90 00 00 	cmpwi   cr7,r16,0                              
ffc0be48:	41 9e 00 b4 	beq-    cr7,ffc0befc <_Heap_Walk+0x588>        
  return &heap->free_list;                                            
}                                                                     
                                                                      
RTEMS_INLINE_ROUTINE Heap_Block *_Heap_Free_list_first( Heap_Control *heap )
{                                                                     
  return _Heap_Free_list_head(heap)->next;                            
ffc0be4c:	81 3f 00 08 	lwz     r9,8(r31)                              
)                                                                     
{                                                                     
  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 ) {                            
ffc0be50:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
ffc0be54:	41 9e 00 24 	beq-    cr7,ffc0be78 <_Heap_Walk+0x504>        <== NEVER TAKEN
    if ( free_block == block ) {                                      
ffc0be58:	7f 9d 48 00 	cmpw    cr7,r29,r9                             
ffc0be5c:	40 be 00 0c 	bne+    cr7,ffc0be68 <_Heap_Walk+0x4f4>        
ffc0be60:	4b ff fe d4 	b       ffc0bd34 <_Heap_Walk+0x3c0>            
ffc0be64:	41 ba fe d0 	beq-    cr6,ffc0bd34 <_Heap_Walk+0x3c0>        
      return true;                                                    
    }                                                                 
    free_block = free_block->next;                                    
ffc0be68:	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 ) {                            
ffc0be6c:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
    if ( free_block == block ) {                                      
ffc0be70:	7f 1d 48 00 	cmpw    cr6,r29,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 ) {                            
ffc0be74:	40 9e ff f0 	bne+    cr7,ffc0be64 <_Heap_Walk+0x4f0>        
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !_Heap_Walk_is_in_free_list( heap, block ) ) {                 
    (*printer)(                                                       
ffc0be78:	3c a0 ff c2 	lis     r5,-62                                 
ffc0be7c:	7f 29 03 a6 	mtctr   r25                                    
ffc0be80:	7f 03 c3 78 	mr      r3,r24                                 
ffc0be84:	38 80 00 01 	li      r4,1                                   
ffc0be88:	38 a5 ac 8c 	addi    r5,r5,-21364                           
ffc0be8c:	7f a6 eb 78 	mr      r6,r29                                 
ffc0be90:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0be94:	4e 80 04 21 	bctrl                                          
        "block 0x%08x: next block 0x%08x is not a successor\n",       
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
ffc0be98:	38 60 00 00 	li      r3,0                                   
ffc0be9c:	4b ff fb 68 	b       ffc0ba04 <_Heap_Walk+0x90>             
    }                                                                 
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
ffc0bea0:	38 60 00 01 	li      r3,1                                   
ffc0bea4:	4b ff fb 60 	b       ffc0ba04 <_Heap_Walk+0x90>             
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
  );                                                                  
                                                                      
  if ( block_size != next_block->prev_size ) {                        
    (*printer)(                                                       
ffc0bea8:	3c a0 ff c2 	lis     r5,-62                                 
ffc0beac:	7f 29 03 a6 	mtctr   r25                                    
ffc0beb0:	7f 03 c3 78 	mr      r3,r24                                 
ffc0beb4:	38 80 00 01 	li      r4,1                                   
ffc0beb8:	38 a5 ab e0 	addi    r5,r5,-21536                           
ffc0bebc:	7f a6 eb 78 	mr      r6,r29                                 
ffc0bec0:	7f 87 e3 78 	mr      r7,r28                                 
ffc0bec4:	7f c9 f3 78 	mr      r9,r30                                 
ffc0bec8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0becc:	4e 80 04 21 	bctrl                                          
        "block 0x%08x: next block 0x%08x is not a successor\n",       
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
ffc0bed0:	38 60 00 00 	li      r3,0                                   
ffc0bed4:	4b ff fb 30 	b       ffc0ba04 <_Heap_Walk+0x90>             
  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)(                                                         
ffc0bed8:	38 f1 a8 94 	addi    r7,r17,-22380                          
ffc0bedc:	4b ff ff 38 	b       ffc0be14 <_Heap_Walk+0x4a0>            
ffc0bee0:	39 32 a8 78 	addi    r9,r18,-22408                          
ffc0bee4:	4b ff ff 18 	b       ffc0bdfc <_Heap_Walk+0x488>            
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
    block->next,                                                      
    block->next == last_free_block ?                                  
      " (= last free)"                                                
        : (block->next == free_list_tail ? " (= tail)" : "")          
ffc0bee8:	38 ef a8 a4 	addi    r7,r15,-22364                          
ffc0beec:	4b ff ff 28 	b       ffc0be14 <_Heap_Walk+0x4a0>            
    block,                                                            
    block_size,                                                       
    block->prev,                                                      
    block->prev == first_free_block ?                                 
      " (= first free)"                                               
        : (block->prev == free_list_head ? " (= head)" : ""),         
ffc0bef0:	3d 40 ff c2 	lis     r10,-62                                
ffc0bef4:	39 2a a8 88 	addi    r9,r10,-22392                          
ffc0bef8:	4b ff ff 04 	b       ffc0bdfc <_Heap_Walk+0x488>            
                                                                      
    return false;                                                     
  }                                                                   
                                                                      
  if ( !prev_used ) {                                                 
    (*printer)(                                                       
ffc0befc:	3c a0 ff c2 	lis     r5,-62                                 
ffc0bf00:	7f 29 03 a6 	mtctr   r25                                    
ffc0bf04:	7f 03 c3 78 	mr      r3,r24                                 
ffc0bf08:	38 80 00 01 	li      r4,1                                   
ffc0bf0c:	38 a5 ac 1c 	addi    r5,r5,-21476                           
ffc0bf10:	7f a6 eb 78 	mr      r6,r29                                 
ffc0bf14:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0bf18:	4e 80 04 21 	bctrl                                          
        "block 0x%08x: next block 0x%08x is not a successor\n",       
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
ffc0bf1c:	38 60 00 00 	li      r3,0                                   
ffc0bf20:	4b ff fa e4 	b       ffc0ba04 <_Heap_Walk+0x90>             
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( !_Heap_Is_aligned( block_size, page_size ) && is_not_last_block ) {
      (*printer)(                                                     
ffc0bf24:	3c a0 ff c2 	lis     r5,-62                                 
ffc0bf28:	7f 29 03 a6 	mtctr   r25                                    
ffc0bf2c:	7f 03 c3 78 	mr      r3,r24                                 
ffc0bf30:	38 80 00 01 	li      r4,1                                   
ffc0bf34:	38 a5 ab 18 	addi    r5,r5,-21736                           
ffc0bf38:	7f a6 eb 78 	mr      r6,r29                                 
ffc0bf3c:	7f 87 e3 78 	mr      r7,r28                                 
ffc0bf40:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0bf44:	4e 80 04 21 	bctrl                                          
        "block 0x%08x: block size %u not page aligned\n",             
        block,                                                        
        block_size                                                    
      );                                                              
                                                                      
      return false;                                                   
ffc0bf48:	38 60 00 00 	li      r3,0                                   
ffc0bf4c:	4b ff fa b8 	b       ffc0ba04 <_Heap_Walk+0x90>             
  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;             
ffc0bf50:	80 bf 00 24 	lwz     r5,36(r31)                             
ffc0bf54:	7f 85 30 40 	cmplw   cr7,r5,r6                              
ffc0bf58:	41 bc fc e8 	blt-    cr7,ffc0bc40 <_Heap_Walk+0x2cc>        <== NEVER TAKEN
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(             
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;                  
ffc0bf5c:	39 46 00 08 	addi    r10,r6,8                               
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
ffc0bf60:	7d 0a 23 96 	divwu   r8,r10,r4                              
ffc0bf64:	7d 08 21 d6 	mullw   r8,r8,r4                               
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
ffc0bf68:	7f 8a 40 00 	cmpw    cr7,r10,r8                             
ffc0bf6c:	40 9e 00 cc 	bne-    cr7,ffc0c038 <_Heap_Walk+0x6c4>        <== NEVER TAKEN
    - 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;                
ffc0bf70:	81 46 00 04 	lwz     r10,4(r6)                              
ffc0bf74:	55 4a 00 3c 	rlwinm  r10,r10,0,0,30                         
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
ffc0bf78:	7d 46 52 14 	add     r10,r6,r10                             
  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;                 
ffc0bf7c:	81 4a 00 04 	lwz     r10,4(r10)                             
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
ffc0bf80:	71 47 00 01 	andi.   r7,r10,1                               
ffc0bf84:	40 82 00 90 	bne-    ffc0c014 <_Heap_Walk+0x6a0>            <== NEVER TAKEN
ffc0bf88:	7f e8 fb 78 	mr      r8,r31                                 
ffc0bf8c:	7c c3 33 78 	mr      r3,r6                                  
ffc0bf90:	48 00 00 54 	b       ffc0bfe4 <_Heap_Walk+0x670>            
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    prev_block = free_block;                                          
    free_block = free_block->next;                                    
ffc0bf94:	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 ) {                            
ffc0bf98:	7f 9f 30 00 	cmpw    cr7,r31,r6                             
  const Heap_Control *heap,                                           
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block >= (uintptr_t) heap->first_block           
    && (uintptr_t) block <= (uintptr_t) heap->last_block;             
ffc0bf9c:	7f 06 48 40 	cmplw   cr6,r6,r9                              
ffc0bfa0:	7c 86 28 40 	cmplw   cr1,r6,r5                              
ffc0bfa4:	41 be fc c0 	beq-    cr7,ffc0bc64 <_Heap_Walk+0x2f0>        
ffc0bfa8:	41 b8 fc 98 	blt-    cr6,ffc0bc40 <_Heap_Walk+0x2cc>        
                                                                      
RTEMS_INLINE_ROUTINE uintptr_t _Heap_Alloc_area_of_block(             
  const Heap_Block *block                                             
)                                                                     
{                                                                     
  return (uintptr_t) block + HEAP_BLOCK_HEADER_SIZE;                  
ffc0bfac:	39 46 00 08 	addi    r10,r6,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;             
ffc0bfb0:	41 a5 fc 90 	bgt-    cr1,ffc0bc40 <_Heap_Walk+0x2cc>        <== NEVER TAKEN
RTEMS_INLINE_ROUTINE bool _Heap_Is_aligned(                           
  uintptr_t value,                                                    
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return (value % alignment) == 0;                                    
ffc0bfb4:	7c ea 23 96 	divwu   r7,r10,r4                              
ffc0bfb8:	7c e7 21 d6 	mullw   r7,r7,r4                               
ffc0bfbc:	7c 68 1b 78 	mr      r8,r3                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
ffc0bfc0:	7f 8a 38 00 	cmpw    cr7,r10,r7                             
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
ffc0bfc4:	7c c3 33 78 	mr      r3,r6                                  
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if (                                                              
ffc0bfc8:	40 9e 00 70 	bne-    cr7,ffc0c038 <_Heap_Walk+0x6c4>        
    - 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;                
ffc0bfcc:	81 46 00 04 	lwz     r10,4(r6)                              
ffc0bfd0:	55 4a 00 3c 	rlwinm  r10,r10,0,0,30                         
                                                                      
    block = next_block;                                               
  } while ( block != first_block );                                   
                                                                      
  return true;                                                        
}                                                                     
ffc0bfd4:	7d 46 52 14 	add     r10,r6,r10                             
  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;                 
ffc0bfd8:	81 4a 00 04 	lwz     r10,4(r10)                             
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
ffc0bfdc:	71 47 00 01 	andi.   r7,r10,1                               
ffc0bfe0:	40 82 00 34 	bne-    ffc0c014 <_Heap_Walk+0x6a0>            
      );                                                              
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( free_block->prev != prev_block ) {                           
ffc0bfe4:	80 e6 00 0c 	lwz     r7,12(r6)                              
ffc0bfe8:	7f 87 40 00 	cmpw    cr7,r7,r8                              
ffc0bfec:	41 9e ff a8 	beq+    cr7,ffc0bf94 <_Heap_Walk+0x620>        
      (*printer)(                                                     
ffc0bff0:	3c a0 ff c2 	lis     r5,-62                                 
ffc0bff4:	7f 29 03 a6 	mtctr   r25                                    
ffc0bff8:	7f 03 c3 78 	mr      r3,r24                                 
ffc0bffc:	38 80 00 01 	li      r4,1                                   
ffc0c000:	38 a5 aa b4 	addi    r5,r5,-21836                           
ffc0c004:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0c008:	4e 80 04 21 	bctrl                                          
        "block 0x%08x: next block 0x%08x is not a successor\n",       
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
ffc0c00c:	38 60 00 00 	li      r3,0                                   
ffc0c010:	4b ff f9 f4 	b       ffc0ba04 <_Heap_Walk+0x90>             
                                                                      
      return false;                                                   
    }                                                                 
                                                                      
    if ( _Heap_Is_used( free_block ) ) {                              
      (*printer)(                                                     
ffc0c014:	3c a0 ff c2 	lis     r5,-62                                 
ffc0c018:	7f 29 03 a6 	mtctr   r25                                    
ffc0c01c:	7f 03 c3 78 	mr      r3,r24                                 
ffc0c020:	38 80 00 01 	li      r4,1                                   
ffc0c024:	38 a5 aa 98 	addi    r5,r5,-21864                           
ffc0c028:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0c02c:	4e 80 04 21 	bctrl                                          
        "block 0x%08x: next block 0x%08x is not a successor\n",       
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
ffc0c030:	38 60 00 00 	li      r3,0                                   
ffc0c034:	4b ff f9 d0 	b       ffc0ba04 <_Heap_Walk+0x90>             
    }                                                                 
                                                                      
    if (                                                              
      !_Heap_Is_aligned( _Heap_Alloc_area_of_block( free_block ), page_size )
    ) {                                                               
      (*printer)(                                                     
ffc0c038:	3c a0 ff c2 	lis     r5,-62                                 
ffc0c03c:	7f 29 03 a6 	mtctr   r25                                    
ffc0c040:	7f 03 c3 78 	mr      r3,r24                                 
ffc0c044:	38 80 00 01 	li      r4,1                                   
ffc0c048:	38 a5 aa 68 	addi    r5,r5,-21912                           
ffc0c04c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0c050:	4e 80 04 21 	bctrl                                          
        "block 0x%08x: next block 0x%08x is not a successor\n",       
        block,                                                        
        next_block                                                    
      );                                                              
                                                                      
      return false;                                                   
ffc0c054:	38 60 00 00 	li      r3,0                                   
ffc0c058:	4b ff f9 ac 	b       ffc0ba04 <_Heap_Walk+0x90>             
                                                                      

ffc0b874 <_Heap_Walk_print>: /* Do nothing */ } static void _Heap_Walk_print( int source, bool error, const char *fmt, ... ) {
ffc0b874:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc0b878:	7c 08 02 a6 	mflr    r0                                     
ffc0b87c:	7c 6b 1b 78 	mr      r11,r3                                 
ffc0b880:	90 01 00 7c 	stw     r0,124(r1)                             
ffc0b884:	93 e1 00 74 	stw     r31,116(r1)                            
ffc0b888:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc0b88c:	90 e1 00 20 	stw     r7,32(r1)                              
ffc0b890:	91 01 00 24 	stw     r8,36(r1)                              
ffc0b894:	91 21 00 28 	stw     r9,40(r1)                              
ffc0b898:	91 41 00 2c 	stw     r10,44(r1)                             
ffc0b89c:	40 86 00 24 	bne-    cr1,ffc0b8c0 <_Heap_Walk_print+0x4c>   <== ALWAYS TAKEN
ffc0b8a0:	d8 21 00 30 	stfd    f1,48(r1)                              <== NOT EXECUTED
ffc0b8a4:	d8 41 00 38 	stfd    f2,56(r1)                              <== NOT EXECUTED
ffc0b8a8:	d8 61 00 40 	stfd    f3,64(r1)                              <== NOT EXECUTED
ffc0b8ac:	d8 81 00 48 	stfd    f4,72(r1)                              <== NOT EXECUTED
ffc0b8b0:	d8 a1 00 50 	stfd    f5,80(r1)                              <== NOT EXECUTED
ffc0b8b4:	d8 c1 00 58 	stfd    f6,88(r1)                              <== NOT EXECUTED
ffc0b8b8:	d8 e1 00 60 	stfd    f7,96(r1)                              <== NOT EXECUTED
ffc0b8bc:	d9 01 00 68 	stfd    f8,104(r1)                             <== NOT EXECUTED
  va_list ap;                                                         
                                                                      
  if ( error ) {                                                      
ffc0b8c0:	2f 84 00 00 	cmpwi   cr7,r4,0                               
{                                                                     
  /* Do nothing */                                                    
}                                                                     
                                                                      
static void _Heap_Walk_print( int source, bool error, const char *fmt, ... )
{                                                                     
ffc0b8c4:	7c bf 2b 78 	mr      r31,r5                                 
  va_list ap;                                                         
                                                                      
  if ( error ) {                                                      
ffc0b8c8:	40 9e 00 58 	bne-    cr7,ffc0b920 <_Heap_Walk_print+0xac>   
    printk( "FAIL[%d]: ", source );                                   
  } else {                                                            
    printk( "PASS[%d]: ", source );                                   
ffc0b8cc:	3c 60 ff c2 	lis     r3,-62                                 
ffc0b8d0:	7d 64 5b 78 	mr      r4,r11                                 
ffc0b8d4:	38 63 a8 6c 	addi    r3,r3,-22420                           
ffc0b8d8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0b8dc:	4b ff a5 95 	bl      ffc05e70 <printk>                      
  }                                                                   
                                                                      
  va_start( ap, fmt );                                                
ffc0b8e0:	39 20 00 03 	li      r9,3                                   
ffc0b8e4:	99 21 00 08 	stb     r9,8(r1)                               
ffc0b8e8:	39 20 00 00 	li      r9,0                                   
  vprintk( fmt, ap );                                                 
ffc0b8ec:	7f e3 fb 78 	mr      r3,r31                                 
    printk( "FAIL[%d]: ", source );                                   
  } else {                                                            
    printk( "PASS[%d]: ", source );                                   
  }                                                                   
                                                                      
  va_start( ap, fmt );                                                
ffc0b8f0:	99 21 00 09 	stb     r9,9(r1)                               
ffc0b8f4:	39 21 00 80 	addi    r9,r1,128                              
  vprintk( fmt, ap );                                                 
ffc0b8f8:	38 81 00 08 	addi    r4,r1,8                                
    printk( "FAIL[%d]: ", source );                                   
  } else {                                                            
    printk( "PASS[%d]: ", source );                                   
  }                                                                   
                                                                      
  va_start( ap, fmt );                                                
ffc0b8fc:	91 21 00 0c 	stw     r9,12(r1)                              
ffc0b900:	39 21 00 10 	addi    r9,r1,16                               
ffc0b904:	91 21 00 10 	stw     r9,16(r1)                              
  vprintk( fmt, ap );                                                 
ffc0b908:	4b ff d6 91 	bl      ffc08f98 <vprintk>                     
  va_end( ap );                                                       
}                                                                     
ffc0b90c:	80 01 00 7c 	lwz     r0,124(r1)                             
ffc0b910:	83 e1 00 74 	lwz     r31,116(r1)                            
ffc0b914:	7c 08 03 a6 	mtlr    r0                                     
ffc0b918:	38 21 00 78 	addi    r1,r1,120                              
ffc0b91c:	4e 80 00 20 	blr                                            
static void _Heap_Walk_print( int source, bool error, const char *fmt, ... )
{                                                                     
  va_list ap;                                                         
                                                                      
  if ( error ) {                                                      
    printk( "FAIL[%d]: ", source );                                   
ffc0b920:	3c 60 ff c2 	lis     r3,-62                                 
ffc0b924:	7d 64 5b 78 	mr      r4,r11                                 
ffc0b928:	38 63 a8 60 	addi    r3,r3,-22432                           
ffc0b92c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0b930:	4b ff a5 41 	bl      ffc05e70 <printk>                      
  } else {                                                            
    printk( "PASS[%d]: ", source );                                   
  }                                                                   
                                                                      
  va_start( ap, fmt );                                                
ffc0b934:	39 20 00 03 	li      r9,3                                   
ffc0b938:	99 21 00 08 	stb     r9,8(r1)                               
ffc0b93c:	39 20 00 00 	li      r9,0                                   
  vprintk( fmt, ap );                                                 
ffc0b940:	7f e3 fb 78 	mr      r3,r31                                 
    printk( "FAIL[%d]: ", source );                                   
  } else {                                                            
    printk( "PASS[%d]: ", source );                                   
  }                                                                   
                                                                      
  va_start( ap, fmt );                                                
ffc0b944:	99 21 00 09 	stb     r9,9(r1)                               
ffc0b948:	39 21 00 80 	addi    r9,r1,128                              
  vprintk( fmt, ap );                                                 
ffc0b94c:	38 81 00 08 	addi    r4,r1,8                                
    printk( "FAIL[%d]: ", source );                                   
  } else {                                                            
    printk( "PASS[%d]: ", source );                                   
  }                                                                   
                                                                      
  va_start( ap, fmt );                                                
ffc0b950:	91 21 00 0c 	stw     r9,12(r1)                              
ffc0b954:	39 21 00 10 	addi    r9,r1,16                               
ffc0b958:	91 21 00 10 	stw     r9,16(r1)                              
  vprintk( fmt, ap );                                                 
ffc0b95c:	4b ff d6 3d 	bl      ffc08f98 <vprintk>                     
  va_end( ap );                                                       
}                                                                     
ffc0b960:	80 01 00 7c 	lwz     r0,124(r1)                             
ffc0b964:	83 e1 00 74 	lwz     r31,116(r1)                            
ffc0b968:	7c 08 03 a6 	mtlr    r0                                     
ffc0b96c:	38 21 00 78 	addi    r1,r1,120                              
ffc0b970:	4e 80 00 20 	blr                                            
                                                                      

ffc0a4cc <_IO_Initialize_all_drivers>: void _IO_Initialize_all_drivers( void ) {
ffc0a4cc:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0a4d0:	7c 08 02 a6 	mflr    r0                                     
ffc0a4d4:	93 c1 00 08 	stw     r30,8(r1)                              
   rtems_device_major_number major;                                   
                                                                      
   for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )         
ffc0a4d8:	3f c0 00 00 	lis     r30,0                                  
ffc0a4dc:	81 3e 28 a4 	lwz     r9,10404(r30)                          
  for ( index = 0 ; index < drivers_in_table ; index++ )              
    _IO_Driver_address_table[index] = driver_table[index];            
}                                                                     
                                                                      
void _IO_Initialize_all_drivers( void )                               
{                                                                     
ffc0a4e0:	90 01 00 14 	stw     r0,20(r1)                              
   rtems_device_major_number major;                                   
                                                                      
   for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )         
ffc0a4e4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
  for ( index = 0 ; index < drivers_in_table ; index++ )              
    _IO_Driver_address_table[index] = driver_table[index];            
}                                                                     
                                                                      
void _IO_Initialize_all_drivers( void )                               
{                                                                     
ffc0a4e8:	93 e1 00 0c 	stw     r31,12(r1)                             
   rtems_device_major_number major;                                   
                                                                      
   for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )         
ffc0a4ec:	41 9e 00 2c 	beq-    cr7,ffc0a518 <_IO_Initialize_all_drivers+0x4c><== NEVER TAKEN
ffc0a4f0:	3b e0 00 00 	li      r31,0                                  
ffc0a4f4:	3b de 28 a4 	addi    r30,r30,10404                          
     (void) rtems_io_initialize( major, 0, NULL );                    
ffc0a4f8:	7f e3 fb 78 	mr      r3,r31                                 
ffc0a4fc:	38 80 00 00 	li      r4,0                                   
ffc0a500:	38 a0 00 00 	li      r5,0                                   
ffc0a504:	48 00 60 ad 	bl      ffc105b0 <rtems_io_initialize>         
                                                                      
void _IO_Initialize_all_drivers( void )                               
{                                                                     
   rtems_device_major_number major;                                   
                                                                      
   for ( major=0 ; major < _IO_Number_of_drivers ; major ++ )         
ffc0a508:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc0a50c:	3b ff 00 01 	addi    r31,r31,1                              
ffc0a510:	7f 89 f8 40 	cmplw   cr7,r9,r31                             
ffc0a514:	41 9d ff e4 	bgt+    cr7,ffc0a4f8 <_IO_Initialize_all_drivers+0x2c>
     (void) rtems_io_initialize( major, 0, NULL );                    
}                                                                     
ffc0a518:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0a51c:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0a520:	7c 08 03 a6 	mtlr    r0                                     
ffc0a524:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0a528:	38 21 00 10 	addi    r1,r1,16                               
ffc0a52c:	4e 80 00 20 	blr                                            
                                                                      

ffc0a3b8 <_IO_Manager_initialization>: #include <rtems/score/wkspace.h> #include <string.h> void _IO_Manager_initialization(void) {
ffc0a3b8:	94 21 ff e0 	stwu    r1,-32(r1)                             
  uint32_t                    index;                                  
  rtems_driver_address_table *driver_table;                           
  uint32_t                    drivers_in_table;                       
  uint32_t                    number_of_drivers;                      
                                                                      
  driver_table      = rtems_configuration_get_device_driver_table();  
ffc0a3bc:	3d 20 ff c2 	lis     r9,-62                                 
ffc0a3c0:	39 29 ea f8 	addi    r9,r9,-5384                            
#include <rtems/score/wkspace.h>                                      
                                                                      
#include <string.h>                                                   
                                                                      
void _IO_Manager_initialization(void)                                 
{                                                                     
ffc0a3c4:	7c 08 02 a6 	mflr    r0                                     
ffc0a3c8:	93 a1 00 14 	stw     r29,20(r1)                             
ffc0a3cc:	93 c1 00 18 	stw     r30,24(r1)                             
  uint32_t                    drivers_in_table;                       
  uint32_t                    number_of_drivers;                      
                                                                      
  driver_table      = rtems_configuration_get_device_driver_table();  
  drivers_in_table  = rtems_configuration_get_number_of_device_drivers();
  number_of_drivers = rtems_configuration_get_maximum_drivers();      
ffc0a3d0:	83 a9 00 34 	lwz     r29,52(r9)                             
  rtems_driver_address_table *driver_table;                           
  uint32_t                    drivers_in_table;                       
  uint32_t                    number_of_drivers;                      
                                                                      
  driver_table      = rtems_configuration_get_device_driver_table();  
  drivers_in_table  = rtems_configuration_get_number_of_device_drivers();
ffc0a3d4:	83 c9 00 38 	lwz     r30,56(r9)                             
#include <rtems/score/wkspace.h>                                      
                                                                      
#include <string.h>                                                   
                                                                      
void _IO_Manager_initialization(void)                                 
{                                                                     
ffc0a3d8:	93 e1 00 1c 	stw     r31,28(r1)                             
                                                                      
  /*                                                                  
   *  If the user claims there are less drivers than are actually in  
   *  the table, then let's just go with the table's count.           
   */                                                                 
  if ( number_of_drivers <= drivers_in_table )                        
ffc0a3dc:	7f 9e e8 40 	cmplw   cr7,r30,r29                            
#include <rtems/score/wkspace.h>                                      
                                                                      
#include <string.h>                                                   
                                                                      
void _IO_Manager_initialization(void)                                 
{                                                                     
ffc0a3e0:	90 01 00 24 	stw     r0,36(r1)                              
ffc0a3e4:	93 61 00 0c 	stw     r27,12(r1)                             
ffc0a3e8:	93 81 00 10 	stw     r28,16(r1)                             
  uint32_t                    index;                                  
  rtems_driver_address_table *driver_table;                           
  uint32_t                    drivers_in_table;                       
  uint32_t                    number_of_drivers;                      
                                                                      
  driver_table      = rtems_configuration_get_device_driver_table();  
ffc0a3ec:	83 e9 00 3c 	lwz     r31,60(r9)                             
                                                                      
  /*                                                                  
   *  If the user claims there are less drivers than are actually in  
   *  the table, then let's just go with the table's count.           
   */                                                                 
  if ( number_of_drivers <= drivers_in_table )                        
ffc0a3f0:	40 9c 00 a8 	bge-    cr7,ffc0a498 <_IO_Manager_initialization+0xe0>
   *  have to allocate a new driver table and copy theirs to it.      
   */                                                                 
                                                                      
  _IO_Driver_address_table = (rtems_driver_address_table *)           
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
ffc0a3f4:	1f 7d 00 18 	mulli   r27,r29,24                             
   *  The application requested extra slots in the driver table, so we
   *  have to allocate a new driver table and copy theirs to it.      
   */                                                                 
                                                                      
  _IO_Driver_address_table = (rtems_driver_address_table *)           
      _Workspace_Allocate_or_fatal_error(                             
ffc0a3f8:	7f 63 db 78 	mr      r3,r27                                 
ffc0a3fc:	48 00 3b 99 	bl      ffc0df94 <_Workspace_Allocate_or_fatal_error>
  /*                                                                  
   *  The application requested extra slots in the driver table, so we
   *  have to allocate a new driver table and copy theirs to it.      
   */                                                                 
                                                                      
  _IO_Driver_address_table = (rtems_driver_address_table *)           
ffc0a400:	3f 80 00 00 	lis     r28,0                                  
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
ffc0a404:	3d 20 00 00 	lis     r9,0                                   
  /*                                                                  
   *  The application requested extra slots in the driver table, so we
   *  have to allocate a new driver table and copy theirs to it.      
   */                                                                 
                                                                      
  _IO_Driver_address_table = (rtems_driver_address_table *)           
ffc0a408:	90 7c 28 a8 	stw     r3,10408(r28)                          
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
                                                                      
  memset(                                                             
ffc0a40c:	38 80 00 00 	li      r4,0                                   
ffc0a410:	7f 65 db 78 	mr      r5,r27                                 
                                                                      
  _IO_Driver_address_table = (rtems_driver_address_table *)           
      _Workspace_Allocate_or_fatal_error(                             
        sizeof( rtems_driver_address_table ) * ( number_of_drivers )  
      );                                                              
  _IO_Number_of_drivers = number_of_drivers;                          
ffc0a414:	93 a9 28 a4 	stw     r29,10404(r9)                          
                                                                      
  memset(                                                             
ffc0a418:	48 00 9a 59 	bl      ffc13e70 <memset>                      
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
ffc0a41c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0a420:	41 9e 00 54 	beq-    cr7,ffc0a474 <_IO_Manager_initialization+0xbc><== NEVER TAKEN
ffc0a424:	80 fc 28 a8 	lwz     r7,10408(r28)                          
#include <rtems/score/thread.h>                                       
#include <rtems/score/wkspace.h>                                      
                                                                      
#include <string.h>                                                   
                                                                      
void _IO_Manager_initialization(void)                                 
ffc0a428:	1d 7e 00 18 	mulli   r11,r30,24                             
ffc0a42c:	39 00 00 00 	li      r8,0                                   
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
    _IO_Driver_address_table[index] = driver_table[index];            
ffc0a430:	7f e9 fb 78 	mr      r9,r31                                 
ffc0a434:	7c 69 40 6e 	lwzux   r3,r9,r8                               
ffc0a438:	7d 47 42 14 	add     r10,r7,r8                              
ffc0a43c:	80 c9 00 0c 	lwz     r6,12(r9)                              
ffc0a440:	80 89 00 04 	lwz     r4,4(r9)                               
ffc0a444:	80 a9 00 08 	lwz     r5,8(r9)                               
ffc0a448:	7c 67 41 2e 	stwx    r3,r7,r8                               
ffc0a44c:	39 08 00 18 	addi    r8,r8,24                               
  memset(                                                             
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
ffc0a450:	7f 88 58 00 	cmpw    cr7,r8,r11                             
    _IO_Driver_address_table[index] = driver_table[index];            
ffc0a454:	90 8a 00 04 	stw     r4,4(r10)                              
ffc0a458:	90 aa 00 08 	stw     r5,8(r10)                              
ffc0a45c:	90 ca 00 0c 	stw     r6,12(r10)                             
ffc0a460:	80 c9 00 10 	lwz     r6,16(r9)                              
ffc0a464:	81 29 00 14 	lwz     r9,20(r9)                              
ffc0a468:	90 ca 00 10 	stw     r6,16(r10)                             
ffc0a46c:	91 2a 00 14 	stw     r9,20(r10)                             
  memset(                                                             
    _IO_Driver_address_table, 0,                                      
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
ffc0a470:	40 9e ff c0 	bne+    cr7,ffc0a430 <_IO_Manager_initialization+0x78>
    _IO_Driver_address_table[index] = driver_table[index];            
}                                                                     
ffc0a474:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0a478:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0a47c:	7c 08 03 a6 	mtlr    r0                                     
ffc0a480:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0a484:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0a488:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0a48c:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0a490:	38 21 00 20 	addi    r1,r1,32                               
ffc0a494:	4e 80 00 20 	blr                                            
ffc0a498:	80 01 00 24 	lwz     r0,36(r1)                              
   *  If the maximum number of driver is the same as the number in the
   *  table, then we do not have to copy the driver table.  They can't
   *  register any dynamically.                                       
   */                                                                 
  if ( number_of_drivers == drivers_in_table ) {                      
    _IO_Driver_address_table = driver_table;                          
ffc0a49c:	3d 20 00 00 	lis     r9,0                                   
ffc0a4a0:	93 e9 28 a8 	stw     r31,10408(r9)                          
    _IO_Number_of_drivers = number_of_drivers;                        
ffc0a4a4:	3d 20 00 00 	lis     r9,0                                   
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
    _IO_Driver_address_table[index] = driver_table[index];            
}                                                                     
ffc0a4a8:	7c 08 03 a6 	mtlr    r0                                     
ffc0a4ac:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0a4b0:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0a4b4:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0a4b8:	83 e1 00 1c 	lwz     r31,28(r1)                             
   *  table, then we do not have to copy the driver table.  They can't
   *  register any dynamically.                                       
   */                                                                 
  if ( number_of_drivers == drivers_in_table ) {                      
    _IO_Driver_address_table = driver_table;                          
    _IO_Number_of_drivers = number_of_drivers;                        
ffc0a4bc:	93 c9 28 a4 	stw     r30,10404(r9)                          
    sizeof( rtems_driver_address_table ) * ( number_of_drivers )      
  );                                                                  
                                                                      
  for ( index = 0 ; index < drivers_in_table ; index++ )              
    _IO_Driver_address_table[index] = driver_table[index];            
}                                                                     
ffc0a4c0:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0a4c4:	38 21 00 20 	addi    r1,r1,32                               
ffc0a4c8:	4e 80 00 20 	blr                                            
                                                                      

ffc0b370 <_Internal_error_Occurred>: void _Internal_error_Occurred( Internal_errors_Source the_source, bool is_internal, Internal_errors_t the_error ) {
ffc0b370:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0b374:	7c 08 02 a6 	mflr    r0                                     
ffc0b378:	93 e1 00 24 	stw     r31,36(r1)                             
ffc0b37c:	7c 9f 23 78 	mr      r31,r4                                 
  Internal_errors_t      error                                        
)                                                                     
{                                                                     
  User_extensions_Fatal_context ctx = { source, is_internal, error }; 
                                                                      
  _User_extensions_Iterate( &ctx, _User_extensions_Fatal_visitor );   
ffc0b380:	3c 80 ff c1 	lis     r4,-63                                 
ffc0b384:	93 c1 00 20 	stw     r30,32(r1)                             
ffc0b388:	38 84 d8 e8 	addi    r4,r4,-10008                           
ffc0b38c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0b390:	38 61 00 08 	addi    r3,r1,8                                
ffc0b394:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc0b398:	7c bd 2b 78 	mr      r29,r5                                 
ffc0b39c:	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 }; 
ffc0b3a0:	93 c1 00 08 	stw     r30,8(r1)                              
ffc0b3a4:	9b e1 00 0c 	stb     r31,12(r1)                             
ffc0b3a8:	90 a1 00 10 	stw     r5,16(r1)                              
                                                                      
  _User_extensions_Iterate( &ctx, _User_extensions_Fatal_visitor );   
ffc0b3ac:	48 00 25 61 	bl      ffc0d90c <_User_extensions_Iterate>    
  _User_extensions_Fatal( the_source, is_internal, the_error );       
                                                                      
  _Internal_errors_What_happened.the_source  = the_source;            
ffc0b3b0:	3d 40 00 00 	lis     r10,0                                  
ffc0b3b4:	39 2a 31 78 	addi    r9,r10,12664                           
ffc0b3b8:	93 ca 31 78 	stw     r30,12664(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 );                                       
ffc0b3bc:	7f a3 eb 78 	mr      r3,r29                                 
)                                                                     
{                                                                     
  _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;           
ffc0b3c0:	9b e9 00 04 	stb     r31,4(r9)                              
                                                                      
RTEMS_INLINE_ROUTINE void _System_state_Set (                         
  System_state_Codes state                                            
)                                                                     
{                                                                     
  _System_state_Current = state;                                      
ffc0b3c4:	39 40 00 05 	li      r10,5                                  
  _Internal_errors_What_happened.the_error   = the_error;             
ffc0b3c8:	93 a9 00 08 	stw     r29,8(r9)                              
ffc0b3cc:	3d 20 00 00 	lis     r9,0                                   
ffc0b3d0:	91 49 28 90 	stw     r10,10384(r9)                          
                                                                      
  _System_state_Set( SYSTEM_STATE_FAILED );                           
                                                                      
  _CPU_Fatal_halt( the_error );                                       
ffc0b3d4:	4b ff 88 35 	bl      ffc03c08 <_BSP_Fatal_error>            
ffc0b3d8:	48 00 00 00 	b       ffc0b3d8 <_Internal_error_Occurred+0x68><== NOT EXECUTED
                                                                      

ffc0b3f0 <_Objects_Allocate>: #endif Objects_Control *_Objects_Allocate( Objects_Information *information ) {
ffc0b3f0:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0b3f4:	7c 08 02 a6 	mflr    r0                                     
ffc0b3f8:	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 )                                       
ffc0b3fc:	81 23 00 18 	lwz     r9,24(r3)                              
#endif                                                                
                                                                      
Objects_Control *_Objects_Allocate(                                   
  Objects_Information *information                                    
)                                                                     
{                                                                     
ffc0b400:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0b404:	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 )                                       
ffc0b408:	2f 89 00 00 	cmpwi   cr7,r9,0                               
#endif                                                                
                                                                      
Objects_Control *_Objects_Allocate(                                   
  Objects_Information *information                                    
)                                                                     
{                                                                     
ffc0b40c:	93 c1 00 08 	stw     r30,8(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 )                                       
ffc0b410:	41 9e 00 88 	beq-    cr7,ffc0b498 <_Objects_Allocate+0xa8>  <== NEVER TAKEN
                                                                      
  /*                                                                  
   *  OK.  The manager should be initialized and configured to have objects.
   *  With any luck, it is safe to attempt to allocate an object.     
   */                                                                 
  the_object = (Objects_Control *) _Chain_Get( &information->Inactive );
ffc0b414:	3b c3 00 20 	addi    r30,r3,32                              
ffc0b418:	7f c3 f3 78 	mr      r3,r30                                 
ffc0b41c:	4b ff f3 e1 	bl      ffc0a7fc <_Chain_Get>                  
                                                                      
  if ( information->auto_extend ) {                                   
ffc0b420:	89 3f 00 12 	lbz     r9,18(r31)                             
ffc0b424:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b428:	41 9e 00 40 	beq-    cr7,ffc0b468 <_Objects_Allocate+0x78>  
    /*                                                                
     *  If the list is empty then we are out of objects and need to   
     *  extend information base.                                      
     */                                                               
                                                                      
    if ( !the_object ) {                                              
ffc0b42c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0b430:	41 9e 00 50 	beq-    cr7,ffc0b480 <_Objects_Allocate+0x90>  
    }                                                                 
                                                                      
    if ( the_object ) {                                               
      uint32_t   block;                                               
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
ffc0b434:	a1 03 00 0a 	lhz     r8,10(r3)                              
ffc0b438:	a1 3f 00 0a 	lhz     r9,10(r31)                             
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
ffc0b43c:	a1 5f 00 14 	lhz     r10,20(r31)                            
    }                                                                 
                                                                      
    if ( the_object ) {                                               
      uint32_t   block;                                               
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
ffc0b440:	7d 29 40 50 	subf    r9,r9,r8                               
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
                                                                      
      information->inactive_per_block[ block ]--;                     
      information->inactive--;                                        
ffc0b444:	a0 ff 00 2c 	lhz     r7,44(r31)                             
    if ( the_object ) {                                               
      uint32_t   block;                                               
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
ffc0b448:	7d 29 53 96 	divwu   r9,r9,r10                              
                                                                      
      information->inactive_per_block[ block ]--;                     
ffc0b44c:	81 5f 00 30 	lwz     r10,48(r31)                            
ffc0b450:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc0b454:	7d 0a 48 2e 	lwzx    r8,r10,r9                              
      information->inactive--;                                        
ffc0b458:	38 e7 ff ff 	addi    r7,r7,-1                               
                                                                      
      block = (uint32_t) _Objects_Get_index( the_object->id ) -       
              _Objects_Get_index( information->minimum_id );          
      block /= information->allocation_size;                          
                                                                      
      information->inactive_per_block[ block ]--;                     
ffc0b45c:	39 08 ff ff 	addi    r8,r8,-1                               
ffc0b460:	7d 0a 49 2e 	stwx    r8,r10,r9                              
      information->inactive--;                                        
ffc0b464:	b0 ff 00 2c 	sth     r7,44(r31)                             
    );                                                                
  }                                                                   
#endif                                                                
                                                                      
  return the_object;                                                  
}                                                                     
ffc0b468:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0b46c:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0b470:	7c 08 03 a6 	mtlr    r0                                     
ffc0b474:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0b478:	38 21 00 10 	addi    r1,r1,16                               
ffc0b47c:	4e 80 00 20 	blr                                            
     *  If the list is empty then we are out of objects and need to   
     *  extend information base.                                      
     */                                                               
                                                                      
    if ( !the_object ) {                                              
      _Objects_Extend_information( information );                     
ffc0b480:	7f e3 fb 78 	mr      r3,r31                                 
ffc0b484:	48 00 00 49 	bl      ffc0b4cc <_Objects_Extend_information> 
      the_object =  (Objects_Control *) _Chain_Get( &information->Inactive );
ffc0b488:	7f c3 f3 78 	mr      r3,r30                                 
ffc0b48c:	4b ff f3 71 	bl      ffc0a7fc <_Chain_Get>                  
    }                                                                 
                                                                      
    if ( the_object ) {                                               
ffc0b490:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0b494:	40 a2 ff a0 	bne-    ffc0b434 <_Objects_Allocate+0x44>      
    );                                                                
  }                                                                   
#endif                                                                
                                                                      
  return the_object;                                                  
}                                                                     
ffc0b498:	80 01 00 14 	lwz     r0,20(r1)                              
   *  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 )                                       
    return NULL;                                                      
ffc0b49c:	38 60 00 00 	li      r3,0                                   
    );                                                                
  }                                                                   
#endif                                                                
                                                                      
  return the_object;                                                  
}                                                                     
ffc0b4a0:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0b4a4:	7c 08 03 a6 	mtlr    r0                                     
ffc0b4a8:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0b4ac:	38 21 00 10 	addi    r1,r1,16                               
ffc0b4b0:	4e 80 00 20 	blr                                            
                                                                      

ffc0b4cc <_Objects_Extend_information>: */ void _Objects_Extend_information( Objects_Information *information ) {
ffc0b4cc:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc0b4d0:	7c 08 02 a6 	mflr    r0                                     
ffc0b4d4:	90 01 00 44 	stw     r0,68(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 )                           
ffc0b4d8:	81 23 00 34 	lwz     r9,52(r3)                              
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
  Objects_Information *information                                    
)                                                                     
{                                                                     
ffc0b4dc:	93 41 00 28 	stw     r26,40(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 )                           
ffc0b4e0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
  Objects_Information *information                                    
)                                                                     
{                                                                     
ffc0b4e4:	93 61 00 2c 	stw     r27,44(r1)                             
ffc0b4e8:	93 e1 00 3c 	stw     r31,60(r1)                             
ffc0b4ec:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0b4f0:	92 c1 00 18 	stw     r22,24(r1)                             
ffc0b4f4:	92 e1 00 1c 	stw     r23,28(r1)                             
ffc0b4f8:	93 01 00 20 	stw     r24,32(r1)                             
ffc0b4fc:	93 21 00 24 	stw     r25,36(r1)                             
ffc0b500:	93 81 00 30 	stw     r28,48(r1)                             
ffc0b504:	93 a1 00 34 	stw     r29,52(r1)                             
ffc0b508:	93 c1 00 38 	stw     r30,56(r1)                             
  /*                                                                  
   *  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 );      
ffc0b50c:	a3 63 00 0a 	lhz     r27,10(r3)                             
ffc0b510:	a3 43 00 10 	lhz     r26,16(r3)                             
  index_base    = minimum_index;                                      
  block         = 0;                                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
ffc0b514:	41 9e 02 74 	beq-    cr7,ffc0b788 <_Objects_Extend_information+0x2bc>
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
ffc0b518:	a1 03 00 14 	lhz     r8,20(r3)                              
ffc0b51c:	7f 9a 43 96 	divwu   r28,r26,r8                             
                                                                      
    for ( ; block < block_count; block++ ) {                          
ffc0b520:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc0b524:	41 9e 02 bc 	beq-    cr7,ffc0b7e0 <_Objects_Extend_information+0x314><== NEVER TAKEN
      if ( information->object_blocks[ block ] == NULL ) {            
ffc0b528:	81 49 00 00 	lwz     r10,0(r9)                              
ffc0b52c:	7d 07 43 78 	mr      r7,r8                                  
  /*                                                                  
   *  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 );      
ffc0b530:	7f 7e db 78 	mr      r30,r27                                
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
      if ( information->object_blocks[ block ] == NULL ) {            
ffc0b534:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0b538:	41 9e 02 bc 	beq-    cr7,ffc0b7f4 <_Objects_Extend_information+0x328><== NEVER TAKEN
   *  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;                                                  
ffc0b53c:	3b a0 00 00 	li      r29,0                                  
ffc0b540:	7f 89 03 a6 	mtctr   r28                                    
ffc0b544:	48 00 00 10 	b       ffc0b554 <_Objects_Extend_information+0x88>
    block_count = 0;                                                  
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
      if ( information->object_blocks[ block ] == NULL ) {            
ffc0b548:	85 49 00 04 	lwzu    r10,4(r9)                              
ffc0b54c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0b550:	41 9e 02 0c 	beq-    cr7,ffc0b75c <_Objects_Extend_information+0x290>
        do_extend = false;                                            
        break;                                                        
      } else                                                          
        index_base += information->allocation_size;                   
ffc0b554:	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++ ) {                          
ffc0b558:	3b bd 00 01 	addi    r29,r29,1                              
ffc0b55c:	42 00 ff ec 	bdnz+   ffc0b548 <_Objects_Extend_information+0x7c>
                                                                      
  /*                                                                  
   *  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;                                               
ffc0b560:	3b 20 00 01 	li      r25,1                                  
      } else                                                          
        index_base += information->allocation_size;                   
    }                                                                 
  }                                                                   
                                                                      
  maximum = (uint32_t) information->maximum + information->allocation_size;
ffc0b564:	7f 5a 3a 14 	add     r26,r26,r7                             
  /*                                                                  
   *  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 ) {                           
ffc0b568:	2b 9a ff ff 	cmplwi  cr7,r26,65535                          
ffc0b56c:	41 9d 01 b8 	bgt-    cr7,ffc0b724 <_Objects_Extend_information+0x258>
  /*                                                                  
   * 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;      
  if ( information->auto_extend ) {                                   
ffc0b570:	89 3f 00 12 	lbz     r9,18(r31)                             
                                                                      
  /*                                                                  
   * 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;      
ffc0b574:	80 7f 00 18 	lwz     r3,24(r31)                             
  if ( information->auto_extend ) {                                   
ffc0b578:	2f 89 00 00 	cmpwi   cr7,r9,0                               
                                                                      
  /*                                                                  
   * 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;      
ffc0b57c:	7c 67 19 d6 	mullw   r3,r7,r3                               
  if ( information->auto_extend ) {                                   
ffc0b580:	41 9e 01 e4 	beq-    cr7,ffc0b764 <_Objects_Extend_information+0x298>
    new_object_block = _Workspace_Allocate( block_size );             
ffc0b584:	48 00 29 e9 	bl      ffc0df6c <_Workspace_Allocate>         
    if ( !new_object_block )                                          
ffc0b588:	7c 77 1b 79 	mr.     r23,r3                                 
ffc0b58c:	41 82 01 98 	beq-    ffc0b724 <_Objects_Extend_information+0x258>
  }                                                                   
                                                                      
  /*                                                                  
   *  Do we need to grow the tables?                                  
   */                                                                 
  if ( do_extend ) {                                                  
ffc0b590:	2f 99 00 00 	cmpwi   cr7,r25,0                              
ffc0b594:	41 9e 01 0c 	beq-    cr7,ffc0b6a0 <_Objects_Extend_information+0x1d4>
     *  Allocate the tables and break it up.                          
     */                                                               
    block_size = block_count *                                        
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
    if ( information->auto_extend ) {                                 
ffc0b598:	89 3f 00 12 	lbz     r9,18(r31)                             
     */                                                               
                                                                      
    /*                                                                
     *  Up the block count and maximum                                
     */                                                               
    block_count++;                                                    
ffc0b59c:	3a dc 00 01 	addi    r22,r28,1                              
                                                                      
    /*                                                                
     *  Allocate the tables and break it up.                          
     */                                                               
    block_size = block_count *                                        
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
ffc0b5a0:	1c 76 00 03 	mulli   r3,r22,3                               
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
    if ( information->auto_extend ) {                                 
ffc0b5a4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    /*                                                                
     *  Allocate the tables and break it up.                          
     */                                                               
    block_size = block_count *                                        
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
ffc0b5a8:	7c 7a 1a 14 	add     r3,r26,r3                              
                                                                      
    /*                                                                
     *  Allocate the tables and break it up.                          
     */                                                               
    block_size = block_count *                                        
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
ffc0b5ac:	7c 63 da 14 	add     r3,r3,r27                              
    block_count++;                                                    
                                                                      
    /*                                                                
     *  Allocate the tables and break it up.                          
     */                                                               
    block_size = block_count *                                        
ffc0b5b0:	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 ) {                                 
ffc0b5b4:	40 9e 01 bc 	bne-    cr7,ffc0b770 <_Objects_Extend_information+0x2a4>
      if ( !object_blocks ) {                                         
        _Workspace_Free( new_object_block );                          
        return;                                                       
      }                                                               
    } else {                                                          
      object_blocks = _Workspace_Allocate_or_fatal_error( block_size );
ffc0b5b8:	48 00 29 dd 	bl      ffc0df94 <_Workspace_Allocate_or_fatal_error>
ffc0b5bc:	7c 79 1b 78 	mr      r25,r3                                 
     *  Take the block count down. Saves all the (block_count - 1)    
     *  in the copies.                                                
     */                                                               
    block_count--;                                                    
                                                                      
    if ( information->maximum > minimum_index ) {                     
ffc0b5c0:	a1 3f 00 10 	lhz     r9,16(r31)                             
                                                                      
    /*                                                                
     *  Break the block into the various sections.                    
     */                                                               
    inactive_per_block = (uint32_t *) _Addresses_Add_offset(          
        object_blocks, block_count * sizeof(void*) );                 
ffc0b5c4:	56 d6 10 3a 	rlwinm  r22,r22,2,0,29                         
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (                    
  const void *base,                                                   
  uintptr_t   offset                                                  
)                                                                     
{                                                                     
  return (void *)((uintptr_t)base + offset);                          
ffc0b5c8:	7f 19 b2 14 	add     r24,r25,r22                            
     *  Take the block count down. Saves all the (block_count - 1)    
     *  in the copies.                                                
     */                                                               
    block_count--;                                                    
                                                                      
    if ( information->maximum > minimum_index ) {                     
ffc0b5cc:	7f 9b 48 40 	cmplw   cr7,r27,r9                             
ffc0b5d0:	7e d8 b2 14 	add     r22,r24,r22                            
ffc0b5d4:	41 9c 01 cc 	blt-    cr7,ffc0b7a0 <_Objects_Extend_information+0x2d4>
    } else {                                                          
                                                                      
      /*                                                              
       *  Deal with the special case of the 0 to minimum_index        
       */                                                             
      for ( index = 0; index < minimum_index; index++ ) {             
ffc0b5d8:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc0b5dc:	41 9e 00 28 	beq-    cr7,ffc0b604 <_Objects_Extend_information+0x138><== NEVER TAKEN
        local_table[ index ] = NULL;                                  
ffc0b5e0:	57 68 10 3a 	rlwinm  r8,r27,2,0,29                          
ffc0b5e4:	39 08 ff fc 	addi    r8,r8,-4                               
ffc0b5e8:	55 08 f0 be 	rlwinm  r8,r8,30,2,31                          
ffc0b5ec:	39 08 00 01 	addi    r8,r8,1                                
ffc0b5f0:	7d 09 03 a6 	mtctr   r8                                     
 *    information     - object information table                      
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
ffc0b5f4:	39 36 ff fc 	addi    r9,r22,-4                              
                                                                      
      /*                                                              
       *  Deal with the special case of the 0 to minimum_index        
       */                                                             
      for ( index = 0; index < minimum_index; index++ ) {             
        local_table[ index ] = NULL;                                  
ffc0b5f8:	39 40 00 00 	li      r10,0                                  
ffc0b5fc:	95 49 00 04 	stwu    r10,4(r9)                              
    } else {                                                          
                                                                      
      /*                                                              
       *  Deal with the special case of the 0 to minimum_index        
       */                                                             
      for ( index = 0; index < minimum_index; index++ ) {             
ffc0b600:	42 00 ff fc 	bdnz+   ffc0b5fc <_Objects_Extend_information+0x130>
ffc0b604:	57 9c 10 3a 	rlwinm  r28,r28,2,0,29                         
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
ffc0b608:	a1 5f 00 14 	lhz     r10,20(r31)                            
    }                                                                 
                                                                      
    /*                                                                
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
ffc0b60c:	39 20 00 00 	li      r9,0                                   
ffc0b610:	7d 39 e1 2e 	stwx    r9,r25,r28                             
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
ffc0b614:	7d 1e 52 14 	add     r8,r30,r10                             
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
ffc0b618:	7f 9e 40 40 	cmplw   cr7,r30,r8                             
                                                                      
    /*                                                                
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
ffc0b61c:	7d 38 e1 2e 	stwx    r9,r24,r28                             
                                                                      
    for ( index=index_base ;                                          
ffc0b620:	40 9c 00 34 	bge-    cr7,ffc0b654 <_Objects_Extend_information+0x188><== NEVER TAKEN
 *    information     - object information table                      
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
ffc0b624:	55 47 10 3a 	rlwinm  r7,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;                                    
ffc0b628:	38 e7 ff fc 	addi    r7,r7,-4                               
ffc0b62c:	54 e7 f0 be 	rlwinm  r7,r7,30,2,31                          
ffc0b630:	38 e7 00 01 	addi    r7,r7,1                                
ffc0b634:	7c e9 03 a6 	mtctr   r7                                     
 *    information     - object information table                      
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _Objects_Extend_information(                                     
ffc0b638:	57 c8 10 3a 	rlwinm  r8,r30,2,0,29                          
ffc0b63c:	7d 16 42 14 	add     r8,r22,r8                              
ffc0b640:	39 20 00 00 	li      r9,0                                   
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
          index < ( information->allocation_size + index_base );      
          index++ ) {                                                 
      local_table[ index ] = NULL;                                    
ffc0b644:	39 40 00 00 	li      r10,0                                  
ffc0b648:	7d 48 49 2e 	stwx    r10,r8,r9                              
ffc0b64c:	39 29 00 04 	addi    r9,r9,4                                
     *  Initialise the new entries in the table.                      
     */                                                               
    object_blocks[block_count] = NULL;                                
    inactive_per_block[block_count] = 0;                              
                                                                      
    for ( index=index_base ;                                          
ffc0b650:	42 00 ff f8 	bdnz+   ffc0b648 <_Objects_Extend_information+0x17c>
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0b654:	7d 40 00 a6 	mfmsr   r10                                    
ffc0b658:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0b65c:	7d 49 48 78 	andc    r9,r10,r9                              
ffc0b660:	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)   |    
ffc0b664:	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(                      
ffc0b668:	a1 1f 00 04 	lhz     r8,4(r31)                              
ffc0b66c:	55 29 c0 0e 	rlwinm  r9,r9,24,0,7                           
      local_table[ index ] = NULL;                                    
    }                                                                 
                                                                      
    _ISR_Disable( level );                                            
                                                                      
    old_tables = information->object_blocks;                          
ffc0b670:	80 7f 00 34 	lwz     r3,52(r31)                             
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
ffc0b674:	55 08 d8 08 	rlwinm  r8,r8,27,0,4                           
                                                                      
    information->object_blocks = object_blocks;                       
    information->inactive_per_block = inactive_per_block;             
ffc0b678:	93 1f 00 30 	stw     r24,48(r31)                            
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
ffc0b67c:	65 29 00 01 	oris    r9,r9,1                                
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
ffc0b680:	7d 29 43 78 	or      r9,r9,r8                               
                                                                      
    _ISR_Disable( level );                                            
                                                                      
    old_tables = information->object_blocks;                          
                                                                      
    information->object_blocks = object_blocks;                       
ffc0b684:	93 3f 00 34 	stw     r25,52(r31)                            
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
ffc0b688:	7d 29 d3 78 	or      r9,r9,r26                              
    information->inactive_per_block = inactive_per_block;             
    information->local_table = local_table;                           
ffc0b68c:	92 df 00 1c 	stw     r22,28(r31)                            
    information->maximum = (Objects_Maximum) maximum;                 
ffc0b690:	b3 5f 00 10 	sth     r26,16(r31)                            
    information->maximum_id = _Objects_Build_id(                      
ffc0b694:	91 3f 00 0c 	stw     r9,12(r31)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0b698:	7d 40 01 24 	mtmsr   r10                                    
        information->maximum                                          
      );                                                              
                                                                      
    _ISR_Enable( level );                                             
                                                                      
    _Workspace_Free( old_tables );                                    
ffc0b69c:	48 00 28 e9 	bl      ffc0df84 <_Workspace_Free>             
  }                                                                   
                                                                      
  /*                                                                  
   *  Assign the new object block to the object block table.          
   */                                                                 
  information->object_blocks[ block ] = new_object_block;             
ffc0b6a0:	81 3f 00 34 	lwz     r9,52(r31)                             
ffc0b6a4:	57 bd 10 3a 	rlwinm  r29,r29,2,0,29                         
                                                                      
  /*                                                                  
   *  Initialize objects .. add to a local chain first.               
   */                                                                 
  _Chain_Initialize(                                                  
ffc0b6a8:	a0 bf 00 14 	lhz     r5,20(r31)                             
ffc0b6ac:	38 61 00 08 	addi    r3,r1,8                                
  }                                                                   
                                                                      
  /*                                                                  
   *  Assign the new object block to the object block table.          
   */                                                                 
  information->object_blocks[ block ] = new_object_block;             
ffc0b6b0:	7e e9 e9 2e 	stwx    r23,r9,r29                             
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
ffc0b6b4:	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(                                                  
ffc0b6b8:	81 3f 00 34 	lwz     r9,52(r31)                             
ffc0b6bc:	80 df 00 18 	lwz     r6,24(r31)                             
ffc0b6c0:	7c 89 e8 2e 	lwzx    r4,r9,r29                              
ffc0b6c4:	4b ff f1 79 	bl      ffc0a83c <_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 ) {
ffc0b6c8:	48 00 00 2c 	b       ffc0b6f4 <_Objects_Extend_information+0x228>
ffc0b6cc:	81 5f 00 00 	lwz     r10,0(r31)                             
                                                                      
    the_object->id = _Objects_Build_id(                               
ffc0b6d0:	a1 1f 00 04 	lhz     r8,4(r31)                              
ffc0b6d4:	55 4a c0 0e 	rlwinm  r10,r10,24,0,7                         
ffc0b6d8:	65 4a 00 01 	oris    r10,r10,1                              
         (( (Objects_Id) the_class ) << OBJECTS_CLASS_START_BIT) |    
ffc0b6dc:	55 08 d8 08 	rlwinm  r8,r8,27,0,4                           
ffc0b6e0:	7d 4a 43 78 	or      r10,r10,r8                             
  uint32_t         the_class,                                         
  uint32_t         node,                                              
  uint32_t         index                                              
)                                                                     
{                                                                     
  return (( (Objects_Id) the_api )   << OBJECTS_API_START_BIT)   |    
ffc0b6e4:	7d 4a f3 78 	or      r10,r10,r30                            
ffc0b6e8:	91 49 00 08 	stw     r10,8(r9)                              
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
ffc0b6ec:	3b de 00 01 	addi    r30,r30,1                              
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
ffc0b6f0:	4b ff f0 dd 	bl      ffc0a7cc <_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 ) {
ffc0b6f4:	38 61 00 08 	addi    r3,r1,8                                
ffc0b6f8:	4b ff f1 05 	bl      ffc0a7fc <_Chain_Get>                  
ffc0b6fc:	7c 69 1b 79 	mr.     r9,r3                                  
        information->the_class,                                       
        _Objects_Local_node,                                          
        index                                                         
      );                                                              
                                                                      
    _Chain_Append( &information->Inactive, &the_object->Node );       
ffc0b700:	7f 83 e3 78 	mr      r3,r28                                 
ffc0b704:	7d 24 4b 78 	mr      r4,r9                                  
  /*                                                                  
   *  Move from the local chain, initialise, then append to the inactive chain
   */                                                                 
  index = index_base;                                                 
                                                                      
  while ((the_object = (Objects_Control *) _Chain_Get( &Inactive )) != NULL ) {
ffc0b708:	40 82 ff c4 	bne+    ffc0b6cc <_Objects_Extend_information+0x200>
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
  information->inactive =                                             
    (Objects_Maximum)(information->inactive + information->allocation_size);
ffc0b70c:	a1 1f 00 2c 	lhz     r8,44(r31)                             
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
ffc0b710:	a1 3f 00 14 	lhz     r9,20(r31)                             
ffc0b714:	81 5f 00 30 	lwz     r10,48(r31)                            
  information->inactive =                                             
    (Objects_Maximum)(information->inactive + information->allocation_size);
ffc0b718:	7d 09 42 14 	add     r8,r9,r8                               
    _Chain_Append( &information->Inactive, &the_object->Node );       
                                                                      
    index++;                                                          
  }                                                                   
                                                                      
  information->inactive_per_block[ block ] = information->allocation_size;
ffc0b71c:	7d 2a e9 2e 	stwx    r9,r10,r29                             
  information->inactive =                                             
ffc0b720:	b1 1f 00 2c 	sth     r8,44(r31)                             
    (Objects_Maximum)(information->inactive + information->allocation_size);
}                                                                     
ffc0b724:	80 01 00 44 	lwz     r0,68(r1)                              
ffc0b728:	82 c1 00 18 	lwz     r22,24(r1)                             
ffc0b72c:	7c 08 03 a6 	mtlr    r0                                     
ffc0b730:	82 e1 00 1c 	lwz     r23,28(r1)                             
ffc0b734:	83 01 00 20 	lwz     r24,32(r1)                             
ffc0b738:	83 21 00 24 	lwz     r25,36(r1)                             
ffc0b73c:	83 41 00 28 	lwz     r26,40(r1)                             
ffc0b740:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc0b744:	83 81 00 30 	lwz     r28,48(r1)                             
ffc0b748:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc0b74c:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc0b750:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc0b754:	38 21 00 40 	addi    r1,r1,64                               
ffc0b758:	4e 80 00 20 	blr                                            
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
      if ( information->object_blocks[ block ] == NULL ) {            
        do_extend = false;                                            
ffc0b75c:	3b 20 00 00 	li      r25,0                                  
ffc0b760:	4b ff fe 04 	b       ffc0b564 <_Objects_Extend_information+0x98>
  if ( information->auto_extend ) {                                   
    new_object_block = _Workspace_Allocate( block_size );             
    if ( !new_object_block )                                          
      return;                                                         
  } else {                                                            
    new_object_block = _Workspace_Allocate_or_fatal_error( block_size );
ffc0b764:	48 00 28 31 	bl      ffc0df94 <_Workspace_Allocate_or_fatal_error>
ffc0b768:	7c 77 1b 78 	mr      r23,r3                                 
ffc0b76c:	4b ff fe 24 	b       ffc0b590 <_Objects_Extend_information+0xc4>
     */                                                               
    block_size = block_count *                                        
           (sizeof(void *) + sizeof(uint32_t) + sizeof(Objects_Name *)) +
          ((maximum + minimum_index) * sizeof(Objects_Control *));    
    if ( information->auto_extend ) {                                 
      object_blocks = _Workspace_Allocate( block_size );              
ffc0b770:	48 00 27 fd 	bl      ffc0df6c <_Workspace_Allocate>         
      if ( !object_blocks ) {                                         
ffc0b774:	7c 79 1b 79 	mr.     r25,r3                                 
ffc0b778:	40 82 fe 48 	bne+    ffc0b5c0 <_Objects_Extend_information+0xf4>
        _Workspace_Free( new_object_block );                          
ffc0b77c:	7e e3 bb 78 	mr      r3,r23                                 
ffc0b780:	48 00 28 05 	bl      ffc0df84 <_Workspace_Free>             
ffc0b784:	4b ff ff a0 	b       ffc0b724 <_Objects_Extend_information+0x258>
ffc0b788:	a0 e3 00 14 	lhz     r7,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 );      
ffc0b78c:	7f 7e db 78 	mr      r30,r27                                
                                                                      
  /*                                                                  
   *  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;                                               
ffc0b790:	3b 20 00 01 	li      r25,1                                  
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
ffc0b794:	3b a0 00 00 	li      r29,0                                  
                                                                      
  /* if ( information->maximum < minimum_index ) */                   
  if ( information->object_blocks == NULL )                           
    block_count = 0;                                                  
ffc0b798:	3b 80 00 00 	li      r28,0                                  
ffc0b79c:	4b ff fd c8 	b       ffc0b564 <_Objects_Extend_information+0x98>
       *  separate parts as size of each block has changed.           
       */                                                             
                                                                      
      memcpy( object_blocks,                                          
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
ffc0b7a0:	57 9c 10 3a 	rlwinm  r28,r28,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,                                          
ffc0b7a4:	80 9f 00 34 	lwz     r4,52(r31)                             
ffc0b7a8:	7f 85 e3 78 	mr      r5,r28                                 
ffc0b7ac:	7f 23 cb 78 	mr      r3,r25                                 
ffc0b7b0:	48 00 85 cd 	bl      ffc13d7c <memcpy>                      
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
      memcpy( inactive_per_block,                                     
ffc0b7b4:	80 9f 00 30 	lwz     r4,48(r31)                             
ffc0b7b8:	7f 85 e3 78 	mr      r5,r28                                 
ffc0b7bc:	7f 03 c3 78 	mr      r3,r24                                 
ffc0b7c0:	48 00 85 bd 	bl      ffc13d7c <memcpy>                      
              information->inactive_per_block,                        
              block_count * sizeof(uint32_t) );                       
      memcpy( local_table,                                            
              information->local_table,                               
              (information->maximum + minimum_index) * sizeof(Objects_Control *) );
ffc0b7c4:	a0 bf 00 10 	lhz     r5,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,                                            
ffc0b7c8:	80 9f 00 1c 	lwz     r4,28(r31)                             
ffc0b7cc:	7e c3 b3 78 	mr      r3,r22                                 
              information->local_table,                               
              (information->maximum + minimum_index) * sizeof(Objects_Control *) );
ffc0b7d0:	7c a5 da 14 	add     r5,r5,r27                              
              information->object_blocks,                             
              block_count * sizeof(void*) );                          
      memcpy( inactive_per_block,                                     
              information->inactive_per_block,                        
              block_count * sizeof(uint32_t) );                       
      memcpy( local_table,                                            
ffc0b7d4:	54 a5 10 3a 	rlwinm  r5,r5,2,0,29                           
ffc0b7d8:	48 00 85 a5 	bl      ffc13d7c <memcpy>                      
ffc0b7dc:	4b ff fe 2c 	b       ffc0b608 <_Objects_Extend_information+0x13c>
ffc0b7e0:	7d 07 43 78 	mr      r7,r8                                  <== NOT EXECUTED
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
  minimum_index = _Objects_Get_index( information->minimum_id );      
ffc0b7e4:	7f 7e db 78 	mr      r30,r27                                <== NOT EXECUTED
                                                                      
  /*                                                                  
   *  Search for a free block of indexes. If we do NOT need to allocate or
   *  extend the block table, then we will change do_extend.          
   */                                                                 
  do_extend     = true;                                               
ffc0b7e8:	3b 20 00 01 	li      r25,1                                  <== NOT EXECUTED
  minimum_index = _Objects_Get_index( information->minimum_id );      
  index_base    = minimum_index;                                      
  block         = 0;                                                  
ffc0b7ec:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
ffc0b7f0:	4b ff fd 74 	b       ffc0b564 <_Objects_Extend_information+0x98><== NOT EXECUTED
  else {                                                              
    block_count = information->maximum / information->allocation_size;
                                                                      
    for ( ; block < block_count; block++ ) {                          
      if ( information->object_blocks[ block ] == NULL ) {            
        do_extend = false;                                            
ffc0b7f4:	3b 20 00 00 	li      r25,0                                  <== NOT EXECUTED
   *  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;                                                  
ffc0b7f8:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
ffc0b7fc:	4b ff fd 68 	b       ffc0b564 <_Objects_Extend_information+0x98><== NOT EXECUTED
                                                                      

ffc0b8cc <_Objects_Get_information>: Objects_Information *_Objects_Get_information( Objects_APIs the_api, uint16_t the_class ) {
ffc0b8cc:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0b8d0:	7c 08 02 a6 	mflr    r0                                     
ffc0b8d4:	93 e1 00 0c 	stw     r31,12(r1)                             
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
ffc0b8d8:	7c 9f 23 79 	mr.     r31,r4                                 
                                                                      
Objects_Information *_Objects_Get_information(                        
  Objects_APIs   the_api,                                             
  uint16_t       the_class                                            
)                                                                     
{                                                                     
ffc0b8dc:	90 01 00 14 	stw     r0,20(r1)                              
ffc0b8e0:	93 c1 00 08 	stw     r30,8(r1)                              
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
ffc0b8e4:	41 82 00 68 	beq-    ffc0b94c <_Objects_Get_information+0x80>
ffc0b8e8:	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 );      
ffc0b8ec:	48 00 52 95 	bl      ffc10b80 <_Objects_API_maximum_class>  
  if ( the_class_api_maximum == 0 )                                   
ffc0b8f0:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0b8f4:	41 82 00 58 	beq-    ffc0b94c <_Objects_Get_information+0x80>
    return NULL;                                                      
                                                                      
  if ( the_class > (uint32_t) the_class_api_maximum )                 
ffc0b8f8:	7f 83 f8 40 	cmplw   cr7,r3,r31                             
ffc0b8fc:	41 9c 00 50 	blt-    cr7,ffc0b94c <_Objects_Get_information+0x80>
    return NULL;                                                      
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
ffc0b900:	3d 20 00 00 	lis     r9,0                                   
ffc0b904:	57 de 10 3a 	rlwinm  r30,r30,2,0,29                         
ffc0b908:	39 29 2c 78 	addi    r9,r9,11384                            
ffc0b90c:	7d 29 f0 2e 	lwzx    r9,r9,r30                              
ffc0b910:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b914:	41 9e 00 38 	beq-    cr7,ffc0b94c <_Objects_Get_information+0x80><== NEVER TAKEN
    return NULL;                                                      
                                                                      
  info = _Objects_Information_table[ the_api ][ the_class ];          
ffc0b918:	57 ff 10 3a 	rlwinm  r31,r31,2,0,29                         
ffc0b91c:	7c 69 f8 2e 	lwzx    r3,r9,r31                              
  if ( !info )                                                        
ffc0b920:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0b924:	41 9e 00 28 	beq-    cr7,ffc0b94c <_Objects_Get_information+0x80><== 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 )                                         
ffc0b928:	a1 23 00 10 	lhz     r9,16(r3)                              
ffc0b92c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0b930:	41 9e 00 1c 	beq-    cr7,ffc0b94c <_Objects_Get_information+0x80>
      return NULL;                                                    
  #endif                                                              
                                                                      
  return info;                                                        
}                                                                     
ffc0b934:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0b938:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0b93c:	7c 08 03 a6 	mtlr    r0                                     
ffc0b940:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0b944:	38 21 00 10 	addi    r1,r1,16                               
ffc0b948:	4e 80 00 20 	blr                                            
ffc0b94c:	80 01 00 14 	lwz     r0,20(r1)                              
{                                                                     
  Objects_Information *info;                                          
  int the_class_api_maximum;                                          
                                                                      
  if ( !the_class )                                                   
    return NULL;                                                      
ffc0b950:	38 60 00 00 	li      r3,0                                   
    if ( info->maximum == 0 )                                         
      return NULL;                                                    
  #endif                                                              
                                                                      
  return info;                                                        
}                                                                     
ffc0b954:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0b958:	7c 08 03 a6 	mtlr    r0                                     
ffc0b95c:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0b960:	38 21 00 10 	addi    r1,r1,16                               
ffc0b964:	4e 80 00 20 	blr                                            
                                                                      

ffc1b7f0 <_Objects_Get_name_as_string>: char *_Objects_Get_name_as_string( Objects_Id id, size_t length, char *name ) {
ffc1b7f0:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc1b7f4:	7c 08 02 a6 	mflr    r0                                     
ffc1b7f8:	93 a1 00 1c 	stw     r29,28(r1)                             
  char                   lname[5];                                    
  Objects_Control       *the_object;                                  
  Objects_Locations      location;                                    
  Objects_Id             tmpId;                                       
                                                                      
  if ( length == 0 )                                                  
ffc1b7fc:	7c 9d 23 79 	mr.     r29,r4                                 
char *_Objects_Get_name_as_string(                                    
  Objects_Id        id,                                               
  size_t            length,                                           
  char             *name                                              
)                                                                     
{                                                                     
ffc1b800:	90 01 00 2c 	stw     r0,44(r1)                              
ffc1b804:	93 81 00 18 	stw     r28,24(r1)                             
ffc1b808:	93 c1 00 20 	stw     r30,32(r1)                             
ffc1b80c:	93 e1 00 24 	stw     r31,36(r1)                             
  char                   lname[5];                                    
  Objects_Control       *the_object;                                  
  Objects_Locations      location;                                    
  Objects_Id             tmpId;                                       
                                                                      
  if ( length == 0 )                                                  
ffc1b810:	41 82 00 44 	beq-    ffc1b854 <_Objects_Get_name_as_string+0x64>
    return NULL;                                                      
                                                                      
  if ( name == NULL )                                                 
ffc1b814:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc1b818:	7c bf 2b 78 	mr      r31,r5                                 
ffc1b81c:	41 9e 00 38 	beq-    cr7,ffc1b854 <_Objects_Get_name_as_string+0x64>
    return NULL;                                                      
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
ffc1b820:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1b824:	7c 7e 1b 78 	mr      r30,r3                                 
ffc1b828:	41 9e 01 18 	beq-    cr7,ffc1b940 <_Objects_Get_name_as_string+0x150>
                                                                      
  information = _Objects_Get_information_id( tmpId );                 
ffc1b82c:	7f c3 f3 78 	mr      r3,r30                                 
ffc1b830:	4b ff 6e 41 	bl      ffc12670 <_Objects_Get_information_id> 
  if ( !information )                                                 
ffc1b834:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc1b838:	41 82 00 1c 	beq-    ffc1b854 <_Objects_Get_name_as_string+0x64>
    return NULL;                                                      
                                                                      
  the_object = _Objects_Get( information, tmpId, &location );         
ffc1b83c:	7f c4 f3 78 	mr      r4,r30                                 
ffc1b840:	38 a1 00 10 	addi    r5,r1,16                               
ffc1b844:	4b ff 6f 49 	bl      ffc1278c <_Objects_Get>                
  switch ( location ) {                                               
ffc1b848:	81 21 00 10 	lwz     r9,16(r1)                              
ffc1b84c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1b850:	41 9e 00 2c 	beq-    cr7,ffc1b87c <_Objects_Get_name_as_string+0x8c>
                                                                      
      _Thread_Enable_dispatch();                                      
      return name;                                                    
  }                                                                   
  return NULL;                  /* unreachable path */                
}                                                                     
ffc1b854:	80 01 00 2c 	lwz     r0,44(r1)                              
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:                                              
      /* not supported */                                             
#endif                                                                
    case OBJECTS_ERROR:                                               
      return NULL;                                                    
ffc1b858:	3b e0 00 00 	li      r31,0                                  
                                                                      
      _Thread_Enable_dispatch();                                      
      return name;                                                    
  }                                                                   
  return NULL;                  /* unreachable path */                
}                                                                     
ffc1b85c:	7f e3 fb 78 	mr      r3,r31                                 
ffc1b860:	83 81 00 18 	lwz     r28,24(r1)                             
ffc1b864:	7c 08 03 a6 	mtlr    r0                                     
ffc1b868:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc1b86c:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc1b870:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc1b874:	38 21 00 28 	addi    r1,r1,40                               
ffc1b878:	4e 80 00 20 	blr                                            
      return NULL;                                                    
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)             
        if ( information->is_string ) {                               
ffc1b87c:	89 3c 00 38 	lbz     r9,56(r28)                             
ffc1b880:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1b884:	40 9e 00 cc 	bne-    cr7,ffc1b950 <_Objects_Get_name_as_string+0x160>
          s = the_object->name.name_p;                                
        } else                                                        
      #endif                                                          
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
ffc1b888:	81 43 00 0c 	lwz     r10,12(r3)                             
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
        lname[ 3 ] = (u32_name >>  0) & 0xff;                         
        lname[ 4 ] = '\0';                                            
ffc1b88c:	99 21 00 0c 	stb     r9,12(r1)                              
      #endif                                                          
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
ffc1b890:	55 48 84 3e 	rlwinm  r8,r10,16,16,31                        
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
ffc1b894:	55 49 c2 3e 	rlwinm  r9,r10,24,8,31                         
      #endif                                                          
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
ffc1b898:	99 01 00 09 	stb     r8,9(r1)                               
        } else                                                        
      #endif                                                          
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
ffc1b89c:	55 47 46 3e 	rlwinm  r7,r10,8,24,31                         
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
ffc1b8a0:	99 21 00 0a 	stb     r9,10(r1)                              
        lname[ 3 ] = (u32_name >>  0) & 0xff;                         
ffc1b8a4:	99 41 00 0b 	stb     r10,11(r1)                             
        } else                                                        
      #endif                                                          
      {                                                               
        uint32_t  u32_name = (uint32_t) the_object->name.name_u32;    
                                                                      
        lname[ 0 ] = (u32_name >> 24) & 0xff;                         
ffc1b8a8:	98 e1 00 08 	stb     r7,8(r1)                               
        lname[ 1 ] = (u32_name >> 16) & 0xff;                         
        lname[ 2 ] = (u32_name >>  8) & 0xff;                         
        lname[ 3 ] = (u32_name >>  0) & 0xff;                         
        lname[ 4 ] = '\0';                                            
        s = lname;                                                    
ffc1b8ac:	38 e1 00 08 	addi    r7,r1,8                                
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
ffc1b8b0:	2f 9d 00 01 	cmpwi   cr7,r29,1                              
ffc1b8b4:	41 9e 00 a8 	beq-    cr7,ffc1b95c <_Objects_Get_name_as_string+0x16c><== NEVER TAKEN
ffc1b8b8:	89 27 00 00 	lbz     r9,0(r7)                               
ffc1b8bc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1b8c0:	41 9e 00 9c 	beq-    cr7,ffc1b95c <_Objects_Get_name_as_string+0x16c>
ffc1b8c4:	3d 60 00 00 	lis     r11,0                                  
          *d = (isprint((unsigned char)*s)) ? *s : '*';               
ffc1b8c8:	3b bd ff ff 	addi    r29,r29,-1                             
 *  This method objects the name of an object and returns its name    
 *  in the form of a C string.  It attempts to be careful about       
 *  overflowing the user's string and about returning unprintable characters.
 */                                                                   
                                                                      
char *_Objects_Get_name_as_string(                                    
ffc1b8cc:	7f ea fb 78 	mr      r10,r31                                
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
          *d = (isprint((unsigned char)*s)) ? *s : '*';               
ffc1b8d0:	7f a9 03 a6 	mtctr   r29                                    
ffc1b8d4:	39 6b 29 c4 	addi    r11,r11,10692                          
ffc1b8d8:	38 c0 ff 97 	li      r6,-105                                
ffc1b8dc:	48 00 00 10 	b       ffc1b8ec <_Objects_Get_name_as_string+0xfc>
        s = lname;                                                    
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
ffc1b8e0:	8d 27 00 01 	lbzu    r9,1(r7)                               
ffc1b8e4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1b8e8:	41 9e 00 28 	beq-    cr7,ffc1b910 <_Objects_Get_name_as_string+0x120>
          *d = (isprint((unsigned char)*s)) ? *s : '*';               
ffc1b8ec:	81 0b 00 00 	lwz     r8,0(r11)                              
ffc1b8f0:	7d 08 4a 14 	add     r8,r8,r9                               
ffc1b8f4:	89 08 00 01 	lbz     r8,1(r8)                               
ffc1b8f8:	7d 05 30 39 	and.    r5,r8,r6                               
ffc1b8fc:	40 82 00 08 	bne-    ffc1b904 <_Objects_Get_name_as_string+0x114>
ffc1b900:	39 20 00 2a 	li      r9,42                                  
ffc1b904:	99 2a 00 00 	stb     r9,0(r10)                              
        s = lname;                                                    
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
ffc1b908:	39 4a 00 01 	addi    r10,r10,1                              
ffc1b90c:	42 00 ff d4 	bdnz+   ffc1b8e0 <_Objects_Get_name_as_string+0xf0>
          *d = (isprint((unsigned char)*s)) ? *s : '*';               
        }                                                             
      }                                                               
      *d = '\0';                                                      
ffc1b910:	39 20 00 00 	li      r9,0                                   
ffc1b914:	99 2a 00 00 	stb     r9,0(r10)                              
                                                                      
      _Thread_Enable_dispatch();                                      
ffc1b918:	4b ff 80 09 	bl      ffc13920 <_Thread_Enable_dispatch>     
      return name;                                                    
  }                                                                   
  return NULL;                  /* unreachable path */                
}                                                                     
ffc1b91c:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc1b920:	7f e3 fb 78 	mr      r3,r31                                 
ffc1b924:	83 81 00 18 	lwz     r28,24(r1)                             
ffc1b928:	7c 08 03 a6 	mtlr    r0                                     
ffc1b92c:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc1b930:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc1b934:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc1b938:	38 21 00 28 	addi    r1,r1,40                               
ffc1b93c:	4e 80 00 20 	blr                                            
    return NULL;                                                      
                                                                      
  if ( name == NULL )                                                 
    return NULL;                                                      
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
ffc1b940:	3d 20 00 00 	lis     r9,0                                   
ffc1b944:	81 29 3a f0 	lwz     r9,15088(r9)                           
ffc1b948:	83 c9 00 08 	lwz     r30,8(r9)                              
ffc1b94c:	4b ff fe e0 	b       ffc1b82c <_Objects_Get_name_as_string+0x3c>
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)             
        if ( information->is_string ) {                               
          s = the_object->name.name_p;                                
ffc1b950:	80 e3 00 0c 	lwz     r7,12(r3)                              
        lname[ 4 ] = '\0';                                            
        s = lname;                                                    
      }                                                               
                                                                      
      d = name;                                                       
      if ( s ) {                                                      
ffc1b954:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc1b958:	40 9e ff 58 	bne+    cr7,ffc1b8b0 <_Objects_Get_name_as_string+0xc0>
        for ( i=0 ; i<(length-1) && *s ; i++, s++, d++ ) {            
          *d = (isprint((unsigned char)*s)) ? *s : '*';               
ffc1b95c:	7f ea fb 78 	mr      r10,r31                                
        }                                                             
      }                                                               
      *d = '\0';                                                      
ffc1b960:	39 20 00 00 	li      r9,0                                   
ffc1b964:	99 2a 00 00 	stb     r9,0(r10)                              
                                                                      
      _Thread_Enable_dispatch();                                      
ffc1b968:	4b ff 7f b9 	bl      ffc13920 <_Thread_Enable_dispatch>     
ffc1b96c:	4b ff ff b0 	b       ffc1b91c <_Objects_Get_name_as_string+0x12c>
                                                                      

ffc1f050 <_Objects_Get_next>: Objects_Information *information, Objects_Id id, Objects_Locations *location_p, Objects_Id *next_id_p ) {
ffc1f050:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc1f054:	7c 08 02 a6 	mflr    r0                                     
ffc1f058:	93 a1 00 0c 	stw     r29,12(r1)                             
    Objects_Control *object;                                          
    Objects_Id       next_id;                                         
                                                                      
    if ( !information )                                               
ffc1f05c:	7c 7d 1b 79 	mr.     r29,r3                                 
    Objects_Information *information,                                 
    Objects_Id           id,                                          
    Objects_Locations   *location_p,                                  
    Objects_Id          *next_id_p                                    
)                                                                     
{                                                                     
ffc1f060:	90 01 00 1c 	stw     r0,28(r1)                              
ffc1f064:	93 81 00 08 	stw     r28,8(r1)                              
ffc1f068:	93 c1 00 10 	stw     r30,16(r1)                             
ffc1f06c:	93 e1 00 14 	stw     r31,20(r1)                             
    Objects_Control *object;                                          
    Objects_Id       next_id;                                         
                                                                      
    if ( !information )                                               
ffc1f070:	41 82 00 d8 	beq-    ffc1f148 <_Objects_Get_next+0xf8>      
      return NULL;                                                    
                                                                      
    if ( !location_p )                                                
ffc1f074:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc1f078:	7c be 2b 78 	mr      r30,r5                                 
ffc1f07c:	41 9e 00 cc 	beq-    cr7,ffc1f148 <_Objects_Get_next+0xf8>  
      return NULL;                                                    
                                                                      
    if ( !next_id_p )                                                 
ffc1f080:	2f 86 00 00 	cmpwi   cr7,r6,0                               
ffc1f084:	7c dc 33 78 	mr      r28,r6                                 
ffc1f088:	41 9e 00 c0 	beq-    cr7,ffc1f148 <_Objects_Get_next+0xf8>  
      return NULL;                                                    
                                                                      
    if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX)           
ffc1f08c:	54 89 04 3e 	clrlwi  r9,r4,16                               
ffc1f090:	2f 89 00 00 	cmpwi   cr7,r9,0                               
        next_id = information->minimum_id;                            
    else                                                              
        next_id = id;                                                 
ffc1f094:	7c 9f 23 78 	mr      r31,r4                                 
      return NULL;                                                    
                                                                      
    if ( !next_id_p )                                                 
      return NULL;                                                    
                                                                      
    if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX)           
ffc1f098:	41 9e 00 58 	beq-    cr7,ffc1f0f0 <_Objects_Get_next+0xa0>  
    else                                                              
        next_id = id;                                                 
                                                                      
    do {                                                              
        /* walked off end of list? */                                 
        if (_Objects_Get_index(next_id) > information->maximum)       
ffc1f09c:	a1 5d 00 10 	lhz     r10,16(r29)                            
ffc1f0a0:	57 e9 04 3e 	clrlwi  r9,r31,16                              
            *location_p = OBJECTS_ERROR;                              
            goto final;                                               
        }                                                             
                                                                      
        /* try to grab one */                                         
        object = _Objects_Get(information, next_id, location_p);      
ffc1f0a4:	7f e4 fb 78 	mr      r4,r31                                 
    else                                                              
        next_id = id;                                                 
                                                                      
    do {                                                              
        /* walked off end of list? */                                 
        if (_Objects_Get_index(next_id) > information->maximum)       
ffc1f0a8:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
            *location_p = OBJECTS_ERROR;                              
            goto final;                                               
        }                                                             
                                                                      
        /* try to grab one */                                         
        object = _Objects_Get(information, next_id, location_p);      
ffc1f0ac:	7f a3 eb 78 	mr      r3,r29                                 
ffc1f0b0:	7f c5 f3 78 	mr      r5,r30                                 
                                                                      
        next_id++;                                                    
ffc1f0b4:	3b ff 00 01 	addi    r31,r31,1                              
    else                                                              
        next_id = id;                                                 
                                                                      
    do {                                                              
        /* walked off end of list? */                                 
        if (_Objects_Get_index(next_id) > information->maximum)       
ffc1f0b8:	41 9c 00 5c 	blt-    cr7,ffc1f114 <_Objects_Get_next+0xc4>  
            *location_p = OBJECTS_ERROR;                              
            goto final;                                               
        }                                                             
                                                                      
        /* try to grab one */                                         
        object = _Objects_Get(information, next_id, location_p);      
ffc1f0bc:	4b ff 36 d1 	bl      ffc1278c <_Objects_Get>                
                                                                      
        next_id++;                                                    
                                                                      
    } while (*location_p != OBJECTS_LOCAL);                           
ffc1f0c0:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc1f0c4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1f0c8:	40 9e ff d4 	bne+    cr7,ffc1f09c <_Objects_Get_next+0x4c>  
                                                                      
    *next_id_p = next_id;                                             
ffc1f0cc:	93 fc 00 00 	stw     r31,0(r28)                             
    return object;                                                    
                                                                      
final:                                                                
    *next_id_p = OBJECTS_ID_FINAL;                                    
    return 0;                                                         
}                                                                     
ffc1f0d0:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc1f0d4:	83 81 00 08 	lwz     r28,8(r1)                              
ffc1f0d8:	7c 08 03 a6 	mtlr    r0                                     
ffc1f0dc:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc1f0e0:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc1f0e4:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc1f0e8:	38 21 00 18 	addi    r1,r1,24                               
ffc1f0ec:	4e 80 00 20 	blr                                            
                                                                      
    if ( !next_id_p )                                                 
      return NULL;                                                    
                                                                      
    if (_Objects_Get_index(id) == OBJECTS_ID_INITIAL_INDEX)           
        next_id = information->minimum_id;                            
ffc1f0f0:	83 fd 00 08 	lwz     r31,8(r29)                             
            *location_p = OBJECTS_ERROR;                              
            goto final;                                               
        }                                                             
                                                                      
        /* try to grab one */                                         
        object = _Objects_Get(information, next_id, location_p);      
ffc1f0f4:	7f a3 eb 78 	mr      r3,r29                                 
    else                                                              
        next_id = id;                                                 
                                                                      
    do {                                                              
        /* walked off end of list? */                                 
        if (_Objects_Get_index(next_id) > information->maximum)       
ffc1f0f8:	a1 5d 00 10 	lhz     r10,16(r29)                            
            *location_p = OBJECTS_ERROR;                              
            goto final;                                               
        }                                                             
                                                                      
        /* try to grab one */                                         
        object = _Objects_Get(information, next_id, location_p);      
ffc1f0fc:	7f c5 f3 78 	mr      r5,r30                                 
    else                                                              
        next_id = id;                                                 
                                                                      
    do {                                                              
        /* walked off end of list? */                                 
        if (_Objects_Get_index(next_id) > information->maximum)       
ffc1f100:	57 e9 04 3e 	clrlwi  r9,r31,16                              
ffc1f104:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
            *location_p = OBJECTS_ERROR;                              
            goto final;                                               
        }                                                             
                                                                      
        /* try to grab one */                                         
        object = _Objects_Get(information, next_id, location_p);      
ffc1f108:	7f e4 fb 78 	mr      r4,r31                                 
                                                                      
        next_id++;                                                    
ffc1f10c:	3b ff 00 01 	addi    r31,r31,1                              
    else                                                              
        next_id = id;                                                 
                                                                      
    do {                                                              
        /* walked off end of list? */                                 
        if (_Objects_Get_index(next_id) > information->maximum)       
ffc1f110:	40 9c ff ac 	bge+    cr7,ffc1f0bc <_Objects_Get_next+0x6c>  <== ALWAYS TAKEN
    return object;                                                    
                                                                      
final:                                                                
    *next_id_p = OBJECTS_ID_FINAL;                                    
    return 0;                                                         
}                                                                     
ffc1f114:	80 01 00 1c 	lwz     r0,28(r1)                              
                                                                      
    do {                                                              
        /* walked off end of list? */                                 
        if (_Objects_Get_index(next_id) > information->maximum)       
        {                                                             
            *location_p = OBJECTS_ERROR;                              
ffc1f118:	39 20 00 01 	li      r9,1                                   
ffc1f11c:	91 3e 00 00 	stw     r9,0(r30)                              
                                                                      
    *next_id_p = next_id;                                             
    return object;                                                    
                                                                      
final:                                                                
    *next_id_p = OBJECTS_ID_FINAL;                                    
ffc1f120:	39 20 ff ff 	li      r9,-1                                  
    return 0;                                                         
}                                                                     
ffc1f124:	7c 08 03 a6 	mtlr    r0                                     
    *next_id_p = next_id;                                             
    return object;                                                    
                                                                      
final:                                                                
    *next_id_p = OBJECTS_ID_FINAL;                                    
    return 0;                                                         
ffc1f128:	38 60 00 00 	li      r3,0                                   
                                                                      
    *next_id_p = next_id;                                             
    return object;                                                    
                                                                      
final:                                                                
    *next_id_p = OBJECTS_ID_FINAL;                                    
ffc1f12c:	91 3c 00 00 	stw     r9,0(r28)                              
    return 0;                                                         
}                                                                     
ffc1f130:	83 81 00 08 	lwz     r28,8(r1)                              
ffc1f134:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc1f138:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc1f13c:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc1f140:	38 21 00 18 	addi    r1,r1,24                               
ffc1f144:	4e 80 00 20 	blr                                            
{                                                                     
    Objects_Control *object;                                          
    Objects_Id       next_id;                                         
                                                                      
    if ( !information )                                               
      return NULL;                                                    
ffc1f148:	38 60 00 00 	li      r3,0                                   
ffc1f14c:	4b ff ff 84 	b       ffc1f0d0 <_Objects_Get_next+0x80>      
                                                                      

ffc20960 <_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;
ffc20960:	81 23 00 08 	lwz     r9,8(r3)                               
                                                                      
  if ( information->maximum >= index ) {                              
ffc20964:	a1 43 00 10 	lhz     r10,16(r3)                             
                                                                      
  /*                                                                  
   * You can't just extract the index portion or you can get tricked  
   * by a value between 1 and maximum.                                
   */                                                                 
  index = id - information->minimum_id + 1;                           
ffc20968:	21 29 00 01 	subfic  r9,r9,1                                
ffc2096c:	7c 89 22 14 	add     r4,r9,r4                               
                                                                      
  if ( information->maximum >= index ) {                              
ffc20970:	7f 84 50 40 	cmplw   cr7,r4,r10                             
ffc20974:	41 9d 00 24 	bgt-    cr7,ffc20998 <_Objects_Get_no_protection+0x38>
    if ( (the_object = information->local_table[ index ]) != NULL ) { 
ffc20978:	81 23 00 1c 	lwz     r9,28(r3)                              
ffc2097c:	54 84 10 3a 	rlwinm  r4,r4,2,0,29                           
ffc20980:	7c 69 20 2e 	lwzx    r3,r9,r4                               
ffc20984:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc20988:	41 9e 00 10 	beq-    cr7,ffc20998 <_Objects_Get_no_protection+0x38><== NEVER TAKEN
      *location = OBJECTS_LOCAL;                                      
ffc2098c:	39 20 00 00 	li      r9,0                                   
ffc20990:	91 25 00 00 	stw     r9,0(r5)                               
      return the_object;                                              
ffc20994:	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;                                          
ffc20998:	39 20 00 01 	li      r9,1                                   
ffc2099c:	91 25 00 00 	stw     r9,0(r5)                               
  return NULL;                                                        
ffc209a0:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc209a4:	4e 80 00 20 	blr                                            
                                                                      

ffc1281c <_Objects_Id_to_name>: /* * Caller is trusted for name != NULL. */ tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
ffc1281c:	7c 69 1b 79 	mr.     r9,r3                                  
                                                                      
Objects_Name_or_id_lookup_errors _Objects_Id_to_name (                
  Objects_Id      id,                                                 
  Objects_Name   *name                                                
)                                                                     
{                                                                     
ffc12820:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc12824:	7c 08 02 a6 	mflr    r0                                     
ffc12828:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc1282c:	7c 9f 23 78 	mr      r31,r4                                 
ffc12830:	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;
ffc12834:	40 82 00 10 	bne-    ffc12844 <_Objects_Id_to_name+0x28>    
ffc12838:	3d 20 00 00 	lis     r9,0                                   
ffc1283c:	81 29 3a f0 	lwz     r9,15088(r9)                           
ffc12840:	81 29 00 08 	lwz     r9,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);
ffc12844:	55 2a 47 7e 	rlwinm  r10,r9,8,29,31                         
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Objects_Is_api_valid(                      
  uint32_t   the_api                                                  
)                                                                     
{                                                                     
  if ( !the_api || the_api > OBJECTS_APIS_LAST )                      
ffc12848:	39 0a ff ff 	addi    r8,r10,-1                              
ffc1284c:	2b 88 00 02 	cmplwi  cr7,r8,2                               
ffc12850:	41 9d 00 38 	bgt-    cr7,ffc12888 <_Objects_Id_to_name+0x6c>
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
                                                                      
  if ( !_Objects_Information_table[ the_api ] )                       
ffc12854:	3d 00 00 00 	lis     r8,0                                   
ffc12858:	55 4a 10 3a 	rlwinm  r10,r10,2,0,29                         
ffc1285c:	39 08 35 78 	addi    r8,r8,13688                            
ffc12860:	7d 48 50 2e 	lwzx    r10,r8,r10                             
ffc12864:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc12868:	41 9e 00 20 	beq-    cr7,ffc12888 <_Objects_Id_to_name+0x6c>
    return OBJECTS_INVALID_ID;                                        
                                                                      
  the_class = _Objects_Get_class( tmpId );                            
                                                                      
  information = _Objects_Information_table[ the_api ][ the_class ];   
ffc1286c:	55 28 3e 7a 	rlwinm  r8,r9,7,25,29                          
ffc12870:	7c 6a 40 2e 	lwzx    r3,r10,r8                              
  if ( !information )                                                 
ffc12874:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc12878:	41 9e 00 10 	beq-    cr7,ffc12888 <_Objects_Id_to_name+0x6c><== NEVER TAKEN
    return OBJECTS_INVALID_ID;                                        
                                                                      
  #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                 
    if ( information->is_string )                                     
ffc1287c:	89 43 00 38 	lbz     r10,56(r3)                             
ffc12880:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc12884:	41 9e 00 1c 	beq-    cr7,ffc128a0 <_Objects_Id_to_name+0x84><== ALWAYS TAKEN
                                                                      
  tmpId = (id == OBJECTS_ID_OF_SELF) ? _Thread_Executing->Object.id : id;
                                                                      
  the_api = _Objects_Get_API( tmpId );                                
  if ( !_Objects_Is_api_valid( the_api ) )                            
    return OBJECTS_INVALID_ID;                                        
ffc12888:	38 60 00 03 	li      r3,3                                   
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
  _Thread_Enable_dispatch();                                          
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
}                                                                     
ffc1288c:	80 01 00 24 	lwz     r0,36(r1)                              
ffc12890:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc12894:	7c 08 03 a6 	mtlr    r0                                     
ffc12898:	38 21 00 20 	addi    r1,r1,32                               
ffc1289c:	4e 80 00 20 	blr                                            
  #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 ); 
ffc128a0:	7d 24 4b 78 	mr      r4,r9                                  
ffc128a4:	38 a1 00 08 	addi    r5,r1,8                                
ffc128a8:	4b ff fe e5 	bl      ffc1278c <_Objects_Get>                
  if ( !the_object )                                                  
ffc128ac:	2c 03 00 00 	cmpwi   r3,0                                   
ffc128b0:	41 a2 ff d8 	beq-    ffc12888 <_Objects_Id_to_name+0x6c>    
    return OBJECTS_INVALID_ID;                                        
                                                                      
  *name = the_object->name;                                           
ffc128b4:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc128b8:	91 3f 00 00 	stw     r9,0(r31)                              
  _Thread_Enable_dispatch();                                          
ffc128bc:	48 00 10 65 	bl      ffc13920 <_Thread_Enable_dispatch>     
  return OBJECTS_NAME_OR_ID_LOOKUP_SUCCESSFUL;                        
ffc128c0:	38 60 00 00 	li      r3,0                                   
ffc128c4:	4b ff ff c8 	b       ffc1288c <_Objects_Id_to_name+0x70>    
                                                                      

ffc0bc1c <_Objects_Shrink_information>: #include <rtems/score/isr.h> void _Objects_Shrink_information( Objects_Information *information ) {
ffc0bc1c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0bc20:	7c 08 02 a6 	mflr    r0                                     
ffc0bc24:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0bc28:	93 e1 00 14 	stw     r31,20(r1)                             
  /*                                                                  
   * Search the list to find block or chunk with all objects inactive.
   */                                                                 
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
ffc0bc2c:	a0 e3 00 10 	lhz     r7,16(r3)                              
                                                                      
  /*                                                                  
   * Search the list to find block or chunk with all objects inactive.
   */                                                                 
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
ffc0bc30:	a3 e3 00 0a 	lhz     r31,10(r3)                             
  block_count = (information->maximum - index_base) /                 
ffc0bc34:	a1 43 00 14 	lhz     r10,20(r3)                             
ffc0bc38:	7c ff 38 50 	subf    r7,r31,r7                              
#include <rtems/score/isr.h>                                          
                                                                      
void _Objects_Shrink_information(                                     
  Objects_Information *information                                    
)                                                                     
{                                                                     
ffc0bc3c:	93 81 00 08 	stw     r28,8(r1)                              
  /*                                                                  
   * Search the list to find block or chunk with all objects inactive.
   */                                                                 
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
ffc0bc40:	7c e7 53 96 	divwu   r7,r7,r10                              
#include <rtems/score/isr.h>                                          
                                                                      
void _Objects_Shrink_information(                                     
  Objects_Information *information                                    
)                                                                     
{                                                                     
ffc0bc44:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc0bc48:	93 c1 00 10 	stw     r30,16(r1)                             
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
ffc0bc4c:	2f 87 00 00 	cmpwi   cr7,r7,0                               
#include <rtems/score/isr.h>                                          
                                                                      
void _Objects_Shrink_information(                                     
  Objects_Information *information                                    
)                                                                     
{                                                                     
ffc0bc50:	7c 7c 1b 78 	mr      r28,r3                                 
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
ffc0bc54:	41 9e 00 3c 	beq-    cr7,ffc0bc90 <_Objects_Shrink_information+0x74><== NEVER TAKEN
    if ( information->inactive_per_block[ block ] ==                  
ffc0bc58:	81 03 00 30 	lwz     r8,48(r3)                              
ffc0bc5c:	81 28 00 00 	lwz     r9,0(r8)                               
ffc0bc60:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc0bc64:	41 9e 00 4c 	beq-    cr7,ffc0bcb0 <_Objects_Shrink_information+0x94><== NEVER TAKEN
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
ffc0bc68:	39 20 00 00 	li      r9,0                                   
ffc0bc6c:	7c e9 03 a6 	mtctr   r7                                     
ffc0bc70:	48 00 00 14 	b       ffc0bc84 <_Objects_Shrink_information+0x68>
    if ( information->inactive_per_block[ block ] ==                  
ffc0bc74:	84 e8 00 04 	lwzu    r7,4(r8)                               
#include <rtems/score/thread.h>                                       
#include <rtems/score/wkspace.h>                                      
#include <rtems/score/sysstate.h>                                     
#include <rtems/score/isr.h>                                          
                                                                      
void _Objects_Shrink_information(                                     
ffc0bc78:	55 3d 10 3a 	rlwinm  r29,r9,2,0,29                          
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
    if ( information->inactive_per_block[ block ] ==                  
ffc0bc7c:	7f 8a 38 00 	cmpw    cr7,r10,r7                             
ffc0bc80:	41 9e 00 34 	beq-    cr7,ffc0bcb4 <_Objects_Shrink_information+0x98>
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
ffc0bc84:	39 29 00 01 	addi    r9,r9,1                                
      information->inactive -= information->allocation_size;          
                                                                      
      return;                                                         
    }                                                                 
                                                                      
    index_base += information->allocation_size;                       
ffc0bc88:	7f ff 52 14 	add     r31,r31,r10                            
                                                                      
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
ffc0bc8c:	42 00 ff e8 	bdnz+   ffc0bc74 <_Objects_Shrink_information+0x58>
      return;                                                         
    }                                                                 
                                                                      
    index_base += information->allocation_size;                       
  }                                                                   
}                                                                     
ffc0bc90:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0bc94:	83 81 00 08 	lwz     r28,8(r1)                              
ffc0bc98:	7c 08 03 a6 	mtlr    r0                                     
ffc0bc9c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0bca0:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0bca4:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0bca8:	38 21 00 18 	addi    r1,r1,24                               
ffc0bcac:	4e 80 00 20 	blr                                            
  index_base = _Objects_Get_index( information->minimum_id );         
  block_count = (information->maximum - index_base) /                 
                 information->allocation_size;                        
                                                                      
  for ( block = 0; block < block_count; block++ ) {                   
    if ( information->inactive_per_block[ block ] ==                  
ffc0bcb0:	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;                              
ffc0bcb4:	80 7c 00 20 	lwz     r3,32(r28)                             
ffc0bcb8:	48 00 00 10 	b       ffc0bcc8 <_Objects_Shrink_information+0xac>
         if ((index >= index_base) &&                                 
             (index < (index_base + information->allocation_size))) { 
           _Chain_Extract( &extract_me->Node );                       
         }                                                            
       }                                                              
       while ( the_object );                                          
ffc0bcbc:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
         index = _Objects_Get_index( the_object->id );                
         /*                                                           
          *  Get the next node before the node is extracted           
          */                                                          
         extract_me = the_object;                                     
         the_object = (Objects_Control *) the_object->Node.next;      
ffc0bcc0:	7f c3 f3 78 	mr      r3,r30                                 
         if ((index >= index_base) &&                                 
             (index < (index_base + information->allocation_size))) { 
           _Chain_Extract( &extract_me->Node );                       
         }                                                            
       }                                                              
       while ( the_object );                                          
ffc0bcc4:	41 9e 00 34 	beq-    cr7,ffc0bcf8 <_Objects_Shrink_information+0xdc>
       *  Assume the Inactive chain is never empty at this point      
       */                                                             
      the_object = (Objects_Control *) _Chain_First( &information->Inactive );
                                                                      
      do {                                                            
         index = _Objects_Get_index( the_object->id );                
ffc0bcc8:	a1 43 00 0a 	lhz     r10,10(r3)                             
         /*                                                           
          *  Get the next node before the node is extracted           
          */                                                          
         extract_me = the_object;                                     
         the_object = (Objects_Control *) the_object->Node.next;      
ffc0bccc:	83 c3 00 00 	lwz     r30,0(r3)                              
         if ((index >= index_base) &&                                 
ffc0bcd0:	7f 8a f8 40 	cmplw   cr7,r10,r31                            
ffc0bcd4:	41 bc ff e8 	blt-    cr7,ffc0bcbc <_Objects_Shrink_information+0xa0>
             (index < (index_base + information->allocation_size))) { 
ffc0bcd8:	a1 1c 00 14 	lhz     r8,20(r28)                             
ffc0bcdc:	7d 1f 42 14 	add     r8,r31,r8                              
         /*                                                           
          *  Get the next node before the node is extracted           
          */                                                          
         extract_me = the_object;                                     
         the_object = (Objects_Control *) the_object->Node.next;      
         if ((index >= index_base) &&                                 
ffc0bce0:	7f 8a 40 40 	cmplw   cr7,r10,r8                             
ffc0bce4:	40 9c ff d8 	bge+    cr7,ffc0bcbc <_Objects_Shrink_information+0xa0>
             (index < (index_base + information->allocation_size))) { 
           _Chain_Extract( &extract_me->Node );                       
ffc0bce8:	48 00 49 09 	bl      ffc105f0 <_Chain_Extract>              
         }                                                            
       }                                                              
       while ( the_object );                                          
ffc0bcec:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
         index = _Objects_Get_index( the_object->id );                
         /*                                                           
          *  Get the next node before the node is extracted           
          */                                                          
         extract_me = the_object;                                     
         the_object = (Objects_Control *) the_object->Node.next;      
ffc0bcf0:	7f c3 f3 78 	mr      r3,r30                                 
         if ((index >= index_base) &&                                 
             (index < (index_base + information->allocation_size))) { 
           _Chain_Extract( &extract_me->Node );                       
         }                                                            
       }                                                              
       while ( the_object );                                          
ffc0bcf4:	40 9e ff d4 	bne+    cr7,ffc0bcc8 <_Objects_Shrink_information+0xac><== ALWAYS TAKEN
      /*                                                              
       *  Free the memory and reset the structures in the object' information
       */                                                             
                                                                      
      _Workspace_Free( information->object_blocks[ block ] );         
ffc0bcf8:	81 3c 00 34 	lwz     r9,52(r28)                             
ffc0bcfc:	7c 69 e8 2e 	lwzx    r3,r9,r29                              
ffc0bd00:	48 00 22 85 	bl      ffc0df84 <_Workspace_Free>             
      information->object_blocks[ block ] = NULL;                     
ffc0bd04:	81 3c 00 34 	lwz     r9,52(r28)                             
      return;                                                         
    }                                                                 
                                                                      
    index_base += information->allocation_size;                       
  }                                                                   
}                                                                     
ffc0bd08:	80 01 00 1c 	lwz     r0,28(r1)                              
                                                                      
      _Workspace_Free( information->object_blocks[ block ] );         
      information->object_blocks[ block ] = NULL;                     
      information->inactive_per_block[ block ] = 0;                   
                                                                      
      information->inactive -= information->allocation_size;          
ffc0bd0c:	a1 1c 00 2c 	lhz     r8,44(r28)                             
      return;                                                         
    }                                                                 
                                                                      
    index_base += information->allocation_size;                       
  }                                                                   
}                                                                     
ffc0bd10:	7c 08 03 a6 	mtlr    r0                                     
      /*                                                              
       *  Free the memory and reset the structures in the object' information
       */                                                             
                                                                      
      _Workspace_Free( information->object_blocks[ block ] );         
      information->object_blocks[ block ] = NULL;                     
ffc0bd14:	7f c9 e9 2e 	stwx    r30,r9,r29                             
      information->inactive_per_block[ block ] = 0;                   
                                                                      
      information->inactive -= information->allocation_size;          
ffc0bd18:	a1 5c 00 14 	lhz     r10,20(r28)                            
       *  Free the memory and reset the structures in the object' information
       */                                                             
                                                                      
      _Workspace_Free( information->object_blocks[ block ] );         
      information->object_blocks[ block ] = NULL;                     
      information->inactive_per_block[ block ] = 0;                   
ffc0bd1c:	81 3c 00 30 	lwz     r9,48(r28)                             
                                                                      
      information->inactive -= information->allocation_size;          
ffc0bd20:	7d 4a 40 50 	subf    r10,r10,r8                             
      return;                                                         
    }                                                                 
                                                                      
    index_base += information->allocation_size;                       
  }                                                                   
}                                                                     
ffc0bd24:	83 e1 00 14 	lwz     r31,20(r1)                             
       *  Free the memory and reset the structures in the object' information
       */                                                             
                                                                      
      _Workspace_Free( information->object_blocks[ block ] );         
      information->object_blocks[ block ] = NULL;                     
      information->inactive_per_block[ block ] = 0;                   
ffc0bd28:	7f c9 e9 2e 	stwx    r30,r9,r29                             
                                                                      
      information->inactive -= information->allocation_size;          
ffc0bd2c:	b1 5c 00 2c 	sth     r10,44(r28)                            
      return;                                                         
    }                                                                 
                                                                      
    index_base += information->allocation_size;                       
  }                                                                   
}                                                                     
ffc0bd30:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0bd34:	83 81 00 08 	lwz     r28,8(r1)                              
ffc0bd38:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0bd3c:	38 21 00 18 	addi    r1,r1,24                               
ffc0bd40:	4e 80 00 20 	blr                                            
                                                                      

ffc0bbcc <_POSIX_Absolute_timeout_to_ticks>: */ POSIX_Absolute_timeout_conversion_results_t _POSIX_Absolute_timeout_to_ticks( const struct timespec *abstime, Watchdog_Interval *ticks_out ) {
ffc0bbcc:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc0bbd0:	7c 08 02 a6 	mflr    r0                                     
                                                                      
                                                                      
  /*                                                                  
   *  Make sure there is always a value returned.                     
   */                                                                 
  *ticks_out = 0;                                                     
ffc0bbd4:	39 20 00 00 	li      r9,0                                   
 */                                                                   
POSIX_Absolute_timeout_conversion_results_t _POSIX_Absolute_timeout_to_ticks(
  const struct timespec *abstime,                                     
  Watchdog_Interval     *ticks_out                                    
)                                                                     
{                                                                     
ffc0bbd8:	93 81 00 28 	stw     r28,40(r1)                             
ffc0bbdc:	7c 7c 1b 78 	mr      r28,r3                                 
ffc0bbe0:	93 a1 00 2c 	stw     r29,44(r1)                             
ffc0bbe4:	7c 9d 23 78 	mr      r29,r4                                 
ffc0bbe8:	90 01 00 3c 	stw     r0,60(r1)                              
ffc0bbec:	93 c1 00 30 	stw     r30,48(r1)                             
ffc0bbf0:	93 e1 00 34 	stw     r31,52(r1)                             
                                                                      
                                                                      
  /*                                                                  
   *  Make sure there is always a value returned.                     
   */                                                                 
  *ticks_out = 0;                                                     
ffc0bbf4:	91 24 00 00 	stw     r9,0(r4)                               
                                                                      
  /*                                                                  
   *  Is the absolute time even valid?                                
   */                                                                 
  if ( !_Timespec_Is_valid(abstime) )                                 
ffc0bbf8:	48 00 51 99 	bl      ffc10d90 <_Timespec_Is_valid>          
ffc0bbfc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0bc00:	40 9e 00 28 	bne-    cr7,ffc0bc28 <_POSIX_Absolute_timeout_to_ticks+0x5c>
    return POSIX_ABSOLUTE_TIMEOUT_INVALID;                            
ffc0bc04:	38 60 00 00 	li      r3,0                                   
  /*                                                                  
   *  This is the case we were expecting and it took this long to     
   *  get here.                                                       
   */                                                                 
  return POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE;                         
}                                                                     
ffc0bc08:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc0bc0c:	83 81 00 28 	lwz     r28,40(r1)                             
ffc0bc10:	7c 08 03 a6 	mtlr    r0                                     
ffc0bc14:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc0bc18:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc0bc1c:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc0bc20:	38 21 00 38 	addi    r1,r1,56                               
ffc0bc24:	4e 80 00 20 	blr                                            
)                                                                     
{                                                                     
  Timestamp_Control  tod_as_timestamp;                                
  Timestamp_Control *tod_as_timestamp_ptr;                            
                                                                      
  tod_as_timestamp_ptr =                                              
ffc0bc28:	3c 80 00 00 	lis     r4,0                                   
ffc0bc2c:	38 84 2c c0 	addi    r4,r4,11456                            
ffc0bc30:	38 61 00 18 	addi    r3,r1,24                               
ffc0bc34:	48 00 26 41 	bl      ffc0e274 <_TOD_Get_with_nanoseconds>   
static inline void _Timestamp64_implementation_To_timespec(           
  const Timestamp64_Control *_timestamp,                              
  struct timespec           *_timespec                                
)                                                                     
{                                                                     
  _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);           
ffc0bc38:	3c c0 3b 9a 	lis     r6,15258                               
ffc0bc3c:	83 c3 00 00 	lwz     r30,0(r3)                              
ffc0bc40:	38 a0 00 00 	li      r5,0                                   
ffc0bc44:	83 e3 00 04 	lwz     r31,4(r3)                              
ffc0bc48:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc0bc4c:	7f c3 f3 78 	mr      r3,r30                                 
ffc0bc50:	7f e4 fb 78 	mr      r4,r31                                 
ffc0bc54:	48 00 f7 01 	bl      ffc1b354 <__divdi3>                    
  _timespec->tv_nsec = (long) (*_timestamp % 1000000000L);            
ffc0bc58:	3c c0 3b 9a 	lis     r6,15258                               
static inline void _Timestamp64_implementation_To_timespec(           
  const Timestamp64_Control *_timestamp,                              
  struct timespec           *_timespec                                
)                                                                     
{                                                                     
  _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);           
ffc0bc5c:	90 81 00 10 	stw     r4,16(r1)                              
  _timespec->tv_nsec = (long) (*_timestamp % 1000000000L);            
ffc0bc60:	38 a0 00 00 	li      r5,0                                   
ffc0bc64:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc0bc68:	7f c3 f3 78 	mr      r3,r30                                 
ffc0bc6c:	7f e4 fb 78 	mr      r4,r31                                 
ffc0bc70:	48 00 fb 09 	bl      ffc1b778 <__moddi3>                    
  /*                                                                  
   *  Is the absolute time in the past?                               
   */                                                                 
  _TOD_Get( ¤t_time );                                          
                                                                      
  if ( _Timespec_Less_than( abstime, ¤t_time ) )                
ffc0bc74:	7f 83 e3 78 	mr      r3,r28                                 
ffc0bc78:	90 81 00 14 	stw     r4,20(r1)                              
ffc0bc7c:	38 81 00 10 	addi    r4,r1,16                               
ffc0bc80:	48 00 51 51 	bl      ffc10dd0 <_Timespec_Less_than>         
ffc0bc84:	2f 83 00 00 	cmpwi   cr7,r3,0                               
    return POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST;                         
ffc0bc88:	38 60 00 01 	li      r3,1                                   
  /*                                                                  
   *  Is the absolute time in the past?                               
   */                                                                 
  _TOD_Get( ¤t_time );                                          
                                                                      
  if ( _Timespec_Less_than( abstime, ¤t_time ) )                
ffc0bc8c:	40 9e ff 7c 	bne+    cr7,ffc0bc08 <_POSIX_Absolute_timeout_to_ticks+0x3c>
    return POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST;                         
                                                                      
  /*                                                                  
   *  How long until the requested absolute time?                     
   */                                                                 
  _Timespec_Subtract( ¤t_time, abstime, &difference );          
ffc0bc90:	7f 84 e3 78 	mr      r4,r28                                 
ffc0bc94:	38 a1 00 08 	addi    r5,r1,8                                
ffc0bc98:	38 61 00 10 	addi    r3,r1,16                               
ffc0bc9c:	48 00 51 71 	bl      ffc10e0c <_Timespec_Subtract>          
                                                                      
  /*                                                                  
   *  Internally the SuperCore uses ticks, so convert to them.        
   */                                                                 
  *ticks_out = _Timespec_To_ticks( &difference );                     
ffc0bca0:	38 61 00 08 	addi    r3,r1,8                                
ffc0bca4:	48 00 51 b5 	bl      ffc10e58 <_Timespec_To_ticks>          
                                                                      
  /*                                                                  
   *  If the difference was 0, then the future is now.  It is so bright
   *  we better wear shades.                                          
   */                                                                 
  if ( !*ticks_out )                                                  
ffc0bca8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
  _Timespec_Subtract( ¤t_time, abstime, &difference );          
                                                                      
  /*                                                                  
   *  Internally the SuperCore uses ticks, so convert to them.        
   */                                                                 
  *ticks_out = _Timespec_To_ticks( &difference );                     
ffc0bcac:	90 7d 00 00 	stw     r3,0(r29)                              
                                                                      
  /*                                                                  
   *  This is the case we were expecting and it took this long to     
   *  get here.                                                       
   */                                                                 
  return POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE;                         
ffc0bcb0:	38 60 00 03 	li      r3,3                                   
                                                                      
  /*                                                                  
   *  If the difference was 0, then the future is now.  It is so bright
   *  we better wear shades.                                          
   */                                                                 
  if ( !*ticks_out )                                                  
ffc0bcb4:	40 be ff 54 	bne-    cr7,ffc0bc08 <_POSIX_Absolute_timeout_to_ticks+0x3c><== ALWAYS TAKEN
    return POSIX_ABSOLUTE_TIMEOUT_IS_NOW;                             
ffc0bcb8:	38 60 00 02 	li      r3,2                                   <== NOT EXECUTED
ffc0bcbc:	4b ff ff 4c 	b       ffc0bc08 <_POSIX_Absolute_timeout_to_ticks+0x3c><== NOT EXECUTED
                                                                      

ffc127f4 <_POSIX_Keys_Run_destructors>: */ void _POSIX_Keys_Run_destructors( Thread_Control *thread ) {
ffc127f4:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc127f8:	7c 08 02 a6 	mflr    r0                                     
ffc127fc:	90 01 00 24 	stw     r0,36(r1)                              
ffc12800:	93 81 00 10 	stw     r28,16(r1)                             
  Objects_Maximum thread_index = _Objects_Get_index( thread->Object.id );
ffc12804:	83 83 00 08 	lwz     r28,8(r3)                              
 */                                                                   
                                                                      
void _POSIX_Keys_Run_destructors(                                     
  Thread_Control *thread                                              
)                                                                     
{                                                                     
ffc12808:	93 61 00 0c 	stw     r27,12(r1)                             
    for ( index = 1 ; index <= max ; ++index ) {                      
      POSIX_Keys_Control *key = (POSIX_Keys_Control *)                
        _POSIX_Keys_Information.local_table [ index ];                
                                                                      
      if ( key != NULL && key->destructor != NULL ) {                 
        void *value = key->Values [ thread_api ][ thread_index ];     
ffc1280c:	57 9b 56 fa 	rlwinm  r27,r28,10,27,29                       
 */                                                                   
                                                                      
void _POSIX_Keys_Run_destructors(                                     
  Thread_Control *thread                                              
)                                                                     
{                                                                     
ffc12810:	93 c1 00 18 	stw     r30,24(r1)                             
ffc12814:	3f c0 00 00 	lis     r30,0                                  
    for ( index = 1 ; index <= max ; ++index ) {                      
      POSIX_Keys_Control *key = (POSIX_Keys_Control *)                
        _POSIX_Keys_Information.local_table [ index ];                
                                                                      
      if ( key != NULL && key->destructor != NULL ) {                 
        void *value = key->Values [ thread_api ][ thread_index ];     
ffc12818:	57 9c 13 ba 	rlwinm  r28,r28,2,14,29                        
 */                                                                   
                                                                      
void _POSIX_Keys_Run_destructors(                                     
  Thread_Control *thread                                              
)                                                                     
{                                                                     
ffc1281c:	93 a1 00 14 	stw     r29,20(r1)                             
ffc12820:	3b de 30 58 	addi    r30,r30,12376                          
    for ( index = 1 ; index <= max ; ++index ) {                      
      POSIX_Keys_Control *key = (POSIX_Keys_Control *)                
        _POSIX_Keys_Information.local_table [ index ];                
                                                                      
      if ( key != NULL && key->destructor != NULL ) {                 
        void *value = key->Values [ thread_api ][ thread_index ];     
ffc12824:	3b 7b 00 10 	addi    r27,r27,16                             
 */                                                                   
                                                                      
void _POSIX_Keys_Run_destructors(                                     
  Thread_Control *thread                                              
)                                                                     
{                                                                     
ffc12828:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc1282c:	93 41 00 08 	stw     r26,8(r1)                              
                                                                      
      if ( key != NULL && key->destructor != NULL ) {                 
        void *value = key->Values [ thread_api ][ thread_index ];     
                                                                      
        if ( value != NULL ) {                                        
          key->Values [ thread_api ][ thread_index ] = NULL;          
ffc12830:	3b 40 00 00 	li      r26,0                                  
   *                                                                  
   *  Reference: 17.1.1.2 P1003.1c/Draft 10, p. 163, line 99.         
   */                                                                 
  while ( !done ) {                                                   
    Objects_Maximum index = 0;                                        
    Objects_Maximum max = _POSIX_Keys_Information.maximum;            
ffc12834:	a3 fe 00 10 	lhz     r31,16(r30)                            
                                                                      
    done = true;                                                      
                                                                      
    for ( index = 1 ; index <= max ; ++index ) {                      
ffc12838:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc1283c:	40 9e 00 2c 	bne-    cr7,ffc12868 <_POSIX_Keys_Run_destructors+0x74>
          done = false;                                               
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
}                                                                     
ffc12840:	80 01 00 24 	lwz     r0,36(r1)                              
ffc12844:	83 41 00 08 	lwz     r26,8(r1)                              
ffc12848:	7c 08 03 a6 	mtlr    r0                                     
ffc1284c:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc12850:	83 81 00 10 	lwz     r28,16(r1)                             
ffc12854:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc12858:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc1285c:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc12860:	38 21 00 20 	addi    r1,r1,32                               
ffc12864:	4e 80 00 20 	blr                                            
    Objects_Maximum index = 0;                                        
    Objects_Maximum max = _POSIX_Keys_Information.maximum;            
                                                                      
    done = true;                                                      
                                                                      
    for ( index = 1 ; index <= max ; ++index ) {                      
ffc12868:	3b a0 00 01 	li      r29,1                                  
ffc1286c:	39 40 00 01 	li      r10,1                                  
      POSIX_Keys_Control *key = (POSIX_Keys_Control *)                
ffc12870:	81 3e 00 1c 	lwz     r9,28(r30)                             
ffc12874:	57 a8 10 3a 	rlwinm  r8,r29,2,0,29                          
ffc12878:	7d 29 40 2e 	lwzx    r9,r9,r8                               
        _POSIX_Keys_Information.local_table [ index ];                
                                                                      
      if ( key != NULL && key->destructor != NULL ) {                 
ffc1287c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
        void *value = key->Values [ thread_api ][ thread_index ];     
ffc12880:	7d 09 da 14 	add     r8,r9,r27                              
                                                                      
    for ( index = 1 ; index <= max ; ++index ) {                      
      POSIX_Keys_Control *key = (POSIX_Keys_Control *)                
        _POSIX_Keys_Information.local_table [ index ];                
                                                                      
      if ( key != NULL && key->destructor != NULL ) {                 
ffc12884:	41 9e 00 34 	beq-    cr7,ffc128b8 <_POSIX_Keys_Run_destructors+0xc4>
ffc12888:	80 e9 00 10 	lwz     r7,16(r9)                              
ffc1288c:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc12890:	41 9e 00 28 	beq-    cr7,ffc128b8 <_POSIX_Keys_Run_destructors+0xc4>
        void *value = key->Values [ thread_api ][ thread_index ];     
ffc12894:	81 08 00 04 	lwz     r8,4(r8)                               
ffc12898:	7c 68 e0 2e 	lwzx    r3,r8,r28                              
                                                                      
        if ( value != NULL ) {                                        
ffc1289c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc128a0:	41 9e 00 18 	beq-    cr7,ffc128b8 <_POSIX_Keys_Run_destructors+0xc4><== ALWAYS TAKEN
          key->Values [ thread_api ][ thread_index ] = NULL;          
ffc128a4:	7f 48 e1 2e 	stwx    r26,r8,r28                             <== NOT EXECUTED
          (*key->destructor)( value );                                
ffc128a8:	81 29 00 10 	lwz     r9,16(r9)                              <== NOT EXECUTED
ffc128ac:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc128b0:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
          done = false;                                               
ffc128b4:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
    Objects_Maximum index = 0;                                        
    Objects_Maximum max = _POSIX_Keys_Information.maximum;            
                                                                      
    done = true;                                                      
                                                                      
    for ( index = 1 ; index <= max ; ++index ) {                      
ffc128b8:	3b bd 00 01 	addi    r29,r29,1                              
ffc128bc:	57 bd 04 3e 	clrlwi  r29,r29,16                             
ffc128c0:	7f 9f e8 40 	cmplw   cr7,r31,r29                            
ffc128c4:	40 bc ff ac 	bge-    cr7,ffc12870 <_POSIX_Keys_Run_destructors+0x7c>
   *  number of iterations.  An infinite loop may happen if destructors set
   *  thread specific data.  This can be considered dubious.          
   *                                                                  
   *  Reference: 17.1.1.2 P1003.1c/Draft 10, p. 163, line 99.         
   */                                                                 
  while ( !done ) {                                                   
ffc128c8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc128cc:	41 9e ff 68 	beq+    cr7,ffc12834 <_POSIX_Keys_Run_destructors+0x40><== NEVER TAKEN
ffc128d0:	4b ff ff 70 	b       ffc12840 <_POSIX_Keys_Run_destructors+0x4c>
                                                                      

ffc0f758 <_POSIX_Message_queue_Receive_support>: size_t msg_len, unsigned int *msg_prio, bool wait, Watchdog_Interval timeout ) {
ffc0f758:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0f75c:	7c 08 02 a6 	mflr    r0                                     
ffc0f760:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc0f764:	7c 7f 1b 78 	mr      r31,r3                                 
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd (
  mqd_t              id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (POSIX_Message_queue_Control_fd *) _Objects_Get(             
ffc0f768:	3c 60 00 00 	lis     r3,0                                   
ffc0f76c:	93 81 00 20 	stw     r28,32(r1)                             
ffc0f770:	38 63 36 4c 	addi    r3,r3,13900                            
ffc0f774:	7c 9c 23 78 	mr      r28,r4                                 
ffc0f778:	93 a1 00 24 	stw     r29,36(r1)                             
ffc0f77c:	7f e4 fb 78 	mr      r4,r31                                 
ffc0f780:	7c bd 2b 78 	mr      r29,r5                                 
ffc0f784:	38 a1 00 0c 	addi    r5,r1,12                               
ffc0f788:	93 41 00 18 	stw     r26,24(r1)                             
ffc0f78c:	7c fa 3b 78 	mr      r26,r7                                 
ffc0f790:	93 61 00 1c 	stw     r27,28(r1)                             
ffc0f794:	7d 1b 43 78 	mr      r27,r8                                 
ffc0f798:	93 c1 00 28 	stw     r30,40(r1)                             
ffc0f79c:	7c de 33 78 	mr      r30,r6                                 
ffc0f7a0:	90 01 00 34 	stw     r0,52(r1)                              
ffc0f7a4:	48 00 40 85 	bl      ffc13828 <_Objects_Get>                
  Objects_Locations                location;                          
  size_t                           length_out;                        
  bool                             do_wait;                           
                                                                      
  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );        
  switch ( location ) {                                               
ffc0f7a8:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc0f7ac:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f7b0:	41 9e 00 3c 	beq-    cr7,ffc0f7ec <_POSIX_Message_queue_Receive_support+0x94>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EBADF );                      
ffc0f7b4:	48 00 be b1 	bl      ffc1b664 <__errno>                     
ffc0f7b8:	39 20 00 09 	li      r9,9                                   
ffc0f7bc:	91 23 00 00 	stw     r9,0(r3)                               
ffc0f7c0:	38 60 ff ff 	li      r3,-1                                  
}                                                                     
ffc0f7c4:	80 01 00 34 	lwz     r0,52(r1)                              
ffc0f7c8:	83 41 00 18 	lwz     r26,24(r1)                             
ffc0f7cc:	7c 08 03 a6 	mtlr    r0                                     
ffc0f7d0:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc0f7d4:	83 81 00 20 	lwz     r28,32(r1)                             
ffc0f7d8:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc0f7dc:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc0f7e0:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc0f7e4:	38 21 00 30 	addi    r1,r1,48                               
ffc0f7e8:	4e 80 00 20 	blr                                            
                                                                      
  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );        
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) {             
ffc0f7ec:	81 23 00 14 	lwz     r9,20(r3)                              
ffc0f7f0:	55 2a 07 be 	clrlwi  r10,r9,30                              
ffc0f7f4:	2f 8a 00 01 	cmpwi   cr7,r10,1                              
ffc0f7f8:	41 9e 00 e8 	beq-    cr7,ffc0f8e0 <_POSIX_Message_queue_Receive_support+0x188>
        _Thread_Enable_dispatch();                                    
        rtems_set_errno_and_return_minus_one( EBADF );                
      }                                                               
                                                                      
      the_mq = the_mq_fd->Queue;                                      
ffc0f7fc:	80 63 00 10 	lwz     r3,16(r3)                              
                                                                      
      if ( msg_len < the_mq->Message_queue.maximum_message_size ) {   
ffc0f800:	81 43 00 68 	lwz     r10,104(r3)                            
ffc0f804:	7f 8a e8 40 	cmplw   cr7,r10,r29                            
ffc0f808:	41 9d 00 a0 	bgt-    cr7,ffc0f8a8 <_POSIX_Message_queue_Receive_support+0x150>
      length_out = -1;                                                
                                                                      
      /*                                                              
       *  A timed receive with a bad time will do a poll regardless.  
       */                                                             
      if ( wait )                                                     
ffc0f80c:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
      /*                                                              
       *  Now if something goes wrong, we return a "length" of -1     
       *  to indicate an error.                                       
       */                                                             
                                                                      
      length_out = -1;                                                
ffc0f810:	39 40 ff ff 	li      r10,-1                                 
ffc0f814:	91 41 00 08 	stw     r10,8(r1)                              
                                                                      
      /*                                                              
       *  A timed receive with a bad time will do a poll regardless.  
       */                                                             
      if ( wait )                                                     
ffc0f818:	38 e0 00 00 	li      r7,0                                   
ffc0f81c:	40 9e 00 80 	bne-    cr7,ffc0f89c <_POSIX_Message_queue_Receive_support+0x144>
        do_wait = wait;                                               
                                                                      
      /*                                                              
       *  Now perform the actual message receive                      
       */                                                             
      _CORE_message_queue_Seize(                                      
ffc0f820:	7f e4 fb 78 	mr      r4,r31                                 
ffc0f824:	38 63 00 1c 	addi    r3,r3,28                               
ffc0f828:	7f 85 e3 78 	mr      r5,r28                                 
ffc0f82c:	38 c1 00 08 	addi    r6,r1,8                                
ffc0f830:	7f 68 db 78 	mr      r8,r27                                 
ffc0f834:	48 00 2a cd 	bl      ffc12300 <_CORE_message_queue_Seize>   
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if (msg_prio) {                                                 
        *msg_prio = _POSIX_Message_queue_Priority_from_core(          
             _Thread_Executing->Wait.count                            
ffc0f838:	3f e0 00 00 	lis     r31,0                                  
        &length_out,                                                  
        do_wait,                                                      
        timeout                                                       
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
ffc0f83c:	48 00 51 65 	bl      ffc149a0 <_Thread_Enable_dispatch>     
      if (msg_prio) {                                                 
ffc0f840:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
        *msg_prio = _POSIX_Message_queue_Priority_from_core(          
             _Thread_Executing->Wait.count                            
ffc0f844:	3b ff 36 e0 	addi    r31,r31,14048                          
ffc0f848:	81 3f 00 10 	lwz     r9,16(r31)                             
        do_wait,                                                      
        timeout                                                       
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if (msg_prio) {                                                 
ffc0f84c:	41 9e 00 18 	beq-    cr7,ffc0f864 <_POSIX_Message_queue_Receive_support+0x10c><== NEVER TAKEN
RTEMS_INLINE_ROUTINE unsigned int _POSIX_Message_queue_Priority_from_core(
  CORE_message_queue_Submit_types priority                            
)                                                                     
{                                                                     
  /* absolute value without a library dependency */                   
  return (unsigned int) ((priority >= 0) ? priority : -priority);     
ffc0f850:	81 49 00 24 	lwz     r10,36(r9)                             
ffc0f854:	7d 48 fe 70 	srawi   r8,r10,31                              
ffc0f858:	7d 0a 52 78 	xor     r10,r8,r10                             
ffc0f85c:	7d 48 50 50 	subf    r10,r8,r10                             
        *msg_prio = _POSIX_Message_queue_Priority_from_core(          
ffc0f860:	91 5e 00 00 	stw     r10,0(r30)                             
             _Thread_Executing->Wait.count                            
          );                                                          
      }                                                               
                                                                      
      if ( !_Thread_Executing->Wait.return_code )                     
ffc0f864:	81 29 00 34 	lwz     r9,52(r9)                              
ffc0f868:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f86c:	40 9e 00 54 	bne-    cr7,ffc0f8c0 <_POSIX_Message_queue_Receive_support+0x168>
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EBADF );                      
}                                                                     
ffc0f870:	80 01 00 34 	lwz     r0,52(r1)                              
             _Thread_Executing->Wait.count                            
          );                                                          
      }                                                               
                                                                      
      if ( !_Thread_Executing->Wait.return_code )                     
        return length_out;                                            
ffc0f874:	80 61 00 08 	lwz     r3,8(r1)                               
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EBADF );                      
}                                                                     
ffc0f878:	7c 08 03 a6 	mtlr    r0                                     
ffc0f87c:	83 41 00 18 	lwz     r26,24(r1)                             
ffc0f880:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc0f884:	83 81 00 20 	lwz     r28,32(r1)                             
ffc0f888:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc0f88c:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc0f890:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc0f894:	38 21 00 30 	addi    r1,r1,48                               
ffc0f898:	4e 80 00 20 	blr                                            
                                                                      
      /*                                                              
       *  A timed receive with a bad time will do a poll regardless.  
       */                                                             
      if ( wait )                                                     
        do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true;     
ffc0f89c:	69 29 40 00 	xori    r9,r9,16384                            
ffc0f8a0:	55 27 97 fe 	rlwinm  r7,r9,18,31,31                         
ffc0f8a4:	4b ff ff 7c 	b       ffc0f820 <_POSIX_Message_queue_Receive_support+0xc8>
      }                                                               
                                                                      
      the_mq = the_mq_fd->Queue;                                      
                                                                      
      if ( msg_len < the_mq->Message_queue.maximum_message_size ) {   
        _Thread_Enable_dispatch();                                    
ffc0f8a8:	48 00 50 f9 	bl      ffc149a0 <_Thread_Enable_dispatch>     
        rtems_set_errno_and_return_minus_one( EMSGSIZE );             
ffc0f8ac:	48 00 bd b9 	bl      ffc1b664 <__errno>                     
ffc0f8b0:	39 20 00 7a 	li      r9,122                                 
ffc0f8b4:	91 23 00 00 	stw     r9,0(r3)                               
ffc0f8b8:	38 60 ff ff 	li      r3,-1                                  
ffc0f8bc:	4b ff ff 08 	b       ffc0f7c4 <_POSIX_Message_queue_Receive_support+0x6c>
      }                                                               
                                                                      
      if ( !_Thread_Executing->Wait.return_code )                     
        return length_out;                                            
                                                                      
      rtems_set_errno_and_return_minus_one(                           
ffc0f8c0:	48 00 bd a5 	bl      ffc1b664 <__errno>                     
ffc0f8c4:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc0f8c8:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0f8cc:	80 69 00 34 	lwz     r3,52(r9)                              
ffc0f8d0:	48 00 03 51 	bl      ffc0fc20 <_POSIX_Message_queue_Translate_core_message_queue_return_code>
ffc0f8d4:	90 7e 00 00 	stw     r3,0(r30)                              
ffc0f8d8:	38 60 ff ff 	li      r3,-1                                  
ffc0f8dc:	4b ff fe e8 	b       ffc0f7c4 <_POSIX_Message_queue_Receive_support+0x6c>
  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );        
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( (the_mq_fd->oflag & O_ACCMODE) == O_WRONLY ) {             
        _Thread_Enable_dispatch();                                    
ffc0f8e0:	48 00 50 c1 	bl      ffc149a0 <_Thread_Enable_dispatch>     
        rtems_set_errno_and_return_minus_one( EBADF );                
ffc0f8e4:	48 00 bd 81 	bl      ffc1b664 <__errno>                     
ffc0f8e8:	39 20 00 09 	li      r9,9                                   
ffc0f8ec:	91 23 00 00 	stw     r9,0(r3)                               
ffc0f8f0:	38 60 ff ff 	li      r3,-1                                  
ffc0f8f4:	4b ff fe d0 	b       ffc0f7c4 <_POSIX_Message_queue_Receive_support+0x6c>
                                                                      

ffc0f904 <_POSIX_Message_queue_Send_support>: /* * Validate the priority. * XXX - Do not validate msg_prio is not less than 0. */ if ( msg_prio > MQ_PRIO_MAX )
ffc0f904:	2b 86 00 20 	cmplwi  cr7,r6,32                              
  size_t              msg_len,                                        
  unsigned int        msg_prio,                                       
  bool                wait,                                           
  Watchdog_Interval   timeout                                         
)                                                                     
{                                                                     
ffc0f908:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0f90c:	7c 08 02 a6 	mflr    r0                                     
ffc0f910:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc0f914:	7c df 33 78 	mr      r31,r6                                 
ffc0f918:	90 01 00 34 	stw     r0,52(r1)                              
ffc0f91c:	93 41 00 18 	stw     r26,24(r1)                             
ffc0f920:	93 61 00 1c 	stw     r27,28(r1)                             
ffc0f924:	93 81 00 20 	stw     r28,32(r1)                             
ffc0f928:	93 a1 00 24 	stw     r29,36(r1)                             
ffc0f92c:	93 c1 00 28 	stw     r30,40(r1)                             
  /*                                                                  
   * Validate the priority.                                           
   * XXX - Do not validate msg_prio is not less than 0.               
   */                                                                 
                                                                      
  if ( msg_prio > MQ_PRIO_MAX )                                       
ffc0f930:	41 9d 01 14 	bgt-    cr7,ffc0fa44 <_POSIX_Message_queue_Send_support+0x140>
ffc0f934:	7c 7e 1b 78 	mr      r30,r3                                 
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *_POSIX_Message_queue_Get_fd (
  mqd_t              id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (POSIX_Message_queue_Control_fd *) _Objects_Get(             
ffc0f938:	3c 60 00 00 	lis     r3,0                                   
ffc0f93c:	7c 9b 23 78 	mr      r27,r4                                 
ffc0f940:	7c bc 2b 78 	mr      r28,r5                                 
ffc0f944:	38 63 36 4c 	addi    r3,r3,13900                            
ffc0f948:	7f c4 f3 78 	mr      r4,r30                                 
ffc0f94c:	38 a1 00 08 	addi    r5,r1,8                                
ffc0f950:	7c fa 3b 78 	mr      r26,r7                                 
ffc0f954:	7d 1d 43 78 	mr      r29,r8                                 
ffc0f958:	48 00 3e d1 	bl      ffc13828 <_Objects_Get>                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );        
  switch ( location ) {                                               
ffc0f95c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc0f960:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f964:	40 9e 00 cc 	bne-    cr7,ffc0fa30 <_POSIX_Message_queue_Send_support+0x12c>
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( (the_mq_fd->oflag & O_ACCMODE) == O_RDONLY ) {             
ffc0f968:	80 c3 00 14 	lwz     r6,20(r3)                              
ffc0f96c:	70 c9 00 03 	andi.   r9,r6,3                                
ffc0f970:	41 82 00 e8 	beq-    ffc0fa58 <_POSIX_Message_queue_Send_support+0x154>
      the_mq = the_mq_fd->Queue;                                      
                                                                      
      /*                                                              
       *  A timed receive with a bad time will do a poll regardless.  
       */                                                             
      if ( wait )                                                     
ffc0f974:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
      if ( (the_mq_fd->oflag & O_ACCMODE) == O_RDONLY ) {             
        _Thread_Enable_dispatch();                                    
        rtems_set_errno_and_return_minus_one( EBADF );                
      }                                                               
                                                                      
      the_mq = the_mq_fd->Queue;                                      
ffc0f978:	80 63 00 10 	lwz     r3,16(r3)                              
                                                                      
      /*                                                              
       *  A timed receive with a bad time will do a poll regardless.  
       */                                                             
      if ( wait )                                                     
ffc0f97c:	39 20 00 00 	li      r9,0                                   
ffc0f980:	40 9e 00 68 	bne-    cr7,ffc0f9e8 <_POSIX_Message_queue_Send_support+0xe4>
        do_wait = wait;                                               
                                                                      
      /*                                                              
       *  Now perform the actual message receive                      
       */                                                             
      msg_status = _CORE_message_queue_Submit(                        
ffc0f984:	7d 1f 00 d0 	neg     r8,r31                                 
ffc0f988:	7f 64 db 78 	mr      r4,r27                                 
ffc0f98c:	7f 85 e3 78 	mr      r5,r28                                 
ffc0f990:	7f c6 f3 78 	mr      r6,r30                                 
ffc0f994:	38 e0 00 00 	li      r7,0                                   
ffc0f998:	7f aa eb 78 	mr      r10,r29                                
ffc0f99c:	38 63 00 1c 	addi    r3,r3,28                               
ffc0f9a0:	48 00 2a e9 	bl      ffc12488 <_CORE_message_queue_Submit>  
ffc0f9a4:	7c 7f 1b 78 	mr      r31,r3                                 
        _POSIX_Message_queue_Priority_to_core( msg_prio ),            
        do_wait,                                                      
        timeout    /* no timeout */                                   
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
ffc0f9a8:	48 00 4f f9 	bl      ffc149a0 <_Thread_Enable_dispatch>     
       *  after it wakes up.  The returned status is correct for      
       *  non-blocking operations but if we blocked, then we need     
       *  to look at the status in our TCB.                           
       */                                                             
                                                                      
      if ( msg_status == CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT ) 
ffc0f9ac:	2f 9f 00 07 	cmpwi   cr7,r31,7                              
ffc0f9b0:	41 9e 00 70 	beq-    cr7,ffc0fa20 <_POSIX_Message_queue_Send_support+0x11c><== NEVER TAKEN
        msg_status = _Thread_Executing->Wait.return_code;             
                                                                      
      if ( !msg_status )                                              
ffc0f9b4:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
        return msg_status;                                            
ffc0f9b8:	38 60 00 00 	li      r3,0                                   
       */                                                             
                                                                      
      if ( msg_status == CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT ) 
        msg_status = _Thread_Executing->Wait.return_code;             
                                                                      
      if ( !msg_status )                                              
ffc0f9bc:	40 9e 00 b4 	bne-    cr7,ffc0fa70 <_POSIX_Message_queue_Send_support+0x16c>
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EBADF );                      
}                                                                     
ffc0f9c0:	80 01 00 34 	lwz     r0,52(r1)                              
ffc0f9c4:	83 41 00 18 	lwz     r26,24(r1)                             
ffc0f9c8:	7c 08 03 a6 	mtlr    r0                                     
ffc0f9cc:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc0f9d0:	83 81 00 20 	lwz     r28,32(r1)                             
ffc0f9d4:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc0f9d8:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc0f9dc:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc0f9e0:	38 21 00 30 	addi    r1,r1,48                               
ffc0f9e4:	4e 80 00 20 	blr                                            
                                                                      
      /*                                                              
       *  A timed receive with a bad time will do a poll regardless.  
       */                                                             
      if ( wait )                                                     
        do_wait = (the_mq_fd->oflag & O_NONBLOCK) ? false : true;     
ffc0f9e8:	68 c6 40 00 	xori    r6,r6,16384                            
ffc0f9ec:	54 c9 97 fe 	rlwinm  r9,r6,18,31,31                         
        do_wait = wait;                                               
                                                                      
      /*                                                              
       *  Now perform the actual message receive                      
       */                                                             
      msg_status = _CORE_message_queue_Submit(                        
ffc0f9f0:	7d 1f 00 d0 	neg     r8,r31                                 
ffc0f9f4:	7f 64 db 78 	mr      r4,r27                                 
ffc0f9f8:	7f 85 e3 78 	mr      r5,r28                                 
ffc0f9fc:	7f c6 f3 78 	mr      r6,r30                                 
ffc0fa00:	38 e0 00 00 	li      r7,0                                   
ffc0fa04:	7f aa eb 78 	mr      r10,r29                                
ffc0fa08:	38 63 00 1c 	addi    r3,r3,28                               
ffc0fa0c:	48 00 2a 7d 	bl      ffc12488 <_CORE_message_queue_Submit>  
ffc0fa10:	7c 7f 1b 78 	mr      r31,r3                                 
        _POSIX_Message_queue_Priority_to_core( msg_prio ),            
        do_wait,                                                      
        timeout    /* no timeout */                                   
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
ffc0fa14:	48 00 4f 8d 	bl      ffc149a0 <_Thread_Enable_dispatch>     
       *  after it wakes up.  The returned status is correct for      
       *  non-blocking operations but if we blocked, then we need     
       *  to look at the status in our TCB.                           
       */                                                             
                                                                      
      if ( msg_status == CORE_MESSAGE_QUEUE_STATUS_UNSATISFIED_WAIT ) 
ffc0fa18:	2f 9f 00 07 	cmpwi   cr7,r31,7                              
ffc0fa1c:	40 9e ff 98 	bne+    cr7,ffc0f9b4 <_POSIX_Message_queue_Send_support+0xb0>
        msg_status = _Thread_Executing->Wait.return_code;             
ffc0fa20:	3d 20 00 00 	lis     r9,0                                   
ffc0fa24:	81 29 36 f0 	lwz     r9,14064(r9)                           
ffc0fa28:	83 e9 00 34 	lwz     r31,52(r9)                             
ffc0fa2c:	4b ff ff 88 	b       ffc0f9b4 <_POSIX_Message_queue_Send_support+0xb0>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EBADF );                      
ffc0fa30:	48 00 bc 35 	bl      ffc1b664 <__errno>                     
ffc0fa34:	39 20 00 09 	li      r9,9                                   
ffc0fa38:	91 23 00 00 	stw     r9,0(r3)                               
ffc0fa3c:	38 60 ff ff 	li      r3,-1                                  
ffc0fa40:	4b ff ff 80 	b       ffc0f9c0 <_POSIX_Message_queue_Send_support+0xbc>
   * Validate the priority.                                           
   * XXX - Do not validate msg_prio is not less than 0.               
   */                                                                 
                                                                      
  if ( msg_prio > MQ_PRIO_MAX )                                       
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc0fa44:	48 00 bc 21 	bl      ffc1b664 <__errno>                     
ffc0fa48:	39 20 00 16 	li      r9,22                                  
ffc0fa4c:	91 23 00 00 	stw     r9,0(r3)                               
ffc0fa50:	38 60 ff ff 	li      r3,-1                                  
ffc0fa54:	4b ff ff 6c 	b       ffc0f9c0 <_POSIX_Message_queue_Send_support+0xbc>
  the_mq_fd = _POSIX_Message_queue_Get_fd( mqdes, &location );        
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( (the_mq_fd->oflag & O_ACCMODE) == O_RDONLY ) {             
        _Thread_Enable_dispatch();                                    
ffc0fa58:	48 00 4f 49 	bl      ffc149a0 <_Thread_Enable_dispatch>     
        rtems_set_errno_and_return_minus_one( EBADF );                
ffc0fa5c:	48 00 bc 09 	bl      ffc1b664 <__errno>                     
ffc0fa60:	39 20 00 09 	li      r9,9                                   
ffc0fa64:	91 23 00 00 	stw     r9,0(r3)                               
ffc0fa68:	38 60 ff ff 	li      r3,-1                                  
ffc0fa6c:	4b ff ff 54 	b       ffc0f9c0 <_POSIX_Message_queue_Send_support+0xbc>
        msg_status = _Thread_Executing->Wait.return_code;             
                                                                      
      if ( !msg_status )                                              
        return msg_status;                                            
                                                                      
      rtems_set_errno_and_return_minus_one(                           
ffc0fa70:	48 00 bb f5 	bl      ffc1b664 <__errno>                     
ffc0fa74:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0fa78:	7f e3 fb 78 	mr      r3,r31                                 
ffc0fa7c:	48 00 01 a5 	bl      ffc0fc20 <_POSIX_Message_queue_Translate_core_message_queue_return_code>
ffc0fa80:	90 7e 00 00 	stw     r3,0(r30)                              
ffc0fa84:	38 60 ff ff 	li      r3,-1                                  
ffc0fa88:	4b ff ff 38 	b       ffc0f9c0 <_POSIX_Message_queue_Send_support+0xbc>
                                                                      

ffc12890 <_POSIX_Semaphore_Create_support>: size_t name_len, int pshared, unsigned int value, POSIX_Semaphore_Control **the_sem ) {
ffc12890:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc12894:	7c 08 02 a6 	mflr    r0                                     
ffc12898:	93 21 00 0c 	stw     r25,12(r1)                             
  POSIX_Semaphore_Control   *the_semaphore;                           
  CORE_semaphore_Attributes *the_sem_attr;                            
  char                      *name;                                    
                                                                      
  /* Sharing semaphores among processes is not currently supported */ 
  if (pshared != 0)                                                   
ffc1289c:	7c b9 2b 79 	mr.     r25,r5                                 
  size_t                     name_len,                                
  int                        pshared,                                 
  unsigned int               value,                                   
  POSIX_Semaphore_Control  **the_sem                                  
)                                                                     
{                                                                     
ffc128a0:	90 01 00 2c 	stw     r0,44(r1)                              
ffc128a4:	93 41 00 10 	stw     r26,16(r1)                             
ffc128a8:	93 61 00 14 	stw     r27,20(r1)                             
ffc128ac:	93 81 00 18 	stw     r28,24(r1)                             
ffc128b0:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc128b4:	93 c1 00 20 	stw     r30,32(r1)                             
ffc128b8:	93 e1 00 24 	stw     r31,36(r1)                             
  POSIX_Semaphore_Control   *the_semaphore;                           
  CORE_semaphore_Attributes *the_sem_attr;                            
  char                      *name;                                    
                                                                      
  /* Sharing semaphores among processes is not currently supported */ 
  if (pshared != 0)                                                   
ffc128bc:	40 82 00 f4 	bne-    ffc129b0 <_POSIX_Semaphore_Create_support+0x120>
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    uint32_t level = _Thread_Dispatch_disable_level;                  
ffc128c0:	3d 20 00 00 	lis     r9,0                                   
ffc128c4:	81 49 28 a8 	lwz     r10,10408(r9)                          
ffc128c8:	7c 7e 1b 78 	mr      r30,r3                                 
ffc128cc:	7c 9a 23 78 	mr      r26,r4                                 
                                                                      
    ++level;                                                          
ffc128d0:	39 4a 00 01 	addi    r10,r10,1                              
    _Thread_Dispatch_disable_level = level;                           
ffc128d4:	91 49 28 a8 	stw     r10,10408(r9)                          
ffc128d8:	7c dc 33 78 	mr      r28,r6                                 
ffc128dc:	7c fb 3b 78 	mr      r27,r7                                 
 *  _POSIX_Semaphore_Allocate                                         
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Allocate( void )
{                                                                     
  return (POSIX_Semaphore_Control *)                                  
ffc128e0:	3f a0 00 00 	lis     r29,0                                  
ffc128e4:	3b bd 59 00 	addi    r29,r29,22784                          
ffc128e8:	7f a3 eb 78 	mr      r3,r29                                 
ffc128ec:	4b ff ae bd 	bl      ffc0d7a8 <_Objects_Allocate>           
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  the_semaphore = _POSIX_Semaphore_Allocate();                        
  if ( !the_semaphore ) {                                             
ffc128f0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc128f4:	41 82 00 d0 	beq-    ffc129c4 <_POSIX_Semaphore_Create_support+0x134>
                                                                      
  /*                                                                  
   * Make a copy of the user's string for name just in case it was    
   * dynamically constructed.                                         
   */                                                                 
  if ( name_arg != NULL ) {                                           
ffc128f8:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc128fc:	41 9e 00 9c 	beq-    cr7,ffc12998 <_POSIX_Semaphore_Create_support+0x108>
    name = _Workspace_String_duplicate( name_arg, name_len );         
ffc12900:	7f 44 d3 78 	mr      r4,r26                                 
ffc12904:	7f c3 f3 78 	mr      r3,r30                                 
ffc12908:	48 00 11 1d 	bl      ffc13a24 <_Workspace_String_duplicate> 
    if ( !name ) {                                                    
ffc1290c:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc12910:	41 82 00 cc 	beq-    ffc129dc <_POSIX_Semaphore_Create_support+0x14c><== NEVER TAKEN
                                                                      
  the_semaphore->process_shared  = pshared;                           
                                                                      
  if ( name ) {                                                       
    the_semaphore->named = true;                                      
    the_semaphore->open_count = 1;                                    
ffc12914:	39 20 00 01 	li      r9,1                                   
    }                                                                 
  } else {                                                            
    name = NULL;                                                      
  }                                                                   
                                                                      
  the_semaphore->process_shared  = pshared;                           
ffc12918:	93 3f 00 10 	stw     r25,16(r31)                            
                                                                      
  if ( name ) {                                                       
    the_semaphore->named = true;                                      
ffc1291c:	39 40 00 01 	li      r10,1                                  
ffc12920:	99 5f 00 14 	stb     r10,20(r31)                            
    the_semaphore->open_count = 1;                                    
ffc12924:	91 3f 00 18 	stw     r9,24(r31)                             
    the_semaphore->linked = true;                                     
ffc12928:	99 3f 00 15 	stb     r9,21(r31)                             
   *  blocking tasks on this semaphore should be.  It could somehow   
   *  be derived from the current scheduling policy.  One             
   *  thing is certain, no matter what we decide, it won't be         
   *  the same as  all other POSIX implementations. :)                
   */                                                                 
  the_sem_attr->discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;         
ffc1292c:	39 20 00 00 	li      r9,0                                   
ffc12930:	91 3f 00 60 	stw     r9,96(r31)                             
                                                                      
  /*                                                                  
   *  This effectively disables limit checking.                       
   */                                                                 
  the_sem_attr->maximum_count = 0xFFFFFFFF;                           
ffc12934:	39 20 ff ff 	li      r9,-1                                  
                                                                      
  _CORE_semaphore_Initialize( &the_semaphore->Semaphore, the_sem_attr, value );
ffc12938:	38 7f 00 1c 	addi    r3,r31,28                              
  the_sem_attr->discipline = CORE_SEMAPHORE_DISCIPLINES_FIFO;         
                                                                      
  /*                                                                  
   *  This effectively disables limit checking.                       
   */                                                                 
  the_sem_attr->maximum_count = 0xFFFFFFFF;                           
ffc1293c:	91 3f 00 5c 	stw     r9,92(r31)                             
                                                                      
  _CORE_semaphore_Initialize( &the_semaphore->Semaphore, the_sem_attr, value );
ffc12940:	38 9f 00 5c 	addi    r4,r31,92                              
ffc12944:	7f 85 e3 78 	mr      r5,r28                                 
ffc12948:	4b ff a7 39 	bl      ffc0d080 <_CORE_semaphore_Initialize>  
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  const char          *name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
ffc1294c:	a1 3f 00 0a 	lhz     r9,10(r31)                             
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc12950:	81 5d 00 1c 	lwz     r10,28(r29)                            
ffc12954:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc12958:	7f ea 49 2e 	stwx    r31,r10,r9                             
    the_object                                                        
  );                                                                  
                                                                      
  #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                 
    /* ASSERT: information->is_string */                              
    the_object->name.name_p = name;                                   
ffc1295c:	93 5f 00 0c 	stw     r26,12(r31)                            
    &_POSIX_Semaphore_Information,                                    
    &the_semaphore->Object,                                           
    name                                                              
  );                                                                  
                                                                      
  *the_sem = the_semaphore;                                           
ffc12960:	93 fb 00 00 	stw     r31,0(r27)                             
                                                                      
  _Thread_Enable_dispatch();                                          
ffc12964:	4b ff c6 29 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
  return 0;                                                           
ffc12968:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc1296c:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc12970:	83 21 00 0c 	lwz     r25,12(r1)                             
ffc12974:	7c 08 03 a6 	mtlr    r0                                     
ffc12978:	83 41 00 10 	lwz     r26,16(r1)                             
ffc1297c:	83 61 00 14 	lwz     r27,20(r1)                             
ffc12980:	83 81 00 18 	lwz     r28,24(r1)                             
ffc12984:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc12988:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc1298c:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc12990:	38 21 00 28 	addi    r1,r1,40                               
ffc12994:	4e 80 00 20 	blr                                            
    }                                                                 
  } else {                                                            
    name = NULL;                                                      
  }                                                                   
                                                                      
  the_semaphore->process_shared  = pshared;                           
ffc12998:	93 df 00 10 	stw     r30,16(r31)                            
      _POSIX_Semaphore_Free( the_semaphore );                         
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one( ENOMEM );                 
    }                                                                 
  } else {                                                            
    name = NULL;                                                      
ffc1299c:	3b 40 00 00 	li      r26,0                                  
  if ( name ) {                                                       
    the_semaphore->named = true;                                      
    the_semaphore->open_count = 1;                                    
    the_semaphore->linked = true;                                     
  } else {                                                            
    the_semaphore->named = false;                                     
ffc129a0:	9b df 00 14 	stb     r30,20(r31)                            
    the_semaphore->open_count = 0;                                    
ffc129a4:	93 df 00 18 	stw     r30,24(r31)                            
    the_semaphore->linked = false;                                    
ffc129a8:	9b df 00 15 	stb     r30,21(r31)                            
ffc129ac:	4b ff ff 80 	b       ffc1292c <_POSIX_Semaphore_Create_support+0x9c>
  CORE_semaphore_Attributes *the_sem_attr;                            
  char                      *name;                                    
                                                                      
  /* Sharing semaphores among processes is not currently supported */ 
  if (pshared != 0)                                                   
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
ffc129b0:	48 00 2e cd 	bl      ffc1587c <__errno>                     
ffc129b4:	39 20 00 58 	li      r9,88                                  
ffc129b8:	91 23 00 00 	stw     r9,0(r3)                               
ffc129bc:	38 60 ff ff 	li      r3,-1                                  
ffc129c0:	4b ff ff ac 	b       ffc1296c <_POSIX_Semaphore_Create_support+0xdc>
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  the_semaphore = _POSIX_Semaphore_Allocate();                        
  if ( !the_semaphore ) {                                             
    _Thread_Enable_dispatch();                                        
ffc129c4:	4b ff c5 c9 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
    rtems_set_errno_and_return_minus_one( ENOSPC );                   
ffc129c8:	48 00 2e b5 	bl      ffc1587c <__errno>                     
ffc129cc:	39 20 00 1c 	li      r9,28                                  
ffc129d0:	91 23 00 00 	stw     r9,0(r3)                               
ffc129d4:	38 60 ff ff 	li      r3,-1                                  
ffc129d8:	4b ff ff 94 	b       ffc1296c <_POSIX_Semaphore_Create_support+0xdc>
                                                                      
RTEMS_INLINE_ROUTINE void _POSIX_Semaphore_Free (                     
  POSIX_Semaphore_Control *the_semaphore                              
)                                                                     
{                                                                     
  _Objects_Free( &_POSIX_Semaphore_Information, &the_semaphore->Object );
ffc129dc:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc129e0:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc129e4:	4b ff b1 d5 	bl      ffc0dbb8 <_Objects_Free>               <== NOT EXECUTED
   */                                                                 
  if ( name_arg != NULL ) {                                           
    name = _Workspace_String_duplicate( name_arg, name_len );         
    if ( !name ) {                                                    
      _POSIX_Semaphore_Free( the_semaphore );                         
      _Thread_Enable_dispatch();                                      
ffc129e8:	4b ff c5 a5 	bl      ffc0ef8c <_Thread_Enable_dispatch>     <== NOT EXECUTED
      rtems_set_errno_and_return_minus_one( ENOMEM );                 
ffc129ec:	48 00 2e 91 	bl      ffc1587c <__errno>                     <== NOT EXECUTED
ffc129f0:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc129f4:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc129f8:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc129fc:	4b ff ff 70 	b       ffc1296c <_POSIX_Semaphore_Create_support+0xdc><== NOT EXECUTED
                                                                      

ffc0f5a0 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch>: Thread_Control *the_thread ) { POSIX_API_Control *thread_support; thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];
ffc0f5a0:	81 23 01 50 	lwz     r9,336(r3)                             
                                                                      
  if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
ffc0f5a4:	81 49 00 d8 	lwz     r10,216(r9)                            
ffc0f5a8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0f5ac:	40 9e 00 10 	bne-    cr7,ffc0f5bc <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x1c><== NEVER TAKEN
ffc0f5b0:	81 49 00 dc 	lwz     r10,220(r9)                            
ffc0f5b4:	2f 8a 00 01 	cmpwi   cr7,r10,1                              
ffc0f5b8:	41 9e 00 08 	beq-    cr7,ffc0f5c0 <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x20>
       thread_support->cancelability_type == PTHREAD_CANCEL_ASYNCHRONOUS &&
       thread_support->cancelation_requested ) {                      
    _Thread_Unnest_dispatch();                                        
    _POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED );               
  } else                                                              
    _Thread_Enable_dispatch();                                        
ffc0f5bc:	4b ff d2 c0 	b       ffc0c87c <_Thread_Enable_dispatch>     
  POSIX_API_Control *thread_support;                                  
                                                                      
  thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];    
                                                                      
  if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
       thread_support->cancelability_type == PTHREAD_CANCEL_ASYNCHRONOUS &&
ffc0f5c0:	81 29 00 e0 	lwz     r9,224(r9)                             
ffc0f5c4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f5c8:	41 9e ff f4 	beq+    cr7,ffc0f5bc <_POSIX_Thread_Evaluate_cancellation_and_enable_dispatch+0x1c>
   *                                                                  
   * 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;                  
ffc0f5cc:	3d 20 00 00 	lis     r9,0                                   
ffc0f5d0:	81 49 28 70 	lwz     r10,10352(r9)                          
       thread_support->cancelation_requested ) {                      
    _Thread_Unnest_dispatch();                                        
    _POSIX_Thread_Exit( the_thread, PTHREAD_CANCELED );               
ffc0f5d4:	38 80 ff ff 	li      r4,-1                                  
                                                                      
    --level;                                                          
ffc0f5d8:	39 4a ff ff 	addi    r10,r10,-1                             
    _Thread_Dispatch_disable_level = level;                           
ffc0f5dc:	91 49 28 70 	stw     r10,10352(r9)                          
ffc0f5e0:	48 00 07 dc 	b       ffc0fdbc <_POSIX_Thread_Exit>          
                                                                      

ffc10cf0 <_POSIX_Thread_Translate_sched_param>: int policy, struct sched_param *param, Thread_CPU_budget_algorithms *budget_algorithm, Thread_CPU_budget_algorithm_callout *budget_callout ) {
ffc10cf0:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc10cf4:	7c 08 02 a6 	mflr    r0                                     
ffc10cf8:	93 c1 00 10 	stw     r30,16(r1)                             
ffc10cfc:	7c 7e 1b 78 	mr      r30,r3                                 
  if ( !_POSIX_Priority_Is_valid( param->sched_priority ) )           
ffc10d00:	80 64 00 00 	lwz     r3,0(r4)                               
  int                                  policy,                        
  struct sched_param                  *param,                         
  Thread_CPU_budget_algorithms        *budget_algorithm,              
  Thread_CPU_budget_algorithm_callout *budget_callout                 
)                                                                     
{                                                                     
ffc10d04:	93 81 00 08 	stw     r28,8(r1)                              
ffc10d08:	7c dc 33 78 	mr      r28,r6                                 
ffc10d0c:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc10d10:	7c bd 2b 78 	mr      r29,r5                                 
ffc10d14:	93 e1 00 14 	stw     r31,20(r1)                             
ffc10d18:	7c 9f 23 78 	mr      r31,r4                                 
ffc10d1c:	90 01 00 1c 	stw     r0,28(r1)                              
  if ( !_POSIX_Priority_Is_valid( param->sched_priority ) )           
ffc10d20:	4b ff ff a9 	bl      ffc10cc8 <_POSIX_Priority_Is_valid>    
ffc10d24:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc10d28:	40 9e 00 28 	bne-    cr7,ffc10d50 <_POSIX_Thread_Translate_sched_param+0x60><== ALWAYS TAKEN
    return EINVAL;                                                    
ffc10d2c:	38 60 00 16 	li      r3,22                                  
    *budget_callout = _POSIX_Threads_Sporadic_budget_callout;         
    return 0;                                                         
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
ffc10d30:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc10d34:	83 81 00 08 	lwz     r28,8(r1)                              
ffc10d38:	7c 08 03 a6 	mtlr    r0                                     
ffc10d3c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc10d40:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc10d44:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc10d48:	38 21 00 18 	addi    r1,r1,24                               
ffc10d4c:	4e 80 00 20 	blr                                            
    return EINVAL;                                                    
                                                                      
  *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;               
  *budget_callout = NULL;                                             
                                                                      
  if ( policy == SCHED_OTHER ) {                                      
ffc10d50:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
)                                                                     
{                                                                     
  if ( !_POSIX_Priority_Is_valid( param->sched_priority ) )           
    return EINVAL;                                                    
                                                                      
  *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;               
ffc10d54:	39 20 00 00 	li      r9,0                                   
ffc10d58:	91 3d 00 00 	stw     r9,0(r29)                              
  *budget_callout = NULL;                                             
ffc10d5c:	91 3c 00 00 	stw     r9,0(r28)                              
                                                                      
  if ( policy == SCHED_OTHER ) {                                      
ffc10d60:	41 9e 00 94 	beq-    cr7,ffc10df4 <_POSIX_Thread_Translate_sched_param+0x104>
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;  
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_FIFO ) {                                       
ffc10d64:	2f 9e 00 01 	cmpwi   cr7,r30,1                              
ffc10d68:	41 9e 00 b8 	beq-    cr7,ffc10e20 <_POSIX_Thread_Translate_sched_param+0x130>
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;             
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_RR ) {                                         
ffc10d6c:	2f 9e 00 02 	cmpwi   cr7,r30,2                              
ffc10d70:	41 9e 00 b8 	beq-    cr7,ffc10e28 <_POSIX_Thread_Translate_sched_param+0x138>
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE;
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_SPORADIC ) {                                   
ffc10d74:	2f 9e 00 04 	cmpwi   cr7,r30,4                              
ffc10d78:	40 9e ff b4 	bne+    cr7,ffc10d2c <_POSIX_Thread_Translate_sched_param+0x3c>
    if ( (param->sched_ss_repl_period.tv_sec == 0) &&                 
ffc10d7c:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc10d80:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10d84:	40 9e 00 10 	bne-    cr7,ffc10d94 <_POSIX_Thread_Translate_sched_param+0xa4>
ffc10d88:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc10d8c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10d90:	41 9e ff 9c 	beq+    cr7,ffc10d2c <_POSIX_Thread_Translate_sched_param+0x3c>
         (param->sched_ss_repl_period.tv_nsec == 0) )                 
      return EINVAL;                                                  
                                                                      
    if ( (param->sched_ss_init_budget.tv_sec == 0) &&                 
ffc10d94:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc10d98:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10d9c:	40 9e 00 10 	bne-    cr7,ffc10dac <_POSIX_Thread_Translate_sched_param+0xbc>
ffc10da0:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc10da4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10da8:	41 9e ff 84 	beq+    cr7,ffc10d2c <_POSIX_Thread_Translate_sched_param+0x3c>
         (param->sched_ss_init_budget.tv_nsec == 0) )                 
      return EINVAL;                                                  
                                                                      
    if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) <         
ffc10dac:	38 7f 00 08 	addi    r3,r31,8                               
ffc10db0:	4b ff d8 ed 	bl      ffc0e69c <_Timespec_To_ticks>          
ffc10db4:	7c 7e 1b 78 	mr      r30,r3                                 
	 _Timespec_To_ticks( ¶m->sched_ss_init_budget ) )                
ffc10db8:	38 7f 00 10 	addi    r3,r31,16                              
ffc10dbc:	4b ff d8 e1 	bl      ffc0e69c <_Timespec_To_ticks>          
                                                                      
    if ( (param->sched_ss_init_budget.tv_sec == 0) &&                 
         (param->sched_ss_init_budget.tv_nsec == 0) )                 
      return EINVAL;                                                  
                                                                      
    if ( _Timespec_To_ticks( ¶m->sched_ss_repl_period ) <         
ffc10dc0:	7f 9e 18 40 	cmplw   cr7,r30,r3                             
ffc10dc4:	41 9c ff 68 	blt+    cr7,ffc10d2c <_POSIX_Thread_Translate_sched_param+0x3c>
	 _Timespec_To_ticks( ¶m->sched_ss_init_budget ) )                
      return EINVAL;                                                  
                                                                      
    if ( !_POSIX_Priority_Is_valid( param->sched_ss_low_priority ) )  
ffc10dc8:	80 7f 00 04 	lwz     r3,4(r31)                              
ffc10dcc:	4b ff fe fd 	bl      ffc10cc8 <_POSIX_Priority_Is_valid>    
ffc10dd0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc10dd4:	41 9e ff 58 	beq+    cr7,ffc10d2c <_POSIX_Thread_Translate_sched_param+0x3c>
      return EINVAL;                                                  
                                                                      
    *budget_algorithm  = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT;         
ffc10dd8:	39 20 00 03 	li      r9,3                                   
ffc10ddc:	91 3d 00 00 	stw     r9,0(r29)                              
    *budget_callout = _POSIX_Threads_Sporadic_budget_callout;         
ffc10de0:	3d 20 ff c1 	lis     r9,-63                                 
ffc10de4:	39 29 9d 58 	addi    r9,r9,-25256                           
    return 0;                                                         
ffc10de8:	38 60 00 00 	li      r3,0                                   
                                                                      
    if ( !_POSIX_Priority_Is_valid( param->sched_ss_low_priority ) )  
      return EINVAL;                                                  
                                                                      
    *budget_algorithm  = THREAD_CPU_BUDGET_ALGORITHM_CALLOUT;         
    *budget_callout = _POSIX_Threads_Sporadic_budget_callout;         
ffc10dec:	91 3c 00 00 	stw     r9,0(r28)                              
    return 0;                                                         
ffc10df0:	4b ff ff 40 	b       ffc10d30 <_POSIX_Thread_Translate_sched_param+0x40>
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
ffc10df4:	80 01 00 1c 	lwz     r0,28(r1)                              
                                                                      
  *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;               
  *budget_callout = NULL;                                             
                                                                      
  if ( policy == SCHED_OTHER ) {                                      
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;  
ffc10df8:	39 20 00 01 	li      r9,1                                   
ffc10dfc:	91 3d 00 00 	stw     r9,0(r29)                              
    return 0;                                                         
ffc10e00:	38 60 00 00 	li      r3,0                                   
    *budget_callout = _POSIX_Threads_Sporadic_budget_callout;         
    return 0;                                                         
  }                                                                   
                                                                      
  return EINVAL;                                                      
}                                                                     
ffc10e04:	7c 08 03 a6 	mtlr    r0                                     
ffc10e08:	83 81 00 08 	lwz     r28,8(r1)                              
ffc10e0c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc10e10:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc10e14:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc10e18:	38 21 00 18 	addi    r1,r1,24                               
ffc10e1c:	4e 80 00 20 	blr                                            
    return 0;                                                         
  }                                                                   
                                                                      
  if ( policy == SCHED_FIFO ) {                                       
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE;             
    return 0;                                                         
ffc10e20:	38 60 00 00 	li      r3,0                                   
ffc10e24:	4b ff ff 0c 	b       ffc10d30 <_POSIX_Thread_Translate_sched_param+0x40>
  }                                                                   
                                                                      
  if ( policy == SCHED_RR ) {                                         
    *budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE;
ffc10e28:	93 dd 00 00 	stw     r30,0(r29)                             
    return 0;                                                         
ffc10e2c:	38 60 00 00 	li      r3,0                                   
ffc10e30:	4b ff ff 00 	b       ffc10d30 <_POSIX_Thread_Translate_sched_param+0x40>
                                                                      

ffc0fd38 <_POSIX_Threads_Delete_extension>: */ static void _POSIX_Threads_Delete_extension( Thread_Control *executing __attribute__((unused)), Thread_Control *deleted ) {
ffc0fd38:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0fd3c:	7c 08 02 a6 	mflr    r0                                     
  api = deleted->API_Extensions[ THREAD_API_POSIX ];                  
                                                                      
  /*                                                                  
   *  Run the POSIX cancellation handlers                             
   */                                                                 
  _POSIX_Threads_cancel_run( deleted );                               
ffc0fd40:	7c 83 23 78 	mr      r3,r4                                  
 */                                                                   
static void _POSIX_Threads_Delete_extension(                          
  Thread_Control *executing __attribute__((unused)),                  
  Thread_Control *deleted                                             
)                                                                     
{                                                                     
ffc0fd44:	93 81 00 08 	stw     r28,8(r1)                              
ffc0fd48:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc0fd4c:	7c 9d 23 78 	mr      r29,r4                                 
  Thread_Control     *the_thread;                                     
  POSIX_API_Control  *api;                                            
  void              **value_ptr;                                      
                                                                      
  api = deleted->API_Extensions[ THREAD_API_POSIX ];                  
ffc0fd50:	83 84 01 50 	lwz     r28,336(r4)                            
 */                                                                   
static void _POSIX_Threads_Delete_extension(                          
  Thread_Control *executing __attribute__((unused)),                  
  Thread_Control *deleted                                             
)                                                                     
{                                                                     
ffc0fd54:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0fd58:	93 c1 00 10 	stw     r30,16(r1)                             
ffc0fd5c:	93 e1 00 14 	stw     r31,20(r1)                             
  api = deleted->API_Extensions[ THREAD_API_POSIX ];                  
                                                                      
  /*                                                                  
   *  Run the POSIX cancellation handlers                             
   */                                                                 
  _POSIX_Threads_cancel_run( deleted );                               
ffc0fd60:	48 00 29 f9 	bl      ffc12758 <_POSIX_Threads_cancel_run>   
                                                                      
  /*                                                                  
   *  Run all the key destructors                                     
   */                                                                 
  _POSIX_Keys_Run_destructors( deleted );                             
ffc0fd64:	7f a3 eb 78 	mr      r3,r29                                 
ffc0fd68:	48 00 2a 8d 	bl      ffc127f4 <_POSIX_Keys_Run_destructors> 
ffc0fd6c:	3b fc 00 44 	addi    r31,r28,68                             
                                                                      
  /*                                                                  
   *  Wakeup all the tasks which joined with this one                 
   */                                                                 
  value_ptr = (void **) deleted->Wait.return_argument;                
ffc0fd70:	83 dd 00 28 	lwz     r30,40(r29)                            
                                                                      
  while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) )   
ffc0fd74:	48 00 00 0c 	b       ffc0fd80 <_POSIX_Threads_Delete_extension+0x48>
      *(void **)the_thread->Wait.return_argument = value_ptr;         
ffc0fd78:	81 23 00 28 	lwz     r9,40(r3)                              <== NOT EXECUTED
ffc0fd7c:	93 c9 00 00 	stw     r30,0(r9)                              <== NOT EXECUTED
  /*                                                                  
   *  Wakeup all the tasks which joined with this one                 
   */                                                                 
  value_ptr = (void **) deleted->Wait.return_argument;                
                                                                      
  while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) )   
ffc0fd80:	7f e3 fb 78 	mr      r3,r31                                 
ffc0fd84:	4b ff d1 59 	bl      ffc0cedc <_Thread_queue_Dequeue>       
ffc0fd88:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0fd8c:	40 82 ff ec 	bne+    ffc0fd78 <_POSIX_Threads_Delete_extension+0x40><== NEVER TAKEN
      *(void **)the_thread->Wait.return_argument = value_ptr;         
                                                                      
  if ( api->schedpolicy == SCHED_SPORADIC )                           
ffc0fd90:	81 3c 00 84 	lwz     r9,132(r28)                            
ffc0fd94:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc0fd98:	41 9e 00 30 	beq-    cr7,ffc0fdc8 <_POSIX_Threads_Delete_extension+0x90>
    (void) _Watchdog_Remove( &api->Sporadic_timer );                  
                                                                      
  deleted->API_Extensions[ THREAD_API_POSIX ] = NULL;                 
                                                                      
  _Workspace_Free( api );                                             
}                                                                     
ffc0fd9c:	80 01 00 1c 	lwz     r0,28(r1)                              
      *(void **)the_thread->Wait.return_argument = value_ptr;         
                                                                      
  if ( api->schedpolicy == SCHED_SPORADIC )                           
    (void) _Watchdog_Remove( &api->Sporadic_timer );                  
                                                                      
  deleted->API_Extensions[ THREAD_API_POSIX ] = NULL;                 
ffc0fda0:	39 20 00 00 	li      r9,0                                   
ffc0fda4:	91 3d 01 50 	stw     r9,336(r29)                            
                                                                      
  _Workspace_Free( api );                                             
ffc0fda8:	7f 83 e3 78 	mr      r3,r28                                 
}                                                                     
ffc0fdac:	7c 08 03 a6 	mtlr    r0                                     
ffc0fdb0:	83 81 00 08 	lwz     r28,8(r1)                              
ffc0fdb4:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0fdb8:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0fdbc:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0fdc0:	38 21 00 18 	addi    r1,r1,24                               
  if ( api->schedpolicy == SCHED_SPORADIC )                           
    (void) _Watchdog_Remove( &api->Sporadic_timer );                  
                                                                      
  deleted->API_Extensions[ THREAD_API_POSIX ] = NULL;                 
                                                                      
  _Workspace_Free( api );                                             
ffc0fdc4:	4b ff e1 c0 	b       ffc0df84 <_Workspace_Free>             
                                                                      
  while ( (the_thread = _Thread_queue_Dequeue( &api->Join_List )) )   
      *(void **)the_thread->Wait.return_argument = value_ptr;         
                                                                      
  if ( api->schedpolicy == SCHED_SPORADIC )                           
    (void) _Watchdog_Remove( &api->Sporadic_timer );                  
ffc0fdc8:	38 7c 00 a8 	addi    r3,r28,168                             
ffc0fdcc:	4b ff de 61 	bl      ffc0dc2c <_Watchdog_Remove>            
                                                                      
  deleted->API_Extensions[ THREAD_API_POSIX ] = NULL;                 
                                                                      
  _Workspace_Free( api );                                             
}                                                                     
ffc0fdd0:	80 01 00 1c 	lwz     r0,28(r1)                              
      *(void **)the_thread->Wait.return_argument = value_ptr;         
                                                                      
  if ( api->schedpolicy == SCHED_SPORADIC )                           
    (void) _Watchdog_Remove( &api->Sporadic_timer );                  
                                                                      
  deleted->API_Extensions[ THREAD_API_POSIX ] = NULL;                 
ffc0fdd4:	39 20 00 00 	li      r9,0                                   
                                                                      
  _Workspace_Free( api );                                             
}                                                                     
ffc0fdd8:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0fddc:	7c 08 03 a6 	mtlr    r0                                     
      *(void **)the_thread->Wait.return_argument = value_ptr;         
                                                                      
  if ( api->schedpolicy == SCHED_SPORADIC )                           
    (void) _Watchdog_Remove( &api->Sporadic_timer );                  
                                                                      
  deleted->API_Extensions[ THREAD_API_POSIX ] = NULL;                 
ffc0fde0:	91 3d 01 50 	stw     r9,336(r29)                            
                                                                      
  _Workspace_Free( api );                                             
ffc0fde4:	7f 83 e3 78 	mr      r3,r28                                 
}                                                                     
ffc0fde8:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0fdec:	83 81 00 08 	lwz     r28,8(r1)                              
ffc0fdf0:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0fdf4:	38 21 00 18 	addi    r1,r1,24                               
  if ( api->schedpolicy == SCHED_SPORADIC )                           
    (void) _Watchdog_Remove( &api->Sporadic_timer );                  
                                                                      
  deleted->API_Extensions[ THREAD_API_POSIX ] = NULL;                 
                                                                      
  _Workspace_Free( api );                                             
ffc0fdf8:	4b ff e1 8c 	b       ffc0df84 <_Workspace_Free>             
                                                                      

ffc09990 <_POSIX_Threads_Initialize_user_threads_body>: #include <rtems/posix/config.h> #include <rtems/posix/key.h> #include <rtems/posix/time.h> void _POSIX_Threads_Initialize_user_threads_body(void) {
ffc09990:	94 21 ff 98 	stwu    r1,-104(r1)                            
ffc09994:	7c 08 02 a6 	mflr    r0                                     
  uint32_t                            maximum;                        
  posix_initialization_threads_table *user_threads;                   
  pthread_t                           thread_id;                      
  pthread_attr_t                      attr;                           
                                                                      
  user_threads = Configuration_POSIX_API.User_initialization_threads_table;
ffc09998:	3d 20 00 00 	lis     r9,0                                   
#include <rtems/posix/config.h>                                       
#include <rtems/posix/key.h>                                          
#include <rtems/posix/time.h>                                         
                                                                      
void _POSIX_Threads_Initialize_user_threads_body(void)                
{                                                                     
ffc0999c:	90 01 00 6c 	stw     r0,108(r1)                             
  uint32_t                            maximum;                        
  posix_initialization_threads_table *user_threads;                   
  pthread_t                           thread_id;                      
  pthread_attr_t                      attr;                           
                                                                      
  user_threads = Configuration_POSIX_API.User_initialization_threads_table;
ffc099a0:	39 29 20 04 	addi    r9,r9,8196                             
#include <rtems/posix/config.h>                                       
#include <rtems/posix/key.h>                                          
#include <rtems/posix/time.h>                                         
                                                                      
void _POSIX_Threads_Initialize_user_threads_body(void)                
{                                                                     
ffc099a4:	93 e1 00 64 	stw     r31,100(r1)                            
  uint32_t                            maximum;                        
  posix_initialization_threads_table *user_threads;                   
  pthread_t                           thread_id;                      
  pthread_attr_t                      attr;                           
                                                                      
  user_threads = Configuration_POSIX_API.User_initialization_threads_table;
ffc099a8:	83 e9 00 34 	lwz     r31,52(r9)                             
#include <rtems/posix/config.h>                                       
#include <rtems/posix/key.h>                                          
#include <rtems/posix/time.h>                                         
                                                                      
void _POSIX_Threads_Initialize_user_threads_body(void)                
{                                                                     
ffc099ac:	93 a1 00 5c 	stw     r29,92(r1)                             
  pthread_attr_t                      attr;                           
                                                                      
  user_threads = Configuration_POSIX_API.User_initialization_threads_table;
  maximum      = Configuration_POSIX_API.number_of_initialization_threads;
                                                                      
  if ( !user_threads || maximum == 0 )                                
ffc099b0:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
#include <rtems/posix/config.h>                                       
#include <rtems/posix/key.h>                                          
#include <rtems/posix/time.h>                                         
                                                                      
void _POSIX_Threads_Initialize_user_threads_body(void)                
{                                                                     
ffc099b4:	93 c1 00 60 	stw     r30,96(r1)                             
  posix_initialization_threads_table *user_threads;                   
  pthread_t                           thread_id;                      
  pthread_attr_t                      attr;                           
                                                                      
  user_threads = Configuration_POSIX_API.User_initialization_threads_table;
  maximum      = Configuration_POSIX_API.number_of_initialization_threads;
ffc099b8:	83 a9 00 30 	lwz     r29,48(r9)                             
                                                                      
  if ( !user_threads || maximum == 0 )                                
ffc099bc:	41 9e 00 5c 	beq-    cr7,ffc09a18 <_POSIX_Threads_Initialize_user_threads_body+0x88><== NEVER TAKEN
ffc099c0:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc099c4:	41 9e 00 54 	beq-    cr7,ffc09a18 <_POSIX_Threads_Initialize_user_threads_body+0x88><== NEVER TAKEN
ffc099c8:	3b c0 00 00 	li      r30,0                                  
                                                                      
  for ( index=0 ; index < maximum ; index++ ) {                       
    /*                                                                
     * There is no way for these calls to fail in this situation.     
     */                                                               
    (void) pthread_attr_init( &attr );                                
ffc099cc:	38 61 00 08 	addi    r3,r1,8                                
ffc099d0:	48 00 74 65 	bl      ffc10e34 <pthread_attr_init>           
    (void) pthread_attr_setinheritsched( &attr, PTHREAD_EXPLICIT_SCHED );
ffc099d4:	38 80 00 02 	li      r4,2                                   
ffc099d8:	38 61 00 08 	addi    r3,r1,8                                
ffc099dc:	48 00 74 99 	bl      ffc10e74 <pthread_attr_setinheritsched>
    (void) pthread_attr_setstacksize(&attr, user_threads[ index ].stack_size);
ffc099e0:	80 9f 00 04 	lwz     r4,4(r31)                              
ffc099e4:	38 61 00 08 	addi    r3,r1,8                                
ffc099e8:	48 00 74 c9 	bl      ffc10eb0 <pthread_attr_setstacksize>   
                                                                      
    status = pthread_create(                                          
ffc099ec:	80 bf 00 00 	lwz     r5,0(r31)                              
ffc099f0:	38 61 00 48 	addi    r3,r1,72                               
ffc099f4:	38 81 00 08 	addi    r4,r1,8                                
ffc099f8:	38 c0 00 00 	li      r6,0                                   
ffc099fc:	4b ff fb 51 	bl      ffc0954c <pthread_create>              
      &thread_id,                                                     
      &attr,                                                          
      user_threads[ index ].thread_entry,                             
      NULL                                                            
    );                                                                
    if ( status )                                                     
ffc09a00:	7c 65 1b 79 	mr.     r5,r3                                  
ffc09a04:	40 82 00 30 	bne-    ffc09a34 <_POSIX_Threads_Initialize_user_threads_body+0xa4>
   *                                                                  
   *  Setting the attributes explicitly is critical, since we don't want
   *  to inherit the idle tasks attributes.                           
   */                                                                 
                                                                      
  for ( index=0 ; index < maximum ; index++ ) {                       
ffc09a08:	3b de 00 01 	addi    r30,r30,1                              
ffc09a0c:	7f 9e e8 00 	cmpw    cr7,r30,r29                            
ffc09a10:	3b ff 00 08 	addi    r31,r31,8                              
ffc09a14:	40 9e ff b8 	bne+    cr7,ffc099cc <_POSIX_Threads_Initialize_user_threads_body+0x3c><== NEVER TAKEN
      NULL                                                            
    );                                                                
    if ( status )                                                     
      _Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status );
  }                                                                   
}                                                                     
ffc09a18:	80 01 00 6c 	lwz     r0,108(r1)                             
ffc09a1c:	83 a1 00 5c 	lwz     r29,92(r1)                             
ffc09a20:	7c 08 03 a6 	mtlr    r0                                     
ffc09a24:	83 c1 00 60 	lwz     r30,96(r1)                             
ffc09a28:	83 e1 00 64 	lwz     r31,100(r1)                            
ffc09a2c:	38 21 00 68 	addi    r1,r1,104                              
ffc09a30:	4e 80 00 20 	blr                                            
      &attr,                                                          
      user_threads[ index ].thread_entry,                             
      NULL                                                            
    );                                                                
    if ( status )                                                     
      _Internal_error_Occurred( INTERNAL_ERROR_POSIX_API, true, status );
ffc09a34:	38 60 00 02 	li      r3,2                                   
ffc09a38:	38 80 00 01 	li      r4,1                                   
ffc09a3c:	48 00 28 09 	bl      ffc0c244 <_Internal_error_Occurred>    
                                                                      

ffc0ff60 <_POSIX_Threads_Sporadic_budget_TSR>: */ void _POSIX_Threads_Sporadic_budget_TSR( Objects_Id id __attribute__((unused)), void *argument ) {
ffc0ff60:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0ff64:	7c 08 02 a6 	mflr    r0                                     
ffc0ff68:	90 01 00 14 	stw     r0,20(r1)                              
ffc0ff6c:	93 e1 00 0c 	stw     r31,12(r1)                             
  Thread_Control     *the_thread;                                     
  POSIX_API_Control  *api;                                            
                                                                      
  the_thread = argument;                                              
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
ffc0ff70:	83 e4 01 50 	lwz     r31,336(r4)                            
 */                                                                   
void _POSIX_Threads_Sporadic_budget_TSR(                              
  Objects_Id      id __attribute__((unused)),                         
  void           *argument                                            
)                                                                     
{                                                                     
ffc0ff74:	93 c1 00 08 	stw     r30,8(r1)                              
ffc0ff78:	7c 9e 23 78 	mr      r30,r4                                 
  the_thread = argument;                                              
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
                                                                      
  /* ticks is guaranteed to be at least one */                        
  ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget );
ffc0ff7c:	38 7f 00 98 	addi    r3,r31,152                             
ffc0ff80:	48 00 0f 6d 	bl      ffc10eec <_Timespec_To_ticks>          
   */                                                                 
  #if 0                                                               
    printk( "TSR %d %d %d\n", the_thread->resource_count,             
        the_thread->current_priority, new_priority );                 
  #endif                                                              
  if ( the_thread->resource_count == 0 ) {                            
ffc0ff84:	81 3e 00 1c 	lwz     r9,28(r30)                             
                                                                      
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(        
  int priority                                                        
)                                                                     
{                                                                     
  return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
ffc0ff88:	3d 40 00 00 	lis     r10,0                                  
ffc0ff8c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ff90:	88 8a 27 84 	lbz     r4,10116(r10)                          
ffc0ff94:	81 3f 00 88 	lwz     r9,136(r31)                            
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
                                                                      
  /* ticks is guaranteed to be at least one */                        
  ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_init_budget );
                                                                      
  the_thread->cpu_time_budget = ticks;                                
ffc0ff98:	90 7e 00 74 	stw     r3,116(r30)                            
ffc0ff9c:	7c 89 20 50 	subf    r4,r9,r4                               
                                                                      
  new_priority = _POSIX_Priority_To_core( api->schedparam.sched_priority );
  the_thread->real_priority = new_priority;                           
ffc0ffa0:	90 9e 00 18 	stw     r4,24(r30)                             
   */                                                                 
  #if 0                                                               
    printk( "TSR %d %d %d\n", the_thread->resource_count,             
        the_thread->current_priority, new_priority );                 
  #endif                                                              
  if ( the_thread->resource_count == 0 ) {                            
ffc0ffa4:	40 9e 00 10 	bne-    cr7,ffc0ffb4 <_POSIX_Threads_Sporadic_budget_TSR+0x54><== NEVER TAKEN
    /*                                                                
     *  If this would make them less important, then do not change it.
     */                                                               
    if ( the_thread->current_priority > new_priority ) {              
ffc0ffa8:	81 3e 00 14 	lwz     r9,20(r30)                             
ffc0ffac:	7f 89 20 40 	cmplw   cr7,r9,r4                              
ffc0ffb0:	41 9d 00 34 	bgt-    cr7,ffc0ffe4 <_POSIX_Threads_Sporadic_budget_TSR+0x84>
      #endif                                                          
    }                                                                 
  }                                                                   
                                                                      
  /* ticks is guaranteed to be at least one */                        
  ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_repl_period );
ffc0ffb4:	38 7f 00 90 	addi    r3,r31,144                             
ffc0ffb8:	48 00 0f 35 	bl      ffc10eec <_Timespec_To_ticks>          
                                                                      
  _Watchdog_Insert_ticks( &api->Sporadic_timer, ticks );              
}                                                                     
ffc0ffbc:	80 01 00 14 	lwz     r0,20(r1)                              
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
ffc0ffc0:	90 7f 00 b4 	stw     r3,180(r31)                            
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc0ffc4:	38 9f 00 a8 	addi    r4,r31,168                             
ffc0ffc8:	7c 08 03 a6 	mtlr    r0                                     
ffc0ffcc:	3c 60 00 00 	lis     r3,0                                   
ffc0ffd0:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0ffd4:	38 63 2d a8 	addi    r3,r3,11688                            
ffc0ffd8:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0ffdc:	38 21 00 10 	addi    r1,r1,16                               
ffc0ffe0:	4b ff da 84 	b       ffc0da64 <_Watchdog_Insert>            
  if ( the_thread->resource_count == 0 ) {                            
    /*                                                                
     *  If this would make them less important, then do not change it.
     */                                                               
    if ( the_thread->current_priority > new_priority ) {              
      _Thread_Change_priority( the_thread, new_priority, true );      
ffc0ffe4:	7f c3 f3 78 	mr      r3,r30                                 
ffc0ffe8:	38 a0 00 01 	li      r5,1                                   
ffc0ffec:	4b ff c4 49 	bl      ffc0c434 <_Thread_Change_priority>     
      #endif                                                          
    }                                                                 
  }                                                                   
                                                                      
  /* ticks is guaranteed to be at least one */                        
  ticks = _Timespec_To_ticks( &api->schedparam.sched_ss_repl_period );
ffc0fff0:	38 7f 00 90 	addi    r3,r31,144                             
ffc0fff4:	48 00 0e f9 	bl      ffc10eec <_Timespec_To_ticks>          
                                                                      
  _Watchdog_Insert_ticks( &api->Sporadic_timer, ticks );              
}                                                                     
ffc0fff8:	80 01 00 14 	lwz     r0,20(r1)                              
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
ffc0fffc:	90 7f 00 b4 	stw     r3,180(r31)                            
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc10000:	38 9f 00 a8 	addi    r4,r31,168                             
ffc10004:	7c 08 03 a6 	mtlr    r0                                     
ffc10008:	3c 60 00 00 	lis     r3,0                                   
ffc1000c:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc10010:	38 63 2d a8 	addi    r3,r3,11688                            
ffc10014:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc10018:	38 21 00 10 	addi    r1,r1,16                               
ffc1001c:	4b ff da 48 	b       ffc0da64 <_Watchdog_Insert>            
                                                                      

ffc12758 <_POSIX_Threads_cancel_run>: #include <rtems/posix/threadsup.h> void _POSIX_Threads_cancel_run( Thread_Control *the_thread ) {
ffc12758:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc1275c:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];    
                                                                      
  handler_stack = &thread_support->Cancellation_Handlers;             
                                                                      
  thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE;       
ffc12760:	39 40 00 01 	li      r10,1                                  
#include <rtems/posix/threadsup.h>                                    
                                                                      
void _POSIX_Threads_cancel_run(                                       
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
ffc12764:	90 01 00 1c 	stw     r0,28(r1)                              
ffc12768:	93 c1 00 10 	stw     r30,16(r1)                             
  POSIX_Cancel_Handler_control      *handler;                         
  Chain_Control                     *handler_stack;                   
  POSIX_API_Control                 *thread_support;                  
  ISR_Level                          level;                           
                                                                      
  thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];    
ffc1276c:	83 c3 01 50 	lwz     r30,336(r3)                            
#include <rtems/posix/threadsup.h>                                    
                                                                      
void _POSIX_Threads_cancel_run(                                       
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
ffc12770:	93 a1 00 0c 	stw     r29,12(r1)                             
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc12774:	3b be 00 e8 	addi    r29,r30,232                            
                                                                      
  handler_stack = &thread_support->Cancellation_Handlers;             
                                                                      
  thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE;       
                                                                      
  while ( !_Chain_Is_empty( handler_stack ) ) {                       
ffc12778:	81 3e 00 e4 	lwz     r9,228(r30)                            
#include <rtems/posix/threadsup.h>                                    
                                                                      
void _POSIX_Threads_cancel_run(                                       
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
ffc1277c:	93 e1 00 14 	stw     r31,20(r1)                             
                                                                      
  handler_stack = &thread_support->Cancellation_Handlers;             
                                                                      
  thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE;       
                                                                      
  while ( !_Chain_Is_empty( handler_stack ) ) {                       
ffc12780:	7f 89 e8 00 	cmpw    cr7,r9,r29                             
                                                                      
  thread_support = the_thread->API_Extensions[ THREAD_API_POSIX ];    
                                                                      
  handler_stack = &thread_support->Cancellation_Handlers;             
                                                                      
  thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE;       
ffc12784:	91 5e 00 d8 	stw     r10,216(r30)                           
                                                                      
  while ( !_Chain_Is_empty( handler_stack ) ) {                       
ffc12788:	41 9e 00 50 	beq-    cr7,ffc127d8 <_POSIX_Threads_cancel_run+0x80>
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc1278c:	7d 00 00 a6 	mfmsr   r8                                     
ffc12790:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc12794:	7d 09 48 78 	andc    r9,r8,r9                               
ffc12798:	7d 20 01 24 	mtmsr   r9                                     
    _ISR_Disable( level );                                            
      handler = (POSIX_Cancel_Handler_control *)                      
ffc1279c:	83 fe 00 ec 	lwz     r31,236(r30)                           
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc127a0:	81 3f 00 00 	lwz     r9,0(r31)                              
  previous       = the_node->previous;                                
ffc127a4:	81 5f 00 04 	lwz     r10,4(r31)                             
  next->previous = previous;                                          
ffc127a8:	91 49 00 04 	stw     r10,4(r9)                              
  previous->next = next;                                              
ffc127ac:	91 2a 00 00 	stw     r9,0(r10)                              
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc127b0:	7d 00 01 24 	mtmsr   r8                                     
           _Chain_Tail( handler_stack )->previous;                    
      _Chain_Extract_unprotected( &handler->Node );                   
    _ISR_Enable( level );                                             
                                                                      
    (*handler->routine)( handler->arg );                              
ffc127b4:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc127b8:	80 7f 00 0c 	lwz     r3,12(r31)                             
ffc127bc:	7d 29 03 a6 	mtctr   r9                                     
ffc127c0:	4e 80 04 21 	bctrl                                          
                                                                      
    _Workspace_Free( handler );                                       
ffc127c4:	7f e3 fb 78 	mr      r3,r31                                 
ffc127c8:	4b ff b7 bd 	bl      ffc0df84 <_Workspace_Free>             
                                                                      
  handler_stack = &thread_support->Cancellation_Handlers;             
                                                                      
  thread_support->cancelability_state = PTHREAD_CANCEL_DISABLE;       
                                                                      
  while ( !_Chain_Is_empty( handler_stack ) ) {                       
ffc127cc:	81 3e 00 e4 	lwz     r9,228(r30)                            
ffc127d0:	7f 89 e8 00 	cmpw    cr7,r9,r29                             
ffc127d4:	40 9e ff b8 	bne+    cr7,ffc1278c <_POSIX_Threads_cancel_run+0x34><== NEVER TAKEN
                                                                      
    (*handler->routine)( handler->arg );                              
                                                                      
    _Workspace_Free( handler );                                       
  }                                                                   
}                                                                     
ffc127d8:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc127dc:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc127e0:	7c 08 03 a6 	mtlr    r0                                     
ffc127e4:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc127e8:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc127ec:	38 21 00 18 	addi    r1,r1,24                               
ffc127f0:	4e 80 00 20 	blr                                            
                                                                      

ffc097b0 <_POSIX_Timer_TSR>: * This is the operation that is run when a timer expires */ void _POSIX_Timer_TSR( Objects_Id timer __attribute__((unused)), void *data) {
ffc097b0:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc097b4:	7c 08 02 a6 	mflr    r0                                     
ffc097b8:	90 01 00 2c 	stw     r0,44(r1)                              
                                                                      
  /* Increment the number of expirations. */                          
  ptimer->overrun = ptimer->overrun + 1;                              
                                                                      
  /* The timer must be reprogrammed */                                
  if ( ( ptimer->timer_data.it_interval.tv_sec  != 0 ) ||             
ffc097bc:	81 44 00 54 	lwz     r10,84(r4)                             
  bool                 activated;                                     
                                                                      
  ptimer = (POSIX_Timer_Control *)data;                               
                                                                      
  /* Increment the number of expirations. */                          
  ptimer->overrun = ptimer->overrun + 1;                              
ffc097c0:	81 24 00 68 	lwz     r9,104(r4)                             
                                                                      
  /* The timer must be reprogrammed */                                
  if ( ( ptimer->timer_data.it_interval.tv_sec  != 0 ) ||             
ffc097c4:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
 *  This is the operation that is run when a timer expires            
 */                                                                   
void _POSIX_Timer_TSR(                                                
  Objects_Id timer __attribute__((unused)),                           
  void *data)                                                         
{                                                                     
ffc097c8:	93 a1 00 1c 	stw     r29,28(r1)                             
  bool                 activated;                                     
                                                                      
  ptimer = (POSIX_Timer_Control *)data;                               
                                                                      
  /* Increment the number of expirations. */                          
  ptimer->overrun = ptimer->overrun + 1;                              
ffc097cc:	39 29 00 01 	addi    r9,r9,1                                
 *  This is the operation that is run when a timer expires            
 */                                                                   
void _POSIX_Timer_TSR(                                                
  Objects_Id timer __attribute__((unused)),                           
  void *data)                                                         
{                                                                     
ffc097d0:	93 c1 00 20 	stw     r30,32(r1)                             
ffc097d4:	7c 9d 23 78 	mr      r29,r4                                 
ffc097d8:	93 e1 00 24 	stw     r31,36(r1)                             
  bool                 activated;                                     
                                                                      
  ptimer = (POSIX_Timer_Control *)data;                               
                                                                      
  /* Increment the number of expirations. */                          
  ptimer->overrun = ptimer->overrun + 1;                              
ffc097dc:	91 24 00 68 	stw     r9,104(r4)                             
                                                                      
  /* The timer must be reprogrammed */                                
  if ( ( ptimer->timer_data.it_interval.tv_sec  != 0 ) ||             
ffc097e0:	40 9e 00 48 	bne-    cr7,ffc09828 <_POSIX_Timer_TSR+0x78>   
ffc097e4:	81 24 00 58 	lwz     r9,88(r4)                              
ffc097e8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc097ec:	40 9e 00 3c 	bne-    cr7,ffc09828 <_POSIX_Timer_TSR+0x78>   <== ALWAYS TAKEN
                                                                      
    /* The state really did not change but just to be safe */         
    ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;                     
  } else {                                                            
   /* Indicates that the timer is stopped */                          
   ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;                     
ffc097f0:	39 20 00 04 	li      r9,4                                   <== NOT EXECUTED
ffc097f4:	99 24 00 3c 	stb     r9,60(r4)                              <== NOT EXECUTED
  /*                                                                  
   * The sending of the signal to the process running the handling function
   * specified for that signal is simulated                           
   */                                                                 
                                                                      
  if ( pthread_kill ( ptimer->thread_id, ptimer->inf.sigev_signo ) ) {
ffc097f8:	80 7d 00 38 	lwz     r3,56(r29)                             
ffc097fc:	80 9d 00 44 	lwz     r4,68(r29)                             
ffc09800:	48 00 6d c1 	bl      ffc105c0 <pthread_kill>                
  }                                                                   
                                                                      
  /* After the signal handler returns, the count of expirations of the
   * timer must be set to 0.                                          
   */                                                                 
  ptimer->overrun = 0;                                                
ffc09804:	39 20 00 00 	li      r9,0                                   
ffc09808:	91 3d 00 68 	stw     r9,104(r29)                            
}                                                                     
ffc0980c:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc09810:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc09814:	7c 08 03 a6 	mtlr    r0                                     
ffc09818:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0981c:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc09820:	38 21 00 28 	addi    r1,r1,40                               
ffc09824:	4e 80 00 20 	blr                                            
  ptimer->overrun = ptimer->overrun + 1;                              
                                                                      
  /* The timer must be reprogrammed */                                
  if ( ( ptimer->timer_data.it_interval.tv_sec  != 0 ) ||             
       ( ptimer->timer_data.it_interval.tv_nsec != 0 ) ) {            
    activated = _POSIX_Timer_Insert_helper(                           
ffc09828:	80 9d 00 64 	lwz     r4,100(r29)                            
ffc0982c:	3c c0 ff c1 	lis     r6,-63                                 
ffc09830:	80 bd 00 08 	lwz     r5,8(r29)                              
ffc09834:	38 7d 00 10 	addi    r3,r29,16                              
ffc09838:	38 c6 97 b0 	addi    r6,r6,-26704                           
ffc0983c:	7f a7 eb 78 	mr      r7,r29                                 
ffc09840:	48 00 72 dd 	bl      ffc10b1c <_POSIX_Timer_Insert_helper>  
      ptimer->ticks,                                                  
      ptimer->Object.id,                                              
      _POSIX_Timer_TSR,                                               
      ptimer                                                          
    );                                                                
    if ( !activated )                                                 
ffc09844:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc09848:	41 9e ff c4 	beq+    cr7,ffc0980c <_POSIX_Timer_TSR+0x5c>   <== NEVER TAKEN
ffc0984c:	3c 80 00 00 	lis     r4,0                                   
ffc09850:	38 84 2c a0 	addi    r4,r4,11424                            
ffc09854:	38 61 00 08 	addi    r3,r1,8                                
ffc09858:	48 00 1d 4d 	bl      ffc0b5a4 <_TOD_Get_with_nanoseconds>   
static inline void _Timestamp64_implementation_To_timespec(           
  const Timestamp64_Control *_timestamp,                              
  struct timespec           *_timespec                                
)                                                                     
{                                                                     
  _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);           
ffc0985c:	3c c0 3b 9a 	lis     r6,15258                               
                                                                      
  /* After the signal handler returns, the count of expirations of the
   * timer must be set to 0.                                          
   */                                                                 
  ptimer->overrun = 0;                                                
}                                                                     
ffc09860:	83 e3 00 04 	lwz     r31,4(r3)                              
ffc09864:	38 a0 00 00 	li      r5,0                                   
ffc09868:	83 c3 00 00 	lwz     r30,0(r3)                              
ffc0986c:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc09870:	7f e4 fb 78 	mr      r4,r31                                 
ffc09874:	7f c3 f3 78 	mr      r3,r30                                 
ffc09878:	48 01 3f a9 	bl      ffc1d820 <__divdi3>                    
  _timespec->tv_nsec = (long) (*_timestamp % 1000000000L);            
ffc0987c:	3c c0 3b 9a 	lis     r6,15258                               
static inline void _Timestamp64_implementation_To_timespec(           
  const Timestamp64_Control *_timestamp,                              
  struct timespec           *_timespec                                
)                                                                     
{                                                                     
  _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);           
ffc09880:	90 9d 00 6c 	stw     r4,108(r29)                            
  _timespec->tv_nsec = (long) (*_timestamp % 1000000000L);            
ffc09884:	38 a0 00 00 	li      r5,0                                   
ffc09888:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc0988c:	7f c3 f3 78 	mr      r3,r30                                 
ffc09890:	7f e4 fb 78 	mr      r4,r31                                 
ffc09894:	48 01 43 b1 	bl      ffc1dc44 <__moddi3>                    
                                                                      
    /* Store the time when the timer was started again */             
    _TOD_Get( &ptimer->time );                                        
                                                                      
    /* The state really did not change but just to be safe */         
    ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;                     
ffc09898:	39 20 00 03 	li      r9,3                                   
ffc0989c:	90 9d 00 70 	stw     r4,112(r29)                            
ffc098a0:	99 3d 00 3c 	stb     r9,60(r29)                             
ffc098a4:	4b ff ff 54 	b       ffc097f8 <_POSIX_Timer_TSR+0x48>       
                                                                      

ffc128d4 <_POSIX_signals_Check_signal>: bool _POSIX_signals_Check_signal( POSIX_API_Control *api, int signo, bool is_global ) {
ffc128d4:	94 21 ff 98 	stwu    r1,-104(r1)                            
ffc128d8:	7c 08 02 a6 	mflr    r0                                     
ffc128dc:	7c a6 2b 78 	mr      r6,r5                                  
  siginfo_t                   siginfo_struct;                         
  sigset_t                    saved_signals_blocked;                  
  Thread_Wait_information     stored_thread_wait_information;         
                                                                      
  if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct,   
ffc128e0:	38 e0 00 01 	li      r7,1                                   
bool    _POSIX_signals_Check_signal(                                  
  POSIX_API_Control  *api,                                            
  int                 signo,                                          
  bool                is_global                                       
)                                                                     
{                                                                     
ffc128e4:	93 c1 00 60 	stw     r30,96(r1)                             
  siginfo_t                   siginfo_struct;                         
  sigset_t                    saved_signals_blocked;                  
  Thread_Wait_information     stored_thread_wait_information;         
                                                                      
  if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct,   
ffc128e8:	38 a1 00 30 	addi    r5,r1,48                               
bool    _POSIX_signals_Check_signal(                                  
  POSIX_API_Control  *api,                                            
  int                 signo,                                          
  bool                is_global                                       
)                                                                     
{                                                                     
ffc128ec:	93 e1 00 64 	stw     r31,100(r1)                            
ffc128f0:	7c 9e 23 78 	mr      r30,r4                                 
ffc128f4:	7c 7f 1b 78 	mr      r31,r3                                 
ffc128f8:	90 01 00 6c 	stw     r0,108(r1)                             
ffc128fc:	93 21 00 4c 	stw     r25,76(r1)                             
ffc12900:	93 41 00 50 	stw     r26,80(r1)                             
ffc12904:	93 61 00 54 	stw     r27,84(r1)                             
ffc12908:	93 81 00 58 	stw     r28,88(r1)                             
ffc1290c:	93 a1 00 5c 	stw     r29,92(r1)                             
  siginfo_t                   siginfo_struct;                         
  sigset_t                    saved_signals_blocked;                  
  Thread_Wait_information     stored_thread_wait_information;         
                                                                      
  if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct,   
ffc12910:	48 00 00 f9 	bl      ffc12a08 <_POSIX_signals_Clear_signals>
ffc12914:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc12918:	41 9e 00 c0 	beq-    cr7,ffc129d8 <_POSIX_signals_Check_signal+0x104>
  #endif                                                              
                                                                      
  /*                                                                  
   *  Just to prevent sending a signal which is currently being ignored.
   */                                                                 
  if ( _POSIX_signals_Vectors[ signo ].sa_handler == SIG_IGN )        
ffc1291c:	1f 9e 00 0c 	mulli   r28,r30,12                             
ffc12920:	3f 60 00 00 	lis     r27,0                                  
ffc12924:	3b 7b 32 20 	addi    r27,r27,12832                          
ffc12928:	7d 3b e2 14 	add     r9,r27,r28                             
ffc1292c:	83 a9 00 08 	lwz     r29,8(r9)                              
ffc12930:	2f 9d 00 01 	cmpwi   cr7,r29,1                              
ffc12934:	41 9e 00 a4 	beq-    cr7,ffc129d8 <_POSIX_signals_Check_signal+0x104><== NEVER TAKEN
    return false;                                                     
                                                                      
  /*                                                                  
   *  Block the signals requested in sa_mask                          
   */                                                                 
  saved_signals_blocked = api->signals_blocked;                       
ffc12938:	83 5f 00 d0 	lwz     r26,208(r31)                           
  /*                                                                  
   *  We have to save the blocking information of the current wait queue
   *  because the signal handler may subsequently go on and put the thread
   *  on a wait queue, for its own purposes.                          
   */                                                                 
  memcpy( &stored_thread_wait_information, &_Thread_Executing->Wait,  
ffc1293c:	3f 20 00 00 	lis     r25,0                                  
                                                                      
  /*                                                                  
   *  Block the signals requested in sa_mask                          
   */                                                                 
  saved_signals_blocked = api->signals_blocked;                       
  api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;    
ffc12940:	81 29 00 04 	lwz     r9,4(r9)                               
  /*                                                                  
   *  We have to save the blocking information of the current wait queue
   *  because the signal handler may subsequently go on and put the thread
   *  on a wait queue, for its own purposes.                          
   */                                                                 
  memcpy( &stored_thread_wait_information, &_Thread_Executing->Wait,  
ffc12944:	3b 39 31 a0 	addi    r25,r25,12704                          
ffc12948:	80 99 00 10 	lwz     r4,16(r25)                             
ffc1294c:	38 61 00 08 	addi    r3,r1,8                                
                                                                      
  /*                                                                  
   *  Block the signals requested in sa_mask                          
   */                                                                 
  saved_signals_blocked = api->signals_blocked;                       
  api->signals_blocked |= _POSIX_signals_Vectors[ signo ].sa_mask;    
ffc12950:	7d 29 d3 78 	or      r9,r9,r26                              
ffc12954:	91 3f 00 d0 	stw     r9,208(r31)                            
  /*                                                                  
   *  We have to save the blocking information of the current wait queue
   *  because the signal handler may subsequently go on and put the thread
   *  on a wait queue, for its own purposes.                          
   */                                                                 
  memcpy( &stored_thread_wait_information, &_Thread_Executing->Wait,  
ffc12958:	38 84 00 20 	addi    r4,r4,32                               
ffc1295c:	38 a0 00 28 	li      r5,40                                  
ffc12960:	48 00 14 1d 	bl      ffc13d7c <memcpy>                      
          sizeof( Thread_Wait_information ));                         
                                                                      
  /*                                                                  
   *  Here, the signal handler function executes                      
   */                                                                 
  switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) {               
ffc12964:	7d 3b e0 2e 	lwzx    r9,r27,r28                             
    case SA_SIGINFO:                                                  
      (*_POSIX_signals_Vectors[ signo ].sa_sigaction)(                
ffc12968:	7f c3 f3 78 	mr      r3,r30                                 
          sizeof( Thread_Wait_information ));                         
                                                                      
  /*                                                                  
   *  Here, the signal handler function executes                      
   */                                                                 
  switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) {               
ffc1296c:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc12970:	41 9e 00 54 	beq-    cr7,ffc129c4 <_POSIX_signals_Check_signal+0xf0>
        &siginfo_struct,                                              
        NULL        /* context is undefined per 1003.1b-1993, p. 66 */
      );                                                              
      break;                                                          
    default:                                                          
      (*_POSIX_signals_Vectors[ signo ].sa_handler)( signo );         
ffc12974:	7f a9 03 a6 	mtctr   r29                                    
ffc12978:	4e 80 04 21 	bctrl                                          
  }                                                                   
                                                                      
  /*                                                                  
   *  Restore the blocking information                                
   */                                                                 
  memcpy( &_Thread_Executing->Wait, &stored_thread_wait_information,  
ffc1297c:	80 79 00 10 	lwz     r3,16(r25)                             
ffc12980:	38 81 00 08 	addi    r4,r1,8                                
ffc12984:	38 a0 00 28 	li      r5,40                                  
ffc12988:	38 63 00 20 	addi    r3,r3,32                               
ffc1298c:	48 00 13 f1 	bl      ffc13d7c <memcpy>                      
   *  Restore the previous set of blocked signals                     
   */                                                                 
  api->signals_blocked = saved_signals_blocked;                       
                                                                      
  return true;                                                        
}                                                                     
ffc12990:	80 01 00 6c 	lwz     r0,108(r1)                             
          sizeof( Thread_Wait_information ));                         
                                                                      
  /*                                                                  
   *  Restore the previous set of blocked signals                     
   */                                                                 
  api->signals_blocked = saved_signals_blocked;                       
ffc12994:	93 5f 00 d0 	stw     r26,208(r31)                           
                                                                      
  return true;                                                        
ffc12998:	38 60 00 01 	li      r3,1                                   
}                                                                     
ffc1299c:	7c 08 03 a6 	mtlr    r0                                     
ffc129a0:	83 21 00 4c 	lwz     r25,76(r1)                             
ffc129a4:	83 41 00 50 	lwz     r26,80(r1)                             
ffc129a8:	83 61 00 54 	lwz     r27,84(r1)                             
ffc129ac:	83 81 00 58 	lwz     r28,88(r1)                             
ffc129b0:	83 a1 00 5c 	lwz     r29,92(r1)                             
ffc129b4:	83 c1 00 60 	lwz     r30,96(r1)                             
ffc129b8:	83 e1 00 64 	lwz     r31,100(r1)                            
ffc129bc:	38 21 00 68 	addi    r1,r1,104                              
ffc129c0:	4e 80 00 20 	blr                                            
  /*                                                                  
   *  Here, the signal handler function executes                      
   */                                                                 
  switch ( _POSIX_signals_Vectors[ signo ].sa_flags ) {               
    case SA_SIGINFO:                                                  
      (*_POSIX_signals_Vectors[ signo ].sa_sigaction)(                
ffc129c4:	38 81 00 30 	addi    r4,r1,48                               
ffc129c8:	7f a9 03 a6 	mtctr   r29                                    
ffc129cc:	38 a0 00 00 	li      r5,0                                   
ffc129d0:	4e 80 04 21 	bctrl                                          
        signo,                                                        
        &siginfo_struct,                                              
        NULL        /* context is undefined per 1003.1b-1993, p. 66 */
      );                                                              
      break;                                                          
ffc129d4:	4b ff ff a8 	b       ffc1297c <_POSIX_signals_Check_signal+0xa8>
   *  Restore the previous set of blocked signals                     
   */                                                                 
  api->signals_blocked = saved_signals_blocked;                       
                                                                      
  return true;                                                        
}                                                                     
ffc129d8:	80 01 00 6c 	lwz     r0,108(r1)                             
  sigset_t                    saved_signals_blocked;                  
  Thread_Wait_information     stored_thread_wait_information;         
                                                                      
  if ( ! _POSIX_signals_Clear_signals( api, signo, &siginfo_struct,   
                                       is_global, true ) )            
    return false;                                                     
ffc129dc:	38 60 00 00 	li      r3,0                                   
   *  Restore the previous set of blocked signals                     
   */                                                                 
  api->signals_blocked = saved_signals_blocked;                       
                                                                      
  return true;                                                        
}                                                                     
ffc129e0:	83 21 00 4c 	lwz     r25,76(r1)                             
ffc129e4:	7c 08 03 a6 	mtlr    r0                                     
ffc129e8:	83 41 00 50 	lwz     r26,80(r1)                             
ffc129ec:	83 61 00 54 	lwz     r27,84(r1)                             
ffc129f0:	83 81 00 58 	lwz     r28,88(r1)                             
ffc129f4:	83 a1 00 5c 	lwz     r29,92(r1)                             
ffc129f8:	83 c1 00 60 	lwz     r30,96(r1)                             
ffc129fc:	83 e1 00 64 	lwz     r31,100(r1)                            
ffc12a00:	38 21 00 68 	addi    r1,r1,104                              
ffc12a04:	4e 80 00 20 	blr                                            
                                                                      

ffc12fec <_POSIX_signals_Clear_process_signals>:
ffc12fec:	39 23 ff ff 	addi    r9,r3,-1                               
ffc12ff0:	39 40 00 01 	li      r10,1                                  
ffc12ff4:	7d 48 48 30 	slw     r8,r10,r9                              
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc12ff8:	7d 40 00 a6 	mfmsr   r10                                    
ffc12ffc:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc13000:	7d 49 48 78 	andc    r9,r10,r9                              
ffc13004:	7d 20 01 24 	mtmsr   r9                                     
  mask         = signo_to_mask( signo );                              
                                                                      
  ISR_Level  level;                                                   
                                                                      
  _ISR_Disable( level );                                              
    if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) {   
ffc13008:	3d 20 00 00 	lis     r9,0                                   
ffc1300c:	1c 63 00 0c 	mulli   r3,r3,12                               
ffc13010:	39 29 32 20 	addi    r9,r9,12832                            
ffc13014:	7d 29 18 2e 	lwzx    r9,r9,r3                               
ffc13018:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc1301c:	41 9e 00 1c 	beq-    cr7,ffc13038 <_POSIX_signals_Clear_process_signals+0x4c>
      if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) )     
       clear_signal = false;                                          
    }                                                                 
    if ( clear_signal ) {                                             
      _POSIX_signals_Pending &= ~mask;                                
ffc13020:	3d 20 00 00 	lis     r9,0                                   
ffc13024:	80 e9 28 98 	lwz     r7,10392(r9)                           
ffc13028:	7c e8 40 78 	andc    r8,r7,r8                               
ffc1302c:	91 09 28 98 	stw     r8,10392(r9)                           
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc13030:	7d 40 01 24 	mtmsr   r10                                    
ffc13034:	4e 80 00 20 	blr                                            
                                                                      
  ISR_Level  level;                                                   
                                                                      
  _ISR_Disable( level );                                              
    if ( _POSIX_signals_Vectors[ signo ].sa_flags == SA_SIGINFO ) {   
      if ( !_Chain_Is_empty( &_POSIX_signals_Siginfo[ signo ] ) )     
ffc13038:	3d 20 00 00 	lis     r9,0                                   
ffc1303c:	39 29 34 14 	addi    r9,r9,13332                            
ffc13040:	7c e3 48 2e 	lwzx    r7,r3,r9                               
ffc13044:	7c c3 4a 14 	add     r6,r3,r9                               
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc13048:	39 26 00 04 	addi    r9,r6,4                                
ffc1304c:	7f 87 48 00 	cmpw    cr7,r7,r9                              
ffc13050:	41 be ff d0 	beq-    cr7,ffc13020 <_POSIX_signals_Clear_process_signals+0x34><== ALWAYS TAKEN
ffc13054:	7d 40 01 24 	mtmsr   r10                                    <== NOT EXECUTED
ffc13058:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc0a3f8 <_POSIX_signals_Get_lowest>:
ffc0a3f8:	38 e0 00 05 	li      r7,5                                   
ffc0a3fc:	7c e9 03 a6 	mtctr   r7                                     
  sigset_t   set                                                      
)                                                                     
{                                                                     
  int signo;                                                          
                                                                      
  for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {            
ffc0a400:	39 20 00 1b 	li      r9,27                                  
ffc0a404:	39 00 00 01 	li      r8,1                                   
#include <rtems/posix/psignalimpl.h>                                  
#include <rtems/seterr.h>                                             
#include <rtems/posix/time.h>                                         
#include <rtems/score/isr.h>                                          
                                                                      
static int _POSIX_signals_Get_lowest(                                 
ffc0a408:	39 49 ff ff 	addi    r10,r9,-1                              
ffc0a40c:	7d 0a 50 30 	slw     r10,r8,r10                             
)                                                                     
{                                                                     
  int signo;                                                          
                                                                      
  for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {            
    if ( set & signo_to_mask( signo ) ) {                             
ffc0a410:	7d 47 18 39 	and.    r7,r10,r3                              
ffc0a414:	40 82 00 38 	bne-    ffc0a44c <_POSIX_signals_Get_lowest+0x54><== NEVER TAKEN
  sigset_t   set                                                      
)                                                                     
{                                                                     
  int signo;                                                          
                                                                      
  for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {            
ffc0a418:	39 29 00 01 	addi    r9,r9,1                                
ffc0a41c:	42 00 ff ec 	bdnz+   ffc0a408 <_POSIX_signals_Get_lowest+0x10>
ffc0a420:	39 40 00 1a 	li      r10,26                                 
ffc0a424:	39 20 00 01 	li      r9,1                                   
ffc0a428:	7d 49 03 a6 	mtctr   r10                                    
ffc0a42c:	39 00 00 01 	li      r8,1                                   
ffc0a430:	48 00 00 0c 	b       ffc0a43c <_POSIX_signals_Get_lowest+0x44>
   */                                                                 
                                                                      
  #if (SIGHUP != 1)                                                   
    #error "Assumption that SIGHUP==1 violated!!"                     
  #endif                                                              
  for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {        
ffc0a434:	39 29 00 01 	addi    r9,r9,1                                
ffc0a438:	42 40 00 14 	bdz-    ffc0a44c <_POSIX_signals_Get_lowest+0x54>
#include <rtems/posix/psignalimpl.h>                                  
#include <rtems/seterr.h>                                             
#include <rtems/posix/time.h>                                         
#include <rtems/score/isr.h>                                          
                                                                      
static int _POSIX_signals_Get_lowest(                                 
ffc0a43c:	39 49 ff ff 	addi    r10,r9,-1                              
ffc0a440:	7d 0a 50 30 	slw     r10,r8,r10                             
                                                                      
  #if (SIGHUP != 1)                                                   
    #error "Assumption that SIGHUP==1 violated!!"                     
  #endif                                                              
  for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {        
    if ( set & signo_to_mask( signo ) ) {                             
ffc0a444:	7d 47 18 39 	and.    r7,r10,r3                              
ffc0a448:	41 82 ff ec 	beq+    ffc0a434 <_POSIX_signals_Get_lowest+0x3c>
   *  a return 0.  This routine will NOT be called unless a signal    
   *  is pending in the set passed in.                                
   */                                                                 
found_it:                                                             
  return signo;                                                       
}                                                                     
ffc0a44c:	7d 23 4b 78 	mr      r3,r9                                  
ffc0a450:	4e 80 00 20 	blr                                            
                                                                      

ffc0fa88 <_POSIX_signals_Post_switch_hook>: */ static void _POSIX_signals_Post_switch_hook( Thread_Control *the_thread ) {
ffc0fa88:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0fa8c:	7c 08 02 a6 	mflr    r0                                     
ffc0fa90:	90 01 00 24 	stw     r0,36(r1)                              
ffc0fa94:	93 c1 00 18 	stw     r30,24(r1)                             
  POSIX_API_Control  *api;                                            
  int                 signo;                                          
  ISR_Level           level;                                          
  int                 hold_errno;                                     
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
ffc0fa98:	83 c3 01 50 	lwz     r30,336(r3)                            
 */                                                                   
                                                                      
static void _POSIX_signals_Post_switch_hook(                          
  Thread_Control  *the_thread                                         
)                                                                     
{                                                                     
ffc0fa9c:	93 81 00 10 	stw     r28,16(r1)                             
                                                                      
  /*                                                                  
   *  We need to ensure that if the signal handler executes a call    
   *  which overwrites the unblocking status, we restore it.          
   */                                                                 
  hold_errno = _Thread_Executing->Wait.return_code;                   
ffc0faa0:	3f 80 00 00 	lis     r28,0                                  
                                                                      
  /*                                                                  
   * api may be NULL in case of a thread close in progress            
   */                                                                 
  if ( !api )                                                         
ffc0faa4:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
                                                                      
  /*                                                                  
   *  We need to ensure that if the signal handler executes a call    
   *  which overwrites the unblocking status, we restore it.          
   */                                                                 
  hold_errno = _Thread_Executing->Wait.return_code;                   
ffc0faa8:	3b 9c 31 a0 	addi    r28,r28,12704                          
 */                                                                   
                                                                      
static void _POSIX_signals_Post_switch_hook(                          
  Thread_Control  *the_thread                                         
)                                                                     
{                                                                     
ffc0faac:	93 61 00 0c 	stw     r27,12(r1)                             
                                                                      
  /*                                                                  
   *  We need to ensure that if the signal handler executes a call    
   *  which overwrites the unblocking status, we restore it.          
   */                                                                 
  hold_errno = _Thread_Executing->Wait.return_code;                   
ffc0fab0:	81 3c 00 10 	lwz     r9,16(r28)                             
 */                                                                   
                                                                      
static void _POSIX_signals_Post_switch_hook(                          
  Thread_Control  *the_thread                                         
)                                                                     
{                                                                     
ffc0fab4:	93 a1 00 14 	stw     r29,20(r1)                             
ffc0fab8:	93 e1 00 1c 	stw     r31,28(r1)                             
                                                                      
  /*                                                                  
   *  We need to ensure that if the signal handler executes a call    
   *  which overwrites the unblocking status, we restore it.          
   */                                                                 
  hold_errno = _Thread_Executing->Wait.return_code;                   
ffc0fabc:	83 69 00 34 	lwz     r27,52(r9)                             
                                                                      
  /*                                                                  
   * api may be NULL in case of a thread close in progress            
   */                                                                 
  if ( !api )                                                         
ffc0fac0:	41 9e 00 cc 	beq-    cr7,ffc0fb8c <_POSIX_signals_Post_switch_hook+0x104><== NEVER TAKEN
ffc0fac4:	3f a0 00 00 	lis     r29,0                                  
ffc0fac8:	3b bd 28 98 	addi    r29,r29,10392                          
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0facc:	7c e0 00 a6 	mfmsr   r7                                     
ffc0fad0:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0fad4:	7c e9 48 78 	andc    r9,r7,r9                               
ffc0fad8:	7d 20 01 24 	mtmsr   r9                                     
   *  processed at all.  No point in doing this loop otherwise.       
   */                                                                 
  while (1) {                                                         
    _ISR_Disable( level );                                            
      if ( !(~api->signals_blocked &                                  
            (api->signals_pending | _POSIX_signals_Pending)) ) {      
ffc0fadc:	81 1d 00 00 	lwz     r8,0(r29)                              
ffc0fae0:	81 5e 00 d4 	lwz     r10,212(r30)                           
   *  The first thing done is to check there are any signals to be    
   *  processed at all.  No point in doing this loop otherwise.       
   */                                                                 
  while (1) {                                                         
    _ISR_Disable( level );                                            
      if ( !(~api->signals_blocked &                                  
ffc0fae4:	81 3e 00 d0 	lwz     r9,208(r30)                            
            (api->signals_pending | _POSIX_signals_Pending)) ) {      
ffc0fae8:	7d 0a 53 78 	or      r10,r8,r10                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0faec:	7c e0 01 24 	mtmsr   r7                                     
   *  The first thing done is to check there are any signals to be    
   *  processed at all.  No point in doing this loop otherwise.       
   */                                                                 
  while (1) {                                                         
    _ISR_Disable( level );                                            
      if ( !(~api->signals_blocked &                                  
ffc0faf0:	7d 48 48 79 	andc.   r8,r10,r9                              
ffc0faf4:	41 82 00 90 	beq-    ffc0fb84 <_POSIX_signals_Post_switch_hook+0xfc>
       _ISR_Enable( level );                                          
       break;                                                         
     }                                                                
    _ISR_Enable( level );                                             
                                                                      
    for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {          
ffc0faf8:	3b e0 00 1b 	li      r31,27                                 
      _POSIX_signals_Check_signal( api, signo, false );               
ffc0fafc:	7f e4 fb 78 	mr      r4,r31                                 
ffc0fb00:	38 a0 00 00 	li      r5,0                                   
ffc0fb04:	7f c3 f3 78 	mr      r3,r30                                 
ffc0fb08:	48 00 2d cd 	bl      ffc128d4 <_POSIX_signals_Check_signal> 
      _POSIX_signals_Check_signal( api, signo, true );                
ffc0fb0c:	7f e4 fb 78 	mr      r4,r31                                 
ffc0fb10:	7f c3 f3 78 	mr      r3,r30                                 
ffc0fb14:	38 a0 00 01 	li      r5,1                                   
ffc0fb18:	48 00 2d bd 	bl      ffc128d4 <_POSIX_signals_Check_signal> 
       _ISR_Enable( level );                                          
       break;                                                         
     }                                                                
    _ISR_Enable( level );                                             
                                                                      
    for ( signo = SIGRTMIN ; signo <= SIGRTMAX ; signo++ ) {          
ffc0fb1c:	2f 9f 00 1f 	cmpwi   cr7,r31,31                             
ffc0fb20:	3b ff 00 01 	addi    r31,r31,1                              
ffc0fb24:	40 9e ff d8 	bne+    cr7,ffc0fafc <_POSIX_signals_Post_switch_hook+0x74>
ffc0fb28:	3b e0 00 01 	li      r31,1                                  
      _POSIX_signals_Check_signal( api, signo, true );                
    }                                                                 
    /* Unfortunately - nothing like __SIGFIRSTNOTRT in newlib signal .h */
                                                                      
    for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {      
      _POSIX_signals_Check_signal( api, signo, false );               
ffc0fb2c:	7f e4 fb 78 	mr      r4,r31                                 
ffc0fb30:	38 a0 00 00 	li      r5,0                                   
ffc0fb34:	7f c3 f3 78 	mr      r3,r30                                 
ffc0fb38:	48 00 2d 9d 	bl      ffc128d4 <_POSIX_signals_Check_signal> 
      _POSIX_signals_Check_signal( api, signo, true );                
ffc0fb3c:	7f e4 fb 78 	mr      r4,r31                                 
ffc0fb40:	7f c3 f3 78 	mr      r3,r30                                 
ffc0fb44:	38 a0 00 01 	li      r5,1                                   
ffc0fb48:	48 00 2d 8d 	bl      ffc128d4 <_POSIX_signals_Check_signal> 
      _POSIX_signals_Check_signal( api, signo, false );               
      _POSIX_signals_Check_signal( api, signo, true );                
    }                                                                 
    /* Unfortunately - nothing like __SIGFIRSTNOTRT in newlib signal .h */
                                                                      
    for ( signo = SIGHUP ; signo <= __SIGLASTNOTRT ; signo++ ) {      
ffc0fb4c:	2f 9f 00 1a 	cmpwi   cr7,r31,26                             
ffc0fb50:	3b ff 00 01 	addi    r31,r31,1                              
ffc0fb54:	40 9e ff d8 	bne+    cr7,ffc0fb2c <_POSIX_signals_Post_switch_hook+0xa4>
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0fb58:	7c e0 00 a6 	mfmsr   r7                                     
ffc0fb5c:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0fb60:	7c e9 48 78 	andc    r9,r7,r9                               
ffc0fb64:	7d 20 01 24 	mtmsr   r9                                     
   *  processed at all.  No point in doing this loop otherwise.       
   */                                                                 
  while (1) {                                                         
    _ISR_Disable( level );                                            
      if ( !(~api->signals_blocked &                                  
            (api->signals_pending | _POSIX_signals_Pending)) ) {      
ffc0fb68:	81 1d 00 00 	lwz     r8,0(r29)                              
ffc0fb6c:	81 5e 00 d4 	lwz     r10,212(r30)                           
   *  The first thing done is to check there are any signals to be    
   *  processed at all.  No point in doing this loop otherwise.       
   */                                                                 
  while (1) {                                                         
    _ISR_Disable( level );                                            
      if ( !(~api->signals_blocked &                                  
ffc0fb70:	81 3e 00 d0 	lwz     r9,208(r30)                            
            (api->signals_pending | _POSIX_signals_Pending)) ) {      
ffc0fb74:	7d 0a 53 78 	or      r10,r8,r10                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0fb78:	7c e0 01 24 	mtmsr   r7                                     
   *  The first thing done is to check there are any signals to be    
   *  processed at all.  No point in doing this loop otherwise.       
   */                                                                 
  while (1) {                                                         
    _ISR_Disable( level );                                            
      if ( !(~api->signals_blocked &                                  
ffc0fb7c:	7d 48 48 79 	andc.   r8,r10,r9                              
ffc0fb80:	40 82 ff 78 	bne+    ffc0faf8 <_POSIX_signals_Post_switch_hook+0x70><== NEVER TAKEN
      _POSIX_signals_Check_signal( api, signo, false );               
      _POSIX_signals_Check_signal( api, signo, true );                
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Executing->Wait.return_code = hold_errno;                   
ffc0fb84:	81 3c 00 10 	lwz     r9,16(r28)                             
ffc0fb88:	93 69 00 34 	stw     r27,52(r9)                             
}                                                                     
ffc0fb8c:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0fb90:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0fb94:	7c 08 03 a6 	mtlr    r0                                     
ffc0fb98:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0fb9c:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0fba0:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0fba4:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0fba8:	38 21 00 20 	addi    r1,r1,32                               
ffc0fbac:	4e 80 00 20 	blr                                            
                                                                      

ffc1e3b0 <_POSIX_signals_Unblock_thread>: bool _POSIX_signals_Unblock_thread( Thread_Control *the_thread, int signo, siginfo_t *info ) {
ffc1e3b0:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1e3b4:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  /*                                                                  
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
ffc1e3b8:	3d 40 10 00 	lis     r10,4096                               
bool _POSIX_signals_Unblock_thread(                                   
  Thread_Control  *the_thread,                                        
  int              signo,                                             
  siginfo_t       *info                                               
)                                                                     
{                                                                     
ffc1e3bc:	90 01 00 14 	stw     r0,20(r1)                              
                                                                      
  /*                                                                  
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
ffc1e3c0:	61 4a 80 00 	ori     r10,r10,32768                          
ffc1e3c4:	38 c4 ff ff 	addi    r6,r4,-1                               
ffc1e3c8:	81 23 00 10 	lwz     r9,16(r3)                              
ffc1e3cc:	38 e0 00 01 	li      r7,1                                   
bool _POSIX_signals_Unblock_thread(                                   
  Thread_Control  *the_thread,                                        
  int              signo,                                             
  siginfo_t       *info                                               
)                                                                     
{                                                                     
ffc1e3d0:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc1e3d4:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
  /*                                                                  
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
ffc1e3d8:	7d 28 50 38 	and     r8,r9,r10                              
ffc1e3dc:	7f 88 50 00 	cmpw    cr7,r8,r10                             
{                                                                     
  POSIX_API_Control  *api;                                            
  sigset_t            mask;                                           
  siginfo_t          *the_info = NULL;                                
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
ffc1e3e0:	81 63 01 50 	lwz     r11,336(r3)                            
ffc1e3e4:	7c e8 30 30 	slw     r8,r7,r6                               
                                                                      
  /*                                                                  
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
ffc1e3e8:	41 9e 00 9c 	beq-    cr7,ffc1e484 <_POSIX_signals_Unblock_thread+0xd4>
  }                                                                   
                                                                      
  /*                                                                  
   *  Thread is not waiting due to a sigwait.                         
   */                                                                 
  if ( ~api->signals_blocked & mask ) {                               
ffc1e3ec:	81 4b 00 d0 	lwz     r10,208(r11)                           
ffc1e3f0:	7d 06 50 79 	andc.   r6,r8,r10                              
ffc1e3f4:	41 82 00 78 	beq-    ffc1e46c <_POSIX_signals_Unblock_thread+0xbc>
     *      it is not blocked, THEN                                   
     *        we need to dispatch at the end of this ISR.             
     *    + Any other combination, do nothing.                        
     */                                                               
                                                                      
    if ( _States_Is_interruptible_by_signal( the_thread->current_state ) ) {
ffc1e3f8:	75 28 10 00 	andis.  r8,r9,4096                             
ffc1e3fc:	41 82 00 44 	beq-    ffc1e440 <_POSIX_signals_Unblock_thread+0x90>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_ON_THREAD_QUEUE);              
ffc1e400:	3d 40 00 03 	lis     r10,3                                  
ffc1e404:	61 4a be e0 	ori     r10,r10,48864                          
      the_thread->Wait.return_code = EINTR;                           
      /*                                                              
       *  In pthread_cond_wait, a thread will be blocking on a thread 
       *  queue, but is also interruptible by a POSIX signal.         
       */                                                             
       if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) )
ffc1e408:	7d 26 50 39 	and.    r6,r9,r10                              
     *        we need to dispatch at the end of this ISR.             
     *    + Any other combination, do nothing.                        
     */                                                               
                                                                      
    if ( _States_Is_interruptible_by_signal( the_thread->current_state ) ) {
      the_thread->Wait.return_code = EINTR;                           
ffc1e40c:	39 40 00 04 	li      r10,4                                  
ffc1e410:	91 43 00 34 	stw     r10,52(r3)                             
      /*                                                              
       *  In pthread_cond_wait, a thread will be blocking on a thread 
       *  queue, but is also interruptible by a POSIX signal.         
       */                                                             
       if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) )
ffc1e414:	40 82 00 d8 	bne-    ffc1e4ec <_POSIX_signals_Unblock_thread+0x13c>
         _Thread_queue_Extract_with_proxy( the_thread );              
       else if ( _States_Is_delaying(the_thread->current_state) ) {   
ffc1e418:	71 28 00 08 	andi.   r8,r9,8                                
ffc1e41c:	41 a2 00 50 	beq+    ffc1e46c <_POSIX_signals_Unblock_thread+0xbc><== NEVER TAKEN
          (void) _Watchdog_Remove( &the_thread->Timer );              
ffc1e420:	38 63 00 48 	addi    r3,r3,72                               
ffc1e424:	4b fe f8 09 	bl      ffc0dc2c <_Watchdog_Remove>            
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
ffc1e428:	3c 80 10 07 	lis     r4,4103                                
ffc1e42c:	7f e3 fb 78 	mr      r3,r31                                 
ffc1e430:	60 84 ff f8 	ori     r4,r4,65528                            
ffc1e434:	4b fe e1 8d 	bl      ffc0c5c0 <_Thread_Clear_state>         
    } else if ( the_thread->current_state == STATES_READY ) {         
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
        _Thread_Dispatch_necessary = true;                            
    }                                                                 
  }                                                                   
  return false;                                                       
ffc1e438:	38 60 00 00 	li      r3,0                                   
ffc1e43c:	48 00 00 34 	b       ffc1e470 <_POSIX_signals_Unblock_thread+0xc0>
       else if ( _States_Is_delaying(the_thread->current_state) ) {   
          (void) _Watchdog_Remove( &the_thread->Timer );              
          _Thread_Unblock( the_thread );                              
       }                                                              
                                                                      
    } else if ( the_thread->current_state == STATES_READY ) {         
ffc1e440:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1e444:	40 9e 00 28 	bne-    cr7,ffc1e46c <_POSIX_signals_Unblock_thread+0xbc><== NEVER TAKEN
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
ffc1e448:	3d 20 00 00 	lis     r9,0                                   
ffc1e44c:	39 29 31 a0 	addi    r9,r9,12704                            
ffc1e450:	81 49 00 08 	lwz     r10,8(r9)                              
ffc1e454:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1e458:	41 9e 00 14 	beq-    cr7,ffc1e46c <_POSIX_signals_Unblock_thread+0xbc>
ffc1e45c:	81 49 00 10 	lwz     r10,16(r9)                             
ffc1e460:	7f 83 50 00 	cmpw    cr7,r3,r10                             
ffc1e464:	40 be 00 08 	bne+    cr7,ffc1e46c <_POSIX_signals_Unblock_thread+0xbc><== NEVER TAKEN
        _Thread_Dispatch_necessary = true;                            
ffc1e468:	98 e9 00 0c 	stb     r7,12(r9)                              
    }                                                                 
  }                                                                   
  return false;                                                       
ffc1e46c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc1e470:	80 01 00 14 	lwz     r0,20(r1)                              
ffc1e474:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc1e478:	7c 08 03 a6 	mtlr    r0                                     
ffc1e47c:	38 21 00 10 	addi    r1,r1,16                               
ffc1e480:	4e 80 00 20 	blr                                            
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
                                                                      
    if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
ffc1e484:	81 23 00 30 	lwz     r9,48(r3)                              
ffc1e488:	7d 06 48 39 	and.    r6,r8,r9                               
ffc1e48c:	41 82 00 50 	beq-    ffc1e4dc <_POSIX_signals_Unblock_thread+0x12c>
      the_thread->Wait.return_code = EINTR;                           
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
                                                                      
      if ( !info ) {                                                  
ffc1e490:	2f 85 00 00 	cmpwi   cr7,r5,0                               
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
                                                                      
    if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
      the_thread->Wait.return_code = EINTR;                           
ffc1e494:	39 20 00 04 	li      r9,4                                   
ffc1e498:	91 3f 00 34 	stw     r9,52(r31)                             
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
ffc1e49c:	81 3f 00 28 	lwz     r9,40(r31)                             
                                                                      
      if ( !info ) {                                                  
ffc1e4a0:	41 9e 00 58 	beq-    cr7,ffc1e4f8 <_POSIX_signals_Unblock_thread+0x148>
        the_info->si_signo = signo;                                   
        the_info->si_code = SI_USER;                                  
        the_info->si_value.sival_int = 0;                             
      } else {                                                        
        *the_info = *info;                                            
ffc1e4a4:	80 e5 00 00 	lwz     r7,0(r5)                               
ffc1e4a8:	81 05 00 04 	lwz     r8,4(r5)                               
ffc1e4ac:	81 45 00 08 	lwz     r10,8(r5)                              
ffc1e4b0:	90 e9 00 00 	stw     r7,0(r9)                               
ffc1e4b4:	91 09 00 04 	stw     r8,4(r9)                               
ffc1e4b8:	91 49 00 08 	stw     r10,8(r9)                              
      }                                                               
                                                                      
      _Thread_queue_Extract_with_proxy( the_thread );                 
ffc1e4bc:	7f e3 fb 78 	mr      r3,r31                                 
ffc1e4c0:	4b fe ee e5 	bl      ffc0d3a4 <_Thread_queue_Extract_with_proxy>
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
        _Thread_Dispatch_necessary = true;                            
    }                                                                 
  }                                                                   
  return false;                                                       
}                                                                     
ffc1e4c4:	80 01 00 14 	lwz     r0,20(r1)                              
ffc1e4c8:	83 e1 00 0c 	lwz     r31,12(r1)                             
      } else {                                                        
        *the_info = *info;                                            
      }                                                               
                                                                      
      _Thread_queue_Extract_with_proxy( the_thread );                 
      return true;                                                    
ffc1e4cc:	38 60 00 01 	li      r3,1                                   
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
        _Thread_Dispatch_necessary = true;                            
    }                                                                 
  }                                                                   
  return false;                                                       
}                                                                     
ffc1e4d0:	7c 08 03 a6 	mtlr    r0                                     
ffc1e4d4:	38 21 00 10 	addi    r1,r1,16                               
ffc1e4d8:	4e 80 00 20 	blr                                            
   *  Is the thread is specifically waiting for a signal?             
   */                                                                 
                                                                      
  if ( _States_Is_interruptible_signal( the_thread->current_state ) ) {
                                                                      
    if ( (the_thread->Wait.option & mask) || (~api->signals_blocked & mask) ) {
ffc1e4dc:	81 2b 00 d0 	lwz     r9,208(r11)                            
ffc1e4e0:	7d 0a 48 79 	andc.   r10,r8,r9                              
ffc1e4e4:	40 82 ff ac 	bne+    ffc1e490 <_POSIX_signals_Unblock_thread+0xe0>
ffc1e4e8:	4b ff ff 84 	b       ffc1e46c <_POSIX_signals_Unblock_thread+0xbc>
      /*                                                              
       *  In pthread_cond_wait, a thread will be blocking on a thread 
       *  queue, but is also interruptible by a POSIX signal.         
       */                                                             
       if ( _States_Is_waiting_on_thread_queue(the_thread->current_state) )
         _Thread_queue_Extract_with_proxy( the_thread );              
ffc1e4ec:	4b fe ee b9 	bl      ffc0d3a4 <_Thread_queue_Extract_with_proxy>
    } else if ( the_thread->current_state == STATES_READY ) {         
      if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
        _Thread_Dispatch_necessary = true;                            
    }                                                                 
  }                                                                   
  return false;                                                       
ffc1e4f0:	38 60 00 00 	li      r3,0                                   
ffc1e4f4:	4b ff ff 7c 	b       ffc1e470 <_POSIX_signals_Unblock_thread+0xc0>
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
                                                                      
      if ( !info ) {                                                  
        the_info->si_signo = signo;                                   
        the_info->si_code = SI_USER;                                  
ffc1e4f8:	39 40 00 01 	li      r10,1                                  
      the_thread->Wait.return_code = EINTR;                           
                                                                      
      the_info = (siginfo_t *) the_thread->Wait.return_argument;      
                                                                      
      if ( !info ) {                                                  
        the_info->si_signo = signo;                                   
ffc1e4fc:	90 89 00 00 	stw     r4,0(r9)                               
        the_info->si_code = SI_USER;                                  
ffc1e500:	91 49 00 04 	stw     r10,4(r9)                              
        the_info->si_value.sival_int = 0;                             
ffc1e504:	90 a9 00 08 	stw     r5,8(r9)                               
ffc1e508:	4b ff ff b4 	b       ffc1e4bc <_POSIX_signals_Unblock_thread+0x10c>
                                                                      

ffc0c95c <_RBTree_Extract_unprotected>: */ void _RBTree_Extract_unprotected( RBTree_Control *the_rbtree, RBTree_Node *the_node ) {
ffc0c95c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0c960:	7c 08 02 a6 	mflr    r0                                     
ffc0c964:	93 c1 00 10 	stw     r30,16(r1)                             
  RBTree_Node *leaf, *target;                                         
  RBTree_Color victim_color;                                          
  RBTree_Direction dir;                                               
                                                                      
  if (!the_node) return;                                              
ffc0c968:	7c 9e 23 79 	mr.     r30,r4                                 
 */                                                                   
void _RBTree_Extract_unprotected(                                     
    RBTree_Control *the_rbtree,                                       
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
ffc0c96c:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0c970:	93 81 00 08 	stw     r28,8(r1)                              
ffc0c974:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc0c978:	93 e1 00 14 	stw     r31,20(r1)                             
  RBTree_Node *leaf, *target;                                         
  RBTree_Color victim_color;                                          
  RBTree_Direction dir;                                               
                                                                      
  if (!the_node) return;                                              
ffc0c97c:	41 82 01 14 	beq-    ffc0ca90 <_RBTree_Extract_unprotected+0x134>
                                                                      
  /* check if min needs to be updated */                              
  if (the_node == the_rbtree->first[RBT_LEFT]) {                      
ffc0c980:	81 23 00 08 	lwz     r9,8(r3)                               
ffc0c984:	7c 7c 1b 78 	mr      r28,r3                                 
ffc0c988:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc0c98c:	41 9e 01 6c 	beq-    cr7,ffc0caf8 <_RBTree_Extract_unprotected+0x19c>
    the_rbtree->first[RBT_LEFT] = next;                               
  }                                                                   
                                                                      
  /* 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]) {                     
ffc0c990:	81 3c 00 0c 	lwz     r9,12(r28)                             
ffc0c994:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc0c998:	41 9e 01 74 	beq-    cr7,ffc0cb0c <_RBTree_Extract_unprotected+0x1b0>
   * 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]) {      
ffc0c99c:	83 fe 00 04 	lwz     r31,4(r30)                             
ffc0c9a0:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0c9a4:	41 9e 01 88 	beq-    cr7,ffc0cb2c <_RBTree_Extract_unprotected+0x1d0>
ffc0c9a8:	81 3e 00 08 	lwz     r9,8(r30)                              
ffc0c9ac:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c9b0:	40 be 00 0c 	bne+    cr7,ffc0c9bc <_RBTree_Extract_unprotected+0x60>
ffc0c9b4:	48 00 01 0c 	b       ffc0cac0 <_RBTree_Extract_unprotected+0x164>
    target = the_node->child[RBT_LEFT]; /* find max in node->child[RBT_LEFT] */
    while (target->child[RBT_RIGHT]) target = target->child[RBT_RIGHT];
ffc0c9b8:	7d 3f 4b 78 	mr      r31,r9                                 
ffc0c9bc:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc0c9c0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c9c4:	40 9e ff f4 	bne+    cr7,ffc0c9b8 <_RBTree_Extract_unprotected+0x5c>
     * 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];                                   
ffc0c9c8:	83 bf 00 04 	lwz     r29,4(r31)                             
    if(leaf) {                                                        
ffc0c9cc:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0c9d0:	41 9e 01 50 	beq-    cr7,ffc0cb20 <_RBTree_Extract_unprotected+0x1c4>
      leaf->parent = target->parent;                                  
ffc0c9d4:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc0c9d8:	91 3d 00 00 	stw     r9,0(r29)                              
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(target);                   
    }                                                                 
    victim_color = target->color;                                     
    dir = target != target->parent->child[0];                         
ffc0c9dc:	80 ff 00 00 	lwz     r7,0(r31)                              
    target->parent->child[dir] = leaf;                                
                                                                      
    /* now replace the_node with target */                            
    dir = the_node != the_node->parent->child[0];                     
ffc0c9e0:	81 1e 00 00 	lwz     r8,0(r30)                              
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(target);                   
    }                                                                 
    victim_color = target->color;                                     
    dir = target != target->parent->child[0];                         
ffc0c9e4:	81 27 00 04 	lwz     r9,4(r7)                               
      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;                                     
ffc0c9e8:	81 5f 00 0c 	lwz     r10,12(r31)                            
    dir = target != target->parent->child[0];                         
ffc0c9ec:	7f e9 4a 78 	xor     r9,r31,r9                              
ffc0c9f0:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc0c9f4:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
ffc0c9f8:	69 29 00 01 	xori    r9,r9,1                                
    target->parent->child[dir] = leaf;                                
ffc0c9fc:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc0ca00:	7c e7 4a 14 	add     r7,r7,r9                               
ffc0ca04:	93 a7 00 04 	stw     r29,4(r7)                              
                                                                      
    /* now replace the_node with target */                            
    dir = the_node != the_node->parent->child[0];                     
ffc0ca08:	81 28 00 04 	lwz     r9,4(r8)                               
ffc0ca0c:	7f c9 4a 78 	xor     r9,r30,r9                              
ffc0ca10:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc0ca14:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
ffc0ca18:	69 29 00 01 	xori    r9,r9,1                                
    the_node->parent->child[dir] = target;                            
ffc0ca1c:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc0ca20:	7d 08 4a 14 	add     r8,r8,r9                               
ffc0ca24:	93 e8 00 04 	stw     r31,4(r8)                              
                                                                      
    /* set target's new children to the original node's children */   
    target->child[RBT_RIGHT] = the_node->child[RBT_RIGHT];            
ffc0ca28:	81 3e 00 08 	lwz     r9,8(r30)                              
ffc0ca2c:	91 3f 00 08 	stw     r9,8(r31)                              
    if (the_node->child[RBT_RIGHT])                                   
ffc0ca30:	81 3e 00 08 	lwz     r9,8(r30)                              
ffc0ca34:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ca38:	41 9e 00 08 	beq-    cr7,ffc0ca40 <_RBTree_Extract_unprotected+0xe4><== NEVER TAKEN
      the_node->child[RBT_RIGHT]->parent = target;                    
ffc0ca3c:	93 e9 00 00 	stw     r31,0(r9)                              
    target->child[RBT_LEFT] = the_node->child[RBT_LEFT];              
ffc0ca40:	81 3e 00 04 	lwz     r9,4(r30)                              
ffc0ca44:	91 3f 00 04 	stw     r9,4(r31)                              
    if (the_node->child[RBT_LEFT])                                    
ffc0ca48:	81 3e 00 04 	lwz     r9,4(r30)                              
ffc0ca4c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ca50:	41 9e 00 08 	beq-    cr7,ffc0ca58 <_RBTree_Extract_unprotected+0xfc>
      the_node->child[RBT_LEFT]->parent = target;                     
ffc0ca54:	93 e9 00 00 	stw     r31,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;                                
ffc0ca58:	81 1e 00 00 	lwz     r8,0(r30)                              
    target->color = the_node->color;                                  
ffc0ca5c:	81 3e 00 0c 	lwz     r9,12(r30)                             
    /* 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;                                
ffc0ca60:	91 1f 00 00 	stw     r8,0(r31)                              
    target->color = the_node->color;                                  
ffc0ca64:	91 3f 00 0c 	stw     r9,12(r31)                             
  /* 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 */             
ffc0ca68:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0ca6c:	41 9e 00 44 	beq-    cr7,ffc0cab0 <_RBTree_Extract_unprotected+0x154>
                                                                      
  /* 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;          
ffc0ca70:	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;
ffc0ca74:	39 20 00 00 	li      r9,0                                   
ffc0ca78:	91 3e 00 08 	stw     r9,8(r30)                              
ffc0ca7c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0ca80:	91 3e 00 04 	stw     r9,4(r30)                              
ffc0ca84:	91 3e 00 00 	stw     r9,0(r30)                              
ffc0ca88:	41 9e 00 08 	beq-    cr7,ffc0ca90 <_RBTree_Extract_unprotected+0x134>
ffc0ca8c:	91 2a 00 0c 	stw     r9,12(r10)                             
}                                                                     
ffc0ca90:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0ca94:	83 81 00 08 	lwz     r28,8(r1)                              
ffc0ca98:	7c 08 03 a6 	mtlr    r0                                     
ffc0ca9c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0caa0:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0caa4:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0caa8:	38 21 00 18 	addi    r1,r1,24                               
ffc0caac:	4e 80 00 20 	blr                                            
   * 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 */             
    if (leaf) {                                                       
ffc0cab0:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0cab4:	41 be ff bc 	beq-    cr7,ffc0ca70 <_RBTree_Extract_unprotected+0x114>
      leaf->color = RBT_BLACK; /* case 2 */                           
ffc0cab8:	91 5d 00 0c 	stw     r10,12(r29)                            
ffc0cabc:	4b ff ff b4 	b       ffc0ca70 <_RBTree_Extract_unprotected+0x114>
   * 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]) {      
ffc0cac0:	7f fd fb 78 	mr      r29,r31                                
     * 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;                                
ffc0cac4:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc0cac8:	91 3d 00 00 	stw     r9,0(r29)                              
      _RBTree_Extract_validate_unprotected(the_node);                 
    }                                                                 
    victim_color = the_node->color;                                   
                                                                      
    /* remove the_node from the tree */                               
    dir = the_node != the_node->parent->child[0];                     
ffc0cacc:	81 1e 00 00 	lwz     r8,0(r30)                              
      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;                                   
ffc0cad0:	81 5e 00 0c 	lwz     r10,12(r30)                            
                                                                      
    /* remove the_node from the tree */                               
    dir = the_node != the_node->parent->child[0];                     
ffc0cad4:	81 28 00 04 	lwz     r9,4(r8)                               
ffc0cad8:	7f c9 4a 78 	xor     r9,r30,r9                              
ffc0cadc:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc0cae0:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
ffc0cae4:	69 29 00 01 	xori    r9,r9,1                                
    the_node->parent->child[dir] = leaf;                              
ffc0cae8:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc0caec:	7d 08 4a 14 	add     r8,r8,r9                               
ffc0caf0:	93 a8 00 04 	stw     r29,4(r8)                              
ffc0caf4:	4b ff ff 74 	b       ffc0ca68 <_RBTree_Extract_unprotected+0x10c>
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Successor_unprotected(      
  const RBTree_Node *node                                             
)                                                                     
{                                                                     
  return _RBTree_Next_unprotected( node, RBT_RIGHT );                 
ffc0caf8:	7f c3 f3 78 	mr      r3,r30                                 
ffc0cafc:	38 80 00 01 	li      r4,1                                   
ffc0cb00:	48 00 04 99 	bl      ffc0cf98 <_RBTree_Next_unprotected>    
                                                                      
  /* check if min needs to be updated */                              
  if (the_node == the_rbtree->first[RBT_LEFT]) {                      
    RBTree_Node *next;                                                
    next = _RBTree_Successor_unprotected(the_node);                   
    the_rbtree->first[RBT_LEFT] = next;                               
ffc0cb04:	90 7c 00 08 	stw     r3,8(r28)                              
ffc0cb08:	4b ff fe 88 	b       ffc0c990 <_RBTree_Extract_unprotected+0x34>
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Predecessor_unprotected(    
  const RBTree_Node *node                                             
)                                                                     
{                                                                     
  return _RBTree_Next_unprotected( node, RBT_LEFT );                  
ffc0cb0c:	7f c3 f3 78 	mr      r3,r30                                 
ffc0cb10:	38 80 00 00 	li      r4,0                                   
ffc0cb14:	48 00 04 85 	bl      ffc0cf98 <_RBTree_Next_unprotected>    
  /* 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]) {                     
    RBTree_Node *previous;                                            
    previous = _RBTree_Predecessor_unprotected(the_node);             
    the_rbtree->first[RBT_RIGHT] = previous;                          
ffc0cb18:	90 7c 00 0c 	stw     r3,12(r28)                             
ffc0cb1c:	4b ff fe 80 	b       ffc0c99c <_RBTree_Extract_unprotected+0x40>
    leaf = target->child[RBT_LEFT];                                   
    if(leaf) {                                                        
      leaf->parent = target->parent;                                  
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(target);                   
ffc0cb20:	7f e3 fb 78 	mr      r3,r31                                 
ffc0cb24:	4b ff fb 2d 	bl      ffc0c650 <_RBTree_Extract_validate_unprotected>
ffc0cb28:	4b ff fe b4 	b       ffc0c9dc <_RBTree_Extract_unprotected+0x80>
     * the_node's location in the tree. This may cause the coloring to be
     * violated. We will fix it later.                                
     * For now we store the color of the node being deleted in victim_color.
     */                                                               
    leaf = the_node->child[RBT_LEFT] ?                                
              the_node->child[RBT_LEFT] : the_node->child[RBT_RIGHT]; 
ffc0cb2c:	83 be 00 08 	lwz     r29,8(r30)                             
    if( leaf ) {                                                      
ffc0cb30:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0cb34:	40 9e ff 90 	bne+    cr7,ffc0cac4 <_RBTree_Extract_unprotected+0x168>
      leaf->parent = the_node->parent;                                
    } else {                                                          
      /* fix the tree here if the child is a null leaf. */            
      _RBTree_Extract_validate_unprotected(the_node);                 
ffc0cb38:	7f c3 f3 78 	mr      r3,r30                                 
ffc0cb3c:	4b ff fb 15 	bl      ffc0c650 <_RBTree_Extract_validate_unprotected>
ffc0cb40:	4b ff ff 8c 	b       ffc0cacc <_RBTree_Extract_unprotected+0x170>
                                                                      

ffc0c650 <_RBTree_Extract_validate_unprotected>: ) { RBTree_Node *parent, *sibling; RBTree_Direction dir; parent = the_node->parent;
ffc0c650:	81 23 00 00 	lwz     r9,0(r3)                               
  if(!parent->parent) return;                                         
ffc0c654:	81 49 00 00 	lwz     r10,0(r9)                              
ffc0c658:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0c65c:	4d 9e 00 20 	beqlr   cr7                                    
{                                                                     
  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])                   
ffc0c660:	81 49 00 04 	lwz     r10,4(r9)                              
ffc0c664:	7f 83 50 00 	cmpw    cr7,r3,r10                             
ffc0c668:	41 9e 02 d0 	beq-    cr7,ffc0c938 <_RBTree_Extract_validate_unprotected+0x2e8>
     * Now the_node has a black sibling and red parent. After rotation,
     * update sibling pointer.                                        
     */                                                               
    if (_RBTree_Is_red(sibling)) {                                    
      parent->color = RBT_RED;                                        
      sibling->color = RBT_BLACK;                                     
ffc0c66c:	38 80 00 00 	li      r4,0                                   
    }                                                                 
                                                                      
    /* sibling is black, see if both of its children are also black. */
    if (!_RBTree_Is_red(sibling->child[RBT_RIGHT]) &&                 
        !_RBTree_Is_red(sibling->child[RBT_LEFT])) {                  
        sibling->color = RBT_RED;                                     
ffc0c670:	38 c0 00 01 	li      r6,1                                   
ffc0c674:	48 00 00 90 	b       ffc0c704 <_RBTree_Extract_validate_unprotected+0xb4>
  if(!parent->parent) return;                                         
                                                                      
  sibling = _RBTree_Sibling(the_node);                                
                                                                      
  /* continue to correct tree as long as the_node is black and not the root */
  while (!_RBTree_Is_red(the_node) && parent->parent) {               
ffc0c678:	81 09 00 00 	lwz     r8,0(r9)                               
ffc0c67c:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0c680:	41 9e 00 90 	beq-    cr7,ffc0c710 <_RBTree_Extract_validate_unprotected+0xc0>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(                             
    const RBTree_Node *the_node                                       
    )                                                                 
{                                                                     
  return (the_node && the_node->color == RBT_RED);                    
ffc0c684:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0c688:	41 9e 00 10 	beq-    cr7,ffc0c698 <_RBTree_Extract_validate_unprotected+0x48><== NEVER TAKEN
ffc0c68c:	80 ea 00 0c 	lwz     r7,12(r10)                             
ffc0c690:	2f 87 00 01 	cmpwi   cr7,r7,1                               
ffc0c694:	41 9e 01 68 	beq-    cr7,ffc0c7fc <_RBTree_Extract_validate_unprotected+0x1ac>
      _RBTree_Rotate(parent, dir);                                    
      sibling = parent->child[_RBTree_Opposite_direction(dir)];       
    }                                                                 
                                                                      
    /* sibling is black, see if both of its children are also black. */
    if (!_RBTree_Is_red(sibling->child[RBT_RIGHT]) &&                 
ffc0c698:	81 0a 00 08 	lwz     r8,8(r10)                              
ffc0c69c:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0c6a0:	41 9e 00 10 	beq-    cr7,ffc0c6b0 <_RBTree_Extract_validate_unprotected+0x60>
ffc0c6a4:	81 08 00 0c 	lwz     r8,12(r8)                              
ffc0c6a8:	2f 88 00 01 	cmpwi   cr7,r8,1                               
ffc0c6ac:	41 9e 00 7c 	beq-    cr7,ffc0c728 <_RBTree_Extract_validate_unprotected+0xd8>
        !_RBTree_Is_red(sibling->child[RBT_LEFT])) {                  
ffc0c6b0:	81 0a 00 04 	lwz     r8,4(r10)                              
ffc0c6b4:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0c6b8:	41 9e 00 10 	beq-    cr7,ffc0c6c8 <_RBTree_Extract_validate_unprotected+0x78>
ffc0c6bc:	81 08 00 0c 	lwz     r8,12(r8)                              
ffc0c6c0:	2f 88 00 01 	cmpwi   cr7,r8,1                               
ffc0c6c4:	41 9e 00 64 	beq-    cr7,ffc0c728 <_RBTree_Extract_validate_unprotected+0xd8>
        sibling->color = RBT_RED;                                     
ffc0c6c8:	90 ca 00 0c 	stw     r6,12(r10)                             
ffc0c6cc:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc0c6d0:	2f 8a 00 01 	cmpwi   cr7,r10,1                              
ffc0c6d4:	41 9e 02 6c 	beq-    cr7,ffc0c940 <_RBTree_Extract_validate_unprotected+0x2f0>
        if (_RBTree_Is_red(parent)) {                                 
          parent->color = RBT_BLACK;                                  
          break;                                                      
        }                                                             
        the_node = parent; /* done if parent is red */                
        parent = the_node->parent;                                    
ffc0c6d8:	81 09 00 00 	lwz     r8,0(r9)                               
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Sibling(                    
  const RBTree_Node *the_node                                         
)                                                                     
{                                                                     
  if(!the_node) return NULL;                                          
  if(!(the_node->parent)) return NULL;                                
ffc0c6dc:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0c6e0:	41 9e 01 b0 	beq-    cr7,ffc0c890 <_RBTree_Extract_validate_unprotected+0x240><== NEVER TAKEN
  if(!(the_node->parent->parent)) return NULL;                        
ffc0c6e4:	81 48 00 00 	lwz     r10,0(r8)                              
ffc0c6e8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0c6ec:	41 9e 01 a4 	beq-    cr7,ffc0c890 <_RBTree_Extract_validate_unprotected+0x240>
                                                                      
  if(the_node == the_node->parent->child[RBT_LEFT])                   
ffc0c6f0:	81 48 00 04 	lwz     r10,4(r8)                              
ffc0c6f4:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc0c6f8:	41 9e 01 a0 	beq-    cr7,ffc0c898 <_RBTree_Extract_validate_unprotected+0x248>
ffc0c6fc:	7d 23 4b 78 	mr      r3,r9                                  
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Sibling(                    
  const RBTree_Node *the_node                                         
)                                                                     
{                                                                     
  if(!the_node) return NULL;                                          
  if(!(the_node->parent)) return NULL;                                
ffc0c700:	7d 09 43 78 	mr      r9,r8                                  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(                             
    const RBTree_Node *the_node                                       
    )                                                                 
{                                                                     
  return (the_node && the_node->color == RBT_RED);                    
ffc0c704:	81 03 00 0c 	lwz     r8,12(r3)                              
ffc0c708:	2f 88 00 01 	cmpwi   cr7,r8,1                               
ffc0c70c:	40 9e ff 6c 	bne+    cr7,ffc0c678 <_RBTree_Extract_validate_unprotected+0x28>
      sibling->child[_RBTree_Opposite_direction(dir)]->color = RBT_BLACK;
      _RBTree_Rotate(parent, dir);                                    
      break; /* done */                                               
    }                                                                 
  } /* while */                                                       
  if(!the_node->parent->parent) the_node->color = RBT_BLACK;          
ffc0c710:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0c714:	81 29 00 00 	lwz     r9,0(r9)                               
ffc0c718:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c71c:	4c be 00 20 	bnelr+  cr7                                    
ffc0c720:	91 23 00 0c 	stw     r9,12(r3)                              
ffc0c724:	4e 80 00 20 	blr                                            
       * cases, either the_node is to the left or the right of the parent.
       * In both cases, first check if one of sibling's children is black,
       * and if so rotate in the proper direction and update sibling pointer.
       * Then switch the sibling and parent colors, and rotate through parent.
       */                                                             
      dir = the_node != parent->child[0];                             
ffc0c728:	81 09 00 04 	lwz     r8,4(r9)                               
ffc0c72c:	7c 68 42 78 	xor     r8,r3,r8                               
ffc0c730:	7d 08 00 34 	cntlzw  r8,r8                                  
ffc0c734:	55 08 d9 7e 	rlwinm  r8,r8,27,5,31                          
ffc0c738:	69 08 00 01 	xori    r8,r8,1                                
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction(     
  RBTree_Direction the_dir                                            
)                                                                     
{                                                                     
  return (RBTree_Direction) !((int) the_dir);                         
ffc0c73c:	69 07 00 01 	xori    r7,r8,1                                
      if (!_RBTree_Is_red(sibling->child[_RBTree_Opposite_direction(dir)])) {
ffc0c740:	54 e7 10 3a 	rlwinm  r7,r7,2,0,29                           
ffc0c744:	7c ca 3a 14 	add     r6,r10,r7                              
ffc0c748:	80 c6 00 04 	lwz     r6,4(r6)                               
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(                             
    const RBTree_Node *the_node                                       
    )                                                                 
{                                                                     
  return (the_node && the_node->color == RBT_RED);                    
ffc0c74c:	2f 86 00 00 	cmpwi   cr7,r6,0                               
ffc0c750:	41 9e 00 10 	beq-    cr7,ffc0c760 <_RBTree_Extract_validate_unprotected+0x110>
ffc0c754:	80 a6 00 0c 	lwz     r5,12(r6)                              
ffc0c758:	2f 85 00 01 	cmpwi   cr7,r5,1                               
ffc0c75c:	41 9e 01 4c 	beq-    cr7,ffc0c8a8 <_RBTree_Extract_validate_unprotected+0x258>
        sibling->color = RBT_RED;                                     
        sibling->child[dir]->color = RBT_BLACK;                       
ffc0c760:	55 08 10 3a 	rlwinm  r8,r8,2,0,29                           
ffc0c764:	7c aa 42 14 	add     r5,r10,r8                              
ffc0c768:	80 c5 00 04 	lwz     r6,4(r5)                               
       * and if so rotate in the proper direction and update sibling pointer.
       * Then switch the sibling and parent colors, and rotate through parent.
       */                                                             
      dir = the_node != parent->child[0];                             
      if (!_RBTree_Is_red(sibling->child[_RBTree_Opposite_direction(dir)])) {
        sibling->color = RBT_RED;                                     
ffc0c76c:	38 80 00 01 	li      r4,1                                   
ffc0c770:	90 8a 00 0c 	stw     r4,12(r10)                             
        sibling->child[dir]->color = RBT_BLACK;                       
ffc0c774:	38 80 00 00 	li      r4,0                                   
    RBTree_Direction dir                                              
    )                                                                 
{                                                                     
  RBTree_Node *c;                                                     
  if (the_node == NULL) return;                                       
  if (the_node->child[_RBTree_Opposite_direction(dir)] == NULL) return;
ffc0c778:	2f 86 00 00 	cmpwi   cr7,r6,0                               
ffc0c77c:	90 86 00 0c 	stw     r4,12(r6)                              
ffc0c780:	41 9e 00 54 	beq-    cr7,ffc0c7d4 <_RBTree_Extract_validate_unprotected+0x184><== NEVER TAKEN
                                                                      
  c = the_node->child[_RBTree_Opposite_direction(dir)];               
  the_node->child[_RBTree_Opposite_direction(dir)] = c->child[dir];   
ffc0c784:	7c 86 3a 14 	add     r4,r6,r7                               
ffc0c788:	81 64 00 04 	lwz     r11,4(r4)                              
ffc0c78c:	91 65 00 04 	stw     r11,4(r5)                              
                                                                      
  if (c->child[dir])                                                  
ffc0c790:	80 a4 00 04 	lwz     r5,4(r4)                               
ffc0c794:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc0c798:	41 9e 00 08 	beq-    cr7,ffc0c7a0 <_RBTree_Extract_validate_unprotected+0x150>
    c->child[dir]->parent = the_node;                                 
ffc0c79c:	91 45 00 00 	stw     r10,0(r5)                              
                                                                      
  c->child[dir] = the_node;                                           
ffc0c7a0:	7c a6 3a 14 	add     r5,r6,r7                               
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
ffc0c7a4:	80 8a 00 00 	lwz     r4,0(r10)                              
  the_node->child[_RBTree_Opposite_direction(dir)] = c->child[dir];   
                                                                      
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
ffc0c7a8:	91 45 00 04 	stw     r10,4(r5)                              
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
ffc0c7ac:	80 a4 00 04 	lwz     r5,4(r4)                               
                                                                      
  c->parent = the_node->parent;                                       
ffc0c7b0:	90 86 00 00 	stw     r4,0(r6)                               
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
ffc0c7b4:	7d 45 2a 78 	xor     r5,r10,r5                              
ffc0c7b8:	7c a5 00 34 	cntlzw  r5,r5                                  
                                                                      
  c->parent = the_node->parent;                                       
  the_node->parent = c;                                               
ffc0c7bc:	90 ca 00 00 	stw     r6,0(r10)                              
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
ffc0c7c0:	54 a5 d9 7e 	rlwinm  r5,r5,27,5,31                          
ffc0c7c4:	68 a5 00 01 	xori    r5,r5,1                                
ffc0c7c8:	54 a5 10 3a 	rlwinm  r5,r5,2,0,29                           
ffc0c7cc:	7c 84 2a 14 	add     r4,r4,r5                               
ffc0c7d0:	90 c4 00 04 	stw     r6,4(r4)                               
        _RBTree_Rotate(sibling, _RBTree_Opposite_direction(dir));     
        sibling = parent->child[_RBTree_Opposite_direction(dir)];     
ffc0c7d4:	7d 49 3a 14 	add     r10,r9,r7                              
      }                                                               
      sibling->color = parent->color;                                 
ffc0c7d8:	80 c9 00 0c 	lwz     r6,12(r9)                              
      dir = the_node != parent->child[0];                             
      if (!_RBTree_Is_red(sibling->child[_RBTree_Opposite_direction(dir)])) {
        sibling->color = RBT_RED;                                     
        sibling->child[dir]->color = RBT_BLACK;                       
        _RBTree_Rotate(sibling, _RBTree_Opposite_direction(dir));     
        sibling = parent->child[_RBTree_Opposite_direction(dir)];     
ffc0c7dc:	80 aa 00 04 	lwz     r5,4(r10)                              
ffc0c7e0:	7d 45 3a 14 	add     r10,r5,r7                              
      }                                                               
      sibling->color = parent->color;                                 
ffc0c7e4:	90 c5 00 0c 	stw     r6,12(r5)                              
ffc0c7e8:	80 8a 00 04 	lwz     r4,4(r10)                              
      parent->color = RBT_BLACK;                                      
ffc0c7ec:	39 40 00 00 	li      r10,0                                  
ffc0c7f0:	91 49 00 0c 	stw     r10,12(r9)                             
      sibling->child[_RBTree_Opposite_direction(dir)]->color = RBT_BLACK;
ffc0c7f4:	91 44 00 0c 	stw     r10,12(r4)                             
ffc0c7f8:	48 00 00 d8 	b       ffc0c8d0 <_RBTree_Extract_validate_unprotected+0x280>
     * update sibling pointer.                                        
     */                                                               
    if (_RBTree_Is_red(sibling)) {                                    
      parent->color = RBT_RED;                                        
      sibling->color = RBT_BLACK;                                     
      dir = the_node != parent->child[0];                             
ffc0c7fc:	80 a9 00 04 	lwz     r5,4(r9)                               
     * then rotate parent left, making the sibling be the_node's grandparent.
     * Now the_node has a black sibling and red parent. After rotation,
     * update sibling pointer.                                        
     */                                                               
    if (_RBTree_Is_red(sibling)) {                                    
      parent->color = RBT_RED;                                        
ffc0c800:	90 e9 00 0c 	stw     r7,12(r9)                              
      sibling->color = RBT_BLACK;                                     
      dir = the_node != parent->child[0];                             
ffc0c804:	7c 67 2a 78 	xor     r7,r3,r5                               
ffc0c808:	7c e7 00 34 	cntlzw  r7,r7                                  
     * Now the_node has a black sibling and red parent. After rotation,
     * update sibling pointer.                                        
     */                                                               
    if (_RBTree_Is_red(sibling)) {                                    
      parent->color = RBT_RED;                                        
      sibling->color = RBT_BLACK;                                     
ffc0c80c:	90 8a 00 0c 	stw     r4,12(r10)                             
      dir = the_node != parent->child[0];                             
ffc0c810:	54 e7 d9 7e 	rlwinm  r7,r7,27,5,31                          
ffc0c814:	68 e0 00 01 	xori    r0,r7,1                                
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction(     
  RBTree_Direction the_dir                                            
)                                                                     
{                                                                     
  return (RBTree_Direction) !((int) the_dir);                         
ffc0c818:	68 0b 00 01 	xori    r11,r0,1                               
    RBTree_Direction dir                                              
    )                                                                 
{                                                                     
  RBTree_Node *c;                                                     
  if (the_node == NULL) return;                                       
  if (the_node->child[_RBTree_Opposite_direction(dir)] == NULL) return;
ffc0c81c:	55 6b 10 3a 	rlwinm  r11,r11,2,0,29                         
ffc0c820:	7c a9 5a 14 	add     r5,r9,r11                              
ffc0c824:	80 e5 00 04 	lwz     r7,4(r5)                               
ffc0c828:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc0c82c:	41 9e 00 74 	beq-    cr7,ffc0c8a0 <_RBTree_Extract_validate_unprotected+0x250><== NEVER TAKEN
                                                                      
  c = the_node->child[_RBTree_Opposite_direction(dir)];               
  the_node->child[_RBTree_Opposite_direction(dir)] = c->child[dir];   
ffc0c830:	54 00 10 3a 	rlwinm  r0,r0,2,0,29                           
ffc0c834:	7d 47 02 14 	add     r10,r7,r0                              
ffc0c838:	81 8a 00 04 	lwz     r12,4(r10)                             
ffc0c83c:	91 85 00 04 	stw     r12,4(r5)                              
                                                                      
  if (c->child[dir])                                                  
ffc0c840:	81 4a 00 04 	lwz     r10,4(r10)                             
ffc0c844:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0c848:	41 9e 00 0c 	beq-    cr7,ffc0c854 <_RBTree_Extract_validate_unprotected+0x204><== NEVER TAKEN
    c->child[dir]->parent = the_node;                                 
ffc0c84c:	91 2a 00 00 	stw     r9,0(r10)                              
ffc0c850:	81 09 00 00 	lwz     r8,0(r9)                               
                                                                      
  c->child[dir] = the_node;                                           
ffc0c854:	7d 47 02 14 	add     r10,r7,r0                              
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
                                                                      
  c->parent = the_node->parent;                                       
ffc0c858:	91 07 00 00 	stw     r8,0(r7)                               
ffc0c85c:	7d 69 5a 14 	add     r11,r9,r11                             
  the_node->child[_RBTree_Opposite_direction(dir)] = c->child[dir];   
                                                                      
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
ffc0c860:	91 2a 00 04 	stw     r9,4(r10)                              
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
ffc0c864:	81 48 00 04 	lwz     r10,4(r8)                              
                                                                      
  c->parent = the_node->parent;                                       
  the_node->parent = c;                                               
ffc0c868:	90 e9 00 00 	stw     r7,0(r9)                               
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
ffc0c86c:	7d 2a 52 78 	xor     r10,r9,r10                             
ffc0c870:	7d 4a 00 34 	cntlzw  r10,r10                                
ffc0c874:	55 4a d9 7e 	rlwinm  r10,r10,27,5,31                        
ffc0c878:	69 4a 00 01 	xori    r10,r10,1                              
ffc0c87c:	55 4a 10 3a 	rlwinm  r10,r10,2,0,29                         
ffc0c880:	7d 08 52 14 	add     r8,r8,r10                              
ffc0c884:	90 e8 00 04 	stw     r7,4(r8)                               
ffc0c888:	81 4b 00 04 	lwz     r10,4(r11)                             
ffc0c88c:	4b ff fe 0c 	b       ffc0c698 <_RBTree_Extract_validate_unprotected+0x48>
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Sibling(                    
  const RBTree_Node *the_node                                         
)                                                                     
{                                                                     
  if(!the_node) return NULL;                                          
  if(!(the_node->parent)) return NULL;                                
ffc0c890:	39 40 00 00 	li      r10,0                                  
ffc0c894:	4b ff fe 68 	b       ffc0c6fc <_RBTree_Extract_validate_unprotected+0xac>
  if(!(the_node->parent->parent)) return NULL;                        
                                                                      
  if(the_node == the_node->parent->child[RBT_LEFT])                   
    return the_node->parent->child[RBT_RIGHT];                        
ffc0c898:	81 48 00 08 	lwz     r10,8(r8)                              
ffc0c89c:	4b ff fe 60 	b       ffc0c6fc <_RBTree_Extract_validate_unprotected+0xac>
    RBTree_Direction dir                                              
    )                                                                 
{                                                                     
  RBTree_Node *c;                                                     
  if (the_node == NULL) return;                                       
  if (the_node->child[_RBTree_Opposite_direction(dir)] == NULL) return;
ffc0c8a0:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
ffc0c8a4:	4b ff fd f4 	b       ffc0c698 <_RBTree_Extract_validate_unprotected+0x48><== NOT EXECUTED
ffc0c8a8:	7c a9 3a 14 	add     r5,r9,r7                               
        sibling->color = RBT_RED;                                     
        sibling->child[dir]->color = RBT_BLACK;                       
        _RBTree_Rotate(sibling, _RBTree_Opposite_direction(dir));     
        sibling = parent->child[_RBTree_Opposite_direction(dir)];     
      }                                                               
      sibling->color = parent->color;                                 
ffc0c8ac:	81 69 00 0c 	lwz     r11,12(r9)                             
ffc0c8b0:	80 a5 00 04 	lwz     r5,4(r5)                               
      parent->color = RBT_BLACK;                                      
ffc0c8b4:	38 80 00 00 	li      r4,0                                   
        sibling->color = RBT_RED;                                     
        sibling->child[dir]->color = RBT_BLACK;                       
        _RBTree_Rotate(sibling, _RBTree_Opposite_direction(dir));     
        sibling = parent->child[_RBTree_Opposite_direction(dir)];     
      }                                                               
      sibling->color = parent->color;                                 
ffc0c8b8:	91 6a 00 0c 	stw     r11,12(r10)                            
ffc0c8bc:	2f 85 00 00 	cmpwi   cr7,r5,0                               
      parent->color = RBT_BLACK;                                      
ffc0c8c0:	90 89 00 0c 	stw     r4,12(r9)                              
      sibling->child[_RBTree_Opposite_direction(dir)]->color = RBT_BLACK;
ffc0c8c4:	90 86 00 0c 	stw     r4,12(r6)                              
ffc0c8c8:	41 be fe 48 	beq-    cr7,ffc0c710 <_RBTree_Extract_validate_unprotected+0xc0><== NEVER TAKEN
ffc0c8cc:	55 08 10 3a 	rlwinm  r8,r8,2,0,29                           
                                                                      
  c = the_node->child[_RBTree_Opposite_direction(dir)];               
  the_node->child[_RBTree_Opposite_direction(dir)] = c->child[dir];   
ffc0c8d0:	7d 45 42 14 	add     r10,r5,r8                              
ffc0c8d4:	80 ca 00 04 	lwz     r6,4(r10)                              
ffc0c8d8:	7c e9 3a 14 	add     r7,r9,r7                               
ffc0c8dc:	90 c7 00 04 	stw     r6,4(r7)                               
                                                                      
  if (c->child[dir])                                                  
ffc0c8e0:	81 4a 00 04 	lwz     r10,4(r10)                             
ffc0c8e4:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0c8e8:	41 9e 00 08 	beq-    cr7,ffc0c8f0 <_RBTree_Extract_validate_unprotected+0x2a0>
    c->child[dir]->parent = the_node;                                 
ffc0c8ec:	91 2a 00 00 	stw     r9,0(r10)                              
                                                                      
  c->child[dir] = the_node;                                           
ffc0c8f0:	7d 05 42 14 	add     r8,r5,r8                               
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
ffc0c8f4:	80 e9 00 00 	lwz     r7,0(r9)                               
  the_node->child[_RBTree_Opposite_direction(dir)] = c->child[dir];   
                                                                      
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
ffc0c8f8:	91 28 00 04 	stw     r9,4(r8)                               
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
                                                                      
  c->parent = the_node->parent;                                       
ffc0c8fc:	90 e5 00 00 	stw     r7,0(r5)                               
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
ffc0c900:	81 47 00 04 	lwz     r10,4(r7)                              
                                                                      
  c->parent = the_node->parent;                                       
  the_node->parent = c;                                               
ffc0c904:	90 a9 00 00 	stw     r5,0(r9)                               
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
ffc0c908:	7d 2a 52 78 	xor     r10,r9,r10                             
      _RBTree_Rotate(parent, dir);                                    
      break; /* done */                                               
    }                                                                 
  } /* while */                                                       
  if(!the_node->parent->parent) the_node->color = RBT_BLACK;          
ffc0c90c:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0c910:	7d 4a 00 34 	cntlzw  r10,r10                                
ffc0c914:	55 4a d9 7e 	rlwinm  r10,r10,27,5,31                        
ffc0c918:	81 29 00 00 	lwz     r9,0(r9)                               
ffc0c91c:	69 4a 00 01 	xori    r10,r10,1                              
ffc0c920:	55 4a 10 3a 	rlwinm  r10,r10,2,0,29                         
ffc0c924:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c928:	7c e7 52 14 	add     r7,r7,r10                              
ffc0c92c:	90 a7 00 04 	stw     r5,4(r7)                               
ffc0c930:	4c be 00 20 	bnelr+  cr7                                    
ffc0c934:	4b ff fd ec 	b       ffc0c720 <_RBTree_Extract_validate_unprotected+0xd0><== NOT EXECUTED
  if(!the_node) return NULL;                                          
  if(!(the_node->parent)) return NULL;                                
  if(!(the_node->parent->parent)) return NULL;                        
                                                                      
  if(the_node == the_node->parent->child[RBT_LEFT])                   
    return the_node->parent->child[RBT_RIGHT];                        
ffc0c938:	81 49 00 08 	lwz     r10,8(r9)                              
ffc0c93c:	4b ff fd 30 	b       ffc0c66c <_RBTree_Extract_validate_unprotected+0x1c>
    /* sibling is black, see if both of its children are also black. */
    if (!_RBTree_Is_red(sibling->child[RBT_RIGHT]) &&                 
        !_RBTree_Is_red(sibling->child[RBT_LEFT])) {                  
        sibling->color = RBT_RED;                                     
        if (_RBTree_Is_red(parent)) {                                 
          parent->color = RBT_BLACK;                                  
ffc0c940:	39 40 00 00 	li      r10,0                                  
ffc0c944:	91 49 00 0c 	stw     r10,12(r9)                             
      sibling->child[_RBTree_Opposite_direction(dir)]->color = RBT_BLACK;
      _RBTree_Rotate(parent, dir);                                    
      break; /* done */                                               
    }                                                                 
  } /* while */                                                       
  if(!the_node->parent->parent) the_node->color = RBT_BLACK;          
ffc0c948:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0c94c:	81 29 00 00 	lwz     r9,0(r9)                               
ffc0c950:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c954:	4c be 00 20 	bnelr+  cr7                                    
ffc0c958:	4b ff fd c8 	b       ffc0c720 <_RBTree_Extract_validate_unprotected+0xd0><== NOT EXECUTED
                                                                      

ffc0cd00 <_RBTree_Find>: RBTree_Node *_RBTree_Find( RBTree_Control *the_rbtree, RBTree_Node *search_node ) {
ffc0cd00:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0cd04:	7c 08 02 a6 	mflr    r0                                     
ffc0cd08:	90 01 00 24 	stw     r0,36(r1)                              
ffc0cd0c:	93 c1 00 18 	stw     r30,24(r1)                             
ffc0cd10:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0cd14:	93 61 00 0c 	stw     r27,12(r1)                             
ffc0cd18:	93 81 00 10 	stw     r28,16(r1)                             
ffc0cd1c:	93 a1 00 14 	stw     r29,20(r1)                             
ffc0cd20:	93 e1 00 1c 	stw     r31,28(r1)                             
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0cd24:	7f 60 00 a6 	mfmsr   r27                                    
ffc0cd28:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0cd2c:	7f 69 48 78 	andc    r9,r27,r9                              
ffc0cd30:	7d 20 01 24 	mtmsr   r9                                     
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Find_unprotected(           
    RBTree_Control *the_rbtree,                                       
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
  RBTree_Node* iter_node = the_rbtree->root;                          
ffc0cd34:	83 e3 00 04 	lwz     r31,4(r3)                              
  RBTree_Node* found = NULL;                                          
  int compare_result;                                                 
  while (iter_node) {                                                 
ffc0cd38:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0cd3c:	41 9e 00 b0 	beq-    cr7,ffc0cdec <_RBTree_Find+0xec>       <== NEVER TAKEN
ffc0cd40:	7c 9d 23 78 	mr      r29,r4                                 
ffc0cd44:	3b 80 00 00 	li      r28,0                                  
    compare_result = the_rbtree->compare_function(the_node, iter_node);
ffc0cd48:	81 3e 00 10 	lwz     r9,16(r30)                             
ffc0cd4c:	7f e4 fb 78 	mr      r4,r31                                 
ffc0cd50:	7f a3 eb 78 	mr      r3,r29                                 
ffc0cd54:	7d 29 03 a6 	mtctr   r9                                     
ffc0cd58:	4e 80 04 21 	bctrl                                          
    if ( _RBTree_Is_equal( compare_result ) ) {                       
ffc0cd5c:	2c 03 00 00 	cmpwi   r3,0                                   
                                                                      
RTEMS_INLINE_ROUTINE bool _RBTree_Is_greater(                         
  int compare_result                                                  
)                                                                     
{                                                                     
  return compare_result > 0;                                          
ffc0cd60:	7c 6a fe 70 	srawi   r10,r3,31                              
ffc0cd64:	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];                                
ffc0cd68:	55 29 1f 7a 	rlwinm  r9,r9,3,29,29                          
ffc0cd6c:	7d 3f 4a 14 	add     r9,r31,r9                              
  RBTree_Node* iter_node = the_rbtree->root;                          
  RBTree_Node* found = NULL;                                          
  int compare_result;                                                 
  while (iter_node) {                                                 
    compare_result = the_rbtree->compare_function(the_node, iter_node);
    if ( _RBTree_Is_equal( compare_result ) ) {                       
ffc0cd70:	40 82 00 14 	bne-    ffc0cd84 <_RBTree_Find+0x84>           
      found = iter_node;                                              
      if ( the_rbtree->is_unique )                                    
ffc0cd74:	89 5e 00 14 	lbz     r10,20(r30)                            
ffc0cd78:	7f fc fb 78 	mr      r28,r31                                
ffc0cd7c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0cd80:	40 9e 00 3c 	bne-    cr7,ffc0cdbc <_RBTree_Find+0xbc>       
        break;                                                        
    }                                                                 
                                                                      
    RBTree_Direction dir =                                            
      (RBTree_Direction) _RBTree_Is_greater( compare_result );        
    iter_node = iter_node->child[dir];                                
ffc0cd84:	83 e9 00 04 	lwz     r31,4(r9)                              
    )                                                                 
{                                                                     
  RBTree_Node* iter_node = the_rbtree->root;                          
  RBTree_Node* found = NULL;                                          
  int compare_result;                                                 
  while (iter_node) {                                                 
ffc0cd88:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0cd8c:	40 9e ff bc 	bne+    cr7,ffc0cd48 <_RBTree_Find+0x48>       
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0cd90:	7f 60 01 24 	mtmsr   r27                                    
  return_node = NULL;                                                 
  _ISR_Disable( level );                                              
      return_node = _RBTree_Find_unprotected( the_rbtree, search_node );
  _ISR_Enable( level );                                               
  return return_node;                                                 
}                                                                     
ffc0cd94:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0cd98:	7f 83 e3 78 	mr      r3,r28                                 
ffc0cd9c:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0cda0:	7c 08 03 a6 	mtlr    r0                                     
ffc0cda4:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0cda8:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0cdac:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0cdb0:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0cdb4:	38 21 00 20 	addi    r1,r1,32                               
ffc0cdb8:	4e 80 00 20 	blr                                            
    compare_result = the_rbtree->compare_function(the_node, iter_node);
    if ( _RBTree_Is_equal( compare_result ) ) {                       
      found = iter_node;                                              
      if ( the_rbtree->is_unique )                                    
ffc0cdbc:	7f fc fb 78 	mr      r28,r31                                
ffc0cdc0:	7f 60 01 24 	mtmsr   r27                                    
ffc0cdc4:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0cdc8:	7f 83 e3 78 	mr      r3,r28                                 
ffc0cdcc:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0cdd0:	7c 08 03 a6 	mtlr    r0                                     
ffc0cdd4:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0cdd8:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0cddc:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0cde0:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0cde4:	38 21 00 20 	addi    r1,r1,32                               
ffc0cde8:	4e 80 00 20 	blr                                            
    RBTree_Control *the_rbtree,                                       
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
  RBTree_Node* iter_node = the_rbtree->root;                          
  RBTree_Node* found = NULL;                                          
ffc0cdec:	3b 80 00 00 	li      r28,0                                  <== NOT EXECUTED
ffc0cdf0:	4b ff ff a0 	b       ffc0cd90 <_RBTree_Find+0x90>           <== NOT EXECUTED
                                                                      

ffc0d29c <_RBTree_Initialize>: void *starting_address, size_t number_nodes, size_t node_size, bool is_unique ) {
ffc0d29c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0d2a0:	7c 08 02 a6 	mflr    r0                                     
ffc0d2a4:	93 a1 00 0c 	stw     r29,12(r1)                             
  size_t      count;                                                  
  RBTree_Node *next;                                                  
                                                                      
  /* TODO: Error message? */                                          
  if (!the_rbtree) return;                                            
ffc0d2a8:	7c 7d 1b 79 	mr.     r29,r3                                 
  void                    *starting_address,                          
  size_t                   number_nodes,                              
  size_t                   node_size,                                 
  bool                     is_unique                                  
)                                                                     
{                                                                     
ffc0d2ac:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0d2b0:	93 81 00 08 	stw     r28,8(r1)                              
ffc0d2b4:	93 c1 00 10 	stw     r30,16(r1)                             
ffc0d2b8:	93 e1 00 14 	stw     r31,20(r1)                             
  size_t      count;                                                  
  RBTree_Node *next;                                                  
                                                                      
  /* TODO: Error message? */                                          
  if (!the_rbtree) return;                                            
ffc0d2bc:	41 82 00 4c 	beq-    ffc0d308 <_RBTree_Initialize+0x6c>     <== NEVER TAKEN
  /* could do sanity checks here */                                   
  _RBTree_Initialize_empty(the_rbtree, compare_function, is_unique);  
                                                                      
  count = number_nodes;                                               
  next  = starting_address;                                           
  while ( count-- ) {                                                 
ffc0d2c0:	2f 86 00 00 	cmpwi   cr7,r6,0                               
{                                                                     
  the_rbtree->permanent_null   = NULL;                                
  the_rbtree->root             = NULL;                                
  the_rbtree->first[0]         = NULL;                                
  the_rbtree->first[1]         = NULL;                                
  the_rbtree->compare_function = compare_function;                    
ffc0d2c4:	90 9d 00 10 	stw     r4,16(r29)                             
    RBTree_Control          *the_rbtree,                              
    RBTree_Compare_function  compare_function,                        
    bool                     is_unique                                
    )                                                                 
{                                                                     
  the_rbtree->permanent_null   = NULL;                                
ffc0d2c8:	39 20 00 00 	li      r9,0                                   
ffc0d2cc:	7c df 33 78 	mr      r31,r6                                 
ffc0d2d0:	91 3d 00 00 	stw     r9,0(r29)                              
  the_rbtree->root             = NULL;                                
ffc0d2d4:	91 3d 00 04 	stw     r9,4(r29)                              
  the_rbtree->first[0]         = NULL;                                
ffc0d2d8:	91 3d 00 08 	stw     r9,8(r29)                              
  the_rbtree->first[1]         = NULL;                                
ffc0d2dc:	91 3d 00 0c 	stw     r9,12(r29)                             
  the_rbtree->compare_function = compare_function;                    
  the_rbtree->is_unique        = is_unique;                           
ffc0d2e0:	99 1d 00 14 	stb     r8,20(r29)                             
ffc0d2e4:	41 9e 00 24 	beq-    cr7,ffc0d308 <_RBTree_Initialize+0x6c> <== NEVER TAKEN
ffc0d2e8:	7c fc 3b 78 	mr      r28,r7                                 
ffc0d2ec:	7c be 2b 78 	mr      r30,r5                                 
    _RBTree_Insert_unprotected(the_rbtree, next);                     
ffc0d2f0:	7f c4 f3 78 	mr      r4,r30                                 
ffc0d2f4:	7f a3 eb 78 	mr      r3,r29                                 
ffc0d2f8:	4b ff fb 55 	bl      ffc0ce4c <_RBTree_Insert_unprotected>  
  /* could do sanity checks here */                                   
  _RBTree_Initialize_empty(the_rbtree, compare_function, is_unique);  
                                                                      
  count = number_nodes;                                               
  next  = starting_address;                                           
  while ( count-- ) {                                                 
ffc0d2fc:	37 ff ff ff 	addic.  r31,r31,-1                             
#include <rtems/system.h>                                             
#include <rtems/score/address.h>                                      
#include <rtems/score/rbtree.h>                                       
#include <rtems/score/isr.h>                                          
                                                                      
void _RBTree_Initialize(                                              
ffc0d300:	7f de e2 14 	add     r30,r30,r28                            
  /* could do sanity checks here */                                   
  _RBTree_Initialize_empty(the_rbtree, compare_function, is_unique);  
                                                                      
  count = number_nodes;                                               
  next  = starting_address;                                           
  while ( count-- ) {                                                 
ffc0d304:	40 82 ff ec 	bne+    ffc0d2f0 <_RBTree_Initialize+0x54>     
    _RBTree_Insert_unprotected(the_rbtree, next);                     
    next           = (RBTree_Node *)                                  
                        _Addresses_Add_offset( (void *) next, node_size );
  }                                                                   
}                                                                     
ffc0d308:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0d30c:	83 81 00 08 	lwz     r28,8(r1)                              
ffc0d310:	7c 08 03 a6 	mtlr    r0                                     
ffc0d314:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0d318:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0d31c:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0d320:	38 21 00 18 	addi    r1,r1,24                               
ffc0d324:	4e 80 00 20 	blr                                            
                                                                      

ffc0cb80 <_RBTree_Insert_unprotected>: */ RBTree_Node *_RBTree_Insert_unprotected( RBTree_Control *the_rbtree, RBTree_Node *the_node ) {
ffc0cb80:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0cb84:	7c 08 02 a6 	mflr    r0                                     
ffc0cb88:	93 e1 00 1c 	stw     r31,28(r1)                             
  if(!the_node) return (RBTree_Node*)-1;                              
ffc0cb8c:	7c 9f 23 79 	mr.     r31,r4                                 
 */                                                                   
RBTree_Node *_RBTree_Insert_unprotected(                              
    RBTree_Control *the_rbtree,                                       
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
ffc0cb90:	90 01 00 24 	stw     r0,36(r1)                              
ffc0cb94:	93 41 00 08 	stw     r26,8(r1)                              
ffc0cb98:	93 61 00 0c 	stw     r27,12(r1)                             
ffc0cb9c:	93 81 00 10 	stw     r28,16(r1)                             
ffc0cba0:	93 a1 00 14 	stw     r29,20(r1)                             
ffc0cba4:	93 c1 00 18 	stw     r30,24(r1)                             
  if(!the_node) return (RBTree_Node*)-1;                              
ffc0cba8:	41 82 02 b8 	beq-    ffc0ce60 <_RBTree_Insert_unprotected+0x2e0>
                                                                      
  RBTree_Node *iter_node = the_rbtree->root;                          
ffc0cbac:	83 a3 00 04 	lwz     r29,4(r3)                              
ffc0cbb0:	7c 7c 1b 78 	mr      r28,r3                                 
  int compare_result;                                                 
                                                                      
  if (!iter_node) { /* special case: first node inserted */           
ffc0cbb4:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0cbb8:	40 be 00 0c 	bne+    cr7,ffc0cbc4 <_RBTree_Insert_unprotected+0x44>
ffc0cbbc:	48 00 02 dc 	b       ffc0ce98 <_RBTree_Insert_unprotected+0x318>
              (dir && _RBTree_Is_greater(compare_result)) ) {         
          the_rbtree->first[dir] = the_node;                          
        }                                                             
        break;                                                        
      } else {                                                        
        iter_node = iter_node->child[dir];                            
ffc0cbc0:	7f dd f3 78 	mr      r29,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);
ffc0cbc4:	81 3c 00 10 	lwz     r9,16(r28)                             
ffc0cbc8:	7f a4 eb 78 	mr      r4,r29                                 
ffc0cbcc:	7f e3 fb 78 	mr      r3,r31                                 
ffc0cbd0:	7d 29 03 a6 	mtctr   r9                                     
ffc0cbd4:	4e 80 04 21 	bctrl                                          
      if ( the_rbtree->is_unique && _RBTree_Is_equal( compare_result ) )
ffc0cbd8:	89 5c 00 14 	lbz     r10,20(r28)                            
        return iter_node;                                             
      RBTree_Direction dir = !_RBTree_Is_lesser( compare_result );    
ffc0cbdc:	7c 7a 18 f8 	not     r26,r3                                 
    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);
      if ( the_rbtree->is_unique && _RBTree_Is_equal( compare_result ) )
ffc0cbe0:	2f 0a 00 00 	cmpwi   cr6,r10,0                              
        return iter_node;                                             
      RBTree_Direction dir = !_RBTree_Is_lesser( compare_result );    
ffc0cbe4:	57 5a 0f fe 	rlwinm  r26,r26,1,31,31                        
      if (!iter_node->child[dir]) {                                   
ffc0cbe8:	57 5b 10 3a 	rlwinm  r27,r26,2,0,29                         
ffc0cbec:	7d 3d da 14 	add     r9,r29,r27                             
    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);
      if ( the_rbtree->is_unique && _RBTree_Is_equal( compare_result ) )
ffc0cbf0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
        return iter_node;                                             
      RBTree_Direction dir = !_RBTree_Is_lesser( compare_result );    
      if (!iter_node->child[dir]) {                                   
ffc0cbf4:	39 09 00 04 	addi    r8,r9,4                                
    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);
      if ( the_rbtree->is_unique && _RBTree_Is_equal( compare_result ) )
ffc0cbf8:	41 9a 00 08 	beq-    cr6,ffc0cc00 <_RBTree_Insert_unprotected+0x80>
ffc0cbfc:	41 9e 02 94 	beq-    cr7,ffc0ce90 <_RBTree_Insert_unprotected+0x310>
        return iter_node;                                             
      RBTree_Direction dir = !_RBTree_Is_lesser( compare_result );    
      if (!iter_node->child[dir]) {                                   
ffc0cc00:	83 c9 00 04 	lwz     r30,4(r9)                              
ffc0cc04:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0cc08:	40 9e ff b8 	bne+    cr7,ffc0cbc0 <_RBTree_Insert_unprotected+0x40>
        the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;
        the_node->color = RBT_RED;                                    
ffc0cc0c:	39 20 00 01 	li      r9,1                                   
      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;
ffc0cc10:	93 df 00 08 	stw     r30,8(r31)                             
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_First(                      
  const RBTree_Control *the_rbtree,                                   
  RBTree_Direction dir                                                
)                                                                     
{                                                                     
  return the_rbtree->first[dir];                                      
ffc0cc14:	7d 5c da 14 	add     r10,r28,r27                            
        the_node->color = RBT_RED;                                    
ffc0cc18:	91 3f 00 0c 	stw     r9,12(r31)                             
        iter_node->child[dir] = the_node;                             
        the_node->parent = iter_node;                                 
        /* update min/max */                                          
        compare_result = the_rbtree->compare_function(                
ffc0cc1c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0cc20:	81 3c 00 10 	lwz     r9,16(r28)                             
      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;
ffc0cc24:	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(                
ffc0cc28:	7d 29 03 a6 	mtctr   r9                                     
        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;                             
ffc0cc2c:	93 e8 00 00 	stw     r31,0(r8)                              
        the_node->parent = iter_node;                                 
ffc0cc30:	93 bf 00 00 	stw     r29,0(r31)                             
        /* update min/max */                                          
        compare_result = the_rbtree->compare_function(                
ffc0cc34:	80 8a 00 08 	lwz     r4,8(r10)                              
ffc0cc38:	4e 80 04 21 	bctrl                                          
            the_node,                                                 
            _RBTree_First(the_rbtree, dir)                            
        );                                                            
        if ( (!dir && _RBTree_Is_lesser(compare_result)) ||           
ffc0cc3c:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc0cc40:	40 9e 00 60 	bne-    cr7,ffc0cca0 <_RBTree_Insert_unprotected+0x120>
ffc0cc44:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0cc48:	41 9c 00 60 	blt-    cr7,ffc0cca8 <_RBTree_Insert_unprotected+0x128>
      /* 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;                            
ffc0cc4c:	38 80 00 00 	li      r4,0                                   
      g->color = RBT_RED;                                             
ffc0cc50:	38 60 00 01 	li      r3,1                                   
                                                                      
  _ISR_Disable( level );                                              
  return_node = _RBTree_Insert_unprotected( tree, node );             
  _ISR_Enable( level );                                               
  return return_node;                                                 
}                                                                     
ffc0cc54:	81 3f 00 00 	lwz     r9,0(r31)                              
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Parent(                     
  const RBTree_Node *the_node                                         
)                                                                     
{                                                                     
  if (!the_node->parent->parent) return NULL;                         
ffc0cc58:	81 49 00 00 	lwz     r10,0(r9)                              
ffc0cc5c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0cc60:	7d 46 53 78 	mr      r6,r10                                 
ffc0cc64:	41 9e 01 b0 	beq-    cr7,ffc0ce14 <_RBTree_Insert_unprotected+0x294>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(                             
    const RBTree_Node *the_node                                       
    )                                                                 
{                                                                     
  return (the_node && the_node->color == RBT_RED);                    
ffc0cc68:	81 09 00 0c 	lwz     r8,12(r9)                              
ffc0cc6c:	2f 88 00 01 	cmpwi   cr7,r8,1                               
ffc0cc70:	41 9e 00 44 	beq-    cr7,ffc0ccb4 <_RBTree_Insert_unprotected+0x134>
                                                                      
    /* verify red-black properties */                                 
    _RBTree_Validate_insert_unprotected(the_node);                    
  }                                                                   
  return (RBTree_Node*)0;                                             
}                                                                     
ffc0cc74:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0cc78:	7f c3 f3 78 	mr      r3,r30                                 
ffc0cc7c:	83 41 00 08 	lwz     r26,8(r1)                              
ffc0cc80:	7c 08 03 a6 	mtlr    r0                                     
ffc0cc84:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0cc88:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0cc8c:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0cc90:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0cc94:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0cc98:	38 21 00 20 	addi    r1,r1,32                               
ffc0cc9c:	4e 80 00 20 	blr                                            
        compare_result = the_rbtree->compare_function(                
            the_node,                                                 
            _RBTree_First(the_rbtree, dir)                            
        );                                                            
        if ( (!dir && _RBTree_Is_lesser(compare_result)) ||           
              (dir && _RBTree_Is_greater(compare_result)) ) {         
ffc0cca0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0cca4:	40 bd ff a8 	ble-    cr7,ffc0cc4c <_RBTree_Insert_unprotected+0xcc>
          the_rbtree->first[dir] = the_node;                          
ffc0cca8:	7f 9c da 14 	add     r28,r28,r27                            
ffc0ccac:	93 fc 00 08 	stw     r31,8(r28)                             
ffc0ccb0:	4b ff ff 9c 	b       ffc0cc4c <_RBTree_Insert_unprotected+0xcc>
)                                                                     
{                                                                     
  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;                
ffc0ccb4:	81 0a 00 00 	lwz     r8,0(r10)                              
ffc0ccb8:	80 ea 00 04 	lwz     r7,4(r10)                              
ffc0ccbc:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0ccc0:	41 9e 00 24 	beq-    cr7,ffc0cce4 <_RBTree_Insert_unprotected+0x164><== 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])                   
ffc0ccc4:	7f 89 38 00 	cmpw    cr7,r9,r7                              
ffc0ccc8:	7c e8 3b 78 	mr      r8,r7                                  
ffc0cccc:	41 9e 01 8c 	beq-    cr7,ffc0ce58 <_RBTree_Insert_unprotected+0x2d8>
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RBTree_Is_red(                             
    const RBTree_Node *the_node                                       
    )                                                                 
{                                                                     
  return (the_node && the_node->color == RBT_RED);                    
ffc0ccd0:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0ccd4:	41 9e 00 10 	beq-    cr7,ffc0cce4 <_RBTree_Insert_unprotected+0x164>
ffc0ccd8:	80 a8 00 0c 	lwz     r5,12(r8)                              
ffc0ccdc:	2f 85 00 01 	cmpwi   cr7,r5,1                               
ffc0cce0:	41 9e 01 64 	beq-    cr7,ffc0ce44 <_RBTree_Insert_unprotected+0x2c4>
      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];  
ffc0cce4:	81 09 00 04 	lwz     r8,4(r9)                               
      RBTree_Direction pdir = the_node->parent != g->child[0];        
ffc0cce8:	7d 27 3a 78 	xor     r7,r9,r7                               
ffc0ccec:	7c e7 00 34 	cntlzw  r7,r7                                  
      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];  
ffc0ccf0:	7f e8 42 78 	xor     r8,r31,r8                              
ffc0ccf4:	7d 08 00 34 	cntlzw  r8,r8                                  
      RBTree_Direction pdir = the_node->parent != g->child[0];        
ffc0ccf8:	54 e7 d9 7e 	rlwinm  r7,r7,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];  
ffc0ccfc:	55 08 d9 7e 	rlwinm  r8,r8,27,5,31                          
      RBTree_Direction pdir = the_node->parent != g->child[0];        
ffc0cd00:	68 e7 00 01 	xori    r7,r7,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];  
ffc0cd04:	69 08 00 01 	xori    r8,r8,1                                
      RBTree_Direction pdir = the_node->parent != g->child[0];        
                                                                      
      /* ensure node is on the same branch direction as parent */     
      if (dir != pdir) {                                              
ffc0cd08:	7f 88 38 00 	cmpw    cr7,r8,r7                              
ffc0cd0c:	41 9e 00 7c 	beq-    cr7,ffc0cd88 <_RBTree_Insert_unprotected+0x208>
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction(     
  RBTree_Direction the_dir                                            
)                                                                     
{                                                                     
  return (RBTree_Direction) !((int) the_dir);                         
ffc0cd10:	68 e5 00 01 	xori    r5,r7,1                                
    RBTree_Direction dir                                              
    )                                                                 
{                                                                     
  RBTree_Node *c;                                                     
  if (the_node == NULL) return;                                       
  if (the_node->child[_RBTree_Opposite_direction(dir)] == NULL) return;
ffc0cd14:	54 a5 10 3a 	rlwinm  r5,r5,2,0,29                           
ffc0cd18:	7c a9 2a 14 	add     r5,r9,r5                               
ffc0cd1c:	81 05 00 04 	lwz     r8,4(r5)                               
ffc0cd20:	54 eb 10 3a 	rlwinm  r11,r7,2,0,29                          
ffc0cd24:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0cd28:	41 9e 00 54 	beq-    cr7,ffc0cd7c <_RBTree_Insert_unprotected+0x1fc><== NEVER TAKEN
                                                                      
  c = the_node->child[_RBTree_Opposite_direction(dir)];               
  the_node->child[_RBTree_Opposite_direction(dir)] = c->child[dir];   
ffc0cd2c:	7f a8 5a 14 	add     r29,r8,r11                             
ffc0cd30:	80 1d 00 04 	lwz     r0,4(r29)                              
ffc0cd34:	90 05 00 04 	stw     r0,4(r5)                               
                                                                      
  if (c->child[dir])                                                  
ffc0cd38:	80 bd 00 04 	lwz     r5,4(r29)                              
ffc0cd3c:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc0cd40:	41 9e 00 0c 	beq-    cr7,ffc0cd4c <_RBTree_Insert_unprotected+0x1cc>
    c->child[dir]->parent = the_node;                                 
ffc0cd44:	91 25 00 00 	stw     r9,0(r5)                               
ffc0cd48:	81 49 00 00 	lwz     r10,0(r9)                              
                                                                      
  c->child[dir] = the_node;                                           
ffc0cd4c:	7c a8 5a 14 	add     r5,r8,r11                              
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
                                                                      
  c->parent = the_node->parent;                                       
ffc0cd50:	91 48 00 00 	stw     r10,0(r8)                              
  the_node->child[_RBTree_Opposite_direction(dir)] = c->child[dir];   
                                                                      
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
ffc0cd54:	91 25 00 04 	stw     r9,4(r5)                               
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
ffc0cd58:	80 aa 00 04 	lwz     r5,4(r10)                              
                                                                      
  c->parent = the_node->parent;                                       
  the_node->parent = c;                                               
ffc0cd5c:	91 09 00 00 	stw     r8,0(r9)                               
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
ffc0cd60:	7d 25 2a 78 	xor     r5,r9,r5                               
ffc0cd64:	7c a5 00 34 	cntlzw  r5,r5                                  
ffc0cd68:	54 a5 d9 7e 	rlwinm  r5,r5,27,5,31                          
ffc0cd6c:	68 a5 00 01 	xori    r5,r5,1                                
ffc0cd70:	54 a5 10 3a 	rlwinm  r5,r5,2,0,29                           
ffc0cd74:	7d 4a 2a 14 	add     r10,r10,r5                             
ffc0cd78:	91 0a 00 04 	stw     r8,4(r10)                              
        _RBTree_Rotate(the_node->parent, pdir);                       
        the_node = the_node->child[pdir];                             
ffc0cd7c:	7f ff 5a 14 	add     r31,r31,r11                            
ffc0cd80:	83 ff 00 04 	lwz     r31,4(r31)                             
ffc0cd84:	81 3f 00 00 	lwz     r9,0(r31)                              
      }                                                               
      the_node->parent->color = RBT_BLACK;                            
      g->color = RBT_RED;                                             
                                                                      
      /* now rotate grandparent in the other branch direction (toward uncle) */
      _RBTree_Rotate(g, (1-pdir));                                    
ffc0cd88:	20 e7 00 01 	subfic  r7,r7,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;                            
ffc0cd8c:	90 89 00 0c 	stw     r4,12(r9)                              
ffc0cd90:	68 e8 00 01 	xori    r8,r7,1                                
    RBTree_Direction dir                                              
    )                                                                 
{                                                                     
  RBTree_Node *c;                                                     
  if (the_node == NULL) return;                                       
  if (the_node->child[_RBTree_Opposite_direction(dir)] == NULL) return;
ffc0cd94:	55 08 10 3a 	rlwinm  r8,r8,2,0,29                           
      g->color = RBT_RED;                                             
ffc0cd98:	90 66 00 0c 	stw     r3,12(r6)                              
ffc0cd9c:	7d 06 42 14 	add     r8,r6,r8                               
ffc0cda0:	81 48 00 04 	lwz     r10,4(r8)                              
ffc0cda4:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0cda8:	41 be fe ac 	beq-    cr7,ffc0cc54 <_RBTree_Insert_unprotected+0xd4><== NEVER TAKEN
                                                                      
  c = the_node->child[_RBTree_Opposite_direction(dir)];               
  the_node->child[_RBTree_Opposite_direction(dir)] = c->child[dir];   
ffc0cdac:	54 e7 10 3a 	rlwinm  r7,r7,2,0,29                           
ffc0cdb0:	7d 2a 3a 14 	add     r9,r10,r7                              
ffc0cdb4:	80 a9 00 04 	lwz     r5,4(r9)                               
ffc0cdb8:	90 a8 00 04 	stw     r5,4(r8)                               
                                                                      
  if (c->child[dir])                                                  
ffc0cdbc:	81 29 00 04 	lwz     r9,4(r9)                               
ffc0cdc0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0cdc4:	41 9e 00 08 	beq-    cr7,ffc0cdcc <_RBTree_Insert_unprotected+0x24c>
    c->child[dir]->parent = the_node;                                 
ffc0cdc8:	90 c9 00 00 	stw     r6,0(r9)                               
                                                                      
  c->child[dir] = the_node;                                           
ffc0cdcc:	7c ea 3a 14 	add     r7,r10,r7                              
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
ffc0cdd0:	81 06 00 00 	lwz     r8,0(r6)                               
  the_node->child[_RBTree_Opposite_direction(dir)] = c->child[dir];   
                                                                      
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
ffc0cdd4:	90 c7 00 04 	stw     r6,4(r7)                               
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
ffc0cdd8:	81 28 00 04 	lwz     r9,4(r8)                               
                                                                      
  c->parent = the_node->parent;                                       
ffc0cddc:	91 0a 00 00 	stw     r8,0(r10)                              
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
ffc0cde0:	7c c9 4a 78 	xor     r9,r6,r9                               
ffc0cde4:	7d 29 00 34 	cntlzw  r9,r9                                  
                                                                      
  c->parent = the_node->parent;                                       
  the_node->parent = c;                                               
ffc0cde8:	91 46 00 00 	stw     r10,0(r6)                              
  if (c->child[dir])                                                  
    c->child[dir]->parent = the_node;                                 
                                                                      
  c->child[dir] = the_node;                                           
                                                                      
  the_node->parent->child[the_node != the_node->parent->child[0]] = c;
ffc0cdec:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
ffc0cdf0:	69 29 00 01 	xori    r9,r9,1                                
ffc0cdf4:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc0cdf8:	7d 08 4a 14 	add     r8,r8,r9                               
ffc0cdfc:	91 48 00 04 	stw     r10,4(r8)                              
                                                                      
  _ISR_Disable( level );                                              
  return_node = _RBTree_Insert_unprotected( tree, node );             
  _ISR_Enable( level );                                               
  return return_node;                                                 
}                                                                     
ffc0ce00:	81 3f 00 00 	lwz     r9,0(r31)                              
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Parent(                     
  const RBTree_Node *the_node                                         
)                                                                     
{                                                                     
  if (!the_node->parent->parent) return NULL;                         
ffc0ce04:	81 49 00 00 	lwz     r10,0(r9)                              
ffc0ce08:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0ce0c:	7d 46 53 78 	mr      r6,r10                                 
ffc0ce10:	40 9e fe 58 	bne+    cr7,ffc0cc68 <_RBTree_Insert_unprotected+0xe8><== ALWAYS TAKEN
                                                                      
    /* verify red-black properties */                                 
    _RBTree_Validate_insert_unprotected(the_node);                    
  }                                                                   
  return (RBTree_Node*)0;                                             
}                                                                     
ffc0ce14:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0ce18:	7f c3 f3 78 	mr      r3,r30                                 
                                                                      
      /* 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;          
ffc0ce1c:	91 5f 00 0c 	stw     r10,12(r31)                            
                                                                      
    /* verify red-black properties */                                 
    _RBTree_Validate_insert_unprotected(the_node);                    
  }                                                                   
  return (RBTree_Node*)0;                                             
}                                                                     
ffc0ce20:	7c 08 03 a6 	mtlr    r0                                     
ffc0ce24:	83 41 00 08 	lwz     r26,8(r1)                              
ffc0ce28:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0ce2c:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0ce30:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0ce34:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0ce38:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0ce3c:	38 21 00 20 	addi    r1,r1,32                               
ffc0ce40:	4e 80 00 20 	blr                                            
    u = _RBTree_Parent_sibling(the_node);                             
    g = the_node->parent->parent;                                     
                                                                      
    /* if uncle is red, repaint uncle/parent black and grandparent red */
    if(_RBTree_Is_red(u)) {                                           
      the_node->parent->color = RBT_BLACK;                            
ffc0ce44:	90 89 00 0c 	stw     r4,12(r9)                              
      u->color = RBT_BLACK;                                           
      g->color = RBT_RED;                                             
ffc0ce48:	7d 5f 53 78 	mr      r31,r10                                
    g = the_node->parent->parent;                                     
                                                                      
    /* if uncle is red, repaint uncle/parent black and grandparent red */
    if(_RBTree_Is_red(u)) {                                           
      the_node->parent->color = RBT_BLACK;                            
      u->color = RBT_BLACK;                                           
ffc0ce4c:	90 88 00 0c 	stw     r4,12(r8)                              
      g->color = RBT_RED;                                             
ffc0ce50:	90 aa 00 0c 	stw     r5,12(r10)                             
ffc0ce54:	4b ff fe 00 	b       ffc0cc54 <_RBTree_Insert_unprotected+0xd4>
  if(!the_node) return NULL;                                          
  if(!(the_node->parent)) return NULL;                                
  if(!(the_node->parent->parent)) return NULL;                        
                                                                      
  if(the_node == the_node->parent->child[RBT_LEFT])                   
    return the_node->parent->child[RBT_RIGHT];                        
ffc0ce58:	81 0a 00 08 	lwz     r8,8(r10)                              
ffc0ce5c:	4b ff fe 74 	b       ffc0ccd0 <_RBTree_Insert_unprotected+0x150>
                                                                      
    /* verify red-black properties */                                 
    _RBTree_Validate_insert_unprotected(the_node);                    
  }                                                                   
  return (RBTree_Node*)0;                                             
}                                                                     
ffc0ce60:	80 01 00 24 	lwz     r0,36(r1)                              
RBTree_Node *_RBTree_Insert_unprotected(                              
    RBTree_Control *the_rbtree,                                       
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
  if(!the_node) return (RBTree_Node*)-1;                              
ffc0ce64:	3b c0 ff ff 	li      r30,-1                                 
                                                                      
    /* verify red-black properties */                                 
    _RBTree_Validate_insert_unprotected(the_node);                    
  }                                                                   
  return (RBTree_Node*)0;                                             
}                                                                     
ffc0ce68:	7f c3 f3 78 	mr      r3,r30                                 
ffc0ce6c:	83 41 00 08 	lwz     r26,8(r1)                              
ffc0ce70:	7c 08 03 a6 	mtlr    r0                                     
ffc0ce74:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0ce78:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0ce7c:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0ce80:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0ce84:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0ce88:	38 21 00 20 	addi    r1,r1,32                               
ffc0ce8c:	4e 80 00 20 	blr                                            
    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);
      if ( the_rbtree->is_unique && _RBTree_Is_equal( compare_result ) )
ffc0ce90:	7f be eb 78 	mr      r30,r29                                
ffc0ce94:	4b ff fd e0 	b       ffc0cc74 <_RBTree_Insert_unprotected+0xf4>
                                                                      
  RBTree_Node *iter_node = the_rbtree->root;                          
  int compare_result;                                                 
                                                                      
  if (!iter_node) { /* special case: first node inserted */           
    the_node->color = RBT_BLACK;                                      
ffc0ce98:	93 bf 00 0c 	stw     r29,12(r31)                            
    } /* while(iter_node) */                                          
                                                                      
    /* verify red-black properties */                                 
    _RBTree_Validate_insert_unprotected(the_node);                    
  }                                                                   
  return (RBTree_Node*)0;                                             
ffc0ce9c:	3b c0 00 00 	li      r30,0                                  
  RBTree_Node *iter_node = the_rbtree->root;                          
  int compare_result;                                                 
                                                                      
  if (!iter_node) { /* special case: first node inserted */           
    the_node->color = RBT_BLACK;                                      
    the_rbtree->root = the_node;                                      
ffc0cea0:	93 e3 00 04 	stw     r31,4(r3)                              
    the_rbtree->first[0] = the_rbtree->first[1] = the_node;           
ffc0cea4:	93 e3 00 0c 	stw     r31,12(r3)                             
ffc0cea8:	93 e3 00 08 	stw     r31,8(r3)                              
    the_node->parent = (RBTree_Node *) the_rbtree;                    
ffc0ceac:	90 7f 00 00 	stw     r3,0(r31)                              
    the_node->child[RBT_LEFT] = the_node->child[RBT_RIGHT] = NULL;    
ffc0ceb0:	93 bf 00 08 	stw     r29,8(r31)                             
ffc0ceb4:	93 bf 00 04 	stw     r29,4(r31)                             
ffc0ceb8:	4b ff fd bc 	b       ffc0cc74 <_RBTree_Insert_unprotected+0xf4>
                                                                      

ffc0cef8 <_RBTree_Iterate_unprotected>: const RBTree_Control *rbtree, RBTree_Direction dir, RBTree_Visitor visitor, void *visitor_arg ) {
ffc0cef8:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0cefc:	7c 08 02 a6 	mflr    r0                                     
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction(     
  RBTree_Direction the_dir                                            
)                                                                     
{                                                                     
  return (RBTree_Direction) !((int) the_dir);                         
ffc0cf00:	7c 89 00 34 	cntlzw  r9,r4                                  
ffc0cf04:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
ffc0cf08:	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];                                      
ffc0cf0c:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc0cf10:	7c 63 4a 14 	add     r3,r3,r9                               
ffc0cf14:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc0cf18:	83 e3 00 08 	lwz     r31,8(r3)                              
ffc0cf1c:	93 a1 00 14 	stw     r29,20(r1)                             
  RBTree_Direction opp_dir = _RBTree_Opposite_direction( dir );       
  const RBTree_Node *current = _RBTree_First( rbtree, opp_dir );      
  bool stop = false;                                                  
                                                                      
  while ( !stop && current != NULL ) {                                
ffc0cf20:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
  const RBTree_Control *rbtree,                                       
  RBTree_Direction dir,                                               
  RBTree_Visitor visitor,                                             
  void *visitor_arg                                                   
)                                                                     
{                                                                     
ffc0cf24:	93 61 00 0c 	stw     r27,12(r1)                             
ffc0cf28:	7c bb 2b 78 	mr      r27,r5                                 
ffc0cf2c:	93 81 00 10 	stw     r28,16(r1)                             
ffc0cf30:	7c dc 33 78 	mr      r28,r6                                 
ffc0cf34:	93 c1 00 18 	stw     r30,24(r1)                             
 */                                                                   
RTEMS_INLINE_ROUTINE RBTree_Direction _RBTree_Opposite_direction(     
  RBTree_Direction the_dir                                            
)                                                                     
{                                                                     
  return (RBTree_Direction) !((int) the_dir);                         
ffc0cf38:	7c 9e 23 78 	mr      r30,r4                                 
  RBTree_Direction opp_dir = _RBTree_Opposite_direction( dir );       
  const RBTree_Node *current = _RBTree_First( rbtree, opp_dir );      
  bool stop = false;                                                  
                                                                      
  while ( !stop && current != NULL ) {                                
ffc0cf3c:	41 9e 00 38 	beq-    cr7,ffc0cf74 <_RBTree_Iterate_unprotected+0x7c>
    stop = (*visitor)( current, dir, visitor_arg );                   
ffc0cf40:	7f e3 fb 78 	mr      r3,r31                                 
ffc0cf44:	7f 69 03 a6 	mtctr   r27                                    
ffc0cf48:	7f 85 e3 78 	mr      r5,r28                                 
ffc0cf4c:	7f c4 f3 78 	mr      r4,r30                                 
ffc0cf50:	4e 80 04 21 	bctrl                                          
                                                                      
    current = _RBTree_Next_unprotected( current, dir );               
ffc0cf54:	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 );                   
ffc0cf58:	7c 7d 1b 78 	mr      r29,r3                                 
                                                                      
    current = _RBTree_Next_unprotected( current, dir );               
ffc0cf5c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0cf60:	48 00 00 39 	bl      ffc0cf98 <_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 ) {                                
ffc0cf64:	2f 1d 00 00 	cmpwi   cr6,r29,0                              
    stop = (*visitor)( current, dir, visitor_arg );                   
                                                                      
    current = _RBTree_Next_unprotected( current, dir );               
ffc0cf68:	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 ) {                                
ffc0cf6c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0cf70:	41 9a ff cc 	beq+    cr6,ffc0cf3c <_RBTree_Iterate_unprotected+0x44><== ALWAYS TAKEN
    stop = (*visitor)( current, dir, visitor_arg );                   
                                                                      
    current = _RBTree_Next_unprotected( current, dir );               
  }                                                                   
}                                                                     
ffc0cf74:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0cf78:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0cf7c:	7c 08 03 a6 	mtlr    r0                                     
ffc0cf80:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0cf84:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0cf88:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0cf8c:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0cf90:	38 21 00 20 	addi    r1,r1,32                               
ffc0cf94:	4e 80 00 20 	blr                                            
                                                                      

ffc0ae30 <_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 ) {
ffc0ae30:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0ae34:	7c 08 02 a6 	mflr    r0                                     
ffc0ae38:	90 01 00 24 	stw     r0,36(r1)                              
ffc0ae3c:	93 e1 00 1c 	stw     r31,28(r1)                             
  RTEMS_API_Control *api;                                             
  ASR_Information   *asr;                                             
  rtems_signal_set   signal_set;                                      
  Modes_Control      prev_mode;                                       
                                                                      
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
ffc0ae40:	83 e3 01 4c 	lwz     r31,332(r3)                            
#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 )
{                                                                     
ffc0ae44:	93 c1 00 18 	stw     r30,24(r1)                             
  ASR_Information   *asr;                                             
  rtems_signal_set   signal_set;                                      
  Modes_Control      prev_mode;                                       
                                                                      
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  if ( !api )                                                         
ffc0ae48:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0ae4c:	41 9e 00 2c 	beq-    cr7,ffc0ae78 <_RTEMS_signal_Post_switch_hook+0x48><== NEVER TAKEN
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0ae50:	7d 20 00 a6 	mfmsr   r9                                     
ffc0ae54:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc0ae58:	7d 2a 50 78 	andc    r10,r9,r10                             
ffc0ae5c:	7d 40 01 24 	mtmsr   r10                                    
                                                                      
  asr = &api->Signal;                                                 
                                                                      
  _ISR_Disable( level );                                              
    signal_set = asr->signals_posted;                                 
    asr->signals_posted = 0;                                          
ffc0ae60:	39 40 00 00 	li      r10,0                                  
   */                                                                 
                                                                      
  asr = &api->Signal;                                                 
                                                                      
  _ISR_Disable( level );                                              
    signal_set = asr->signals_posted;                                 
ffc0ae64:	83 df 00 14 	lwz     r30,20(r31)                            
    asr->signals_posted = 0;                                          
ffc0ae68:	91 5f 00 14 	stw     r10,20(r31)                            
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0ae6c:	7d 20 01 24 	mtmsr   r9                                     
  _ISR_Enable( level );                                               
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
ffc0ae70:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0ae74:	40 9e 00 1c 	bne-    cr7,ffc0ae90 <_RTEMS_signal_Post_switch_hook+0x60>
  (*asr->handler)( signal_set );                                      
                                                                      
  asr->nest_level -= 1;                                               
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
                                                                      
}                                                                     
ffc0ae78:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0ae7c:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0ae80:	7c 08 03 a6 	mtlr    r0                                     
ffc0ae84:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0ae88:	38 21 00 20 	addi    r1,r1,32                               
ffc0ae8c:	4e 80 00 20 	blr                                            
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
ffc0ae90:	81 3f 00 1c 	lwz     r9,28(r31)                             
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
ffc0ae94:	38 80 00 00 	li      r4,0                                   
ffc0ae98:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc0ae9c:	38 a1 00 08 	addi    r5,r1,8                                
                                                                      
                                                                      
  if ( !signal_set ) /* similar to _ASR_Are_signals_pending( asr ) */ 
    return;                                                           
                                                                      
  asr->nest_level += 1;                                               
ffc0aea0:	39 29 00 01 	addi    r9,r9,1                                
ffc0aea4:	91 3f 00 1c 	stw     r9,28(r31)                             
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
ffc0aea8:	60 84 ff ff 	ori     r4,r4,65535                            
ffc0aeac:	48 00 05 69 	bl      ffc0b414 <rtems_task_mode>             
                                                                      
  (*asr->handler)( signal_set );                                      
ffc0aeb0:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc0aeb4:	7f c3 f3 78 	mr      r3,r30                                 
ffc0aeb8:	7d 29 03 a6 	mtctr   r9                                     
ffc0aebc:	4e 80 04 21 	bctrl                                          
                                                                      
  asr->nest_level -= 1;                                               
ffc0aec0:	81 3f 00 1c 	lwz     r9,28(r31)                             
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
ffc0aec4:	80 61 00 08 	lwz     r3,8(r1)                               
ffc0aec8:	38 80 00 00 	li      r4,0                                   
  asr->nest_level += 1;                                               
  rtems_task_mode( asr->mode_set, RTEMS_ALL_MODE_MASKS, &prev_mode ); 
                                                                      
  (*asr->handler)( signal_set );                                      
                                                                      
  asr->nest_level -= 1;                                               
ffc0aecc:	39 29 ff ff 	addi    r9,r9,-1                               
ffc0aed0:	91 3f 00 1c 	stw     r9,28(r31)                             
  rtems_task_mode( prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode );     
ffc0aed4:	38 a1 00 08 	addi    r5,r1,8                                
ffc0aed8:	60 84 ff ff 	ori     r4,r4,65535                            
ffc0aedc:	48 00 05 39 	bl      ffc0b414 <rtems_task_mode>             
                                                                      
}                                                                     
ffc0aee0:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0aee4:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0aee8:	7c 08 03 a6 	mtlr    r0                                     
ffc0aeec:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0aef0:	38 21 00 20 	addi    r1,r1,32                               
ffc0aef4:	4e 80 00 20 	blr                                            
                                                                      

ffc09fd8 <_RTEMS_tasks_Initialize_user_tasks_body>: * * Output parameters: NONE */ void _RTEMS_tasks_Initialize_user_tasks_body( void ) {
ffc09fd8:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc09fdc:	7c 08 02 a6 	mflr    r0                                     
  rtems_initialization_tasks_table *user_tasks;                       
                                                                      
  /*                                                                  
   *  Move information into local variables                           
   */                                                                 
  user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table;
ffc09fe0:	3d 20 00 00 	lis     r9,0                                   
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _RTEMS_tasks_Initialize_user_tasks_body( void )                  
{                                                                     
ffc09fe4:	90 01 00 2c 	stw     r0,44(r1)                              
  rtems_initialization_tasks_table *user_tasks;                       
                                                                      
  /*                                                                  
   *  Move information into local variables                           
   */                                                                 
  user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table;
ffc09fe8:	39 29 20 04 	addi    r9,r9,8196                             
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _RTEMS_tasks_Initialize_user_tasks_body( void )                  
{                                                                     
ffc09fec:	93 e1 00 24 	stw     r31,36(r1)                             
  rtems_initialization_tasks_table *user_tasks;                       
                                                                      
  /*                                                                  
   *  Move information into local variables                           
   */                                                                 
  user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table;
ffc09ff0:	83 e9 00 2c 	lwz     r31,44(r9)                             
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _RTEMS_tasks_Initialize_user_tasks_body( void )                  
{                                                                     
ffc09ff4:	93 a1 00 1c 	stw     r29,28(r1)                             
  maximum    = Configuration_RTEMS_API.number_of_initialization_tasks;
                                                                      
  /*                                                                  
   *  Verify that we have a set of user tasks to iterate              
   */                                                                 
  if ( !user_tasks )                                                  
ffc09ff8:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
 *                                                                    
 *  Output parameters:  NONE                                          
 */                                                                   
                                                                      
void _RTEMS_tasks_Initialize_user_tasks_body( void )                  
{                                                                     
ffc09ffc:	93 c1 00 20 	stw     r30,32(r1)                             
                                                                      
  /*                                                                  
   *  Move information into local variables                           
   */                                                                 
  user_tasks = Configuration_RTEMS_API.User_initialization_tasks_table;
  maximum    = Configuration_RTEMS_API.number_of_initialization_tasks;
ffc0a000:	83 a9 00 28 	lwz     r29,40(r9)                             
                                                                      
  /*                                                                  
   *  Verify that we have a set of user tasks to iterate              
   */                                                                 
  if ( !user_tasks )                                                  
ffc0a004:	41 9e 00 5c 	beq-    cr7,ffc0a060 <_RTEMS_tasks_Initialize_user_tasks_body+0x88>
    return;                                                           
                                                                      
  /*                                                                  
   *  Now iterate over the initialization tasks and create/start them.
   */                                                                 
  for ( index=0 ; index < maximum ; index++ ) {                       
ffc0a008:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc0a00c:	3b c0 00 00 	li      r30,0                                  
ffc0a010:	41 9e 00 50 	beq-    cr7,ffc0a060 <_RTEMS_tasks_Initialize_user_tasks_body+0x88><== NEVER TAKEN
    return_value = rtems_task_create(                                 
ffc0a014:	80 bf 00 04 	lwz     r5,4(r31)                              
ffc0a018:	39 01 00 08 	addi    r8,r1,8                                
ffc0a01c:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc0a020:	80 9f 00 08 	lwz     r4,8(r31)                              
ffc0a024:	80 df 00 14 	lwz     r6,20(r31)                             
ffc0a028:	80 ff 00 0c 	lwz     r7,12(r31)                             
ffc0a02c:	4b ff fc ed 	bl      ffc09d18 <rtems_task_create>           
      user_tasks[ index ].stack_size,                                 
      user_tasks[ index ].mode_set,                                   
      user_tasks[ index ].attribute_set,                              
      &id                                                             
    );                                                                
    if ( !rtems_is_status_successful( return_value ) )                
ffc0a030:	7c 65 1b 79 	mr.     r5,r3                                  
ffc0a034:	40 82 00 48 	bne-    ffc0a07c <_RTEMS_tasks_Initialize_user_tasks_body+0xa4>
      _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
                                                                      
    return_value = rtems_task_start(                                  
ffc0a038:	80 bf 00 18 	lwz     r5,24(r31)                             
ffc0a03c:	80 61 00 08 	lwz     r3,8(r1)                               
ffc0a040:	80 9f 00 10 	lwz     r4,16(r31)                             
ffc0a044:	48 00 00 45 	bl      ffc0a088 <rtems_task_start>            
      id,                                                             
      user_tasks[ index ].entry_point,                                
      user_tasks[ index ].argument                                    
    );                                                                
    if ( !rtems_is_status_successful( return_value ) )                
ffc0a048:	7c 65 1b 79 	mr.     r5,r3                                  
ffc0a04c:	40 82 00 30 	bne-    ffc0a07c <_RTEMS_tasks_Initialize_user_tasks_body+0xa4>
    return;                                                           
                                                                      
  /*                                                                  
   *  Now iterate over the initialization tasks and create/start them.
   */                                                                 
  for ( index=0 ; index < maximum ; index++ ) {                       
ffc0a050:	3b de 00 01 	addi    r30,r30,1                              
ffc0a054:	7f 9e e8 00 	cmpw    cr7,r30,r29                            
ffc0a058:	3b ff 00 1c 	addi    r31,r31,28                             
ffc0a05c:	40 9e ff b8 	bne+    cr7,ffc0a014 <_RTEMS_tasks_Initialize_user_tasks_body+0x3c><== NEVER TAKEN
      user_tasks[ index ].argument                                    
    );                                                                
    if ( !rtems_is_status_successful( return_value ) )                
      _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
  }                                                                   
}                                                                     
ffc0a060:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc0a064:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0a068:	7c 08 03 a6 	mtlr    r0                                     
ffc0a06c:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0a070:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0a074:	38 21 00 28 	addi    r1,r1,40                               
ffc0a078:	4e 80 00 20 	blr                                            
      id,                                                             
      user_tasks[ index ].entry_point,                                
      user_tasks[ index ].argument                                    
    );                                                                
    if ( !rtems_is_status_successful( return_value ) )                
      _Internal_error_Occurred( INTERNAL_ERROR_RTEMS_API, true, return_value );
ffc0a07c:	38 60 00 01 	li      r3,1                                   
ffc0a080:	38 80 00 01 	li      r4,1                                   
ffc0a084:	48 00 12 ed 	bl      ffc0b370 <_Internal_error_Occurred>    
                                                                      

ffc102ec <_RTEMS_tasks_Switch_extension>: /* * Per Task Variables */ tvp = executing->task_variables;
ffc102ec:	81 23 01 58 	lwz     r9,344(r3)                             
  while (tvp) {                                                       
ffc102f0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc102f4:	41 9e 00 24 	beq-    cr7,ffc10318 <_RTEMS_tasks_Switch_extension+0x2c>
    tvp->tval = *tvp->ptr;                                            
ffc102f8:	81 49 00 04 	lwz     r10,4(r9)                              
    *tvp->ptr = tvp->gval;                                            
ffc102fc:	81 09 00 08 	lwz     r8,8(r9)                               
   *  Per Task Variables                                              
   */                                                                 
                                                                      
  tvp = executing->task_variables;                                    
  while (tvp) {                                                       
    tvp->tval = *tvp->ptr;                                            
ffc10300:	80 ea 00 00 	lwz     r7,0(r10)                              
ffc10304:	90 e9 00 0c 	stw     r7,12(r9)                              
    *tvp->ptr = tvp->gval;                                            
ffc10308:	91 0a 00 00 	stw     r8,0(r10)                              
    tvp = (rtems_task_variable_t *)tvp->next;                         
ffc1030c:	81 29 00 00 	lwz     r9,0(r9)                               
  /*                                                                  
   *  Per Task Variables                                              
   */                                                                 
                                                                      
  tvp = executing->task_variables;                                    
  while (tvp) {                                                       
ffc10310:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10314:	40 9e ff e4 	bne+    cr7,ffc102f8 <_RTEMS_tasks_Switch_extension+0xc><== NEVER TAKEN
    tvp->tval = *tvp->ptr;                                            
    *tvp->ptr = tvp->gval;                                            
    tvp = (rtems_task_variable_t *)tvp->next;                         
  }                                                                   
                                                                      
  tvp = heir->task_variables;                                         
ffc10318:	81 24 01 58 	lwz     r9,344(r4)                             
  while (tvp) {                                                       
ffc1031c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10320:	4d 9e 00 20 	beqlr   cr7                                    
    tvp->gval = *tvp->ptr;                                            
ffc10324:	81 49 00 04 	lwz     r10,4(r9)                              
    *tvp->ptr = tvp->tval;                                            
ffc10328:	81 09 00 0c 	lwz     r8,12(r9)                              
    tvp = (rtems_task_variable_t *)tvp->next;                         
  }                                                                   
                                                                      
  tvp = heir->task_variables;                                         
  while (tvp) {                                                       
    tvp->gval = *tvp->ptr;                                            
ffc1032c:	80 ea 00 00 	lwz     r7,0(r10)                              
ffc10330:	90 e9 00 08 	stw     r7,8(r9)                               
    *tvp->ptr = tvp->tval;                                            
ffc10334:	91 0a 00 00 	stw     r8,0(r10)                              
    tvp = (rtems_task_variable_t *)tvp->next;                         
ffc10338:	81 29 00 00 	lwz     r9,0(r9)                               
    *tvp->ptr = tvp->gval;                                            
    tvp = (rtems_task_variable_t *)tvp->next;                         
  }                                                                   
                                                                      
  tvp = heir->task_variables;                                         
  while (tvp) {                                                       
ffc1033c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10340:	40 9e ff e4 	bne+    cr7,ffc10324 <_RTEMS_tasks_Switch_extension+0x38><== NEVER TAKEN
ffc10344:	4e 80 00 20 	blr                                            
                                                                      

ffc3f0b4 <_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 ) {
ffc3f0b4:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc3f0b8:	7c 08 02 a6 	mflr    r0                                     
ffc3f0bc:	93 81 00 18 	stw     r28,24(r1)                             
ffc3f0c0:	7c 9c 23 78 	mr      r28,r4                                 
 */                                                                   
static inline void _TOD_Get_uptime(                                   
  Timestamp_Control *time                                             
)                                                                     
{                                                                     
  _TOD_Get_with_nanoseconds( time, &_TOD.uptime );                    
ffc3f0c4:	3c 80 00 00 	lis     r4,0                                   
ffc3f0c8:	90 01 00 2c 	stw     r0,44(r1)                              
ffc3f0cc:	38 84 63 e8 	addi    r4,r4,25576                            
ffc3f0d0:	93 c1 00 20 	stw     r30,32(r1)                             
ffc3f0d4:	7c 7e 1b 78 	mr      r30,r3                                 
ffc3f0d8:	38 61 00 08 	addi    r3,r1,8                                
ffc3f0dc:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc3f0e0:	93 e1 00 24 	stw     r31,36(r1)                             
ffc3f0e4:	7c bf 2b 78 	mr      r31,r5                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    Timestamp_Control        uptime;                                  
  #endif                                                              
    Thread_Control          *owning_thread = the_period->owner;       
ffc3f0e8:	83 be 00 40 	lwz     r29,64(r30)                            
ffc3f0ec:	4b fc b5 65 	bl      ffc0a650 <_TOD_Get_with_nanoseconds>   
   *  Determine cpu usage since period initiated.                     
   */                                                                 
  used = owning_thread->cpu_time_used;                                
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    if (owning_thread == _Thread_Executing) {                         
ffc3f0f0:	3c e0 00 00 	lis     r7,0                                   
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
ffc3f0f4:	81 1e 00 50 	lwz     r8,80(r30)                             
ffc3f0f8:	38 e7 69 20 	addi    r7,r7,26912                            
ffc3f0fc:	81 3e 00 54 	lwz     r9,84(r30)                             
ffc3f100:	81 47 00 10 	lwz     r10,16(r7)                             
  /*                                                                  
   *  Determine elapsed wall time since period initiated.             
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _TOD_Get_uptime( &uptime );                                       
    _Timestamp_Subtract(                                              
ffc3f104:	81 61 00 0c 	lwz     r11,12(r1)                             
   *  Determine cpu usage since period initiated.                     
   */                                                                 
  used = owning_thread->cpu_time_used;                                
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    if (owning_thread == _Thread_Executing) {                         
ffc3f108:	7f 8a e8 00 	cmpw    cr7,r10,r29                            
  /*                                                                  
   *  Determine elapsed wall time since period initiated.             
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _TOD_Get_uptime( &uptime );                                       
    _Timestamp_Subtract(                                              
ffc3f10c:	81 41 00 08 	lwz     r10,8(r1)                              
ffc3f110:	7d 29 58 10 	subfc   r9,r9,r11                              
ffc3f114:	7d 08 51 10 	subfe   r8,r8,r10                              
ffc3f118:	91 1c 00 00 	stw     r8,0(r28)                              
ffc3f11c:	91 3c 00 04 	stw     r9,4(r28)                              
  #endif                                                              
                                                                      
  /*                                                                  
   *  Determine cpu usage since period initiated.                     
   */                                                                 
  used = owning_thread->cpu_time_used;                                
ffc3f120:	81 1d 00 80 	lwz     r8,128(r29)                            
ffc3f124:	81 3d 00 84 	lwz     r9,132(r29)                            
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    if (owning_thread == _Thread_Executing) {                         
ffc3f128:	41 9e 00 28 	beq-    cr7,ffc3f150 <_Rate_monotonic_Get_status+0x9c>
      if (used < the_period->cpu_usage_period_initiated)              
        return false;                                                 
                                                                      
      *cpu_since_last_period = used - the_period->cpu_usage_period_initiated;
  #endif                                                              
  return true;                                                        
ffc3f12c:	38 60 00 01 	li      r3,1                                   
}                                                                     
ffc3f130:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc3f134:	83 81 00 18 	lwz     r28,24(r1)                             
ffc3f138:	7c 08 03 a6 	mtlr    r0                                     
ffc3f13c:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc3f140:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc3f144:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc3f148:	38 21 00 28 	addi    r1,r1,40                               
ffc3f14c:	4e 80 00 20 	blr                                            
ffc3f150:	80 87 00 20 	lwz     r4,32(r7)                              
ffc3f154:	80 a7 00 24 	lwz     r5,36(r7)                              
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc3f158:	80 de 00 48 	lwz     r6,72(r30)                             
ffc3f15c:	7d 65 58 10 	subfc   r11,r5,r11                             
ffc3f160:	7d 44 51 10 	subfe   r10,r4,r10                             
ffc3f164:	80 fe 00 4c 	lwz     r7,76(r30)                             
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
ffc3f168:	7d 29 58 14 	addc    r9,r9,r11                              
ffc3f16c:	7d 08 51 14 	adde    r8,r8,r10                              
                                                                      
      /*                                                              
       *  The cpu usage info was reset while executing.  Can't        
       *  determine a status.                                         
       */                                                             
      if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated))
ffc3f170:	7f 86 40 00 	cmpw    cr7,r6,r8                              
ffc3f174:	41 9d 00 44 	bgt-    cr7,ffc3f1b8 <_Rate_monotonic_Get_status+0x104><== NEVER TAKEN
ffc3f178:	41 9e 00 38 	beq-    cr7,ffc3f1b0 <_Rate_monotonic_Get_status+0xfc>
        return false;                                                 
                                                                      
      *cpu_since_last_period = used - the_period->cpu_usage_period_initiated;
  #endif                                                              
  return true;                                                        
}                                                                     
ffc3f17c:	80 01 00 2c 	lwz     r0,44(r1)                              
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
ffc3f180:	7d 27 48 10 	subfc   r9,r7,r9                               
ffc3f184:	7d 06 41 10 	subfe   r8,r6,r8                               
ffc3f188:	91 1f 00 00 	stw     r8,0(r31)                              
ffc3f18c:	7c 08 03 a6 	mtlr    r0                                     
      if (used < the_period->cpu_usage_period_initiated)              
        return false;                                                 
                                                                      
      *cpu_since_last_period = used - the_period->cpu_usage_period_initiated;
  #endif                                                              
  return true;                                                        
ffc3f190:	38 60 00 01 	li      r3,1                                   
ffc3f194:	91 3f 00 04 	stw     r9,4(r31)                              
}                                                                     
ffc3f198:	83 81 00 18 	lwz     r28,24(r1)                             
ffc3f19c:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc3f1a0:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc3f1a4:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc3f1a8:	38 21 00 28 	addi    r1,r1,40                               
ffc3f1ac:	4e 80 00 20 	blr                                            
                                                                      
      /*                                                              
       *  The cpu usage info was reset while executing.  Can't        
       *  determine a status.                                         
       */                                                             
      if (_Timestamp_Less_than(&used, &the_period->cpu_usage_period_initiated))
ffc3f1b0:	7f 87 48 40 	cmplw   cr7,r7,r9                              
ffc3f1b4:	40 9d ff c8 	ble+    cr7,ffc3f17c <_Rate_monotonic_Get_status+0xc8>
        return false;                                                 
ffc3f1b8:	38 60 00 00 	li      r3,0                                   
ffc3f1bc:	4b ff ff 74 	b       ffc3f130 <_Rate_monotonic_Get_status+0x7c>
                                                                      

ffc3f61c <_Rate_monotonic_Timeout>: void _Rate_monotonic_Timeout( Objects_Id id, void *ignored ) {
ffc3f61c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc3f620:	7c 08 02 a6 	mflr    r0                                     
ffc3f624:	7c 64 1b 78 	mr      r4,r3                                  
ffc3f628:	3c 60 00 00 	lis     r3,0                                   
ffc3f62c:	90 01 00 24 	stw     r0,36(r1)                              
ffc3f630:	38 63 6f 3c 	addi    r3,r3,28476                            
ffc3f634:	38 a1 00 08 	addi    r5,r1,8                                
ffc3f638:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc3f63c:	4b fc bc 59 	bl      ffc0b294 <_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 ) {                                               
ffc3f640:	81 21 00 08 	lwz     r9,8(r1)                               
ffc3f644:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc3f648:	40 9e 00 4c 	bne-    cr7,ffc3f694 <_Rate_monotonic_Timeout+0x78><== NEVER TAKEN
ffc3f64c:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
    case OBJECTS_LOCAL:                                               
      the_thread = the_period->owner;                                 
ffc3f650:	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);                   
ffc3f654:	81 23 00 10 	lwz     r9,16(r3)                              
      if ( _States_Is_waiting_for_period( the_thread->current_state ) &&
ffc3f658:	71 2a 40 00 	andi.   r10,r9,16384                           
ffc3f65c:	41 82 00 14 	beq-    ffc3f670 <_Rate_monotonic_Timeout+0x54>
ffc3f660:	81 43 00 20 	lwz     r10,32(r3)                             
ffc3f664:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc3f668:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc3f66c:	41 9e 00 68 	beq-    cr7,ffc3f6d4 <_Rate_monotonic_Timeout+0xb8>
        _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 ) {
ffc3f670:	81 3f 00 38 	lwz     r9,56(r31)                             
ffc3f674:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc3f678:	41 9e 00 30 	beq-    cr7,ffc3f6a8 <_Rate_monotonic_Timeout+0x8c>
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else                                                          
        the_period->state = RATE_MONOTONIC_EXPIRED;                   
ffc3f67c:	39 20 00 04 	li      r9,4                                   
ffc3f680:	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;                  
ffc3f684:	3d 20 00 00 	lis     r9,0                                   
ffc3f688:	81 49 34 e4 	lwz     r10,13540(r9)                          
                                                                      
    --level;                                                          
ffc3f68c:	39 4a ff ff 	addi    r10,r10,-1                             
    _Thread_Dispatch_disable_level = level;                           
ffc3f690:	91 49 34 e4 	stw     r10,13540(r9)                          
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
}                                                                     
ffc3f694:	80 01 00 24 	lwz     r0,36(r1)                              
ffc3f698:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc3f69c:	7c 08 03 a6 	mtlr    r0                                     
ffc3f6a0:	38 21 00 20 	addi    r1,r1,32                               
ffc3f6a4:	4e 80 00 20 	blr                                            
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, the_period->next_length );
      } else if ( the_period->state == RATE_MONOTONIC_OWNER_IS_BLOCKING ) {
        the_period->state = RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING;    
ffc3f6a8:	39 20 00 03 	li      r9,3                                   
ffc3f6ac:	91 3f 00 38 	stw     r9,56(r31)                             
                                                                      
        _Rate_monotonic_Initiate_statistics( the_period );            
ffc3f6b0:	7f e3 fb 78 	mr      r3,r31                                 
ffc3f6b4:	4b ff fc 5d 	bl      ffc3f310 <_Rate_monotonic_Initiate_statistics>
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
ffc3f6b8:	81 3f 00 3c 	lwz     r9,60(r31)                             
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc3f6bc:	3c 60 00 00 	lis     r3,0                                   
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
ffc3f6c0:	91 3f 00 1c 	stw     r9,28(r31)                             
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc3f6c4:	38 63 65 28 	addi    r3,r3,25896                            
ffc3f6c8:	38 9f 00 10 	addi    r4,r31,16                              
ffc3f6cc:	4b fc db bd 	bl      ffc0d288 <_Watchdog_Insert>            
ffc3f6d0:	4b ff ff b4 	b       ffc3f684 <_Rate_monotonic_Timeout+0x68>
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Unblock (                           
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  _Thread_Clear_state( the_thread, STATES_BLOCKED );                  
ffc3f6d4:	3c 80 10 07 	lis     r4,4103                                
ffc3f6d8:	60 84 ff f8 	ori     r4,r4,65528                            
ffc3f6dc:	4b fc c7 09 	bl      ffc0bde4 <_Thread_Clear_state>         
ffc3f6e0:	4b ff ff d0 	b       ffc3f6b0 <_Rate_monotonic_Timeout+0x94>
                                                                      

ffc3f1c0 <_Rate_monotonic_Update_statistics>: } static void _Rate_monotonic_Update_statistics( Rate_monotonic_Control *the_period ) {
ffc3f1c0:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc3f1c4:	7c 08 02 a6 	mflr    r0                                     
ffc3f1c8:	90 01 00 24 	stw     r0,36(r1)                              
   *  Update the counts.                                              
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
                                                                      
  if ( the_period->state == RATE_MONOTONIC_EXPIRED )                  
ffc3f1cc:	81 43 00 38 	lwz     r10,56(r3)                             
                                                                      
  /*                                                                  
   *  Update the counts.                                              
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
ffc3f1d0:	81 23 00 58 	lwz     r9,88(r3)                              
                                                                      
  if ( the_period->state == RATE_MONOTONIC_EXPIRED )                  
ffc3f1d4:	2f 8a 00 04 	cmpwi   cr7,r10,4                              
}                                                                     
                                                                      
static void _Rate_monotonic_Update_statistics(                        
  Rate_monotonic_Control    *the_period                               
)                                                                     
{                                                                     
ffc3f1d8:	93 e1 00 1c 	stw     r31,28(r1)                             
                                                                      
  /*                                                                  
   *  Update the counts.                                              
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
ffc3f1dc:	39 29 00 01 	addi    r9,r9,1                                
}                                                                     
                                                                      
static void _Rate_monotonic_Update_statistics(                        
  Rate_monotonic_Control    *the_period                               
)                                                                     
{                                                                     
ffc3f1e0:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
  /*                                                                  
   *  Update the counts.                                              
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
ffc3f1e4:	91 23 00 58 	stw     r9,88(r3)                              
                                                                      
  if ( the_period->state == RATE_MONOTONIC_EXPIRED )                  
ffc3f1e8:	41 9e 00 cc 	beq-    cr7,ffc3f2b4 <_Rate_monotonic_Update_statistics+0xf4>
    stats->missed_count++;                                            
                                                                      
  /*                                                                  
   *  Grab status for time statistics.                                
   */                                                                 
  valid_status =                                                      
ffc3f1ec:	7f e3 fb 78 	mr      r3,r31                                 
ffc3f1f0:	38 81 00 08 	addi    r4,r1,8                                
ffc3f1f4:	38 a1 00 10 	addi    r5,r1,16                               
ffc3f1f8:	4b ff fe bd 	bl      ffc3f0b4 <_Rate_monotonic_Get_status>  
    _Rate_monotonic_Get_status( the_period, &since_last_period, &executed );
  if (!valid_status)                                                  
ffc3f1fc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc3f200:	41 9e 00 8c 	beq-    cr7,ffc3f28c <_Rate_monotonic_Update_statistics+0xcc>
                                                                      
  /*                                                                  
   *  Update CPU time                                                 
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_cpu_time, &executed );           
ffc3f204:	81 41 00 10 	lwz     r10,16(r1)                             
                                                                      
    if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) )    
ffc3f208:	80 ff 00 60 	lwz     r7,96(r31)                             
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
ffc3f20c:	81 1f 00 70 	lwz     r8,112(r31)                            
ffc3f210:	7f 87 50 00 	cmpw    cr7,r7,r10                             
ffc3f214:	81 3f 00 74 	lwz     r9,116(r31)                            
                                                                      
  /*                                                                  
   *  Update CPU time                                                 
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_cpu_time, &executed );           
ffc3f218:	81 61 00 14 	lwz     r11,20(r1)                             
ffc3f21c:	7d 29 58 14 	addc    r9,r9,r11                              
ffc3f220:	7d 08 51 14 	adde    r8,r8,r10                              
ffc3f224:	91 1f 00 70 	stw     r8,112(r31)                            
ffc3f228:	91 3f 00 74 	stw     r9,116(r31)                            
                                                                      
    if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) )    
ffc3f22c:	40 9d 00 74 	ble-    cr7,ffc3f2a0 <_Rate_monotonic_Update_statistics+0xe0>
      stats->min_cpu_time = executed;                                 
ffc3f230:	91 5f 00 60 	stw     r10,96(r31)                            
ffc3f234:	91 7f 00 64 	stw     r11,100(r31)                           
                                                                      
    if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) ) 
ffc3f238:	81 3f 00 68 	lwz     r9,104(r31)                            
ffc3f23c:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc3f240:	41 9c 00 c4 	blt-    cr7,ffc3f304 <_Rate_monotonic_Update_statistics+0x144><== NEVER TAKEN
ffc3f244:	41 9e 00 b4 	beq-    cr7,ffc3f2f8 <_Rate_monotonic_Update_statistics+0x138><== ALWAYS TAKEN
                                                                      
  /*                                                                  
   *  Update Wall time                                                
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); 
ffc3f248:	81 41 00 08 	lwz     r10,8(r1)                              
                                                                      
    if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
ffc3f24c:	80 ff 00 78 	lwz     r7,120(r31)                            
ffc3f250:	81 1f 00 88 	lwz     r8,136(r31)                            
ffc3f254:	7f 87 50 00 	cmpw    cr7,r7,r10                             
ffc3f258:	81 3f 00 8c 	lwz     r9,140(r31)                            
                                                                      
  /*                                                                  
   *  Update Wall time                                                
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); 
ffc3f25c:	81 61 00 0c 	lwz     r11,12(r1)                             
ffc3f260:	7d 29 58 14 	addc    r9,r9,r11                              
ffc3f264:	7d 08 51 14 	adde    r8,r8,r10                              
ffc3f268:	91 1f 00 88 	stw     r8,136(r31)                            
ffc3f26c:	91 3f 00 8c 	stw     r9,140(r31)                            
                                                                      
    if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
ffc3f270:	41 9d 00 60 	bgt-    cr7,ffc3f2d0 <_Rate_monotonic_Update_statistics+0x110>
ffc3f274:	41 9e 00 50 	beq-    cr7,ffc3f2c4 <_Rate_monotonic_Update_statistics+0x104><== ALWAYS TAKEN
      stats->min_wall_time = since_last_period;                       
                                                                      
    if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) )
ffc3f278:	81 3f 00 80 	lwz     r9,128(r31)                            
ffc3f27c:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc3f280:	40 9c 00 64 	bge-    cr7,ffc3f2e4 <_Rate_monotonic_Update_statistics+0x124><== ALWAYS TAKEN
      stats->max_wall_time = since_last_period;                       
ffc3f284:	91 5f 00 80 	stw     r10,128(r31)                           
ffc3f288:	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                                                              
}                                                                     
ffc3f28c:	80 01 00 24 	lwz     r0,36(r1)                              
ffc3f290:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc3f294:	7c 08 03 a6 	mtlr    r0                                     
ffc3f298:	38 21 00 20 	addi    r1,r1,32                               
ffc3f29c:	4e 80 00 20 	blr                                            
   *  Update CPU time                                                 
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_cpu_time, &executed );           
                                                                      
    if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) )    
ffc3f2a0:	40 be ff 98 	bne-    cr7,ffc3f238 <_Rate_monotonic_Update_statistics+0x78><== NEVER TAKEN
ffc3f2a4:	81 3f 00 64 	lwz     r9,100(r31)                            
ffc3f2a8:	7f 89 58 40 	cmplw   cr7,r9,r11                             
ffc3f2ac:	40 bd ff 8c 	ble-    cr7,ffc3f238 <_Rate_monotonic_Update_statistics+0x78>
ffc3f2b0:	4b ff ff 80 	b       ffc3f230 <_Rate_monotonic_Update_statistics+0x70>
   */                                                                 
  stats = &the_period->Statistics;                                    
  stats->count++;                                                     
                                                                      
  if ( the_period->state == RATE_MONOTONIC_EXPIRED )                  
    stats->missed_count++;                                            
ffc3f2b4:	81 23 00 5c 	lwz     r9,92(r3)                              
ffc3f2b8:	39 29 00 01 	addi    r9,r9,1                                
ffc3f2bc:	91 23 00 5c 	stw     r9,92(r3)                              
ffc3f2c0:	4b ff ff 2c 	b       ffc3f1ec <_Rate_monotonic_Update_statistics+0x2c>
   *  Update Wall time                                                
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); 
                                                                      
    if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
ffc3f2c4:	81 3f 00 7c 	lwz     r9,124(r31)                            
ffc3f2c8:	7f 89 58 40 	cmplw   cr7,r9,r11                             
ffc3f2cc:	40 bd ff ac 	ble-    cr7,ffc3f278 <_Rate_monotonic_Update_statistics+0xb8>
      stats->min_wall_time = since_last_period;                       
                                                                      
    if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) )
ffc3f2d0:	81 3f 00 80 	lwz     r9,128(r31)                            
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); 
                                                                      
    if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
      stats->min_wall_time = since_last_period;                       
ffc3f2d4:	91 5f 00 78 	stw     r10,120(r31)                           
                                                                      
    if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) )
ffc3f2d8:	7f 89 50 00 	cmpw    cr7,r9,r10                             
   */                                                                 
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    _Timestamp_Add_to( &stats->total_wall_time, &since_last_period ); 
                                                                      
    if ( _Timestamp_Less_than( &since_last_period, &stats->min_wall_time ) )
      stats->min_wall_time = since_last_period;                       
ffc3f2dc:	91 7f 00 7c 	stw     r11,124(r31)                           
                                                                      
    if ( _Timestamp_Greater_than( &since_last_period, &stats->max_wall_time ) )
ffc3f2e0:	41 9c ff a4 	blt+    cr7,ffc3f284 <_Rate_monotonic_Update_statistics+0xc4><== NEVER TAKEN
ffc3f2e4:	40 be ff a8 	bne-    cr7,ffc3f28c <_Rate_monotonic_Update_statistics+0xcc>
ffc3f2e8:	81 3f 00 84 	lwz     r9,132(r31)                            
ffc3f2ec:	7f 89 58 40 	cmplw   cr7,r9,r11                             
ffc3f2f0:	41 9c ff 94 	blt+    cr7,ffc3f284 <_Rate_monotonic_Update_statistics+0xc4>
ffc3f2f4:	4b ff ff 98 	b       ffc3f28c <_Rate_monotonic_Update_statistics+0xcc>
    _Timestamp_Add_to( &stats->total_cpu_time, &executed );           
                                                                      
    if ( _Timestamp_Less_than( &executed, &stats->min_cpu_time ) )    
      stats->min_cpu_time = executed;                                 
                                                                      
    if ( _Timestamp_Greater_than( &executed, &stats->max_cpu_time ) ) 
ffc3f2f8:	81 3f 00 6c 	lwz     r9,108(r31)                            
ffc3f2fc:	7f 89 58 40 	cmplw   cr7,r9,r11                             
ffc3f300:	40 bc ff 48 	bge-    cr7,ffc3f248 <_Rate_monotonic_Update_statistics+0x88>
      stats->max_cpu_time = executed;                                 
ffc3f304:	91 5f 00 68 	stw     r10,104(r31)                           
ffc3f308:	91 7f 00 6c 	stw     r11,108(r31)                           
ffc3f30c:	4b ff ff 3c 	b       ffc3f248 <_Rate_monotonic_Update_statistics+0x88>
                                                                      

ffc0c974 <_Scheduler_CBS_Allocate>: #include <rtems/score/wkspace.h> void *_Scheduler_CBS_Allocate( Thread_Control *the_thread ) {
ffc0c974:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0c978:	7c 08 02 a6 	mflr    r0                                     
ffc0c97c:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0c980:	7c 7f 1b 78 	mr      r31,r3                                 
  void *sched;                                                        
  Scheduler_CBS_Per_thread *schinfo;                                  
                                                                      
  sched = _Workspace_Allocate(sizeof(Scheduler_CBS_Per_thread));      
ffc0c984:	38 60 00 1c 	li      r3,28                                  
#include <rtems/score/wkspace.h>                                      
                                                                      
void *_Scheduler_CBS_Allocate(                                        
  Thread_Control      *the_thread                                     
)                                                                     
{                                                                     
ffc0c988:	90 01 00 14 	stw     r0,20(r1)                              
  void *sched;                                                        
  Scheduler_CBS_Per_thread *schinfo;                                  
                                                                      
  sched = _Workspace_Allocate(sizeof(Scheduler_CBS_Per_thread));      
ffc0c98c:	48 00 22 55 	bl      ffc0ebe0 <_Workspace_Allocate>         
  if ( sched ) {                                                      
ffc0c990:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0c994:	41 82 00 1c 	beq-    ffc0c9b0 <_Scheduler_CBS_Allocate+0x3c><== 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;
ffc0c998:	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;                               
ffc0c99c:	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;
ffc0c9a0:	91 43 00 14 	stw     r10,20(r3)                             
    schinfo->cbs_server = NULL;                                       
ffc0c9a4:	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;                      
ffc0c9a8:	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;                                       
ffc0c9ac:	91 43 00 18 	stw     r10,24(r3)                             
  }                                                                   
                                                                      
  return sched;                                                       
}                                                                     
ffc0c9b0:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0c9b4:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0c9b8:	7c 08 03 a6 	mtlr    r0                                     
ffc0c9bc:	38 21 00 10 	addi    r1,r1,16                               
ffc0c9c0:	4e 80 00 20 	blr                                            
                                                                      

ffc0e3dc <_Scheduler_CBS_Budget_callout>: Scheduler_CBS_Server **_Scheduler_CBS_Server_list; void _Scheduler_CBS_Budget_callout( Thread_Control *the_thread ) {
ffc0e3dc:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0e3e0:	7c 08 02 a6 	mflr    r0                                     
ffc0e3e4:	90 01 00 24 	stw     r0,36(r1)                              
  Priority_Control          new_priority;                             
  Scheduler_CBS_Per_thread *sched_info;                               
  Scheduler_CBS_Server_id   server_id;                                
                                                                      
  /* Put violating task to background until the end of period. */     
  new_priority = the_thread->Start.initial_priority;                  
ffc0e3e8:	80 83 00 ac 	lwz     r4,172(r3)                             
  if ( the_thread->real_priority != new_priority )                    
ffc0e3ec:	81 23 00 18 	lwz     r9,24(r3)                              
Scheduler_CBS_Server **_Scheduler_CBS_Server_list;                    
                                                                      
void _Scheduler_CBS_Budget_callout(                                   
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
ffc0e3f0:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc0e3f4:	7c 7f 1b 78 	mr      r31,r3                                 
  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;                  
  if ( the_thread->real_priority != new_priority )                    
ffc0e3f8:	7f 89 20 00 	cmpw    cr7,r9,r4                              
ffc0e3fc:	41 9e 00 08 	beq-    cr7,ffc0e404 <_Scheduler_CBS_Budget_callout+0x28><== NEVER TAKEN
    the_thread->real_priority = new_priority;                         
ffc0e400:	90 83 00 18 	stw     r4,24(r3)                              
  if ( the_thread->current_priority != new_priority )                 
ffc0e404:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0e408:	7f 89 20 00 	cmpw    cr7,r9,r4                              
ffc0e40c:	41 9e 00 10 	beq-    cr7,ffc0e41c <_Scheduler_CBS_Budget_callout+0x40><== NEVER TAKEN
    _Thread_Change_priority(the_thread, new_priority, true);          
ffc0e410:	7f e3 fb 78 	mr      r3,r31                                 
ffc0e414:	38 a0 00 01 	li      r5,1                                   
ffc0e418:	48 00 07 05 	bl      ffc0eb1c <_Thread_Change_priority>     
                                                                      
  /* Invoke callback function if any. */                              
  sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
ffc0e41c:	83 ff 00 88 	lwz     r31,136(r31)                           
  if ( sched_info->cbs_server->cbs_budget_overrun ) {                 
ffc0e420:	81 3f 00 18 	lwz     r9,24(r31)                             
ffc0e424:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc0e428:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0e42c:	41 9e 00 24 	beq-    cr7,ffc0e450 <_Scheduler_CBS_Budget_callout+0x74><== NEVER TAKEN
    _Scheduler_CBS_Get_server_id(                                     
ffc0e430:	80 69 00 00 	lwz     r3,0(r9)                               
ffc0e434:	38 81 00 08 	addi    r4,r1,8                                
ffc0e438:	4b ff ff 4d 	bl      ffc0e384 <_Scheduler_CBS_Get_server_id>
        sched_info->cbs_server->task_id,                              
        &server_id                                                    
    );                                                                
    sched_info->cbs_server->cbs_budget_overrun( server_id );          
ffc0e43c:	81 3f 00 18 	lwz     r9,24(r31)                             
ffc0e440:	80 61 00 08 	lwz     r3,8(r1)                               
ffc0e444:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc0e448:	7d 29 03 a6 	mtctr   r9                                     
ffc0e44c:	4e 80 04 21 	bctrl                                          
  }                                                                   
}                                                                     
ffc0e450:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0e454:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0e458:	7c 08 03 a6 	mtlr    r0                                     
ffc0e45c:	38 21 00 20 	addi    r1,r1,32                               
ffc0e460:	4e 80 00 20 	blr                                            
                                                                      

ffc0dd98 <_Scheduler_CBS_Cleanup>: #include <rtems/config.h> #include <rtems/score/scheduler.h> #include <rtems/score/schedulercbs.h> int _Scheduler_CBS_Cleanup (void) {
ffc0dd98:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0dd9c:	7c 08 02 a6 	mflr    r0                                     
ffc0dda0:	93 c1 00 10 	stw     r30,16(r1)                             
  unsigned int i;                                                     
                                                                      
  for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {              
ffc0dda4:	3f c0 00 00 	lis     r30,0                                  
ffc0dda8:	81 3e 27 d4 	lwz     r9,10196(r30)                          
#include <rtems/config.h>                                             
#include <rtems/score/scheduler.h>                                    
#include <rtems/score/schedulercbs.h>                                 
                                                                      
int _Scheduler_CBS_Cleanup (void)                                     
{                                                                     
ffc0ddac:	90 01 00 1c 	stw     r0,28(r1)                              
  unsigned int i;                                                     
                                                                      
  for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {              
ffc0ddb0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
#include <rtems/config.h>                                             
#include <rtems/score/scheduler.h>                                    
#include <rtems/score/schedulercbs.h>                                 
                                                                      
int _Scheduler_CBS_Cleanup (void)                                     
{                                                                     
ffc0ddb4:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc0ddb8:	93 e1 00 14 	stw     r31,20(r1)                             
  unsigned int i;                                                     
                                                                      
  for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {              
ffc0ddbc:	41 9e 00 68 	beq-    cr7,ffc0de24 <_Scheduler_CBS_Cleanup+0x8c><== NEVER TAKEN
ffc0ddc0:	3f a0 00 00 	lis     r29,0                                  
ffc0ddc4:	81 5d 28 f4 	lwz     r10,10484(r29)                         
ffc0ddc8:	3b e0 00 00 	li      r31,0                                  
ffc0ddcc:	3b de 27 d4 	addi    r30,r30,10196                          
    if ( _Scheduler_CBS_Server_list[ i ] )                            
ffc0ddd0:	57 e9 10 3a 	rlwinm  r9,r31,2,0,29                          
ffc0ddd4:	7d 2a 48 2e 	lwzx    r9,r10,r9                              
      _Scheduler_CBS_Destroy_server( i );                             
ffc0ddd8:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
int _Scheduler_CBS_Cleanup (void)                                     
{                                                                     
  unsigned int i;                                                     
                                                                      
  for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {              
ffc0dddc:	3b ff 00 01 	addi    r31,r31,1                              
    if ( _Scheduler_CBS_Server_list[ i ] )                            
ffc0dde0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0dde4:	41 9e 00 0c 	beq-    cr7,ffc0ddf0 <_Scheduler_CBS_Cleanup+0x58>
      _Scheduler_CBS_Destroy_server( i );                             
ffc0dde8:	48 00 01 95 	bl      ffc0df7c <_Scheduler_CBS_Destroy_server>
ffc0ddec:	81 5d 28 f4 	lwz     r10,10484(r29)                         
                                                                      
int _Scheduler_CBS_Cleanup (void)                                     
{                                                                     
  unsigned int i;                                                     
                                                                      
  for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {              
ffc0ddf0:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc0ddf4:	7f 89 f8 40 	cmplw   cr7,r9,r31                             
ffc0ddf8:	41 9d ff d8 	bgt+    cr7,ffc0ddd0 <_Scheduler_CBS_Cleanup+0x38>
    if ( _Scheduler_CBS_Server_list[ i ] )                            
      _Scheduler_CBS_Destroy_server( i );                             
  }                                                                   
  _Workspace_Free( _Scheduler_CBS_Server_list );                      
ffc0ddfc:	7d 43 53 78 	mr      r3,r10                                 
ffc0de00:	48 00 28 6d 	bl      ffc1066c <_Workspace_Free>             
  return SCHEDULER_CBS_OK;                                            
}                                                                     
ffc0de04:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0de08:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0de0c:	38 60 00 00 	li      r3,0                                   
ffc0de10:	7c 08 03 a6 	mtlr    r0                                     
ffc0de14:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0de18:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0de1c:	38 21 00 18 	addi    r1,r1,24                               
ffc0de20:	4e 80 00 20 	blr                                            
ffc0de24:	3d 20 00 00 	lis     r9,0                                   <== NOT EXECUTED
ffc0de28:	81 49 28 f4 	lwz     r10,10484(r9)                          <== NOT EXECUTED
ffc0de2c:	4b ff ff d0 	b       ffc0ddfc <_Scheduler_CBS_Cleanup+0x64> <== NOT EXECUTED
                                                                      

ffc0de30 <_Scheduler_CBS_Create_server>: int _Scheduler_CBS_Create_server ( Scheduler_CBS_Parameters *params, Scheduler_CBS_Budget_overrun budget_overrun_callback, rtems_id *server_id ) {
ffc0de30:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0de34:	7c 08 02 a6 	mflr    r0                                     
ffc0de38:	90 01 00 24 	stw     r0,36(r1)                              
  unsigned int i;                                                     
  Scheduler_CBS_Server *the_server;                                   
                                                                      
  if ( params->budget <= 0 ||                                         
ffc0de3c:	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                             
)                                                                     
{                                                                     
ffc0de40:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc0de44:	7c 7f 1b 78 	mr      r31,r3                                 
  unsigned int i;                                                     
  Scheduler_CBS_Server *the_server;                                   
                                                                      
  if ( params->budget <= 0 ||                                         
ffc0de48:	2f 89 00 00 	cmpwi   cr7,r9,0                               
int _Scheduler_CBS_Create_server (                                    
  Scheduler_CBS_Parameters     *params,                               
  Scheduler_CBS_Budget_overrun  budget_overrun_callback,              
  rtems_id                     *server_id                             
)                                                                     
{                                                                     
ffc0de4c:	93 41 00 08 	stw     r26,8(r1)                              
ffc0de50:	93 61 00 0c 	stw     r27,12(r1)                             
ffc0de54:	93 81 00 10 	stw     r28,16(r1)                             
ffc0de58:	93 a1 00 14 	stw     r29,20(r1)                             
ffc0de5c:	93 c1 00 18 	stw     r30,24(r1)                             
  unsigned int i;                                                     
  Scheduler_CBS_Server *the_server;                                   
                                                                      
  if ( params->budget <= 0 ||                                         
ffc0de60:	40 9d 01 0c 	ble-    cr7,ffc0df6c <_Scheduler_CBS_Create_server+0x13c>
ffc0de64:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0de68:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0de6c:	40 9d 01 00 	ble-    cr7,ffc0df6c <_Scheduler_CBS_Create_server+0x13c>
       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++ ) {              
ffc0de70:	3d 20 00 00 	lis     r9,0                                   
ffc0de74:	81 09 27 d4 	lwz     r8,10196(r9)                           
ffc0de78:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0de7c:	41 9e 00 44 	beq-    cr7,ffc0dec0 <_Scheduler_CBS_Create_server+0x90><== NEVER TAKEN
    if ( !_Scheduler_CBS_Server_list[i] )                             
ffc0de80:	3f 80 00 00 	lis     r28,0                                  
ffc0de84:	83 dc 28 f4 	lwz     r30,10484(r28)                         
ffc0de88:	7c 9b 23 78 	mr      r27,r4                                 
ffc0de8c:	7c bd 2b 78 	mr      r29,r5                                 
ffc0de90:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc0de94:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0de98:	41 9e 00 c8 	beq-    cr7,ffc0df60 <_Scheduler_CBS_Create_server+0x130>
ffc0de9c:	7f ca f3 78 	mr      r10,r30                                
ffc0dea0:	7d 09 03 a6 	mtctr   r8                                     
ffc0dea4:	39 20 00 00 	li      r9,0                                   
ffc0dea8:	48 00 00 10 	b       ffc0deb8 <_Scheduler_CBS_Create_server+0x88>
ffc0deac:	85 0a 00 04 	lwzu    r8,4(r10)                              
ffc0deb0:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0deb4:	41 9e 00 38 	beq-    cr7,ffc0deec <_Scheduler_CBS_Create_server+0xbc>
       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++ ) {              
ffc0deb8:	39 29 00 01 	addi    r9,r9,1                                
ffc0debc:	42 00 ff f0 	bdnz+   ffc0deac <_Scheduler_CBS_Create_server+0x7c>
    if ( !_Scheduler_CBS_Server_list[i] )                             
      break;                                                          
  }                                                                   
                                                                      
  if ( i == _Scheduler_CBS_Maximum_servers )                          
    return SCHEDULER_CBS_ERROR_FULL;                                  
ffc0dec0:	38 60 ff e6 	li      r3,-26                                 
                                                                      
  the_server->parameters = *params;                                   
  the_server->task_id = -1;                                           
  the_server->cbs_budget_overrun = budget_overrun_callback;           
  return SCHEDULER_CBS_OK;                                            
}                                                                     
ffc0dec4:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0dec8:	83 41 00 08 	lwz     r26,8(r1)                              
ffc0decc:	7c 08 03 a6 	mtlr    r0                                     
ffc0ded0:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0ded4:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0ded8:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0dedc:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0dee0:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0dee4:	38 21 00 20 	addi    r1,r1,32                               
ffc0dee8:	4e 80 00 20 	blr                                            
ffc0deec:	55 3a 10 3a 	rlwinm  r26,r9,2,0,29                          
  }                                                                   
                                                                      
  if ( i == _Scheduler_CBS_Maximum_servers )                          
    return SCHEDULER_CBS_ERROR_FULL;                                  
                                                                      
  *server_id = i;                                                     
ffc0def0:	91 3d 00 00 	stw     r9,0(r29)                              
  _Scheduler_CBS_Server_list[*server_id] = (Scheduler_CBS_Server *)   
    _Workspace_Allocate( sizeof(Scheduler_CBS_Server) );              
ffc0def4:	38 60 00 10 	li      r3,16                                  
ffc0def8:	48 00 27 5d 	bl      ffc10654 <_Workspace_Allocate>         
  the_server = _Scheduler_CBS_Server_list[*server_id];                
ffc0defc:	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 *)   
ffc0df00:	7c 7e d1 2e 	stwx    r3,r30,r26                             
    _Workspace_Allocate( sizeof(Scheduler_CBS_Server) );              
  the_server = _Scheduler_CBS_Server_list[*server_id];                
ffc0df04:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc0df08:	81 5c 28 f4 	lwz     r10,10484(r28)                         
ffc0df0c:	7d 2a 48 2e 	lwzx    r9,r10,r9                              
  if ( !the_server )                                                  
ffc0df10:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0df14:	41 9e 00 60 	beq-    cr7,ffc0df74 <_Scheduler_CBS_Create_server+0x144><== NEVER TAKEN
                                                                      
  the_server->parameters = *params;                                   
  the_server->task_id = -1;                                           
  the_server->cbs_budget_overrun = budget_overrun_callback;           
  return SCHEDULER_CBS_OK;                                            
}                                                                     
ffc0df18:	80 01 00 24 	lwz     r0,36(r1)                              
    return SCHEDULER_CBS_ERROR_NO_MEMORY;                             
                                                                      
  the_server->parameters = *params;                                   
  the_server->task_id = -1;                                           
  the_server->cbs_budget_overrun = budget_overrun_callback;           
  return SCHEDULER_CBS_OK;                                            
ffc0df1c:	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;                                   
ffc0df20:	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;                                            
}                                                                     
ffc0df24:	7c 08 03 a6 	mtlr    r0                                     
    _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;                                   
ffc0df28:	81 7f 00 04 	lwz     r11,4(r31)                             
ffc0df2c:	91 49 00 04 	stw     r10,4(r9)                              
  the_server->task_id = -1;                                           
ffc0df30:	39 40 ff ff 	li      r10,-1                                 
  the_server->cbs_budget_overrun = budget_overrun_callback;           
ffc0df34:	93 69 00 0c 	stw     r27,12(r9)                             
  return SCHEDULER_CBS_OK;                                            
}                                                                     
ffc0df38:	83 41 00 08 	lwz     r26,8(r1)                              
ffc0df3c:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0df40:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0df44:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0df48:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0df4c:	83 e1 00 1c 	lwz     r31,28(r1)                             
    _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;                                   
ffc0df50:	91 69 00 08 	stw     r11,8(r9)                              
  the_server->task_id = -1;                                           
ffc0df54:	91 49 00 00 	stw     r10,0(r9)                              
  the_server->cbs_budget_overrun = budget_overrun_callback;           
  return SCHEDULER_CBS_OK;                                            
}                                                                     
ffc0df58:	38 21 00 20 	addi    r1,r1,32                               
ffc0df5c:	4e 80 00 20 	blr                                            
       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] )                             
ffc0df60:	3b 40 00 00 	li      r26,0                                  
ffc0df64:	39 20 00 00 	li      r9,0                                   
ffc0df68:	4b ff ff 88 	b       ffc0def0 <_Scheduler_CBS_Create_server+0xc0>
                                                                      
  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;                     
ffc0df6c:	38 60 ff ee 	li      r3,-18                                 
ffc0df70:	4b ff ff 54 	b       ffc0dec4 <_Scheduler_CBS_Create_server+0x94>
  *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;                             
ffc0df74:	38 60 ff ef 	li      r3,-17                                 <== NOT EXECUTED
ffc0df78:	4b ff ff 4c 	b       ffc0dec4 <_Scheduler_CBS_Create_server+0x94><== NOT EXECUTED
                                                                      

ffc0e020 <_Scheduler_CBS_Detach_thread>: int _Scheduler_CBS_Detach_thread ( Scheduler_CBS_Server_id server_id, rtems_id task_id ) {
ffc0e020:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0e024:	7c 08 02 a6 	mflr    r0                                     
ffc0e028:	93 c1 00 20 	stw     r30,32(r1)                             
ffc0e02c:	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);                       
ffc0e030:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
int _Scheduler_CBS_Detach_thread (                                    
  Scheduler_CBS_Server_id server_id,                                  
  rtems_id                task_id                                     
)                                                                     
{                                                                     
ffc0e034:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc0e038:	7c 7d 1b 78 	mr      r29,r3                                 
  Objects_Locations location;                                         
  Thread_Control *the_thread;                                         
  Scheduler_CBS_Per_thread *sched_info;                               
                                                                      
  the_thread = _Thread_Get(task_id, &location);                       
ffc0e03c:	7f c3 f3 78 	mr      r3,r30                                 
                                                                      
int _Scheduler_CBS_Detach_thread (                                    
  Scheduler_CBS_Server_id server_id,                                  
  rtems_id                task_id                                     
)                                                                     
{                                                                     
ffc0e040:	93 e1 00 24 	stw     r31,36(r1)                             
ffc0e044:	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);                       
ffc0e048:	48 00 11 7d 	bl      ffc0f1c4 <_Thread_Get>                 
  /* The routine _Thread_Get may disable dispatch and not enable again. */
  if ( the_thread ) {                                                 
ffc0e04c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc0e050:	41 82 00 88 	beq-    ffc0e0d8 <_Scheduler_CBS_Detach_thread+0xb8>
    _Thread_Enable_dispatch();                                        
ffc0e054:	48 00 11 55 	bl      ffc0f1a8 <_Thread_Enable_dispatch>     
  }                                                                   
                                                                      
  if ( server_id >= _Scheduler_CBS_Maximum_servers )                  
ffc0e058:	3d 20 00 00 	lis     r9,0                                   
ffc0e05c:	81 29 27 d4 	lwz     r9,10196(r9)                           
ffc0e060:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc0e064:	40 9c 00 74 	bge-    cr7,ffc0e0d8 <_Scheduler_CBS_Detach_thread+0xb8>
    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] )                       
ffc0e068:	3d 20 00 00 	lis     r9,0                                   
ffc0e06c:	81 29 28 f4 	lwz     r9,10484(r9)                           
ffc0e070:	57 bd 10 3a 	rlwinm  r29,r29,2,0,29                         
ffc0e074:	7d 29 e8 2e 	lwzx    r9,r9,r29                              
ffc0e078:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e07c:	41 9e 00 7c 	beq-    cr7,ffc0e0f8 <_Scheduler_CBS_Detach_thread+0xd8>
    return SCHEDULER_CBS_ERROR_NOSERVER;                              
  /* Thread and server are not attached. */                           
  if ( _Scheduler_CBS_Server_list[server_id]->task_id != task_id )    
ffc0e080:	81 49 00 00 	lwz     r10,0(r9)                              
ffc0e084:	7f 8a f0 00 	cmpw    cr7,r10,r30                            
ffc0e088:	40 9e 00 50 	bne-    cr7,ffc0e0d8 <_Scheduler_CBS_Detach_thread+0xb8><== NEVER TAKEN
                                                                      
  _Scheduler_CBS_Server_list[server_id]->task_id = -1;                
  sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
  sched_info->cbs_server = NULL;                                      
                                                                      
  the_thread->budget_algorithm = the_thread->Start.budget_algorithm;  
ffc0e08c:	80 df 00 a0 	lwz     r6,160(r31)                            
    return SCHEDULER_CBS_ERROR_NOSERVER;                              
  /* Thread and server are not attached. */                           
  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;                
ffc0e090:	38 a0 ff ff 	li      r5,-1                                  
  sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
  sched_info->cbs_server = NULL;                                      
                                                                      
  the_thread->budget_algorithm = the_thread->Start.budget_algorithm;  
  the_thread->budget_callout   = the_thread->Start.budget_callout;    
ffc0e094:	80 ff 00 a4 	lwz     r7,164(r31)                            
  the_thread->is_preemptible   = the_thread->Start.is_preemptible;    
                                                                      
  return SCHEDULER_CBS_OK;                                            
ffc0e098:	38 60 00 00 	li      r3,0                                   
  sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
  sched_info->cbs_server = NULL;                                      
                                                                      
  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;    
ffc0e09c:	89 1f 00 9c 	lbz     r8,156(r31)                            
  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;                                      
ffc0e0a0:	81 5f 00 88 	lwz     r10,136(r31)                           
    return SCHEDULER_CBS_ERROR_NOSERVER;                              
  /* Thread and server are not attached. */                           
  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;                
ffc0e0a4:	90 a9 00 00 	stw     r5,0(r9)                               
  sched_info = (Scheduler_CBS_Per_thread *) the_thread->scheduler_info;
  sched_info->cbs_server = NULL;                                      
ffc0e0a8:	39 20 00 00 	li      r9,0                                   
ffc0e0ac:	91 2a 00 18 	stw     r9,24(r10)                             
                                                                      
  the_thread->budget_algorithm = the_thread->Start.budget_algorithm;  
ffc0e0b0:	90 df 00 78 	stw     r6,120(r31)                            
  the_thread->budget_callout   = the_thread->Start.budget_callout;    
ffc0e0b4:	90 ff 00 7c 	stw     r7,124(r31)                            
  the_thread->is_preemptible   = the_thread->Start.is_preemptible;    
ffc0e0b8:	99 1f 00 70 	stb     r8,112(r31)                            
                                                                      
  return SCHEDULER_CBS_OK;                                            
}                                                                     
ffc0e0bc:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc0e0c0:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0e0c4:	7c 08 03 a6 	mtlr    r0                                     
ffc0e0c8:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0e0cc:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0e0d0:	38 21 00 28 	addi    r1,r1,40                               
ffc0e0d4:	4e 80 00 20 	blr                                            
ffc0e0d8:	80 01 00 2c 	lwz     r0,44(r1)                              
  if ( the_thread ) {                                                 
    _Thread_Enable_dispatch();                                        
  }                                                                   
                                                                      
  if ( server_id >= _Scheduler_CBS_Maximum_servers )                  
    return SCHEDULER_CBS_ERROR_INVALID_PARAMETER;                     
ffc0e0dc:	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;                                            
}                                                                     
ffc0e0e0:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0e0e4:	7c 08 03 a6 	mtlr    r0                                     
ffc0e0e8:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0e0ec:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0e0f0:	38 21 00 28 	addi    r1,r1,40                               
ffc0e0f4:	4e 80 00 20 	blr                                            
    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;                              
ffc0e0f8:	38 60 ff e7 	li      r3,-25                                 
ffc0e0fc:	4b ff ff c0 	b       ffc0e0bc <_Scheduler_CBS_Detach_thread+0x9c>
                                                                      

ffc0e384 <_Scheduler_CBS_Get_server_id>: rtems_id task_id, Scheduler_CBS_Server_id *server_id ) { unsigned int i; for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {
ffc0e384:	3d 20 00 00 	lis     r9,0                                   
ffc0e388:	81 29 27 d4 	lwz     r9,10196(r9)                           
ffc0e38c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e390:	41 9e 00 38 	beq-    cr7,ffc0e3c8 <_Scheduler_CBS_Get_server_id+0x44><== NEVER TAKEN
#include <rtems/system.h>                                             
#include <rtems/config.h>                                             
#include <rtems/score/scheduler.h>                                    
#include <rtems/score/schedulercbs.h>                                 
                                                                      
int _Scheduler_CBS_Get_server_id (                                    
ffc0e394:	3d 40 00 00 	lis     r10,0                                  
  rtems_id                 task_id,                                   
  Scheduler_CBS_Server_id *server_id                                  
)                                                                     
{                                                                     
  unsigned int i;                                                     
  for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {              
ffc0e398:	7d 29 03 a6 	mtctr   r9                                     
#include <rtems/system.h>                                             
#include <rtems/config.h>                                             
#include <rtems/score/scheduler.h>                                    
#include <rtems/score/schedulercbs.h>                                 
                                                                      
int _Scheduler_CBS_Get_server_id (                                    
ffc0e39c:	81 4a 28 f4 	lwz     r10,10484(r10)                         
  rtems_id                 task_id,                                   
  Scheduler_CBS_Server_id *server_id                                  
)                                                                     
{                                                                     
  unsigned int i;                                                     
  for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {              
ffc0e3a0:	39 00 00 00 	li      r8,0                                   
#include <rtems/system.h>                                             
#include <rtems/config.h>                                             
#include <rtems/score/scheduler.h>                                    
#include <rtems/score/schedulercbs.h>                                 
                                                                      
int _Scheduler_CBS_Get_server_id (                                    
ffc0e3a4:	39 4a ff fc 	addi    r10,r10,-4                             
  Scheduler_CBS_Server_id *server_id                                  
)                                                                     
{                                                                     
  unsigned int i;                                                     
  for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {              
    if ( _Scheduler_CBS_Server_list[i] &&                             
ffc0e3a8:	85 2a 00 04 	lwzu    r9,4(r10)                              
ffc0e3ac:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e3b0:	41 9e 00 10 	beq-    cr7,ffc0e3c0 <_Scheduler_CBS_Get_server_id+0x3c>
ffc0e3b4:	81 29 00 00 	lwz     r9,0(r9)                               
ffc0e3b8:	7f 89 18 00 	cmpw    cr7,r9,r3                              
ffc0e3bc:	41 9e 00 14 	beq-    cr7,ffc0e3d0 <_Scheduler_CBS_Get_server_id+0x4c>
  rtems_id                 task_id,                                   
  Scheduler_CBS_Server_id *server_id                                  
)                                                                     
{                                                                     
  unsigned int i;                                                     
  for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {              
ffc0e3c0:	39 08 00 01 	addi    r8,r8,1                                
ffc0e3c4:	42 00 ff e4 	bdnz+   ffc0e3a8 <_Scheduler_CBS_Get_server_id+0x24>
         _Scheduler_CBS_Server_list[i]->task_id == task_id ) {        
      *server_id = i;                                                 
      return SCHEDULER_CBS_OK;                                        
    }                                                                 
  }                                                                   
  return SCHEDULER_CBS_ERROR_NOSERVER;                                
ffc0e3c8:	38 60 ff e7 	li      r3,-25                                 
}                                                                     
ffc0e3cc:	4e 80 00 20 	blr                                            
{                                                                     
  unsigned int i;                                                     
  for ( i = 0; i<_Scheduler_CBS_Maximum_servers; i++ ) {              
    if ( _Scheduler_CBS_Server_list[i] &&                             
         _Scheduler_CBS_Server_list[i]->task_id == task_id ) {        
      *server_id = i;                                                 
ffc0e3d0:	91 04 00 00 	stw     r8,0(r4)                               
      return SCHEDULER_CBS_OK;                                        
ffc0e3d4:	38 60 00 00 	li      r3,0                                   
ffc0e3d8:	4e 80 00 20 	blr                                            
                                                                      

ffc0e464 <_Scheduler_CBS_Initialize>: int _Scheduler_CBS_Initialize(void) {
ffc0e464:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0e468:	7c 08 02 a6 	mflr    r0                                     
ffc0e46c:	93 e1 00 0c 	stw     r31,12(r1)                             
  unsigned int i;                                                     
  _Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate(
      _Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
ffc0e470:	3f e0 00 00 	lis     r31,0                                  
ffc0e474:	80 7f 27 d4 	lwz     r3,10196(r31)                          
    sched_info->cbs_server->cbs_budget_overrun( server_id );          
  }                                                                   
}                                                                     
                                                                      
int _Scheduler_CBS_Initialize(void)                                   
{                                                                     
ffc0e478:	90 01 00 14 	stw     r0,20(r1)                              
  unsigned int i;                                                     
  _Scheduler_CBS_Server_list = (Scheduler_CBS_Server **) _Workspace_Allocate(
ffc0e47c:	54 63 10 3a 	rlwinm  r3,r3,2,0,29                           
ffc0e480:	48 00 21 d5 	bl      ffc10654 <_Workspace_Allocate>         
ffc0e484:	3d 00 00 00 	lis     r8,0                                   
      _Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
  if ( !_Scheduler_CBS_Server_list )                                  
ffc0e488:	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(
ffc0e48c:	90 68 28 f4 	stw     r3,10484(r8)                           
      _Scheduler_CBS_Maximum_servers * sizeof(Scheduler_CBS_Server*) );
  if ( !_Scheduler_CBS_Server_list )                                  
ffc0e490:	41 9e 00 4c 	beq-    cr7,ffc0e4dc <_Scheduler_CBS_Initialize+0x78><== NEVER TAKEN
    return SCHEDULER_CBS_ERROR_NO_MEMORY;                             
  for (i = 0; i<_Scheduler_CBS_Maximum_servers; i++) {                
ffc0e494:	81 5f 27 d4 	lwz     r10,10196(r31)                         
ffc0e498:	39 20 00 00 	li      r9,0                                   
    _Scheduler_CBS_Server_list[i] = NULL;                             
ffc0e49c:	38 e0 00 00 	li      r7,0                                   
  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++) {                
ffc0e4a0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
    _Scheduler_CBS_Server_list[i] = NULL;                             
ffc0e4a4:	7d 49 03 a6 	mtctr   r10                                    
  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++) {                
ffc0e4a8:	40 be 00 0c 	bne+    cr7,ffc0e4b4 <_Scheduler_CBS_Initialize+0x50><== ALWAYS TAKEN
ffc0e4ac:	48 00 00 18 	b       ffc0e4c4 <_Scheduler_CBS_Initialize+0x60><== NOT EXECUTED
ffc0e4b0:	80 68 28 f4 	lwz     r3,10484(r8)                           
    _Scheduler_CBS_Server_list[i] = NULL;                             
ffc0e4b4:	55 2a 10 3a 	rlwinm  r10,r9,2,0,29                          
ffc0e4b8:	7c e3 51 2e 	stwx    r7,r3,r10                              
  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++) {                
ffc0e4bc:	39 29 00 01 	addi    r9,r9,1                                
ffc0e4c0:	42 00 ff f0 	bdnz+   ffc0e4b0 <_Scheduler_CBS_Initialize+0x4c>
    _Scheduler_CBS_Server_list[i] = NULL;                             
  }                                                                   
  return SCHEDULER_CBS_OK;                                            
ffc0e4c4:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc0e4c8:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0e4cc:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0e4d0:	7c 08 03 a6 	mtlr    r0                                     
ffc0e4d4:	38 21 00 10 	addi    r1,r1,16                               
ffc0e4d8:	4e 80 00 20 	blr                                            
{                                                                     
  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;                             
ffc0e4dc:	38 60 ff ef 	li      r3,-17                                 <== NOT EXECUTED
ffc0e4e0:	4b ff ff e8 	b       ffc0e4c8 <_Scheduler_CBS_Initialize+0x64><== NOT EXECUTED
                                                                      

ffc0c9c4 <_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) {
ffc0c9c4:	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;                  
ffc0c9c8:	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 =                                   
ffc0c9cc:	81 29 00 18 	lwz     r9,24(r9)                              
    (Scheduler_CBS_Server *) sched_info->cbs_server;                  
                                                                      
  if (deadline) {                                                     
    /* Initializing or shifting deadline. */                          
    if (serv_info)                                                    
ffc0c9d0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
  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) {                                                     
ffc0c9d4:	41 82 00 30 	beq-    ffc0ca04 <_Scheduler_CBS_Release_job+0x40>
    /* Initializing or shifting deadline. */                          
    if (serv_info)                                                    
ffc0c9d8:	41 9e 00 38 	beq-    cr7,ffc0ca10 <_Scheduler_CBS_Release_job+0x4c>
      new_priority = (_Watchdog_Ticks_since_boot + serv_info->parameters.deadline)
ffc0c9dc:	3d 40 00 00 	lis     r10,0                                  
ffc0c9e0:	80 8a 28 e8 	lwz     r4,10472(r10)                          
ffc0c9e4:	81 49 00 04 	lwz     r10,4(r9)                              
ffc0c9e8:	7c 84 52 14 	add     r4,r4,r10                              
ffc0c9ec:	54 84 00 7e 	clrlwi  r4,r4,1                                
    new_priority = the_thread->Start.initial_priority;                
  }                                                                   
                                                                      
  /* Budget replenishment for the next job. */                        
  if (serv_info)                                                      
    the_thread->cpu_time_budget = serv_info->parameters.budget;       
ffc0c9f0:	81 29 00 08 	lwz     r9,8(r9)                               
ffc0c9f4:	91 23 00 74 	stw     r9,116(r3)                             
                                                                      
  the_thread->real_priority = new_priority;                           
ffc0c9f8:	90 83 00 18 	stw     r4,24(r3)                              
  _Thread_Change_priority(the_thread, new_priority, true);            
ffc0c9fc:	38 a0 00 01 	li      r5,1                                   
ffc0ca00:	48 00 05 94 	b       ffc0cf94 <_Thread_Change_priority>     
      new_priority = (_Watchdog_Ticks_since_boot + deadline)          
        & ~SCHEDULER_EDF_PRIO_MSB;                                    
  }                                                                   
  else {                                                              
    /* Switch back to background priority. */                         
    new_priority = the_thread->Start.initial_priority;                
ffc0ca04:	80 83 00 ac 	lwz     r4,172(r3)                             
  }                                                                   
                                                                      
  /* Budget replenishment for the next job. */                        
  if (serv_info)                                                      
ffc0ca08:	40 9e ff e8 	bne+    cr7,ffc0c9f0 <_Scheduler_CBS_Release_job+0x2c><== ALWAYS TAKEN
ffc0ca0c:	4b ff ff ec 	b       ffc0c9f8 <_Scheduler_CBS_Release_job+0x34><== NOT EXECUTED
    /* Initializing or shifting deadline. */                          
    if (serv_info)                                                    
      new_priority = (_Watchdog_Ticks_since_boot + serv_info->parameters.deadline)
        & ~SCHEDULER_EDF_PRIO_MSB;                                    
    else                                                              
      new_priority = (_Watchdog_Ticks_since_boot + deadline)          
ffc0ca10:	3d 20 00 00 	lis     r9,0                                   
ffc0ca14:	81 29 28 e8 	lwz     r9,10472(r9)                           
ffc0ca18:	7c 84 4a 14 	add     r4,r4,r9                               
ffc0ca1c:	54 84 00 7e 	clrlwi  r4,r4,1                                
ffc0ca20:	4b ff ff d8 	b       ffc0c9f8 <_Scheduler_CBS_Release_job+0x34>
                                                                      

ffc0ca24 <_Scheduler_CBS_Unblock>: #include <rtems/score/schedulercbs.h> void _Scheduler_CBS_Unblock( Thread_Control *the_thread ) {
ffc0ca24:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0ca28:	7c 08 02 a6 	mflr    r0                                     
ffc0ca2c:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0ca30:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0ca34:	90 01 00 14 	stw     r0,20(r1)                              
ffc0ca38:	93 c1 00 08 	stw     r30,8(r1)                              
  Scheduler_CBS_Per_thread *sched_info;                               
  Scheduler_CBS_Server *serv_info;                                    
  Priority_Control new_priority;                                      
                                                                      
  _Scheduler_EDF_Enqueue(the_thread);                                 
ffc0ca3c:	48 00 01 6d 	bl      ffc0cba8 <_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;        
ffc0ca40:	81 3f 00 88 	lwz     r9,136(r31)                            
ffc0ca44:	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) {                                                    
ffc0ca48:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ca4c:	41 9e 00 58 	beq-    cr7,ffc0caa4 <_Scheduler_CBS_Unblock+0x80>
    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 -                  
ffc0ca50:	3d 00 00 00 	lis     r8,0                                   
ffc0ca54:	81 5f 00 18 	lwz     r10,24(r31)                            
ffc0ca58:	81 08 28 e8 	lwz     r8,10472(r8)                           
                           _Watchdog_Ticks_since_boot;                
                                                                      
    if ( deadline*budget_left > budget*deadline_left ) {              
ffc0ca5c:	80 c9 00 04 	lwz     r6,4(r9)                               
ffc0ca60:	80 e9 00 08 	lwz     r7,8(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 -                  
ffc0ca64:	7d 08 50 50 	subf    r8,r8,r10                              
                           _Watchdog_Ticks_since_boot;                
                                                                      
    if ( deadline*budget_left > budget*deadline_left ) {              
ffc0ca68:	81 3f 00 74 	lwz     r9,116(r31)                            
ffc0ca6c:	7d 08 31 d6 	mullw   r8,r8,r6                               
ffc0ca70:	7d 27 49 d6 	mullw   r9,r7,r9                               
ffc0ca74:	7f 88 48 00 	cmpw    cr7,r8,r9                              
ffc0ca78:	40 9d 00 2c 	ble-    cr7,ffc0caa4 <_Scheduler_CBS_Unblock+0x80>
      /* Put late unblocked task to background until the end of period. */
      new_priority = the_thread->Start.initial_priority;              
ffc0ca7c:	80 9f 00 ac 	lwz     r4,172(r31)                            
      if ( the_thread->real_priority != new_priority )                
ffc0ca80:	7f 8a 20 00 	cmpw    cr7,r10,r4                             
ffc0ca84:	41 9e 00 08 	beq-    cr7,ffc0ca8c <_Scheduler_CBS_Unblock+0x68>
        the_thread->real_priority = new_priority;                     
ffc0ca88:	90 9f 00 18 	stw     r4,24(r31)                             
      if ( the_thread->current_priority != new_priority )             
ffc0ca8c:	80 7f 00 14 	lwz     r3,20(r31)                             
ffc0ca90:	7f 83 20 00 	cmpw    cr7,r3,r4                              
ffc0ca94:	41 9e 00 14 	beq-    cr7,ffc0caa8 <_Scheduler_CBS_Unblock+0x84>
        _Thread_Change_priority(the_thread, new_priority, true);      
ffc0ca98:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ca9c:	38 a0 00 01 	li      r5,1                                   
ffc0caa0:	48 00 04 f5 	bl      ffc0cf94 <_Thread_Change_priority>     
ffc0caa4:	80 7f 00 14 	lwz     r3,20(r31)                             
   *    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,
ffc0caa8:	3f c0 00 00 	lis     r30,0                                  
ffc0caac:	3b de 32 40 	addi    r30,r30,12864                          
ffc0cab0:	3d 40 00 00 	lis     r10,0                                  
ffc0cab4:	81 3e 00 14 	lwz     r9,20(r30)                             
ffc0cab8:	81 4a 20 b0 	lwz     r10,8368(r10)                          
ffc0cabc:	80 89 00 14 	lwz     r4,20(r9)                              
ffc0cac0:	7d 49 03 a6 	mtctr   r10                                    
ffc0cac4:	4e 80 04 21 	bctrl                                          
ffc0cac8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0cacc:	40 9d 00 20 	ble-    cr7,ffc0caec <_Scheduler_CBS_Unblock+0xc8>
       _Thread_Heir->current_priority)) {                             
    _Thread_Heir = the_thread;                                        
    if ( _Thread_Executing->is_preemptible ||                         
ffc0cad0:	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;                                        
ffc0cad4:	93 fe 00 14 	stw     r31,20(r30)                            
    if ( _Thread_Executing->is_preemptible ||                         
ffc0cad8:	89 29 00 70 	lbz     r9,112(r9)                             
ffc0cadc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0cae0:	41 9e 00 24 	beq-    cr7,ffc0cb04 <_Scheduler_CBS_Unblock+0xe0>
         the_thread->current_priority == 0 )                          
      _Thread_Dispatch_necessary = true;                              
ffc0cae4:	39 20 00 01 	li      r9,1                                   
ffc0cae8:	99 3e 00 0c 	stb     r9,12(r30)                             
  }                                                                   
}                                                                     
ffc0caec:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0caf0:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0caf4:	7c 08 03 a6 	mtlr    r0                                     
ffc0caf8:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0cafc:	38 21 00 10 	addi    r1,r1,16                               
ffc0cb00:	4e 80 00 20 	blr                                            
   *    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;                                        
    if ( _Thread_Executing->is_preemptible ||                         
ffc0cb04:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0cb08:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0cb0c:	41 9e ff d8 	beq+    cr7,ffc0cae4 <_Scheduler_CBS_Unblock+0xc0><== NEVER TAKEN
         the_thread->current_priority == 0 )                          
      _Thread_Dispatch_necessary = true;                              
  }                                                                   
}                                                                     
ffc0cb10:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0cb14:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0cb18:	7c 08 03 a6 	mtlr    r0                                     
ffc0cb1c:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0cb20:	38 21 00 10 	addi    r1,r1,16                               
ffc0cb24:	4e 80 00 20 	blr                                            
                                                                      

ffc0c974 <_Scheduler_EDF_Allocate>: #include <rtems/score/wkspace.h> void *_Scheduler_EDF_Allocate( Thread_Control *the_thread ) {
ffc0c974:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0c978:	7c 08 02 a6 	mflr    r0                                     
ffc0c97c:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0c980:	7c 7f 1b 78 	mr      r31,r3                                 
  void *sched;                                                        
  Scheduler_EDF_Per_thread *schinfo;                                  
                                                                      
  sched = _Workspace_Allocate( sizeof(Scheduler_EDF_Per_thread) );    
ffc0c984:	38 60 00 18 	li      r3,24                                  
#include <rtems/score/wkspace.h>                                      
                                                                      
void *_Scheduler_EDF_Allocate(                                        
  Thread_Control      *the_thread                                     
)                                                                     
{                                                                     
ffc0c988:	90 01 00 14 	stw     r0,20(r1)                              
  void *sched;                                                        
  Scheduler_EDF_Per_thread *schinfo;                                  
                                                                      
  sched = _Workspace_Allocate( sizeof(Scheduler_EDF_Per_thread) );    
ffc0c98c:	48 00 21 c9 	bl      ffc0eb54 <_Workspace_Allocate>         
                                                                      
  if ( sched ) {                                                      
ffc0c990:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0c994:	41 82 00 14 	beq-    ffc0c9a8 <_Scheduler_EDF_Allocate+0x34><== 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;  
ffc0c998:	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;                               
ffc0c99c:	90 7f 00 88 	stw     r3,136(r31)                            
    schinfo = (Scheduler_EDF_Per_thread *)(the_thread->scheduler_info);
    schinfo->thread = the_thread;                                     
ffc0c9a0:	93 e3 00 00 	stw     r31,0(r3)                              
    schinfo->queue_state = SCHEDULER_EDF_QUEUE_STATE_NEVER_HAS_BEEN;  
ffc0c9a4:	91 43 00 14 	stw     r10,20(r3)                             
  }                                                                   
                                                                      
  return sched;                                                       
}                                                                     
ffc0c9a8:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0c9ac:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0c9b0:	7c 08 03 a6 	mtlr    r0                                     
ffc0c9b4:	38 21 00 10 	addi    r1,r1,16                               
ffc0c9b8:	4e 80 00 20 	blr                                            
                                                                      

ffc0cbc4 <_Scheduler_EDF_Unblock>: #include <rtems/score/scheduleredf.h> void _Scheduler_EDF_Unblock( Thread_Control *the_thread ) {
ffc0cbc4:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0cbc8:	7c 08 02 a6 	mflr    r0                                     
ffc0cbcc:	93 e1 00 0c 	stw     r31,12(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(                             
ffc0cbd0:	3f e0 00 00 	lis     r31,0                                  
ffc0cbd4:	3b ff 32 40 	addi    r31,r31,12864                          
#include <rtems/score/scheduleredf.h>                                 
                                                                      
void _Scheduler_EDF_Unblock(                                          
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
ffc0cbd8:	90 01 00 14 	stw     r0,20(r1)                              
ffc0cbdc:	93 c1 00 08 	stw     r30,8(r1)                              
ffc0cbe0:	7c 7e 1b 78 	mr      r30,r3                                 
  _Scheduler_EDF_Enqueue(the_thread);                                 
ffc0cbe4:	4b ff fe 59 	bl      ffc0ca3c <_Scheduler_EDF_Enqueue>      
ffc0cbe8:	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(                             
ffc0cbec:	81 5f 00 14 	lwz     r10,20(r31)                            
ffc0cbf0:	81 29 20 b0 	lwz     r9,8368(r9)                            
ffc0cbf4:	80 6a 00 14 	lwz     r3,20(r10)                             
ffc0cbf8:	80 9e 00 14 	lwz     r4,20(r30)                             
ffc0cbfc:	7d 29 03 a6 	mtctr   r9                                     
ffc0cc00:	4e 80 04 21 	bctrl                                          
ffc0cc04:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0cc08:	41 9c 00 1c 	blt-    cr7,ffc0cc24 <_Scheduler_EDF_Unblock+0x60>
    _Thread_Heir = the_thread;                                        
    if ( _Thread_Executing->is_preemptible ||                         
         the_thread->current_priority == 0 )                          
      _Thread_Dispatch_necessary = true;                              
  }                                                                   
}                                                                     
ffc0cc0c:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0cc10:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0cc14:	7c 08 03 a6 	mtlr    r0                                     
ffc0cc18:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0cc1c:	38 21 00 10 	addi    r1,r1,16                               
ffc0cc20:	4e 80 00 20 	blr                                            
   */                                                                 
  if ( _Scheduler_Is_priority_lower_than(                             
         _Thread_Heir->current_priority,                              
         the_thread->current_priority )) {                            
    _Thread_Heir = the_thread;                                        
    if ( _Thread_Executing->is_preemptible ||                         
ffc0cc24:	81 3f 00 10 	lwz     r9,16(r31)                             
   *    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;                                        
ffc0cc28:	93 df 00 14 	stw     r30,20(r31)                            
    if ( _Thread_Executing->is_preemptible ||                         
ffc0cc2c:	89 29 00 70 	lbz     r9,112(r9)                             
ffc0cc30:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0cc34:	41 9e 00 24 	beq-    cr7,ffc0cc58 <_Scheduler_EDF_Unblock+0x94>
         the_thread->current_priority == 0 )                          
      _Thread_Dispatch_necessary = true;                              
ffc0cc38:	39 20 00 01 	li      r9,1                                   
ffc0cc3c:	99 3f 00 0c 	stb     r9,12(r31)                             
  }                                                                   
}                                                                     
ffc0cc40:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0cc44:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0cc48:	7c 08 03 a6 	mtlr    r0                                     
ffc0cc4c:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0cc50:	38 21 00 10 	addi    r1,r1,16                               
ffc0cc54:	4e 80 00 20 	blr                                            
   */                                                                 
  if ( _Scheduler_Is_priority_lower_than(                             
         _Thread_Heir->current_priority,                              
         the_thread->current_priority )) {                            
    _Thread_Heir = the_thread;                                        
    if ( _Thread_Executing->is_preemptible ||                         
ffc0cc58:	81 3e 00 14 	lwz     r9,20(r30)                             
ffc0cc5c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0cc60:	40 be ff ac 	bne-    cr7,ffc0cc0c <_Scheduler_EDF_Unblock+0x48><== ALWAYS TAKEN
         the_thread->current_priority == 0 )                          
      _Thread_Dispatch_necessary = true;                              
ffc0cc64:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc0cc68:	99 3f 00 0c 	stb     r9,12(r31)                             <== NOT EXECUTED
ffc0cc6c:	4b ff ff d4 	b       ffc0cc40 <_Scheduler_EDF_Unblock+0x7c> <== NOT EXECUTED
                                                                      

ffc0be58 <_Scheduler_priority_Block>: ) { Scheduler_priority_Per_thread *sched_info; Chain_Control *ready; sched_info = (Scheduler_priority_Per_thread *) the_thread->scheduler_info;
ffc0be58:	81 43 00 88 	lwz     r10,136(r3)                            
  ready      = sched_info->ready_chain;                               
ffc0be5c:	81 2a 00 00 	lwz     r9,0(r10)                              
                                                                      
  if ( _Chain_Has_only_one_node( ready ) ) {                          
ffc0be60:	80 e9 00 00 	lwz     r7,0(r9)                               
ffc0be64:	81 09 00 08 	lwz     r8,8(r9)                               
ffc0be68:	7f 87 40 00 	cmpw    cr7,r7,r8                              
ffc0be6c:	41 9e 00 40 	beq-    cr7,ffc0beac <_Scheduler_priority_Block+0x54>
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc0be70:	81 23 00 00 	lwz     r9,0(r3)                               
  previous       = the_node->previous;                                
ffc0be74:	81 43 00 04 	lwz     r10,4(r3)                              
  next->previous = previous;                                          
ffc0be78:	91 49 00 04 	stw     r10,4(r9)                              
  previous->next = next;                                              
ffc0be7c:	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 );                              
ffc0be80:	3d 20 00 00 	lis     r9,0                                   
ffc0be84:	39 29 31 a0 	addi    r9,r9,12704                            
{                                                                     
  _Scheduler_priority_Ready_queue_extract( the_thread );              
                                                                      
  /* TODO: flash critical section? */                                 
                                                                      
  if ( _Thread_Is_heir( the_thread ) )                                
ffc0be88:	81 49 00 14 	lwz     r10,20(r9)                             
ffc0be8c:	7f 83 50 00 	cmpw    cr7,r3,r10                             
ffc0be90:	41 9e 00 64 	beq-    cr7,ffc0bef4 <_Scheduler_priority_Block+0x9c>
     _Scheduler_priority_Schedule_body();                             
                                                                      
  if ( _Thread_Is_executing( the_thread ) )                           
ffc0be94:	81 49 00 10 	lwz     r10,16(r9)                             
ffc0be98:	7f 83 50 00 	cmpw    cr7,r3,r10                             
ffc0be9c:	4c be 00 20 	bnelr+  cr7                                    
    _Thread_Dispatch_necessary = true;                                
ffc0bea0:	39 40 00 01 	li      r10,1                                  
ffc0bea4:	99 49 00 0c 	stb     r10,12(r9)                             
ffc0bea8:	4e 80 00 20 	blr                                            
                                                                      
RTEMS_INLINE_ROUTINE void _Priority_bit_map_Remove (                  
  Priority_bit_map_Information *the_priority_map                      
)                                                                     
{                                                                     
  *the_priority_map->minor &= the_priority_map->block_minor;          
ffc0beac:	81 0a 00 04 	lwz     r8,4(r10)                              
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 );                        
ffc0beb0:	38 a9 00 04 	addi    r5,r9,4                                
ffc0beb4:	80 ea 00 14 	lwz     r7,20(r10)                             
ffc0beb8:	80 c8 00 00 	lwz     r6,0(r8)                               
                                                                      
  head->next = tail;                                                  
ffc0bebc:	90 a9 00 00 	stw     r5,0(r9)                               
ffc0bec0:	7c c7 38 38 	and     r7,r6,r7                               
  if ( *the_priority_map->minor == 0 )                                
ffc0bec4:	2f 87 00 00 	cmpwi   cr7,r7,0                               
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc0bec8:	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;                                                  
  head->previous = NULL;                                              
ffc0becc:	38 c0 00 00 	li      r6,0                                   
ffc0bed0:	90 c9 00 04 	stw     r6,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;          
ffc0bed4:	90 e8 00 00 	stw     r7,0(r8)                               
  if ( *the_priority_map->minor == 0 )                                
ffc0bed8:	40 be ff a8 	bne-    cr7,ffc0be80 <_Scheduler_priority_Block+0x28>
    _Priority_Major_bit_map &= the_priority_map->block_major;         
ffc0bedc:	3d 20 00 00 	lis     r9,0                                   
ffc0bee0:	81 4a 00 10 	lwz     r10,16(r10)                            
ffc0bee4:	81 09 28 94 	lwz     r8,10388(r9)                           
ffc0bee8:	7d 0a 50 38 	and     r10,r8,r10                             
ffc0beec:	91 49 28 94 	stw     r10,10388(r9)                          
ffc0bef0:	4b ff ff 90 	b       ffc0be80 <_Scheduler_priority_Block+0x28>
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 );         
ffc0bef4:	3d 60 00 00 	lis     r11,0                                  
 *  @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                          
ffc0bef8:	3d 40 00 00 	lis     r10,0                                  
ffc0befc:	81 0b 28 94 	lwz     r8,10388(r11)                          
ffc0bf00:	80 ea 20 80 	lwz     r7,8320(r10)                           
ffc0bf04:	7d 04 00 34 	cntlzw  r4,r8                                  
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
ffc0bf08:	3c a0 00 00 	lis     r5,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 );         
ffc0bf0c:	91 0b 28 94 	stw     r8,10388(r11)                          
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
ffc0bf10:	38 a5 31 e0 	addi    r5,r5,12768                            
ffc0bf14:	54 86 10 3a 	rlwinm  r6,r4,2,0,29                           
ffc0bf18:	7d 45 30 2e 	lwzx    r10,r5,r6                              
ffc0bf1c:	7d 48 00 34 	cntlzw  r8,r10                                 
                                                                      
  return (_Priority_Bits_index( major ) << 4) +                       
ffc0bf20:	54 84 20 36 	rlwinm  r4,r4,4,0,27                           
{                                                                     
  Priority_bit_map_Control minor;                                     
  Priority_bit_map_Control major;                                     
                                                                      
  _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );         
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
ffc0bf24:	7d 45 31 2e 	stwx    r10,r5,r6                              
                                                                      
  return (_Priority_Bits_index( major ) << 4) +                       
ffc0bf28:	7d 04 42 14 	add     r8,r4,r8                               
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
ffc0bf2c:	1d 08 00 0c 	mulli   r8,r8,12                               
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc0bf30:	7d 47 40 2e 	lwzx    r10,r7,r8                              
ffc0bf34:	7c c7 42 14 	add     r6,r7,r8                               
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc0bf38:	39 06 00 04 	addi    r8,r6,4                                
ffc0bf3c:	7f 8a 40 00 	cmpw    cr7,r10,r8                             
ffc0bf40:	41 9e 00 0c 	beq-    cr7,ffc0bf4c <_Scheduler_priority_Block+0xf4><== NEVER TAKEN
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
ffc0bf44:	91 49 00 14 	stw     r10,20(r9)                             
ffc0bf48:	4b ff ff 4c 	b       ffc0be94 <_Scheduler_priority_Block+0x3c>
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
                                                                      
  return NULL;                                                        
ffc0bf4c:	39 40 00 00 	li      r10,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(               
ffc0bf50:	91 49 00 14 	stw     r10,20(r9)                             <== NOT EXECUTED
ffc0bf54:	4b ff ff 40 	b       ffc0be94 <_Scheduler_priority_Block+0x3c><== NOT EXECUTED
                                                                      

ffc0c114 <_Scheduler_priority_Schedule>: 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 );
ffc0c114:	3c 80 00 00 	lis     r4,0                                   
 *  @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                          
ffc0c118:	3d 20 00 00 	lis     r9,0                                   
ffc0c11c:	81 44 28 94 	lwz     r10,10388(r4)                          
ffc0c120:	81 09 20 80 	lwz     r8,8320(r9)                            
ffc0c124:	7d 45 00 34 	cntlzw  r5,r10                                 
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
ffc0c128:	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 );         
ffc0c12c:	91 44 28 94 	stw     r10,10388(r4)                          
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
ffc0c130:	38 c6 31 e0 	addi    r6,r6,12768                            
ffc0c134:	54 a7 10 3a 	rlwinm  r7,r5,2,0,29                           
ffc0c138:	7d 26 38 2e 	lwzx    r9,r6,r7                               
ffc0c13c:	7d 24 00 34 	cntlzw  r4,r9                                  
                                                                      
  return (_Priority_Bits_index( major ) << 4) +                       
ffc0c140:	54 aa 20 36 	rlwinm  r10,r5,4,0,27                          
{                                                                     
  Priority_bit_map_Control minor;                                     
  Priority_bit_map_Control major;                                     
                                                                      
  _Bitfield_Find_first_bit( _Priority_Major_bit_map, major );         
  _Bitfield_Find_first_bit( _Priority_Bit_map[major], minor );        
ffc0c144:	7d 26 39 2e 	stwx    r9,r6,r7                               
                                                                      
  return (_Priority_Bits_index( major ) << 4) +                       
ffc0c148:	7d 4a 22 14 	add     r10,r10,r4                             
  Chain_Control       *the_ready_queue                                
)                                                                     
{                                                                     
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
ffc0c14c:	1d 4a 00 0c 	mulli   r10,r10,12                             
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc0c150:	7d 28 50 2e 	lwzx    r9,r8,r10                              
ffc0c154:	7c e8 52 14 	add     r7,r8,r10                              
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc0c158:	39 47 00 04 	addi    r10,r7,4                               
ffc0c15c:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc0c160:	41 9e 00 10 	beq-    cr7,ffc0c170 <_Scheduler_priority_Schedule+0x5c><== NEVER TAKEN
 *                                                                    
 *  @param[in] the_thread  - pointer to thread                        
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_priority_Schedule_body(void)     
{                                                                     
  _Thread_Heir = _Scheduler_priority_Ready_queue_first(               
ffc0c164:	3d 40 00 00 	lis     r10,0                                  
ffc0c168:	91 2a 31 b4 	stw     r9,12724(r10)                          
ffc0c16c:	4e 80 00 20 	blr                                            
  Priority_Control index = _Priority_bit_map_Get_highest();           
                                                                      
  if ( !_Chain_Is_empty( &the_ready_queue[ index ] ) )                
    return (Thread_Control *) _Chain_First( &the_ready_queue[ index ] );
                                                                      
  return NULL;                                                        
ffc0c170:	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(               
ffc0c174:	3d 40 00 00 	lis     r10,0                                  <== NOT EXECUTED
ffc0c178:	91 2a 31 b4 	stw     r9,12724(r10)                          <== NOT EXECUTED
ffc0c17c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc0cb0c <_Scheduler_simple_Ready_queue_enqueue_first>: { Chain_Control *ready; Chain_Node *the_node; Thread_Control *current; ready = (Chain_Control *)_Scheduler.information;
ffc0cb0c:	3d 20 00 00 	lis     r9,0                                   
   */                                                                 
  for ( the_node = _Chain_First(ready) ; ; the_node = the_node->next ) {
    current = (Thread_Control *) the_node;                            
                                                                      
    /* break when AT HEAD OF (or PAST) our priority */                
    if ( the_thread->current_priority <= current->current_priority ) {
ffc0cb10:	81 03 00 14 	lwz     r8,20(r3)                              
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc0cb14:	81 29 20 80 	lwz     r9,8320(r9)                            
ffc0cb18:	81 29 00 00 	lwz     r9,0(r9)                               
ffc0cb1c:	81 49 00 14 	lwz     r10,20(r9)                             
ffc0cb20:	7f 8a 40 40 	cmplw   cr7,r10,r8                             
ffc0cb24:	40 9c 00 14 	bge-    cr7,ffc0cb38 <_Scheduler_simple_Ready_queue_enqueue_first+0x2c>
   * Do NOT need to check for end of chain because there is always    
   * at least one task on the ready chain -- the IDLE task.  It can   
   * never block, should never attempt to obtain a semaphore or mutex,
   * and thus will always be there.                                   
   */                                                                 
  for ( the_node = _Chain_First(ready) ; ; the_node = the_node->next ) {
ffc0cb28:	81 29 00 00 	lwz     r9,0(r9)                               
    current = (Thread_Control *) the_node;                            
                                                                      
    /* break when AT HEAD OF (or PAST) our priority */                
    if ( the_thread->current_priority <= current->current_priority ) {
ffc0cb2c:	81 49 00 14 	lwz     r10,20(r9)                             
ffc0cb30:	7f 8a 40 40 	cmplw   cr7,r10,r8                             
ffc0cb34:	41 9c ff f4 	blt+    cr7,ffc0cb28 <_Scheduler_simple_Ready_queue_enqueue_first+0x1c><== NEVER TAKEN
      current = (Thread_Control *)current->Object.Node.previous;      
ffc0cb38:	81 29 00 04 	lwz     r9,4(r9)                               
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
ffc0cb3c:	81 49 00 00 	lwz     r10,0(r9)                              
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc0cb40:	91 23 00 04 	stw     r9,4(r3)                               
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
ffc0cb44:	90 69 00 00 	stw     r3,0(r9)                               
  the_node->next        = before_node;                                
  before_node->previous = the_node;                                   
ffc0cb48:	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;                                
ffc0cb4c:	91 43 00 00 	stw     r10,0(r3)                              
ffc0cb50:	4e 80 00 20 	blr                                            
                                                                      

ffc0a958 <_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(); if ((!the_tod) ||
ffc0a958:	7c 69 1b 79 	mr.     r9,r3                                  
{                                                                     
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
	    rtems_configuration_get_microseconds_per_tick();                 
ffc0a95c:	3d 40 ff c2 	lis     r10,-62                                
)                                                                     
{                                                                     
  uint32_t   days_in_month;                                           
  uint32_t   ticks_per_second;                                        
                                                                      
  ticks_per_second = TOD_MICROSECONDS_PER_SECOND /                    
ffc0a960:	81 4a 13 44 	lwz     r10,4932(r10)                          
ffc0a964:	3d 00 00 0f 	lis     r8,15                                  
ffc0a968:	61 08 42 40 	ori     r8,r8,16960                            
ffc0a96c:	7c e8 53 96 	divwu   r7,r8,r10                              
	    rtems_configuration_get_microseconds_per_tick();                 
  if ((!the_tod)                                  ||                  
ffc0a970:	41 82 00 90 	beq-    ffc0aa00 <_TOD_Validate+0xa8>          <== NEVER TAKEN
ffc0a974:	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;                                                    
ffc0a978:	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)                                  ||                  
ffc0a97c:	7f 87 50 40 	cmplw   cr7,r7,r10                             
ffc0a980:	4c 9d 00 20 	blelr   cr7                                    
      (the_tod->ticks  >= ticks_per_second)       ||                  
ffc0a984:	81 49 00 14 	lwz     r10,20(r9)                             
ffc0a988:	2b 8a 00 3b 	cmplwi  cr7,r10,59                             
ffc0a98c:	4d 9d 00 20 	bgtlr   cr7                                    
      (the_tod->second >= TOD_SECONDS_PER_MINUTE) ||                  
ffc0a990:	81 49 00 10 	lwz     r10,16(r9)                             
ffc0a994:	2b 8a 00 3b 	cmplwi  cr7,r10,59                             
ffc0a998:	4d 9d 00 20 	bgtlr   cr7                                    
      (the_tod->minute >= TOD_MINUTES_PER_HOUR)   ||                  
ffc0a99c:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc0a9a0:	2b 8a 00 17 	cmplwi  cr7,r10,23                             
ffc0a9a4:	4d 9d 00 20 	bgtlr   cr7                                    
      (the_tod->hour   >= TOD_HOURS_PER_DAY)      ||                  
      (the_tod->month  == 0)                      ||                  
ffc0a9a8:	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)      ||                  
ffc0a9ac:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0a9b0:	4d 9e 00 20 	beqlr   cr7                                    
      (the_tod->month  == 0)                      ||                  
ffc0a9b4:	2b 8a 00 0c 	cmplwi  cr7,r10,12                             
ffc0a9b8:	4d 9d 00 20 	bgtlr   cr7                                    
      (the_tod->month  >  TOD_MONTHS_PER_YEAR)    ||                  
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
ffc0a9bc:	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)    ||                  
ffc0a9c0:	2b 88 07 c3 	cmplwi  cr7,r8,1987                            
ffc0a9c4:	4c 9d 00 20 	blelr   cr7                                    
      (the_tod->year   <  TOD_BASE_YEAR)          ||                  
      (the_tod->day    == 0) )                                        
ffc0a9c8:	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)          ||                  
ffc0a9cc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0a9d0:	4d 9e 00 20 	beqlr   cr7                                    
      (the_tod->day    == 0) )                                        
     return false;                                                    
                                                                      
  if ( (the_tod->year % 4) == 0 )                                     
ffc0a9d4:	71 07 00 03 	andi.   r7,r8,3                                
ffc0a9d8:	40 82 00 30 	bne-    ffc0aa08 <_TOD_Validate+0xb0>          
    days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];       
ffc0a9dc:	39 4a 00 0d 	addi    r10,r10,13                             
ffc0a9e0:	3d 00 ff c2 	lis     r8,-62                                 
ffc0a9e4:	55 4a 10 3a 	rlwinm  r10,r10,2,0,29                         
ffc0a9e8:	39 08 2b 90 	addi    r8,r8,11152                            
ffc0a9ec:	7c 68 50 2e 	lwzx    r3,r8,r10                              
  else                                                                
    days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];       
                                                                      
  if ( the_tod->day > days_in_month )                                 
ffc0a9f0:	7c 69 18 10 	subfc   r3,r9,r3                               
ffc0a9f4:	38 60 00 00 	li      r3,0                                   
ffc0a9f8:	7c 63 19 14 	adde    r3,r3,r3                               
ffc0a9fc:	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;                                                    
ffc0aa00:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
                                                                      
  if ( the_tod->day > days_in_month )                                 
    return false;                                                     
                                                                      
  return true;                                                        
}                                                                     
ffc0aa04:	4e 80 00 20 	blr                                            <== NOT EXECUTED
     return false;                                                    
                                                                      
  if ( (the_tod->year % 4) == 0 )                                     
    days_in_month = _TOD_Days_per_month[ 1 ][ the_tod->month ];       
  else                                                                
    days_in_month = _TOD_Days_per_month[ 0 ][ the_tod->month ];       
ffc0aa08:	3d 00 ff c2 	lis     r8,-62                                 
ffc0aa0c:	55 4a 10 3a 	rlwinm  r10,r10,2,0,29                         
ffc0aa10:	39 08 2b 90 	addi    r8,r8,11152                            
ffc0aa14:	7c 68 50 2e 	lwzx    r3,r8,r10                              
ffc0aa18:	4b ff ff d8 	b       ffc0a9f0 <_TOD_Validate+0x98>          
                                                                      

ffc0c434 <_Thread_Change_priority>: void _Thread_Change_priority( Thread_Control *the_thread, Priority_Control new_priority, bool prepend_it ) {
ffc0c434:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0c438:	7c 08 02 a6 	mflr    r0                                     
ffc0c43c:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0c440:	93 e1 00 14 	stw     r31,20(r1)                             
ffc0c444:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0c448:	93 81 00 08 	stw     r28,8(r1)                              
ffc0c44c:	7c bc 2b 78 	mr      r28,r5                                 
ffc0c450:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc0c454:	93 c1 00 10 	stw     r30,16(r1)                             
ffc0c458:	7c 9e 23 78 	mr      r30,r4                                 
  States_Control state, original_state;                               
                                                                      
  /*                                                                  
   * Save original state                                              
   */                                                                 
  original_state = the_thread->current_state;                         
ffc0c45c:	83 a3 00 10 	lwz     r29,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 );                                
ffc0c460:	48 00 11 c1 	bl      ffc0d620 <_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 )                  
ffc0c464:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0c468:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc0c46c:	41 9e 00 10 	beq-    cr7,ffc0c47c <_Thread_Change_priority+0x48>
    _Thread_Set_priority( the_thread, new_priority );                 
ffc0c470:	7f e3 fb 78 	mr      r3,r31                                 
ffc0c474:	7f c4 f3 78 	mr      r4,r30                                 
ffc0c478:	48 00 11 1d 	bl      ffc0d594 <_Thread_Set_priority>        
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0c47c:	7f c0 00 a6 	mfmsr   r30                                    
ffc0c480:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0c484:	7f c9 48 78 	andc    r9,r30,r9                              
ffc0c488:	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;                                  
ffc0c48c:	81 3f 00 10 	lwz     r9,16(r31)                             
  if ( state != STATES_TRANSIENT ) {                                  
ffc0c490:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc0c494:	41 9e 00 84 	beq-    cr7,ffc0c518 <_Thread_Change_priority+0xe4>
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
ffc0c498:	73 a8 00 04 	andi.   r8,r29,4                               
ffc0c49c:	41 82 00 38 	beq-    ffc0c4d4 <_Thread_Change_priority+0xa0><== ALWAYS TAKEN
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0c4a0:	7f c0 01 24 	mtmsr   r30                                    <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_ON_THREAD_QUEUE);              
ffc0c4a4:	3d 40 00 03 	lis     r10,3                                  <== NOT EXECUTED
ffc0c4a8:	61 4a be e0 	ori     r10,r10,48864                          <== NOT EXECUTED
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
    _ISR_Enable( level );                                             
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
ffc0c4ac:	7d 28 50 39 	and.    r8,r9,r10                              <== NOT EXECUTED
ffc0c4b0:	40 82 00 40 	bne-    ffc0c4f0 <_Thread_Change_priority+0xbc><== NOT EXECUTED
                                                                      
  if ( !_Thread_Is_executing_also_the_heir() &&                       
       _Thread_Executing->is_preemptible )                            
    _Thread_Dispatch_necessary = true;                                
  _ISR_Enable( level );                                               
}                                                                     
ffc0c4b4:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0c4b8:	83 81 00 08 	lwz     r28,8(r1)                              
ffc0c4bc:	7c 08 03 a6 	mtlr    r0                                     
ffc0c4c0:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0c4c4:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0c4c8:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0c4cc:	38 21 00 18 	addi    r1,r1,24                               
ffc0c4d0:	4e 80 00 20 	blr                                            
RTEMS_INLINE_ROUTINE States_Control _States_Clear (                   
  States_Control states_to_clear,                                     
  States_Control current_state                                        
)                                                                     
{                                                                     
   return (current_state & ~states_to_clear);                         
ffc0c4d4:	55 2a 07 b8 	rlwinm  r10,r9,0,30,28                         
   */                                                                 
  state = the_thread->current_state;                                  
  if ( state != STATES_TRANSIENT ) {                                  
    /* Only clear the transient state if it wasn't set already */     
    if ( ! _States_Is_transient( original_state ) )                   
      the_thread->current_state = _States_Clear( STATES_TRANSIENT, state );
ffc0c4d8:	91 5f 00 10 	stw     r10,16(r31)                            
ffc0c4dc:	7f c0 01 24 	mtmsr   r30                                    
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_waiting_on_thread_queue (        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_WAITING_ON_THREAD_QUEUE);              
ffc0c4e0:	3d 40 00 03 	lis     r10,3                                  
ffc0c4e4:	61 4a be e0 	ori     r10,r10,48864                          
    _ISR_Enable( level );                                             
    if ( _States_Is_waiting_on_thread_queue( state ) ) {              
ffc0c4e8:	7d 28 50 39 	and.    r8,r9,r10                              
ffc0c4ec:	41 82 ff c8 	beq+    ffc0c4b4 <_Thread_Change_priority+0x80>
                                                                      
  if ( !_Thread_Is_executing_also_the_heir() &&                       
       _Thread_Executing->is_preemptible )                            
    _Thread_Dispatch_necessary = true;                                
  _ISR_Enable( level );                                               
}                                                                     
ffc0c4f0:	80 01 00 1c 	lwz     r0,28(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 );    
ffc0c4f4:	7f e4 fb 78 	mr      r4,r31                                 
ffc0c4f8:	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 );                                               
}                                                                     
ffc0c4fc:	7c 08 03 a6 	mtlr    r0                                     
ffc0c500:	83 81 00 08 	lwz     r28,8(r1)                              
ffc0c504:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0c508:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0c50c:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0c510:	38 21 00 18 	addi    r1,r1,24                               
    /* 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 );    
ffc0c514:	48 00 0f 88 	b       ffc0d49c <_Thread_queue_Requeue>       
    }                                                                 
    return;                                                           
  }                                                                   
                                                                      
  /* Only clear the transient state if it wasn't set already */       
  if ( ! _States_Is_transient( original_state ) ) {                   
ffc0c518:	73 a9 00 04 	andi.   r9,r29,4                               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue_first(                   
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler.Operations.enqueue_first( the_thread );                  
ffc0c51c:	3f a0 00 00 	lis     r29,0                                  
ffc0c520:	3b bd 20 80 	addi    r29,r29,8320                           
ffc0c524:	40 82 00 20 	bne-    ffc0c544 <_Thread_Change_priority+0x110><== 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 )                                                 
ffc0c528:	2f 9c 00 00 	cmpwi   cr7,r28,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 );
ffc0c52c:	91 3f 00 10 	stw     r9,16(r31)                             
                                                                      
    if ( prepend_it )                                                 
ffc0c530:	41 9e 00 7c 	beq-    cr7,ffc0c5ac <_Thread_Change_priority+0x178>
ffc0c534:	81 3d 00 28 	lwz     r9,40(r29)                             
ffc0c538:	7f e3 fb 78 	mr      r3,r31                                 
ffc0c53c:	7d 29 03 a6 	mtctr   r9                                     
ffc0c540:	4e 80 04 21 	bctrl                                          
                                                                      
static inline void ppc_interrupt_flash( uint32_t level )              
{                                                                     
  uint32_t current_level;                                             
                                                                      
  __asm__ volatile (                                                  
ffc0c544:	7d 20 00 a6 	mfmsr   r9                                     
ffc0c548:	7f c0 01 24 	mtmsr   r30                                    
ffc0c54c:	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();                                   
ffc0c550:	81 3d 00 08 	lwz     r9,8(r29)                              
ffc0c554:	7d 29 03 a6 	mtctr   r9                                     
ffc0c558:	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 );                       
ffc0c55c:	3d 20 00 00 	lis     r9,0                                   
ffc0c560:	39 29 31 a0 	addi    r9,r9,12704                            
ffc0c564:	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() &&                       
ffc0c568:	81 09 00 14 	lwz     r8,20(r9)                              
ffc0c56c:	7f 8a 40 00 	cmpw    cr7,r10,r8                             
ffc0c570:	41 9e 00 18 	beq-    cr7,ffc0c588 <_Thread_Change_priority+0x154>
ffc0c574:	89 4a 00 70 	lbz     r10,112(r10)                           
ffc0c578:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0c57c:	41 9e 00 0c 	beq-    cr7,ffc0c588 <_Thread_Change_priority+0x154>
       _Thread_Executing->is_preemptible )                            
    _Thread_Dispatch_necessary = true;                                
ffc0c580:	39 40 00 01 	li      r10,1                                  
ffc0c584:	99 49 00 0c 	stb     r10,12(r9)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0c588:	7f c0 01 24 	mtmsr   r30                                    
  _ISR_Enable( level );                                               
}                                                                     
ffc0c58c:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0c590:	83 81 00 08 	lwz     r28,8(r1)                              
ffc0c594:	7c 08 03 a6 	mtlr    r0                                     
ffc0c598:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0c59c:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0c5a0:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0c5a4:	38 21 00 18 	addi    r1,r1,24                               
ffc0c5a8:	4e 80 00 20 	blr                                            
 */                                                                   
RTEMS_INLINE_ROUTINE void _Scheduler_Enqueue(                         
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  _Scheduler.Operations.enqueue( the_thread );                        
ffc0c5ac:	81 3d 00 24 	lwz     r9,36(r29)                             
ffc0c5b0:	7f e3 fb 78 	mr      r3,r31                                 
ffc0c5b4:	7d 29 03 a6 	mtctr   r9                                     
ffc0c5b8:	4e 80 04 21 	bctrl                                          
ffc0c5bc:	4b ff ff 88 	b       ffc0c544 <_Thread_Change_priority+0x110>
                                                                      

ffc0c82c <_Thread_Delay_ended>: void _Thread_Delay_ended( Objects_Id id, void *ignored __attribute__((unused)) ) {
ffc0c82c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0c830:	7c 08 02 a6 	mflr    r0                                     
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc0c834:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
void _Thread_Delay_ended(                                             
  Objects_Id  id,                                                     
  void       *ignored __attribute__((unused))                         
)                                                                     
{                                                                     
ffc0c838:	90 01 00 1c 	stw     r0,28(r1)                              
  Thread_Control    *the_thread;                                      
  Objects_Locations  location;                                        
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc0c83c:	48 00 02 a1 	bl      ffc0cadc <_Thread_Get>                 
  switch ( location ) {                                               
ffc0c840:	81 21 00 08 	lwz     r9,8(r1)                               
ffc0c844:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c848:	40 9e 00 20 	bne-    cr7,ffc0c868 <_Thread_Delay_ended+0x3c><== NEVER TAKEN
#if defined(RTEMS_MULTIPROCESSING)                                    
    case OBJECTS_REMOTE:  /* impossible */                            
#endif                                                                
      break;                                                          
    case OBJECTS_LOCAL:                                               
      _Thread_Clear_state(                                            
ffc0c84c:	3c 80 10 00 	lis     r4,4096                                
ffc0c850:	60 84 00 18 	ori     r4,r4,24                               
ffc0c854:	4b ff fd 6d 	bl      ffc0c5c0 <_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;                  
ffc0c858:	3d 20 00 00 	lis     r9,0                                   
ffc0c85c:	81 49 28 68 	lwz     r10,10344(r9)                          
                                                                      
    --level;                                                          
ffc0c860:	39 4a ff ff 	addi    r10,r10,-1                             
    _Thread_Dispatch_disable_level = level;                           
ffc0c864:	91 49 28 68 	stw     r10,10344(r9)                          
          | STATES_INTERRUPTIBLE_BY_SIGNAL                            
      );                                                              
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
ffc0c868:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0c86c:	38 21 00 18 	addi    r1,r1,24                               
ffc0c870:	7c 08 03 a6 	mtlr    r0                                     
ffc0c874:	4e 80 00 20 	blr                                            
                                                                      

ffc0c878 <_Thread_Dispatch>: #if defined(RTEMS_SMP) #include <rtems/score/smp.h> #endif void _Thread_Dispatch( void ) {
ffc0c878:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc0c87c:	7c 08 02 a6 	mflr    r0                                     
ffc0c880:	93 81 00 38 	stw     r28,56(r1)                             
  #endif                                                              
                                                                      
  /*                                                                  
   *  Now determine if we need to perform a dispatch on the current CPU.
   */                                                                 
  executing   = _Thread_Executing;                                    
ffc0c884:	3f 80 00 00 	lis     r28,0                                  
ffc0c888:	3b 9c 31 a0 	addi    r28,r28,12704                          
#if defined(RTEMS_SMP)                                                
  #include <rtems/score/smp.h>                                        
#endif                                                                
                                                                      
void _Thread_Dispatch( void )                                         
{                                                                     
ffc0c88c:	93 e1 00 44 	stw     r31,68(r1)                             
ffc0c890:	90 01 00 4c 	stw     r0,76(r1)                              
ffc0c894:	92 81 00 18 	stw     r20,24(r1)                             
ffc0c898:	92 a1 00 1c 	stw     r21,28(r1)                             
ffc0c89c:	92 c1 00 20 	stw     r22,32(r1)                             
ffc0c8a0:	92 e1 00 24 	stw     r23,36(r1)                             
ffc0c8a4:	93 01 00 28 	stw     r24,40(r1)                             
ffc0c8a8:	93 21 00 2c 	stw     r25,44(r1)                             
ffc0c8ac:	93 41 00 30 	stw     r26,48(r1)                             
ffc0c8b0:	93 61 00 34 	stw     r27,52(r1)                             
ffc0c8b4:	93 a1 00 3c 	stw     r29,60(r1)                             
ffc0c8b8:	93 c1 00 40 	stw     r30,64(r1)                             
  #endif                                                              
                                                                      
  /*                                                                  
   *  Now determine if we need to perform a dispatch on the current CPU.
   */                                                                 
  executing   = _Thread_Executing;                                    
ffc0c8bc:	83 fc 00 10 	lwz     r31,16(r28)                            
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0c8c0:	7d 20 00 a6 	mfmsr   r9                                     
ffc0c8c4:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc0c8c8:	7d 2a 50 78 	andc    r10,r9,r10                             
ffc0c8cc:	7d 40 01 24 	mtmsr   r10                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
ffc0c8d0:	89 5c 00 0c 	lbz     r10,12(r28)                            
ffc0c8d4:	3f 60 00 00 	lis     r27,0                                  
ffc0c8d8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0c8dc:	41 9e 01 58 	beq-    cr7,ffc0ca34 <_Thread_Dispatch+0x1bc>  
    heir = _Thread_Heir;                                              
ffc0c8e0:	83 dc 00 14 	lwz     r30,20(r28)                            
   * 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;                           
ffc0c8e4:	39 40 00 01 	li      r10,1                                  
ffc0c8e8:	3f 60 00 00 	lis     r27,0                                  
    /*                                                                
     *  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 )                                          
ffc0c8ec:	7f 9f f0 00 	cmpw    cr7,r31,r30                            
ffc0c8f0:	91 5b 28 68 	stw     r10,10344(r27)                         
  while ( _Thread_Dispatch_necessary == true ) {                      
    heir = _Thread_Heir;                                              
    #ifndef RTEMS_SMP                                                 
      _Thread_Dispatch_set_disable_level( 1 );                        
    #endif                                                            
    _Thread_Dispatch_necessary = false;                               
ffc0c8f4:	39 40 00 00 	li      r10,0                                  
    _Thread_Executing = heir;                                         
ffc0c8f8:	93 dc 00 10 	stw     r30,16(r28)                            
  while ( _Thread_Dispatch_necessary == true ) {                      
    heir = _Thread_Heir;                                              
    #ifndef RTEMS_SMP                                                 
      _Thread_Dispatch_set_disable_level( 1 );                        
    #endif                                                            
    _Thread_Dispatch_necessary = false;                               
ffc0c8fc:	99 5c 00 0c 	stb     r10,12(r28)                            
    /*                                                                
     *  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 )                                          
ffc0c900:	41 9e 01 34 	beq-    cr7,ffc0ca34 <_Thread_Dispatch+0x1bc>  
ffc0c904:	3f 40 00 00 	lis     r26,0                                  
ffc0c908:	3b 5a 22 08 	addi    r26,r26,8712                           
ffc0c90c:	3f 00 00 00 	lis     r24,0                                  
ffc0c910:	3f 20 00 00 	lis     r25,0                                  
ffc0c914:	3b 18 2c 68 	addi    r24,r24,11368                          
ffc0c918:	3b 39 28 70 	addi    r25,r25,10352                          
ffc0c91c:	3b ba 00 04 	addi    r29,r26,4                              
#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;            
ffc0c920:	3e a0 00 00 	lis     r21,0                                  
ffc0c924:	3a c0 00 01 	li      r22,1                                  
  while ( _Thread_Dispatch_necessary == true ) {                      
    heir = _Thread_Heir;                                              
    #ifndef RTEMS_SMP                                                 
      _Thread_Dispatch_set_disable_level( 1 );                        
    #endif                                                            
    _Thread_Dispatch_necessary = false;                               
ffc0c928:	3a e0 00 00 	li      r23,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 )
ffc0c92c:	81 5e 00 78 	lwz     r10,120(r30)                           
ffc0c930:	2f 8a 00 01 	cmpwi   cr7,r10,1                              
ffc0c934:	41 9e 01 80 	beq-    cr7,ffc0cab4 <_Thread_Dispatch+0x23c>  
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0c938:	7d 20 01 24 	mtmsr   r9                                     
 */                                                                   
static inline void _TOD_Get_uptime(                                   
  Timestamp_Control *time                                             
)                                                                     
{                                                                     
  _TOD_Get_with_nanoseconds( time, &_TOD.uptime );                    
ffc0c93c:	38 61 00 08 	addi    r3,r1,8                                
ffc0c940:	7f 04 c3 78 	mr      r4,r24                                 
ffc0c944:	4b ff e4 51 	bl      ffc0ad94 <_TOD_Get_with_nanoseconds>   
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
ffc0c948:	80 b9 00 00 	lwz     r5,0(r25)                              
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
ffc0c94c:	80 dc 00 20 	lwz     r6,32(r28)                             
ffc0c950:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc0c954:	80 fc 00 24 	lwz     r7,36(r28)                             
                                                                      
    #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                        
      {                                                               
        Timestamp_Control uptime, ran;                                
        _TOD_Get_uptime( &uptime );                                   
        _Timestamp_Subtract(                                          
ffc0c958:	81 41 00 08 	lwz     r10,8(r1)                              
ffc0c95c:	81 61 00 0c 	lwz     r11,12(r1)                             
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
ffc0c960:	81 1f 00 80 	lwz     r8,128(r31)                            
ffc0c964:	81 3f 00 84 	lwz     r9,132(r31)                            
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
ffc0c968:	7c e7 58 10 	subfc   r7,r7,r11                              
ffc0c96c:	7c c6 51 10 	subfe   r6,r6,r10                              
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
ffc0c970:	7d 29 38 14 	addc    r9,r9,r7                               
ffc0c974:	7d 08 31 14 	adde    r8,r8,r6                               
ffc0c978:	91 1f 00 80 	stw     r8,128(r31)                            
ffc0c97c:	91 3f 00 84 	stw     r9,132(r31)                            
          &_Thread_Time_of_last_context_switch,                       
          &uptime,                                                    
          &ran                                                        
        );                                                            
        _Timestamp_Add_to( &executing->cpu_time_used, &ran );         
        _Thread_Time_of_last_context_switch = uptime;                 
ffc0c980:	91 5c 00 20 	stw     r10,32(r28)                            
ffc0c984:	91 7c 00 24 	stw     r11,36(r28)                            
    #endif                                                            
                                                                      
    /*                                                                
     * Switch libc's task specific data.                              
     */                                                               
    if ( _Thread_libc_reent ) {                                       
ffc0c988:	41 9e 00 14 	beq-    cr7,ffc0c99c <_Thread_Dispatch+0x124>  <== NEVER TAKEN
      executing->libc_reent = *_Thread_libc_reent;                    
ffc0c98c:	81 25 00 00 	lwz     r9,0(r5)                               
ffc0c990:	91 3f 01 48 	stw     r9,328(r31)                            
      *_Thread_libc_reent = heir->libc_reent;                         
ffc0c994:	81 3e 01 48 	lwz     r9,328(r30)                            
ffc0c998:	91 25 00 00 	stw     r9,0(r5)                               
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc0c99c:	82 9a 00 00 	lwz     r20,0(r26)                             
{                                                                     
  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 ) {                                            
ffc0c9a0:	7f 94 e8 00 	cmpw    cr7,r20,r29                            
ffc0c9a4:	41 9e 00 24 	beq-    cr7,ffc0c9c8 <_Thread_Dispatch+0x150>  <== NEVER TAKEN
    const User_extensions_Switch_control *extension =                 
      (const User_extensions_Switch_control *) node;                  
                                                                      
    (*extension->thread_switch)( executing, heir );                   
ffc0c9a8:	81 34 00 08 	lwz     r9,8(r20)                              
ffc0c9ac:	7f e3 fb 78 	mr      r3,r31                                 
ffc0c9b0:	7f c4 f3 78 	mr      r4,r30                                 
ffc0c9b4:	7d 29 03 a6 	mtctr   r9                                     
ffc0c9b8:	4e 80 04 21 	bctrl                                          
  #ifdef RTEMS_SMP                                                    
    _Thread_Unnest_dispatch();                                        
  #endif                                                              
                                                                      
  _API_extensions_Run_post_switch( executing );                       
}                                                                     
ffc0c9bc:	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 ) {                                            
ffc0c9c0:	7f 94 e8 00 	cmpw    cr7,r20,r29                            
ffc0c9c4:	40 9e ff e4 	bne+    cr7,ffc0c9a8 <_Thread_Dispatch+0x130>  
     *  operations.                                                   
     */                                                               
                                                                      
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
#if ( CPU_USE_DEFERRED_FP_SWITCH != TRUE )                            
    if ( executing->fp_context != NULL )                              
ffc0c9c8:	81 3f 01 44 	lwz     r9,324(r31)                            
ffc0c9cc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c9d0:	41 9e 00 0c 	beq-    cr7,ffc0c9dc <_Thread_Dispatch+0x164>  
      _Context_Save_fp( &executing->fp_context );                     
ffc0c9d4:	38 7f 01 44 	addi    r3,r31,324                             
ffc0c9d8:	48 01 0e c9 	bl      ffc1d8a0 <_CPU_Context_save_fp>        
#endif                                                                
#endif                                                                
                                                                      
    _Context_Switch( &executing->Registers, &heir->Registers );       
ffc0c9dc:	38 7f 00 c4 	addi    r3,r31,196                             
ffc0c9e0:	38 9e 00 c4 	addi    r4,r30,196                             
ffc0c9e4:	48 01 10 3d 	bl      ffc1da20 <_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 )                              
ffc0c9e8:	81 3f 01 44 	lwz     r9,324(r31)                            
ffc0c9ec:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c9f0:	41 9e 00 0c 	beq-    cr7,ffc0c9fc <_Thread_Dispatch+0x184>  
      _Context_Restore_fp( &executing->fp_context );                  
ffc0c9f4:	38 7f 01 44 	addi    r3,r31,324                             
ffc0c9f8:	48 01 0f 69 	bl      ffc1d960 <_CPU_Context_restore_fp>     
#endif                                                                
#endif                                                                
                                                                      
    executing = _Thread_Executing;                                    
ffc0c9fc:	83 fc 00 10 	lwz     r31,16(r28)                            
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0ca00:	7d 20 00 a6 	mfmsr   r9                                     
ffc0ca04:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc0ca08:	7d 2a 50 78 	andc    r10,r9,r10                             
ffc0ca0c:	7d 40 01 24 	mtmsr   r10                                    
  /*                                                                  
   *  Now determine if we need to perform a dispatch on the current CPU.
   */                                                                 
  executing   = _Thread_Executing;                                    
  _ISR_Disable( level );                                              
  while ( _Thread_Dispatch_necessary == true ) {                      
ffc0ca10:	89 5c 00 0c 	lbz     r10,12(r28)                            
ffc0ca14:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0ca18:	41 9e 00 1c 	beq-    cr7,ffc0ca34 <_Thread_Dispatch+0x1bc>  
    heir = _Thread_Heir;                                              
ffc0ca1c:	83 dc 00 14 	lwz     r30,20(r28)                            
ffc0ca20:	92 db 28 68 	stw     r22,10344(r27)                         
    /*                                                                
     *  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 )                                          
ffc0ca24:	7f 9e f8 00 	cmpw    cr7,r30,r31                            
  while ( _Thread_Dispatch_necessary == true ) {                      
    heir = _Thread_Heir;                                              
    #ifndef RTEMS_SMP                                                 
      _Thread_Dispatch_set_disable_level( 1 );                        
    #endif                                                            
    _Thread_Dispatch_necessary = false;                               
ffc0ca28:	9a fc 00 0c 	stb     r23,12(r28)                            
    _Thread_Executing = heir;                                         
ffc0ca2c:	93 dc 00 10 	stw     r30,16(r28)                            
    /*                                                                
     *  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 )                                          
ffc0ca30:	40 9e fe fc 	bne+    cr7,ffc0c92c <_Thread_Dispatch+0xb4>   <== ALWAYS TAKEN
ffc0ca34:	39 40 00 00 	li      r10,0                                  
ffc0ca38:	91 5b 28 68 	stw     r10,10344(r27)                         
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0ca3c:	7d 20 01 24 	mtmsr   r9                                     
ffc0ca40:	3d 20 00 00 	lis     r9,0                                   
ffc0ca44:	3b a9 2d 90 	addi    r29,r9,11664                           
ffc0ca48:	83 c9 2d 90 	lwz     r30,11664(r9)                          
{                                                                     
  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 ) {                                            
ffc0ca4c:	3b bd 00 04 	addi    r29,r29,4                              
ffc0ca50:	7f 9e e8 00 	cmpw    cr7,r30,r29                            
ffc0ca54:	41 9e 00 20 	beq-    cr7,ffc0ca74 <_Thread_Dispatch+0x1fc>  
    const API_extensions_Post_switch_control *post_switch =           
      (const API_extensions_Post_switch_control *) node;              
                                                                      
    (*post_switch->hook)( executing );                                
ffc0ca58:	81 3e 00 08 	lwz     r9,8(r30)                              
ffc0ca5c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ca60:	7d 29 03 a6 	mtctr   r9                                     
ffc0ca64:	4e 80 04 21 	bctrl                                          
  #ifdef RTEMS_SMP                                                    
    _Thread_Unnest_dispatch();                                        
  #endif                                                              
                                                                      
  _API_extensions_Run_post_switch( executing );                       
}                                                                     
ffc0ca68:	83 de 00 00 	lwz     r30,0(r30)                             
{                                                                     
  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 ) {                                            
ffc0ca6c:	7f 9e e8 00 	cmpw    cr7,r30,r29                            
ffc0ca70:	40 9e ff e8 	bne+    cr7,ffc0ca58 <_Thread_Dispatch+0x1e0>  <== NEVER TAKEN
ffc0ca74:	80 01 00 4c 	lwz     r0,76(r1)                              
ffc0ca78:	82 81 00 18 	lwz     r20,24(r1)                             
ffc0ca7c:	7c 08 03 a6 	mtlr    r0                                     
ffc0ca80:	82 a1 00 1c 	lwz     r21,28(r1)                             
ffc0ca84:	82 c1 00 20 	lwz     r22,32(r1)                             
ffc0ca88:	82 e1 00 24 	lwz     r23,36(r1)                             
ffc0ca8c:	83 01 00 28 	lwz     r24,40(r1)                             
ffc0ca90:	83 21 00 2c 	lwz     r25,44(r1)                             
ffc0ca94:	83 41 00 30 	lwz     r26,48(r1)                             
ffc0ca98:	83 61 00 34 	lwz     r27,52(r1)                             
ffc0ca9c:	83 81 00 38 	lwz     r28,56(r1)                             
ffc0caa0:	83 a1 00 3c 	lwz     r29,60(r1)                             
ffc0caa4:	83 c1 00 40 	lwz     r30,64(r1)                             
ffc0caa8:	83 e1 00 44 	lwz     r31,68(r1)                             
ffc0caac:	38 21 00 48 	addi    r1,r1,72                               
ffc0cab0:	4e 80 00 20 	blr                                            
#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;            
ffc0cab4:	81 55 28 64 	lwz     r10,10340(r21)                         
ffc0cab8:	91 5e 00 74 	stw     r10,116(r30)                           
ffc0cabc:	4b ff fe 7c 	b       ffc0c938 <_Thread_Dispatch+0xc0>       
                                                                      

ffc12e0c <_Thread_Handler>: #define INIT_NAME __main #define EXECUTE_GLOBAL_CONSTRUCTORS #endif void _Thread_Handler( void ) {
ffc12e0c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc12e10:	7c 08 02 a6 	mflr    r0                                     
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    static bool doneConstructors;                                     
    bool doCons;                                                      
  #endif                                                              
                                                                      
  executing = _Thread_Executing;                                      
ffc12e14:	3d 20 00 00 	lis     r9,0                                   
  #define INIT_NAME __main                                            
  #define EXECUTE_GLOBAL_CONSTRUCTORS                                 
#endif                                                                
                                                                      
void _Thread_Handler( void )                                          
{                                                                     
ffc12e18:	90 01 00 14 	stw     r0,20(r1)                              
ffc12e1c:	93 e1 00 0c 	stw     r31,12(r1)                             
  #if defined(EXECUTE_GLOBAL_CONSTRUCTORS)                            
    static bool doneConstructors;                                     
    bool doCons;                                                      
  #endif                                                              
                                                                      
  executing = _Thread_Executing;                                      
ffc12e20:	83 e9 31 b0 	lwz     r31,12720(r9)                          
  #define INIT_NAME __main                                            
  #define EXECUTE_GLOBAL_CONSTRUCTORS                                 
#endif                                                                
                                                                      
void _Thread_Handler( void )                                          
{                                                                     
ffc12e24:	93 c1 00 08 	stw     r30,8(r1)                              
                                                                      
  /*                                                                  
   * have to put level into a register for those cpu's that use       
   * inline asm here                                                  
   */                                                                 
  level = executing->Start.isr_level;                                 
ffc12e28:	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);                                                  
ffc12e2c:	39 20 00 00 	li      r9,0                                   
ffc12e30:	7d 20 00 a6 	mfmsr   r9                                     
  if (!(level & CPU_MODES_INTERRUPT_MASK)) {                          
ffc12e34:	71 48 00 01 	andi.   r8,r10,1                               
                                                                      
static inline uint32_t ppc_interrupt_get_disable_mask( void )         
{                                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc12e38:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc12e3c:	40 82 00 6c 	bne-    ffc12ea8 <_Thread_Handler+0x9c>        
    msr |= ppc_interrupt_get_disable_mask();                          
ffc12e40:	7d 49 4b 78 	or      r9,r10,r9                              
  }                                                                   
  else {                                                              
    msr &= ~ppc_interrupt_get_disable_mask();                         
  }                                                                   
  _CPU_MSR_SET(msr);                                                  
ffc12e44:	7d 20 01 24 	mtmsr   r9                                     
      doCons = !doneConstructors                                      
        && _Objects_Get_API( executing->Object.id ) != OBJECTS_INTERNAL_API;
      if (doCons)                                                     
        doneConstructors = true;                                      
    #else                                                             
      doCons = !doneConstructors;                                     
ffc12e48:	3d 20 00 00 	lis     r9,0                                   
ffc12e4c:	8b c9 2a 40 	lbz     r30,10816(r9)                          
  );                                                                  
}                                                                     
                                                                      
static inline void _User_extensions_Thread_begin( Thread_Control *executing )
{                                                                     
  _User_extensions_Iterate(                                           
ffc12e50:	3c 80 ff c1 	lis     r4,-63                                 
      doneConstructors = true;                                        
ffc12e54:	39 40 00 01 	li      r10,1                                  
ffc12e58:	7f e3 fb 78 	mr      r3,r31                                 
ffc12e5c:	99 49 2a 40 	stb     r10,10816(r9)                          
ffc12e60:	38 84 d8 c0 	addi    r4,r4,-10048                           
ffc12e64:	4b ff aa a9 	bl      ffc0d90c <_User_extensions_Iterate>    
  _User_extensions_Thread_begin( executing );                         
                                                                      
  /*                                                                  
   *  At this point, the dispatch disable level BETTER be 1.          
   */                                                                 
  _Thread_Enable_dispatch();                                          
ffc12e68:	4b ff 9c 59 	bl      ffc0cac0 <_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) */ {                    
ffc12e6c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc12e70:	41 9e 00 40 	beq-    cr7,ffc12eb0 <_Thread_Handler+0xa4>    
        _Thread_Enable_dispatch();                                    
      #endif                                                          
    }                                                                 
 #endif                                                               
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
ffc12e74:	81 3f 00 90 	lwz     r9,144(r31)                            
ffc12e78:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc12e7c:	41 9e 00 3c 	beq-    cr7,ffc12eb8 <_Thread_Handler+0xac>    
      (*(Thread_Entry_numeric) executing->Start.entry_point)(         
        executing->Start.numeric_argument                             
      );                                                              
  }                                                                   
  #if defined(RTEMS_POSIX_API)                                        
    else if ( executing->Start.prototype == THREAD_START_POINTER ) {  
ffc12e80:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc12e84:	41 9e 00 4c 	beq-    cr7,ffc12ed0 <_Thread_Handler+0xc4>    <== ALWAYS TAKEN
  }                                                                   
}                                                                     
                                                                      
static inline void _User_extensions_Thread_exitted( Thread_Control *executing )
{                                                                     
  _User_extensions_Iterate(                                           
ffc12e88:	3c 80 ff c1 	lis     r4,-63                                 
ffc12e8c:	7f e3 fb 78 	mr      r3,r31                                 
ffc12e90:	38 84 d8 d4 	addi    r4,r4,-10028                           
ffc12e94:	4b ff aa 79 	bl      ffc0d90c <_User_extensions_Iterate>    
   *  able to fit in a (void *).                                      
   */                                                                 
                                                                      
  _User_extensions_Thread_exitted( executing );                       
                                                                      
  _Internal_error_Occurred(                                           
ffc12e98:	38 60 00 00 	li      r3,0                                   
ffc12e9c:	38 80 00 01 	li      r4,1                                   
ffc12ea0:	38 a0 00 05 	li      r5,5                                   
ffc12ea4:	4b ff 84 cd 	bl      ffc0b370 <_Internal_error_Occurred>    
  _CPU_MSR_GET(msr);                                                  
  if (!(level & CPU_MODES_INTERRUPT_MASK)) {                          
    msr |= ppc_interrupt_get_disable_mask();                          
  }                                                                   
  else {                                                              
    msr &= ~ppc_interrupt_get_disable_mask();                         
ffc12ea8:	7d 29 50 78 	andc    r9,r9,r10                              
ffc12eac:	4b ff ff 98 	b       ffc12e44 <_Thread_Handler+0x38>        
     *  _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) */ {                    
      INIT_NAME ();                                                   
ffc12eb0:	48 00 bb ed 	bl      ffc1ea9c <_init>                       
ffc12eb4:	4b ff ff c0 	b       ffc12e74 <_Thread_Handler+0x68>        
    }                                                                 
 #endif                                                               
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
    executing->Wait.return_argument =                                 
      (*(Thread_Entry_numeric) executing->Start.entry_point)(         
ffc12eb8:	81 3f 00 8c 	lwz     r9,140(r31)                            
ffc12ebc:	80 7f 00 98 	lwz     r3,152(r31)                            
ffc12ec0:	7d 29 03 a6 	mtctr   r9                                     
ffc12ec4:	4e 80 04 21 	bctrl                                          
      #endif                                                          
    }                                                                 
 #endif                                                               
                                                                      
  if ( executing->Start.prototype == THREAD_START_NUMERIC ) {         
    executing->Wait.return_argument =                                 
ffc12ec8:	90 7f 00 28 	stw     r3,40(r31)                             
ffc12ecc:	4b ff ff bc 	b       ffc12e88 <_Thread_Handler+0x7c>        
      );                                                              
  }                                                                   
  #if defined(RTEMS_POSIX_API)                                        
    else if ( executing->Start.prototype == THREAD_START_POINTER ) {  
      executing->Wait.return_argument =                               
        (*(Thread_Entry_pointer) executing->Start.entry_point)(       
ffc12ed0:	81 3f 00 8c 	lwz     r9,140(r31)                            
ffc12ed4:	80 7f 00 94 	lwz     r3,148(r31)                            
ffc12ed8:	7d 29 03 a6 	mtctr   r9                                     
ffc12edc:	4e 80 04 21 	bctrl                                          
        executing->Start.numeric_argument                             
      );                                                              
  }                                                                   
  #if defined(RTEMS_POSIX_API)                                        
    else if ( executing->Start.prototype == THREAD_START_POINTER ) {  
      executing->Wait.return_argument =                               
ffc12ee0:	90 7f 00 28 	stw     r3,40(r31)                             
ffc12ee4:	4b ff ff a4 	b       ffc12e88 <_Thread_Handler+0x7c>        
                                                                      

ffc0ce0c <_Thread_Handler_initialization>: #include <rtems/bspsmp.h> #endif void _Thread_Handler_initialization(void) { uint32_t ticks_per_timeslice =
ffc0ce0c:	3d 20 ff c2 	lis     r9,-62                                 
#if defined(RTEMS_SMP)                                                
  #include <rtems/bspsmp.h>                                           
#endif                                                                
                                                                      
void _Thread_Handler_initialization(void)                             
{                                                                     
ffc0ce10:	94 21 ff f0 	stwu    r1,-16(r1)                             
  uint32_t ticks_per_timeslice =                                      
ffc0ce14:	39 29 ea f8 	addi    r9,r9,-5384                            
#if defined(RTEMS_SMP)                                                
  #include <rtems/bspsmp.h>                                           
#endif                                                                
                                                                      
void _Thread_Handler_initialization(void)                             
{                                                                     
ffc0ce18:	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 ||       
ffc0ce1c:	81 49 00 28 	lwz     r10,40(r9)                             
#if defined(RTEMS_SMP)                                                
  #include <rtems/bspsmp.h>                                           
#endif                                                                
                                                                      
void _Thread_Handler_initialization(void)                             
{                                                                     
ffc0ce20:	93 c1 00 08 	stw     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 ||       
ffc0ce24:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
#if defined(RTEMS_SMP)                                                
  #include <rtems/bspsmp.h>                                           
#endif                                                                
                                                                      
void _Thread_Handler_initialization(void)                             
{                                                                     
ffc0ce28:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0ce2c:	90 01 00 14 	stw     r0,20(r1)                              
  uint32_t ticks_per_timeslice =                                      
ffc0ce30:	83 e9 00 14 	lwz     r31,20(r9)                             
    rtems_configuration_get_ticks_per_timeslice();                    
  uint32_t maximum_extensions =                                       
ffc0ce34:	83 c9 00 08 	lwz     r30,8(r9)                              
    rtems_configuration_get_maximum_extensions();                     
  rtems_stack_allocate_init_hook stack_allocate_init_hook =           
ffc0ce38:	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 ||       
ffc0ce3c:	41 9e 00 90 	beq-    cr7,ffc0cecc <_Thread_Handler_initialization+0xc0><== NEVER TAKEN
ffc0ce40:	81 09 00 2c 	lwz     r8,44(r9)                              
ffc0ce44:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0ce48:	41 9e 00 84 	beq-    cr7,ffc0cecc <_Thread_Handler_initialization+0xc0>
      INTERNAL_ERROR_CORE,                                            
      true,                                                           
      INTERNAL_ERROR_BAD_STACK_HOOK                                   
    );                                                                
                                                                      
  if ( stack_allocate_init_hook != NULL )                             
ffc0ce4c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0ce50:	41 9e 00 10 	beq-    cr7,ffc0ce60 <_Thread_Handler_initialization+0x54>
    (*stack_allocate_init_hook)( rtems_configuration_get_stack_space_size() );
ffc0ce54:	80 69 00 04 	lwz     r3,4(r9)                               
ffc0ce58:	7d 49 03 a6 	mtctr   r10                                    
ffc0ce5c:	4e 80 04 21 	bctrl                                          
                                                                      
  _Thread_Dispatch_necessary = false;                                 
ffc0ce60:	3d 60 00 00 	lis     r11,0                                  
ffc0ce64:	39 6b 31 a0 	addi    r11,r11,12704                          
ffc0ce68:	38 00 00 00 	li      r0,0                                   
ffc0ce6c:	98 0b 00 0c 	stb     r0,12(r11)                             
  _Thread_Executing         = NULL;                                   
ffc0ce70:	39 40 00 00 	li      r10,0                                  
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if ( _System_state_Is_multiprocessing )                           
      maximum_internal_threads += 1;                                  
  #endif                                                              
                                                                      
  _Objects_Initialize_information(                                    
ffc0ce74:	3c 60 00 00 	lis     r3,0                                   
      false,                      /* true if this is a global object class */
      NULL                        /* Proxy extraction support callout */
    #endif                                                            
  );                                                                  
                                                                      
}                                                                     
ffc0ce78:	80 01 00 14 	lwz     r0,20(r1)                              
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if ( _System_state_Is_multiprocessing )                           
      maximum_internal_threads += 1;                                  
  #endif                                                              
                                                                      
  _Objects_Initialize_information(                                    
ffc0ce7c:	38 63 2d f4 	addi    r3,r3,11764                            
                                                                      
  if ( stack_allocate_init_hook != NULL )                             
    (*stack_allocate_init_hook)( rtems_configuration_get_stack_space_size() );
                                                                      
  _Thread_Dispatch_necessary = false;                                 
  _Thread_Executing         = NULL;                                   
ffc0ce80:	91 4b 00 10 	stw     r10,16(r11)                            
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if ( _System_state_Is_multiprocessing )                           
      maximum_internal_threads += 1;                                  
  #endif                                                              
                                                                      
  _Objects_Initialize_information(                                    
ffc0ce84:	38 80 00 01 	li      r4,1                                   
      false,                      /* true if this is a global object class */
      NULL                        /* Proxy extraction support callout */
    #endif                                                            
  );                                                                  
                                                                      
}                                                                     
ffc0ce88:	7c 08 03 a6 	mtlr    r0                                     
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if ( _System_state_Is_multiprocessing )                           
      maximum_internal_threads += 1;                                  
  #endif                                                              
                                                                      
  _Objects_Initialize_information(                                    
ffc0ce8c:	38 a0 00 01 	li      r5,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;                                   
ffc0ce90:	91 4b 00 14 	stw     r10,20(r11)                            
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
  _Thread_Allocated_fp      = NULL;                                   
ffc0ce94:	3d 60 00 00 	lis     r11,0                                  
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if ( _System_state_Is_multiprocessing )                           
      maximum_internal_threads += 1;                                  
  #endif                                                              
                                                                      
  _Objects_Initialize_information(                                    
ffc0ce98:	38 c0 00 01 	li      r6,1                                   
                                                                      
  _Thread_Dispatch_necessary = false;                                 
  _Thread_Executing         = NULL;                                   
  _Thread_Heir              = NULL;                                   
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
  _Thread_Allocated_fp      = NULL;                                   
ffc0ce9c:	91 4b 28 6c 	stw     r10,10348(r11)                         
#endif                                                                
                                                                      
  _Thread_Maximum_extensions = maximum_extensions;                    
ffc0cea0:	3d 40 00 00 	lis     r10,0                                  
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if ( _System_state_Is_multiprocessing )                           
      maximum_internal_threads += 1;                                  
  #endif                                                              
                                                                      
  _Objects_Initialize_information(                                    
ffc0cea4:	38 e0 01 60 	li      r7,352                                 
  _Thread_Heir              = NULL;                                   
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
  _Thread_Allocated_fp      = NULL;                                   
#endif                                                                
                                                                      
  _Thread_Maximum_extensions = maximum_extensions;                    
ffc0cea8:	93 ca 28 74 	stw     r30,10356(r10)                         
                                                                      
  _Thread_Ticks_per_timeslice  = ticks_per_timeslice;                 
ffc0ceac:	3d 40 00 00 	lis     r10,0                                  
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if ( _System_state_Is_multiprocessing )                           
      maximum_internal_threads += 1;                                  
  #endif                                                              
                                                                      
  _Objects_Initialize_information(                                    
ffc0ceb0:	39 00 00 00 	li      r8,0                                   
      false,                      /* true if this is a global object class */
      NULL                        /* Proxy extraction support callout */
    #endif                                                            
  );                                                                  
                                                                      
}                                                                     
ffc0ceb4:	83 c1 00 08 	lwz     r30,8(r1)                              
  #if defined(RTEMS_MULTIPROCESSING)                                  
    if ( _System_state_Is_multiprocessing )                           
      maximum_internal_threads += 1;                                  
  #endif                                                              
                                                                      
  _Objects_Initialize_information(                                    
ffc0ceb8:	39 20 00 08 	li      r9,8                                   
  _Thread_Allocated_fp      = NULL;                                   
#endif                                                                
                                                                      
  _Thread_Maximum_extensions = maximum_extensions;                    
                                                                      
  _Thread_Ticks_per_timeslice  = ticks_per_timeslice;                 
ffc0cebc:	93 ea 28 64 	stw     r31,10340(r10)                         
      false,                      /* true if this is a global object class */
      NULL                        /* Proxy extraction support callout */
    #endif                                                            
  );                                                                  
                                                                      
}                                                                     
ffc0cec0:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0cec4:	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(                                    
ffc0cec8:	4b ff eb a0 	b       ffc0ba68 <_Objects_Initialize_information>
      _Configuration_MP_table->maximum_proxies;                       
  #endif                                                              
                                                                      
  if ( rtems_configuration_get_stack_allocate_hook() == NULL ||       
       rtems_configuration_get_stack_free_hook() == NULL)             
    _Internal_error_Occurred(                                         
ffc0cecc:	38 60 00 00 	li      r3,0                                   
ffc0ced0:	38 80 00 01 	li      r4,1                                   
ffc0ced4:	38 a0 00 0e 	li      r5,14                                  
ffc0ced8:	4b ff e4 99 	bl      ffc0b370 <_Internal_error_Occurred>    
                                                                      

ffc0cb74 <_Thread_Initialize>: Thread_CPU_budget_algorithms budget_algorithm, Thread_CPU_budget_algorithm_callout budget_callout, uint32_t isr_level, Objects_Name name ) {
ffc0cb74:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc0cb78:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  /*                                                                  
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
ffc0cb7c:	39 60 00 00 	li      r11,0                                  
  Thread_CPU_budget_algorithms          budget_algorithm,             
  Thread_CPU_budget_algorithm_callout   budget_callout,               
  uint32_t                              isr_level,                    
  Objects_Name                          name                          
)                                                                     
{                                                                     
ffc0cb80:	93 c1 00 40 	stw     r30,64(r1)                             
    if ( !actual_stack_size || actual_stack_size < stack_size )       
      return false;                     /* stack allocation failed */ 
                                                                      
    stack = the_thread->Start.stack;                                  
  #else                                                               
    if ( !stack_area ) {                                              
ffc0cb84:	7c be 2b 79 	mr.     r30,r5                                 
  Thread_CPU_budget_algorithms          budget_algorithm,             
  Thread_CPU_budget_algorithm_callout   budget_callout,               
  uint32_t                              isr_level,                    
  Objects_Name                          name                          
)                                                                     
{                                                                     
ffc0cb88:	90 01 00 4c 	stw     r0,76(r1)                              
ffc0cb8c:	93 81 00 38 	stw     r28,56(r1)                             
ffc0cb90:	7d 5c 53 78 	mr      r28,r10                                
ffc0cb94:	81 41 00 58 	lwz     r10,88(r1)                             
ffc0cb98:	92 e1 00 24 	stw     r23,36(r1)                             
ffc0cb9c:	7d 37 4b 78 	mr      r23,r9                                 
ffc0cba0:	93 41 00 30 	stw     r26,48(r1)                             
ffc0cba4:	7c 7a 1b 78 	mr      r26,r3                                 
ffc0cba8:	93 61 00 34 	stw     r27,52(r1)                             
ffc0cbac:	93 a1 00 3c 	stw     r29,60(r1)                             
ffc0cbb0:	7d 1d 43 78 	mr      r29,r8                                 
ffc0cbb4:	93 e1 00 44 	stw     r31,68(r1)                             
ffc0cbb8:	7c 9f 23 78 	mr      r31,r4                                 
ffc0cbbc:	93 01 00 28 	stw     r24,40(r1)                             
ffc0cbc0:	93 21 00 2c 	stw     r25,44(r1)                             
ffc0cbc4:	83 6a 00 00 	lwz     r27,0(r10)                             
                                                                      
  /*                                                                  
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
ffc0cbc8:	91 64 01 4c 	stw     r11,332(r4)                            
ffc0cbcc:	91 64 01 50 	stw     r11,336(r4)                            
                                                                      
  extensions_area = NULL;                                             
  the_thread->libc_reent = NULL;                                      
ffc0cbd0:	91 64 01 48 	stw     r11,328(r4)                            
    if ( !actual_stack_size || actual_stack_size < stack_size )       
      return false;                     /* stack allocation failed */ 
                                                                      
    stack = the_thread->Start.stack;                                  
  #else                                                               
    if ( !stack_area ) {                                              
ffc0cbd4:	41 82 01 ec 	beq-    ffc0cdc0 <_Thread_Initialize+0x24c>    
      stack = the_thread->Start.stack;                                
      the_thread->Start.core_allocated_stack = true;                  
    } else {                                                          
      stack = stack_area;                                             
      actual_stack_size = stack_size;                                 
      the_thread->Start.core_allocated_stack = false;                 
ffc0cbd8:	99 64 00 b0 	stb     r11,176(r4)                            
ffc0cbdc:	7c ca 33 78 	mr      r10,r6                                 
                                                                      
  /*                                                                  
   *  Allocate the floating point area for this thread                
   */                                                                 
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    if ( is_fp ) {                                                    
ffc0cbe0:	2f 87 00 00 	cmpwi   cr7,r7,0                               
  Stack_Control *the_stack,                                           
  void          *starting_address,                                    
  size_t         size                                                 
)                                                                     
{                                                                     
  the_stack->area = starting_address;                                 
ffc0cbe4:	93 df 00 b8 	stw     r30,184(r31)                           
                                                                      
  extensions_area = NULL;                                             
  the_thread->libc_reent = NULL;                                      
                                                                      
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    fp_area = NULL;                                                   
ffc0cbe8:	3b c0 00 00 	li      r30,0                                  
  the_stack->size = size;                                             
ffc0cbec:	91 5f 00 b4 	stw     r10,180(r31)                           
                                                                      
  /*                                                                  
   *  Allocate the floating point area for this thread                
   */                                                                 
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    if ( is_fp ) {                                                    
ffc0cbf0:	40 9e 01 64 	bne-    cr7,ffc0cd54 <_Thread_Initialize+0x1e0>
  #endif                                                              
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
ffc0cbf4:	3f 00 00 00 	lis     r24,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;                           
ffc0cbf8:	93 df 01 44 	stw     r30,324(r31)                           
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
ffc0cbfc:	38 e0 00 00 	li      r7,0                                   
  #endif                                                              
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
ffc0cc00:	81 58 28 74 	lwz     r10,10356(r24)                         
      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;                           
ffc0cc04:	93 df 00 bc 	stw     r30,188(r31)                           
  #endif                                                              
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
ffc0cc08:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0cc0c:	90 ff 00 50 	stw     r7,80(r31)                             
  the_watchdog->routine   = routine;                                  
ffc0cc10:	90 ff 00 64 	stw     r7,100(r31)                            
  the_watchdog->id        = id;                                       
ffc0cc14:	90 ff 00 68 	stw     r7,104(r31)                            
  the_watchdog->user_data = user_data;                                
ffc0cc18:	90 ff 00 6c 	stw     r7,108(r31)                            
ffc0cc1c:	40 9e 01 54 	bne-    cr7,ffc0cd70 <_Thread_Initialize+0x1fc>
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
      goto failed;                                                    
  }                                                                   
  the_thread->extensions = (void **) extensions_area;                 
ffc0cc20:	91 5f 01 54 	stw     r10,340(r31)                           
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
                                                                      
  extensions_area = NULL;                                             
ffc0cc24:	3b 20 00 00 	li      r25,0                                  
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
  the_thread->Start.budget_callout   = budget_callout;                
                                                                      
  switch ( budget_algorithm ) {                                       
ffc0cc28:	2f 9c 00 02 	cmpwi   cr7,r28,2                              
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
  the_thread->Start.budget_algorithm = budget_algorithm;              
  the_thread->Start.budget_callout   = budget_callout;                
ffc0cc2c:	81 21 00 50 	lwz     r9,80(r1)                              
                                                                      
  /*                                                                  
   *  General initialization                                          
   */                                                                 
                                                                      
  the_thread->Start.is_preemptible   = is_preemptible;                
ffc0cc30:	9a ff 00 9c 	stb     r23,156(r31)                           
  the_thread->Start.budget_algorithm = budget_algorithm;              
ffc0cc34:	93 9f 00 a0 	stw     r28,160(r31)                           
  the_thread->Start.budget_callout   = budget_callout;                
ffc0cc38:	91 3f 00 a4 	stw     r9,164(r31)                            
                                                                      
  switch ( budget_algorithm ) {                                       
ffc0cc3c:	40 be 00 10 	bne+    cr7,ffc0cc4c <_Thread_Initialize+0xd8> 
    case THREAD_CPU_BUDGET_ALGORITHM_NONE:                            
    case THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE:                 
      break;                                                          
    #if defined(RTEMS_SCORE_THREAD_ENABLE_EXHAUST_TIMESLICE)          
      case THREAD_CPU_BUDGET_ALGORITHM_EXHAUST_TIMESLICE:             
        the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;    
ffc0cc40:	3d 20 00 00 	lis     r9,0                                   
ffc0cc44:	81 29 28 64 	lwz     r9,10340(r9)                           
ffc0cc48:	91 3f 00 74 	stw     r9,116(r31)                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
  the_thread->Wait.queue              = NULL;                         
ffc0cc4c:	39 20 00 00 	li      r9,0                                   
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	break;                                                               
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
ffc0cc50:	81 41 00 54 	lwz     r10,84(r1)                             
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
  the_thread->Wait.queue              = NULL;                         
ffc0cc54:	91 3f 00 44 	stw     r9,68(r31)                             
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
ffc0cc58:	3b 80 00 01 	li      r28,1                                  
 */                                                                   
RTEMS_INLINE_ROUTINE void* _Scheduler_Allocate(                       
  Thread_Control    *the_thread                                       
)                                                                     
{                                                                     
  return _Scheduler.Operations.allocate( the_thread );                
ffc0cc5c:	7f e3 fb 78 	mr      r3,r31                                 
  the_thread->Wait.queue              = NULL;                         
  the_thread->resource_count          = 0;                            
ffc0cc60:	91 3f 00 1c 	stw     r9,28(r31)                             
ffc0cc64:	3d 20 00 00 	lis     r9,0                                   
ffc0cc68:	81 29 20 98 	lwz     r9,8344(r9)                            
      case THREAD_CPU_BUDGET_ALGORITHM_CALLOUT:                       
	break;                                                               
    #endif                                                            
  }                                                                   
                                                                      
  the_thread->Start.isr_level         = isr_level;                    
ffc0cc6c:	91 5f 00 a8 	stw     r10,168(r31)                           
ffc0cc70:	7d 29 03 a6 	mtctr   r9                                     
                                                                      
  the_thread->current_state           = STATES_DORMANT;               
ffc0cc74:	93 9f 00 10 	stw     r28,16(r31)                            
  the_thread->Wait.queue              = NULL;                         
  the_thread->resource_count          = 0;                            
  the_thread->real_priority           = priority;                     
ffc0cc78:	93 bf 00 18 	stw     r29,24(r31)                            
  the_thread->Start.initial_priority  = priority;                     
ffc0cc7c:	93 bf 00 ac 	stw     r29,172(r31)                           
ffc0cc80:	4e 80 04 21 	bctrl                                          
  sched =_Scheduler_Allocate( the_thread );                           
  if ( !sched )                                                       
ffc0cc84:	7c 78 1b 79 	mr.     r24,r3                                 
ffc0cc88:	41 82 00 5c 	beq-    ffc0cce4 <_Thread_Initialize+0x170>    
    goto failed;                                                      
  _Thread_Set_priority( the_thread, priority );                       
ffc0cc8c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0cc90:	7f a4 eb 78 	mr      r4,r29                                 
ffc0cc94:	48 00 09 01 	bl      ffc0d594 <_Thread_Set_priority>        
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
ffc0cc98:	a1 3f 00 0a 	lhz     r9,10(r31)                             
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc0cc9c:	81 1a 00 1c 	lwz     r8,28(r26)                             
                                                                      
static inline void _Timestamp64_implementation_Set_to_zero(           
  Timestamp64_Control *_time                                          
)                                                                     
{                                                                     
  *_time = 0;                                                         
ffc0cca0:	39 40 00 00 	li      r10,0                                  
ffc0cca4:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc0cca8:	91 5f 00 80 	stw     r10,128(r31)                           
ffc0ccac:	39 60 00 00 	li      r11,0                                  
ffc0ccb0:	91 7f 00 84 	stw     r11,132(r31)                           
                                                                      
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 );
ffc0ccb4:	3c 80 ff c1 	lis     r4,-63                                 
ffc0ccb8:	38 61 00 08 	addi    r3,r1,8                                
ffc0ccbc:	7f e8 49 2e 	stwx    r31,r8,r9                              
ffc0ccc0:	38 84 d8 14 	addi    r4,r4,-10220                           
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
ffc0ccc4:	93 7f 00 0c 	stw     r27,12(r31)                            
 * @{                                                                 
 */                                                                   
                                                                      
static inline bool _User_extensions_Thread_create( Thread_Control *created )
{                                                                     
  User_extensions_Thread_create_context ctx = { created, true };      
ffc0ccc8:	93 e1 00 08 	stw     r31,8(r1)                              
ffc0cccc:	9b 81 00 0c 	stb     r28,12(r1)                             
                                                                      
  _User_extensions_Iterate( &ctx, _User_extensions_Thread_create_visitor );
ffc0ccd0:	48 00 0c 3d 	bl      ffc0d90c <_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;                                                      
ffc0ccd4:	38 60 00 01 	li      r3,1                                   
                                                                      
  return ctx.ok;                                                      
ffc0ccd8:	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 )                                             
ffc0ccdc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0cce0:	40 9e 00 40 	bne-    cr7,ffc0cd20 <_Thread_Initialize+0x1ac>
    return true;                                                      
                                                                      
failed:                                                               
  _Workspace_Free( the_thread->libc_reent );                          
ffc0cce4:	80 7f 01 48 	lwz     r3,328(r31)                            
ffc0cce8:	48 00 12 9d 	bl      ffc0df84 <_Workspace_Free>             
                                                                      
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    _Workspace_Free( the_thread->API_Extensions[i] );                 
ffc0ccec:	80 7f 01 4c 	lwz     r3,332(r31)                            
ffc0ccf0:	48 00 12 95 	bl      ffc0df84 <_Workspace_Free>             
ffc0ccf4:	80 7f 01 50 	lwz     r3,336(r31)                            
ffc0ccf8:	48 00 12 8d 	bl      ffc0df84 <_Workspace_Free>             
                                                                      
  _Workspace_Free( extensions_area );                                 
ffc0ccfc:	7f 23 cb 78 	mr      r3,r25                                 
ffc0cd00:	48 00 12 85 	bl      ffc0df84 <_Workspace_Free>             
                                                                      
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    _Workspace_Free( fp_area );                                       
ffc0cd04:	7f c3 f3 78 	mr      r3,r30                                 
ffc0cd08:	48 00 12 7d 	bl      ffc0df84 <_Workspace_Free>             
  #endif                                                              
                                                                      
   _Workspace_Free( sched );                                          
ffc0cd0c:	7f 03 c3 78 	mr      r3,r24                                 
ffc0cd10:	48 00 12 75 	bl      ffc0df84 <_Workspace_Free>             
                                                                      
   _Thread_Stack_Free( the_thread );                                  
ffc0cd14:	7f e3 fb 78 	mr      r3,r31                                 
ffc0cd18:	48 00 09 f5 	bl      ffc0d70c <_Thread_Stack_Free>          
  return false;                                                       
ffc0cd1c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc0cd20:	80 01 00 4c 	lwz     r0,76(r1)                              
ffc0cd24:	82 e1 00 24 	lwz     r23,36(r1)                             
ffc0cd28:	7c 08 03 a6 	mtlr    r0                                     
ffc0cd2c:	83 01 00 28 	lwz     r24,40(r1)                             
ffc0cd30:	83 21 00 2c 	lwz     r25,44(r1)                             
ffc0cd34:	83 41 00 30 	lwz     r26,48(r1)                             
ffc0cd38:	83 61 00 34 	lwz     r27,52(r1)                             
ffc0cd3c:	83 81 00 38 	lwz     r28,56(r1)                             
ffc0cd40:	83 a1 00 3c 	lwz     r29,60(r1)                             
ffc0cd44:	83 c1 00 40 	lwz     r30,64(r1)                             
ffc0cd48:	83 e1 00 44 	lwz     r31,68(r1)                             
ffc0cd4c:	38 21 00 48 	addi    r1,r1,72                               
ffc0cd50:	4e 80 00 20 	blr                                            
  /*                                                                  
   *  Allocate the floating point area for this thread                
   */                                                                 
  #if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )      
    if ( is_fp ) {                                                    
      fp_area = _Workspace_Allocate( CONTEXT_FP_SIZE );               
ffc0cd54:	38 60 01 08 	li      r3,264                                 
ffc0cd58:	48 00 12 15 	bl      ffc0df6c <_Workspace_Allocate>         
      if ( !fp_area )                                                 
ffc0cd5c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0cd60:	40 82 fe 94 	bne+    ffc0cbf4 <_Thread_Initialize+0x80>     
   *  Zero out all the allocated memory fields                        
   */                                                                 
  for ( i=0 ; i <= THREAD_API_LAST ; i++ )                            
    the_thread->API_Extensions[i] = NULL;                             
                                                                      
  extensions_area = NULL;                                             
ffc0cd64:	3b 20 00 00 	li      r25,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;                                  
ffc0cd68:	3b 00 00 00 	li      r24,0                                  
ffc0cd6c:	4b ff ff 78 	b       ffc0cce4 <_Thread_Initialize+0x170>    
                                                                      
  /*                                                                  
   *  Allocate the extensions area for this thread                    
   */                                                                 
  if ( _Thread_Maximum_extensions ) {                                 
    extensions_area = _Workspace_Allocate(                            
ffc0cd70:	38 6a 00 01 	addi    r3,r10,1                               
ffc0cd74:	54 63 10 3a 	rlwinm  r3,r3,2,0,29                           
ffc0cd78:	48 00 11 f5 	bl      ffc0df6c <_Workspace_Allocate>         
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
ffc0cd7c:	7c 79 1b 79 	mr.     r25,r3                                 
ffc0cd80:	41 82 00 84 	beq-    ffc0ce04 <_Thread_Initialize+0x290>    
      goto failed;                                                    
  }                                                                   
  the_thread->extensions = (void **) extensions_area;                 
ffc0cd84:	93 3f 01 54 	stw     r25,340(r31)                           
ffc0cd88:	7f 25 cb 78 	mr      r5,r25                                 
   * 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++ )              
ffc0cd8c:	38 c0 00 00 	li      r6,0                                   
ffc0cd90:	80 18 28 74 	lwz     r0,10356(r24)                          
      (_Thread_Maximum_extensions + 1) * sizeof( void * )             
    );                                                                
    if ( !extensions_area )                                           
      goto failed;                                                    
  }                                                                   
  the_thread->extensions = (void **) extensions_area;                 
ffc0cd94:	38 e0 00 00 	li      r7,0                                   
   * so they cannot rely on the thread create user extension          
   * call.                                                            
   */                                                                 
  if ( the_thread->extensions ) {                                     
    for ( i = 0; i <= _Thread_Maximum_extensions ; i++ )              
      the_thread->extensions[i] = NULL;                               
ffc0cd98:	39 60 00 00 	li      r11,0                                  
ffc0cd9c:	48 00 00 08 	b       ffc0cda4 <_Thread_Initialize+0x230>    
ffc0cda0:	80 bf 01 54 	lwz     r5,340(r31)                            
   * 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++ )              
ffc0cda4:	38 e7 00 01 	addi    r7,r7,1                                
ffc0cda8:	7f 87 00 40 	cmplw   cr7,r7,r0                              
      the_thread->extensions[i] = NULL;                               
ffc0cdac:	54 c6 10 3a 	rlwinm  r6,r6,2,0,29                           
ffc0cdb0:	7d 65 31 2e 	stwx    r11,r5,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++ )              
ffc0cdb4:	7c e6 3b 78 	mr      r6,r7                                  
ffc0cdb8:	40 9d ff e8 	ble+    cr7,ffc0cda0 <_Thread_Initialize+0x22c>
ffc0cdbc:	4b ff fe 6c 	b       ffc0cc28 <_Thread_Initialize+0xb4>     
      return false;                     /* stack allocation failed */ 
                                                                      
    stack = the_thread->Start.stack;                                  
  #else                                                               
    if ( !stack_area ) {                                              
      actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
ffc0cdc0:	7c 83 23 78 	mr      r3,r4                                  
ffc0cdc4:	90 c1 00 18 	stw     r6,24(r1)                              
ffc0cdc8:	7c c4 33 78 	mr      r4,r6                                  
ffc0cdcc:	90 e1 00 1c 	stw     r7,28(r1)                              
ffc0cdd0:	48 00 08 ad 	bl      ffc0d67c <_Thread_Stack_Allocate>      
      if ( !actual_stack_size || actual_stack_size < stack_size )     
ffc0cdd4:	7c 6a 1b 79 	mr.     r10,r3                                 
ffc0cdd8:	80 c1 00 18 	lwz     r6,24(r1)                              
        return false;                     /* stack allocation failed */
ffc0cddc:	38 60 00 00 	li      r3,0                                   
                                                                      
    stack = the_thread->Start.stack;                                  
  #else                                                               
    if ( !stack_area ) {                                              
      actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
      if ( !actual_stack_size || actual_stack_size < stack_size )     
ffc0cde0:	80 e1 00 1c 	lwz     r7,28(r1)                              
ffc0cde4:	41 a2 ff 3c 	beq-    ffc0cd20 <_Thread_Initialize+0x1ac>    
ffc0cde8:	7f 86 50 40 	cmplw   cr7,r6,r10                             
        return false;                     /* stack allocation failed */
ffc0cdec:	7f c3 f3 78 	mr      r3,r30                                 
                                                                      
    stack = the_thread->Start.stack;                                  
  #else                                                               
    if ( !stack_area ) {                                              
      actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
      if ( !actual_stack_size || actual_stack_size < stack_size )     
ffc0cdf0:	41 bd ff 30 	bgt-    cr7,ffc0cd20 <_Thread_Initialize+0x1ac><== NEVER TAKEN
        return false;                     /* stack allocation failed */
                                                                      
      stack = the_thread->Start.stack;                                
      the_thread->Start.core_allocated_stack = true;                  
ffc0cdf4:	39 20 00 01 	li      r9,1                                   
    if ( !stack_area ) {                                              
      actual_stack_size = _Thread_Stack_Allocate( the_thread, stack_size );
      if ( !actual_stack_size || actual_stack_size < stack_size )     
        return false;                     /* stack allocation failed */
                                                                      
      stack = the_thread->Start.stack;                                
ffc0cdf8:	83 df 00 c0 	lwz     r30,192(r31)                           
      the_thread->Start.core_allocated_stack = true;                  
ffc0cdfc:	99 3f 00 b0 	stb     r9,176(r31)                            
ffc0ce00:	4b ff fd e0 	b       ffc0cbe0 <_Thread_Initialize+0x6c>     
  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;                                  
ffc0ce04:	3b 00 00 00 	li      r24,0                                  
ffc0ce08:	4b ff fe dc 	b       ffc0cce4 <_Thread_Initialize+0x170>    
                                                                      

ffc0df58 <_Thread_Restart>: bool _Thread_Restart( Thread_Control *the_thread, void *pointer_argument, Thread_Entry_numeric_type numeric_argument ) {
ffc0df58:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0df5c:	7c 08 02 a6 	mflr    r0                                     
ffc0df60:	90 01 00 1c 	stw     r0,28(r1)                              
 */                                                                   
RTEMS_INLINE_ROUTINE bool _States_Is_dormant (                        
  States_Control the_states                                           
)                                                                     
{                                                                     
   return (the_states & STATES_DORMANT);                              
ffc0df64:	81 23 00 10 	lwz     r9,16(r3)                              
ffc0df68:	93 e1 00 14 	stw     r31,20(r1)                             
ffc0df6c:	7c 7f 1b 78 	mr      r31,r3                                 
  if ( !_States_Is_dormant( the_thread->current_state ) ) {           
ffc0df70:	71 2a 00 01 	andi.   r10,r9,1                               
bool _Thread_Restart(                                                 
  Thread_Control            *the_thread,                              
  void                      *pointer_argument,                        
  Thread_Entry_numeric_type  numeric_argument                         
)                                                                     
{                                                                     
ffc0df74:	93 c1 00 10 	stw     r30,16(r1)                             
  if ( !_States_Is_dormant( the_thread->current_state ) ) {           
ffc0df78:	41 82 00 20 	beq-    ffc0df98 <_Thread_Restart+0x40>        
      _Thread_Restart_self();                                         
                                                                      
    return true;                                                      
  }                                                                   
                                                                      
  return false;                                                       
ffc0df7c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc0df80:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0df84:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0df88:	7c 08 03 a6 	mtlr    r0                                     
ffc0df8c:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0df90:	38 21 00 18 	addi    r1,r1,24                               
ffc0df94:	4e 80 00 20 	blr                                            
  Thread_Entry_numeric_type  numeric_argument                         
)                                                                     
{                                                                     
  if ( !_States_Is_dormant( the_thread->current_state ) ) {           
                                                                      
    _Thread_Set_transient( the_thread );                              
ffc0df98:	90 81 00 08 	stw     r4,8(r1)                               
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
ffc0df9c:	3f c0 00 00 	lis     r30,0                                  
ffc0dfa0:	3b de 31 e0 	addi    r30,r30,12768                          
ffc0dfa4:	90 a1 00 0c 	stw     r5,12(r1)                              
ffc0dfa8:	48 00 00 f1 	bl      ffc0e098 <_Thread_Set_transient>       
                                                                      
    _Thread_Reset( the_thread, pointer_argument, numeric_argument );  
ffc0dfac:	7f e3 fb 78 	mr      r3,r31                                 
ffc0dfb0:	80 81 00 08 	lwz     r4,8(r1)                               
ffc0dfb4:	80 a1 00 0c 	lwz     r5,12(r1)                              
ffc0dfb8:	48 00 39 ad 	bl      ffc11964 <_Thread_Reset>               
                                                                      
    _Thread_Load_environment( the_thread );                           
ffc0dfbc:	7f e3 fb 78 	mr      r3,r31                                 
ffc0dfc0:	48 00 36 61 	bl      ffc11620 <_Thread_Load_environment>    
                                                                      
    _Thread_Ready( the_thread );                                      
ffc0dfc4:	7f e3 fb 78 	mr      r3,r31                                 
ffc0dfc8:	48 00 39 4d 	bl      ffc11914 <_Thread_Ready>               
  );                                                                  
}                                                                     
                                                                      
static inline void _User_extensions_Thread_restart( Thread_Control *restarted )
{                                                                     
  _User_extensions_Iterate(                                           
ffc0dfcc:	3c 80 ff c1 	lis     r4,-63                                 
ffc0dfd0:	7f e3 fb 78 	mr      r3,r31                                 
ffc0dfd4:	38 84 e3 24 	addi    r4,r4,-7388                            
ffc0dfd8:	48 00 03 ad 	bl      ffc0e384 <_User_extensions_Iterate>    
                                                                      
    _User_extensions_Thread_restart( the_thread );                    
                                                                      
    if ( _Thread_Is_executing ( the_thread ) )                        
ffc0dfdc:	81 3e 00 10 	lwz     r9,16(r30)                             
      _Thread_Restart_self();                                         
                                                                      
    return true;                                                      
ffc0dfe0:	38 60 00 01 	li      r3,1                                   
                                                                      
    _Thread_Ready( the_thread );                                      
                                                                      
    _User_extensions_Thread_restart( the_thread );                    
                                                                      
    if ( _Thread_Is_executing ( the_thread ) )                        
ffc0dfe4:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
ffc0dfe8:	40 9e ff 98 	bne+    cr7,ffc0df80 <_Thread_Restart+0x28>    
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE void _Thread_Restart_self( void )                
{                                                                     
#if ( CPU_HARDWARE_FP == TRUE ) || ( CPU_SOFTWARE_FP == TRUE )        
  if ( _Thread_Executing->fp_context != NULL )                        
ffc0dfec:	81 3f 01 44 	lwz     r9,324(r31)                            
ffc0dff0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0dff4:	41 9e 00 0c 	beq-    cr7,ffc0e000 <_Thread_Restart+0xa8>    <== NEVER TAKEN
    _Context_Restore_fp( &_Thread_Executing->fp_context );            
ffc0dff8:	38 7f 01 44 	addi    r3,r31,324                             
ffc0dffc:	48 01 04 85 	bl      ffc1e480 <_CPU_Context_restore_fp>     
#endif                                                                
                                                                      
  _CPU_Context_Restart_self( &_Thread_Executing->Registers );         
ffc0e000:	80 7e 00 10 	lwz     r3,16(r30)                             
ffc0e004:	38 63 00 c4 	addi    r3,r3,196                              
ffc0e008:	48 01 06 0d 	bl      ffc1e614 <_CPU_Context_restore>        
                                                                      

ffc0d49c <_Thread_queue_Requeue>: void _Thread_queue_Requeue( Thread_queue_Control *the_thread_queue, Thread_Control *the_thread ) {
ffc0d49c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0d4a0:	7c 08 02 a6 	mflr    r0                                     
ffc0d4a4:	93 e1 00 24 	stw     r31,36(r1)                             
  /*                                                                  
   * Just in case the thread really wasn't blocked on a thread queue  
   * when we get here.                                                
   */                                                                 
  if ( !the_thread_queue )                                            
ffc0d4a8:	7c 7f 1b 79 	mr.     r31,r3                                 
                                                                      
void _Thread_queue_Requeue(                                           
  Thread_queue_Control *the_thread_queue,                             
  Thread_Control       *the_thread                                    
)                                                                     
{                                                                     
ffc0d4ac:	90 01 00 2c 	stw     r0,44(r1)                              
ffc0d4b0:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc0d4b4:	93 c1 00 20 	stw     r30,32(r1)                             
  /*                                                                  
   * Just in case the thread really wasn't blocked on a thread queue  
   * when we get here.                                                
   */                                                                 
  if ( !the_thread_queue )                                            
ffc0d4b8:	41 82 00 10 	beq-    ffc0d4c8 <_Thread_queue_Requeue+0x2c>  <== 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 ) {
ffc0d4bc:	81 3f 00 34 	lwz     r9,52(r31)                             
ffc0d4c0:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc0d4c4:	41 9e 00 20 	beq-    cr7,ffc0d4e4 <_Thread_queue_Requeue+0x48><== ALWAYS TAKEN
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
    }                                                                 
    _ISR_Enable( level );                                             
  }                                                                   
}                                                                     
ffc0d4c8:	80 01 00 2c 	lwz     r0,44(r1)                              <== NOT EXECUTED
ffc0d4cc:	83 a1 00 1c 	lwz     r29,28(r1)                             <== NOT EXECUTED
ffc0d4d0:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0d4d4:	83 c1 00 20 	lwz     r30,32(r1)                             <== NOT EXECUTED
ffc0d4d8:	83 e1 00 24 	lwz     r31,36(r1)                             <== NOT EXECUTED
ffc0d4dc:	38 21 00 28 	addi    r1,r1,40                               <== NOT EXECUTED
ffc0d4e0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
ffc0d4e4:	7c 9e 23 78 	mr      r30,r4                                 
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0d4e8:	7f a0 00 a6 	mfmsr   r29                                    
ffc0d4ec:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc0d4f0:	7f aa 50 78 	andc    r10,r29,r10                            
ffc0d4f4:	7d 40 01 24 	mtmsr   r10                                    
ffc0d4f8:	3d 00 00 03 	lis     r8,3                                   
ffc0d4fc:	81 44 00 10 	lwz     r10,16(r4)                             
ffc0d500:	61 08 be e0 	ori     r8,r8,48864                            
    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 ) ) {
ffc0d504:	7d 07 50 39 	and.    r7,r8,r10                              
ffc0d508:	40 82 00 24 	bne-    ffc0d52c <_Thread_queue_Requeue+0x90>  <== ALWAYS TAKEN
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0d50c:	7f a0 01 24 	mtmsr   r29                                    <== NOT EXECUTED
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
    }                                                                 
    _ISR_Enable( level );                                             
  }                                                                   
}                                                                     
ffc0d510:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc0d514:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0d518:	7c 08 03 a6 	mtlr    r0                                     
ffc0d51c:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0d520:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0d524:	38 21 00 28 	addi    r1,r1,40                               
ffc0d528:	4e 80 00 20 	blr                                            
                                                                      
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;
ffc0d52c:	91 3f 00 30 	stw     r9,48(r31)                             
    ISR_Level             level_ignored;                              
                                                                      
    _ISR_Disable( level );                                            
    if ( _States_Is_waiting_on_thread_queue( the_thread->current_state ) ) {
      _Thread_queue_Enter_critical_section( tq );                     
      _Thread_queue_Extract_priority_helper( tq, the_thread, true );  
ffc0d530:	38 a0 00 01 	li      r5,1                                   
ffc0d534:	48 00 38 21 	bl      ffc10d54 <_Thread_queue_Extract_priority_helper>
      (void) _Thread_queue_Enqueue_priority( tq, the_thread, &level_ignored );
ffc0d538:	7f e3 fb 78 	mr      r3,r31                                 
ffc0d53c:	7f c4 f3 78 	mr      r4,r30                                 
ffc0d540:	38 a1 00 08 	addi    r5,r1,8                                
ffc0d544:	4b ff fc 69 	bl      ffc0d1ac <_Thread_queue_Enqueue_priority>
ffc0d548:	7f a0 01 24 	mtmsr   r29                                    
ffc0d54c:	4b ff ff c4 	b       ffc0d510 <_Thread_queue_Requeue+0x74>  
                                                                      

ffc0d550 <_Thread_queue_Timeout>: void _Thread_queue_Timeout( Objects_Id id, void *ignored __attribute__((unused)) ) {
ffc0d550:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0d554:	7c 08 02 a6 	mflr    r0                                     
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc0d558:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
void _Thread_queue_Timeout(                                           
  Objects_Id  id,                                                     
  void       *ignored __attribute__((unused))                         
)                                                                     
{                                                                     
ffc0d55c:	90 01 00 1c 	stw     r0,28(r1)                              
  Thread_Control       *the_thread;                                   
  Objects_Locations     location;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc0d560:	4b ff f5 7d 	bl      ffc0cadc <_Thread_Get>                 
  switch ( location ) {                                               
ffc0d564:	81 21 00 08 	lwz     r9,8(r1)                               
ffc0d568:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0d56c:	40 9e 00 18 	bne-    cr7,ffc0d584 <_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 );                    
ffc0d570:	48 00 38 e1 	bl      ffc10e50 <_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;                  
ffc0d574:	3d 20 00 00 	lis     r9,0                                   
ffc0d578:	81 49 28 68 	lwz     r10,10344(r9)                          
                                                                      
    --level;                                                          
ffc0d57c:	39 4a ff ff 	addi    r10,r10,-1                             
    _Thread_Dispatch_disable_level = level;                           
ffc0d580:	91 49 28 68 	stw     r10,10344(r9)                          
      _Thread_Unnest_dispatch();                                      
      break;                                                          
  }                                                                   
}                                                                     
ffc0d584:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0d588:	38 21 00 18 	addi    r1,r1,24                               
ffc0d58c:	7c 08 03 a6 	mtlr    r0                                     
ffc0d590:	4e 80 00 20 	blr                                            
                                                                      

ffc1d878 <_Timer_server_Body>: * @a arg points to the corresponding timer server control block. */ static rtems_task _Timer_server_Body( rtems_task_argument arg ) {
ffc1d878:	94 21 ff 98 	stwu    r1,-104(r1)                            
ffc1d87c:	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;                                              
ffc1d880:	39 20 00 00 	li      r9,0                                   
ffc1d884:	92 c1 00 40 	stw     r22,64(r1)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc1d888:	3a c1 00 14 	addi    r22,r1,20                              
ffc1d88c:	93 01 00 48 	stw     r24,72(r1)                             
ffc1d890:	3b 01 00 0c 	addi    r24,r1,12                              
ffc1d894:	93 61 00 54 	stw     r27,84(r1)                             
ffc1d898:	3b 61 00 18 	addi    r27,r1,24                              
ffc1d89c:	93 a1 00 5c 	stw     r29,92(r1)                             
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc1d8a0:	3b a1 00 08 	addi    r29,r1,8                               
ffc1d8a4:	92 a1 00 3c 	stw     r21,60(r1)                             
ffc1d8a8:	3e a0 00 00 	lis     r21,0                                  
ffc1d8ac:	3a b5 29 3c 	addi    r21,r21,10556                          
ffc1d8b0:	93 21 00 4c 	stw     r25,76(r1)                             
ffc1d8b4:	3f 20 00 00 	lis     r25,0                                  
ffc1d8b8:	3b 39 29 5c 	addi    r25,r25,10588                          
ffc1d8bc:	93 41 00 50 	stw     r26,80(r1)                             
ffc1d8c0:	3f 40 00 00 	lis     r26,0                                  
ffc1d8c4:	3b 5a 70 80 	addi    r26,r26,28800                          
ffc1d8c8:	90 01 00 6c 	stw     r0,108(r1)                             
ffc1d8cc:	92 01 00 28 	stw     r16,40(r1)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc1d8d0:	93 61 00 14 	stw     r27,20(r1)                             
  head->previous = NULL;                                              
ffc1d8d4:	91 21 00 18 	stw     r9,24(r1)                              
  tail->previous = head;                                              
ffc1d8d8:	92 c1 00 1c 	stw     r22,28(r1)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc1d8dc:	93 01 00 08 	stw     r24,8(r1)                              
  head->previous = NULL;                                              
ffc1d8e0:	91 21 00 0c 	stw     r9,12(r1)                              
  tail->previous = head;                                              
ffc1d8e4:	93 a1 00 10 	stw     r29,16(r1)                             
ffc1d8e8:	92 21 00 2c 	stw     r17,44(r1)                             
ffc1d8ec:	3a 23 00 08 	addi    r17,r3,8                               
ffc1d8f0:	92 41 00 30 	stw     r18,48(r1)                             
ffc1d8f4:	3a 43 00 40 	addi    r18,r3,64                              
ffc1d8f8:	92 61 00 34 	stw     r19,52(r1)                             
         *  the active flag of the timer server is true.              
         */                                                           
        (*watchdog->routine)( watchdog->id, watchdog->user_data );    
      }                                                               
    } else {                                                          
      ts->active = false;                                             
ffc1d8fc:	3a 60 00 00 	li      r19,0                                  
 *  @a arg points to the corresponding timer server control block.    
 */                                                                   
static rtems_task _Timer_server_Body(                                 
  rtems_task_argument arg                                             
)                                                                     
{                                                                     
ffc1d900:	92 81 00 38 	stw     r20,56(r1)                             
        _Thread_Set_state( ts->thread, STATES_DELAYING );             
        _Timer_server_Reset_interval_system_watchdog( ts );           
        _Timer_server_Reset_tod_system_watchdog( ts );                
      _Thread_Enable_dispatch();                                      
                                                                      
      ts->active = true;                                              
ffc1d904:	3a 80 00 01 	li      r20,1                                  
 *  @a arg points to the corresponding timer server control block.    
 */                                                                   
static rtems_task _Timer_server_Body(                                 
  rtems_task_argument arg                                             
)                                                                     
{                                                                     
ffc1d908:	92 e1 00 44 	stw     r23,68(r1)                             
         *  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;                        
ffc1d90c:	3a e0 00 00 	li      r23,0                                  
 *  @a arg points to the corresponding timer server control block.    
 */                                                                   
static rtems_task _Timer_server_Body(                                 
  rtems_task_argument arg                                             
)                                                                     
{                                                                     
ffc1d910:	93 81 00 58 	stw     r28,88(r1)                             
ffc1d914:	3b 83 00 30 	addi    r28,r3,48                              
ffc1d918:	93 c1 00 60 	stw     r30,96(r1)                             
ffc1d91c:	3b c3 00 68 	addi    r30,r3,104                             
ffc1d920:	93 e1 00 64 	stw     r31,100(r1)                            
ffc1d924:	7c 7f 1b 78 	mr      r31,r3                                 
{                                                                     
  /*                                                                  
   *  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;                                    
ffc1d928:	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;            
ffc1d92c:	81 39 00 00 	lwz     r9,0(r25)                              
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
ffc1d930:	7f 83 e3 78 	mr      r3,r28                                 
  Watchdog_Interval snapshot = _Watchdog_Ticks_since_boot;            
                                                                      
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
ffc1d934:	80 9f 00 3c 	lwz     r4,60(r31)                             
                                                                      
  watchdogs->last_snapshot = snapshot;                                
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
ffc1d938:	7f a5 eb 78 	mr      r5,r29                                 
  /*                                                                  
   *  We assume adequate unsigned arithmetic here.                    
   */                                                                 
  Watchdog_Interval delta = snapshot - watchdogs->last_snapshot;      
                                                                      
  watchdogs->last_snapshot = snapshot;                                
ffc1d93c:	91 3f 00 3c 	stw     r9,60(r31)                             
                                                                      
  _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );  
ffc1d940:	7c 84 48 50 	subf    r4,r4,r9                               
ffc1d944:	48 00 52 b9 	bl      ffc22bfc <_Watchdog_Adjust_to_chain>   
ffc1d948:	80 7a 00 00 	lwz     r3,0(r26)                              
ffc1d94c:	80 9a 00 04 	lwz     r4,4(r26)                              
ffc1d950:	3c c0 3b 9a 	lis     r6,15258                               
ffc1d954:	38 a0 00 00 	li      r5,0                                   
ffc1d958:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc1d95c:	48 01 60 69 	bl      ffc339c4 <__divdi3>                    
  Timer_server_Watchdogs *watchdogs,                                  
  Chain_Control *fire_chain                                           
)                                                                     
{                                                                     
  Watchdog_Interval snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();
  Watchdog_Interval last_snapshot = watchdogs->last_snapshot;         
ffc1d960:	80 bf 00 74 	lwz     r5,116(r31)                            
ffc1d964:	7c 90 23 78 	mr      r16,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 ) {                                   
ffc1d968:	7f 84 28 40 	cmplw   cr7,r4,r5                              
ffc1d96c:	41 9d 00 94 	bgt-    cr7,ffc1da00 <_Timer_server_Body+0x188>
     *  TOD has been set forward.                                     
     */                                                               
    delta = snapshot - last_snapshot;                                 
    _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
                                                                      
  } else if ( snapshot < last_snapshot ) {                            
ffc1d970:	41 9c 00 6c 	blt-    cr7,ffc1d9dc <_Timer_server_Body+0x164>
      */                                                              
     delta = last_snapshot - snapshot;                                
     _Watchdog_Adjust( &watchdogs->Chain, WATCHDOG_BACKWARD, delta ); 
  }                                                                   
                                                                      
  watchdogs->last_snapshot = snapshot;                                
ffc1d974:	92 1f 00 74 	stw     r16,116(r31)                           
}                                                                     
                                                                      
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{                                                                     
  while ( true ) {                                                    
    Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
ffc1d978:	80 7f 00 78 	lwz     r3,120(r31)                            
ffc1d97c:	48 00 0b 31 	bl      ffc1e4ac <_Chain_Get>                  
                                                                      
    if ( timer == NULL ) {                                            
ffc1d980:	7c 64 1b 79 	mr.     r4,r3                                  
ffc1d984:	41 82 00 34 	beq-    ffc1d9b8 <_Timer_server_Body+0x140>    
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
ffc1d988:	81 24 00 38 	lwz     r9,56(r4)                              
ffc1d98c:	2f 89 00 01 	cmpwi   cr7,r9,1                               
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
ffc1d990:	2f 09 00 03 	cmpwi   cr6,r9,3                               
static void _Timer_server_Insert_timer(                               
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
ffc1d994:	41 9e 00 5c 	beq-    cr7,ffc1d9f0 <_Timer_server_Body+0x178>
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
ffc1d998:	40 9a ff e0 	bne+    cr6,ffc1d978 <_Timer_server_Body+0x100><== NEVER TAKEN
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
ffc1d99c:	38 84 00 10 	addi    r4,r4,16                               
ffc1d9a0:	7f c3 f3 78 	mr      r3,r30                                 
ffc1d9a4:	48 00 52 fd 	bl      ffc22ca0 <_Watchdog_Insert>            
}                                                                     
                                                                      
static void _Timer_server_Process_insertions( Timer_server_Control *ts )
{                                                                     
  while ( true ) {                                                    
    Timer_Control *timer = (Timer_Control *) _Chain_Get( ts->insert_chain );
ffc1d9a8:	80 7f 00 78 	lwz     r3,120(r31)                            
ffc1d9ac:	48 00 0b 01 	bl      ffc1e4ac <_Chain_Get>                  
                                                                      
    if ( timer == NULL ) {                                            
ffc1d9b0:	7c 64 1b 79 	mr.     r4,r3                                  
ffc1d9b4:	40 82 ff d4 	bne+    ffc1d988 <_Timer_server_Body+0x110>    <== NEVER TAKEN
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc1d9b8:	7d 40 00 a6 	mfmsr   r10                                    
ffc1d9bc:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc1d9c0:	7d 49 48 78 	andc    r9,r10,r9                              
ffc1d9c4:	7d 20 01 24 	mtmsr   r9                                     
     *  body loop.                                                    
     */                                                               
    _Timer_server_Process_insertions( ts );                           
                                                                      
    _ISR_Disable( level );                                            
    if ( _Chain_Is_empty( insert_chain ) ) {                          
ffc1d9c8:	81 21 00 14 	lwz     r9,20(r1)                              
ffc1d9cc:	7f 89 d8 00 	cmpw    cr7,r9,r27                             
ffc1d9d0:	41 9e 00 44 	beq-    cr7,ffc1da14 <_Timer_server_Body+0x19c><== ALWAYS TAKEN
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc1d9d4:	7d 40 01 24 	mtmsr   r10                                    <== NOT EXECUTED
ffc1d9d8:	4b ff ff 54 	b       ffc1d92c <_Timer_server_Body+0xb4>     <== NOT EXECUTED
     /*                                                               
      *  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 ); 
ffc1d9dc:	7f c3 f3 78 	mr      r3,r30                                 
ffc1d9e0:	38 80 00 01 	li      r4,1                                   
ffc1d9e4:	7c b0 28 50 	subf    r5,r16,r5                              
ffc1d9e8:	48 00 51 01 	bl      ffc22ae8 <_Watchdog_Adjust>            
ffc1d9ec:	4b ff ff 88 	b       ffc1d974 <_Timer_server_Body+0xfc>     
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
ffc1d9f0:	7f 83 e3 78 	mr      r3,r28                                 
ffc1d9f4:	38 84 00 10 	addi    r4,r4,16                               
ffc1d9f8:	48 00 52 a9 	bl      ffc22ca0 <_Watchdog_Insert>            
ffc1d9fc:	4b ff ff 7c 	b       ffc1d978 <_Timer_server_Body+0x100>    
    /*                                                                
     *  This path is for normal forward movement and cases where the  
     *  TOD has been set forward.                                     
     */                                                               
    delta = snapshot - last_snapshot;                                 
    _Watchdog_Adjust_to_chain( &watchdogs->Chain, delta, fire_chain );
ffc1da00:	7c 85 20 50 	subf    r4,r5,r4                               
ffc1da04:	7f c3 f3 78 	mr      r3,r30                                 
ffc1da08:	7f a5 eb 78 	mr      r5,r29                                 
ffc1da0c:	48 00 51 f1 	bl      ffc22bfc <_Watchdog_Adjust_to_chain>   
ffc1da10:	4b ff ff 64 	b       ffc1d974 <_Timer_server_Body+0xfc>     
     */                                                               
    _Timer_server_Process_insertions( ts );                           
                                                                      
    _ISR_Disable( level );                                            
    if ( _Chain_Is_empty( insert_chain ) ) {                          
      ts->insert_chain = NULL;                                        
ffc1da14:	90 9f 00 78 	stw     r4,120(r31)                            
ffc1da18:	7d 40 01 24 	mtmsr   r10                                    
  _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 ) ) {                          
ffc1da1c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1da20:	7f 89 c0 00 	cmpw    cr7,r9,r24                             
ffc1da24:	40 be 00 30 	bne+    cr7,ffc1da54 <_Timer_server_Body+0x1dc>
ffc1da28:	48 00 00 50 	b       ffc1da78 <_Timer_server_Body+0x200>    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
ffc1da2c:	81 49 00 00 	lwz     r10,0(r9)                              
                                                                      
  head->next = new_first;                                             
  new_first->previous = head;                                         
ffc1da30:	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;                                             
ffc1da34:	91 41 00 08 	stw     r10,8(r1)                              
         *  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;                        
ffc1da38:	92 e9 00 08 	stw     r23,8(r9)                              
ffc1da3c:	7d 00 01 24 	mtmsr   r8                                     
        /*                                                            
         *  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 );    
ffc1da40:	81 49 00 1c 	lwz     r10,28(r9)                             
ffc1da44:	80 69 00 20 	lwz     r3,32(r9)                              
ffc1da48:	80 89 00 24 	lwz     r4,36(r9)                              
ffc1da4c:	7d 49 03 a6 	mtctr   r10                                    
ffc1da50:	4e 80 04 21 	bctrl                                          
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc1da54:	7d 00 00 a6 	mfmsr   r8                                     
ffc1da58:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc1da5c:	7d 09 48 78 	andc    r9,r8,r9                               
ffc1da60:	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;                    
ffc1da64:	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))                                   
ffc1da68:	7f 89 c0 00 	cmpw    cr7,r9,r24                             
ffc1da6c:	40 9e ff c0 	bne+    cr7,ffc1da2c <_Timer_server_Body+0x1b4>
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc1da70:	7d 00 01 24 	mtmsr   r8                                     
ffc1da74:	4b ff fe b4 	b       ffc1d928 <_Timer_server_Body+0xb0>     
      }                                                               
    } else {                                                          
      ts->active = false;                                             
ffc1da78:	9a 7f 00 7c 	stb     r19,124(r31)                           
   *                                                                  
   * 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;                  
ffc1da7c:	81 35 00 00 	lwz     r9,0(r21)                              
                                                                      
    ++level;                                                          
ffc1da80:	39 29 00 01 	addi    r9,r9,1                                
    _Thread_Dispatch_disable_level = level;                           
ffc1da84:	91 35 00 00 	stw     r9,0(r21)                              
                                                                      
      /*                                                              
       *  Block until there is something to do.                       
       */                                                             
      _Thread_Disable_dispatch();                                     
        _Thread_Set_state( ts->thread, STATES_DELAYING );             
ffc1da88:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc1da8c:	38 80 00 08 	li      r4,8                                   
ffc1da90:	48 00 4b 9d 	bl      ffc2262c <_Thread_Set_state>           
        _Timer_server_Reset_interval_system_watchdog( ts );           
ffc1da94:	7f e3 fb 78 	mr      r3,r31                                 
ffc1da98:	4b ff fb 21 	bl      ffc1d5b8 <_Timer_server_Reset_interval_system_watchdog>
        _Timer_server_Reset_tod_system_watchdog( ts );                
ffc1da9c:	7f e3 fb 78 	mr      r3,r31                                 
ffc1daa0:	4b ff fb a9 	bl      ffc1d648 <_Timer_server_Reset_tod_system_watchdog>
      _Thread_Enable_dispatch();                                      
ffc1daa4:	48 00 3f ed 	bl      ffc21a90 <_Thread_Enable_dispatch>     
                                                                      
      ts->active = true;                                              
ffc1daa8:	9a 9f 00 7c 	stb     r20,124(r31)                           
                                                                      
static void _Timer_server_Stop_interval_system_watchdog(              
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->Interval_watchdogs.System_watchdog );        
ffc1daac:	7e 23 8b 78 	mr      r3,r17                                 
ffc1dab0:	48 00 53 b9 	bl      ffc22e68 <_Watchdog_Remove>            
                                                                      
static void _Timer_server_Stop_tod_system_watchdog(                   
  Timer_server_Control *ts                                            
)                                                                     
{                                                                     
  _Watchdog_Remove( &ts->TOD_watchdogs.System_watchdog );             
ffc1dab4:	7e 43 93 78 	mr      r3,r18                                 
ffc1dab8:	48 00 53 b1 	bl      ffc22e68 <_Watchdog_Remove>            
ffc1dabc:	4b ff fe 6c 	b       ffc1d928 <_Timer_server_Body+0xb0>     
                                                                      

ffc1d6d8 <_Timer_server_Schedule_operation_method>: static void _Timer_server_Schedule_operation_method( Timer_server_Control *ts, Timer_Control *timer ) {
ffc1d6d8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc1d6dc:	7c 08 02 a6 	mflr    r0                                     
ffc1d6e0:	90 01 00 1c 	stw     r0,28(r1)                              
  if ( ts->insert_chain == NULL ) {                                   
ffc1d6e4:	81 23 00 78 	lwz     r9,120(r3)                             
                                                                      
static void _Timer_server_Schedule_operation_method(                  
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
ffc1d6e8:	93 e1 00 14 	stw     r31,20(r1)                             
ffc1d6ec:	7c 7f 1b 78 	mr      r31,r3                                 
  if ( ts->insert_chain == NULL ) {                                   
ffc1d6f0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
                                                                      
static void _Timer_server_Schedule_operation_method(                  
  Timer_server_Control *ts,                                           
  Timer_Control *timer                                                
)                                                                     
{                                                                     
ffc1d6f4:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc1d6f8:	93 c1 00 10 	stw     r30,16(r1)                             
  if ( ts->insert_chain == NULL ) {                                   
ffc1d6fc:	41 9e 00 24 	beq-    cr7,ffc1d720 <_Timer_server_Schedule_operation_method+0x48>
     *  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 );           
  }                                                                   
}                                                                     
ffc1d700:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc1d704:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc1d708:	7c 08 03 a6 	mtlr    r0                                     
ffc1d70c:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc1d710:	83 e1 00 14 	lwz     r31,20(r1)                             
     *  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 );           
ffc1d714:	80 63 00 78 	lwz     r3,120(r3)                             
  }                                                                   
}                                                                     
ffc1d718:	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 );           
ffc1d71c:	48 00 0d 60 	b       ffc1e47c <_Chain_Append>               
   *                                                                  
   * 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;                  
ffc1d720:	3d 20 00 00 	lis     r9,0                                   
ffc1d724:	81 49 29 3c 	lwz     r10,10556(r9)                          
ffc1d728:	7c 9e 23 78 	mr      r30,r4                                 
                                                                      
    ++level;                                                          
ffc1d72c:	39 4a 00 01 	addi    r10,r10,1                              
    _Thread_Dispatch_disable_level = level;                           
ffc1d730:	91 49 29 3c 	stw     r10,10556(r9)                          
   *  being inserted.  This could result in an integer overflow.      
   */                                                                 
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( timer->the_class == TIMER_INTERVAL_ON_TASK ) {                 
ffc1d734:	81 24 00 38 	lwz     r9,56(r4)                              
ffc1d738:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc1d73c:	41 9e 00 bc 	beq-    cr7,ffc1d7f8 <_Timer_server_Schedule_operation_method+0x120>
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
                                                                      
    if ( !ts->active ) {                                              
      _Timer_server_Reset_interval_system_watchdog( ts );             
    }                                                                 
  } else if ( timer->the_class == TIMER_TIME_OF_DAY_ON_TASK ) {       
ffc1d740:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc1d744:	41 9e 00 20 	beq-    cr7,ffc1d764 <_Timer_server_Schedule_operation_method+0x8c>
     *  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 );           
  }                                                                   
}                                                                     
ffc1d748:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc1d74c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc1d750:	7c 08 03 a6 	mtlr    r0                                     
ffc1d754:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc1d758:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc1d75c:	38 21 00 18 	addi    r1,r1,24                               
    if ( !ts->active ) {                                              
      _Timer_server_Reset_tod_system_watchdog( ts );                  
    }                                                                 
  }                                                                   
                                                                      
  _Thread_Enable_dispatch();                                          
ffc1d760:	48 00 43 30 	b       ffc21a90 <_Thread_Enable_dispatch>     
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc1d764:	7f a0 00 a6 	mfmsr   r29                                    
ffc1d768:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc1d76c:	7f a9 48 78 	andc    r9,r29,r9                              
ffc1d770:	7d 20 01 24 	mtmsr   r9                                     
    /*                                                                
     *  We have to advance the last known seconds value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
ffc1d774:	3d 20 00 00 	lis     r9,0                                   
ffc1d778:	39 29 70 80 	addi    r9,r9,28800                            
ffc1d77c:	80 69 00 00 	lwz     r3,0(r9)                               
ffc1d780:	3c c0 3b 9a 	lis     r6,15258                               
ffc1d784:	80 89 00 04 	lwz     r4,4(r9)                               
ffc1d788:	38 a0 00 00 	li      r5,0                                   
ffc1d78c:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc1d790:	48 01 62 35 	bl      ffc339c4 <__divdi3>                    
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc1d794:	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 );                            
ffc1d798:	39 5f 00 6c 	addi    r10,r31,108                            
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
    if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {             
ffc1d79c:	7f 89 50 00 	cmpw    cr7,r9,r10                             
     *  We have to advance the last known seconds value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
    snapshot = (Watchdog_Interval) _TOD_Seconds_since_epoch();        
    last_snapshot = ts->TOD_watchdogs.last_snapshot;                  
ffc1d7a0:	81 5f 00 74 	lwz     r10,116(r31)                           
    if ( !_Chain_Is_empty( &ts->TOD_watchdogs.Chain ) ) {             
ffc1d7a4:	41 9e 00 28 	beq-    cr7,ffc1d7cc <_Timer_server_Schedule_operation_method+0xf4>
      first_watchdog = _Watchdog_First( &ts->TOD_watchdogs.Chain );   
      delta_interval = first_watchdog->delta_interval;                
      if ( snapshot > last_snapshot ) {                               
ffc1d7a8:	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;                
ffc1d7ac:	80 e9 00 10 	lwz     r7,16(r9)                              
      if ( snapshot > last_snapshot ) {                               
ffc1d7b0:	40 9d 00 bc 	ble-    cr7,ffc1d86c <_Timer_server_Schedule_operation_method+0x194>
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
ffc1d7b4:	7d 4a 20 50 	subf    r10,r10,r4                             
        if (delta_interval > delta) {                                 
ffc1d7b8:	7f 87 50 40 	cmplw   cr7,r7,r10                             
          delta_interval -= delta;                                    
        } else {                                                      
          delta_interval = 0;                                         
ffc1d7bc:	39 00 00 00 	li      r8,0                                   
      if ( snapshot > last_snapshot ) {                               
        /*                                                            
         *  We advanced in time.                                      
         */                                                           
        delta = snapshot - last_snapshot;                             
        if (delta_interval > delta) {                                 
ffc1d7c0:	40 9d 00 08 	ble-    cr7,ffc1d7c8 <_Timer_server_Schedule_operation_method+0xf0><== NEVER TAKEN
          delta_interval -= delta;                                    
ffc1d7c4:	7d 0a 38 50 	subf    r8,r10,r7                              
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
        delta_interval += delta;                                      
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
ffc1d7c8:	91 09 00 10 	stw     r8,16(r9)                              
    }                                                                 
    ts->TOD_watchdogs.last_snapshot = snapshot;                       
ffc1d7cc:	90 9f 00 74 	stw     r4,116(r31)                            
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc1d7d0:	7f a0 01 24 	mtmsr   r29                                    
    _ISR_Enable( level );                                             
                                                                      
    _Watchdog_Insert( &ts->TOD_watchdogs.Chain, &timer->Ticker );     
ffc1d7d4:	38 7f 00 68 	addi    r3,r31,104                             
ffc1d7d8:	38 9e 00 10 	addi    r4,r30,16                              
ffc1d7dc:	48 00 54 c5 	bl      ffc22ca0 <_Watchdog_Insert>            
                                                                      
    if ( !ts->active ) {                                              
ffc1d7e0:	89 3f 00 7c 	lbz     r9,124(r31)                            
ffc1d7e4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1d7e8:	40 9e ff 60 	bne+    cr7,ffc1d748 <_Timer_server_Schedule_operation_method+0x70><== NEVER TAKEN
      _Timer_server_Reset_tod_system_watchdog( ts );                  
ffc1d7ec:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d7f0:	4b ff fe 59 	bl      ffc1d648 <_Timer_server_Reset_tod_system_watchdog>
ffc1d7f4:	4b ff ff 54 	b       ffc1d748 <_Timer_server_Schedule_operation_method+0x70>
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc1d7f8:	7c a0 00 a6 	mfmsr   r5                                     
ffc1d7fc:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc1d800:	7c a9 48 78 	andc    r9,r5,r9                               
ffc1d804:	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;                    
ffc1d808:	81 23 00 30 	lwz     r9,48(r3)                              
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc1d80c:	39 43 00 34 	addi    r10,r3,52                              
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
    snapshot = _Watchdog_Ticks_since_boot;                            
    last_snapshot = ts->Interval_watchdogs.last_snapshot;             
    if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {        
ffc1d810:	7f 89 50 00 	cmpw    cr7,r9,r10                             
    /*                                                                
     *  We have to advance the last known ticks value of the server and update
     *  the watchdog chain accordingly.                               
     */                                                               
    _ISR_Disable( level );                                            
    snapshot = _Watchdog_Ticks_since_boot;                            
ffc1d814:	3d 40 00 00 	lis     r10,0                                  
ffc1d818:	81 4a 29 5c 	lwz     r10,10588(r10)                         
    last_snapshot = ts->Interval_watchdogs.last_snapshot;             
ffc1d81c:	80 e3 00 3c 	lwz     r7,60(r3)                              
    if ( !_Chain_Is_empty( &ts->Interval_watchdogs.Chain ) ) {        
ffc1d820:	41 9e 00 20 	beq-    cr7,ffc1d840 <_Timer_server_Schedule_operation_method+0x168>
      /*                                                              
       *  We assume adequate unsigned arithmetic here.                
       */                                                             
      delta = snapshot - last_snapshot;                               
                                                                      
      delta_interval = first_watchdog->delta_interval;                
ffc1d824:	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;                               
ffc1d828:	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;                                           
ffc1d82c:	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) {                                   
ffc1d830:	7f 87 30 40 	cmplw   cr7,r7,r6                              
ffc1d834:	40 9c 00 08 	bge-    cr7,ffc1d83c <_Timer_server_Schedule_operation_method+0x164>
        delta_interval -= delta;                                      
ffc1d838:	7d 07 30 50 	subf    r8,r7,r6                               
      } else {                                                        
        delta_interval = 0;                                           
      }                                                               
      first_watchdog->delta_interval = delta_interval;                
ffc1d83c:	91 09 00 10 	stw     r8,16(r9)                              
    }                                                                 
    ts->Interval_watchdogs.last_snapshot = snapshot;                  
ffc1d840:	91 5f 00 3c 	stw     r10,60(r31)                            
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc1d844:	7c a0 01 24 	mtmsr   r5                                     
    _ISR_Enable( level );                                             
                                                                      
    _Watchdog_Insert( &ts->Interval_watchdogs.Chain, &timer->Ticker );
ffc1d848:	38 7f 00 30 	addi    r3,r31,48                              
ffc1d84c:	38 9e 00 10 	addi    r4,r30,16                              
ffc1d850:	48 00 54 51 	bl      ffc22ca0 <_Watchdog_Insert>            
                                                                      
    if ( !ts->active ) {                                              
ffc1d854:	89 3f 00 7c 	lbz     r9,124(r31)                            
ffc1d858:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1d85c:	40 9e fe ec 	bne+    cr7,ffc1d748 <_Timer_server_Schedule_operation_method+0x70>
      _Timer_server_Reset_interval_system_watchdog( ts );             
ffc1d860:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d864:	4b ff fd 55 	bl      ffc1d5b8 <_Timer_server_Reset_interval_system_watchdog>
ffc1d868:	4b ff fe e0 	b       ffc1d748 <_Timer_server_Schedule_operation_method+0x70>
        }                                                             
      } else {                                                        
        /*                                                            
         *  Someone put us in the past.                               
         */                                                           
        delta = last_snapshot - snapshot;                             
ffc1d86c:	7d 47 52 14 	add     r10,r7,r10                             
        delta_interval += delta;                                      
ffc1d870:	7d 04 50 50 	subf    r8,r4,r10                              
ffc1d874:	4b ff ff 54 	b       ffc1d7c8 <_Timer_server_Schedule_operation_method+0xf0>
                                                                      

ffc0f468 <_Timespec_Add_to>: { uint32_t seconds = add->tv_sec; /* Add the basics */ time->tv_sec += add->tv_sec; time->tv_nsec += add->tv_nsec;
ffc0f468:	81 24 00 04 	lwz     r9,4(r4)                               
                                                                      
  /* Now adjust it so nanoseconds is in range */                      
  while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {             
ffc0f46c:	3c e0 3b 9a 	lis     r7,15258                               
{                                                                     
  uint32_t seconds = add->tv_sec;                                     
                                                                      
  /* Add the basics */                                                
  time->tv_sec += add->tv_sec;                                        
  time->tv_nsec += add->tv_nsec;                                      
ffc0f470:	81 03 00 04 	lwz     r8,4(r3)                               
                                                                      
  /* Now adjust it so nanoseconds is in range */                      
  while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {             
ffc0f474:	60 e7 c9 ff 	ori     r7,r7,51711                            
uint32_t _Timespec_Add_to(                                            
  struct timespec       *time,                                        
  const struct timespec *add                                          
)                                                                     
{                                                                     
  uint32_t seconds = add->tv_sec;                                     
ffc0f478:	81 44 00 00 	lwz     r10,0(r4)                              
                                                                      
  /* Add the basics */                                                
  time->tv_sec += add->tv_sec;                                        
  time->tv_nsec += add->tv_nsec;                                      
ffc0f47c:	7d 08 4a 14 	add     r8,r8,r9                               
)                                                                     
{                                                                     
  uint32_t seconds = add->tv_sec;                                     
                                                                      
  /* Add the basics */                                                
  time->tv_sec += add->tv_sec;                                        
ffc0f480:	80 c3 00 00 	lwz     r6,0(r3)                               
  time->tv_nsec += add->tv_nsec;                                      
                                                                      
  /* Now adjust it so nanoseconds is in range */                      
  while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {             
ffc0f484:	7f 88 38 40 	cmplw   cr7,r8,r7                              
{                                                                     
  uint32_t seconds = add->tv_sec;                                     
                                                                      
  /* Add the basics */                                                
  time->tv_sec += add->tv_sec;                                        
  time->tv_nsec += add->tv_nsec;                                      
ffc0f488:	91 03 00 04 	stw     r8,4(r3)                               
)                                                                     
{                                                                     
  uint32_t seconds = add->tv_sec;                                     
                                                                      
  /* Add the basics */                                                
  time->tv_sec += add->tv_sec;                                        
ffc0f48c:	7c c6 52 14 	add     r6,r6,r10                              
  time->tv_nsec += add->tv_nsec;                                      
                                                                      
  /* Now adjust it so nanoseconds is in range */                      
  while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {             
ffc0f490:	7d 09 43 78 	mr      r9,r8                                  
)                                                                     
{                                                                     
  uint32_t seconds = add->tv_sec;                                     
                                                                      
  /* Add the basics */                                                
  time->tv_sec += add->tv_sec;                                        
ffc0f494:	90 c3 00 00 	stw     r6,0(r3)                               
  time->tv_nsec += add->tv_nsec;                                      
                                                                      
  /* Now adjust it so nanoseconds is in range */                      
  while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {             
ffc0f498:	40 9d 00 2c 	ble-    cr7,ffc0f4c4 <_Timespec_Add_to+0x5c>   
ffc0f49c:	38 c6 00 01 	addi    r6,r6,1                                
#include <sys/types.h>                                                
#include <rtems/score/timespec.h>                                     
#include <rtems/score/tod.h>                                          
#include <rtems/score/watchdog.h>                                     
                                                                      
uint32_t _Timespec_Add_to(                                            
ffc0f4a0:	7c ca 30 50 	subf    r6,r10,r6                              
  time->tv_sec += add->tv_sec;                                        
  time->tv_nsec += add->tv_nsec;                                      
                                                                      
  /* Now adjust it so nanoseconds is in range */                      
  while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {             
    time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND;                      
ffc0f4a4:	3d 29 c4 65 	addis   r9,r9,-15259                           
ffc0f4a8:	39 29 36 00 	addi    r9,r9,13824                            
  /* Add the basics */                                                
  time->tv_sec += add->tv_sec;                                        
  time->tv_nsec += add->tv_nsec;                                      
                                                                      
  /* Now adjust it so nanoseconds is in range */                      
  while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {             
ffc0f4ac:	7f 89 38 40 	cmplw   cr7,r9,r7                              
#include <sys/types.h>                                                
#include <rtems/score/timespec.h>                                     
#include <rtems/score/tod.h>                                          
#include <rtems/score/watchdog.h>                                     
                                                                      
uint32_t _Timespec_Add_to(                                            
ffc0f4b0:	7d 06 52 14 	add     r8,r6,r10                              
                                                                      
  /* Now adjust it so nanoseconds is in range */                      
  while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {             
    time->tv_nsec -= TOD_NANOSECONDS_PER_SECOND;                      
    time->tv_sec++;                                                   
    seconds++;                                                        
ffc0f4b4:	39 4a 00 01 	addi    r10,r10,1                              
  /* Add the basics */                                                
  time->tv_sec += add->tv_sec;                                        
  time->tv_nsec += add->tv_nsec;                                      
                                                                      
  /* Now adjust it so nanoseconds is in range */                      
  while ( time->tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {             
ffc0f4b8:	41 9d ff ec 	bgt+    cr7,ffc0f4a4 <_Timespec_Add_to+0x3c>   <== NEVER TAKEN
ffc0f4bc:	91 23 00 04 	stw     r9,4(r3)                               
ffc0f4c0:	91 03 00 00 	stw     r8,0(r3)                               
    time->tv_sec++;                                                   
    seconds++;                                                        
  }                                                                   
                                                                      
  return seconds;                                                     
}                                                                     
ffc0f4c4:	7d 43 53 78 	mr      r3,r10                                 
ffc0f4c8:	4e 80 00 20 	blr                                            
                                                                      

ffc0f5dc <_Timestamp64_Divide>: const Timestamp64_Control *_lhs, const Timestamp64_Control *_rhs, uint32_t *_ival_percentage, uint32_t *_fval_percentage ) {
ffc0f5dc:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0f5e0:	7c 08 02 a6 	mflr    r0                                     
ffc0f5e4:	90 01 00 1c 	stw     r0,28(r1)                              
  Timestamp64_Control answer;                                         
                                                                      
  if ( *_rhs == 0 ) {                                                 
ffc0f5e8:	81 44 00 00 	lwz     r10,0(r4)                              
ffc0f5ec:	81 24 00 04 	lwz     r9,4(r4)                               
  const Timestamp64_Control *_lhs,                                    
  const Timestamp64_Control *_rhs,                                    
  uint32_t                  *_ival_percentage,                        
  uint32_t                  *_fval_percentage                         
)                                                                     
{                                                                     
ffc0f5f0:	93 c1 00 10 	stw     r30,16(r1)                             
ffc0f5f4:	7c be 2b 78 	mr      r30,r5                                 
  Timestamp64_Control answer;                                         
                                                                      
  if ( *_rhs == 0 ) {                                                 
ffc0f5f8:	7d 48 4b 79 	or.     r8,r10,r9                              
  const Timestamp64_Control *_lhs,                                    
  const Timestamp64_Control *_rhs,                                    
  uint32_t                  *_ival_percentage,                        
  uint32_t                  *_fval_percentage                         
)                                                                     
{                                                                     
ffc0f5fc:	93 e1 00 14 	stw     r31,20(r1)                             
ffc0f600:	7c df 33 78 	mr      r31,r6                                 
ffc0f604:	93 81 00 08 	stw     r28,8(r1)                              
ffc0f608:	93 a1 00 0c 	stw     r29,12(r1)                             
  Timestamp64_Control answer;                                         
                                                                      
  if ( *_rhs == 0 ) {                                                 
ffc0f60c:	41 82 00 80 	beq-    ffc0f68c <_Timestamp64_Divide+0xb0>    <== NEVER TAKEN
   *  This looks odd but gives the results the proper precision.      
   *                                                                  
   *  TODO: Rounding on the last digit of the fval.                   
   */                                                                 
                                                                      
  answer = (*_lhs * 100000) / *_rhs;                                  
ffc0f610:	80 c3 00 04 	lwz     r6,4(r3)                               
ffc0f614:	3d 00 00 01 	lis     r8,1                                   
ffc0f618:	80 e3 00 00 	lwz     r7,0(r3)                               
ffc0f61c:	61 08 86 a0 	ori     r8,r8,34464                            
ffc0f620:	7c 68 30 16 	mulhwu  r3,r8,r6                               
ffc0f624:	7c e8 39 d6 	mullw   r7,r8,r7                               
ffc0f628:	7c 88 31 d6 	mullw   r4,r8,r6                               
ffc0f62c:	7d 45 53 78 	mr      r5,r10                                 
ffc0f630:	7d 26 4b 78 	mr      r6,r9                                  
ffc0f634:	7c 67 1a 14 	add     r3,r7,r3                               
ffc0f638:	48 00 fa 8d 	bl      ffc1f0c4 <__divdi3>                    
                                                                      
  *_ival_percentage = answer / 1000;                                  
ffc0f63c:	38 a0 00 00 	li      r5,0                                   
ffc0f640:	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;                                  
ffc0f644:	7c 7c 1b 78 	mr      r28,r3                                 
ffc0f648:	7c 9d 23 78 	mr      r29,r4                                 
                                                                      
  *_ival_percentage = answer / 1000;                                  
ffc0f64c:	48 00 fa 79 	bl      ffc1f0c4 <__divdi3>                    
ffc0f650:	90 9e 00 00 	stw     r4,0(r30)                              
  *_fval_percentage = answer % 1000;                                  
ffc0f654:	7f 83 e3 78 	mr      r3,r28                                 
ffc0f658:	7f a4 eb 78 	mr      r4,r29                                 
ffc0f65c:	38 a0 00 00 	li      r5,0                                   
ffc0f660:	38 c0 03 e8 	li      r6,1000                                
ffc0f664:	48 00 fe 85 	bl      ffc1f4e8 <__moddi3>                    
}                                                                     
ffc0f668:	80 01 00 1c 	lwz     r0,28(r1)                              
   */                                                                 
                                                                      
  answer = (*_lhs * 100000) / *_rhs;                                  
                                                                      
  *_ival_percentage = answer / 1000;                                  
  *_fval_percentage = answer % 1000;                                  
ffc0f66c:	90 9f 00 00 	stw     r4,0(r31)                              
}                                                                     
ffc0f670:	7c 08 03 a6 	mtlr    r0                                     
ffc0f674:	83 81 00 08 	lwz     r28,8(r1)                              
ffc0f678:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0f67c:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0f680:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0f684:	38 21 00 18 	addi    r1,r1,24                               
ffc0f688:	4e 80 00 20 	blr                                            
ffc0f68c:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
)                                                                     
{                                                                     
  Timestamp64_Control answer;                                         
                                                                      
  if ( *_rhs == 0 ) {                                                 
    *_ival_percentage = 0;                                            
ffc0f690:	91 05 00 00 	stw     r8,0(r5)                               <== NOT EXECUTED
                                                                      
  answer = (*_lhs * 100000) / *_rhs;                                  
                                                                      
  *_ival_percentage = answer / 1000;                                  
  *_fval_percentage = answer % 1000;                                  
}                                                                     
ffc0f694:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0f698:	83 81 00 08 	lwz     r28,8(r1)                              <== NOT EXECUTED
ffc0f69c:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc0f6a0:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc0f6a4:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
{                                                                     
  Timestamp64_Control answer;                                         
                                                                      
  if ( *_rhs == 0 ) {                                                 
    *_ival_percentage = 0;                                            
    *_fval_percentage = 0;                                            
ffc0f6a8:	91 06 00 00 	stw     r8,0(r6)                               <== NOT EXECUTED
                                                                      
  answer = (*_lhs * 100000) / *_rhs;                                  
                                                                      
  *_ival_percentage = answer / 1000;                                  
  *_fval_percentage = answer % 1000;                                  
}                                                                     
ffc0f6ac:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc0f6b0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc0d90c <_User_extensions_Iterate>: void _User_extensions_Iterate( void *arg, User_extensions_Visitor visitor ) {
ffc0d90c:	94 21 ff e0 	stwu    r1,-32(r1)                             
  Thread_Control   *executing = _Thread_Executing;                    
  const User_extensions_Table *callouts_current =                     
ffc0d910:	3d 20 ff c2 	lis     r9,-62                                 
ffc0d914:	39 29 ea f8 	addi    r9,r9,-5384                            
                                                                      
void _User_extensions_Iterate(                                        
  void                    *arg,                                       
  User_extensions_Visitor  visitor                                    
)                                                                     
{                                                                     
ffc0d918:	7c 08 02 a6 	mflr    r0                                     
ffc0d91c:	93 61 00 0c 	stw     r27,12(r1)                             
  Thread_Control   *executing = _Thread_Executing;                    
  const User_extensions_Table *callouts_current =                     
    rtems_configuration_get_user_extension_table();                   
  const User_extensions_Table *callouts_end =                         
    callouts_current + rtems_configuration_get_number_of_initial_extensions();
ffc0d920:	83 69 00 40 	lwz     r27,64(r9)                             
                                                                      
void _User_extensions_Iterate(                                        
  void                    *arg,                                       
  User_extensions_Visitor  visitor                                    
)                                                                     
{                                                                     
ffc0d924:	93 e1 00 1c 	stw     r31,28(r1)                             
  Thread_Control   *executing = _Thread_Executing;                    
  const User_extensions_Table *callouts_current =                     
    rtems_configuration_get_user_extension_table();                   
  const User_extensions_Table *callouts_end =                         
    callouts_current + rtems_configuration_get_number_of_initial_extensions();
ffc0d928:	57 7b 28 34 	rlwinm  r27,r27,5,0,26                         
  void                    *arg,                                       
  User_extensions_Visitor  visitor                                    
)                                                                     
{                                                                     
  Thread_Control   *executing = _Thread_Executing;                    
  const User_extensions_Table *callouts_current =                     
ffc0d92c:	83 e9 00 44 	lwz     r31,68(r9)                             
void _User_extensions_Iterate(                                        
  void                    *arg,                                       
  User_extensions_Visitor  visitor                                    
)                                                                     
{                                                                     
  Thread_Control   *executing = _Thread_Executing;                    
ffc0d930:	3d 20 00 00 	lis     r9,0                                   
                                                                      
void _User_extensions_Iterate(                                        
  void                    *arg,                                       
  User_extensions_Visitor  visitor                                    
)                                                                     
{                                                                     
ffc0d934:	93 81 00 10 	stw     r28,16(r1)                             
ffc0d938:	7c 9c 23 78 	mr      r28,r4                                 
  Thread_Control   *executing = _Thread_Executing;                    
  const User_extensions_Table *callouts_current =                     
    rtems_configuration_get_user_extension_table();                   
  const User_extensions_Table *callouts_end =                         
ffc0d93c:	7f 7f da 14 	add     r27,r31,r27                            
    callouts_current + rtems_configuration_get_number_of_initial_extensions();
  const Chain_Node *node;                                             
  const Chain_Node *tail;                                             
                                                                      
  while ( callouts_current != callouts_end ) {                        
ffc0d940:	7f 9f d8 00 	cmpw    cr7,r31,r27                            
                                                                      
void _User_extensions_Iterate(                                        
  void                    *arg,                                       
  User_extensions_Visitor  visitor                                    
)                                                                     
{                                                                     
ffc0d944:	93 a1 00 14 	stw     r29,20(r1)                             
ffc0d948:	7c 7d 1b 78 	mr      r29,r3                                 
ffc0d94c:	93 c1 00 18 	stw     r30,24(r1)                             
ffc0d950:	90 01 00 24 	stw     r0,36(r1)                              
  Thread_Control   *executing = _Thread_Executing;                    
ffc0d954:	83 c9 31 b0 	lwz     r30,12720(r9)                          
  const User_extensions_Table *callouts_end =                         
    callouts_current + rtems_configuration_get_number_of_initial_extensions();
  const Chain_Node *node;                                             
  const Chain_Node *tail;                                             
                                                                      
  while ( callouts_current != callouts_end ) {                        
ffc0d958:	41 9e 00 24 	beq-    cr7,ffc0d97c <_User_extensions_Iterate+0x70><== NEVER TAKEN
    (*visitor)( executing, arg, callouts_current );                   
ffc0d95c:	7f e5 fb 78 	mr      r5,r31                                 
ffc0d960:	7f 89 03 a6 	mtctr   r28                                    
ffc0d964:	7f c3 f3 78 	mr      r3,r30                                 
ffc0d968:	7f a4 eb 78 	mr      r4,r29                                 
                                                                      
    ++callouts_current;                                               
ffc0d96c:	3b ff 00 20 	addi    r31,r31,32                             
    callouts_current + rtems_configuration_get_number_of_initial_extensions();
  const Chain_Node *node;                                             
  const Chain_Node *tail;                                             
                                                                      
  while ( callouts_current != callouts_end ) {                        
    (*visitor)( executing, arg, callouts_current );                   
ffc0d970:	4e 80 04 21 	bctrl                                          
  const User_extensions_Table *callouts_end =                         
    callouts_current + rtems_configuration_get_number_of_initial_extensions();
  const Chain_Node *node;                                             
  const Chain_Node *tail;                                             
                                                                      
  while ( callouts_current != callouts_end ) {                        
ffc0d974:	7f 9b f8 00 	cmpw    cr7,r27,r31                            
ffc0d978:	40 9e ff e4 	bne+    cr7,ffc0d95c <_User_extensions_Iterate+0x50>
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc0d97c:	3d 20 00 00 	lis     r9,0                                   
ffc0d980:	3b 69 21 fc 	addi    r27,r9,8700                            
ffc0d984:	83 e9 21 fc 	lwz     r31,8700(r9)                           
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail(         
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return &the_chain->Tail.Node;                                       
ffc0d988:	3b 7b 00 04 	addi    r27,r27,4                              
    ++callouts_current;                                               
  }                                                                   
                                                                      
  node = _Chain_Immutable_first( &_User_extensions_List );            
  tail = _Chain_Immutable_tail( &_User_extensions_List );             
  while ( node != tail ) {                                            
ffc0d98c:	7f 9f d8 00 	cmpw    cr7,r31,r27                            
ffc0d990:	41 9e 00 24 	beq-    cr7,ffc0d9b4 <_User_extensions_Iterate+0xa8>
    const User_extensions_Control *extension =                        
      (const User_extensions_Control *) node;                         
                                                                      
    (*visitor)( executing, arg, &extension->Callouts );               
ffc0d994:	38 bf 00 14 	addi    r5,r31,20                              
ffc0d998:	7f 89 03 a6 	mtctr   r28                                    
ffc0d99c:	7f c3 f3 78 	mr      r3,r30                                 
ffc0d9a0:	7f a4 eb 78 	mr      r4,r29                                 
ffc0d9a4:	4e 80 04 21 	bctrl                                          
                                                                      
    node = _Chain_Immutable_next( node );                             
  }                                                                   
}                                                                     
ffc0d9a8:	83 ff 00 00 	lwz     r31,0(r31)                             
    ++callouts_current;                                               
  }                                                                   
                                                                      
  node = _Chain_Immutable_first( &_User_extensions_List );            
  tail = _Chain_Immutable_tail( &_User_extensions_List );             
  while ( node != tail ) {                                            
ffc0d9ac:	7f 9f d8 00 	cmpw    cr7,r31,r27                            
ffc0d9b0:	40 9e ff e4 	bne+    cr7,ffc0d994 <_User_extensions_Iterate+0x88>
                                                                      
    (*visitor)( executing, arg, &extension->Callouts );               
                                                                      
    node = _Chain_Immutable_next( node );                             
  }                                                                   
}                                                                     
ffc0d9b4:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0d9b8:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0d9bc:	7c 08 03 a6 	mtlr    r0                                     
ffc0d9c0:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0d9c4:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0d9c8:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0d9cc:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0d9d0:	38 21 00 20 	addi    r1,r1,32                               
ffc0d9d4:	4e 80 00 20 	blr                                            
                                                                      

ffc0f96c <_Watchdog_Adjust>: void _Watchdog_Adjust( Chain_Control *header, Watchdog_Adjust_directions direction, Watchdog_Interval units ) {
ffc0f96c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0f970:	7c 08 02 a6 	mflr    r0                                     
ffc0f974:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0f978:	93 c1 00 10 	stw     r30,16(r1)                             
ffc0f97c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0f980:	93 81 00 08 	stw     r28,8(r1)                              
ffc0f984:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc0f988:	93 e1 00 14 	stw     r31,20(r1)                             
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0f98c:	7d 40 00 a6 	mfmsr   r10                                    
ffc0f990:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0f994:	7d 49 48 78 	andc    r9,r10,r9                              
ffc0f998:	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;                    
ffc0f99c:	81 23 00 00 	lwz     r9,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 );                            
ffc0f9a0:	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 ) ) {                                 
ffc0f9a4:	7f 89 e8 00 	cmpw    cr7,r9,r29                             
ffc0f9a8:	41 9e 00 70 	beq-    cr7,ffc0fa18 <_Watchdog_Adjust+0xac>   
    switch ( direction ) {                                            
ffc0f9ac:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc0f9b0:	7c bf 2b 78 	mr      r31,r5                                 
ffc0f9b4:	40 9e 00 88 	bne-    cr7,ffc0fa3c <_Watchdog_Adjust+0xd0>   
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
ffc0f9b8:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc0f9bc:	41 9e 00 5c 	beq-    cr7,ffc0fa18 <_Watchdog_Adjust+0xac>   <== NEVER TAKEN
          if ( units < _Watchdog_First( header )->delta_interval ) {  
ffc0f9c0:	81 09 00 10 	lwz     r8,16(r9)                              
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
ffc0f9c4:	3b 80 00 01 	li      r28,1                                  
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
ffc0f9c8:	7f 85 40 40 	cmplw   cr7,r5,r8                              
ffc0f9cc:	40 bc 00 18 	bge+    cr7,ffc0f9e4 <_Watchdog_Adjust+0x78>   <== ALWAYS TAKEN
ffc0f9d0:	48 00 00 a4 	b       ffc0fa74 <_Watchdog_Adjust+0x108>      <== NOT EXECUTED
    switch ( direction ) {                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
ffc0f9d4:	41 9a 00 44 	beq-    cr6,ffc0fa18 <_Watchdog_Adjust+0xac>   <== NEVER TAKEN
          if ( units < _Watchdog_First( header )->delta_interval ) {  
ffc0f9d8:	81 09 00 10 	lwz     r8,16(r9)                              
ffc0f9dc:	7f 88 f8 40 	cmplw   cr7,r8,r31                             
ffc0f9e0:	41 9d 00 94 	bgt-    cr7,ffc0fa74 <_Watchdog_Adjust+0x108>  
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
            _Watchdog_First( header )->delta_interval = 1;            
ffc0f9e4:	93 89 00 10 	stw     r28,16(r9)                             
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
            _Watchdog_First( header )->delta_interval -= units;       
            break;                                                    
          } else {                                                    
            units -= _Watchdog_First( header )->delta_interval;       
ffc0f9e8:	7f e8 f8 50 	subf    r31,r8,r31                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0f9ec:	7d 40 01 24 	mtmsr   r10                                    
            _Watchdog_First( header )->delta_interval = 1;            
                                                                      
            _ISR_Enable( level );                                     
                                                                      
            _Watchdog_Tickle( header );                               
ffc0f9f0:	7f c3 f3 78 	mr      r3,r30                                 
ffc0f9f4:	48 00 03 25 	bl      ffc0fd18 <_Watchdog_Tickle>            
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0f9f8:	7d 40 00 a6 	mfmsr   r10                                    
ffc0f9fc:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0fa00:	7d 49 48 78 	andc    r9,r10,r9                              
ffc0fa04:	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;                    
ffc0fa08:	81 3e 00 00 	lwz     r9,0(r30)                              
    switch ( direction ) {                                            
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
ffc0fa0c:	2f 1f 00 00 	cmpwi   cr6,r31,0                              
                                                                      
            _Watchdog_Tickle( header );                               
                                                                      
            _ISR_Disable( level );                                    
                                                                      
            if ( _Chain_Is_empty( header ) )                          
ffc0fa10:	7f 9d 48 00 	cmpw    cr7,r29,r9                             
ffc0fa14:	40 9e ff c0 	bne+    cr7,ffc0f9d4 <_Watchdog_Adjust+0x68>   
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0fa18:	7d 40 01 24 	mtmsr   r10                                    
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
                                                                      
}                                                                     
ffc0fa1c:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0fa20:	83 81 00 08 	lwz     r28,8(r1)                              
ffc0fa24:	7c 08 03 a6 	mtlr    r0                                     
ffc0fa28:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0fa2c:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0fa30:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0fa34:	38 21 00 18 	addi    r1,r1,24                               
ffc0fa38:	4e 80 00 20 	blr                                            
   *       unmodified across that call.                               
   *                                                                  
   *       Till Straumann, 7/2003                                     
   */                                                                 
  if ( !_Chain_Is_empty( header ) ) {                                 
    switch ( direction ) {                                            
ffc0fa3c:	2f 84 00 01 	cmpwi   cr7,r4,1                               
ffc0fa40:	40 9e ff d8 	bne+    cr7,ffc0fa18 <_Watchdog_Adjust+0xac>   <== NEVER TAKEN
      case WATCHDOG_BACKWARD:                                         
        _Watchdog_First( header )->delta_interval += units;           
ffc0fa44:	81 09 00 10 	lwz     r8,16(r9)                              
ffc0fa48:	7f e8 2a 14 	add     r31,r8,r5                              
ffc0fa4c:	93 e9 00 10 	stw     r31,16(r9)                             
ffc0fa50:	7d 40 01 24 	mtmsr   r10                                    
    }                                                                 
  }                                                                   
                                                                      
  _ISR_Enable( level );                                               
                                                                      
}                                                                     
ffc0fa54:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0fa58:	83 81 00 08 	lwz     r28,8(r1)                              
ffc0fa5c:	7c 08 03 a6 	mtlr    r0                                     
ffc0fa60:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0fa64:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0fa68:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0fa6c:	38 21 00 18 	addi    r1,r1,24                               
ffc0fa70:	4e 80 00 20 	blr                                            
        _Watchdog_First( header )->delta_interval += units;           
        break;                                                        
      case WATCHDOG_FORWARD:                                          
        while ( units ) {                                             
          if ( units < _Watchdog_First( header )->delta_interval ) {  
            _Watchdog_First( header )->delta_interval -= units;       
ffc0fa74:	7d 1f 40 50 	subf    r8,r31,r8                              
ffc0fa78:	91 09 00 10 	stw     r8,16(r9)                              
            break;                                                    
ffc0fa7c:	4b ff ff 9c 	b       ffc0fa18 <_Watchdog_Adjust+0xac>       
                                                                      

ffc22bfc <_Watchdog_Adjust_to_chain>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; __asm__ volatile (
ffc22bfc:	7d 60 00 a6 	mfmsr   r11                                    
ffc22c00:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc22c04:	7d 69 48 78 	andc    r9,r11,r9                              
ffc22c08:	7d 20 01 24 	mtmsr   r9                                     
{                                                                     
  Watchdog_Interval  units = units_arg;                               
  ISR_Level          level;                                           
  Watchdog_Control  *first;                                           
                                                                      
  _ISR_Disable( level );                                              
ffc22c0c:	81 23 00 00 	lwz     r9,0(r3)                               
ffc22c10:	38 c3 00 04 	addi    r6,r3,4                                
    /*                                                                
     *  The first set happens in less than units, so take all of them 
     *  off the chain and adjust units to reflect this.               
     */                                                               
    units -= first->delta_interval;                                   
    first->delta_interval = 0;                                        
ffc22c14:	39 80 00 00 	li      r12,0                                  
ffc22c18:	38 05 00 04 	addi    r0,r5,4                                
  Watchdog_Control  *first;                                           
                                                                      
  _ISR_Disable( level );                                              
                                                                      
  while ( 1 ) {                                                       
    if ( _Chain_Is_empty( header ) ) {                                
ffc22c1c:	7f 86 48 00 	cmpw    cr7,r6,r9                              
ffc22c20:	41 9e 00 68 	beq-    cr7,ffc22c88 <_Watchdog_Adjust_to_chain+0x8c>
                                                                      
    /*                                                                
     *  If it is longer than "units" until the first element on the chain
     *  fires, then bump it and quit.                                 
     */                                                               
    if ( units < first->delta_interval ) {                            
ffc22c24:	81 49 00 10 	lwz     r10,16(r9)                             
ffc22c28:	7f 84 50 40 	cmplw   cr7,r4,r10                             
ffc22c2c:	41 9c 00 64 	blt-    cr7,ffc22c90 <_Watchdog_Adjust_to_chain+0x94>
    /*                                                                
     *  The first set happens in less than units, so take all of them 
     *  off the chain and adjust units to reflect this.               
     */                                                               
    units -= first->delta_interval;                                   
    first->delta_interval = 0;                                        
ffc22c30:	91 89 00 10 	stw     r12,16(r9)                             
                                                                      
    /*                                                                
     *  The first set happens in less than units, so take all of them 
     *  off the chain and adjust units to reflect this.               
     */                                                               
    units -= first->delta_interval;                                   
ffc22c34:	7c 8a 20 50 	subf    r4,r10,r4                              
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc22c38:	81 49 00 00 	lwz     r10,0(r9)                              
  previous       = the_node->previous;                                
ffc22c3c:	80 e9 00 04 	lwz     r7,4(r9)                               
  next->previous = previous;                                          
ffc22c40:	90 ea 00 04 	stw     r7,4(r10)                              
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc22c44:	81 05 00 08 	lwz     r8,8(r5)                               
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  next->previous = previous;                                          
  previous->next = next;                                              
ffc22c48:	91 47 00 00 	stw     r10,0(r7)                              
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
ffc22c4c:	90 09 00 00 	stw     r0,0(r9)                               
  tail->previous = the_node;                                          
  old_last->next = the_node;                                          
ffc22c50:	91 28 00 00 	stw     r9,0(r8)                               
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
  tail->previous = the_node;                                          
ffc22c54:	91 25 00 08 	stw     r9,8(r5)                               
  old_last->next = the_node;                                          
  the_node->previous = old_last;                                      
ffc22c58:	91 09 00 04 	stw     r8,4(r9)                               
                                                                      
static inline void ppc_interrupt_flash( uint32_t level )              
{                                                                     
  uint32_t current_level;                                             
                                                                      
  __asm__ volatile (                                                  
ffc22c5c:	7d 20 00 a6 	mfmsr   r9                                     
ffc22c60:	7d 60 01 24 	mtmsr   r11                                    
ffc22c64:	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;                    
ffc22c68:	81 23 00 00 	lwz     r9,0(r3)                               
      _Chain_Extract_unprotected( &first->Node );                     
      _Chain_Append_unprotected( to_fire, &first->Node );             
                                                                      
      _ISR_Flash( level );                                            
                                                                      
      if ( _Chain_Is_empty( header ) )                                
ffc22c6c:	7f 86 48 00 	cmpw    cr7,r6,r9                              
ffc22c70:	41 be ff ac 	beq-    cr7,ffc22c1c <_Watchdog_Adjust_to_chain+0x20>
        break;                                                        
      first = _Watchdog_First( header );                              
      if ( first->delta_interval != 0 )                               
ffc22c74:	81 49 00 10 	lwz     r10,16(r9)                             
ffc22c78:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc22c7c:	41 9e ff bc 	beq+    cr7,ffc22c38 <_Watchdog_Adjust_to_chain+0x3c>
  Watchdog_Control  *first;                                           
                                                                      
  _ISR_Disable( level );                                              
                                                                      
  while ( 1 ) {                                                       
    if ( _Chain_Is_empty( header ) ) {                                
ffc22c80:	7f 86 48 00 	cmpw    cr7,r6,r9                              
ffc22c84:	40 9e ff a0 	bne+    cr7,ffc22c24 <_Watchdog_Adjust_to_chain+0x28><== ALWAYS TAKEN
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc22c88:	7d 60 01 24 	mtmsr   r11                                    
ffc22c8c:	4e 80 00 20 	blr                                            
    /*                                                                
     *  If it is longer than "units" until the first element on the chain
     *  fires, then bump it and quit.                                 
     */                                                               
    if ( units < first->delta_interval ) {                            
      first->delta_interval -= units;                                 
ffc22c90:	7d 44 50 50 	subf    r10,r4,r10                             
ffc22c94:	91 49 00 10 	stw     r10,16(r9)                             
ffc22c98:	7d 60 01 24 	mtmsr   r11                                    
ffc22c9c:	4e 80 00 20 	blr                                            
                                                                      

ffc0da64 <_Watchdog_Insert>: Watchdog_Control *after; uint32_t insert_isr_nest_level; Watchdog_Interval delta_interval; insert_isr_nest_level = _ISR_Nest_level;
ffc0da64:	3d 20 00 00 	lis     r9,0                                   
ffc0da68:	80 c9 31 a8 	lwz     r6,12712(r9)                           
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0da6c:	7c e0 00 a6 	mfmsr   r7                                     
ffc0da70:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0da74:	7c e9 48 78 	andc    r9,r7,r9                               
ffc0da78:	7d 20 01 24 	mtmsr   r9                                     
  /*                                                                  
   *  Check to see if the watchdog has just been inserted by a        
   *  higher priority interrupt.  If so, abandon this insert.         
   */                                                                 
                                                                      
  if ( the_watchdog->state != WATCHDOG_INACTIVE ) {                   
ffc0da7c:	81 24 00 08 	lwz     r9,8(r4)                               
ffc0da80:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0da84:	40 9e 01 04 	bne-    cr7,ffc0db88 <_Watchdog_Insert+0x124>  
    _ISR_Enable( level );                                             
    return;                                                           
  }                                                                   
                                                                      
  the_watchdog->state = WATCHDOG_BEING_INSERTED;                      
  _Watchdog_Sync_count++;                                             
ffc0da88:	3d 60 00 00 	lis     r11,0                                  
ffc0da8c:	81 2b 28 84 	lwz     r9,10372(r11)                          
  if ( the_watchdog->state != WATCHDOG_INACTIVE ) {                   
    _ISR_Enable( level );                                             
    return;                                                           
  }                                                                   
                                                                      
  the_watchdog->state = WATCHDOG_BEING_INSERTED;                      
ffc0da90:	39 40 00 01 	li      r10,1                                  
ffc0da94:	91 44 00 08 	stw     r10,8(r4)                              
ffc0da98:	3d 80 00 00 	lis     r12,0                                  
  _Watchdog_Sync_count++;                                             
ffc0da9c:	39 29 00 01 	addi    r9,r9,1                                
ffc0daa0:	91 2b 28 84 	stw     r9,10372(r11)                          
                                                                      
restart:                                                              
  delta_interval = the_watchdog->initial;                             
ffc0daa4:	81 24 00 0c 	lwz     r9,12(r4)                              
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc0daa8:	81 43 00 00 	lwz     r10,0(r3)                              
                                                                      
  for ( after = _Watchdog_First( header ) ;                           
        ;                                                             
        after = _Watchdog_Next( after ) ) {                           
                                                                      
     if ( delta_interval == 0 || !_Watchdog_Next( after ) )           
ffc0daac:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0dab0:	41 9e 00 98 	beq-    cr7,ffc0db48 <_Watchdog_Insert+0xe4>   
ffc0dab4:	81 0a 00 00 	lwz     r8,0(r10)                              
ffc0dab8:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0dabc:	41 9e 00 8c 	beq-    cr7,ffc0db48 <_Watchdog_Insert+0xe4>   
       break;                                                         
                                                                      
     if ( delta_interval < after->delta_interval ) {                  
ffc0dac0:	81 0a 00 10 	lwz     r8,16(r10)                             
ffc0dac4:	7f 89 40 40 	cmplw   cr7,r9,r8                              
ffc0dac8:	41 9c 00 c8 	blt-    cr7,ffc0db90 <_Watchdog_Insert+0x12c>  
       after->delta_interval -= delta_interval;                       
       break;                                                         
     }                                                                
                                                                      
     delta_interval -= after->delta_interval;                         
ffc0dacc:	7d 28 48 50 	subf    r9,r8,r9                               
                                                                      
static inline void ppc_interrupt_flash( uint32_t level )              
{                                                                     
  uint32_t current_level;                                             
                                                                      
  __asm__ volatile (                                                  
ffc0dad0:	7d 00 00 a6 	mfmsr   r8                                     
ffc0dad4:	7c e0 01 24 	mtmsr   r7                                     
ffc0dad8:	7d 00 01 24 	mtmsr   r8                                     
                                                                      
     _ISR_Flash( level );                                             
                                                                      
     if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {          
ffc0dadc:	81 04 00 08 	lwz     r8,8(r4)                               
ffc0dae0:	2f 88 00 01 	cmpwi   cr7,r8,1                               
ffc0dae4:	40 9e 00 94 	bne-    cr7,ffc0db78 <_Watchdog_Insert+0x114>  
       goto exit_insert;                                              
     }                                                                
                                                                      
     if ( _Watchdog_Sync_level > insert_isr_nest_level ) {            
ffc0dae8:	81 0c 28 7c 	lwz     r8,10364(r12)                          
ffc0daec:	38 ac 28 7c 	addi    r5,r12,10364                           
ffc0daf0:	7f 86 40 40 	cmplw   cr7,r6,r8                              
ffc0daf4:	40 bc 00 48 	bge+    cr7,ffc0db3c <_Watchdog_Insert+0xd8>   
ffc0daf8:	48 00 00 d4 	b       ffc0dbcc <_Watchdog_Insert+0x168>      
                                                                      
  for ( after = _Watchdog_First( header ) ;                           
        ;                                                             
        after = _Watchdog_Next( after ) ) {                           
                                                                      
     if ( delta_interval == 0 || !_Watchdog_Next( after ) )           
ffc0dafc:	81 0a 00 00 	lwz     r8,0(r10)                              
ffc0db00:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0db04:	41 9e 00 44 	beq-    cr7,ffc0db48 <_Watchdog_Insert+0xe4>   
       break;                                                         
                                                                      
     if ( delta_interval < after->delta_interval ) {                  
ffc0db08:	81 0a 00 10 	lwz     r8,16(r10)                             
ffc0db0c:	7f 88 48 40 	cmplw   cr7,r8,r9                              
ffc0db10:	41 9d 00 80 	bgt-    cr7,ffc0db90 <_Watchdog_Insert+0x12c>  
       after->delta_interval -= delta_interval;                       
       break;                                                         
     }                                                                
                                                                      
     delta_interval -= after->delta_interval;                         
ffc0db14:	7d 28 48 50 	subf    r9,r8,r9                               
ffc0db18:	7d 00 00 a6 	mfmsr   r8                                     
ffc0db1c:	7c e0 01 24 	mtmsr   r7                                     
ffc0db20:	7d 00 01 24 	mtmsr   r8                                     
                                                                      
     _ISR_Flash( level );                                             
                                                                      
     if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {          
ffc0db24:	81 04 00 08 	lwz     r8,8(r4)                               
ffc0db28:	2f 88 00 01 	cmpwi   cr7,r8,1                               
ffc0db2c:	40 9e 00 4c 	bne-    cr7,ffc0db78 <_Watchdog_Insert+0x114>  <== NEVER TAKEN
       goto exit_insert;                                              
     }                                                                
                                                                      
     if ( _Watchdog_Sync_level > insert_isr_nest_level ) {            
ffc0db30:	81 05 00 00 	lwz     r8,0(r5)                               
ffc0db34:	7f 86 40 40 	cmplw   cr7,r6,r8                              
ffc0db38:	41 9c 00 94 	blt-    cr7,ffc0dbcc <_Watchdog_Insert+0x168>  <== NEVER TAKEN
                                                                      
  for ( after = _Watchdog_First( header ) ;                           
        ;                                                             
        after = _Watchdog_Next( after ) ) {                           
                                                                      
     if ( delta_interval == 0 || !_Watchdog_Next( after ) )           
ffc0db3c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
                                                                      
exit_insert:                                                          
  _Watchdog_Sync_level = insert_isr_nest_level;                       
  _Watchdog_Sync_count--;                                             
  _ISR_Enable( level );                                               
}                                                                     
ffc0db40:	81 4a 00 00 	lwz     r10,0(r10)                             
                                                                      
  for ( after = _Watchdog_First( header ) ;                           
        ;                                                             
        after = _Watchdog_Next( after ) ) {                           
                                                                      
     if ( delta_interval == 0 || !_Watchdog_Next( after ) )           
ffc0db44:	40 9e ff b8 	bne+    cr7,ffc0dafc <_Watchdog_Insert+0x98>   
                                                                      
  _Watchdog_Activate( the_watchdog );                                 
                                                                      
  the_watchdog->delta_interval = delta_interval;                      
                                                                      
  _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
ffc0db48:	81 4a 00 04 	lwz     r10,4(r10)                             
                                                                      
  the_watchdog->start_time = _Watchdog_Ticks_since_boot;              
ffc0db4c:	3c a0 00 00 	lis     r5,0                                   
ffc0db50:	80 a5 28 88 	lwz     r5,10376(r5)                           
RTEMS_INLINE_ROUTINE void _Watchdog_Activate(                         
  Watchdog_Control *the_watchdog                                      
)                                                                     
{                                                                     
                                                                      
  the_watchdog->state = WATCHDOG_ACTIVE;                              
ffc0db54:	38 60 00 02 	li      r3,2                                   
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
ffc0db58:	81 0a 00 00 	lwz     r8,0(r10)                              
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc0db5c:	91 44 00 04 	stw     r10,4(r4)                              
ffc0db60:	90 64 00 08 	stw     r3,8(r4)                               
     }                                                                
  }                                                                   
                                                                      
  _Watchdog_Activate( the_watchdog );                                 
                                                                      
  the_watchdog->delta_interval = delta_interval;                      
ffc0db64:	91 24 00 10 	stw     r9,16(r4)                              
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
ffc0db68:	90 8a 00 00 	stw     r4,0(r10)                              
  the_node->next        = before_node;                                
  before_node->previous = the_node;                                   
ffc0db6c:	90 88 00 04 	stw     r4,4(r8)                               
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
  the_node->next        = before_node;                                
ffc0db70:	91 04 00 00 	stw     r8,0(r4)                               
                                                                      
  _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
                                                                      
  the_watchdog->start_time = _Watchdog_Ticks_since_boot;              
ffc0db74:	90 a4 00 14 	stw     r5,20(r4)                              
                                                                      
exit_insert:                                                          
  _Watchdog_Sync_level = insert_isr_nest_level;                       
ffc0db78:	90 cc 28 7c 	stw     r6,10364(r12)                          
  _Watchdog_Sync_count--;                                             
ffc0db7c:	81 2b 28 84 	lwz     r9,10372(r11)                          
ffc0db80:	39 29 ff ff 	addi    r9,r9,-1                               
ffc0db84:	91 2b 28 84 	stw     r9,10372(r11)                          
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0db88:	7c e0 01 24 	mtmsr   r7                                     
ffc0db8c:	4e 80 00 20 	blr                                            
                                                                      
     if ( delta_interval == 0 || !_Watchdog_Next( after ) )           
       break;                                                         
                                                                      
     if ( delta_interval < after->delta_interval ) {                  
       after->delta_interval -= delta_interval;                       
ffc0db90:	7d 09 40 50 	subf    r8,r9,r8                               
ffc0db94:	91 0a 00 10 	stw     r8,16(r10)                             
                                                                      
  the_watchdog->delta_interval = delta_interval;                      
                                                                      
  _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
                                                                      
  the_watchdog->start_time = _Watchdog_Ticks_since_boot;              
ffc0db98:	3c a0 00 00 	lis     r5,0                                   
ffc0db9c:	38 60 00 02 	li      r3,2                                   
                                                                      
  _Watchdog_Activate( the_watchdog );                                 
                                                                      
  the_watchdog->delta_interval = delta_interval;                      
                                                                      
  _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
ffc0dba0:	81 4a 00 04 	lwz     r10,4(r10)                             
                                                                      
  the_watchdog->start_time = _Watchdog_Ticks_since_boot;              
ffc0dba4:	80 a5 28 88 	lwz     r5,10376(r5)                           
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
ffc0dba8:	81 0a 00 00 	lwz     r8,0(r10)                              
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc0dbac:	91 44 00 04 	stw     r10,4(r4)                              
ffc0dbb0:	90 64 00 08 	stw     r3,8(r4)                               
     }                                                                
  }                                                                   
                                                                      
  _Watchdog_Activate( the_watchdog );                                 
                                                                      
  the_watchdog->delta_interval = delta_interval;                      
ffc0dbb4:	91 24 00 10 	stw     r9,16(r4)                              
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
ffc0dbb8:	90 8a 00 00 	stw     r4,0(r10)                              
  the_node->next        = before_node;                                
  before_node->previous = the_node;                                   
ffc0dbbc:	90 88 00 04 	stw     r4,4(r8)                               
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
  the_node->next        = before_node;                                
ffc0dbc0:	91 04 00 00 	stw     r8,0(r4)                               
                                                                      
  _Chain_Insert_unprotected( after->Node.previous, &the_watchdog->Node );
                                                                      
  the_watchdog->start_time = _Watchdog_Ticks_since_boot;              
ffc0dbc4:	90 a4 00 14 	stw     r5,20(r4)                              
ffc0dbc8:	4b ff ff b0 	b       ffc0db78 <_Watchdog_Insert+0x114>      
     if ( the_watchdog->state != WATCHDOG_BEING_INSERTED ) {          
       goto exit_insert;                                              
     }                                                                
                                                                      
     if ( _Watchdog_Sync_level > insert_isr_nest_level ) {            
       _Watchdog_Sync_level = insert_isr_nest_level;                  
ffc0dbcc:	90 cc 28 7c 	stw     r6,10364(r12)                          
       goto restart;                                                  
ffc0dbd0:	4b ff fe d4 	b       ffc0daa4 <_Watchdog_Insert+0x40>       
                                                                      

ffc0dc2c <_Watchdog_Remove>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; __asm__ volatile (
ffc0dc2c:	7d 40 00 a6 	mfmsr   r10                                    
ffc0dc30:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0dc34:	7d 49 48 78 	andc    r9,r10,r9                              
ffc0dc38:	7d 20 01 24 	mtmsr   r9                                     
  ISR_Level         level;                                            
  Watchdog_States   previous_state;                                   
  Watchdog_Control *next_watchdog;                                    
                                                                      
  _ISR_Disable( level );                                              
  previous_state = the_watchdog->state;                               
ffc0dc3c:	81 23 00 08 	lwz     r9,8(r3)                               
  switch ( previous_state ) {                                         
ffc0dc40:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc0dc44:	41 9e 00 98 	beq-    cr7,ffc0dcdc <_Watchdog_Remove+0xb0>   
ffc0dc48:	2b 89 00 01 	cmplwi  cr7,r9,1                               
ffc0dc4c:	40 9c 00 1c 	bge-    cr7,ffc0dc68 <_Watchdog_Remove+0x3c>   
        _Watchdog_Sync_level = _ISR_Nest_level;                       
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
ffc0dc50:	3d 00 00 00 	lis     r8,0                                   
ffc0dc54:	81 08 28 88 	lwz     r8,10376(r8)                           
ffc0dc58:	91 03 00 18 	stw     r8,24(r3)                              
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0dc5c:	7d 40 01 24 	mtmsr   r10                                    
                                                                      
  _ISR_Enable( level );                                               
  return( previous_state );                                           
}                                                                     
ffc0dc60:	7d 23 4b 78 	mr      r3,r9                                  
ffc0dc64:	4e 80 00 20 	blr                                            
  Watchdog_States   previous_state;                                   
  Watchdog_Control *next_watchdog;                                    
                                                                      
  _ISR_Disable( level );                                              
  previous_state = the_watchdog->state;                               
  switch ( previous_state ) {                                         
ffc0dc68:	2b 89 00 03 	cmplwi  cr7,r9,3                               
ffc0dc6c:	41 bd ff e4 	bgt-    cr7,ffc0dc50 <_Watchdog_Remove+0x24>   <== NEVER TAKEN
      break;                                                          
                                                                      
    case WATCHDOG_ACTIVE:                                             
    case WATCHDOG_REMOVE_IT:                                          
                                                                      
      the_watchdog->state = WATCHDOG_INACTIVE;                        
ffc0dc70:	39 00 00 00 	li      r8,0                                   
ffc0dc74:	91 03 00 08 	stw     r8,8(r3)                               
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
                                                                      
  _ISR_Enable( level );                                               
  return( previous_state );                                           
}                                                                     
ffc0dc78:	81 03 00 00 	lwz     r8,0(r3)                               
    case WATCHDOG_REMOVE_IT:                                          
                                                                      
      the_watchdog->state = WATCHDOG_INACTIVE;                        
      next_watchdog = _Watchdog_Next( the_watchdog );                 
                                                                      
      if ( _Watchdog_Next(next_watchdog) )                            
ffc0dc7c:	80 e8 00 00 	lwz     r7,0(r8)                               
ffc0dc80:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc0dc84:	41 9e 00 14 	beq-    cr7,ffc0dc98 <_Watchdog_Remove+0x6c>   
        next_watchdog->delta_interval += the_watchdog->delta_interval;
ffc0dc88:	80 c8 00 10 	lwz     r6,16(r8)                              
ffc0dc8c:	80 e3 00 10 	lwz     r7,16(r3)                              
ffc0dc90:	7c e6 3a 14 	add     r7,r6,r7                               
ffc0dc94:	90 e8 00 10 	stw     r7,16(r8)                              
                                                                      
      if ( _Watchdog_Sync_count )                                     
ffc0dc98:	3c e0 00 00 	lis     r7,0                                   
ffc0dc9c:	80 e7 28 84 	lwz     r7,10372(r7)                           
ffc0dca0:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc0dca4:	41 9e 00 14 	beq-    cr7,ffc0dcb8 <_Watchdog_Remove+0x8c>   
        _Watchdog_Sync_level = _ISR_Nest_level;                       
ffc0dca8:	3c e0 00 00 	lis     r7,0                                   
ffc0dcac:	80 c7 31 a8 	lwz     r6,12712(r7)                           
ffc0dcb0:	3c e0 00 00 	lis     r7,0                                   
ffc0dcb4:	90 c7 28 7c 	stw     r6,10364(r7)                           
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
ffc0dcb8:	80 e3 00 04 	lwz     r7,4(r3)                               
  next->previous = previous;                                          
ffc0dcbc:	90 e8 00 04 	stw     r7,4(r8)                               
  previous->next = next;                                              
ffc0dcc0:	91 07 00 00 	stw     r8,0(r7)                               
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
ffc0dcc4:	3d 00 00 00 	lis     r8,0                                   
ffc0dcc8:	81 08 28 88 	lwz     r8,10376(r8)                           
ffc0dccc:	91 03 00 18 	stw     r8,24(r3)                              
ffc0dcd0:	7d 40 01 24 	mtmsr   r10                                    
                                                                      
  _ISR_Enable( level );                                               
  return( previous_state );                                           
}                                                                     
ffc0dcd4:	7d 23 4b 78 	mr      r3,r9                                  
ffc0dcd8:	4e 80 00 20 	blr                                            
                                                                      
      /*                                                              
       *  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;                        
ffc0dcdc:	39 00 00 00 	li      r8,0                                   
ffc0dce0:	91 03 00 08 	stw     r8,8(r3)                               
        _Watchdog_Sync_level = _ISR_Nest_level;                       
                                                                      
      _Chain_Extract_unprotected( &the_watchdog->Node );              
      break;                                                          
  }                                                                   
  the_watchdog->stop_time = _Watchdog_Ticks_since_boot;               
ffc0dce4:	3d 00 00 00 	lis     r8,0                                   
ffc0dce8:	81 08 28 88 	lwz     r8,10376(r8)                           
ffc0dcec:	91 03 00 18 	stw     r8,24(r3)                              
ffc0dcf0:	7d 40 01 24 	mtmsr   r10                                    
                                                                      
  _ISR_Enable( level );                                               
  return( previous_state );                                           
}                                                                     
ffc0dcf4:	7d 23 4b 78 	mr      r3,r9                                  
ffc0dcf8:	4e 80 00 20 	blr                                            
                                                                      

ffc0f1a4 <_Watchdog_Report_chain>: void _Watchdog_Report_chain( const char *name, Chain_Control *header ) {
ffc0f1a4:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0f1a8:	7c 08 02 a6 	mflr    r0                                     
ffc0f1ac:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc0f1b0:	7c 7d 1b 78 	mr      r29,r3                                 
ffc0f1b4:	93 c1 00 10 	stw     r30,16(r1)                             
ffc0f1b8:	7c 9e 23 78 	mr      r30,r4                                 
ffc0f1bc:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0f1c0:	93 81 00 08 	stw     r28,8(r1)                              
ffc0f1c4:	93 e1 00 14 	stw     r31,20(r1)                             
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0f1c8:	7f 80 00 a6 	mfmsr   r28                                    
ffc0f1cc:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc0f1d0:	7f 89 48 78 	andc    r9,r28,r9                              
ffc0f1d4:	7d 20 01 24 	mtmsr   r9                                     
  ISR_Level          level;                                           
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
ffc0f1d8:	3c 60 ff c2 	lis     r3,-62                                 
ffc0f1dc:	7f c5 f3 78 	mr      r5,r30                                 
ffc0f1e0:	38 63 21 24 	addi    r3,r3,8484                             
ffc0f1e4:	7f a4 eb 78 	mr      r4,r29                                 
ffc0f1e8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0f1ec:	4b ff 75 b9 	bl      ffc067a4 <printk>                      
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc0f1f0:	83 fe 00 00 	lwz     r31,0(r30)                             
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc0f1f4:	3b de 00 04 	addi    r30,r30,4                              
    if ( !_Chain_Is_empty( header ) ) {                               
ffc0f1f8:	7f 9f f0 00 	cmpw    cr7,r31,r30                            
ffc0f1fc:	41 9e 00 54 	beq-    cr7,ffc0f250 <_Watchdog_Report_chain+0xac>
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
ffc0f200:	7f e4 fb 78 	mr      r4,r31                                 
ffc0f204:	38 60 00 00 	li      r3,0                                   
ffc0f208:	48 00 00 5d 	bl      ffc0f264 <_Watchdog_Report>            
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
      for ( node = _Chain_First( header ) ;                           
            node != _Chain_Tail(header) ;                             
            node = node->next )                                       
ffc0f20c:	83 ff 00 00 	lwz     r31,0(r31)                             
  Chain_Node        *node;                                            
                                                                      
  _ISR_Disable( level );                                              
    printk( "Watchdog Chain: %s %p\n", name, header );                
    if ( !_Chain_Is_empty( header ) ) {                               
      for ( node = _Chain_First( header ) ;                           
ffc0f210:	7f 9f f0 00 	cmpw    cr7,r31,r30                            
ffc0f214:	40 9e ff ec 	bne+    cr7,ffc0f200 <_Watchdog_Report_chain+0x5c><== NEVER TAKEN
      {                                                               
        Watchdog_Control *watch = (Watchdog_Control *) node;          
                                                                      
        _Watchdog_Report( NULL, watch );                              
      }                                                               
      printk( "== end of %s \n", name );                              
ffc0f218:	3c 60 ff c2 	lis     r3,-62                                 
ffc0f21c:	38 63 21 3c 	addi    r3,r3,8508                             
ffc0f220:	7f a4 eb 78 	mr      r4,r29                                 
ffc0f224:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0f228:	4b ff 75 7d 	bl      ffc067a4 <printk>                      
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0f22c:	7f 80 01 24 	mtmsr   r28                                    
    } else {                                                          
      printk( "Chain is empty\n" );                                   
    }                                                                 
  _ISR_Enable( level );                                               
}                                                                     
ffc0f230:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0f234:	83 81 00 08 	lwz     r28,8(r1)                              
ffc0f238:	7c 08 03 a6 	mtlr    r0                                     
ffc0f23c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0f240:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0f244:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0f248:	38 21 00 18 	addi    r1,r1,24                               
ffc0f24c:	4e 80 00 20 	blr                                            
                                                                      
        _Watchdog_Report( NULL, watch );                              
      }                                                               
      printk( "== end of %s \n", name );                              
    } else {                                                          
      printk( "Chain is empty\n" );                                   
ffc0f250:	3c 60 ff c2 	lis     r3,-62                                 
ffc0f254:	38 63 21 4c 	addi    r3,r3,8524                             
ffc0f258:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0f25c:	4b ff 75 49 	bl      ffc067a4 <printk>                      
ffc0f260:	4b ff ff cc 	b       ffc0f22c <_Watchdog_Report_chain+0x88> 
                                                                      

ffc0ddd0 <_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();
ffc0ddd0:	3d 40 ff c2 	lis     r10,-62                                
void _Workspace_Handler_initialization(                               
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
ffc0ddd4:	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();    
ffc0ddd8:	39 2a ea f8 	addi    r9,r10,-5384                           
void _Workspace_Handler_initialization(                               
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
ffc0dddc:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0dde0:	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();    
ffc0dde4:	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                        
)                                                                     
{                                                                     
ffc0dde8:	93 21 00 14 	stw     r25,20(r1)                             
ffc0ddec:	7c b9 2b 78 	mr      r25,r5                                 
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
  uintptr_t remaining = rtems_configuration_get_work_space_size();    
ffc0ddf0:	2f 88 00 00 	cmpwi   cr7,r8,0                               
void _Workspace_Handler_initialization(                               
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
ffc0ddf4:	93 61 00 1c 	stw     r27,28(r1)                             
ffc0ddf8:	7c 9b 23 78 	mr      r27,r4                                 
ffc0ddfc:	93 81 00 20 	stw     r28,32(r1)                             
ffc0de00:	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();    
ffc0de04:	83 8a ea f8 	lwz     r28,-5384(r10)                         
ffc0de08:	39 40 00 00 	li      r10,0                                  
void _Workspace_Handler_initialization(                               
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
ffc0de0c:	93 01 00 10 	stw     r24,16(r1)                             
ffc0de10:	93 41 00 18 	stw     r26,24(r1)                             
ffc0de14:	93 a1 00 24 	stw     r29,36(r1)                             
ffc0de18:	93 c1 00 28 	stw     r30,40(r1)                             
ffc0de1c:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc0de20:	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();    
ffc0de24:	40 9e 00 08 	bne-    cr7,ffc0de2c <_Workspace_Handler_initialization+0x5c>
ffc0de28:	81 49 00 04 	lwz     r10,4(r9)                              
  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) {                                  
ffc0de2c:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
  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();    
ffc0de30:	7f 8a e2 14 	add     r28,r10,r28                            
  bool do_zero = rtems_configuration_get_do_zero_of_workspace();      
ffc0de34:	89 49 00 30 	lbz     r10,48(r9)                             
  bool unified = rtems_configuration_get_unified_work_area();         
ffc0de38:	89 29 00 31 	lbz     r9,49(r9)                              
  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) {                                  
ffc0de3c:	41 9e 00 a0 	beq-    cr7,ffc0dedc <_Workspace_Handler_initialization+0x10c><== NEVER TAKEN
ffc0de40:	2e 0a 00 00 	cmpwi   cr4,r10,0                              
                                                                      
    if ( area->size > overhead ) {                                    
      uintptr_t space_available;                                      
      uintptr_t size;                                                 
                                                                      
      if ( unified ) {                                                
ffc0de44:	2d 89 00 00 	cmpwi   cr3,r9,0                               
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
ffc0de48:	3f 40 ff c1 	lis     r26,-63                                
        } else {                                                      
          size = 0;                                                   
        }                                                             
      }                                                               
                                                                      
      space_available = (*init_or_extend)(                            
ffc0de4c:	3f 00 00 00 	lis     r24,0                                  
ffc0de50:	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) {                                  
ffc0de54:	3b a0 00 00 	li      r29,0                                  
  Heap_Area *areas,                                                   
  size_t area_count,                                                  
  Heap_Initialization_or_extend_handler extend                        
)                                                                     
{                                                                     
  Heap_Initialization_or_extend_handler init_or_extend = _Heap_Initialize;
ffc0de58:	3b 5a b0 60 	addi    r26,r26,-20384                         
        } else {                                                      
          size = 0;                                                   
        }                                                             
      }                                                               
                                                                      
      space_available = (*init_or_extend)(                            
ffc0de5c:	3b 18 2d 14 	addi    r24,r24,11540                          
  size_t i;                                                           
                                                                      
  for (i = 0; i < area_count; ++i) {                                  
    Heap_Area *area = &areas [i];                                     
                                                                      
    if ( do_zero ) {                                                  
ffc0de60:	40 92 00 bc 	bne-    cr4,ffc0df1c <_Workspace_Handler_initialization+0x14c>
      memset( area->begin, 0, area->size );                           
    }                                                                 
                                                                      
    if ( area->size > overhead ) {                                    
ffc0de64:	83 df 00 04 	lwz     r30,4(r31)                             
ffc0de68:	2b 9e 00 16 	cmplwi  cr7,r30,22                             
ffc0de6c:	40 9d 00 60 	ble-    cr7,ffc0decc <_Workspace_Handler_initialization+0xfc>
      uintptr_t space_available;                                      
      uintptr_t size;                                                 
                                                                      
      if ( unified ) {                                                
ffc0de70:	40 8e 00 1c 	bne-    cr3,ffc0de8c <_Workspace_Handler_initialization+0xbc>
        size = area->size;                                            
      } else {                                                        
        if ( remaining > 0 ) {                                        
ffc0de74:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc0de78:	41 9e 00 b8 	beq-    cr7,ffc0df30 <_Workspace_Handler_initialization+0x160><== NEVER TAKEN
          size = remaining < area->size - overhead ?                  
ffc0de7c:	39 3e ff ea 	addi    r9,r30,-22                             
            remaining + overhead : area->size;                        
ffc0de80:	7f 89 e0 40 	cmplw   cr7,r9,r28                             
ffc0de84:	40 9d 00 08 	ble-    cr7,ffc0de8c <_Workspace_Handler_initialization+0xbc><== NEVER TAKEN
ffc0de88:	3b dc 00 16 	addi    r30,r28,22                             
        } else {                                                      
          size = 0;                                                   
        }                                                             
      }                                                               
                                                                      
      space_available = (*init_or_extend)(                            
ffc0de8c:	7f c5 f3 78 	mr      r5,r30                                 
ffc0de90:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc0de94:	7f 03 c3 78 	mr      r3,r24                                 
ffc0de98:	7f 49 03 a6 	mtctr   r26                                    
ffc0de9c:	38 c0 00 08 	li      r6,8                                   
ffc0dea0:	4e 80 04 21 	bctrl                                          
        area->begin,                                                  
        size,                                                         
        page_size                                                     
      );                                                              
                                                                      
      area->begin = (char *) area->begin + size;                      
ffc0dea4:	81 5f 00 00 	lwz     r10,0(r31)                             
      area->size -= size;                                             
                                                                      
      if ( space_available < remaining ) {                            
ffc0dea8:	7f 83 e0 40 	cmplw   cr7,r3,r28                             
        size,                                                         
        page_size                                                     
      );                                                              
                                                                      
      area->begin = (char *) area->begin + size;                      
      area->size -= size;                                             
ffc0deac:	81 3f 00 04 	lwz     r9,4(r31)                              
        area->begin,                                                  
        size,                                                         
        page_size                                                     
      );                                                              
                                                                      
      area->begin = (char *) area->begin + size;                      
ffc0deb0:	7d 4a f2 14 	add     r10,r10,r30                            
      area->size -= size;                                             
ffc0deb4:	7f de 48 50 	subf    r30,r30,r9                             
        area->begin,                                                  
        size,                                                         
        page_size                                                     
      );                                                              
                                                                      
      area->begin = (char *) area->begin + size;                      
ffc0deb8:	91 5f 00 00 	stw     r10,0(r31)                             
      area->size -= size;                                             
ffc0debc:	93 df 00 04 	stw     r30,4(r31)                             
                                                                      
      if ( space_available < remaining ) {                            
ffc0dec0:	40 9c 00 90 	bge-    cr7,ffc0df50 <_Workspace_Handler_initialization+0x180><== ALWAYS TAKEN
        remaining -= space_available;                                 
ffc0dec4:	7f 83 e0 50 	subf    r28,r3,r28                             <== NOT EXECUTED
      } else {                                                        
        remaining = 0;                                                
      }                                                               
                                                                      
      init_or_extend = extend;                                        
ffc0dec8:	7f 3a cb 78 	mr      r26,r25                                <== NOT EXECUTED
  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) {                                  
ffc0decc:	3b bd 00 01 	addi    r29,r29,1                              
ffc0ded0:	7f 9d d8 00 	cmpw    cr7,r29,r27                            
ffc0ded4:	3b ff 00 08 	addi    r31,r31,8                              
ffc0ded8:	40 9e ff 88 	bne+    cr7,ffc0de60 <_Workspace_Handler_initialization+0x90><== NEVER TAKEN
                                                                      
      init_or_extend = extend;                                        
    }                                                                 
  }                                                                   
                                                                      
  if ( remaining > 0 ) {                                              
ffc0dedc:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc0dee0:	40 9e 00 7c 	bne-    cr7,ffc0df5c <_Workspace_Handler_initialization+0x18c>
      INTERNAL_ERROR_CORE,                                            
      true,                                                           
      INTERNAL_ERROR_TOO_LITTLE_WORKSPACE                             
    );                                                                
  }                                                                   
}                                                                     
ffc0dee4:	80 01 00 34 	lwz     r0,52(r1)                              
ffc0dee8:	81 81 00 0c 	lwz     r12,12(r1)                             
ffc0deec:	7c 08 03 a6 	mtlr    r0                                     
ffc0def0:	83 01 00 10 	lwz     r24,16(r1)                             
ffc0def4:	83 21 00 14 	lwz     r25,20(r1)                             
ffc0def8:	7d 81 81 20 	mtcrf   24,r12                                 
ffc0defc:	83 41 00 18 	lwz     r26,24(r1)                             
ffc0df00:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc0df04:	83 81 00 20 	lwz     r28,32(r1)                             
ffc0df08:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc0df0c:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc0df10:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc0df14:	38 21 00 30 	addi    r1,r1,48                               
ffc0df18:	4e 80 00 20 	blr                                            
                                                                      
  for (i = 0; i < area_count; ++i) {                                  
    Heap_Area *area = &areas [i];                                     
                                                                      
    if ( do_zero ) {                                                  
      memset( area->begin, 0, area->size );                           
ffc0df1c:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc0df20:	38 80 00 00 	li      r4,0                                   
ffc0df24:	80 bf 00 04 	lwz     r5,4(r31)                              
ffc0df28:	48 00 5f 49 	bl      ffc13e70 <memset>                      
ffc0df2c:	4b ff ff 38 	b       ffc0de64 <_Workspace_Handler_initialization+0x94>
        } else {                                                      
          size = 0;                                                   
        }                                                             
      }                                                               
                                                                      
      space_available = (*init_or_extend)(                            
ffc0df30:	7f 49 03 a6 	mtctr   r26                                    <== NOT EXECUTED
ffc0df34:	7f 03 c3 78 	mr      r3,r24                                 <== NOT EXECUTED
ffc0df38:	80 9f 00 00 	lwz     r4,0(r31)                              <== NOT EXECUTED
ffc0df3c:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc0df40:	38 c0 00 08 	li      r6,8                                   <== NOT EXECUTED
        remaining -= space_available;                                 
      } else {                                                        
        remaining = 0;                                                
      }                                                               
                                                                      
      init_or_extend = extend;                                        
ffc0df44:	7f 3a cb 78 	mr      r26,r25                                <== NOT EXECUTED
        } else {                                                      
          size = 0;                                                   
        }                                                             
      }                                                               
                                                                      
      space_available = (*init_or_extend)(                            
ffc0df48:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc0df4c:	4b ff ff 80 	b       ffc0decc <_Workspace_Handler_initialization+0xfc><== NOT EXECUTED
        remaining -= space_available;                                 
      } else {                                                        
        remaining = 0;                                                
      }                                                               
                                                                      
      init_or_extend = extend;                                        
ffc0df50:	7f 3a cb 78 	mr      r26,r25                                
      area->size -= size;                                             
                                                                      
      if ( space_available < remaining ) {                            
        remaining -= space_available;                                 
      } else {                                                        
        remaining = 0;                                                
ffc0df54:	3b 80 00 00 	li      r28,0                                  
ffc0df58:	4b ff ff 74 	b       ffc0decc <_Workspace_Handler_initialization+0xfc>
      init_or_extend = extend;                                        
    }                                                                 
  }                                                                   
                                                                      
  if ( remaining > 0 ) {                                              
    _Internal_error_Occurred(                                         
ffc0df5c:	38 60 00 00 	li      r3,0                                   
ffc0df60:	38 80 00 01 	li      r4,1                                   
ffc0df64:	38 a0 00 02 	li      r5,2                                   
ffc0df68:	4b ff d4 09 	bl      ffc0b370 <_Internal_error_Occurred>    
                                                                      

ffc17250 <_fat_block_read>: uint32_t start, uint32_t offset, uint32_t count, void *buff ) {
ffc17250:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc17254:	7c 08 02 a6 	mflr    r0                                     
ffc17258:	93 c1 00 30 	stw     r30,48(r1)                             
    uint32_t                sec_num = start;                          
    uint32_t                ofs = offset;                             
    uint8_t                *sec_buf;                                  
    uint32_t                c = 0;                                    
                                                                      
    while (count > 0)                                                 
ffc1725c:	7c de 33 79 	mr.     r30,r6                                 
    uint32_t                              start,                      
    uint32_t                              offset,                     
    uint32_t                              count,                      
    void                                 *buff                        
    )                                                                 
{                                                                     
ffc17260:	90 01 00 3c 	stw     r0,60(r1)                              
ffc17264:	93 21 00 1c 	stw     r25,28(r1)                             
ffc17268:	93 41 00 20 	stw     r26,32(r1)                             
ffc1726c:	93 61 00 24 	stw     r27,36(r1)                             
ffc17270:	93 81 00 28 	stw     r28,40(r1)                             
ffc17274:	93 a1 00 2c 	stw     r29,44(r1)                             
ffc17278:	93 e1 00 34 	stw     r31,52(r1)                             
    uint32_t                sec_num = start;                          
    uint32_t                ofs = offset;                             
    uint8_t                *sec_buf;                                  
    uint32_t                c = 0;                                    
                                                                      
    while (count > 0)                                                 
ffc1727c:	41 82 00 a8 	beq-    ffc17324 <_fat_block_read+0xd4>        <== NEVER TAKEN
ffc17280:	7c 7a 1b 78 	mr      r26,r3                                 
ffc17284:	7c f9 3b 78 	mr      r25,r7                                 
ffc17288:	7c bb 2b 78 	mr      r27,r5                                 
ffc1728c:	7c 9c 23 78 	mr      r28,r4                                 
ffc17290:	3b a0 00 00 	li      r29,0                                  
ffc17294:	48 00 00 38 	b       ffc172cc <_fat_block_read+0x7c>        
    {                                                                 
        rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_READ, &sec_buf);
        if (rc != RC_OK)                                              
            return -1;                                                
                                                                      
        c = MIN(count, (fs_info->vol.bps - ofs));                     
ffc17298:	a3 fa 00 00 	lhz     r31,0(r26)                             
        memcpy((buff + cmpltd), (sec_buf + ofs), c);                  
ffc1729c:	80 81 00 08 	lwz     r4,8(r1)                               
    {                                                                 
        rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_READ, &sec_buf);
        if (rc != RC_OK)                                              
            return -1;                                                
                                                                      
        c = MIN(count, (fs_info->vol.bps - ofs));                     
ffc172a0:	7f fb f8 50 	subf    r31,r27,r31                            
ffc172a4:	7f 9f f0 40 	cmplw   cr7,r31,r30                            
        memcpy((buff + cmpltd), (sec_buf + ofs), c);                  
ffc172a8:	7c 84 da 14 	add     r4,r4,r27                              
    {                                                                 
        rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_READ, &sec_buf);
        if (rc != RC_OK)                                              
            return -1;                                                
                                                                      
        c = MIN(count, (fs_info->vol.bps - ofs));                     
ffc172ac:	40 9d 00 08 	ble-    cr7,ffc172b4 <_fat_block_read+0x64>    
ffc172b0:	7f df f3 78 	mr      r31,r30                                
        memcpy((buff + cmpltd), (sec_buf + ofs), c);                  
ffc172b4:	7f e5 fb 78 	mr      r5,r31                                 
ffc172b8:	48 00 b0 c5 	bl      ffc2237c <memcpy>                      
    uint32_t                sec_num = start;                          
    uint32_t                ofs = offset;                             
    uint8_t                *sec_buf;                                  
    uint32_t                c = 0;                                    
                                                                      
    while (count > 0)                                                 
ffc172bc:	7f df f0 51 	subf.   r30,r31,r30                            
                                                                      
        c = MIN(count, (fs_info->vol.bps - ofs));                     
        memcpy((buff + cmpltd), (sec_buf + ofs), c);                  
                                                                      
        count -= c;                                                   
        cmpltd += c;                                                  
ffc172c0:	7f bf ea 14 	add     r29,r31,r29                            
        sec_num++;                                                    
        ofs = 0;                                                      
ffc172c4:	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)                                                 
ffc172c8:	41 82 00 2c 	beq-    ffc172f4 <_fat_block_read+0xa4>        
    {                                                                 
        rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_READ, &sec_buf);
ffc172cc:	7f 84 e3 78 	mr      r4,r28                                 
ffc172d0:	38 a0 00 01 	li      r5,1                                   
ffc172d4:	38 c1 00 08 	addi    r6,r1,8                                
ffc172d8:	7f 43 d3 78 	mr      r3,r26                                 
ffc172dc:	4b ff fe 7d 	bl      ffc17158 <fat_buf_access>              
        c = MIN(count, (fs_info->vol.bps - ofs));                     
        memcpy((buff + cmpltd), (sec_buf + ofs), c);                  
                                                                      
        count -= c;                                                   
        cmpltd += c;                                                  
        sec_num++;                                                    
ffc172e0:	3b 9c 00 01 	addi    r28,r28,1                              
    uint32_t                c = 0;                                    
                                                                      
    while (count > 0)                                                 
    {                                                                 
        rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_READ, &sec_buf);
        if (rc != RC_OK)                                              
ffc172e4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
            return -1;                                                
                                                                      
        c = MIN(count, (fs_info->vol.bps - ofs));                     
        memcpy((buff + cmpltd), (sec_buf + ofs), c);                  
ffc172e8:	7c 79 ea 14 	add     r3,r25,r29                             
    uint32_t                c = 0;                                    
                                                                      
    while (count > 0)                                                 
    {                                                                 
        rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_READ, &sec_buf);
        if (rc != RC_OK)                                              
ffc172ec:	41 9e ff ac 	beq+    cr7,ffc17298 <_fat_block_read+0x48>    <== ALWAYS TAKEN
            return -1;                                                
ffc172f0:	3b a0 ff ff 	li      r29,-1                                 <== NOT EXECUTED
        cmpltd += c;                                                  
        sec_num++;                                                    
        ofs = 0;                                                      
    }                                                                 
    return cmpltd;                                                    
}                                                                     
ffc172f4:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc172f8:	7f a3 eb 78 	mr      r3,r29                                 
ffc172fc:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc17300:	7c 08 03 a6 	mtlr    r0                                     
ffc17304:	83 41 00 20 	lwz     r26,32(r1)                             
ffc17308:	83 61 00 24 	lwz     r27,36(r1)                             
ffc1730c:	83 81 00 28 	lwz     r28,40(r1)                             
ffc17310:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc17314:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc17318:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc1731c:	38 21 00 38 	addi    r1,r1,56                               
ffc17320:	4e 80 00 20 	blr                                            
    uint32_t                              count,                      
    void                                 *buff                        
    )                                                                 
{                                                                     
    int                     rc = RC_OK;                               
    ssize_t                 cmpltd = 0;                               
ffc17324:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
ffc17328:	4b ff ff cc 	b       ffc172f4 <_fat_block_read+0xa4>        <== NOT EXECUTED
                                                                      

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

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

ffc09418 <adjtime>: */ int adjtime( const struct timeval *delta, struct timeval *olddelta ) {
ffc09418:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0941c:	7d 80 00 26 	mfcr    r12                                    
ffc09420:	7c 08 02 a6 	mflr    r0                                     
ffc09424:	93 81 00 20 	stw     r28,32(r1)                             
  long   adjustment;                                                  
                                                                      
  /*                                                                  
   * Simple validations                                               
   */                                                                 
  if ( !delta )                                                       
ffc09428:	7c 7c 1b 79 	mr.     r28,r3                                 
 */                                                                   
int  adjtime(                                                         
  const struct timeval *delta,                                        
  struct timeval *olddelta                                            
)                                                                     
{                                                                     
ffc0942c:	90 01 00 34 	stw     r0,52(r1)                              
ffc09430:	93 61 00 1c 	stw     r27,28(r1)                             
ffc09434:	93 a1 00 24 	stw     r29,36(r1)                             
ffc09438:	93 c1 00 28 	stw     r30,40(r1)                             
ffc0943c:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc09440:	91 81 00 18 	stw     r12,24(r1)                             
  long   adjustment;                                                  
                                                                      
  /*                                                                  
   * Simple validations                                               
   */                                                                 
  if ( !delta )                                                       
ffc09444:	41 82 01 a4 	beq-    ffc095e8 <adjtime+0x1d0>               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND )                
ffc09448:	81 5c 00 04 	lwz     r10,4(r28)                             
ffc0944c:	3d 20 00 0f 	lis     r9,15                                  
ffc09450:	61 29 42 3f 	ori     r9,r9,16959                            
ffc09454:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc09458:	41 9d 01 90 	bgt-    cr7,ffc095e8 <adjtime+0x1d0>           
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( olddelta ) {                                                   
ffc0945c:	2e 04 00 00 	cmpwi   cr4,r4,0                               
ffc09460:	7c 9b 23 78 	mr      r27,r4                                 
ffc09464:	41 92 00 14 	beq-    cr4,ffc09478 <adjtime+0x60>            
    olddelta->tv_sec  = 0;                                            
ffc09468:	39 20 00 00 	li      r9,0                                   
    olddelta->tv_usec = 0;                                            
ffc0946c:	91 24 00 04 	stw     r9,4(r4)                               
                                                                      
  if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND )                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( olddelta ) {                                                   
    olddelta->tv_sec  = 0;                                            
ffc09470:	91 24 00 00 	stw     r9,0(r4)                               
ffc09474:	81 5c 00 04 	lwz     r10,4(r28)                             
    olddelta->tv_usec = 0;                                            
  }                                                                   
                                                                      
  /* convert delta to microseconds */                                 
  adjustment  = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND);        
ffc09478:	81 3c 00 00 	lwz     r9,0(r28)                              
ffc0947c:	55 27 40 2e 	rlwinm  r7,r9,8,0,23                           
ffc09480:	55 28 18 38 	rlwinm  r8,r9,3,0,28                           
ffc09484:	7d 08 38 50 	subf    r8,r8,r7                               
ffc09488:	55 07 30 32 	rlwinm  r7,r8,6,0,25                           
ffc0948c:	7d 08 38 50 	subf    r8,r8,r7                               
ffc09490:	7d 28 4a 14 	add     r9,r8,r9                               
  adjustment += delta->tv_usec;                                       
                                                                      
  /* too small to account for */                                      
  if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) 
ffc09494:	3d 00 ff c2 	lis     r8,-62                                 
    olddelta->tv_sec  = 0;                                            
    olddelta->tv_usec = 0;                                            
  }                                                                   
                                                                      
  /* convert delta to microseconds */                                 
  adjustment  = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND);        
ffc09498:	55 29 30 32 	rlwinm  r9,r9,6,0,25                           
  adjustment += delta->tv_usec;                                       
                                                                      
  /* too small to account for */                                      
  if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) 
ffc0949c:	80 e8 b7 00 	lwz     r7,-18688(r8)                          
    olddelta->tv_usec = 0;                                            
  }                                                                   
                                                                      
  /* convert delta to microseconds */                                 
  adjustment  = (delta->tv_sec * TOD_MICROSECONDS_PER_SECOND);        
  adjustment += delta->tv_usec;                                       
ffc094a0:	7d 49 52 14 	add     r10,r9,r10                             
                                                                      
  /* too small to account for */                                      
  if ( adjustment < rtems_configuration_get_microseconds_per_tick() ) 
ffc094a4:	7f 8a 38 40 	cmplw   cr7,r10,r7                             
ffc094a8:	40 9c 00 34 	bge-    cr7,ffc094dc <adjtime+0xc4>            
                                                                      
  /* set the user's output */                                         
  if ( olddelta )                                                     
    *olddelta = *delta;                                               
                                                                      
  return 0;                                                           
ffc094ac:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc094b0:	80 01 00 34 	lwz     r0,52(r1)                              
ffc094b4:	81 81 00 18 	lwz     r12,24(r1)                             
ffc094b8:	7c 08 03 a6 	mtlr    r0                                     
ffc094bc:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc094c0:	83 81 00 20 	lwz     r28,32(r1)                             
ffc094c4:	7d 80 81 20 	mtcrf   8,r12                                  
ffc094c8:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc094cc:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc094d0:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc094d4:	38 21 00 30 	addi    r1,r1,48                               
ffc094d8:	4e 80 00 20 	blr                                            
   *                                                                  
   * 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;                  
ffc094dc:	3d 20 00 00 	lis     r9,0                                   
ffc094e0:	81 49 29 84 	lwz     r10,10628(r9)                          
                                                                      
    ++level;                                                          
ffc094e4:	39 4a 00 01 	addi    r10,r10,1                              
    _Thread_Dispatch_disable_level = level;                           
ffc094e8:	91 49 29 84 	stw     r10,10628(r9)                          
)                                                                     
{                                                                     
  Timestamp_Control  tod_as_timestamp;                                
  Timestamp_Control *tod_as_timestamp_ptr;                            
                                                                      
  tod_as_timestamp_ptr =                                              
ffc094ec:	3c 80 00 00 	lis     r4,0                                   
ffc094f0:	38 84 2d a0 	addi    r4,r4,11680                            
ffc094f4:	38 61 00 08 	addi    r3,r1,8                                
ffc094f8:	48 00 1f 39 	bl      ffc0b430 <_TOD_Get_with_nanoseconds>   
static inline void _Timestamp64_implementation_To_timespec(           
  const Timestamp64_Control *_timestamp,                              
  struct timespec           *_timespec                                
)                                                                     
{                                                                     
  _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);           
ffc094fc:	3c c0 3b 9a 	lis     r6,15258                               
ffc09500:	83 e3 00 04 	lwz     r31,4(r3)                              
ffc09504:	38 a0 00 00 	li      r5,0                                   
ffc09508:	83 c3 00 00 	lwz     r30,0(r3)                              
ffc0950c:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc09510:	7f e4 fb 78 	mr      r4,r31                                 
ffc09514:	7f c3 f3 78 	mr      r3,r30                                 
ffc09518:	48 01 02 2d 	bl      ffc19744 <__divdi3>                    
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
    _TOD_Get( &ts );                                                  
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
ffc0951c:	83 bc 00 00 	lwz     r29,0(r28)                             
  _timespec->tv_nsec = (long) (*_timestamp % 1000000000L);            
ffc09520:	3c c0 3b 9a 	lis     r6,15258                               
ffc09524:	7f bd 22 14 	add     r29,r29,r4                             
ffc09528:	38 a0 00 00 	li      r5,0                                   
ffc0952c:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc09530:	7f c3 f3 78 	mr      r3,r30                                 
ffc09534:	7f e4 fb 78 	mr      r4,r31                                 
ffc09538:	48 01 06 31 	bl      ffc19b68 <__moddi3>                    
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
ffc0953c:	81 3c 00 04 	lwz     r9,4(r28)                              
                                                                      
    /* if adjustment is too much positive */                          
    while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {              
ffc09540:	3d 40 3b 9a 	lis     r10,15258                              
  _Thread_Disable_dispatch();                                         
                                                                      
    _TOD_Get( &ts );                                                  
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
ffc09544:	1d 29 03 e8 	mulli   r9,r9,1000                             
                                                                      
    /* if adjustment is too much positive */                          
    while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {              
ffc09548:	61 4a c9 ff 	ori     r10,r10,51711                          
  _Thread_Disable_dispatch();                                         
                                                                      
    _TOD_Get( &ts );                                                  
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
ffc0954c:	7c 84 4a 14 	add     r4,r4,r9                               
                                                                      
    /* if adjustment is too much positive */                          
    while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {              
ffc09550:	7f 84 50 40 	cmplw   cr7,r4,r10                             
int _EXFUN(setitimer, (int __which, const struct itimerval *__value,  
					struct itimerval *__ovalue));                                    
                                                                      
#if defined(__rtems__)                                                
/* BSD function used by RTEMS code */                                 
int _EXFUN(adjtime,(const struct timeval *, struct timeval *));       
ffc09554:	39 1d 00 01 	addi    r8,r29,1                               
ffc09558:	40 9d 00 1c 	ble-    cr7,ffc09574 <adjtime+0x15c>           
      ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;                       
ffc0955c:	3d 24 c4 65 	addis   r9,r4,-15259                           
ffc09560:	38 89 36 00 	addi    r4,r9,13824                            
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
                                                                      
    /* if adjustment is too much positive */                          
    while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {              
ffc09564:	7f 84 50 40 	cmplw   cr7,r4,r10                             
      ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;                       
      ts.tv_sec++;                                                    
ffc09568:	7d 1d 43 78 	mr      r29,r8                                 
ffc0956c:	39 08 00 01 	addi    r8,r8,1                                
                                                                      
    ts.tv_sec  += delta->tv_sec;                                      
    ts.tv_nsec += delta->tv_usec * TOD_NANOSECONDS_PER_MICROSECOND;   
                                                                      
    /* if adjustment is too much positive */                          
    while ( ts.tv_nsec >= TOD_NANOSECONDS_PER_SECOND ) {              
ffc09570:	41 9d ff ec 	bgt+    cr7,ffc0955c <adjtime+0x144>           <== NEVER TAKEN
      ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;                       
      ts.tv_sec++;                                                    
    }                                                                 
                                                                      
    /* if adjustment is too much negative */                          
    while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {       
ffc09574:	3d 20 c4 65 	lis     r9,-15259                              
ffc09578:	7c 87 23 78 	mr      r7,r4                                  
ffc0957c:	39 5d ff ff 	addi    r10,r29,-1                             
ffc09580:	61 29 36 00 	ori     r9,r9,13824                            
      ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND;                       
ffc09584:	3c e7 3b 9b 	addis   r7,r7,15259                            
ffc09588:	38 e7 ca 00 	addi    r7,r7,-13824                           
      ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;                       
      ts.tv_sec++;                                                    
    }                                                                 
                                                                      
    /* if adjustment is too much negative */                          
    while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {       
ffc0958c:	7f 87 48 40 	cmplw   cr7,r7,r9                              
      ts.tv_nsec += TOD_NANOSECONDS_PER_SECOND;                       
      ts.tv_sec--;                                                    
ffc09590:	7d 46 53 78 	mr      r6,r10                                 
ffc09594:	39 4a ff ff 	addi    r10,r10,-1                             
      ts.tv_nsec -= TOD_NANOSECONDS_PER_SECOND;                       
      ts.tv_sec++;                                                    
    }                                                                 
                                                                      
    /* if adjustment is too much negative */                          
    while ( ts.tv_nsec <= (-1 * TOD_NANOSECONDS_PER_SECOND) ) {       
ffc09598:	40 9d ff ec 	ble+    cr7,ffc09584 <adjtime+0x16c>           
  Timestamp64_Control *_time,                                         
  Timestamp64_Control  _seconds,                                      
  Timestamp64_Control  _nanoseconds                                   
)                                                                     
{                                                                     
  *_time = _seconds * 1000000000L + _nanoseconds;                     
ffc0959c:	3c a0 3b 9a 	lis     r5,15258                               
ffc095a0:	60 a5 ca 00 	ori     r5,r5,51712                            
ffc095a4:	7d 06 28 96 	mulhw   r8,r6,r5                               
ffc095a8:	7d 26 29 d6 	mullw   r9,r6,r5                               
  const struct timespec *tod_as_timespec                              
)                                                                     
{                                                                     
  Timestamp_Control tod_as_timestamp;                                 
                                                                      
  _Timestamp_Set(                                                     
ffc095ac:	7c eb 3b 78 	mr      r11,r7                                 
ffc095b0:	7c ea fe 70 	srawi   r10,r7,31                              
ffc095b4:	7d 6b 48 14 	addc    r11,r11,r9                             
ffc095b8:	7d 4a 41 14 	adde    r10,r10,r8                             
ffc095bc:	91 41 00 08 	stw     r10,8(r1)                              
    &tod_as_timestamp,                                                
    tod_as_timespec->tv_sec,                                          
    tod_as_timespec->tv_nsec                                          
  );                                                                  
  _TOD_Set_with_timestamp( &tod_as_timestamp );                       
ffc095c0:	38 61 00 08 	addi    r3,r1,8                                
ffc095c4:	91 61 00 0c 	stw     r11,12(r1)                             
ffc095c8:	48 00 1f 25 	bl      ffc0b4ec <_TOD_Set_with_timestamp>     
      ts.tv_sec--;                                                    
    }                                                                 
                                                                      
    _TOD_Set( &ts );                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
ffc095cc:	48 00 3c 2d 	bl      ffc0d1f8 <_Thread_Enable_dispatch>     
                                                                      
  /* set the user's output */                                         
  if ( olddelta )                                                     
ffc095d0:	41 b2 fe dc 	beq-    cr4,ffc094ac <adjtime+0x94>            
    *olddelta = *delta;                                               
ffc095d4:	81 3c 00 00 	lwz     r9,0(r28)                              
ffc095d8:	81 5c 00 04 	lwz     r10,4(r28)                             
ffc095dc:	91 3b 00 00 	stw     r9,0(r27)                              
ffc095e0:	91 5b 00 04 	stw     r10,4(r27)                             
ffc095e4:	4b ff fe c8 	b       ffc094ac <adjtime+0x94>                
   */                                                                 
  if ( !delta )                                                       
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( delta->tv_usec >= TOD_MICROSECONDS_PER_SECOND )                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc095e8:	48 00 a2 41 	bl      ffc13828 <__errno>                     
ffc095ec:	39 20 00 16 	li      r9,22                                  
ffc095f0:	91 23 00 00 	stw     r9,0(r3)                               
ffc095f4:	38 60 ff ff 	li      r3,-1                                  
ffc095f8:	4b ff fe b8 	b       ffc094b0 <adjtime+0x98>                
                                                                      

ffc096d4 <aio_cancel>: #include <stdlib.h> #include <rtems/system.h> #include <rtems/seterr.h> int aio_cancel(int fildes, struct aiocb *aiocbp) {
ffc096d4:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc096d8:	7c 08 02 a6 	mflr    r0                                     
ffc096dc:	93 e1 00 14 	stw     r31,20(r1)                             
  rtems_aio_request_chain *r_chain;                                   
  int result;                                                         
                                                                      
  pthread_mutex_lock (&aio_request_queue.mutex);                      
ffc096e0:	3f e0 00 00 	lis     r31,0                                  
ffc096e4:	3b ff 2b b8 	addi    r31,r31,11192                          
#include <stdlib.h>                                                   
#include <rtems/system.h>                                             
#include <rtems/seterr.h>                                             
                                                                      
int aio_cancel(int fildes, struct aiocb  *aiocbp)                     
{                                                                     
ffc096e8:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc096ec:	7c 7d 1b 78 	mr      r29,r3                                 
  rtems_aio_request_chain *r_chain;                                   
  int result;                                                         
                                                                      
  pthread_mutex_lock (&aio_request_queue.mutex);                      
ffc096f0:	7f e3 fb 78 	mr      r3,r31                                 
#include <stdlib.h>                                                   
#include <rtems/system.h>                                             
#include <rtems/seterr.h>                                             
                                                                      
int aio_cancel(int fildes, struct aiocb  *aiocbp)                     
{                                                                     
ffc096f4:	90 01 00 1c 	stw     r0,28(r1)                              
ffc096f8:	93 c1 00 10 	stw     r30,16(r1)                             
ffc096fc:	7c 9e 23 78 	mr      r30,r4                                 
ffc09700:	93 81 00 08 	stw     r28,8(r1)                              
  rtems_aio_request_chain *r_chain;                                   
  int result;                                                         
                                                                      
  pthread_mutex_lock (&aio_request_queue.mutex);                      
ffc09704:	48 00 16 dd 	bl      ffc0ade0 <pthread_mutex_lock>          
                                                                      
  if (fcntl (fildes, F_GETFD) < 0) {                                  
ffc09708:	7f a3 eb 78 	mr      r3,r29                                 
ffc0970c:	38 80 00 01 	li      r4,1                                   
ffc09710:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc09714:	48 00 7f d1 	bl      ffc116e4 <fcntl>                       
ffc09718:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0971c:	41 9c 01 bc 	blt-    cr7,ffc098d8 <aio_cancel+0x204>        
    pthread_mutex_unlock(&aio_request_queue.mutex);                   
    rtems_set_errno_and_return_minus_one (EBADF);                     
  }                                                                   
                                                                      
  /* if aiocbp is NULL remove all request for given file descriptor */
  if (aiocbp == NULL) {                                               
ffc09720:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc09724:	41 9e 01 08 	beq-    cr7,ffc0982c <aio_cancel+0x158>        
    pthread_mutex_unlock (&aio_request_queue.mutex);                  
    return AIO_CANCELED;                                              
  } else {                                                            
    AIO_printf ("Cancel request\n");                                  
                                                                      
    if (aiocbp->aio_fildes != fildes) {                               
ffc09728:	83 9e 00 00 	lwz     r28,0(r30)                             
ffc0972c:	7f 9c e8 00 	cmpw    cr7,r28,r29                            
ffc09730:	40 9e 00 e0 	bne-    cr7,ffc09810 <aio_cancel+0x13c>        
      pthread_mutex_unlock (&aio_request_queue.mutex);                
      rtems_set_errno_and_return_minus_one (EINVAL);                  
    }                                                                 
                                                                      
    r_chain = rtems_aio_search_fd (&aio_request_queue.work_req, fildes, 0);
ffc09734:	38 7f 00 48 	addi    r3,r31,72                              
ffc09738:	7f 84 e3 78 	mr      r4,r28                                 
ffc0973c:	38 a0 00 00 	li      r5,0                                   
ffc09740:	48 00 07 05 	bl      ffc09e44 <rtems_aio_search_fd>         
    if (r_chain == NULL) {                                            
ffc09744:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc09748:	41 82 00 54 	beq-    ffc0979c <aio_cancel+0xc8>             
        return AIO_ALLDONE;                                           
      }                                                               
    }                                                                 
      AIO_printf ("Request on [WQ]\n");                               
                                                                      
      pthread_mutex_lock (&r_chain->mutex);                           
ffc0974c:	3b 9d 00 1c 	addi    r28,r29,28                             
ffc09750:	7f 83 e3 78 	mr      r3,r28                                 
ffc09754:	48 00 16 8d 	bl      ffc0ade0 <pthread_mutex_lock>          
      result = rtems_aio_remove_req (&r_chain->perfd, aiocbp);        
ffc09758:	7f c4 f3 78 	mr      r4,r30                                 
ffc0975c:	38 7d 00 08 	addi    r3,r29,8                               
ffc09760:	48 00 08 9d 	bl      ffc09ffc <rtems_aio_remove_req>        
ffc09764:	7c 7e 1b 78 	mr      r30,r3                                 
      pthread_mutex_unlock (&r_chain->mutex);                         
ffc09768:	7f 83 e3 78 	mr      r3,r28                                 
ffc0976c:	48 00 17 25 	bl      ffc0ae90 <pthread_mutex_unlock>        
      pthread_mutex_unlock (&aio_request_queue.mutex);                
ffc09770:	7f e3 fb 78 	mr      r3,r31                                 
ffc09774:	48 00 17 1d 	bl      ffc0ae90 <pthread_mutex_unlock>        
      return result;                                                  
  }                                                                   
  return AIO_ALLDONE;                                                 
}                                                                     
ffc09778:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0977c:	7f c3 f3 78 	mr      r3,r30                                 
ffc09780:	83 81 00 08 	lwz     r28,8(r1)                              
ffc09784:	7c 08 03 a6 	mtlr    r0                                     
ffc09788:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0978c:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc09790:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc09794:	38 21 00 18 	addi    r1,r1,24                               
ffc09798:	4e 80 00 20 	blr                                            
      rtems_set_errno_and_return_minus_one (EINVAL);                  
    }                                                                 
                                                                      
    r_chain = rtems_aio_search_fd (&aio_request_queue.work_req, fildes, 0);
    if (r_chain == NULL) {                                            
      if (!rtems_chain_is_empty (&aio_request_queue.idle_req)) {      
ffc0979c:	81 3f 00 54 	lwz     r9,84(r31)                             
ffc097a0:	39 5f 00 58 	addi    r10,r31,88                             
ffc097a4:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc097a8:	41 9e 00 58 	beq-    cr7,ffc09800 <aio_cancel+0x12c>        <== NEVER TAKEN
        r_chain = rtems_aio_search_fd (&aio_request_queue.idle_req, fildes, 0);
ffc097ac:	38 7f 00 54 	addi    r3,r31,84                              
ffc097b0:	7f 84 e3 78 	mr      r4,r28                                 
ffc097b4:	38 a0 00 00 	li      r5,0                                   
ffc097b8:	48 00 06 8d 	bl      ffc09e44 <rtems_aio_search_fd>         
        if (r_chain == NULL) {                                        
ffc097bc:	2c 03 00 00 	cmpwi   r3,0                                   
ffc097c0:	41 82 00 50 	beq-    ffc09810 <aio_cancel+0x13c>            
          rtems_set_errno_and_return_minus_one (EINVAL);              
        }                                                             
                                                                      
        AIO_printf ("Request on [IQ]\n");                             
                                                                      
        result = rtems_aio_remove_req (&r_chain->perfd, aiocbp);      
ffc097c4:	7f c4 f3 78 	mr      r4,r30                                 
ffc097c8:	38 63 00 08 	addi    r3,r3,8                                
ffc097cc:	48 00 08 31 	bl      ffc09ffc <rtems_aio_remove_req>        
ffc097d0:	7c 7e 1b 78 	mr      r30,r3                                 
        pthread_mutex_unlock (&aio_request_queue.mutex);              
ffc097d4:	7f e3 fb 78 	mr      r3,r31                                 
ffc097d8:	48 00 16 b9 	bl      ffc0ae90 <pthread_mutex_unlock>        
      pthread_mutex_unlock (&r_chain->mutex);                         
      pthread_mutex_unlock (&aio_request_queue.mutex);                
      return result;                                                  
  }                                                                   
  return AIO_ALLDONE;                                                 
}                                                                     
ffc097dc:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc097e0:	7f c3 f3 78 	mr      r3,r30                                 
ffc097e4:	83 81 00 08 	lwz     r28,8(r1)                              
ffc097e8:	7c 08 03 a6 	mtlr    r0                                     
ffc097ec:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc097f0:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc097f4:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc097f8:	38 21 00 18 	addi    r1,r1,24                               
ffc097fc:	4e 80 00 20 	blr                                            
      AIO_printf ("Request chain not on [WQ]\n");                     
                                                                      
      if (!rtems_chain_is_empty (&aio_request_queue.idle_req)) {      
        r_chain = rtems_aio_search_fd (&aio_request_queue.idle_req, fildes, 0);
        if (r_chain == NULL) {                                        
          pthread_mutex_unlock(&aio_request_queue.mutex);             
ffc09800:	7f e3 fb 78 	mr      r3,r31                                 
ffc09804:	48 00 16 8d 	bl      ffc0ae90 <pthread_mutex_unlock>        
          return AIO_ALLDONE;                                         
ffc09808:	3b c0 00 02 	li      r30,2                                  
ffc0980c:	4b ff ff 6c 	b       ffc09778 <aio_cancel+0xa4>             
    r_chain = rtems_aio_search_fd (&aio_request_queue.work_req, fildes, 0);
    if (r_chain == NULL) {                                            
      if (!rtems_chain_is_empty (&aio_request_queue.idle_req)) {      
        r_chain = rtems_aio_search_fd (&aio_request_queue.idle_req, fildes, 0);
        if (r_chain == NULL) {                                        
          pthread_mutex_unlock (&aio_request_queue.mutex);            
ffc09810:	7f e3 fb 78 	mr      r3,r31                                 
ffc09814:	48 00 16 7d 	bl      ffc0ae90 <pthread_mutex_unlock>        
          rtems_set_errno_and_return_minus_one (EINVAL);              
ffc09818:	3b c0 ff ff 	li      r30,-1                                 
ffc0981c:	48 00 c0 95 	bl      ffc158b0 <__errno>                     
ffc09820:	39 20 00 16 	li      r9,22                                  
ffc09824:	91 23 00 00 	stw     r9,0(r3)                               
ffc09828:	4b ff ff 50 	b       ffc09778 <aio_cancel+0xa4>             
                                                                      
  /* if aiocbp is NULL remove all request for given file descriptor */
  if (aiocbp == NULL) {                                               
    AIO_printf ("Cancel all requests\n");                             
                                                                      
    r_chain = rtems_aio_search_fd (&aio_request_queue.work_req, fildes, 0);
ffc0982c:	38 7f 00 48 	addi    r3,r31,72                              
ffc09830:	7f a4 eb 78 	mr      r4,r29                                 
ffc09834:	38 a0 00 00 	li      r5,0                                   
ffc09838:	48 00 06 0d 	bl      ffc09e44 <rtems_aio_search_fd>         
    if (r_chain == NULL) {                                            
ffc0983c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc09840:	41 82 00 38 	beq-    ffc09878 <aio_cancel+0x1a4>            
      return AIO_ALLDONE;                                             
    }                                                                 
                                                                      
    AIO_printf ("Request chain on [WQ]\n");                           
                                                                      
    pthread_mutex_lock (&r_chain->mutex);                             
ffc09844:	3b be 00 1c 	addi    r29,r30,28                             
ffc09848:	7f a3 eb 78 	mr      r3,r29                                 
ffc0984c:	48 00 15 95 	bl      ffc0ade0 <pthread_mutex_lock>          
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
ffc09850:	7f c3 f3 78 	mr      r3,r30                                 
ffc09854:	48 00 36 d1 	bl      ffc0cf24 <_Chain_Extract>              
    rtems_chain_extract (&r_chain->next_fd);                          
    rtems_aio_remove_fd (r_chain);                                    
ffc09858:	7f c3 f3 78 	mr      r3,r30                                 
ffc0985c:	48 00 07 19 	bl      ffc09f74 <rtems_aio_remove_fd>         
    pthread_mutex_unlock (&r_chain->mutex);                           
ffc09860:	7f a3 eb 78 	mr      r3,r29                                 
ffc09864:	48 00 16 2d 	bl      ffc0ae90 <pthread_mutex_unlock>        
    pthread_mutex_unlock (&aio_request_queue.mutex);                  
ffc09868:	7f e3 fb 78 	mr      r3,r31                                 
ffc0986c:	48 00 16 25 	bl      ffc0ae90 <pthread_mutex_unlock>        
    return AIO_CANCELED;                                              
ffc09870:	3b c0 00 00 	li      r30,0                                  
ffc09874:	4b ff ff 04 	b       ffc09778 <aio_cancel+0xa4>             
                                                                      
    r_chain = rtems_aio_search_fd (&aio_request_queue.work_req, fildes, 0);
    if (r_chain == NULL) {                                            
      AIO_printf ("Request chain not on [WQ]\n");                     
                                                                      
      if (!rtems_chain_is_empty (&aio_request_queue.idle_req)) {      
ffc09878:	81 3f 00 54 	lwz     r9,84(r31)                             
ffc0987c:	39 5f 00 58 	addi    r10,r31,88                             
ffc09880:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc09884:	41 be ff 7c 	beq-    cr7,ffc09800 <aio_cancel+0x12c>        <== NEVER TAKEN
        r_chain = rtems_aio_search_fd (&aio_request_queue.idle_req, fildes, 0);
ffc09888:	38 7f 00 54 	addi    r3,r31,84                              
ffc0988c:	7f a4 eb 78 	mr      r4,r29                                 
ffc09890:	38 a0 00 00 	li      r5,0                                   
ffc09894:	48 00 05 b1 	bl      ffc09e44 <rtems_aio_search_fd>         
        if (r_chain == NULL) {                                        
ffc09898:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0989c:	41 a2 ff 64 	beq-    ffc09800 <aio_cancel+0x12c>            
                                                                      
        AIO_printf ("Request chain on [IQ]\n");                       
                                                                      
        rtems_chain_extract (&r_chain->next_fd);                      
        rtems_aio_remove_fd (r_chain);                                
        pthread_mutex_destroy (&r_chain->mutex);                      
ffc098a0:	3b be 00 1c 	addi    r29,r30,28                             
ffc098a4:	48 00 36 81 	bl      ffc0cf24 <_Chain_Extract>              
        }                                                             
                                                                      
        AIO_printf ("Request chain on [IQ]\n");                       
                                                                      
        rtems_chain_extract (&r_chain->next_fd);                      
        rtems_aio_remove_fd (r_chain);                                
ffc098a8:	7f c3 f3 78 	mr      r3,r30                                 
ffc098ac:	48 00 06 c9 	bl      ffc09f74 <rtems_aio_remove_fd>         
        pthread_mutex_destroy (&r_chain->mutex);                      
ffc098b0:	7f a3 eb 78 	mr      r3,r29                                 
ffc098b4:	48 00 11 85 	bl      ffc0aa38 <pthread_mutex_destroy>       
        pthread_cond_destroy (&r_chain->mutex);                       
ffc098b8:	7f a3 eb 78 	mr      r3,r29                                 
ffc098bc:	48 00 0c c1 	bl      ffc0a57c <pthread_cond_destroy>        
        free (r_chain);                                               
ffc098c0:	7f c3 f3 78 	mr      r3,r30                                 
ffc098c4:	4b ff b5 81 	bl      ffc04e44 <free>                        
                                                                      
        pthread_mutex_unlock (&aio_request_queue.mutex);              
ffc098c8:	7f e3 fb 78 	mr      r3,r31                                 
ffc098cc:	48 00 15 c5 	bl      ffc0ae90 <pthread_mutex_unlock>        
        return AIO_CANCELED;                                          
ffc098d0:	3b c0 00 00 	li      r30,0                                  
ffc098d4:	4b ff fe a4 	b       ffc09778 <aio_cancel+0xa4>             
  int result;                                                         
                                                                      
  pthread_mutex_lock (&aio_request_queue.mutex);                      
                                                                      
  if (fcntl (fildes, F_GETFD) < 0) {                                  
    pthread_mutex_unlock(&aio_request_queue.mutex);                   
ffc098d8:	7f e3 fb 78 	mr      r3,r31                                 
ffc098dc:	48 00 15 b5 	bl      ffc0ae90 <pthread_mutex_unlock>        
    rtems_set_errno_and_return_minus_one (EBADF);                     
ffc098e0:	3b c0 ff ff 	li      r30,-1                                 
ffc098e4:	48 00 bf cd 	bl      ffc158b0 <__errno>                     
ffc098e8:	39 20 00 09 	li      r9,9                                   
ffc098ec:	91 23 00 00 	stw     r9,0(r3)                               
ffc098f0:	4b ff fe 88 	b       ffc09778 <aio_cancel+0xa4>             
                                                                      

ffc098fc <aio_fsync>: ) { rtems_aio_request *req; int mode; if (op != O_SYNC)
ffc098fc:	2f 83 20 00 	cmpwi   cr7,r3,8192                            
                                                                      
int aio_fsync(                                                        
  int            op,                                                  
  struct aiocb  *aiocbp                                               
)                                                                     
{                                                                     
ffc09900:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc09904:	7c 08 02 a6 	mflr    r0                                     
ffc09908:	93 c1 00 08 	stw     r30,8(r1)                              
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  if (op != O_SYNC)                                                   
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
ffc0990c:	3b c0 00 16 	li      r30,22                                 
                                                                      
int aio_fsync(                                                        
  int            op,                                                  
  struct aiocb  *aiocbp                                               
)                                                                     
{                                                                     
ffc09910:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc09914:	7c 9f 23 78 	mr      r31,r4                                 
ffc09918:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  if (op != O_SYNC)                                                   
ffc0991c:	40 9e 00 60 	bne-    cr7,ffc0997c <aio_fsync+0x80>          
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
ffc09920:	80 64 00 00 	lwz     r3,0(r4)                               
ffc09924:	38 80 00 03 	li      r4,3                                   
  if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
ffc09928:	3b c0 00 09 	li      r30,9                                  
  int mode;                                                           
                                                                      
  if (op != O_SYNC)                                                   
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
ffc0992c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc09930:	48 00 7d b5 	bl      ffc116e4 <fcntl>                       
  if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
ffc09934:	54 63 07 be 	clrlwi  r3,r3,30                               
ffc09938:	38 63 ff ff 	addi    r3,r3,-1                               
ffc0993c:	2b 83 00 01 	cmplwi  cr7,r3,1                               
ffc09940:	41 9d 00 3c 	bgt-    cr7,ffc0997c <aio_fsync+0x80>          
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
ffc09944:	38 60 00 18 	li      r3,24                                  
ffc09948:	4b ff ba c1 	bl      ffc05408 <malloc>                      
  if (req == NULL)                                                    
ffc0994c:	7c 69 1b 79 	mr.     r9,r3                                  
ffc09950:	41 82 00 28 	beq-    ffc09978 <aio_fsync+0x7c>              <== NEVER TAKEN
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_SYNC;                             
                                                                      
  return rtems_aio_enqueue (req);                                     
                                                                      
}                                                                     
ffc09954:	80 01 00 14 	lwz     r0,20(r1)                              
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
ffc09958:	93 e9 00 14 	stw     r31,20(r9)                             
  req->aiocbp->aio_lio_opcode = LIO_SYNC;                             
ffc0995c:	39 20 00 03 	li      r9,3                                   
                                                                      
  return rtems_aio_enqueue (req);                                     
                                                                      
}                                                                     
ffc09960:	7c 08 03 a6 	mtlr    r0                                     
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_SYNC;                             
ffc09964:	91 3f 00 30 	stw     r9,48(r31)                             
                                                                      
  return rtems_aio_enqueue (req);                                     
                                                                      
}                                                                     
ffc09968:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0996c:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc09970:	38 21 00 10 	addi    r1,r1,16                               
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_SYNC;                             
                                                                      
  return rtems_aio_enqueue (req);                                     
ffc09974:	48 00 07 30 	b       ffc0a0a4 <rtems_aio_enqueue>           
  if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
ffc09978:	3b c0 00 0b 	li      r30,11                                 <== NOT EXECUTED
ffc0997c:	39 20 ff ff 	li      r9,-1                                  
ffc09980:	93 df 00 34 	stw     r30,52(r31)                            
ffc09984:	91 3f 00 38 	stw     r9,56(r31)                             
ffc09988:	48 00 bf 29 	bl      ffc158b0 <__errno>                     
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_SYNC;                             
                                                                      
  return rtems_aio_enqueue (req);                                     
                                                                      
}                                                                     
ffc0998c:	80 01 00 14 	lwz     r0,20(r1)                              
  if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
ffc09990:	93 c3 00 00 	stw     r30,0(r3)                              
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_SYNC;                             
                                                                      
  return rtems_aio_enqueue (req);                                     
                                                                      
}                                                                     
ffc09994:	38 60 ff ff 	li      r3,-1                                  
ffc09998:	7c 08 03 a6 	mtlr    r0                                     
ffc0999c:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc099a0:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc099a4:	38 21 00 10 	addi    r1,r1,16                               
ffc099a8:	4e 80 00 20 	blr                                            
                                                                      

ffc0a2d4 <aio_read>: * 0 - otherwise */ int aio_read (struct aiocb *aiocbp) {
ffc0a2d4:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0a2d8:	7c 08 02 a6 	mflr    r0                                     
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
ffc0a2dc:	38 80 00 03 	li      r4,3                                   
 *         0 - otherwise                                              
 */                                                                   
                                                                      
int                                                                   
aio_read (struct aiocb *aiocbp)                                       
{                                                                     
ffc0a2e0:	90 01 00 14 	stw     r0,20(r1)                              
ffc0a2e4:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0a2e8:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
ffc0a2ec:	80 63 00 00 	lwz     r3,0(r3)                               
 *         0 - otherwise                                              
 */                                                                   
                                                                      
int                                                                   
aio_read (struct aiocb *aiocbp)                                       
{                                                                     
ffc0a2f0:	93 c1 00 08 	stw     r30,8(r1)                              
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
ffc0a2f4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0a2f8:	48 00 73 ed 	bl      ffc116e4 <fcntl>                       
  if (!(((mode & O_ACCMODE) == O_RDONLY) || ((mode & O_ACCMODE) == O_RDWR)))
ffc0a2fc:	70 63 00 03 	andi.   r3,r3,3                                
ffc0a300:	41 82 00 10 	beq-    ffc0a310 <aio_read+0x3c>               <== NEVER TAKEN
ffc0a304:	2f 83 00 02 	cmpwi   cr7,r3,2                               
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
ffc0a308:	3b c0 00 09 	li      r30,9                                  
{                                                                     
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
  if (!(((mode & O_ACCMODE) == O_RDONLY) || ((mode & O_ACCMODE) == O_RDWR)))
ffc0a30c:	40 9e 00 20 	bne-    cr7,ffc0a32c <aio_read+0x58>           
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
                                                                      
  if (aiocbp->aio_reqprio < 0 || aiocbp->aio_reqprio > AIO_PRIO_DELTA_MAX)
ffc0a310:	81 3f 00 18 	lwz     r9,24(r31)                             
ffc0a314:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0a318:	40 9e 00 10 	bne-    cr7,ffc0a328 <aio_read+0x54>           
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  if (aiocbp->aio_offset < 0)                                         
ffc0a31c:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc0a320:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0a324:	40 9c 00 38 	bge-    cr7,ffc0a35c <aio_read+0x88>           
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
ffc0a328:	3b c0 00 16 	li      r30,22                                 
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
ffc0a32c:	39 20 ff ff 	li      r9,-1                                  
ffc0a330:	93 df 00 34 	stw     r30,52(r31)                            
ffc0a334:	91 3f 00 38 	stw     r9,56(r31)                             
ffc0a338:	48 00 b5 79 	bl      ffc158b0 <__errno>                     
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_READ;                             
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
ffc0a33c:	80 01 00 14 	lwz     r0,20(r1)                              
  if (aiocbp->aio_offset < 0)                                         
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
ffc0a340:	93 c3 00 00 	stw     r30,0(r3)                              
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_READ;                             
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
ffc0a344:	38 60 ff ff 	li      r3,-1                                  
ffc0a348:	7c 08 03 a6 	mtlr    r0                                     
ffc0a34c:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0a350:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0a354:	38 21 00 10 	addi    r1,r1,16                               
ffc0a358:	4e 80 00 20 	blr                                            
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  if (aiocbp->aio_offset < 0)                                         
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
ffc0a35c:	38 60 00 18 	li      r3,24                                  
ffc0a360:	4b ff b0 a9 	bl      ffc05408 <malloc>                      
  if (req == NULL)                                                    
ffc0a364:	7c 69 1b 79 	mr.     r9,r3                                  
ffc0a368:	41 82 00 28 	beq-    ffc0a390 <aio_read+0xbc>               <== NEVER TAKEN
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_READ;                             
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
ffc0a36c:	80 01 00 14 	lwz     r0,20(r1)                              
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
ffc0a370:	93 e9 00 14 	stw     r31,20(r9)                             
  req->aiocbp->aio_lio_opcode = LIO_READ;                             
ffc0a374:	39 20 00 01 	li      r9,1                                   
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
ffc0a378:	7c 08 03 a6 	mtlr    r0                                     
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_READ;                             
ffc0a37c:	91 3f 00 30 	stw     r9,48(r31)                             
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
ffc0a380:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0a384:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0a388:	38 21 00 10 	addi    r1,r1,16                               
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_READ;                             
                                                                      
  return rtems_aio_enqueue (req);                                     
ffc0a38c:	4b ff fd 18 	b       ffc0a0a4 <rtems_aio_enqueue>           
  if (aiocbp->aio_offset < 0)                                         
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
ffc0a390:	3b c0 00 0b 	li      r30,11                                 <== NOT EXECUTED
ffc0a394:	4b ff ff 98 	b       ffc0a32c <aio_read+0x58>               <== NOT EXECUTED
                                                                      

ffc0a3a0 <aio_write>: * 0 - otherwise */ int aio_write (struct aiocb *aiocbp) {
ffc0a3a0:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0a3a4:	7c 08 02 a6 	mflr    r0                                     
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
ffc0a3a8:	38 80 00 03 	li      r4,3                                   
 *         0 - otherwise                                              
 */                                                                   
                                                                      
int                                                                   
aio_write (struct aiocb *aiocbp)                                      
{                                                                     
ffc0a3ac:	90 01 00 14 	stw     r0,20(r1)                              
ffc0a3b0:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0a3b4:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
ffc0a3b8:	80 63 00 00 	lwz     r3,0(r3)                               
 *         0 - otherwise                                              
 */                                                                   
                                                                      
int                                                                   
aio_write (struct aiocb *aiocbp)                                      
{                                                                     
ffc0a3bc:	93 c1 00 08 	stw     r30,8(r1)                              
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
  if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
ffc0a3c0:	3b c0 00 09 	li      r30,9                                  
aio_write (struct aiocb *aiocbp)                                      
{                                                                     
  rtems_aio_request *req;                                             
  int mode;                                                           
                                                                      
  mode = fcntl (aiocbp->aio_fildes, F_GETFL);                         
ffc0a3c4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0a3c8:	48 00 73 1d 	bl      ffc116e4 <fcntl>                       
  if (!(((mode & O_ACCMODE) == O_WRONLY) || ((mode & O_ACCMODE) == O_RDWR)))
ffc0a3cc:	54 63 07 be 	clrlwi  r3,r3,30                               
ffc0a3d0:	38 63 ff ff 	addi    r3,r3,-1                               
ffc0a3d4:	2b 83 00 01 	cmplwi  cr7,r3,1                               
ffc0a3d8:	41 9d 00 20 	bgt-    cr7,ffc0a3f8 <aio_write+0x58>          
    rtems_aio_set_errno_return_minus_one (EBADF, aiocbp);             
                                                                      
  if (aiocbp->aio_reqprio < 0 || aiocbp->aio_reqprio > AIO_PRIO_DELTA_MAX)
ffc0a3dc:	81 3f 00 18 	lwz     r9,24(r31)                             
ffc0a3e0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0a3e4:	40 9e 00 10 	bne-    cr7,ffc0a3f4 <aio_write+0x54>          
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  if (aiocbp->aio_offset < 0)                                         
ffc0a3e8:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc0a3ec:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0a3f0:	40 9c 00 38 	bge-    cr7,ffc0a428 <aio_write+0x88>          
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
ffc0a3f4:	3b c0 00 16 	li      r30,22                                 
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
ffc0a3f8:	39 20 ff ff 	li      r9,-1                                  
ffc0a3fc:	93 df 00 34 	stw     r30,52(r31)                            
ffc0a400:	91 3f 00 38 	stw     r9,56(r31)                             
ffc0a404:	48 00 b4 ad 	bl      ffc158b0 <__errno>                     
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_WRITE;                            
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
ffc0a408:	80 01 00 14 	lwz     r0,20(r1)                              
  if (aiocbp->aio_offset < 0)                                         
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
ffc0a40c:	93 c3 00 00 	stw     r30,0(r3)                              
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_WRITE;                            
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
ffc0a410:	38 60 ff ff 	li      r3,-1                                  
ffc0a414:	7c 08 03 a6 	mtlr    r0                                     
ffc0a418:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0a41c:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0a420:	38 21 00 10 	addi    r1,r1,16                               
ffc0a424:	4e 80 00 20 	blr                                            
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  if (aiocbp->aio_offset < 0)                                         
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
ffc0a428:	38 60 00 18 	li      r3,24                                  
ffc0a42c:	4b ff af dd 	bl      ffc05408 <malloc>                      
  if (req == NULL)                                                    
ffc0a430:	7c 69 1b 79 	mr.     r9,r3                                  
ffc0a434:	41 82 00 28 	beq-    ffc0a45c <aio_write+0xbc>              <== NEVER TAKEN
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_WRITE;                            
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
ffc0a438:	80 01 00 14 	lwz     r0,20(r1)                              
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
ffc0a43c:	93 e9 00 14 	stw     r31,20(r9)                             
  req->aiocbp->aio_lio_opcode = LIO_WRITE;                            
ffc0a440:	39 20 00 02 	li      r9,2                                   
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
ffc0a444:	7c 08 03 a6 	mtlr    r0                                     
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_WRITE;                            
ffc0a448:	91 3f 00 30 	stw     r9,48(r31)                             
                                                                      
  return rtems_aio_enqueue (req);                                     
}                                                                     
ffc0a44c:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0a450:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0a454:	38 21 00 10 	addi    r1,r1,16                               
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
                                                                      
  req->aiocbp = aiocbp;                                               
  req->aiocbp->aio_lio_opcode = LIO_WRITE;                            
                                                                      
  return rtems_aio_enqueue (req);                                     
ffc0a458:	4b ff fc 4c 	b       ffc0a0a4 <rtems_aio_enqueue>           
  if (aiocbp->aio_offset < 0)                                         
    rtems_aio_set_errno_return_minus_one (EINVAL, aiocbp);            
                                                                      
  req = malloc (sizeof (rtems_aio_request));                          
  if (req == NULL)                                                    
    rtems_aio_set_errno_return_minus_one (EAGAIN, aiocbp);            
ffc0a45c:	3b c0 00 0b 	li      r30,11                                 <== NOT EXECUTED
ffc0a460:	4b ff ff 98 	b       ffc0a3f8 <aio_write+0x58>              <== NOT EXECUTED
                                                                      

ffc0a958 <check_and_merge>: rtems_rbtree_control *chunk_tree, rtems_rbheap_chunk *a, rtems_rbheap_chunk *b ) { if (b != NULL_PAGE && rtems_rbheap_is_chunk_free(b)) {
ffc0a958:	2f 86 ff f8 	cmpwi   cr7,r6,-8                              
  rtems_chain_control *free_chain,                                    
  rtems_rbtree_control *chunk_tree,                                   
  rtems_rbheap_chunk *a,                                              
  rtems_rbheap_chunk *b                                               
)                                                                     
{                                                                     
ffc0a95c:	7c 6a 1b 78 	mr      r10,r3                                 
  if (b != NULL_PAGE && rtems_rbheap_is_chunk_free(b)) {              
ffc0a960:	4d 9e 00 20 	beqlr   cr7                                    
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain(                   
  const Chain_Node *node                                              
)                                                                     
{                                                                     
  return (node->next == NULL) && (node->previous == NULL);            
ffc0a964:	81 26 00 00 	lwz     r9,0(r6)                               
ffc0a968:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0a96c:	41 9e 00 60 	beq-    cr7,ffc0a9cc <check_and_merge+0x74>    
    if (b->begin < a->begin) {                                        
ffc0a970:	80 e6 00 18 	lwz     r7,24(r6)                              
ffc0a974:	81 05 00 18 	lwz     r8,24(r5)                              
ffc0a978:	7f 87 40 40 	cmplw   cr7,r7,r8                              
ffc0a97c:	40 9c 00 14 	bge-    cr7,ffc0a990 <check_and_merge+0x38>    
ffc0a980:	7c a8 2b 78 	mr      r8,r5                                  
ffc0a984:	81 25 00 00 	lwz     r9,0(r5)                               
ffc0a988:	7c c5 33 78 	mr      r5,r6                                  
ffc0a98c:	7d 06 43 78 	mr      r6,r8                                  
                                                                      
      a = b;                                                          
      b = t;                                                          
    }                                                                 
                                                                      
    a->size += b->size;                                               
ffc0a990:	80 65 00 1c 	lwz     r3,28(r5)                              
ffc0a994:	80 e6 00 1c 	lwz     r7,28(r6)                              
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
ffc0a998:	81 06 00 04 	lwz     r8,4(r6)                               
ffc0a99c:	7c e3 3a 14 	add     r7,r3,r7                               
ffc0a9a0:	90 e5 00 1c 	stw     r7,28(r5)                              
    rtems_chain_extract_unprotected(&b->chain_node);                  
    add_to_chain(free_chain, b);                                      
    _RBTree_Extract_unprotected(chunk_tree, &b->tree_node);           
ffc0a9a4:	7c 83 23 78 	mr      r3,r4                                  
ffc0a9a8:	38 86 00 08 	addi    r4,r6,8                                
  next->previous = previous;                                          
  previous->next = next;                                              
ffc0a9ac:	91 28 00 00 	stw     r9,0(r8)                               
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
ffc0a9b0:	80 ea 00 00 	lwz     r7,0(r10)                              
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  next->previous = previous;                                          
ffc0a9b4:	91 09 00 04 	stw     r8,4(r9)                               
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
ffc0a9b8:	90 ca 00 00 	stw     r6,0(r10)                              
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc0a9bc:	91 46 00 04 	stw     r10,4(r6)                              
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
  the_node->next        = before_node;                                
ffc0a9c0:	90 e6 00 00 	stw     r7,0(r6)                               
  before_node->previous = the_node;                                   
ffc0a9c4:	90 c7 00 04 	stw     r6,4(r7)                               
ffc0a9c8:	48 00 1f 94 	b       ffc0c95c <_RBTree_Extract_unprotected> 
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain(                   
  const Chain_Node *node                                              
)                                                                     
{                                                                     
  return (node->next == NULL) && (node->previous == NULL);            
ffc0a9cc:	81 06 00 04 	lwz     r8,4(r6)                               
ffc0a9d0:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0a9d4:	40 9e ff 9c 	bne+    cr7,ffc0a970 <check_and_merge+0x18>    <== NEVER TAKEN
ffc0a9d8:	4e 80 00 20 	blr                                            
                                                                      

ffc05524 <chroot>: #include <unistd.h> #include <rtems/libio_.h> int chroot( const char *path ) {
ffc05524:	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(             
ffc05528:	3c c0 00 00 	lis     r6,0                                   
#include <unistd.h>                                                   
                                                                      
#include <rtems/libio_.h>                                             
                                                                      
int chroot( const char *path )                                        
{                                                                     
ffc0552c:	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(             
ffc05530:	38 c6 21 3c 	addi    r6,r6,8508                             
#include <unistd.h>                                                   
                                                                      
#include <rtems/libio_.h>                                             
                                                                      
int chroot( const char *path )                                        
{                                                                     
ffc05534:	7c 64 1b 78 	mr      r4,r3                                  
ffc05538:	93 c1 00 68 	stw     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(             
ffc0553c:	38 a0 00 19 	li      r5,25                                  
ffc05540:	38 e6 ff fc 	addi    r7,r6,-4                               
#include <unistd.h>                                                   
                                                                      
#include <rtems/libio_.h>                                             
                                                                      
int chroot( const char *path )                                        
{                                                                     
ffc05544:	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(             
ffc05548:	38 61 00 08 	addi    r3,r1,8                                
#include <unistd.h>                                                   
                                                                      
#include <rtems/libio_.h>                                             
                                                                      
int chroot( const char *path )                                        
{                                                                     
ffc0554c:	93 e1 00 6c 	stw     r31,108(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(             
ffc05550:	48 00 19 15 	bl      ffc06e64 <rtems_filesystem_eval_path_start_with_root_and_current>
ffc05554:	38 81 00 20 	addi    r4,r1,32                               
ffc05558:	38 61 00 40 	addi    r3,r1,64                               
ffc0555c:	48 00 1f 2d 	bl      ffc07488 <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 );
ffc05560:	38 61 00 40 	addi    r3,r1,64                               
ffc05564:	48 00 21 dd 	bl      ffc07740 <rtems_filesystem_location_transform_to_global>
  if ( !rtems_filesystem_global_location_is_null( new_current_loc ) ) {
ffc05568:	3f c0 ff c1 	lis     r30,-63                                
ffc0556c:	81 23 00 10 	lwz     r9,16(r3)                              
ffc05570:	3b de 5a 0c 	addi    r30,r30,23052                          
    &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 );
ffc05574:	90 61 00 58 	stw     r3,88(r1)                              
  if ( !rtems_filesystem_global_location_is_null( new_current_loc ) ) {
ffc05578:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc0557c:	41 9e 00 4c 	beq-    cr7,ffc055c8 <chroot+0xa4>             
    rtems_filesystem_global_location_t *new_root_loc =                
ffc05580:	38 61 00 58 	addi    r3,r1,88                               
ffc05584:	48 00 20 a5 	bl      ffc07628 <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)(           
ffc05588:	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 =                
ffc0558c:	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)(           
ffc05590:	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 =                              
ffc05594:	81 29 00 14 	lwz     r9,20(r9)                              
ffc05598:	7d 29 03 a6 	mtctr   r9                                     
ffc0559c:	4e 80 04 21 	bctrl                                          
      (*new_root_loc->location.mt_entry->ops->node_type_h)(           
        &new_root_loc->location                                       
      );                                                              
                                                                      
    if ( type == RTEMS_FILESYSTEM_DIRECTORY ) {                       
ffc055a0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc055a4:	41 9e 00 50 	beq-    cr7,ffc055f4 <chroot+0xd0>             
static inline void rtems_filesystem_location_error(                   
  const rtems_filesystem_location_info_t *loc,                        
  int eno                                                             
)                                                                     
{                                                                     
  if ( !rtems_filesystem_location_is_null( loc ) ) {                  
ffc055a8:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc055ac:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc055b0:	41 9e 00 10 	beq-    cr7,ffc055c0 <chroot+0x9c>             <== NEVER TAKEN
    errno = eno;                                                      
ffc055b4:	48 00 99 89 	bl      ffc0ef3c <__errno>                     
ffc055b8:	39 20 00 14 	li      r9,20                                  
ffc055bc:	91 23 00 00 	stw     r9,0(r3)                               
      rtems_filesystem_location_error( &new_root_loc->location, ENOTDIR );
      rv = -1;                                                        
    }                                                                 
                                                                      
    if ( rv != 0 ) {                                                  
      rtems_filesystem_global_location_release( new_root_loc );       
ffc055c0:	7f e3 fb 78 	mr      r3,r31                                 
ffc055c4:	48 00 1f f1 	bl      ffc075b4 <rtems_filesystem_global_location_release>
    }                                                                 
  } else {                                                            
    rv = -1;                                                          
  }                                                                   
                                                                      
  rtems_filesystem_eval_path_cleanup( &ctx );                         
ffc055c8:	38 61 00 08 	addi    r3,r1,8                                
ffc055cc:	48 00 1a 51 	bl      ffc0701c <rtems_filesystem_eval_path_cleanup>
                                                                      
  if ( rv != 0 ) {                                                    
    rtems_filesystem_global_location_release( new_current_loc );      
ffc055d0:	80 61 00 58 	lwz     r3,88(r1)                              
ffc055d4:	48 00 1f e1 	bl      ffc075b4 <rtems_filesystem_global_location_release>
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc055d8:	80 01 00 74 	lwz     r0,116(r1)                             
ffc055dc:	83 c1 00 68 	lwz     r30,104(r1)                            
  }                                                                   
                                                                      
  rtems_filesystem_eval_path_cleanup( &ctx );                         
                                                                      
  if ( rv != 0 ) {                                                    
    rtems_filesystem_global_location_release( new_current_loc );      
ffc055e0:	38 60 ff ff 	li      r3,-1                                  
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc055e4:	7c 08 03 a6 	mtlr    r0                                     
ffc055e8:	83 e1 00 6c 	lwz     r31,108(r1)                            
ffc055ec:	38 21 00 70 	addi    r1,r1,112                              
ffc055f0:	4e 80 00 20 	blr                                            
      (*new_root_loc->location.mt_entry->ops->node_type_h)(           
        &new_root_loc->location                                       
      );                                                              
                                                                      
    if ( type == RTEMS_FILESYSTEM_DIRECTORY ) {                       
      sc = rtems_libio_set_private_env();                             
ffc055f4:	48 00 0f 61 	bl      ffc06554 <rtems_libio_set_private_env> 
      if (sc == RTEMS_SUCCESSFUL) {                                   
ffc055f8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc055fc:	41 82 00 1c 	beq-    ffc05618 <chroot+0xf4>                 
        rtems_filesystem_global_location_assign(                      
          &rtems_filesystem_current,                                  
          new_current_loc                                             
        );                                                            
      } else {                                                        
        if (sc != RTEMS_UNSATISFIED) {                                
ffc05600:	2f 83 00 0d 	cmpwi   cr7,r3,13                              
ffc05604:	41 be ff bc 	beq-    cr7,ffc055c0 <chroot+0x9c>             <== NEVER TAKEN
          errno = ENOMEM;                                             
ffc05608:	48 00 99 35 	bl      ffc0ef3c <__errno>                     
ffc0560c:	39 20 00 0c 	li      r9,12                                  
ffc05610:	91 23 00 00 	stw     r9,0(r3)                               
ffc05614:	4b ff ff ac 	b       ffc055c0 <chroot+0x9c>                 
      );                                                              
                                                                      
    if ( type == RTEMS_FILESYSTEM_DIRECTORY ) {                       
      sc = rtems_libio_set_private_env();                             
      if (sc == RTEMS_SUCCESSFUL) {                                   
        rtems_filesystem_global_location_assign(                      
ffc05618:	3f c0 00 00 	lis     r30,0                                  
ffc0561c:	80 7e 27 68 	lwz     r3,10088(r30)                          
ffc05620:	7f e4 fb 78 	mr      r4,r31                                 
ffc05624:	38 63 00 04 	addi    r3,r3,4                                
ffc05628:	48 00 1f dd 	bl      ffc07604 <rtems_filesystem_global_location_assign>
          &rtems_filesystem_root,                                     
          new_root_loc                                                
        );                                                            
        rtems_filesystem_global_location_assign(                      
ffc0562c:	80 81 00 58 	lwz     r4,88(r1)                              
ffc05630:	80 7e 27 68 	lwz     r3,10088(r30)                          
ffc05634:	48 00 1f d1 	bl      ffc07604 <rtems_filesystem_global_location_assign>
    }                                                                 
  } else {                                                            
    rv = -1;                                                          
  }                                                                   
                                                                      
  rtems_filesystem_eval_path_cleanup( &ctx );                         
ffc05638:	38 61 00 08 	addi    r3,r1,8                                
ffc0563c:	48 00 19 e1 	bl      ffc0701c <rtems_filesystem_eval_path_cleanup>
  if ( rv != 0 ) {                                                    
    rtems_filesystem_global_location_release( new_current_loc );      
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc05640:	80 01 00 74 	lwz     r0,116(r1)                             
ffc05644:	83 c1 00 68 	lwz     r30,104(r1)                            
    }                                                                 
  } else {                                                            
    rv = -1;                                                          
  }                                                                   
                                                                      
  rtems_filesystem_eval_path_cleanup( &ctx );                         
ffc05648:	38 60 00 00 	li      r3,0                                   
  if ( rv != 0 ) {                                                    
    rtems_filesystem_global_location_release( new_current_loc );      
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc0564c:	7c 08 03 a6 	mtlr    r0                                     
ffc05650:	83 e1 00 6c 	lwz     r31,108(r1)                            
ffc05654:	38 21 00 70 	addi    r1,r1,112                              
ffc05658:	4e 80 00 20 	blr                                            
                                                                      

ffc0925c <clock_gettime>: int clock_gettime( clockid_t clock_id, struct timespec *tp ) {
ffc0925c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc09260:	7c 08 02 a6 	mflr    r0                                     
ffc09264:	93 a1 00 1c 	stw     r29,28(r1)                             
  if ( !tp )                                                          
ffc09268:	7c 9d 23 79 	mr.     r29,r4                                 
                                                                      
int clock_gettime(                                                    
  clockid_t        clock_id,                                          
  struct timespec *tp                                                 
)                                                                     
{                                                                     
ffc0926c:	90 01 00 2c 	stw     r0,44(r1)                              
ffc09270:	93 c1 00 20 	stw     r30,32(r1)                             
ffc09274:	93 e1 00 24 	stw     r31,36(r1)                             
  if ( !tp )                                                          
ffc09278:	41 82 00 24 	beq-    ffc0929c <clock_gettime+0x40>          
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( clock_id == CLOCK_REALTIME ) {                                 
ffc0927c:	2f 83 00 01 	cmpwi   cr7,r3,1                               
ffc09280:	41 9e 00 9c 	beq-    cr7,ffc0931c <clock_gettime+0xc0>      
    _TOD_Get(tp);                                                     
    return 0;                                                         
  }                                                                   
#ifdef CLOCK_MONOTONIC                                                
  if ( clock_id == CLOCK_MONOTONIC ) {                                
ffc09284:	2f 83 00 04 	cmpwi   cr7,r3,4                               
ffc09288:	41 9e 00 6c 	beq-    cr7,ffc092f4 <clock_gettime+0x98>      <== NEVER TAKEN
    return 0;                                                         
  }                                                                   
#endif                                                                
                                                                      
#ifdef _POSIX_CPUTIME                                                 
  if ( clock_id == CLOCK_PROCESS_CPUTIME_ID ) {                       
ffc0928c:	2f 83 00 02 	cmpwi   cr7,r3,2                               
ffc09290:	41 9e 00 64 	beq-    cr7,ffc092f4 <clock_gettime+0x98>      
    return 0;                                                         
  }                                                                   
#endif                                                                
                                                                      
#ifdef _POSIX_THREAD_CPUTIME                                          
  if ( clock_id == CLOCK_THREAD_CPUTIME_ID )                          
ffc09294:	2f 83 00 03 	cmpwi   cr7,r3,3                               
ffc09298:	41 9e 00 30 	beq-    cr7,ffc092c8 <clock_gettime+0x6c>      
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
ffc0929c:	48 00 ad 11 	bl      ffc13fac <__errno>                     
ffc092a0:	39 20 00 16 	li      r9,22                                  
ffc092a4:	91 23 00 00 	stw     r9,0(r3)                               
ffc092a8:	38 60 ff ff 	li      r3,-1                                  
                                                                      
  return 0;                                                           
}                                                                     
ffc092ac:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc092b0:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc092b4:	7c 08 03 a6 	mtlr    r0                                     
ffc092b8:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc092bc:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc092c0:	38 21 00 28 	addi    r1,r1,40                               
ffc092c4:	4e 80 00 20 	blr                                            
  }                                                                   
#endif                                                                
                                                                      
#ifdef _POSIX_THREAD_CPUTIME                                          
  if ( clock_id == CLOCK_THREAD_CPUTIME_ID )                          
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
ffc092c8:	48 00 ac e5 	bl      ffc13fac <__errno>                     
#endif                                                                
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
                                                                      
  return 0;                                                           
}                                                                     
ffc092cc:	80 01 00 2c 	lwz     r0,44(r1)                              
  }                                                                   
#endif                                                                
                                                                      
#ifdef _POSIX_THREAD_CPUTIME                                          
  if ( clock_id == CLOCK_THREAD_CPUTIME_ID )                          
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
ffc092d0:	39 20 00 58 	li      r9,88                                  
#endif                                                                
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
                                                                      
  return 0;                                                           
}                                                                     
ffc092d4:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc092d8:	7c 08 03 a6 	mtlr    r0                                     
  }                                                                   
#endif                                                                
                                                                      
#ifdef _POSIX_THREAD_CPUTIME                                          
  if ( clock_id == CLOCK_THREAD_CPUTIME_ID )                          
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
ffc092dc:	91 23 00 00 	stw     r9,0(r3)                               
ffc092e0:	38 60 ff ff 	li      r3,-1                                  
#endif                                                                
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
                                                                      
  return 0;                                                           
}                                                                     
ffc092e4:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc092e8:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc092ec:	38 21 00 28 	addi    r1,r1,40                               
ffc092f0:	4e 80 00 20 	blr                                            
    _TOD_Get(tp);                                                     
    return 0;                                                         
  }                                                                   
#ifdef CLOCK_MONOTONIC                                                
  if ( clock_id == CLOCK_MONOTONIC ) {                                
    _TOD_Get_uptime_as_timespec( tp );                                
ffc092f4:	7f a3 eb 78 	mr      r3,r29                                 
ffc092f8:	48 00 28 29 	bl      ffc0bb20 <_TOD_Get_uptime_as_timespec> 
#endif                                                                
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
                                                                      
  return 0;                                                           
}                                                                     
ffc092fc:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc09300:	83 a1 00 1c 	lwz     r29,28(r1)                             
    return 0;                                                         
  }                                                                   
#ifdef CLOCK_MONOTONIC                                                
  if ( clock_id == CLOCK_MONOTONIC ) {                                
    _TOD_Get_uptime_as_timespec( tp );                                
    return 0;                                                         
ffc09304:	38 60 00 00 	li      r3,0                                   
#endif                                                                
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
                                                                      
  return 0;                                                           
}                                                                     
ffc09308:	7c 08 03 a6 	mtlr    r0                                     
ffc0930c:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc09310:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc09314:	38 21 00 28 	addi    r1,r1,40                               
ffc09318:	4e 80 00 20 	blr                                            
)                                                                     
{                                                                     
  Timestamp_Control  tod_as_timestamp;                                
  Timestamp_Control *tod_as_timestamp_ptr;                            
                                                                      
  tod_as_timestamp_ptr =                                              
ffc0931c:	3c 80 00 00 	lis     r4,0                                   
ffc09320:	38 84 2c a0 	addi    r4,r4,11424                            
ffc09324:	38 61 00 08 	addi    r3,r1,8                                
ffc09328:	48 00 27 75 	bl      ffc0ba9c <_TOD_Get_with_nanoseconds>   
static inline void _Timestamp64_implementation_To_timespec(           
  const Timestamp64_Control *_timestamp,                              
  struct timespec           *_timespec                                
)                                                                     
{                                                                     
  _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);           
ffc0932c:	3c c0 3b 9a 	lis     r6,15258                               
ffc09330:	83 e3 00 04 	lwz     r31,4(r3)                              
ffc09334:	38 a0 00 00 	li      r5,0                                   
ffc09338:	83 c3 00 00 	lwz     r30,0(r3)                              
ffc0933c:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc09340:	7f e4 fb 78 	mr      r4,r31                                 
ffc09344:	7f c3 f3 78 	mr      r3,r30                                 
ffc09348:	48 01 15 05 	bl      ffc1a84c <__divdi3>                    
  _timespec->tv_nsec = (long) (*_timestamp % 1000000000L);            
ffc0934c:	3c c0 3b 9a 	lis     r6,15258                               
static inline void _Timestamp64_implementation_To_timespec(           
  const Timestamp64_Control *_timestamp,                              
  struct timespec           *_timespec                                
)                                                                     
{                                                                     
  _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);           
ffc09350:	90 9d 00 00 	stw     r4,0(r29)                              
  _timespec->tv_nsec = (long) (*_timestamp % 1000000000L);            
ffc09354:	38 a0 00 00 	li      r5,0                                   
ffc09358:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc0935c:	7f c3 f3 78 	mr      r3,r30                                 
ffc09360:	7f e4 fb 78 	mr      r4,r31                                 
ffc09364:	48 01 19 0d 	bl      ffc1ac70 <__moddi3>                    
  if ( !tp )                                                          
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( clock_id == CLOCK_REALTIME ) {                                 
    _TOD_Get(tp);                                                     
    return 0;                                                         
ffc09368:	38 60 00 00 	li      r3,0                                   
ffc0936c:	90 9d 00 04 	stw     r4,4(r29)                              
ffc09370:	4b ff ff 3c 	b       ffc092ac <clock_gettime+0x50>          
                                                                      

ffc2eb68 <clock_settime>: int clock_settime( clockid_t clock_id, const struct timespec *tp ) { if ( !tp )
ffc2eb68:	2c 04 00 00 	cmpwi   r4,0                                   
                                                                      
int clock_settime(                                                    
  clockid_t              clock_id,                                    
  const struct timespec *tp                                           
)                                                                     
{                                                                     
ffc2eb6c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc2eb70:	7c 08 02 a6 	mflr    r0                                     
ffc2eb74:	90 01 00 1c 	stw     r0,28(r1)                              
  if ( !tp )                                                          
ffc2eb78:	41 82 00 1c 	beq-    ffc2eb94 <clock_settime+0x2c>          <== NEVER TAKEN
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( clock_id == CLOCK_REALTIME ) {                                 
ffc2eb7c:	2f 83 00 01 	cmpwi   cr7,r3,1                               
ffc2eb80:	41 9e 00 34 	beq-    cr7,ffc2ebb4 <clock_settime+0x4c>      
    _Thread_Disable_dispatch();                                       
      _TOD_Set( tp );                                                 
    _Thread_Enable_dispatch();                                        
  }                                                                   
#ifdef _POSIX_CPUTIME                                                 
  else if ( clock_id == CLOCK_PROCESS_CPUTIME_ID )                    
ffc2eb84:	2f 83 00 02 	cmpwi   cr7,r3,2                               
ffc2eb88:	41 9e 00 9c 	beq-    cr7,ffc2ec24 <clock_settime+0xbc>      
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
#ifdef _POSIX_THREAD_CPUTIME                                          
  else if ( clock_id == CLOCK_THREAD_CPUTIME_ID )                     
ffc2eb8c:	2f 83 00 03 	cmpwi   cr7,r3,3                               
ffc2eb90:	41 9e 00 94 	beq-    cr7,ffc2ec24 <clock_settime+0xbc>      
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
  else                                                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc2eb94:	48 01 4e 85 	bl      ffc43a18 <__errno>                     
                                                                      
  return 0;                                                           
}                                                                     
ffc2eb98:	80 01 00 1c 	lwz     r0,28(r1)                              
#ifdef _POSIX_THREAD_CPUTIME                                          
  else if ( clock_id == CLOCK_THREAD_CPUTIME_ID )                     
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
  else                                                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc2eb9c:	39 20 00 16 	li      r9,22                                  
                                                                      
  return 0;                                                           
}                                                                     
ffc2eba0:	7c 08 03 a6 	mtlr    r0                                     
#ifdef _POSIX_THREAD_CPUTIME                                          
  else if ( clock_id == CLOCK_THREAD_CPUTIME_ID )                     
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
  else                                                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc2eba4:	91 23 00 00 	stw     r9,0(r3)                               
ffc2eba8:	38 60 ff ff 	li      r3,-1                                  
                                                                      
  return 0;                                                           
}                                                                     
ffc2ebac:	38 21 00 18 	addi    r1,r1,24                               
ffc2ebb0:	4e 80 00 20 	blr                                            
{                                                                     
  if ( !tp )                                                          
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( clock_id == CLOCK_REALTIME ) {                                 
    if ( tp->tv_sec < TOD_SECONDS_1970_THROUGH_1988 )                 
ffc2ebb4:	81 24 00 00 	lwz     r9,0(r4)                               
ffc2ebb8:	3d 40 21 da 	lis     r10,8666                               
ffc2ebbc:	61 4a e4 ff 	ori     r10,r10,58623                          
ffc2ebc0:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc2ebc4:	40 bd ff d0 	ble-    cr7,ffc2eb94 <clock_settime+0x2c>      
   *                                                                  
   * 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;                  
ffc2ebc8:	3d 20 00 00 	lis     r9,0                                   
ffc2ebcc:	81 49 34 e4 	lwz     r10,13540(r9)                          
                                                                      
    ++level;                                                          
ffc2ebd0:	39 4a 00 01 	addi    r10,r10,1                              
    _Thread_Dispatch_disable_level = level;                           
ffc2ebd4:	91 49 34 e4 	stw     r10,13540(r9)                          
  Timestamp64_Control *_time,                                         
  Timestamp64_Control  _seconds,                                      
  Timestamp64_Control  _nanoseconds                                   
)                                                                     
{                                                                     
  *_time = _seconds * 1000000000L + _nanoseconds;                     
ffc2ebd8:	3c e0 3b 9a 	lis     r7,15258                               
  const struct timespec *tod_as_timespec                              
)                                                                     
{                                                                     
  Timestamp_Control tod_as_timestamp;                                 
                                                                      
  _Timestamp_Set(                                                     
ffc2ebdc:	80 c4 00 00 	lwz     r6,0(r4)                               
ffc2ebe0:	60 e7 ca 00 	ori     r7,r7,51712                            
ffc2ebe4:	81 64 00 04 	lwz     r11,4(r4)                              
ffc2ebe8:	7d 06 38 96 	mulhw   r8,r6,r7                               
ffc2ebec:	7d 26 39 d6 	mullw   r9,r6,r7                               
ffc2ebf0:	7d 6a fe 70 	srawi   r10,r11,31                             
ffc2ebf4:	7d 6b 48 14 	addc    r11,r11,r9                             
ffc2ebf8:	7d 4a 41 14 	adde    r10,r10,r8                             
ffc2ebfc:	7c 23 0b 78 	mr      r3,r1                                  
ffc2ec00:	95 43 00 08 	stwu    r10,8(r3)                              
ffc2ec04:	91 63 00 04 	stw     r11,4(r3)                              
    &tod_as_timestamp,                                                
    tod_as_timespec->tv_sec,                                          
    tod_as_timespec->tv_nsec                                          
  );                                                                  
  _TOD_Set_with_timestamp( &tod_as_timestamp );                       
ffc2ec08:	48 00 14 35 	bl      ffc3003c <_TOD_Set_with_timestamp>     
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    _Thread_Disable_dispatch();                                       
      _TOD_Set( tp );                                                 
    _Thread_Enable_dispatch();                                        
ffc2ec0c:	4b fd d6 d9 	bl      ffc0c2e4 <_Thread_Enable_dispatch>     
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
  else                                                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  return 0;                                                           
ffc2ec10:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc2ec14:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc2ec18:	38 21 00 18 	addi    r1,r1,24                               
ffc2ec1c:	7c 08 03 a6 	mtlr    r0                                     
ffc2ec20:	4e 80 00 20 	blr                                            
  else if ( clock_id == CLOCK_PROCESS_CPUTIME_ID )                    
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
#ifdef _POSIX_THREAD_CPUTIME                                          
  else if ( clock_id == CLOCK_THREAD_CPUTIME_ID )                     
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
ffc2ec24:	48 01 4d f5 	bl      ffc43a18 <__errno>                     
#endif                                                                
  else                                                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  return 0;                                                           
}                                                                     
ffc2ec28:	80 01 00 1c 	lwz     r0,28(r1)                              
  else if ( clock_id == CLOCK_PROCESS_CPUTIME_ID )                    
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
#ifdef _POSIX_THREAD_CPUTIME                                          
  else if ( clock_id == CLOCK_THREAD_CPUTIME_ID )                     
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
ffc2ec2c:	39 20 00 58 	li      r9,88                                  
#endif                                                                
  else                                                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  return 0;                                                           
}                                                                     
ffc2ec30:	7c 08 03 a6 	mtlr    r0                                     
  else if ( clock_id == CLOCK_PROCESS_CPUTIME_ID )                    
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
#endif                                                                
#ifdef _POSIX_THREAD_CPUTIME                                          
  else if ( clock_id == CLOCK_THREAD_CPUTIME_ID )                     
    rtems_set_errno_and_return_minus_one( ENOSYS );                   
ffc2ec34:	91 23 00 00 	stw     r9,0(r3)                               
ffc2ec38:	38 60 ff ff 	li      r3,-1                                  
#endif                                                                
  else                                                                
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  return 0;                                                           
}                                                                     
ffc2ec3c:	38 21 00 18 	addi    r1,r1,24                               
ffc2ec40:	4e 80 00 20 	blr                                            
                                                                      

ffc04728 <create_disk>: dev_t dev, const char *name, rtems_disk_device **dd_ptr, char **alloc_name_ptr ) {
ffc04728:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0472c:	7c 08 02 a6 	mflr    r0                                     
ffc04730:	93 e1 00 2c 	stw     r31,44(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) {                                        
ffc04734:	3f e0 00 00 	lis     r31,0                                  
  dev_t dev,                                                          
  const char *name,                                                   
  rtems_disk_device **dd_ptr,                                         
  char **alloc_name_ptr                                               
)                                                                     
{                                                                     
ffc04738:	93 81 00 20 	stw     r28,32(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) {                                        
ffc0473c:	83 9f 28 e0 	lwz     r28,10464(r31)                         
  dev_t dev,                                                          
  const char *name,                                                   
  rtems_disk_device **dd_ptr,                                         
  char **alloc_name_ptr                                               
)                                                                     
{                                                                     
ffc04740:	92 c1 00 08 	stw     r22,8(r1)                              
ffc04744:	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) {                                        
ffc04748:	7f 83 e0 40 	cmplw   cr7,r3,r28                             
  dev_t dev,                                                          
  const char *name,                                                   
  rtems_disk_device **dd_ptr,                                         
  char **alloc_name_ptr                                               
)                                                                     
{                                                                     
ffc0474c:	92 e1 00 0c 	stw     r23,12(r1)                             
ffc04750:	7c d7 33 78 	mr      r23,r6                                 
ffc04754:	93 01 00 10 	stw     r24,16(r1)                             
ffc04758:	7c b8 2b 78 	mr      r24,r5                                 
ffc0475c:	93 21 00 14 	stw     r25,20(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) {                                        
ffc04760:	3b 3f 28 e0 	addi    r25,r31,10464                          
  dev_t dev,                                                          
  const char *name,                                                   
  rtems_disk_device **dd_ptr,                                         
  char **alloc_name_ptr                                               
)                                                                     
{                                                                     
ffc04764:	93 61 00 1c 	stw     r27,28(r1)                             
ffc04768:	7c 9b 23 78 	mr      r27,r4                                 
ffc0476c:	93 a1 00 24 	stw     r29,36(r1)                             
ffc04770:	7c 7d 1b 78 	mr      r29,r3                                 
ffc04774:	90 01 00 34 	stw     r0,52(r1)                              
ffc04778:	93 41 00 18 	stw     r26,24(r1)                             
ffc0477c:	93 c1 00 28 	stw     r30,40(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) {                                        
ffc04780:	40 9c 01 0c 	bge-    cr7,ffc0488c <create_disk+0x164>       
ffc04784:	83 d9 00 04 	lwz     r30,4(r25)                             
    memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
    disktab = table;                                                  
    disktab_size = new_size;                                          
  }                                                                   
                                                                      
  if (disktab [major].minor == NULL || minor >= disktab[major].size) {
ffc04788:	57 a9 18 38 	rlwinm  r9,r29,3,0,28                          
ffc0478c:	7f fe 48 2e 	lwzx    r31,r30,r9                             
ffc04790:	7f de 4a 14 	add     r30,r30,r9                             
ffc04794:	83 9e 00 04 	lwz     r28,4(r30)                             
ffc04798:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0479c:	41 9e 00 60 	beq-    cr7,ffc047fc <create_disk+0xd4>        
ffc047a0:	7f 9b e0 40 	cmplw   cr7,r27,r28                            
ffc047a4:	40 9c 00 58 	bge-    cr7,ffc047fc <create_disk+0xd4>        
    memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
    disktab [major].minor = table;                                    
    disktab [major].size = new_size;                                  
  }                                                                   
                                                                      
  return disktab [major].minor + minor;                               
ffc047a8:	57 69 10 3a 	rlwinm  r9,r27,2,0,29                          
{                                                                     
  rtems_disk_device **dd_entry = create_disk_table_entry(dev);        
  rtems_disk_device *dd = NULL;                                       
  char *alloc_name = NULL;                                            
                                                                      
  if (dd_entry == NULL) {                                             
ffc047ac:	7f df 4a 15 	add.    r30,r31,r9                             
ffc047b0:	41 82 00 a0 	beq-    ffc04850 <create_disk+0x128>           <== NEVER TAKEN
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  if (*dd_entry != NULL) {                                            
ffc047b4:	7d 3f 48 2e 	lwzx    r9,r31,r9                              
    return RTEMS_RESOURCE_IN_USE;                                     
ffc047b8:	38 60 00 0c 	li      r3,12                                  
                                                                      
  if (dd_entry == NULL) {                                             
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  if (*dd_entry != NULL) {                                            
ffc047bc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc047c0:	41 9e 01 2c 	beq-    cr7,ffc048ec <create_disk+0x1c4>       
  *dd_entry = dd;                                                     
  *dd_ptr = dd;                                                       
  *alloc_name_ptr = alloc_name;                                       
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc047c4:	80 01 00 34 	lwz     r0,52(r1)                              
ffc047c8:	82 c1 00 08 	lwz     r22,8(r1)                              
ffc047cc:	7c 08 03 a6 	mtlr    r0                                     
ffc047d0:	82 e1 00 0c 	lwz     r23,12(r1)                             
ffc047d4:	83 01 00 10 	lwz     r24,16(r1)                             
ffc047d8:	83 21 00 14 	lwz     r25,20(r1)                             
ffc047dc:	83 41 00 18 	lwz     r26,24(r1)                             
ffc047e0:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc047e4:	83 81 00 20 	lwz     r28,32(r1)                             
ffc047e8:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc047ec:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc047f0:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc047f4:	38 21 00 30 	addi    r1,r1,48                               
ffc047f8:	4e 80 00 20 	blr                                            
  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) {                                              
ffc047fc:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
      new_size = DISKTAB_INITIAL_SIZE;                                
ffc04800:	3b 40 00 08 	li      r26,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) {                                              
ffc04804:	40 9e 00 d8 	bne-    cr7,ffc048dc <create_disk+0x1b4>       
      new_size = DISKTAB_INITIAL_SIZE;                                
    } else {                                                          
      new_size = 2 * old_size;                                        
    }                                                                 
    if (minor >= new_size) {                                          
ffc04808:	7f 9b d0 40 	cmplw   cr7,r27,r26                            
ffc0480c:	40 9c 00 c8 	bge-    cr7,ffc048d4 <create_disk+0x1ac>       
      new_size = minor + 1;                                           
    }                                                                 
                                                                      
    table = realloc(table, new_size * sizeof(*table));                
ffc04810:	7f e3 fb 78 	mr      r3,r31                                 
ffc04814:	57 44 10 3a 	rlwinm  r4,r26,2,0,29                          
ffc04818:	48 00 28 6d 	bl      ffc07084 <realloc>                     
    if (table == NULL) {                                              
ffc0481c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc04820:	41 82 00 30 	beq-    ffc04850 <create_disk+0x128>           
      return NULL;                                                    
    }                                                                 
                                                                      
    memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
ffc04824:	7c bc d0 50 	subf    r5,r28,r26                             
ffc04828:	57 83 10 3a 	rlwinm  r3,r28,2,0,29                          
ffc0482c:	7c 7f 1a 14 	add     r3,r31,r3                              
ffc04830:	38 80 00 00 	li      r4,0                                   
ffc04834:	54 a5 10 3a 	rlwinm  r5,r5,2,0,29                           
ffc04838:	48 01 48 19 	bl      ffc19050 <memset>                      
    disktab [major].minor = table;                                    
    disktab [major].size = new_size;                                  
  }                                                                   
                                                                      
  return disktab [major].minor + minor;                               
ffc0483c:	57 69 10 3a 	rlwinm  r9,r27,2,0,29                          
    if (table == NULL) {                                              
      return NULL;                                                    
    }                                                                 
                                                                      
    memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
    disktab [major].minor = table;                                    
ffc04840:	93 fe 00 00 	stw     r31,0(r30)                             
    disktab [major].size = new_size;                                  
ffc04844:	93 5e 00 04 	stw     r26,4(r30)                             
{                                                                     
  rtems_disk_device **dd_entry = create_disk_table_entry(dev);        
  rtems_disk_device *dd = NULL;                                       
  char *alloc_name = NULL;                                            
                                                                      
  if (dd_entry == NULL) {                                             
ffc04848:	7f df 4a 15 	add.    r30,r31,r9                             
ffc0484c:	40 82 ff 68 	bne+    ffc047b4 <create_disk+0x8c>            <== ALWAYS TAKEN
    alloc_name = strdup(name);                                        
                                                                      
    if (alloc_name == NULL) {                                         
      free(dd);                                                       
                                                                      
      return RTEMS_NO_MEMORY;                                         
ffc04850:	38 60 00 1a 	li      r3,26                                  
  *dd_entry = dd;                                                     
  *dd_ptr = dd;                                                       
  *alloc_name_ptr = alloc_name;                                       
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04854:	80 01 00 34 	lwz     r0,52(r1)                              
ffc04858:	82 c1 00 08 	lwz     r22,8(r1)                              
ffc0485c:	7c 08 03 a6 	mtlr    r0                                     
ffc04860:	82 e1 00 0c 	lwz     r23,12(r1)                             
ffc04864:	83 01 00 10 	lwz     r24,16(r1)                             
ffc04868:	83 21 00 14 	lwz     r25,20(r1)                             
ffc0486c:	83 41 00 18 	lwz     r26,24(r1)                             
ffc04870:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc04874:	83 81 00 20 	lwz     r28,32(r1)                             
ffc04878:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc0487c:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc04880:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc04884:	38 21 00 30 	addi    r1,r1,48                               
ffc04888:	4e 80 00 20 	blr                                            
  rtems_filesystem_split_dev_t(dev, major, minor);                    
                                                                      
  if (major >= disktab_size) {                                        
    rtems_disk_device_table *table = disktab;                         
    rtems_device_major_number old_size = disktab_size;                
    rtems_device_major_number new_size = 2 * old_size;                
ffc0488c:	57 9a 08 3c 	rlwinm  r26,r28,1,0,30                         
                                                                      
    if (major >= new_size) {                                          
ffc04890:	7f 83 d0 40 	cmplw   cr7,r3,r26                             
  rtems_device_minor_number minor = 0;                                
                                                                      
  rtems_filesystem_split_dev_t(dev, major, minor);                    
                                                                      
  if (major >= disktab_size) {                                        
    rtems_disk_device_table *table = disktab;                         
ffc04894:	80 79 00 04 	lwz     r3,4(r25)                              
    rtems_device_major_number old_size = disktab_size;                
    rtems_device_major_number new_size = 2 * old_size;                
                                                                      
    if (major >= new_size) {                                          
ffc04898:	41 9c 00 08 	blt-    cr7,ffc048a0 <create_disk+0x178>       <== NEVER TAKEN
      new_size = major + 1;                                           
ffc0489c:	3b 5d 00 01 	addi    r26,r29,1                              
    }                                                                 
                                                                      
    table = realloc(table, new_size * sizeof(*table));                
ffc048a0:	57 44 18 38 	rlwinm  r4,r26,3,0,28                          
ffc048a4:	48 00 27 e1 	bl      ffc07084 <realloc>                     
    if (table == NULL) {                                              
ffc048a8:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc048ac:	41 a2 ff a4 	beq-    ffc04850 <create_disk+0x128>           <== ALWAYS TAKEN
      return NULL;                                                    
    }                                                                 
                                                                      
    memset(table + old_size, 0, (new_size - old_size) * sizeof(*table));
ffc048b0:	7c bc d0 50 	subf    r5,r28,r26                             <== NOT EXECUTED
ffc048b4:	57 83 18 38 	rlwinm  r3,r28,3,0,28                          <== NOT EXECUTED
ffc048b8:	7c 7e 1a 14 	add     r3,r30,r3                              <== NOT EXECUTED
ffc048bc:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc048c0:	54 a5 18 38 	rlwinm  r5,r5,3,0,28                           <== NOT EXECUTED
ffc048c4:	48 01 47 8d 	bl      ffc19050 <memset>                      <== NOT EXECUTED
    disktab = table;                                                  
ffc048c8:	93 d9 00 04 	stw     r30,4(r25)                             <== NOT EXECUTED
    disktab_size = new_size;                                          
ffc048cc:	93 5f 28 e0 	stw     r26,10464(r31)                         <== NOT EXECUTED
ffc048d0:	4b ff fe b8 	b       ffc04788 <create_disk+0x60>            <== NOT EXECUTED
      new_size = DISKTAB_INITIAL_SIZE;                                
    } else {                                                          
      new_size = 2 * old_size;                                        
    }                                                                 
    if (minor >= new_size) {                                          
      new_size = minor + 1;                                           
ffc048d4:	3b 5b 00 01 	addi    r26,r27,1                              
ffc048d8:	4b ff ff 38 	b       ffc04810 <create_disk+0xe8>            
    rtems_device_minor_number new_size = 0;                           
                                                                      
    if (old_size == 0) {                                              
      new_size = DISKTAB_INITIAL_SIZE;                                
    } else {                                                          
      new_size = 2 * old_size;                                        
ffc048dc:	57 9a 08 3c 	rlwinm  r26,r28,1,0,30                         
    }                                                                 
    if (minor >= new_size) {                                          
ffc048e0:	7f 9b d0 40 	cmplw   cr7,r27,r26                            
ffc048e4:	41 bc ff 2c 	blt-    cr7,ffc04810 <create_disk+0xe8>        <== ALWAYS TAKEN
ffc048e8:	4b ff ff ec 	b       ffc048d4 <create_disk+0x1ac>           <== NOT EXECUTED
                                                                      
  if (*dd_entry != NULL) {                                            
    return RTEMS_RESOURCE_IN_USE;                                     
  }                                                                   
                                                                      
  dd = malloc(sizeof(*dd));                                           
ffc048ec:	38 60 00 78 	li      r3,120                                 
ffc048f0:	48 00 1a 79 	bl      ffc06368 <malloc>                      
  if (dd == NULL) {                                                   
ffc048f4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc048f8:	41 a2 ff 58 	beq-    ffc04850 <create_disk+0x128>           <== NEVER TAKEN
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  if (name != NULL) {                                                 
ffc048fc:	2f 98 00 00 	cmpwi   cr7,r24,0                              
ffc04900:	41 9e 00 48 	beq-    cr7,ffc04948 <create_disk+0x220>       
    alloc_name = strdup(name);                                        
ffc04904:	7f 03 c3 78 	mr      r3,r24                                 
ffc04908:	48 01 4a 75 	bl      ffc1937c <strdup>                      
                                                                      
    if (alloc_name == NULL) {                                         
ffc0490c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
  if (dd == NULL) {                                                   
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  if (name != NULL) {                                                 
    alloc_name = strdup(name);                                        
ffc04910:	7c 7c 1b 78 	mr      r28,r3                                 
ffc04914:	7c 7a 1b 78 	mr      r26,r3                                 
                                                                      
    if (alloc_name == NULL) {                                         
ffc04918:	41 9e 00 50 	beq-    cr7,ffc04968 <create_disk+0x240>       <== NEVER TAKEN
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
  }                                                                   
                                                                      
  if (name != NULL) {                                                 
    if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) {                 
ffc0491c:	38 80 61 ff 	li      r4,25087                               
ffc04920:	7f a5 eb 78 	mr      r5,r29                                 
ffc04924:	7f 66 db 78 	mr      r6,r27                                 
ffc04928:	48 00 1c 11 	bl      ffc06538 <mknod>                       
ffc0492c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04930:	41 9c 00 20 	blt-    cr7,ffc04950 <create_disk+0x228>       <== NEVER TAKEN
      free(dd);                                                       
      return RTEMS_UNSATISFIED;                                       
    }                                                                 
  }                                                                   
                                                                      
  *dd_entry = dd;                                                     
ffc04934:	93 fe 00 00 	stw     r31,0(r30)                             
  *dd_ptr = dd;                                                       
  *alloc_name_ptr = alloc_name;                                       
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc04938:	38 60 00 00 	li      r3,0                                   
      return RTEMS_UNSATISFIED;                                       
    }                                                                 
  }                                                                   
                                                                      
  *dd_entry = dd;                                                     
  *dd_ptr = dd;                                                       
ffc0493c:	93 f7 00 00 	stw     r31,0(r23)                             
  *alloc_name_ptr = alloc_name;                                       
ffc04940:	93 56 00 00 	stw     r26,0(r22)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc04944:	4b ff fe 80 	b       ffc047c4 <create_disk+0x9c>            
  char **alloc_name_ptr                                               
)                                                                     
{                                                                     
  rtems_disk_device **dd_entry = create_disk_table_entry(dev);        
  rtems_disk_device *dd = NULL;                                       
  char *alloc_name = NULL;                                            
ffc04948:	3b 40 00 00 	li      r26,0                                  
ffc0494c:	4b ff ff e8 	b       ffc04934 <create_disk+0x20c>           
    }                                                                 
  }                                                                   
                                                                      
  if (name != NULL) {                                                 
    if (mknod(alloc_name, 0777 | S_IFBLK, dev) < 0) {                 
      free(alloc_name);                                               
ffc04950:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc04954:	48 00 13 c5 	bl      ffc05d18 <free>                        <== NOT EXECUTED
      free(dd);                                                       
ffc04958:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0495c:	48 00 13 bd 	bl      ffc05d18 <free>                        <== NOT EXECUTED
      return RTEMS_UNSATISFIED;                                       
ffc04960:	38 60 00 0d 	li      r3,13                                  <== NOT EXECUTED
ffc04964:	4b ff fe 60 	b       ffc047c4 <create_disk+0x9c>            <== NOT EXECUTED
                                                                      
  if (name != NULL) {                                                 
    alloc_name = strdup(name);                                        
                                                                      
    if (alloc_name == NULL) {                                         
      free(dd);                                                       
ffc04968:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0496c:	48 00 13 ad 	bl      ffc05d18 <free>                        <== NOT EXECUTED
                                                                      
      return RTEMS_NO_MEMORY;                                         
ffc04970:	38 60 00 1a 	li      r3,26                                  <== NOT EXECUTED
ffc04974:	4b ff fe e0 	b       ffc04854 <create_disk+0x12c>           <== NOT EXECUTED
                                                                      

ffc06890 <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)
ffc06890:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc06894:	7c 08 02 a6 	mflr    r0                                     
    if (new_part_desc == NULL)                                        
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    *new_part_desc = NULL;                                            
ffc06898:	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)   
ffc0689c:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc068a0:	7c 9d 23 78 	mr      r29,r4                                 
ffc068a4:	93 c1 00 10 	stw     r30,16(r1)                             
ffc068a8:	7c 7e 1b 78 	mr      r30,r3                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    *new_part_desc = NULL;                                            
                                                                      
    if ((part_desc = calloc(1, sizeof(rtems_part_desc_t))) == NULL)   
ffc068ac:	38 60 00 01 	li      r3,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)   
ffc068b0:	93 e1 00 14 	stw     r31,20(r1)                             
ffc068b4:	90 01 00 1c 	stw     r0,28(r1)                              
    if (new_part_desc == NULL)                                        
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    *new_part_desc = NULL;                                            
ffc068b8:	91 24 00 00 	stw     r9,0(r4)                               
                                                                      
    if ((part_desc = calloc(1, sizeof(rtems_part_desc_t))) == NULL)   
ffc068bc:	38 80 00 28 	li      r4,40                                  
ffc068c0:	48 00 10 05 	bl      ffc078c4 <calloc>                      
ffc068c4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc068c8:	41 82 00 c0 	beq-    ffc06988 <data_to_part_desc.part.1+0xf8><== NEVER TAKEN
    {                                                                 
        return RTEMS_NO_MEMORY;                                       
    }                                                                 
                                                                      
    part_desc->bootable = *(data + RTEMS_IDE_PARTITION_BOOTABLE_OFFSET);
ffc068cc:	89 3e 00 00 	lbz     r9,0(r30)                              
ffc068d0:	99 3f 00 00 	stb     r9,0(r31)                              
    part_desc->sys_type = *(data + RTEMS_IDE_PARTITION_SYS_TYPE_OFFSET);
ffc068d4:	88 9e 00 04 	lbz     r4,4(r30)                              
ffc068d8:	98 9f 00 01 	stb     r4,1(r31)                              
  uint32_t value                                                      
)                                                                     
{                                                                     
  uint32_t   swapped;                                                 
                                                                      
  __asm__ volatile("rlwimi %0,%1,8,24,31;"                            
ffc068dc:	81 5e 00 08 	lwz     r10,8(r30)                             
ffc068e0:	51 48 46 3e 	rlwimi  r8,r10,8,24,31                         
ffc068e4:	51 48 c4 2e 	rlwimi  r8,r10,24,16,23                        
ffc068e8:	51 48 42 1e 	rlwimi  r8,r10,8,8,15                          
ffc068ec:	51 48 c0 0e 	rlwimi  r8,r10,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);                           
ffc068f0:	91 1f 00 04 	stw     r8,4(r31)                              
ffc068f4:	81 5e 00 0c 	lwz     r10,12(r30)                            
ffc068f8:	51 5e 46 3e 	rlwimi  r30,r10,8,24,31                        
ffc068fc:	51 5e c4 2e 	rlwimi  r30,r10,24,16,23                       
ffc06900:	51 5e 42 1e 	rlwimi  r30,r10,8,8,15                         
ffc06904:	51 5e c0 0e 	rlwimi  r30,r10,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));
ffc06908:	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);                            
ffc0690c:	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));
ffc06910:	41 9e 00 54 	beq-    cr7,ffc06964 <data_to_part_desc.part.1+0xd4>
ffc06914:	2f 84 00 85 	cmpwi   cr7,r4,133                             
ffc06918:	41 9e 00 4c 	beq-    cr7,ffc06964 <data_to_part_desc.part.1+0xd4><== NEVER TAKEN
    DOS_P32MB_PARTITION,                                              
    FAT32_PARTITION    ,FAT32_LBA_PARTITION,                          
    FAT16_LBA_PARTITION                                               
  };                                                                  
                                                                      
  return (NULL != memchr(fat_part_types,type,sizeof(fat_part_types)));
ffc0691c:	3c 60 ff c3 	lis     r3,-61                                 
ffc06920:	38 63 9f c0 	addi    r3,r3,-24640                           
ffc06924:	38 a0 00 06 	li      r5,6                                   
ffc06928:	48 01 43 29 	bl      ffc1ac50 <memchr>                      
     * use partitions that are                                        
     * - extended                                                     
     * or                                                             
     * - FAT type and non-zero                                        
     */                                                               
    if (is_extended(part_desc->sys_type) ||                           
ffc0692c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06930:	41 9e 00 0c 	beq-    cr7,ffc0693c <data_to_part_desc.part.1+0xac>
       ((is_fat_partition(part_desc->sys_type)) && (part_desc->size != 0))) {
ffc06934:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc06938:	40 9e 00 2c 	bne-    cr7,ffc06964 <data_to_part_desc.part.1+0xd4><== ALWAYS TAKEN
      *new_part_desc = part_desc;                                     
    }                                                                 
    else {                                                            
      /* empty partition */                                           
      free(part_desc);                                                
ffc0693c:	7f e3 fb 78 	mr      r3,r31                                 
ffc06940:	48 00 10 95 	bl      ffc079d4 <free>                        
    }                                                                 
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc06944:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc06948:	83 a1 00 0c 	lwz     r29,12(r1)                             
    }                                                                 
    else {                                                            
      /* empty partition */                                           
      free(part_desc);                                                
    }                                                                 
    return RTEMS_SUCCESSFUL;                                          
ffc0694c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc06950:	7c 08 03 a6 	mtlr    r0                                     
ffc06954:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc06958:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0695c:	38 21 00 18 	addi    r1,r1,24                               
ffc06960:	4e 80 00 20 	blr                                            
ffc06964:	80 01 00 1c 	lwz     r0,28(r1)                              
    }                                                                 
    else {                                                            
      /* empty partition */                                           
      free(part_desc);                                                
    }                                                                 
    return RTEMS_SUCCESSFUL;                                          
ffc06968:	38 60 00 00 	li      r3,0                                   
     * or                                                             
     * - FAT type and non-zero                                        
     */                                                               
    if (is_extended(part_desc->sys_type) ||                           
       ((is_fat_partition(part_desc->sys_type)) && (part_desc->size != 0))) {
      *new_part_desc = part_desc;                                     
ffc0696c:	93 fd 00 00 	stw     r31,0(r29)                             
    else {                                                            
      /* empty partition */                                           
      free(part_desc);                                                
    }                                                                 
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc06970:	7c 08 03 a6 	mtlr    r0                                     
ffc06974:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc06978:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0697c:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc06980:	38 21 00 18 	addi    r1,r1,24                               
ffc06984:	4e 80 00 20 	blr                                            
ffc06988:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
                                                                      
    *new_part_desc = NULL;                                            
                                                                      
    if ((part_desc = calloc(1, sizeof(rtems_part_desc_t))) == NULL)   
    {                                                                 
        return RTEMS_NO_MEMORY;                                       
ffc0698c:	38 60 00 1a 	li      r3,26                                  <== NOT EXECUTED
    else {                                                            
      /* empty partition */                                           
      free(part_desc);                                                
    }                                                                 
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc06990:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc06994:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc06998:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc0699c:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc069a0:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc069a4:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc03d38 <devFS_Show>: #include "devfs.h" void devFS_Show(void) { rtems_filesystem_location_info_t *rootloc = &rtems_filesystem_root->location;
ffc03d38:	3d 20 00 00 	lis     r9,0                                   
ffc03d3c:	81 29 27 b4 	lwz     r9,10164(r9)                           
                                                                      
  if (rootloc->mt_entry->ops == &devFS_ops) {                         
ffc03d40:	3d 00 ff c1 	lis     r8,-63                                 
ffc03d44:	39 08 63 10 	addi    r8,r8,25360                            
ffc03d48:	81 29 00 04 	lwz     r9,4(r9)                               
ffc03d4c:	81 29 00 14 	lwz     r9,20(r9)                              
ffc03d50:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc03d54:	7f 8a 40 00 	cmpw    cr7,r10,r8                             
ffc03d58:	4c be 00 20 	bnelr+  cr7                                    
#endif                                                                
                                                                      
#include "devfs.h"                                                    
                                                                      
void devFS_Show(void)                                                 
{                                                                     
ffc03d5c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc03d60:	7c 08 02 a6 	mflr    r0                                     
ffc03d64:	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;       
ffc03d68:	81 29 00 10 	lwz     r9,16(r9)                              
ffc03d6c:	93 41 00 10 	stw     r26,16(r1)                             
  rtems_filesystem_location_info_t *rootloc = &rtems_filesystem_root->location;
                                                                      
  if (rootloc->mt_entry->ops == &devFS_ops) {                         
    const devFS_data *data = devFS_get_data(rootloc);                 
    size_t i = 0;                                                     
    size_t n = data->count;                                           
ffc03d70:	83 49 00 04 	lwz     r26,4(r9)                              
#endif                                                                
                                                                      
#include "devfs.h"                                                    
                                                                      
void devFS_Show(void)                                                 
{                                                                     
ffc03d74:	93 c1 00 20 	stw     r30,32(r1)                             
    const devFS_data *data = devFS_get_data(rootloc);                 
    size_t i = 0;                                                     
    size_t n = data->count;                                           
    devFS_node *nodes = data->nodes;                                  
                                                                      
    for (i = 0; i < n; ++i) {                                         
ffc03d78:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
#endif                                                                
                                                                      
#include "devfs.h"                                                    
                                                                      
void devFS_Show(void)                                                 
{                                                                     
ffc03d7c:	93 01 00 08 	stw     r24,8(r1)                              
ffc03d80:	93 21 00 0c 	stw     r25,12(r1)                             
ffc03d84:	93 61 00 14 	stw     r27,20(r1)                             
ffc03d88:	93 81 00 18 	stw     r28,24(r1)                             
ffc03d8c:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc03d90:	93 e1 00 24 	stw     r31,36(r1)                             
                                                                      
  if (rootloc->mt_entry->ops == &devFS_ops) {                         
    const devFS_data *data = devFS_get_data(rootloc);                 
    size_t i = 0;                                                     
    size_t n = data->count;                                           
    devFS_node *nodes = data->nodes;                                  
ffc03d94:	83 c9 00 00 	lwz     r30,0(r9)                              
                                                                      
    for (i = 0; i < n; ++i) {                                         
ffc03d98:	41 9e 00 8c 	beq-    cr7,ffc03e24 <devFS_Show+0xec>         <== NEVER TAKEN
                                                                      
      if (current->name != NULL) {                                    
        size_t j = 0;                                                 
        size_t m = current->namelen;                                  
                                                                      
        printk("/");                                                  
ffc03d9c:	3f 00 ff c1 	lis     r24,-63                                
ffc03da0:	3f 80 ff c1 	lis     r28,-63                                
        for (j = 0; j < m; ++j) {                                     
          printk("%c", current->name [j]);                            
        }                                                             
        printk(                                                       
ffc03da4:	3f 20 ff c1 	lis     r25,-63                                
    const devFS_data *data = devFS_get_data(rootloc);                 
    size_t i = 0;                                                     
    size_t n = data->count;                                           
    devFS_node *nodes = data->nodes;                                  
                                                                      
    for (i = 0; i < n; ++i) {                                         
ffc03da8:	3b 60 00 00 	li      r27,0                                  
                                                                      
      if (current->name != NULL) {                                    
        size_t j = 0;                                                 
        size_t m = current->namelen;                                  
                                                                      
        printk("/");                                                  
ffc03dac:	3b 18 63 90 	addi    r24,r24,25488                          
ffc03db0:	3b 9c 63 a0 	addi    r28,r28,25504                          
        for (j = 0; j < m; ++j) {                                     
          printk("%c", current->name [j]);                            
        }                                                             
        printk(                                                       
ffc03db4:	3b 39 63 94 	addi    r25,r25,25492                          
    devFS_node *nodes = data->nodes;                                  
                                                                      
    for (i = 0; i < n; ++i) {                                         
      devFS_node *current = nodes + i;                                
                                                                      
      if (current->name != NULL) {                                    
ffc03db8:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc03dbc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc03dc0:	41 9e 00 54 	beq-    cr7,ffc03e14 <devFS_Show+0xdc>         
        size_t j = 0;                                                 
        size_t m = current->namelen;                                  
ffc03dc4:	83 be 00 04 	lwz     r29,4(r30)                             
                                                                      
        printk("/");                                                  
ffc03dc8:	7f 03 c3 78 	mr      r3,r24                                 
ffc03dcc:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc03dd0:	48 00 12 8d 	bl      ffc0505c <printk>                      
        for (j = 0; j < m; ++j) {                                     
ffc03dd4:	3b e0 00 00 	li      r31,0                                  
ffc03dd8:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc03ddc:	41 9e 00 24 	beq-    cr7,ffc03e00 <devFS_Show+0xc8>         <== NEVER TAKEN
          printk("%c", current->name [j]);                            
ffc03de0:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc03de4:	7f 83 e3 78 	mr      r3,r28                                 
ffc03de8:	7c 89 f8 ae 	lbzx    r4,r9,r31                              
      if (current->name != NULL) {                                    
        size_t j = 0;                                                 
        size_t m = current->namelen;                                  
                                                                      
        printk("/");                                                  
        for (j = 0; j < m; ++j) {                                     
ffc03dec:	3b ff 00 01 	addi    r31,r31,1                              
          printk("%c", current->name [j]);                            
ffc03df0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc03df4:	48 00 12 69 	bl      ffc0505c <printk>                      
      if (current->name != NULL) {                                    
        size_t j = 0;                                                 
        size_t m = current->namelen;                                  
                                                                      
        printk("/");                                                  
        for (j = 0; j < m; ++j) {                                     
ffc03df8:	7f 9f e8 00 	cmpw    cr7,r31,r29                            
ffc03dfc:	40 9e ff e4 	bne+    cr7,ffc03de0 <devFS_Show+0xa8>         
          printk("%c", current->name [j]);                            
        }                                                             
        printk(                                                       
ffc03e00:	80 9e 00 08 	lwz     r4,8(r30)                              
ffc03e04:	7f 23 cb 78 	mr      r3,r25                                 
ffc03e08:	80 be 00 0c 	lwz     r5,12(r30)                             
ffc03e0c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc03e10:	48 00 12 4d 	bl      ffc0505c <printk>                      
    const devFS_data *data = devFS_get_data(rootloc);                 
    size_t i = 0;                                                     
    size_t n = data->count;                                           
    devFS_node *nodes = data->nodes;                                  
                                                                      
    for (i = 0; i < n; ++i) {                                         
ffc03e14:	3b 7b 00 01 	addi    r27,r27,1                              
ffc03e18:	7f 9b d0 00 	cmpw    cr7,r27,r26                            
ffc03e1c:	3b de 00 14 	addi    r30,r30,20                             
ffc03e20:	40 9e ff 98 	bne+    cr7,ffc03db8 <devFS_Show+0x80>         
          (unsigned long) current->minor                              
        );                                                            
      }                                                               
    }                                                                 
  }                                                                   
}                                                                     
ffc03e24:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc03e28:	83 01 00 08 	lwz     r24,8(r1)                              
ffc03e2c:	7c 08 03 a6 	mtlr    r0                                     
ffc03e30:	83 21 00 0c 	lwz     r25,12(r1)                             
ffc03e34:	83 41 00 10 	lwz     r26,16(r1)                             
ffc03e38:	83 61 00 14 	lwz     r27,20(r1)                             
ffc03e3c:	83 81 00 18 	lwz     r28,24(r1)                             
ffc03e40:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc03e44:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc03e48:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc03e4c:	38 21 00 28 	addi    r1,r1,40                               
ffc03e50:	4e 80 00 20 	blr                                            
                                                                      

ffc0df94 <devFS_eval_path>: } void devFS_eval_path( rtems_filesystem_eval_path_context_t *ctx ) {
ffc0df94:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0df98:	7c 08 02 a6 	mflr    r0                                     
ffc0df9c:	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;       
ffc0dfa0:	81 23 00 2c 	lwz     r9,44(r3)                              
ffc0dfa4:	93 01 00 08 	stw     r24,8(r1)                              
ffc0dfa8:	81 29 00 10 	lwz     r9,16(r9)                              
ffc0dfac:	93 21 00 0c 	stw     r25,12(r1)                             
ffc0dfb0:	7c 79 1b 78 	mr      r25,r3                                 
ffc0dfb4:	93 41 00 10 	stw     r26,16(r1)                             
ffc0dfb8:	93 61 00 14 	stw     r27,20(r1)                             
ffc0dfbc:	93 81 00 18 	stw     r28,24(r1)                             
)                                                                     
{                                                                     
  size_t i = 0;                                                       
  size_t n = data->count;                                             
  devFS_node *nodes = data->nodes;                                    
  devFS_node *node = NULL;                                            
ffc0dfc0:	3b 80 00 00 	li      r28,0                                  
}                                                                     
                                                                      
void devFS_eval_path(                                                 
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
ffc0dfc4:	93 a1 00 1c 	stw     r29,28(r1)                             
  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) {    
ffc0dfc8:	3b a0 00 00 	li      r29,0                                  
}                                                                     
                                                                      
void devFS_eval_path(                                                 
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
ffc0dfcc:	93 e1 00 24 	stw     r31,36(r1)                             
  size_t pathlen,                                                     
  devFS_node **free_node_ptr                                          
)                                                                     
{                                                                     
  size_t i = 0;                                                       
  size_t n = data->count;                                             
ffc0dfd0:	83 49 00 04 	lwz     r26,4(r9)                              
ffc0dfd4:	83 e9 00 00 	lwz     r31,0(r9)                              
  devFS_node *nodes = data->nodes;                                    
  devFS_node *node = NULL;                                            
  devFS_node *free_node = NULL;                                       
ffc0dfd8:	39 20 00 00 	li      r9,0                                   
}                                                                     
                                                                      
void devFS_eval_path(                                                 
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
ffc0dfdc:	93 c1 00 20 	stw     r30,32(r1)                             
      }                                                               
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ENOENT);                  
    }                                                                 
  }                                                                   
}                                                                     
ffc0dfe0:	83 03 00 00 	lwz     r24,0(r3)                              
ffc0dfe4:	83 63 00 04 	lwz     r27,4(r3)                              
ffc0dfe8:	48 00 00 1c 	b       ffc0e004 <devFS_eval_path+0x70>        
  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) {    
ffc0dfec:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0dff0:	2f 1c 00 00 	cmpwi   cr6,r28,0                              
ffc0dff4:	3b ff 00 14 	addi    r31,r31,20                             
ffc0dff8:	7f c9 f3 78 	mr      r9,r30                                 
ffc0dffc:	41 9e 00 08 	beq-    cr7,ffc0e004 <devFS_eval_path+0x70>    <== NEVER TAKEN
ffc0e000:	40 9a 00 98 	bne-    cr6,ffc0e098 <devFS_eval_path+0x104>   
ffc0e004:	7f 9d d0 00 	cmpw    cr7,r29,r26                            
    devFS_node *current = nodes + i;                                  
ffc0e008:	7f fe fb 78 	mr      r30,r31                                
  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) {    
ffc0e00c:	3b bd 00 01 	addi    r29,r29,1                              
ffc0e010:	41 9e 00 3c 	beq-    cr7,ffc0e04c <devFS_eval_path+0xb8>    
    devFS_node *current = nodes + i;                                  
                                                                      
    if (current->name != NULL) {                                      
ffc0e014:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc0e018:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e01c:	41 be ff d0 	beq-    cr7,ffc0dfec <devFS_eval_path+0x58>    
      if (                                                            
ffc0e020:	81 5f 00 04 	lwz     r10,4(r31)                             
ffc0e024:	7d 3e 4b 78 	mr      r30,r9                                 
ffc0e028:	7f 9b 50 00 	cmpw    cr7,r27,r10                            
ffc0e02c:	40 9e ff c0 	bne+    cr7,ffc0dfec <devFS_eval_path+0x58>    
        current->namelen == pathlen                                   
          && memcmp(current->name, path, pathlen) == 0                
ffc0e030:	7f 04 c3 78 	mr      r4,r24                                 
ffc0e034:	7f 65 db 78 	mr      r5,r27                                 
ffc0e038:	48 00 37 05 	bl      ffc1173c <memcmp>                      
ffc0e03c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0e040:	40 be ff ac 	bne-    cr7,ffc0dfec <devFS_eval_path+0x58>    
ffc0e044:	7f fc fb 78 	mr      r28,r31                                
ffc0e048:	4b ff ff a4 	b       ffc0dfec <devFS_eval_path+0x58>        
    rtems_filesystem_eval_path_get_pathlen(ctx),                      
    &free_node                                                        
  );                                                                  
  int eval_flags = rtems_filesystem_eval_path_get_flags(ctx);         
                                                                      
  if (node != NULL) {                                                 
ffc0e04c:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
      }                                                               
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ENOENT);                  
    }                                                                 
  }                                                                   
}                                                                     
ffc0e050:	81 59 00 10 	lwz     r10,16(r25)                            
    rtems_filesystem_eval_path_get_pathlen(ctx),                      
    &free_node                                                        
  );                                                                  
  int eval_flags = rtems_filesystem_eval_path_get_flags(ctx);         
                                                                      
  if (node != NULL) {                                                 
ffc0e054:	41 9e 00 88 	beq-    cr7,ffc0e0dc <devFS_eval_path+0x148>   <== ALWAYS TAKEN
    if ((eval_flags & RTEMS_FS_EXCLUSIVE) == 0) {                     
ffc0e058:	71 49 00 40 	andi.   r9,r10,64                              <== NOT EXECUTED
ffc0e05c:	40 82 00 48 	bne-    ffc0e0a4 <devFS_eval_path+0x110>       <== NOT EXECUTED
      }                                                               
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ENOENT);                  
    }                                                                 
  }                                                                   
}                                                                     
ffc0e060:	80 01 00 2c 	lwz     r0,44(r1)                              
  );                                                                  
  int eval_flags = rtems_filesystem_eval_path_get_flags(ctx);         
                                                                      
  if (node != NULL) {                                                 
    if ((eval_flags & RTEMS_FS_EXCLUSIVE) == 0) {                     
      currentloc->node_access = node;                                 
ffc0e064:	93 99 00 20 	stw     r28,32(r25)                            
      }                                                               
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ENOENT);                  
    }                                                                 
  }                                                                   
}                                                                     
ffc0e068:	7c 08 03 a6 	mtlr    r0                                     
                                                                      
static inline void rtems_filesystem_eval_path_clear_path(             
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  ctx->pathlen = 0;                                                   
ffc0e06c:	91 39 00 04 	stw     r9,4(r25)                              
ffc0e070:	83 01 00 08 	lwz     r24,8(r1)                              
ffc0e074:	83 21 00 0c 	lwz     r25,12(r1)                             
ffc0e078:	83 41 00 10 	lwz     r26,16(r1)                             
ffc0e07c:	83 61 00 14 	lwz     r27,20(r1)                             
ffc0e080:	83 81 00 18 	lwz     r28,24(r1)                             
ffc0e084:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0e088:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0e08c:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0e090:	38 21 00 28 	addi    r1,r1,40                               
ffc0e094:	4e 80 00 20 	blr                                            
ffc0e098:	81 59 00 10 	lwz     r10,16(r25)                            
    &free_node                                                        
  );                                                                  
  int eval_flags = rtems_filesystem_eval_path_get_flags(ctx);         
                                                                      
  if (node != NULL) {                                                 
    if ((eval_flags & RTEMS_FS_EXCLUSIVE) == 0) {                     
ffc0e09c:	71 49 00 40 	andi.   r9,r10,64                              
ffc0e0a0:	41 82 ff c0 	beq+    ffc0e060 <devFS_eval_path+0xcc>        
      currentloc->node_access = node;                                 
      rtems_filesystem_eval_path_clear_path(ctx);                     
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, EEXIST);                  
ffc0e0a4:	7f 23 cb 78 	mr      r3,r25                                 
ffc0e0a8:	38 80 00 11 	li      r4,17                                  
      }                                                               
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ENOENT);                  
    }                                                                 
  }                                                                   
}                                                                     
ffc0e0ac:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc0e0b0:	83 01 00 08 	lwz     r24,8(r1)                              
ffc0e0b4:	7c 08 03 a6 	mtlr    r0                                     
ffc0e0b8:	83 21 00 0c 	lwz     r25,12(r1)                             
ffc0e0bc:	83 41 00 10 	lwz     r26,16(r1)                             
ffc0e0c0:	83 61 00 14 	lwz     r27,20(r1)                             
ffc0e0c4:	83 81 00 18 	lwz     r28,24(r1)                             
ffc0e0c8:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0e0cc:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0e0d0:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0e0d4:	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);                  
ffc0e0d8:	4b ff 7a f8 	b       ffc05bd0 <rtems_filesystem_eval_path_error>
      rtems_filesystem_eval_path_clear_path(ctx);                     
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, EEXIST);                  
    }                                                                 
  } else {                                                            
    if ((eval_flags & RTEMS_FS_MAKE) != 0) {                          
ffc0e0dc:	71 48 00 20 	andi.   r8,r10,32                              
ffc0e0e0:	41 82 00 54 	beq-    ffc0e134 <devFS_eval_path+0x1a0>       <== NEVER TAKEN
      if (free_node != NULL) {                                        
ffc0e0e4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0e0e8:	41 9e 00 58 	beq-    cr7,ffc0e140 <devFS_eval_path+0x1ac>   
      }                                                               
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ENOENT);                  
    }                                                                 
  }                                                                   
}                                                                     
ffc0e0ec:	80 01 00 2c 	lwz     r0,44(r1)                              
      rtems_filesystem_eval_path_error(ctx, EEXIST);                  
    }                                                                 
  } else {                                                            
    if ((eval_flags & RTEMS_FS_MAKE) != 0) {                          
      if (free_node != NULL) {                                        
        free_node->mode = S_IRWXU | S_IRWXG | S_IRWXO;                
ffc0e0f0:	39 40 01 ff 	li      r10,511                                
ffc0e0f4:	91 49 00 10 	stw     r10,16(r9)                             
      }                                                               
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ENOENT);                  
    }                                                                 
  }                                                                   
}                                                                     
ffc0e0f8:	7c 08 03 a6 	mtlr    r0                                     
  rtems_filesystem_eval_path_context_t *ctx,                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  ctx->token = token;                                                 
ffc0e0fc:	93 19 00 08 	stw     r24,8(r25)                             
  ctx->tokenlen = tokenlen;                                           
ffc0e100:	93 79 00 0c 	stw     r27,12(r25)                            
                                                                      
static inline void rtems_filesystem_eval_path_clear_path(             
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  ctx->pathlen = 0;                                                   
ffc0e104:	93 99 00 04 	stw     r28,4(r25)                             
    }                                                                 
  } else {                                                            
    if ((eval_flags & RTEMS_FS_MAKE) != 0) {                          
      if (free_node != NULL) {                                        
        free_node->mode = S_IRWXU | S_IRWXG | S_IRWXO;                
        currentloc->node_access = free_node;                          
ffc0e108:	91 39 00 20 	stw     r9,32(r25)                             
      }                                                               
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ENOENT);                  
    }                                                                 
  }                                                                   
}                                                                     
ffc0e10c:	83 01 00 08 	lwz     r24,8(r1)                              
ffc0e110:	83 21 00 0c 	lwz     r25,12(r1)                             
ffc0e114:	83 41 00 10 	lwz     r26,16(r1)                             
ffc0e118:	83 61 00 14 	lwz     r27,20(r1)                             
ffc0e11c:	83 81 00 18 	lwz     r28,24(r1)                             
ffc0e120:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0e124:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0e128:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0e12c:	38 21 00 28 	addi    r1,r1,40                               
ffc0e130:	4e 80 00 20 	blr                                            
        rtems_filesystem_eval_path_clear_path(ctx);                   
      } else {                                                        
        rtems_filesystem_eval_path_error(ctx, ENOSPC);                
      }                                                               
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ENOENT);                  
ffc0e134:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc0e138:	38 80 00 02 	li      r4,2                                   <== NOT EXECUTED
ffc0e13c:	4b ff ff 70 	b       ffc0e0ac <devFS_eval_path+0x118>       <== NOT EXECUTED
          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);                
ffc0e140:	7f 23 cb 78 	mr      r3,r25                                 
ffc0e144:	38 80 00 1c 	li      r4,28                                  
ffc0e148:	4b ff ff 64 	b       ffc0e0ac <devFS_eval_path+0x118>       
                                                                      

ffc04514 <devFS_mknod>: dev_t dev ) { int rv = 0; if (namelen != 3 || name [0] != 'd' || name [1] != 'e' || name [2] != 'v') {
ffc04514:	2f 85 00 03 	cmpwi   cr7,r5,3                               
  const char *name,                                                   
  size_t namelen,                                                     
  mode_t mode,                                                        
  dev_t dev                                                           
)                                                                     
{                                                                     
ffc04518:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0451c:	7c 08 02 a6 	mflr    r0                                     
ffc04520:	93 61 00 14 	stw     r27,20(r1)                             
ffc04524:	7d 1b 43 78 	mr      r27,r8                                 
ffc04528:	93 81 00 18 	stw     r28,24(r1)                             
ffc0452c:	7c fc 3b 78 	mr      r28,r7                                 
ffc04530:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc04534:	7c 7d 1b 78 	mr      r29,r3                                 
ffc04538:	93 c1 00 20 	stw     r30,32(r1)                             
ffc0453c:	7c de 33 78 	mr      r30,r6                                 
ffc04540:	93 e1 00 24 	stw     r31,36(r1)                             
ffc04544:	7c bf 2b 78 	mr      r31,r5                                 
ffc04548:	90 01 00 2c 	stw     r0,44(r1)                              
  int rv = 0;                                                         
                                                                      
  if (namelen != 3 || name [0] != 'd' || name [1] != 'e' || name [2] != 'v') {
ffc0454c:	41 9e 00 78 	beq-    cr7,ffc045c4 <devFS_mknod+0xb0>        
    if (S_ISBLK(mode) || S_ISCHR(mode)) {                             
ffc04550:	57 c9 04 26 	rlwinm  r9,r30,0,16,19                         
ffc04554:	2f 89 60 00 	cmpwi   cr7,r9,24576                           
ffc04558:	41 9e 00 0c 	beq-    cr7,ffc04564 <devFS_mknod+0x50>        
ffc0455c:	2f 89 20 00 	cmpwi   cr7,r9,8192                            
ffc04560:	40 9e 00 98 	bne-    cr7,ffc045f8 <devFS_mknod+0xe4>        
      char *dupname = malloc(namelen);                                
ffc04564:	7f e3 fb 78 	mr      r3,r31                                 
ffc04568:	90 81 00 08 	stw     r4,8(r1)                               
ffc0456c:	48 00 06 2d 	bl      ffc04b98 <malloc>                      
                                                                      
      if (dupname != NULL) {                                          
ffc04570:	7c 6a 1b 79 	mr.     r10,r3                                 
ffc04574:	80 81 00 08 	lwz     r4,8(r1)                               
ffc04578:	41 82 00 94 	beq-    ffc0460c <devFS_mknod+0xf8>            
        devFS_node *node = parentloc->node_access;                    
ffc0457c:	81 3d 00 08 	lwz     r9,8(r29)                              
        node->name = dupname;                                         
        node->namelen = namelen;                                      
        node->major = rtems_filesystem_dev_major_t(dev);              
        node->minor = rtems_filesystem_dev_minor_t(dev);              
        node->mode = mode;                                            
        memcpy(dupname, name, namelen);                               
ffc04580:	7f e5 fb 78 	mr      r5,r31                                 
      char *dupname = malloc(namelen);                                
                                                                      
      if (dupname != NULL) {                                          
        devFS_node *node = parentloc->node_access;                    
                                                                      
        node->name = dupname;                                         
ffc04584:	91 49 00 00 	stw     r10,0(r9)                              
        node->namelen = namelen;                                      
ffc04588:	93 e9 00 04 	stw     r31,4(r9)                              
        node->major = rtems_filesystem_dev_major_t(dev);              
ffc0458c:	93 89 00 08 	stw     r28,8(r9)                              
        node->minor = rtems_filesystem_dev_minor_t(dev);              
ffc04590:	93 69 00 0c 	stw     r27,12(r9)                             
        node->mode = mode;                                            
ffc04594:	93 c9 00 10 	stw     r30,16(r9)                             
        memcpy(dupname, name, namelen);                               
ffc04598:	48 00 d2 29 	bl      ffc117c0 <memcpy>                      
  size_t namelen,                                                     
  mode_t mode,                                                        
  dev_t dev                                                           
)                                                                     
{                                                                     
  int rv = 0;                                                         
ffc0459c:	38 60 00 00 	li      r3,0                                   
      rv = -1;                                                        
    }                                                                 
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc045a0:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc045a4:	83 61 00 14 	lwz     r27,20(r1)                             
ffc045a8:	7c 08 03 a6 	mtlr    r0                                     
ffc045ac:	83 81 00 18 	lwz     r28,24(r1)                             
ffc045b0:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc045b4:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc045b8:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc045bc:	38 21 00 28 	addi    r1,r1,40                               
ffc045c0:	4e 80 00 20 	blr                                            
  dev_t dev                                                           
)                                                                     
{                                                                     
  int rv = 0;                                                         
                                                                      
  if (namelen != 3 || name [0] != 'd' || name [1] != 'e' || name [2] != 'v') {
ffc045c4:	89 24 00 00 	lbz     r9,0(r4)                               
ffc045c8:	2f 89 00 64 	cmpwi   cr7,r9,100                             
ffc045cc:	40 9e ff 84 	bne+    cr7,ffc04550 <devFS_mknod+0x3c>        <== NEVER TAKEN
ffc045d0:	89 24 00 01 	lbz     r9,1(r4)                               
ffc045d4:	2f 89 00 65 	cmpwi   cr7,r9,101                             
ffc045d8:	40 9e ff 78 	bne+    cr7,ffc04550 <devFS_mknod+0x3c>        <== NEVER TAKEN
ffc045dc:	89 24 00 02 	lbz     r9,2(r4)                               
ffc045e0:	2f 89 00 76 	cmpwi   cr7,r9,118                             
ffc045e4:	40 9e ff 6c 	bne+    cr7,ffc04550 <devFS_mknod+0x3c>        <== NEVER TAKEN
    } else {                                                          
      errno = ENOTSUP;                                                
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    if (!S_ISDIR(mode)) {                                             
ffc045e8:	54 de 04 26 	rlwinm  r30,r6,0,16,19                         
ffc045ec:	2f 9e 40 00 	cmpwi   cr7,r30,16384                          
  size_t namelen,                                                     
  mode_t mode,                                                        
  dev_t dev                                                           
)                                                                     
{                                                                     
  int rv = 0;                                                         
ffc045f0:	38 60 00 00 	li      r3,0                                   
    } else {                                                          
      errno = ENOTSUP;                                                
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    if (!S_ISDIR(mode)) {                                             
ffc045f4:	41 9e ff ac 	beq+    cr7,ffc045a0 <devFS_mknod+0x8c>        <== ALWAYS TAKEN
      errno = ENOTSUP;                                                
ffc045f8:	48 00 c4 d9 	bl      ffc10ad0 <__errno>                     
ffc045fc:	39 20 00 86 	li      r9,134                                 
ffc04600:	91 23 00 00 	stw     r9,0(r3)                               
      rv = -1;                                                        
ffc04604:	38 60 ff ff 	li      r3,-1                                  
ffc04608:	4b ff ff 98 	b       ffc045a0 <devFS_mknod+0x8c>            
        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;                                               
ffc0460c:	48 00 c4 c5 	bl      ffc10ad0 <__errno>                     
ffc04610:	39 20 00 0c 	li      r9,12                                  
ffc04614:	91 23 00 00 	stw     r9,0(r3)                               
        rv = -1;                                                      
ffc04618:	38 60 ff ff 	li      r3,-1                                  
ffc0461c:	4b ff ff 84 	b       ffc045a0 <devFS_mknod+0x8c>            
                                                                      

ffc04678 <disk_lock>: */ static volatile bool diskdevs_protected; static rtems_status_code disk_lock(void) {
ffc04678:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0467c:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_obtain(diskdevs_mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc04680:	38 80 00 00 	li      r4,0                                   
 */                                                                   
static volatile bool diskdevs_protected;                              
                                                                      
static rtems_status_code                                              
disk_lock(void)                                                       
{                                                                     
ffc04684:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_obtain(diskdevs_mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc04688:	38 a0 00 00 	li      r5,0                                   
 */                                                                   
static volatile bool diskdevs_protected;                              
                                                                      
static rtems_status_code                                              
disk_lock(void)                                                       
{                                                                     
ffc0468c:	93 e1 00 0c 	stw     r31,12(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_obtain(diskdevs_mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc04690:	3f e0 00 00 	lis     r31,0                                  
ffc04694:	3b ff 28 e0 	addi    r31,r31,10464                          
ffc04698:	80 7f 00 08 	lwz     r3,8(r31)                              
ffc0469c:	48 00 68 ad 	bl      ffc0af48 <rtems_semaphore_obtain>      
  if (sc == RTEMS_SUCCESSFUL) {                                       
ffc046a0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
    diskdevs_protected = true;                                        
                                                                      
    return RTEMS_SUCCESSFUL;                                          
  } else {                                                            
    return RTEMS_NOT_CONFIGURED;                                      
ffc046a4:	38 60 00 16 	li      r3,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) {                                       
ffc046a8:	41 9e 00 18 	beq-    cr7,ffc046c0 <disk_lock+0x48>          <== ALWAYS TAKEN
                                                                      
    return RTEMS_SUCCESSFUL;                                          
  } else {                                                            
    return RTEMS_NOT_CONFIGURED;                                      
  }                                                                   
}                                                                     
ffc046ac:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
ffc046b0:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc046b4:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc046b8:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc046bc:	4e 80 00 20 	blr                                            <== NOT EXECUTED
ffc046c0:	80 01 00 14 	lwz     r0,20(r1)                              
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_semaphore_obtain(diskdevs_mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  if (sc == RTEMS_SUCCESSFUL) {                                       
    diskdevs_protected = true;                                        
ffc046c4:	39 20 00 01 	li      r9,1                                   
ffc046c8:	99 3f 00 0c 	stb     r9,12(r31)                             
                                                                      
    return RTEMS_SUCCESSFUL;                                          
ffc046cc:	38 60 00 00 	li      r3,0                                   
  } else {                                                            
    return RTEMS_NOT_CONFIGURED;                                      
  }                                                                   
}                                                                     
ffc046d0:	7c 08 03 a6 	mtlr    r0                                     
ffc046d4:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc046d8:	38 21 00 10 	addi    r1,r1,16                               
ffc046dc:	4e 80 00 20 	blr                                            
                                                                      

ffc046e0 <disk_unlock>: static void disk_unlock(void) {
ffc046e0:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc046e4:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  diskdevs_protected = false;                                         
ffc046e8:	3d 20 00 00 	lis     r9,0                                   
  }                                                                   
}                                                                     
                                                                      
static void                                                           
disk_unlock(void)                                                     
{                                                                     
ffc046ec:	90 01 00 0c 	stw     r0,12(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  diskdevs_protected = false;                                         
ffc046f0:	39 29 28 e0 	addi    r9,r9,10464                            
ffc046f4:	39 40 00 00 	li      r10,0                                  
                                                                      
  sc = rtems_semaphore_release(diskdevs_mutex);                       
ffc046f8:	80 69 00 08 	lwz     r3,8(r9)                               
static void                                                           
disk_unlock(void)                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  diskdevs_protected = false;                                         
ffc046fc:	99 49 00 0c 	stb     r10,12(r9)                             
                                                                      
  sc = rtems_semaphore_release(diskdevs_mutex);                       
ffc04700:	48 00 69 e9 	bl      ffc0b0e8 <rtems_semaphore_release>     
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04704:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04708:	40 9e 00 14 	bne-    cr7,ffc0471c <disk_unlock+0x3c>        <== NEVER TAKEN
    /* FIXME: Error number */                                         
    rtems_fatal_error_occurred(0xdeadbeef);                           
  }                                                                   
}                                                                     
ffc0470c:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc04710:	38 21 00 08 	addi    r1,r1,8                                
ffc04714:	7c 08 03 a6 	mtlr    r0                                     
ffc04718:	4e 80 00 20 	blr                                            
  diskdevs_protected = false;                                         
                                                                      
  sc = rtems_semaphore_release(diskdevs_mutex);                       
  if (sc != RTEMS_SUCCESSFUL) {                                       
    /* FIXME: Error number */                                         
    rtems_fatal_error_occurred(0xdeadbeef);                           
ffc0471c:	3c 60 de ad 	lis     r3,-8531                               <== NOT EXECUTED
ffc04720:	60 63 be ef 	ori     r3,r3,48879                            <== NOT EXECUTED
ffc04724:	48 00 70 e1 	bl      ffc0b804 <rtems_fatal_error_occurred>  <== NOT EXECUTED
                                                                      

ffc06dec <drainOutput.part.0>: /* * Drain output queue */ static void drainOutput (struct rtems_termios_tty *tty)
ffc06dec:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc06df0:	7c 08 02 a6 	mflr    r0                                     
ffc06df4:	90 01 00 14 	stw     r0,20(r1)                              
ffc06df8:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc06dfc:	7c 7f 1b 78 	mr      r31,r3                                 
ffc06e00:	93 c1 00 08 	stw     r30,8(r1)                              
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc06e04:	7d 20 00 a6 	mfmsr   r9                                     
ffc06e08:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc06e0c:	7d 2a 50 78 	andc    r10,r9,r10                             
ffc06e10:	7d 40 01 24 	mtmsr   r10                                    
  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) {              
ffc06e14:	81 03 00 84 	lwz     r8,132(r3)                             
ffc06e18:	81 43 00 80 	lwz     r10,128(r3)                            
ffc06e1c:	7f 88 50 00 	cmpw    cr7,r8,r10                             
ffc06e20:	41 9e 00 48 	beq-    cr7,ffc06e68 <drainOutput.part.0+0x7c> <== ALWAYS TAKEN
      tty->rawOutBufState = rob_wait;                                 
ffc06e24:	3b c0 00 02 	li      r30,2                                  <== NOT EXECUTED
ffc06e28:	93 df 00 94 	stw     r30,148(r31)                           <== NOT EXECUTED
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc06e2c:	7d 20 01 24 	mtmsr   r9                                     <== NOT EXECUTED
      rtems_interrupt_enable (level);                                 
      sc = rtems_semaphore_obtain(                                    
ffc06e30:	80 7f 00 8c 	lwz     r3,140(r31)                            <== NOT EXECUTED
ffc06e34:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc06e38:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc06e3c:	48 00 2b e5 	bl      ffc09a20 <rtems_semaphore_obtain>      <== NOT EXECUTED
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc06e40:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc06e44:	40 9e 00 40 	bne-    cr7,ffc06e84 <drainOutput.part.0+0x98> <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc06e48:	7d 20 00 a6 	mfmsr   r9                                     <== NOT EXECUTED
ffc06e4c:	7d 50 42 a6 	mfsprg  r10,0                                  <== NOT EXECUTED
ffc06e50:	7d 2a 50 78 	andc    r10,r9,r10                             <== NOT EXECUTED
ffc06e54:	7d 40 01 24 	mtmsr   r10                                    <== 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) {              
ffc06e58:	81 1f 00 84 	lwz     r8,132(r31)                            <== NOT EXECUTED
ffc06e5c:	81 5f 00 80 	lwz     r10,128(r31)                           <== NOT EXECUTED
ffc06e60:	7f 88 50 00 	cmpw    cr7,r8,r10                             <== NOT EXECUTED
ffc06e64:	40 9e ff c4 	bne+    cr7,ffc06e28 <drainOutput.part.0+0x3c> <== NOT EXECUTED
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc06e68:	7d 20 01 24 	mtmsr   r9                                     
        rtems_fatal_error_occurred (sc);                              
      rtems_interrupt_disable (level);                                
    }                                                                 
    rtems_interrupt_enable (level);                                   
  }                                                                   
}                                                                     
ffc06e6c:	80 01 00 14 	lwz     r0,20(r1)                              
ffc06e70:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc06e74:	7c 08 03 a6 	mtlr    r0                                     
ffc06e78:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc06e7c:	38 21 00 10 	addi    r1,r1,16                               
ffc06e80:	4e 80 00 20 	blr                                            
      tty->rawOutBufState = rob_wait;                                 
      rtems_interrupt_enable (level);                                 
      sc = rtems_semaphore_obtain(                                    
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
ffc06e84:	48 00 35 19 	bl      ffc0a39c <rtems_fatal_error_occurred>  <== NOT EXECUTED
                                                                      

ffc0516c <dup2>: */ int dup2( int fildes, int fildes2 ) {
ffc0516c:	94 21 ff a0 	stwu    r1,-96(r1)                             
ffc05170:	7c 08 02 a6 	mflr    r0                                     
ffc05174:	93 e1 00 5c 	stw     r31,92(r1)                             
ffc05178:	7c 9f 23 78 	mr      r31,r4                                 
                                                                      
  /*                                                                  
   *  If fildes is not valid, then fildes2 should not be closed.      
   */                                                                 
                                                                      
  status = fstat( fildes, &buf );                                     
ffc0517c:	38 81 00 08 	addi    r4,r1,8                                
 */                                                                   
int dup2(                                                             
  int fildes,                                                         
  int fildes2                                                         
)                                                                     
{                                                                     
ffc05180:	93 c1 00 58 	stw     r30,88(r1)                             
ffc05184:	7c 7e 1b 78 	mr      r30,r3                                 
ffc05188:	90 01 00 64 	stw     r0,100(r1)                             
                                                                      
  /*                                                                  
   *  If fildes is not valid, then fildes2 should not be closed.      
   */                                                                 
                                                                      
  status = fstat( fildes, &buf );                                     
ffc0518c:	48 00 05 f1 	bl      ffc0577c <fstat>                       
  if ( status == -1 )                                                 
ffc05190:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc05194:	41 9e 00 44 	beq-    cr7,ffc051d8 <dup2+0x6c>               
                                                                      
  /*                                                                  
   *  If fildes2 is not valid, then we should not do anything either. 
   */                                                                 
                                                                      
  status = fstat( fildes2, &buf );                                    
ffc05198:	7f e3 fb 78 	mr      r3,r31                                 
ffc0519c:	38 81 00 08 	addi    r4,r1,8                                
ffc051a0:	48 00 05 dd 	bl      ffc0577c <fstat>                       
  if ( status == -1 )                                                 
ffc051a4:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc051a8:	41 9e 00 30 	beq-    cr7,ffc051d8 <dup2+0x6c>               <== NEVER TAKEN
                                                                      
  /*                                                                  
   *  This fcntl handles everything else.                             
   */                                                                 
                                                                      
  return fcntl( fildes, F_DUPFD, fildes2 );                           
ffc051ac:	7f c3 f3 78 	mr      r3,r30                                 
ffc051b0:	38 80 00 00 	li      r4,0                                   
ffc051b4:	7f e5 fb 78 	mr      r5,r31                                 
ffc051b8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc051bc:	48 00 00 35 	bl      ffc051f0 <fcntl>                       
}                                                                     
ffc051c0:	80 01 00 64 	lwz     r0,100(r1)                             
ffc051c4:	83 c1 00 58 	lwz     r30,88(r1)                             
ffc051c8:	7c 08 03 a6 	mtlr    r0                                     
ffc051cc:	83 e1 00 5c 	lwz     r31,92(r1)                             
ffc051d0:	38 21 00 60 	addi    r1,r1,96                               
ffc051d4:	4e 80 00 20 	blr                                            
   *  If fildes is not valid, then fildes2 should not be closed.      
   */                                                                 
                                                                      
  status = fstat( fildes, &buf );                                     
  if ( status == -1 )                                                 
    return -1;                                                        
ffc051d8:	38 60 ff ff 	li      r3,-1                                  
ffc051dc:	4b ff ff e4 	b       ffc051c0 <dup2+0x54>                   
                                                                      

ffc07d70 <echo>: /* * Echo a typed character */ static void echo (unsigned char c, struct rtems_termios_tty *tty) {
ffc07d70:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc07d74:	7c 08 02 a6 	mflr    r0                                     
ffc07d78:	90 01 00 24 	stw     r0,36(r1)                              
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
ffc07d7c:	81 24 00 3c 	lwz     r9,60(r4)                              
/*                                                                    
 * Echo a typed character                                             
 */                                                                   
static void                                                           
echo (unsigned char c, struct rtems_termios_tty *tty)                 
{                                                                     
ffc07d80:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc07d84:	7c 9f 23 78 	mr      r31,r4                                 
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
ffc07d88:	71 2a 02 00 	andi.   r10,r9,512                             
ffc07d8c:	41 82 00 30 	beq-    ffc07dbc <echo+0x4c>                   <== NEVER TAKEN
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
ffc07d90:	3d 20 00 00 	lis     r9,0                                   
ffc07d94:	81 29 27 e0 	lwz     r9,10208(r9)                           
ffc07d98:	7d 29 1a 14 	add     r9,r9,r3                               
ffc07d9c:	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) &&                             
ffc07da0:	55 29 06 b4 	rlwinm  r9,r9,0,26,26                          
ffc07da4:	71 2a 00 ff 	andi.   r10,r9,255                             
ffc07da8:	41 82 00 14 	beq-    ffc07dbc <echo+0x4c>                   
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
ffc07dac:	2f 83 00 09 	cmpwi   cr7,r3,9                               
ffc07db0:	41 9e 00 0c 	beq-    cr7,ffc07dbc <echo+0x4c>               
ffc07db4:	2f 83 00 0a 	cmpwi   cr7,r3,10                              
ffc07db8:	40 9e 00 20 	bne-    cr7,ffc07dd8 <echo+0x68>               
    echobuf[0] = '^';                                                 
    echobuf[1] = c ^ 0x40;                                            
    rtems_termios_puts (echobuf, 2, tty);                             
    tty->column += 2;                                                 
  } else {                                                            
    oproc (c, tty);                                                   
ffc07dbc:	7f e4 fb 78 	mr      r4,r31                                 
ffc07dc0:	4b ff fe 25 	bl      ffc07be4 <oproc>                       
  }                                                                   
}                                                                     
ffc07dc4:	80 01 00 24 	lwz     r0,36(r1)                              
ffc07dc8:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc07dcc:	7c 08 03 a6 	mtlr    r0                                     
ffc07dd0:	38 21 00 20 	addi    r1,r1,32                               
ffc07dd4:	4e 80 00 20 	blr                                            
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
    char echobuf[2];                                                  
                                                                      
    echobuf[0] = '^';                                                 
    echobuf[1] = c ^ 0x40;                                            
ffc07dd8:	68 69 00 40 	xori    r9,r3,64                               
    rtems_termios_puts (echobuf, 2, tty);                             
ffc07ddc:	7f e5 fb 78 	mr      r5,r31                                 
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
    char echobuf[2];                                                  
                                                                      
    echobuf[0] = '^';                                                 
    echobuf[1] = c ^ 0x40;                                            
ffc07de0:	99 21 00 09 	stb     r9,9(r1)                               
    rtems_termios_puts (echobuf, 2, tty);                             
ffc07de4:	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] = '^';                                                 
ffc07de8:	39 40 00 5e 	li      r10,94                                 
    echobuf[1] = c ^ 0x40;                                            
    rtems_termios_puts (echobuf, 2, tty);                             
ffc07dec:	38 80 00 02 	li      r4,2                                   
{                                                                     
  if ((tty->termios.c_lflag & ECHOCTL) &&                             
       iscntrl(c) && (c != '\t') && (c != '\n')) {                    
    char echobuf[2];                                                  
                                                                      
    echobuf[0] = '^';                                                 
ffc07df0:	99 41 00 08 	stb     r10,8(r1)                              
    echobuf[1] = c ^ 0x40;                                            
    rtems_termios_puts (echobuf, 2, tty);                             
ffc07df4:	4b ff fc 45 	bl      ffc07a38 <rtems_termios_puts>          
    tty->column += 2;                                                 
  } else {                                                            
    oproc (c, tty);                                                   
  }                                                                   
}                                                                     
ffc07df8:	80 01 00 24 	lwz     r0,36(r1)                              
    char echobuf[2];                                                  
                                                                      
    echobuf[0] = '^';                                                 
    echobuf[1] = c ^ 0x40;                                            
    rtems_termios_puts (echobuf, 2, tty);                             
    tty->column += 2;                                                 
ffc07dfc:	81 3f 00 28 	lwz     r9,40(r31)                             
  } else {                                                            
    oproc (c, tty);                                                   
  }                                                                   
}                                                                     
ffc07e00:	7c 08 03 a6 	mtlr    r0                                     
    char echobuf[2];                                                  
                                                                      
    echobuf[0] = '^';                                                 
    echobuf[1] = c ^ 0x40;                                            
    rtems_termios_puts (echobuf, 2, tty);                             
    tty->column += 2;                                                 
ffc07e04:	39 29 00 02 	addi    r9,r9,2                                
ffc07e08:	91 3f 00 28 	stw     r9,40(r31)                             
  } else {                                                            
    oproc (c, tty);                                                   
  }                                                                   
}                                                                     
ffc07e0c:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc07e10:	38 21 00 20 	addi    r1,r1,32                               
ffc07e14:	4e 80 00 20 	blr                                            
                                                                      

ffc07e18 <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)
ffc07e18:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc07e1c:	7d 80 00 26 	mfcr    r12                                    
ffc07e20:	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)) {             
ffc07e24:	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)                   
ffc07e28:	93 61 00 14 	stw     r27,20(r1)                             
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
          rtems_termios_puts ("\b \b", 3, tty);                       
ffc07e2c:	3f 60 ff c2 	lis     r27,-62                                
ffc07e30:	3b 7b fd 40 	addi    r27,r27,-704                           
 * 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)                   
ffc07e34:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc07e38:	3f a0 ff c2 	lis     r29,-62                                
ffc07e3c:	3b bd fd 3c 	addi    r29,r29,-708                           
ffc07e40:	90 01 00 2c 	stw     r0,44(r1)                              
ffc07e44:	93 41 00 10 	stw     r26,16(r1)                             
ffc07e48:	93 c1 00 20 	stw     r30,32(r1)                             
ffc07e4c:	91 81 00 0c 	stw     r12,12(r1)                             
ffc07e50:	93 81 00 18 	stw     r28,24(r1)                             
          rtems_termios_puts ("\b", 1, tty);                          
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
ffc07e54:	3f 80 00 00 	lis     r28,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)                   
ffc07e58:	93 e1 00 24 	stw     r31,36(r1)                             
ffc07e5c:	7c 7f 1b 78 	mr      r31,r3                                 
        echo ('\n', tty);                                             
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
ffc07e60:	81 5f 00 20 	lwz     r10,32(r31)                            
ffc07e64:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc07e68:	41 9e 00 78 	beq-    cr7,ffc07ee0 <erase.part.2+0xc8>       
    unsigned char c = tty->cbuf[--tty->ccount];                       
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
ffc07e6c:	81 3f 00 3c 	lwz     r9,60(r31)                             
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
ffc07e70:	39 4a ff ff 	addi    r10,r10,-1                             
ffc07e74:	81 1f 00 1c 	lwz     r8,28(r31)                             
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
ffc07e78:	71 26 00 08 	andi.   r6,r9,8                                
      return;                                                         
    }                                                                 
  }                                                                   
                                                                      
  while (tty->ccount) {                                               
    unsigned char c = tty->cbuf[--tty->ccount];                       
ffc07e7c:	91 5f 00 20 	stw     r10,32(r31)                            
ffc07e80:	7c e8 50 ae 	lbzx    r7,r8,r10                              
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
ffc07e84:	41 82 00 58 	beq-    ffc07edc <erase.part.2+0xc4>           <== NEVER TAKEN
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
ffc07e88:	40 92 00 0c 	bne-    cr4,ffc07e94 <erase.part.2+0x7c>       
ffc07e8c:	71 26 00 10 	andi.   r6,r9,16                               
ffc07e90:	41 82 01 74 	beq-    ffc08004 <erase.part.2+0x1ec>          <== NEVER TAKEN
        echo (tty->termios.c_cc[VERASE], tty);                        
      } else if (c == '\t') {                                         
ffc07e94:	2f 87 00 09 	cmpwi   cr7,r7,9                               
ffc07e98:	41 9e 00 c8 	beq-    cr7,ffc07f60 <erase.part.2+0x148>      
          rtems_termios_puts ("\b", 1, tty);                          
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
ffc07e9c:	81 5c 27 e0 	lwz     r10,10208(r28)                         
ffc07ea0:	3b c7 00 01 	addi    r30,r7,1                               
ffc07ea4:	7d 4a f0 ae 	lbzx    r10,r10,r30                            
ffc07ea8:	55 4a 06 b4 	rlwinm  r10,r10,0,26,26                        
ffc07eac:	71 48 00 ff 	andi.   r8,r10,255                             
ffc07eb0:	40 82 00 60 	bne-    ffc07f10 <erase.part.2+0xf8>           <== NEVER TAKEN
ffc07eb4:	7f 7a db 78 	mr      r26,r27                                
          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);                       
ffc07eb8:	7f 43 d3 78 	mr      r3,r26                                 
ffc07ebc:	38 80 00 03 	li      r4,3                                   
ffc07ec0:	7f e5 fb 78 	mr      r5,r31                                 
ffc07ec4:	4b ff fb 75 	bl      ffc07a38 <rtems_termios_puts>          
          if (tty->column)                                            
ffc07ec8:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc07ecc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07ed0:	41 9e 00 0c 	beq-    cr7,ffc07edc <erase.part.2+0xc4>       <== NEVER TAKEN
            tty->column--;                                            
ffc07ed4:	39 29 ff ff 	addi    r9,r9,-1                               
ffc07ed8:	91 3f 00 28 	stw     r9,40(r31)                             
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
ffc07edc:	40 92 ff 84 	bne+    cr4,ffc07e60 <erase.part.2+0x48>       
      break;                                                          
  }                                                                   
}                                                                     
ffc07ee0:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc07ee4:	81 81 00 0c 	lwz     r12,12(r1)                             
ffc07ee8:	7c 08 03 a6 	mtlr    r0                                     
ffc07eec:	83 41 00 10 	lwz     r26,16(r1)                             
ffc07ef0:	83 61 00 14 	lwz     r27,20(r1)                             
ffc07ef4:	7d 80 81 20 	mtcrf   8,r12                                  
ffc07ef8:	83 81 00 18 	lwz     r28,24(r1)                             
ffc07efc:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc07f00:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc07f04:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc07f08:	38 21 00 28 	addi    r1,r1,40                               
ffc07f0c:	4e 80 00 20 	blr                                            
          rtems_termios_puts ("\b", 1, tty);                          
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
ffc07f10:	71 2a 02 00 	andi.   r10,r9,512                             <== NOT EXECUTED
ffc07f14:	41 82 ff c8 	beq+    ffc07edc <erase.part.2+0xc4>           <== NOT EXECUTED
          rtems_termios_puts ("\b \b", 3, tty);                       
ffc07f18:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc07f1c:	38 80 00 03 	li      r4,3                                   <== NOT EXECUTED
ffc07f20:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc07f24:	4b ff fb 15 	bl      ffc07a38 <rtems_termios_puts>          <== NOT EXECUTED
          if (tty->column)                                            
ffc07f28:	81 3f 00 28 	lwz     r9,40(r31)                             <== NOT EXECUTED
          tty->column--;                                              
        }                                                             
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
          rtems_termios_puts ("\b \b", 3, tty);                       
ffc07f2c:	7f 7a db 78 	mr      r26,r27                                <== NOT EXECUTED
          if (tty->column)                                            
ffc07f30:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc07f34:	40 9e 01 08 	bne-    cr7,ffc0803c <erase.part.2+0x224>      <== NOT EXECUTED
            tty->column--;                                            
        }                                                             
        if (!iscntrl (c) || (tty->termios.c_lflag & ECHOCTL)) {       
ffc07f38:	81 3c 27 e0 	lwz     r9,10208(r28)                          <== NOT EXECUTED
ffc07f3c:	7d 29 f0 ae 	lbzx    r9,r9,r30                              <== NOT EXECUTED
ffc07f40:	55 29 06 b4 	rlwinm  r9,r9,0,26,26                          <== NOT EXECUTED
ffc07f44:	71 26 00 ff 	andi.   r6,r9,255                              <== NOT EXECUTED
ffc07f48:	41 a2 ff 70 	beq-    ffc07eb8 <erase.part.2+0xa0>           <== NOT EXECUTED
ffc07f4c:	81 3f 00 3c 	lwz     r9,60(r31)                             <== NOT EXECUTED
ffc07f50:	71 27 02 00 	andi.   r7,r9,512                              <== NOT EXECUTED
ffc07f54:	40 82 ff 64 	bne+    ffc07eb8 <erase.part.2+0xa0>           <== NOT EXECUTED
          if (tty->column)                                            
            tty->column--;                                            
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
ffc07f58:	40 92 ff 08 	bne+    cr4,ffc07e60 <erase.part.2+0x48>       <== NOT EXECUTED
ffc07f5c:	4b ff ff 84 	b       ffc07ee0 <erase.part.2+0xc8>           <== NOT EXECUTED
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
ffc07f60:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
                                                                      
    if (tty->termios.c_lflag & ECHO) {                                
      if (!lineFlag && !(tty->termios.c_lflag & ECHOE)) {             
        echo (tty->termios.c_cc[VERASE], tty);                        
      } else if (c == '\t') {                                         
        int col = tty->read_start_column;                             
ffc07f64:	83 df 00 2c 	lwz     r30,44(r31)                            
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
ffc07f68:	41 9e 00 48 	beq-    cr7,ffc07fb0 <erase.part.2+0x198>      
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
            if (tty->termios.c_lflag & ECHOCTL)                       
ffc07f6c:	7d 49 03 a6 	mtctr   r10                                    
         */                                                           
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
ffc07f70:	80 dc 27 e0 	lwz     r6,10208(r28)                          
            if (tty->termios.c_lflag & ECHOCTL)                       
ffc07f74:	71 27 02 00 	andi.   r7,r9,512                              
    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;                                                    
ffc07f78:	39 20 00 00 	li      r9,0                                   
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
ffc07f7c:	7d 48 48 ae 	lbzx    r10,r8,r9                              
ffc07f80:	39 29 00 01 	addi    r9,r9,1                                
          if (c == '\t') {                                            
ffc07f84:	2f 8a 00 09 	cmpwi   cr7,r10,9                              
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
ffc07f88:	7c e6 52 14 	add     r7,r6,r10                              
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
ffc07f8c:	41 9e 00 68 	beq-    cr7,ffc07ff4 <erase.part.2+0x1dc>      
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
ffc07f90:	89 47 00 01 	lbz     r10,1(r7)                              
ffc07f94:	55 4a 06 b4 	rlwinm  r10,r10,0,26,26                        
ffc07f98:	55 47 06 3e 	clrlwi  r7,r10,24                              
ffc07f9c:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc07fa0:	41 9e 00 48 	beq-    cr7,ffc07fe8 <erase.part.2+0x1d0>      <== ALWAYS TAKEN
            if (tty->termios.c_lflag & ECHOCTL)                       
ffc07fa4:	41 82 00 08 	beq-    ffc07fac <erase.part.2+0x194>          <== NOT EXECUTED
              col += 2;                                               
ffc07fa8:	3b de 00 02 	addi    r30,r30,2                              <== NOT EXECUTED
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
ffc07fac:	42 00 ff d0 	bdnz+   ffc07f7c <erase.part.2+0x164>          <== NOT EXECUTED
        }                                                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
ffc07fb0:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc07fb4:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc07fb8:	40 bd ff 24 	ble-    cr7,ffc07edc <erase.part.2+0xc4>       <== NEVER TAKEN
          rtems_termios_puts ("\b", 1, tty);                          
ffc07fbc:	7f a3 eb 78 	mr      r3,r29                                 
ffc07fc0:	38 80 00 01 	li      r4,1                                   
ffc07fc4:	7f e5 fb 78 	mr      r5,r31                                 
ffc07fc8:	4b ff fa 71 	bl      ffc07a38 <rtems_termios_puts>          
          tty->column--;                                              
ffc07fcc:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc07fd0:	39 29 ff ff 	addi    r9,r9,-1                               
        }                                                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
ffc07fd4:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
          rtems_termios_puts ("\b", 1, tty);                          
          tty->column--;                                              
ffc07fd8:	91 3f 00 28 	stw     r9,40(r31)                             
        }                                                             
                                                                      
        /*                                                            
         * Back up over the tab                                       
         */                                                           
        while (tty->column > col) {                                   
ffc07fdc:	41 9d ff e0 	bgt+    cr7,ffc07fbc <erase.part.2+0x1a4>      
          if (tty->column)                                            
            tty->column--;                                            
        }                                                             
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
ffc07fe0:	40 92 fe 80 	bne+    cr4,ffc07e60 <erase.part.2+0x48>       <== ALWAYS TAKEN
ffc07fe4:	4b ff fe fc 	b       ffc07ee0 <erase.part.2+0xc8>           <== NOT EXECUTED
            col = (col | 7) + 1;                                      
          } else if (iscntrl (c)) {                                   
            if (tty->termios.c_lflag & ECHOCTL)                       
              col += 2;                                               
          } else {                                                    
            col++;                                                    
ffc07fe8:	3b de 00 01 	addi    r30,r30,1                              
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
ffc07fec:	42 00 ff 90 	bdnz+   ffc07f7c <erase.part.2+0x164>          
ffc07ff0:	4b ff ff c0 	b       ffc07fb0 <erase.part.2+0x198>          
          c = tty->cbuf[i++];                                         
          if (c == '\t') {                                            
            col = (col | 7) + 1;                                      
ffc07ff4:	63 de 00 07 	ori     r30,r30,7                              
ffc07ff8:	3b de 00 01 	addi    r30,r30,1                              
        int i = 0;                                                    
                                                                      
        /*                                                            
         * Find the character before the tab                          
         */                                                           
        while (i != tty->ccount) {                                    
ffc07ffc:	42 00 ff 80 	bdnz+   ffc07f7c <erase.part.2+0x164>          
ffc08000:	4b ff ff b0 	b       ffc07fb0 <erase.part.2+0x198>          <== NOT EXECUTED
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
      break;                                                          
  }                                                                   
}                                                                     
ffc08004:	80 01 00 2c 	lwz     r0,44(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);                        
ffc08008:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
      break;                                                          
  }                                                                   
}                                                                     
ffc0800c:	81 81 00 0c 	lwz     r12,12(r1)                             <== NOT EXECUTED
ffc08010:	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);                        
ffc08014:	88 7f 00 43 	lbz     r3,67(r31)                             <== NOT EXECUTED
      }                                                               
    }                                                                 
    if (!lineFlag)                                                    
      break;                                                          
  }                                                                   
}                                                                     
ffc08018:	83 41 00 10 	lwz     r26,16(r1)                             <== NOT EXECUTED
ffc0801c:	7d 80 81 20 	mtcrf   8,r12                                  <== NOT EXECUTED
ffc08020:	83 61 00 14 	lwz     r27,20(r1)                             <== NOT EXECUTED
ffc08024:	83 81 00 18 	lwz     r28,24(r1)                             <== NOT EXECUTED
ffc08028:	83 a1 00 1c 	lwz     r29,28(r1)                             <== NOT EXECUTED
ffc0802c:	83 c1 00 20 	lwz     r30,32(r1)                             <== NOT EXECUTED
ffc08030:	83 e1 00 24 	lwz     r31,36(r1)                             <== NOT EXECUTED
ffc08034:	38 21 00 28 	addi    r1,r1,40                               <== 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);                        
ffc08038:	4b ff fd 38 	b       ffc07d70 <echo>                        <== NOT EXECUTED
      }                                                               
      else {                                                          
        if (iscntrl (c) && (tty->termios.c_lflag & ECHOCTL)) {        
          rtems_termios_puts ("\b \b", 3, tty);                       
          if (tty->column)                                            
            tty->column--;                                            
ffc0803c:	39 29 ff ff 	addi    r9,r9,-1                               <== NOT EXECUTED
ffc08040:	91 3f 00 28 	stw     r9,40(r31)                             <== NOT EXECUTED
ffc08044:	4b ff fe f4 	b       ffc07f38 <erase.part.2+0x120>          <== NOT EXECUTED
                                                                      

ffc0605c <eval_path_start>: size_t pathlen, int eval_flags, rtems_filesystem_global_location_t *const *global_root_ptr, rtems_filesystem_global_location_t *const *global_current_ptr ) {
ffc0605c:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc06060:	7c 08 02 a6 	mflr    r0                                     
ffc06064:	93 a1 00 24 	stw     r29,36(r1)                             
ffc06068:	7c 9d 23 78 	mr      r29,r4                                 
  memset(ctx, 0, sizeof(*ctx));                                       
ffc0606c:	38 80 00 00 	li      r4,0                                   
  size_t pathlen,                                                     
  int eval_flags,                                                     
  rtems_filesystem_global_location_t *const *global_root_ptr,         
  rtems_filesystem_global_location_t *const *global_current_ptr       
)                                                                     
{                                                                     
ffc06070:	93 c1 00 28 	stw     r30,40(r1)                             
ffc06074:	7c be 2b 78 	mr      r30,r5                                 
  memset(ctx, 0, sizeof(*ctx));                                       
ffc06078:	38 a0 00 38 	li      r5,56                                  
  size_t pathlen,                                                     
  int eval_flags,                                                     
  rtems_filesystem_global_location_t *const *global_root_ptr,         
  rtems_filesystem_global_location_t *const *global_current_ptr       
)                                                                     
{                                                                     
ffc0607c:	93 41 00 18 	stw     r26,24(r1)                             
ffc06080:	7d 1a 43 78 	mr      r26,r8                                 
ffc06084:	93 61 00 1c 	stw     r27,28(r1)                             
ffc06088:	7c fb 3b 78 	mr      r27,r7                                 
ffc0608c:	93 81 00 20 	stw     r28,32(r1)                             
ffc06090:	7c dc 33 78 	mr      r28,r6                                 
ffc06094:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc06098:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0609c:	90 01 00 34 	stw     r0,52(r1)                              
  memset(ctx, 0, sizeof(*ctx));                                       
ffc060a0:	48 00 dd d1 	bl      ffc13e70 <memset>                      
  rtems_filesystem_eval_path_context_t *ctx,                          
  rtems_filesystem_global_location_t *const *global_root_ptr,         
  rtems_filesystem_global_location_t *const *global_current_ptr       
)                                                                     
{                                                                     
  if (ctx->pathlen > 0) {                                             
ffc060a4:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
  rtems_filesystem_global_location_t *const *global_current_ptr       
)                                                                     
{                                                                     
  memset(ctx, 0, sizeof(*ctx));                                       
                                                                      
  ctx->path = path;                                                   
ffc060a8:	93 bf 00 00 	stw     r29,0(r31)                             
  ctx->pathlen = pathlen;                                             
ffc060ac:	93 df 00 04 	stw     r30,4(r31)                             
  ctx->flags = eval_flags;                                            
ffc060b0:	93 9f 00 10 	stw     r28,16(r31)                            
  rtems_filesystem_eval_path_context_t *ctx,                          
  rtems_filesystem_global_location_t *const *global_root_ptr,         
  rtems_filesystem_global_location_t *const *global_current_ptr       
)                                                                     
{                                                                     
  if (ctx->pathlen > 0) {                                             
ffc060b4:	41 9e 00 34 	beq-    cr7,ffc060e8 <eval_path_start+0x8c>    
    char c = ctx->path [0];                                           
ffc060b8:	8b dd 00 00 	lbz     r30,0(r29)                             
                                                                      
    ctx->rootloc = rtems_filesystem_global_location_obtain(global_root_ptr);
ffc060bc:	7f 63 db 78 	mr      r3,r27                                 
ffc060c0:	48 00 08 39 	bl      ffc068f8 <rtems_filesystem_global_location_obtain>
  gid_t node_gid                                                      
);                                                                    
                                                                      
static inline bool rtems_filesystem_is_delimiter(char c)              
{                                                                     
  return c == '/' || c == '\\';                                       
ffc060c4:	2f 9e 00 2f 	cmpwi   cr7,r30,47                             
ffc060c8:	90 7f 00 30 	stw     r3,48(r31)                             
ffc060cc:	41 9e 00 a8 	beq-    cr7,ffc06174 <eval_path_start+0x118>   
ffc060d0:	2f 9e 00 5c 	cmpwi   cr7,r30,92                             
ffc060d4:	41 9e 00 a0 	beq-    cr7,ffc06174 <eval_path_start+0x118>   <== NEVER TAKEN
      --ctx->pathlen;                                                 
      ctx->startloc = rtems_filesystem_global_location_obtain(        
        &ctx->rootloc                                                 
      );                                                              
    } else {                                                          
      ctx->startloc = rtems_filesystem_global_location_obtain(        
ffc060d8:	7f 43 d3 78 	mr      r3,r26                                 
ffc060dc:	48 00 08 1d 	bl      ffc068f8 <rtems_filesystem_global_location_obtain>
ffc060e0:	90 7f 00 34 	stw     r3,52(r31)                             
ffc060e4:	48 00 00 38 	b       ffc0611c <eval_path_start+0xc0>        
);                                                                    
                                                                      
static inline rtems_filesystem_global_location_t *                    
rtems_filesystem_global_location_obtain_null(void)                    
{                                                                     
  rtems_filesystem_global_location_t *global_loc = NULL;              
ffc060e8:	7c 3d 0b 78 	mr      r29,r1                                 
ffc060ec:	97 dd 00 08 	stwu    r30,8(r29)                             
                                                                      
  return rtems_filesystem_global_location_obtain( &global_loc );      
ffc060f0:	7f a3 eb 78 	mr      r3,r29                                 
ffc060f4:	48 00 08 05 	bl      ffc068f8 <rtems_filesystem_global_location_obtain>
);                                                                    
                                                                      
static inline rtems_filesystem_global_location_t *                    
rtems_filesystem_global_location_obtain_null(void)                    
{                                                                     
  rtems_filesystem_global_location_t *global_loc = NULL;              
ffc060f8:	93 c1 00 08 	stw     r30,8(r1)                              
        global_current_ptr                                            
      );                                                              
    }                                                                 
  } else {                                                            
    ctx->rootloc = rtems_filesystem_global_location_obtain_null();    
ffc060fc:	90 7f 00 30 	stw     r3,48(r31)                             
                                                                      
  return rtems_filesystem_global_location_obtain( &global_loc );      
ffc06100:	7f a3 eb 78 	mr      r3,r29                                 
ffc06104:	48 00 07 f5 	bl      ffc068f8 <rtems_filesystem_global_location_obtain>
    ctx->startloc = rtems_filesystem_global_location_obtain_null();   
ffc06108:	90 7f 00 34 	stw     r3,52(r31)                             
    errno = ENOENT;                                                   
ffc0610c:	48 00 cf 6d 	bl      ffc13078 <__errno>                     
ffc06110:	39 20 00 02 	li      r9,2                                   
ffc06114:	91 23 00 00 	stw     r9,0(r3)                               
ffc06118:	80 7f 00 34 	lwz     r3,52(r31)                             
    &ctx->startloc,                                                   
    rtems_filesystem_global_location_obtain(newstartloc_ptr)          
  );                                                                  
  rtems_filesystem_instance_lock(&ctx->startloc->location);           
  rtems_filesystem_location_clone(&ctx->currentloc, &ctx->startloc->location);
}                                                                     
ffc0611c:	80 63 00 14 	lwz     r3,20(r3)                              
                                                                      
  set_startloc(ctx, global_root_ptr, global_current_ptr);             
                                                                      
  rtems_filesystem_instance_lock(&ctx->startloc->location);           
                                                                      
  rtems_filesystem_location_clone(                                    
ffc06120:	3b df 00 18 	addi    r30,r31,24                             
  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 );                               
ffc06124:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc06128:	81 29 00 00 	lwz     r9,0(r9)                               
ffc0612c:	7d 29 03 a6 	mtctr   r9                                     
ffc06130:	4e 80 04 21 	bctrl                                          
ffc06134:	80 9f 00 34 	lwz     r4,52(r31)                             
ffc06138:	7f c3 f3 78 	mr      r3,r30                                 
ffc0613c:	48 00 8a dd 	bl      ffc0ec18 <rtems_filesystem_location_clone>
    &ctx->currentloc,                                                 
    &ctx->startloc->location                                          
  );                                                                  
                                                                      
  rtems_filesystem_eval_path_continue(ctx);                           
ffc06140:	7f e3 fb 78 	mr      r3,r31                                 
ffc06144:	4b ff fe 7d 	bl      ffc05fc0 <rtems_filesystem_eval_path_continue>
                                                                      
  return &ctx->currentloc;                                            
}                                                                     
ffc06148:	80 01 00 34 	lwz     r0,52(r1)                              
ffc0614c:	7f c3 f3 78 	mr      r3,r30                                 
ffc06150:	83 41 00 18 	lwz     r26,24(r1)                             
ffc06154:	7c 08 03 a6 	mtlr    r0                                     
ffc06158:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc0615c:	83 81 00 20 	lwz     r28,32(r1)                             
ffc06160:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc06164:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc06168:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc0616c:	38 21 00 30 	addi    r1,r1,48                               
ffc06170:	4e 80 00 20 	blr                                            
    char c = ctx->path [0];                                           
                                                                      
    ctx->rootloc = rtems_filesystem_global_location_obtain(global_root_ptr);
                                                                      
    if (rtems_filesystem_is_delimiter(c)) {                           
      ++ctx->path;                                                    
ffc06174:	81 5f 00 00 	lwz     r10,0(r31)                             
      --ctx->pathlen;                                                 
      ctx->startloc = rtems_filesystem_global_location_obtain(        
ffc06178:	38 7f 00 30 	addi    r3,r31,48                              
                                                                      
    ctx->rootloc = rtems_filesystem_global_location_obtain(global_root_ptr);
                                                                      
    if (rtems_filesystem_is_delimiter(c)) {                           
      ++ctx->path;                                                    
      --ctx->pathlen;                                                 
ffc0617c:	81 3f 00 04 	lwz     r9,4(r31)                              
    char c = ctx->path [0];                                           
                                                                      
    ctx->rootloc = rtems_filesystem_global_location_obtain(global_root_ptr);
                                                                      
    if (rtems_filesystem_is_delimiter(c)) {                           
      ++ctx->path;                                                    
ffc06180:	39 4a 00 01 	addi    r10,r10,1                              
      --ctx->pathlen;                                                 
ffc06184:	39 29 ff ff 	addi    r9,r9,-1                               
    char c = ctx->path [0];                                           
                                                                      
    ctx->rootloc = rtems_filesystem_global_location_obtain(global_root_ptr);
                                                                      
    if (rtems_filesystem_is_delimiter(c)) {                           
      ++ctx->path;                                                    
ffc06188:	91 5f 00 00 	stw     r10,0(r31)                             
      --ctx->pathlen;                                                 
ffc0618c:	91 3f 00 04 	stw     r9,4(r31)                              
      ctx->startloc = rtems_filesystem_global_location_obtain(        
ffc06190:	48 00 07 69 	bl      ffc068f8 <rtems_filesystem_global_location_obtain>
ffc06194:	90 7f 00 34 	stw     r3,52(r31)                             
ffc06198:	4b ff ff 84 	b       ffc0611c <eval_path_start+0xc0>        
                                                                      

ffc17158 <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) {
ffc17158:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc1715c:	7c 08 02 a6 	mflr    r0                                     
ffc17160:	93 41 00 08 	stw     r26,8(r1)                              
ffc17164:	7c ba 2b 78 	mr      r26,r5                                 
ffc17168:	93 61 00 0c 	stw     r27,12(r1)                             
ffc1716c:	93 81 00 10 	stw     r28,16(r1)                             
ffc17170:	7c dc 33 78 	mr      r28,r6                                 
ffc17174:	93 a1 00 14 	stw     r29,20(r1)                             
ffc17178:	93 c1 00 18 	stw     r30,24(r1)                             
ffc1717c:	7c 9e 23 78 	mr      r30,r4                                 
ffc17180:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc17184:	7c 7f 1b 78 	mr      r31,r3                                 
ffc17188:	90 01 00 24 	stw     r0,36(r1)                              
                                                         sec_num);    
    uint32_t          blk_ofs = fat_sector_offset_to_block_offset (fs_info,
                                                                   sec_num,
                                                                   0);
                                                                      
    if (fs_info->c.state == FAT_CACHE_EMPTY || fs_info->c.blk_num != sec_num)
ffc1718c:	89 03 00 89 	lbz     r8,137(r3)                             
                                                                      
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);
ffc17190:	89 23 00 02 	lbz     r9,2(r3)                               
ffc17194:	89 43 00 0c 	lbz     r10,12(r3)                             
ffc17198:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc1719c:	7d 49 50 50 	subf    r10,r9,r10                             
ffc171a0:	7c 9d 54 30 	srw     r29,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);
ffc171a4:	7f aa 50 30 	slw     r10,r29,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 -                                                 
ffc171a8:	7d 4a 20 50 	subf    r10,r10,r4                             
              fat_block_num_to_sector_num (fs_info,                   
                  fat_sector_num_to_block_num (fs_info, sector)))     
            << fs_info->vol.sec_log2);                                
ffc171ac:	7d 5b 48 30 	slw     r27,r10,r9                             
ffc171b0:	41 9e 00 10 	beq-    cr7,ffc171c0 <fat_buf_access+0x68>     
ffc171b4:	81 23 00 84 	lwz     r9,132(r3)                             
ffc171b8:	7f 89 20 00 	cmpw    cr7,r9,r4                              
ffc171bc:	41 9e 00 3c 	beq-    cr7,ffc171f8 <fat_buf_access+0xa0>     
    {                                                                 
        fat_buf_release(fs_info);                                     
ffc171c0:	7f e3 fb 78 	mr      r3,r31                                 
ffc171c4:	4b ff fd b1 	bl      ffc16f74 <fat_buf_release>             
                                                                      
        if (op_type == FAT_OP_TYPE_READ)                              
ffc171c8:	2f 9a 00 01 	cmpwi   cr7,r26,1                              
            sc = rtems_bdbuf_read(fs_info->vol.dd, blk, &fs_info->c.buf);
ffc171cc:	80 7f 00 64 	lwz     r3,100(r31)                            
ffc171d0:	7f a4 eb 78 	mr      r4,r29                                 
ffc171d4:	38 bf 00 8c 	addi    r5,r31,140                             
                                                                      
    if (fs_info->c.state == FAT_CACHE_EMPTY || fs_info->c.blk_num != sec_num)
    {                                                                 
        fat_buf_release(fs_info);                                     
                                                                      
        if (op_type == FAT_OP_TYPE_READ)                              
ffc171d8:	41 9e 00 5c 	beq-    cr7,ffc17234 <fat_buf_access+0xdc>     
            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);
ffc171dc:	4b ff d1 b5 	bl      ffc14390 <rtems_bdbuf_get>             
        if (sc != RTEMS_SUCCESSFUL)                                   
ffc171e0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc171e4:	40 9e 00 58 	bne-    cr7,ffc1723c <fat_buf_access+0xe4>     <== NEVER TAKEN
            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;                          
ffc171e8:	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;                                 
ffc171ec:	93 df 00 84 	stw     r30,132(r31)                           
        fs_info->c.modified = 0;                                      
ffc171f0:	98 7f 00 88 	stb     r3,136(r31)                            
        fs_info->c.state = FAT_CACHE_ACTUAL;                          
ffc171f4:	99 3f 00 89 	stb     r9,137(r31)                            
    }                                                                 
    *sec_buf = &fs_info->c.buf->buffer[blk_ofs];                      
ffc171f8:	81 3f 00 8c 	lwz     r9,140(r31)                            
    return RC_OK;                                                     
ffc171fc:	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];                      
ffc17200:	81 29 00 1c 	lwz     r9,28(r9)                              
ffc17204:	7f 69 da 14 	add     r27,r9,r27                             
ffc17208:	93 7c 00 00 	stw     r27,0(r28)                             
    return RC_OK;                                                     
}                                                                     
ffc1720c:	80 01 00 24 	lwz     r0,36(r1)                              
ffc17210:	83 41 00 08 	lwz     r26,8(r1)                              
ffc17214:	7c 08 03 a6 	mtlr    r0                                     
ffc17218:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc1721c:	83 81 00 10 	lwz     r28,16(r1)                             
ffc17220:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc17224:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc17228:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc1722c:	38 21 00 20 	addi    r1,r1,32                               
ffc17230:	4e 80 00 20 	blr                                            
    if (fs_info->c.state == FAT_CACHE_EMPTY || fs_info->c.blk_num != sec_num)
    {                                                                 
        fat_buf_release(fs_info);                                     
                                                                      
        if (op_type == FAT_OP_TYPE_READ)                              
            sc = rtems_bdbuf_read(fs_info->vol.dd, blk, &fs_info->c.buf);
ffc17234:	4b ff d2 c9 	bl      ffc144fc <rtems_bdbuf_read>            
ffc17238:	4b ff ff a8 	b       ffc171e0 <fat_buf_access+0x88>         
        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);                
ffc1723c:	48 00 a4 61 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc17240:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc17244:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc17248:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc1724c:	4b ff ff c0 	b       ffc1720c <fat_buf_access+0xb4>         <== NOT EXECUTED
                                                                      

ffc16f74 <fat_buf_release>: return RC_OK; } int fat_buf_release(fat_fs_info_t *fs_info) {
ffc16f74:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc16f78:	7c 08 02 a6 	mflr    r0                                     
ffc16f7c:	93 e1 00 24 	stw     r31,36(r1)                             
ffc16f80:	7c 7f 1b 78 	mr      r31,r3                                 
ffc16f84:	90 01 00 2c 	stw     r0,44(r1)                              
ffc16f88:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc16f8c:	93 c1 00 20 	stw     r30,32(r1)                             
    rtems_status_code sc = RTEMS_SUCCESSFUL;                          
                                                                      
    if (fs_info->c.state == FAT_CACHE_EMPTY)                          
ffc16f90:	89 23 00 89 	lbz     r9,137(r3)                             
        return RC_OK;                                                 
ffc16f94:	38 60 00 00 	li      r3,0                                   
int                                                                   
fat_buf_release(fat_fs_info_t *fs_info)                               
{                                                                     
    rtems_status_code sc = RTEMS_SUCCESSFUL;                          
                                                                      
    if (fs_info->c.state == FAT_CACHE_EMPTY)                          
ffc16f98:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc16f9c:	41 9e 01 28 	beq-    cr7,ffc170c4 <fat_buf_release+0x150>   
        return RC_OK;                                                 
                                                                      
    if (fs_info->c.modified)                                          
ffc16fa0:	89 3f 00 88 	lbz     r9,136(r31)                            
ffc16fa4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc16fa8:	41 9e 01 00 	beq-    cr7,ffc170a8 <fat_buf_release+0x134>   
    {                                                                 
        uint32_t sec_num = fs_info->c.blk_num;                        
ffc16fac:	81 3f 00 84 	lwz     r9,132(r31)                            
        bool     sec_of_fat = ((sec_num >= fs_info->vol.fat_loc) &&   
ffc16fb0:	3b c0 00 00 	li      r30,0                                  
ffc16fb4:	a1 5f 00 18 	lhz     r10,24(r31)                            
ffc16fb8:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc16fbc:	41 9c 00 10 	blt-    cr7,ffc16fcc <fat_buf_release+0x58>    
ffc16fc0:	81 5f 00 20 	lwz     r10,32(r31)                            
ffc16fc4:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc16fc8:	41 9c 01 18 	blt-    cr7,ffc170e0 <fat_buf_release+0x16c>   
        if (sec_of_fat && !fs_info->vol.mirror)                       
            memcpy(fs_info->sec_buf,                                  
                   fs_info->c.buf->buffer + blk_ofs,                  
                   fs_info->vol.bps);                                 
                                                                      
        sc = rtems_bdbuf_release_modified(fs_info->c.buf);            
ffc16fcc:	80 7f 00 8c 	lwz     r3,140(r31)                            
ffc16fd0:	4b ff d8 59 	bl      ffc14828 <rtems_bdbuf_release_modified>
        if (sc != RTEMS_SUCCESSFUL)                                   
ffc16fd4:	2c 03 00 00 	cmpwi   r3,0                                   
ffc16fd8:	40 82 01 6c 	bne-    ffc17144 <fat_buf_release+0x1d0>       <== NEVER TAKEN
            rtems_set_errno_and_return_minus_one(EIO);                
        fs_info->c.modified = 0;                                      
                                                                      
        if (sec_of_fat && !fs_info->vol.mirror)                       
ffc16fdc:	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;                                      
ffc16fe0:	98 7f 00 88 	stb     r3,136(r31)                            
                                                                      
        if (sec_of_fat && !fs_info->vol.mirror)                       
ffc16fe4:	41 9e 00 d4 	beq-    cr7,ffc170b8 <fat_buf_release+0x144>   
ffc16fe8:	89 3f 00 54 	lbz     r9,84(r31)                             
ffc16fec:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc16ff0:	40 9e 00 c8 	bne-    cr7,ffc170b8 <fat_buf_release+0x144>   <== NEVER TAKEN
        {                                                             
            uint8_t i;                                                
                                                                      
            for (i = 1; i < fs_info->vol.fats; i++)                   
ffc16ff4:	89 3f 00 0d 	lbz     r9,13(r31)                             
ffc16ff8:	2b 89 00 01 	cmplwi  cr7,r9,1                               
ffc16ffc:	40 9d 00 bc 	ble-    cr7,ffc170b8 <fat_buf_release+0x144>   <== NEVER TAKEN
ffc17000:	3b c0 00 01 	li      r30,1                                  
ffc17004:	48 00 00 50 	b       ffc17054 <fat_buf_release+0xe0>        
                {                                                     
                    sc = rtems_bdbuf_get(fs_info->vol.dd, blk, &bd);  
                }                                                     
                else                                                  
                {                                                     
                    sc = rtems_bdbuf_read(fs_info->vol.dd, blk, &bd); 
ffc17008:	80 7f 00 64 	lwz     r3,100(r31)                            
ffc1700c:	4b ff d4 f1 	bl      ffc144fc <rtems_bdbuf_read>            
                }                                                     
                if ( sc != RTEMS_SUCCESSFUL)                          
ffc17010:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc17014:	40 9e 01 1c 	bne-    cr7,ffc17130 <fat_buf_release+0x1bc>   <== NEVER TAKEN
                    rtems_set_errno_and_return_minus_one(ENOMEM);     
                memcpy(bd->buffer + blk_ofs, fs_info->sec_buf, fs_info->vol.bps);
ffc17018:	81 21 00 08 	lwz     r9,8(r1)                               
                                                                      
        if (sec_of_fat && !fs_info->vol.mirror)                       
        {                                                             
            uint8_t i;                                                
                                                                      
            for (i = 1; i < fs_info->vol.fats; i++)                   
ffc1701c:	3b de 00 01 	addi    r30,r30,1                              
                {                                                     
                    sc = rtems_bdbuf_read(fs_info->vol.dd, blk, &bd); 
                }                                                     
                if ( sc != RTEMS_SUCCESSFUL)                          
                    rtems_set_errno_and_return_minus_one(ENOMEM);     
                memcpy(bd->buffer + blk_ofs, fs_info->sec_buf, fs_info->vol.bps);
ffc17020:	80 9f 00 90 	lwz     r4,144(r31)                            
                                                                      
        if (sec_of_fat && !fs_info->vol.mirror)                       
        {                                                             
            uint8_t i;                                                
                                                                      
            for (i = 1; i < fs_info->vol.fats; i++)                   
ffc17024:	57 de 06 3e 	clrlwi  r30,r30,24                             
                {                                                     
                    sc = rtems_bdbuf_read(fs_info->vol.dd, blk, &bd); 
                }                                                     
                if ( sc != RTEMS_SUCCESSFUL)                          
                    rtems_set_errno_and_return_minus_one(ENOMEM);     
                memcpy(bd->buffer + blk_ofs, fs_info->sec_buf, fs_info->vol.bps);
ffc17028:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc1702c:	a0 bf 00 00 	lhz     r5,0(r31)                              
ffc17030:	7c 63 ea 14 	add     r3,r3,r29                              
ffc17034:	48 00 b3 49 	bl      ffc2237c <memcpy>                      
                sc = rtems_bdbuf_release_modified(bd);                
ffc17038:	80 61 00 08 	lwz     r3,8(r1)                               
ffc1703c:	4b ff d7 ed 	bl      ffc14828 <rtems_bdbuf_release_modified>
                if ( sc != RTEMS_SUCCESSFUL)                          
ffc17040:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc17044:	40 9e 00 ec 	bne-    cr7,ffc17130 <fat_buf_release+0x1bc>   <== NEVER TAKEN
                                                                      
        if (sec_of_fat && !fs_info->vol.mirror)                       
        {                                                             
            uint8_t i;                                                
                                                                      
            for (i = 1; i < fs_info->vol.fats; i++)                   
ffc17048:	89 3f 00 0d 	lbz     r9,13(r31)                             
ffc1704c:	7f 89 f0 40 	cmplw   cr7,r9,r30                             
ffc17050:	40 9d 00 68 	ble-    cr7,ffc170b8 <fat_buf_release+0x144>   <== ALWAYS TAKEN
            {                                                         
                rtems_bdbuf_buffer *bd;                               
                                                                      
                sec_num = fs_info->c.blk_num + fs_info->vol.fat_length * i,
ffc17054:	81 1f 00 1c 	lwz     r8,28(r31)                             
                {                                                     
                    sc = rtems_bdbuf_get(fs_info->vol.dd, blk, &bd);  
                }                                                     
                else                                                  
                {                                                     
                    sc = rtems_bdbuf_read(fs_info->vol.dd, blk, &bd); 
ffc17058:	38 a1 00 08 	addi    r5,r1,8                                
                                                                      
            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,
ffc1705c:	81 5f 00 84 	lwz     r10,132(r31)                           
ffc17060:	7d 1e 41 d6 	mullw   r8,r30,r8                              
                                                                      
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);
ffc17064:	89 3f 00 02 	lbz     r9,2(r31)                              
ffc17068:	88 7f 00 0c 	lbz     r3,12(r31)                             
ffc1706c:	7d 08 52 14 	add     r8,r8,r10                              
ffc17070:	7c 69 18 50 	subf    r3,r9,r3                               
ffc17074:	7d 0a 1c 30 	srw     r10,r8,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);
ffc17078:	7d 43 18 30 	slw     r3,r10,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 -                                                 
ffc1707c:	7c 63 40 50 	subf    r3,r3,r8                               
                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                                      
ffc17080:	7c 7d 48 31 	slw.    r29,r3,r9                              
                {                                                     
                    sc = rtems_bdbuf_get(fs_info->vol.dd, blk, &bd);  
                }                                                     
                else                                                  
                {                                                     
                    sc = rtems_bdbuf_read(fs_info->vol.dd, blk, &bd); 
ffc17084:	7d 44 53 78 	mr      r4,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                                      
ffc17088:	40 a2 ff 80 	bne-    ffc17008 <fat_buf_release+0x94>        
                    && fs_info->vol.bps == fs_info->vol.bytes_per_block)
ffc1708c:	a1 1f 00 00 	lhz     r8,0(r31)                              
ffc17090:	a1 3f 00 0a 	lhz     r9,10(r31)                             
ffc17094:	7f 88 48 00 	cmpw    cr7,r8,r9                              
ffc17098:	40 9e ff 70 	bne+    cr7,ffc17008 <fat_buf_release+0x94>    
                {                                                     
                    sc = rtems_bdbuf_get(fs_info->vol.dd, blk, &bd);  
ffc1709c:	80 7f 00 64 	lwz     r3,100(r31)                            
ffc170a0:	4b ff d2 f1 	bl      ffc14390 <rtems_bdbuf_get>             
ffc170a4:	4b ff ff 6c 	b       ffc17010 <fat_buf_release+0x9c>        
            }                                                         
        }                                                             
    }                                                                 
    else                                                              
    {                                                                 
        sc = rtems_bdbuf_release(fs_info->c.buf);                     
ffc170a8:	80 7f 00 8c 	lwz     r3,140(r31)                            
ffc170ac:	4b ff d6 91 	bl      ffc1473c <rtems_bdbuf_release>         
        if (sc != RTEMS_SUCCESSFUL)                                   
ffc170b0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc170b4:	40 9e 00 90 	bne-    cr7,ffc17144 <fat_buf_release+0x1d0>   <== NEVER TAKEN
            rtems_set_errno_and_return_minus_one(EIO);                
    }                                                                 
    fs_info->c.state = FAT_CACHE_EMPTY;                               
ffc170b8:	39 20 00 00 	li      r9,0                                   
ffc170bc:	99 3f 00 89 	stb     r9,137(r31)                            
    return RC_OK;                                                     
ffc170c0:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc170c4:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc170c8:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc170cc:	7c 08 03 a6 	mtlr    r0                                     
ffc170d0:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc170d4:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc170d8:	38 21 00 28 	addi    r1,r1,40                               
ffc170dc:	4e 80 00 20 	blr                                            
        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)                       
ffc170e0:	89 1f 00 54 	lbz     r8,84(r31)                             
    uint32_t                              ino                         
    )                                                                 
{                                                                     
                                                                      
    return (ino >= fs_info->uino_base);                               
}                                                                     
ffc170e4:	89 5f 00 02 	lbz     r10,2(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)                       
ffc170e8:	2f 88 00 00 	cmpwi   cr7,r8,0                               
    uint32_t                              ino                         
    )                                                                 
{                                                                     
                                                                      
    return (ino >= fs_info->uino_base);                               
}                                                                     
ffc170ec:	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)                       
ffc170f0:	41 9e 00 0c 	beq-    cr7,ffc170fc <fat_buf_release+0x188>   <== ALWAYS TAKEN
        return RC_OK;                                                 
                                                                      
    if (fs_info->c.modified)                                          
    {                                                                 
        uint32_t sec_num = fs_info->c.blk_num;                        
        bool     sec_of_fat = ((sec_num >= fs_info->vol.fat_loc) &&   
ffc170f4:	3b c0 00 01 	li      r30,1                                  <== NOT EXECUTED
ffc170f8:	4b ff fe d4 	b       ffc16fcc <fat_buf_release+0x58>        <== NOT EXECUTED
                                                                      
static inline uint32_t                                                
 fat_sector_num_to_block_num (const fat_fs_info_t *fs_info,           
                              const uint32_t sector_number)           
{                                                                     
  return sector_number >> (fs_info->vol.bytes_per_block_log2 - fs_info->vol.sec_log2);
ffc170fc:	7d 0a 38 50 	subf    r8,r10,r7                              
                                                             sec_num, 
                                                             0);      
                                                                      
        if (sec_of_fat && !fs_info->vol.mirror)                       
            memcpy(fs_info->sec_buf,                                  
                   fs_info->c.buf->buffer + blk_ofs,                  
ffc17100:	80 ff 00 8c 	lwz     r7,140(r31)                            
ffc17104:	7d 26 44 30 	srw     r6,r9,r8                               
        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,                                  
ffc17108:	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);
ffc1710c:	7c c8 40 30 	slw     r8,r6,r8                               
ffc17110:	80 87 00 1c 	lwz     r4,28(r7)                              
 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 -                                                 
ffc17114:	7d 28 48 50 	subf    r9,r8,r9                               
ffc17118:	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);                                
ffc1711c:	7d 2a 50 30 	slw     r10,r9,r10                             
ffc17120:	7c 84 52 14 	add     r4,r4,r10                              
ffc17124:	48 00 b2 59 	bl      ffc2237c <memcpy>                      
        return RC_OK;                                                 
                                                                      
    if (fs_info->c.modified)                                          
    {                                                                 
        uint32_t sec_num = fs_info->c.blk_num;                        
        bool     sec_of_fat = ((sec_num >= fs_info->vol.fat_loc) &&   
ffc17128:	3b c0 00 01 	li      r30,1                                  
ffc1712c:	4b ff fe a0 	b       ffc16fcc <fat_buf_release+0x58>        
                if ( sc != RTEMS_SUCCESSFUL)                          
                    rtems_set_errno_and_return_minus_one(ENOMEM);     
                memcpy(bd->buffer + blk_ofs, fs_info->sec_buf, fs_info->vol.bps);
                sc = rtems_bdbuf_release_modified(bd);                
                if ( sc != RTEMS_SUCCESSFUL)                          
                    rtems_set_errno_and_return_minus_one(ENOMEM);     
ffc17130:	48 00 a5 6d 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc17134:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc17138:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    }                                                                 
    else                                                              
    {                                                                 
        sc = rtems_bdbuf_release(fs_info->c.buf);                     
        if (sc != RTEMS_SUCCESSFUL)                                   
            rtems_set_errno_and_return_minus_one(EIO);                
ffc1713c:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc17140:	4b ff ff 84 	b       ffc170c4 <fat_buf_release+0x150>       <== NOT EXECUTED
ffc17144:	48 00 a5 59 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc17148:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc1714c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc17150:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc17154:	4b ff ff 70 	b       ffc170c4 <fat_buf_release+0x150>       <== NOT EXECUTED
                                                                      

ffc17450 <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) {
ffc17450:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc17454:	7c 08 02 a6 	mflr    r0                                     
ffc17458:	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));
ffc1745c:	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)                   
{                                                                     
ffc17460:	93 01 00 20 	stw     r24,32(r1)                             
ffc17464:	7c f8 3b 78 	mr      r24,r7                                 
  ssize_t             rc               = RC_OK;                       
  uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
ffc17468:	7d 25 48 50 	subf    r9,r5,r9                               
ffc1746c:	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)                   
{                                                                     
ffc17470:	93 81 00 30 	stw     r28,48(r1)                             
  ssize_t             rc               = RC_OK;                       
  uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
ffc17474:	7c dc 33 78 	mr      r28,r6                                 
     fat_fs_info_t                        *fs_info,                   
     const uint32_t                        start_cln,                 
     const uint32_t                        offset,                    
     const uint32_t                        count,                     
     const uint8_t                         pattern)                   
{                                                                     
ffc17478:	93 a1 00 34 	stw     r29,52(r1)                             
ffc1747c:	7c 7d 1b 78 	mr      r29,r3                                 
ffc17480:	92 e1 00 1c 	stw     r23,28(r1)                             
ffc17484:	93 21 00 24 	stw     r25,36(r1)                             
ffc17488:	93 41 00 28 	stw     r26,40(r1)                             
ffc1748c:	93 61 00 2c 	stw     r27,44(r1)                             
ffc17490:	93 c1 00 38 	stw     r30,56(r1)                             
ffc17494:	93 e1 00 3c 	stw     r31,60(r1)                             
  ssize_t             rc               = RC_OK;                       
  uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
ffc17498:	40 9d 00 08 	ble-    cr7,ffc174a0 <fat_cluster_set+0x50>    <== ALWAYS TAKEN
ffc1749c:	7d 3c 4b 78 	mr      r28,r9                                 <== NOT EXECUTED
fat_cluster_num_to_block_num (const fat_fs_info_t *fs_info,           
                              uint32_t             cln)               
{                                                                     
    uint32_t blk;                                                     
                                                                      
    if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
ffc174a0:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc174a4:	40 9e 00 10 	bne-    cr7,ffc174b4 <fat_cluster_set+0x64>    <== ALWAYS TAKEN
ffc174a8:	89 3d 00 0e 	lbz     r9,14(r29)                             <== NOT EXECUTED
ffc174ac:	71 2a 00 03 	andi.   r10,r9,3                               <== NOT EXECUTED
ffc174b0:	40 82 01 78 	bne-    ffc17628 <fat_cluster_set+0x1d8>       <== NOT EXECUTED
                                                                      
static inline uint32_t                                                
 fat_sector_num_to_block_num (const fat_fs_info_t *fs_info,           
                              const uint32_t sector_number)           
{                                                                     
  return sector_number >> (fs_info->vol.bytes_per_block_log2 - fs_info->vol.sec_log2);
ffc174b4:	89 1d 00 02 	lbz     r8,2(r29)                              
        blk = fat_sector_num_to_block_num(fs_info, fs_info->vol.rdir_loc);
    else                                                              
    {                                                                 
        cln -= FAT_RSRVD_CLN;                                         
ffc174b8:	38 84 ff fe 	addi    r4,r4,-2                               
        blk = cln << (fs_info->vol.bpc_log2 - fs_info->vol.bytes_per_block_log2);
ffc174bc:	88 fd 00 0c 	lbz     r7,12(r29)                             
ffc174c0:	89 5d 00 08 	lbz     r10,8(r29)                             
ffc174c4:	55 1a 06 3e 	clrlwi  r26,r8,24                              
ffc174c8:	81 3d 00 34 	lwz     r9,52(r29)                             
ffc174cc:	7f 5a 38 50 	subf    r26,r26,r7                             
ffc174d0:	7d 47 50 50 	subf    r10,r7,r10                             
ffc174d4:	7d 29 d4 30 	srw     r9,r9,r26                              
ffc174d8:	7c 84 50 30 	slw     r4,r4,r10                              
        blk += fat_sector_num_to_block_num(fs_info, fs_info->vol.data_fsec);
ffc174dc:	7f 49 22 14 	add     r26,r9,r4                              
  ssize_t             ret;                                            
                                                                      
  cur_blk += blocks_in_offset;                                        
                                                                      
  while (   (RC_OK == rc)                                             
         && (0 < bytes_to_write))                                     
ffc174e0:	2f 9c 00 00 	cmpwi   cr7,r28,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;
ffc174e4:	7c a9 3c 30 	srw     r9,r5,r7                               
  uint32_t            ofs_blk          = offset - (blocks_in_offset << fs_info->vol.bytes_per_block_log2);
ffc174e8:	7d 3b 38 30 	slw     r27,r9,r7                              
  ssize_t             ret;                                            
                                                                      
  cur_blk += blocks_in_offset;                                        
                                                                      
  while (   (RC_OK == rc)                                             
         && (0 < bytes_to_write))                                     
ffc174ec:	3b 20 00 00 	li      r25,0                                  
{                                                                     
  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;
  uint32_t            ofs_blk          = offset - (blocks_in_offset << fs_info->vol.bytes_per_block_log2);
ffc174f0:	7f 7b 28 50 	subf    r27,r27,r5                             
  ssize_t             bytes_written    = 0;                           
  ssize_t             ret;                                            
                                                                      
  cur_blk += blocks_in_offset;                                        
ffc174f4:	7f 49 d2 14 	add     r26,r9,r26                             
                                                                      
  while (   (RC_OK == rc)                                             
         && (0 < bytes_to_write))                                     
ffc174f8:	41 9e 00 f8 	beq-    cr7,ffc175f0 <fat_cluster_set+0x1a0>   <== NEVER TAKEN
}                                                                     
                                                                      
static inline void                                                    
fat_buf_mark_modified(fat_fs_info_t *fs_info)                         
{                                                                     
    fs_info->c.modified = true;                                       
ffc174fc:	3a e0 00 01 	li      r23,1                                  
  {                                                                   
    uint32_t c = MIN(bytes_to_write, (fs_info->vol.bytes_per_block - ofs_blk));
ffc17500:	a1 5d 00 0a 	lhz     r10,10(r29)                            
ffc17504:	7d 3b 50 50 	subf    r9,r27,r10                             
ffc17508:	7f 89 e0 40 	cmplw   cr7,r9,r28                             
ffc1750c:	7d 3f 4b 78 	mr      r31,r9                                 
ffc17510:	40 9d 00 08 	ble-    cr7,ffc17518 <fat_cluster_set+0xc8>    <== ALWAYS TAKEN
ffc17514:	7f 9f e3 78 	mr      r31,r28                                <== 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));
ffc17518:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
ffc1751c:	7f fe fb 78 	mr      r30,r31                                
ffc17520:	40 9d 00 08 	ble-    cr7,ffc17528 <fat_cluster_set+0xd8>    <== ALWAYS TAKEN
ffc17524:	7d 3e 4b 78 	mr      r30,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)                                           
ffc17528:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    uint32_t                              ino                         
    )                                                                 
{                                                                     
                                                                      
    return (ino >= fs_info->uino_base);                               
}                                                                     
ffc1752c:	55 09 06 3e 	clrlwi  r9,r8,24                               
    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)                                           
ffc17530:	41 9e 00 84 	beq-    cr7,ffc175b4 <fat_cluster_set+0x164>   <== NEVER TAKEN
    {                                                                 
        if (bytes_to_write == fs_info->vol.bytes_per_block)           
ffc17534:	7f 8a f0 00 	cmpw    cr7,r10,r30                            
                                                                      
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);
ffc17538:	7d 29 38 50 	subf    r9,r9,r7                               
        {                                                             
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_GET, &blk_buf);
ffc1753c:	7f a3 eb 78 	mr      r3,r29                                 
ffc17540:	7f 44 48 30 	slw     r4,r26,r9                              
    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)           
ffc17544:	41 9e 00 9c 	beq-    cr7,ffc175e0 <fat_cluster_set+0x190>   
        {                                                             
            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);
ffc17548:	38 a0 00 01 	li      r5,1                                   
ffc1754c:	38 c1 00 08 	addi    r6,r1,8                                
ffc17550:	4b ff fc 09 	bl      ffc17158 <fat_buf_access>              
                                                                      
        if (RC_OK == rc)                                              
ffc17554:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc17558:	41 9e 00 44 	beq-    cr7,ffc1759c <fat_cluster_set+0x14c>   <== ALWAYS TAKEN
        fs_info,                                                      
        cur_blk,                                                      
        ofs_blk,                                                      
        c,                                                            
        pattern);                                                     
    if (c != ret)                                                     
ffc1755c:	7f 83 f8 00 	cmpw    cr7,r3,r31                             <== NOT EXECUTED
ffc17560:	41 9e 00 60 	beq-    cr7,ffc175c0 <fat_cluster_set+0x170>   <== NOT EXECUTED
  }                                                                   
  if (RC_OK != rc)                                                    
    return rc;                                                        
  else                                                                
    return bytes_written;                                             
}                                                                     
ffc17564:	80 01 00 44 	lwz     r0,68(r1)                              <== NOT EXECUTED
        fs_info,                                                      
        cur_blk,                                                      
        ofs_blk,                                                      
        c,                                                            
        pattern);                                                     
    if (c != ret)                                                     
ffc17568:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  }                                                                   
  if (RC_OK != rc)                                                    
    return rc;                                                        
  else                                                                
    return bytes_written;                                             
}                                                                     
ffc1756c:	82 e1 00 1c 	lwz     r23,28(r1)                             <== NOT EXECUTED
ffc17570:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc17574:	83 01 00 20 	lwz     r24,32(r1)                             <== NOT EXECUTED
ffc17578:	83 21 00 24 	lwz     r25,36(r1)                             <== NOT EXECUTED
ffc1757c:	83 41 00 28 	lwz     r26,40(r1)                             <== NOT EXECUTED
ffc17580:	83 61 00 2c 	lwz     r27,44(r1)                             <== NOT EXECUTED
ffc17584:	83 81 00 30 	lwz     r28,48(r1)                             <== NOT EXECUTED
ffc17588:	83 a1 00 34 	lwz     r29,52(r1)                             <== NOT EXECUTED
ffc1758c:	83 c1 00 38 	lwz     r30,56(r1)                             <== NOT EXECUTED
ffc17590:	83 e1 00 3c 	lwz     r31,60(r1)                             <== NOT EXECUTED
ffc17594:	38 21 00 40 	addi    r1,r1,64                               <== NOT EXECUTED
ffc17598:	4e 80 00 20 	blr                                            <== NOT EXECUTED
        else                                                          
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_READ, &blk_buf);
                                                                      
        if (RC_OK == rc)                                              
        {                                                             
            memset(blk_buf + offset, pattern, bytes_to_write);        
ffc1759c:	80 61 00 08 	lwz     r3,8(r1)                               
ffc175a0:	7f 04 c3 78 	mr      r4,r24                                 
ffc175a4:	7f c5 f3 78 	mr      r5,r30                                 
ffc175a8:	7c 63 da 14 	add     r3,r3,r27                              
ffc175ac:	48 00 ae c5 	bl      ffc22470 <memset>                      
}                                                                     
                                                                      
static inline void                                                    
fat_buf_mark_modified(fat_fs_info_t *fs_info)                         
{                                                                     
    fs_info->c.modified = true;                                       
ffc175b0:	9a fd 00 88 	stb     r23,136(r29)                           
        }                                                             
    }                                                                 
    if (RC_OK != rc)                                                  
        return rc;                                                    
    else                                                              
        return bytes_to_write;                                        
ffc175b4:	7f c3 f3 78 	mr      r3,r30                                 
        fs_info,                                                      
        cur_blk,                                                      
        ofs_blk,                                                      
        c,                                                            
        pattern);                                                     
    if (c != ret)                                                     
ffc175b8:	7f 83 f8 00 	cmpw    cr7,r3,r31                             
ffc175bc:	40 9e ff a8 	bne+    cr7,ffc17564 <fat_cluster_set+0x114>   <== NEVER TAKEN
  ssize_t             ret;                                            
                                                                      
  cur_blk += blocks_in_offset;                                        
                                                                      
  while (   (RC_OK == rc)                                             
         && (0 < bytes_to_write))                                     
ffc175c0:	7f 83 e0 51 	subf.   r28,r3,r28                             
    if (c != ret)                                                     
      rc = -1;                                                        
    else                                                              
    {                                                                 
        bytes_to_write -= ret;                                        
        bytes_written  += ret;                                        
ffc175c4:	7f 39 1a 14 	add     r25,r25,r3                             
        ++cur_blk;                                                    
ffc175c8:	3b 5a 00 01 	addi    r26,r26,1                              
  ssize_t             ret;                                            
                                                                      
  cur_blk += blocks_in_offset;                                        
                                                                      
  while (   (RC_OK == rc)                                             
         && (0 < bytes_to_write))                                     
ffc175cc:	41 82 00 24 	beq-    ffc175f0 <fat_cluster_set+0x1a0>       <== ALWAYS TAKEN
ffc175d0:	88 fd 00 0c 	lbz     r7,12(r29)                             <== NOT EXECUTED
ffc175d4:	3b 60 00 00 	li      r27,0                                  <== NOT EXECUTED
ffc175d8:	89 1d 00 02 	lbz     r8,2(r29)                              <== NOT EXECUTED
ffc175dc:	4b ff ff 24 	b       ffc17500 <fat_cluster_set+0xb0>        <== NOT EXECUTED
                                                                      
    if (0 < bytes_to_write)                                           
    {                                                                 
        if (bytes_to_write == fs_info->vol.bytes_per_block)           
        {                                                             
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_GET, &blk_buf);
ffc175e0:	38 a0 00 02 	li      r5,2                                   
ffc175e4:	38 c1 00 08 	addi    r6,r1,8                                
ffc175e8:	4b ff fb 71 	bl      ffc17158 <fat_buf_access>              
ffc175ec:	4b ff ff 68 	b       ffc17554 <fat_cluster_set+0x104>       
  }                                                                   
  if (RC_OK != rc)                                                    
    return rc;                                                        
  else                                                                
    return bytes_written;                                             
}                                                                     
ffc175f0:	80 01 00 44 	lwz     r0,68(r1)                              
        fs_info,                                                      
        cur_blk,                                                      
        ofs_blk,                                                      
        c,                                                            
        pattern);                                                     
    if (c != ret)                                                     
ffc175f4:	7f 23 cb 78 	mr      r3,r25                                 
  }                                                                   
  if (RC_OK != rc)                                                    
    return rc;                                                        
  else                                                                
    return bytes_written;                                             
}                                                                     
ffc175f8:	82 e1 00 1c 	lwz     r23,28(r1)                             
ffc175fc:	7c 08 03 a6 	mtlr    r0                                     
ffc17600:	83 01 00 20 	lwz     r24,32(r1)                             
ffc17604:	83 21 00 24 	lwz     r25,36(r1)                             
ffc17608:	83 41 00 28 	lwz     r26,40(r1)                             
ffc1760c:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc17610:	83 81 00 30 	lwz     r28,48(r1)                             
ffc17614:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc17618:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc1761c:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc17620:	38 21 00 40 	addi    r1,r1,64                               
ffc17624:	4e 80 00 20 	blr                                            
                                                                      
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);
ffc17628:	89 1d 00 02 	lbz     r8,2(r29)                              <== NOT EXECUTED
    uint32_t                              ino                         
    )                                                                 
{                                                                     
                                                                      
    return (ino >= fs_info->uino_base);                               
}                                                                     
ffc1762c:	88 fd 00 0c 	lbz     r7,12(r29)                             <== NOT EXECUTED
ffc17630:	55 1a 06 3e 	clrlwi  r26,r8,24                              <== NOT EXECUTED
ffc17634:	81 3d 00 20 	lwz     r9,32(r29)                             <== NOT EXECUTED
ffc17638:	7f 5a 38 50 	subf    r26,r26,r7                             <== NOT EXECUTED
ffc1763c:	7d 3a d4 30 	srw     r26,r9,r26                             <== NOT EXECUTED
ffc17640:	4b ff fe a0 	b       ffc174e0 <fat_cluster_set+0x90>        <== NOT EXECUTED
                                                                      

ffc17644 <fat_cluster_write>: const uint32_t start_cln, const uint32_t offset, const uint32_t count, const void *buff, const bool overwrite_cluster) {
ffc17644:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc17648:	7c 08 02 a6 	mflr    r0                                     
ffc1764c:	7d 80 00 26 	mfcr    r12                                    
ffc17650:	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));
ffc17654:	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)          
{                                                                     
ffc17658:	93 01 00 20 	stw     r24,32(r1)                             
ffc1765c:	7c f8 3b 78 	mr      r24,r7                                 
    ssize_t             rc               = RC_OK;                     
    uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
ffc17660:	7d 25 48 50 	subf    r9,r5,r9                               
ffc17664:	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)          
{                                                                     
ffc17668:	93 81 00 30 	stw     r28,48(r1)                             
    ssize_t             rc               = RC_OK;                     
    uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
ffc1766c:	7c dc 33 78 	mr      r28,r6                                 
    const uint32_t                        start_cln,                  
    const uint32_t                        offset,                     
    const uint32_t                        count,                      
    const void                           *buff,                       
    const bool                            overwrite_cluster)          
{                                                                     
ffc17670:	93 a1 00 34 	stw     r29,52(r1)                             
ffc17674:	7c 7d 1b 78 	mr      r29,r3                                 
ffc17678:	92 e1 00 1c 	stw     r23,28(r1)                             
ffc1767c:	93 21 00 24 	stw     r25,36(r1)                             
ffc17680:	93 41 00 28 	stw     r26,40(r1)                             
ffc17684:	93 61 00 2c 	stw     r27,44(r1)                             
ffc17688:	93 c1 00 38 	stw     r30,56(r1)                             
ffc1768c:	93 e1 00 3c 	stw     r31,60(r1)                             
ffc17690:	91 81 00 18 	stw     r12,24(r1)                             
    ssize_t             rc               = RC_OK;                     
    uint32_t            bytes_to_write   = MIN(count, (fs_info->vol.bpc - offset));
ffc17694:	40 9d 00 08 	ble-    cr7,ffc1769c <fat_cluster_write+0x58>  <== ALWAYS TAKEN
ffc17698:	7d 3c 4b 78 	mr      r28,r9                                 <== NOT EXECUTED
fat_cluster_num_to_block_num (const fat_fs_info_t *fs_info,           
                              uint32_t             cln)               
{                                                                     
    uint32_t blk;                                                     
                                                                      
    if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
ffc1769c:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc176a0:	40 9e 00 10 	bne-    cr7,ffc176b0 <fat_cluster_write+0x6c>  
ffc176a4:	89 3d 00 0e 	lbz     r9,14(r29)                             
ffc176a8:	71 2a 00 03 	andi.   r10,r9,3                               
ffc176ac:	40 82 01 94 	bne-    ffc17840 <fat_cluster_write+0x1fc>     <== ALWAYS TAKEN
ffc176b0:	88 dd 00 02 	lbz     r6,2(r29)                              
        blk = fat_sector_num_to_block_num(fs_info, fs_info->vol.rdir_loc);
    else                                                              
    {                                                                 
        cln -= FAT_RSRVD_CLN;                                         
ffc176b4:	38 84 ff fe 	addi    r4,r4,-2                               
        blk = cln << (fs_info->vol.bpc_log2 - fs_info->vol.bytes_per_block_log2);
ffc176b8:	88 fd 00 0c 	lbz     r7,12(r29)                             
ffc176bc:	89 5d 00 08 	lbz     r10,8(r29)                             
ffc176c0:	54 da 06 3e 	clrlwi  r26,r6,24                              
ffc176c4:	81 3d 00 34 	lwz     r9,52(r29)                             
ffc176c8:	7f 5a 38 50 	subf    r26,r26,r7                             
ffc176cc:	7d 47 50 50 	subf    r10,r7,r10                             
ffc176d0:	7d 29 d4 30 	srw     r9,r9,r26                              
ffc176d4:	7c 84 50 30 	slw     r4,r4,r10                              
        blk += fat_sector_num_to_block_num(fs_info, fs_info->vol.data_fsec);
ffc176d8:	7f 49 22 14 	add     r26,r9,r4                              
    uint32_t            c;                                            
                                                                      
    cur_blk += blocks_in_offset;                                      
                                                                      
    while (   (RC_OK == rc)                                           
           && (0 < bytes_to_write))                                   
ffc176dc:	2f 9c 00 00 	cmpwi   cr7,r28,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);
ffc176e0:	7c a9 3c 30 	srw     r9,r5,r7                               
    uint32_t            ofs_blk          = offset - (blocks_in_offset << fs_info->vol.bytes_per_block_log2);
ffc176e4:	7d 3b 38 30 	slw     r27,r9,r7                              
ffc176e8:	7f 7b 28 50 	subf    r27,r27,r5                             
    ssize_t             bytes_written    = 0;                         
    uint8_t             *buffer          = (uint8_t*)buff;            
    ssize_t             ret;                                          
    uint32_t            c;                                            
                                                                      
    cur_blk += blocks_in_offset;                                      
ffc176ec:	7f 49 d2 14 	add     r26,r9,r26                             
                                                                      
    while (   (RC_OK == rc)                                           
           && (0 < bytes_to_write))                                   
ffc176f0:	41 9e 01 0c 	beq-    cr7,ffc177fc <fat_cluster_write+0x1b8> <== NEVER TAKEN
    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                                        
ffc176f4:	2e 08 00 00 	cmpwi   cr4,r8,0                               
    uint32_t            c;                                            
                                                                      
    cur_blk += blocks_in_offset;                                      
                                                                      
    while (   (RC_OK == rc)                                           
           && (0 < bytes_to_write))                                   
ffc176f8:	3b 20 00 00 	li      r25,0                                  
}                                                                     
                                                                      
static inline void                                                    
fat_buf_mark_modified(fat_fs_info_t *fs_info)                         
{                                                                     
    fs_info->c.modified = true;                                       
ffc176fc:	3a e0 00 01 	li      r23,1                                  
    {                                                                 
      c = MIN(bytes_to_write, (fs_info->vol.bytes_per_block - ofs_blk));
ffc17700:	a1 5d 00 0a 	lhz     r10,10(r29)                            
ffc17704:	7d 3b 50 50 	subf    r9,r27,r10                             
ffc17708:	7f 89 e0 40 	cmplw   cr7,r9,r28                             
ffc1770c:	7d 3f 4b 78 	mr      r31,r9                                 
ffc17710:	40 9d 00 08 	ble-    cr7,ffc17718 <fat_cluster_write+0xd4>  
ffc17714:	7f 9f e3 78 	mr      r31,r28                                
    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));
ffc17718:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
ffc1771c:	7f fe fb 78 	mr      r30,r31                                
ffc17720:	40 9d 00 08 	ble-    cr7,ffc17728 <fat_cluster_write+0xe4>  <== ALWAYS TAKEN
ffc17724:	7d 3e 4b 78 	mr      r30,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)                                           
ffc17728:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    uint32_t                              ino                         
    )                                                                 
{                                                                     
                                                                      
    return (ino >= fs_info->uino_base);                               
}                                                                     
ffc1772c:	54 c9 06 3e 	clrlwi  r9,r6,24                               
    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)                                           
ffc17730:	41 9e 00 90 	beq-    cr7,ffc177c0 <fat_cluster_write+0x17c> <== 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);
ffc17734:	7d 29 38 50 	subf    r9,r9,r7                               
ffc17738:	7f 44 48 30 	slw     r4,r26,r9                              
    {                                                                 
        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);
ffc1773c:	7f a3 eb 78 	mr      r3,r29                                 
    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                                        
ffc17740:	40 92 00 ac 	bne-    cr4,ffc177ec <fat_cluster_write+0x1a8> 
            || (bytes_to_write == fs_info->vol.bytes_per_block))      
ffc17744:	7f 8a f0 00 	cmpw    cr7,r10,r30                            
ffc17748:	41 9e 00 a4 	beq-    cr7,ffc177ec <fat_cluster_write+0x1a8> 
        {                                                             
            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);
ffc1774c:	38 a0 00 01 	li      r5,1                                   
ffc17750:	38 c1 00 08 	addi    r6,r1,8                                
ffc17754:	4b ff fa 05 	bl      ffc17158 <fat_buf_access>              
                                                                      
        if (RC_OK == rc)                                              
ffc17758:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1775c:	41 9e 00 4c 	beq-    cr7,ffc177a8 <fat_cluster_write+0x164> <== ALWAYS TAKEN
          cur_blk,                                                    
          ofs_blk,                                                    
          c,                                                          
          &buffer[bytes_written],                                     
          overwrite_cluster);                                         
      if (c != ret)                                                   
ffc17760:	7f 83 f8 00 	cmpw    cr7,r3,r31                             <== NOT EXECUTED
ffc17764:	41 9e 00 68 	beq-    cr7,ffc177cc <fat_cluster_write+0x188> <== NOT EXECUTED
    }                                                                 
    if (RC_OK != rc)                                                  
      return rc;                                                      
    else                                                              
      return bytes_written;                                           
}                                                                     
ffc17768:	80 01 00 44 	lwz     r0,68(r1)                              <== NOT EXECUTED
          cur_blk,                                                    
          ofs_blk,                                                    
          c,                                                          
          &buffer[bytes_written],                                     
          overwrite_cluster);                                         
      if (c != ret)                                                   
ffc1776c:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
    }                                                                 
    if (RC_OK != rc)                                                  
      return rc;                                                      
    else                                                              
      return bytes_written;                                           
}                                                                     
ffc17770:	81 81 00 18 	lwz     r12,24(r1)                             <== NOT EXECUTED
ffc17774:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc17778:	82 e1 00 1c 	lwz     r23,28(r1)                             <== NOT EXECUTED
ffc1777c:	83 01 00 20 	lwz     r24,32(r1)                             <== NOT EXECUTED
ffc17780:	7d 80 81 20 	mtcrf   8,r12                                  <== NOT EXECUTED
ffc17784:	83 21 00 24 	lwz     r25,36(r1)                             <== NOT EXECUTED
ffc17788:	83 41 00 28 	lwz     r26,40(r1)                             <== NOT EXECUTED
ffc1778c:	83 61 00 2c 	lwz     r27,44(r1)                             <== NOT EXECUTED
ffc17790:	83 81 00 30 	lwz     r28,48(r1)                             <== NOT EXECUTED
ffc17794:	83 a1 00 34 	lwz     r29,52(r1)                             <== NOT EXECUTED
ffc17798:	83 c1 00 38 	lwz     r30,56(r1)                             <== NOT EXECUTED
ffc1779c:	83 e1 00 3c 	lwz     r31,60(r1)                             <== NOT EXECUTED
ffc177a0:	38 21 00 40 	addi    r1,r1,64                               <== NOT EXECUTED
ffc177a4:	4e 80 00 20 	blr                                            <== NOT EXECUTED
        else                                                          
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_READ, &blk_buf);
                                                                      
        if (RC_OK == rc)                                              
        {                                                             
            memcpy(blk_buf + offset, buf, bytes_to_write);            
ffc177a8:	80 61 00 08 	lwz     r3,8(r1)                               
ffc177ac:	7c 98 ca 14 	add     r4,r24,r25                             
ffc177b0:	7f c5 f3 78 	mr      r5,r30                                 
ffc177b4:	7c 63 da 14 	add     r3,r3,r27                              
ffc177b8:	48 00 ab c5 	bl      ffc2237c <memcpy>                      
}                                                                     
                                                                      
static inline void                                                    
fat_buf_mark_modified(fat_fs_info_t *fs_info)                         
{                                                                     
    fs_info->c.modified = true;                                       
ffc177bc:	9a fd 00 88 	stb     r23,136(r29)                           
        }                                                             
    }                                                                 
    if (RC_OK != rc)                                                  
        return rc;                                                    
    else                                                              
        return bytes_to_write;                                        
ffc177c0:	7f c3 f3 78 	mr      r3,r30                                 
          cur_blk,                                                    
          ofs_blk,                                                    
          c,                                                          
          &buffer[bytes_written],                                     
          overwrite_cluster);                                         
      if (c != ret)                                                   
ffc177c4:	7f 83 f8 00 	cmpw    cr7,r3,r31                             
ffc177c8:	40 9e ff a0 	bne+    cr7,ffc17768 <fat_cluster_write+0x124> <== NEVER TAKEN
    uint32_t            c;                                            
                                                                      
    cur_blk += blocks_in_offset;                                      
                                                                      
    while (   (RC_OK == rc)                                           
           && (0 < bytes_to_write))                                   
ffc177cc:	7f 83 e0 51 	subf.   r28,r3,r28                             
      if (c != ret)                                                   
        rc = -1;                                                      
      else                                                            
      {                                                               
          bytes_to_write -= ret;                                      
          bytes_written  += ret;                                      
ffc177d0:	7f 39 1a 14 	add     r25,r25,r3                             
          ++cur_blk;                                                  
ffc177d4:	3b 5a 00 01 	addi    r26,r26,1                              
    uint32_t            c;                                            
                                                                      
    cur_blk += blocks_in_offset;                                      
                                                                      
    while (   (RC_OK == rc)                                           
           && (0 < bytes_to_write))                                   
ffc177d8:	41 82 00 28 	beq-    ffc17800 <fat_cluster_write+0x1bc>     <== ALWAYS TAKEN
ffc177dc:	88 fd 00 0c 	lbz     r7,12(r29)                             <== NOT EXECUTED
ffc177e0:	3b 60 00 00 	li      r27,0                                  <== NOT EXECUTED
ffc177e4:	88 dd 00 02 	lbz     r6,2(r29)                              <== NOT EXECUTED
ffc177e8:	4b ff ff 18 	b       ffc17700 <fat_cluster_write+0xbc>      <== NOT EXECUTED
    if (0 < bytes_to_write)                                           
    {                                                                 
        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);
ffc177ec:	38 a0 00 02 	li      r5,2                                   
ffc177f0:	38 c1 00 08 	addi    r6,r1,8                                
ffc177f4:	4b ff f9 65 	bl      ffc17158 <fat_buf_access>              
ffc177f8:	4b ff ff 60 	b       ffc17758 <fat_cluster_write+0x114>     
    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);
    uint32_t            ofs_blk          = offset - (blocks_in_offset << fs_info->vol.bytes_per_block_log2);
    ssize_t             bytes_written    = 0;                         
ffc177fc:	3b 20 00 00 	li      r25,0                                  <== NOT EXECUTED
    }                                                                 
    if (RC_OK != rc)                                                  
      return rc;                                                      
    else                                                              
      return bytes_written;                                           
}                                                                     
ffc17800:	80 01 00 44 	lwz     r0,68(r1)                              
          cur_blk,                                                    
          ofs_blk,                                                    
          c,                                                          
          &buffer[bytes_written],                                     
          overwrite_cluster);                                         
      if (c != ret)                                                   
ffc17804:	7f 23 cb 78 	mr      r3,r25                                 
    }                                                                 
    if (RC_OK != rc)                                                  
      return rc;                                                      
    else                                                              
      return bytes_written;                                           
}                                                                     
ffc17808:	81 81 00 18 	lwz     r12,24(r1)                             
ffc1780c:	7c 08 03 a6 	mtlr    r0                                     
ffc17810:	82 e1 00 1c 	lwz     r23,28(r1)                             
ffc17814:	83 01 00 20 	lwz     r24,32(r1)                             
ffc17818:	7d 80 81 20 	mtcrf   8,r12                                  
ffc1781c:	83 21 00 24 	lwz     r25,36(r1)                             
ffc17820:	83 41 00 28 	lwz     r26,40(r1)                             
ffc17824:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc17828:	83 81 00 30 	lwz     r28,48(r1)                             
ffc1782c:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc17830:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc17834:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc17838:	38 21 00 40 	addi    r1,r1,64                               
ffc1783c:	4e 80 00 20 	blr                                            
                                                                      
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);
ffc17840:	88 dd 00 02 	lbz     r6,2(r29)                              
    uint32_t                              ino                         
    )                                                                 
{                                                                     
                                                                      
    return (ino >= fs_info->uino_base);                               
}                                                                     
ffc17844:	88 fd 00 0c 	lbz     r7,12(r29)                             
ffc17848:	54 da 06 3e 	clrlwi  r26,r6,24                              
ffc1784c:	81 3d 00 20 	lwz     r9,32(r29)                             
ffc17850:	7f 5a 38 50 	subf    r26,r26,r7                             
ffc17854:	7d 3a d4 30 	srw     r26,r9,r26                             
ffc17858:	4b ff fe 84 	b       ffc176dc <fat_cluster_write+0x98>      
                                                                      

ffc16614 <fat_file_close>: int fat_file_close( fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd ) {
ffc16614:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc16618:	7c 08 02 a6 	mflr    r0                                     
ffc1661c:	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)                                        
ffc16620:	81 24 00 08 	lwz     r9,8(r4)                               
int                                                                   
fat_file_close(                                                       
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
ffc16624:	93 e1 00 14 	stw     r31,20(r1)                             
ffc16628:	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)                                        
ffc1662c:	2b 89 00 01 	cmplwi  cr7,r9,1                               
int                                                                   
fat_file_close(                                                       
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
ffc16630:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc16634:	93 c1 00 10 	stw     r30,16(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)                                        
ffc16638:	40 9d 00 2c 	ble-    cr7,ffc16664 <fat_file_close+0x50>     
    {                                                                 
        fat_fd->links_num--;                                          
ffc1663c:	39 29 ff ff 	addi    r9,r9,-1                               
ffc16640:	91 24 00 08 	stw     r9,8(r4)                               
        return rc;                                                    
ffc16644:	38 60 00 00 	li      r3,0                                   
     * flush any modified "cached" buffer back to disk                
     */                                                               
    rc = fat_buf_release(fs_info);                                    
                                                                      
    return rc;                                                        
}                                                                     
ffc16648:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc1664c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc16650:	7c 08 03 a6 	mtlr    r0                                     
ffc16654:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc16658:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc1665c:	38 21 00 18 	addi    r1,r1,24                               
ffc16660:	4e 80 00 20 	blr                                            
        return rc;                                                    
    }                                                                 
                                                                      
    key = fat_construct_key(fs_info, &fat_fd->dir_pos.sname);         
                                                                      
    if (fat_fd->flags & FAT_FILE_REMOVED)                             
ffc16664:	89 24 00 30 	lbz     r9,48(r4)                              
ffc16668:	7c 7e 1b 78 	mr      r30,r3                                 
ffc1666c:	71 3d 00 01 	andi.   r29,r9,1                               
ffc16670:	41 82 00 58 	beq-    ffc166c8 <fat_file_close+0xb4>         
    {                                                                 
        rc = fat_file_truncate(fs_info, fat_fd, 0);                   
ffc16674:	38 a0 00 00 	li      r5,0                                   
ffc16678:	4b ff fe 69 	bl      ffc164e0 <fat_file_truncate>           
        if ( rc != RC_OK )                                            
ffc1667c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc16680:	40 82 ff c8 	bne+    ffc16648 <fat_file_close+0x34>         <== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
ffc16684:	7f e3 fb 78 	mr      r3,r31                                 
ffc16688:	48 00 49 a5 	bl      ffc1b02c <_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) )                
ffc1668c:	80 9f 00 0c 	lwz     r4,12(r31)                             
ffc16690:	7f c3 f3 78 	mr      r3,r30                                 
ffc16694:	48 00 1e 59 	bl      ffc184ec <fat_ino_is_unique>           
ffc16698:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1669c:	40 9e 00 6c 	bne-    cr7,ffc16708 <fat_file_close+0xf4>     <== NEVER TAKEN
            fat_fd->links_num = 0;                                    
        }                                                             
        else                                                          
        {                                                             
            _hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd);   
            free(fat_fd);                                             
ffc166a0:	7f e3 fb 78 	mr      r3,r31                                 
ffc166a4:	4b ff 00 6d 	bl      ffc06710 <free>                        
     * flush any modified "cached" buffer back to disk                
     */                                                               
    rc = fat_buf_release(fs_info);                                    
                                                                      
    return rc;                                                        
}                                                                     
ffc166a8:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc166ac:	83 a1 00 0c 	lwz     r29,12(r1)                             
        }                                                             
    }                                                                 
    /*                                                                
     * flush any modified "cached" buffer back to disk                
     */                                                               
    rc = fat_buf_release(fs_info);                                    
ffc166b0:	7f c3 f3 78 	mr      r3,r30                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc166b4:	7c 08 03 a6 	mtlr    r0                                     
ffc166b8:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc166bc:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc166c0:	38 21 00 18 	addi    r1,r1,24                               
        }                                                             
    }                                                                 
    /*                                                                
     * flush any modified "cached" buffer back to disk                
     */                                                               
    rc = fat_buf_release(fs_info);                                    
ffc166c4:	48 00 08 b0 	b       ffc16f74 <fat_buf_release>             
                                                                      
        free(fat_fd);                                                 
    }                                                                 
    else                                                              
    {                                                                 
        if (fat_ino_is_unique(fs_info, fat_fd->ino))                  
ffc166c8:	80 84 00 0c 	lwz     r4,12(r4)                              
ffc166cc:	48 00 1e 21 	bl      ffc184ec <fat_ino_is_unique>           
ffc166d0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc166d4:	41 9e 00 28 	beq-    cr7,ffc166fc <fat_file_close+0xe8>     
     * flush any modified "cached" buffer back to disk                
     */                                                               
    rc = fat_buf_release(fs_info);                                    
                                                                      
    return rc;                                                        
}                                                                     
ffc166d8:	80 01 00 1c 	lwz     r0,28(r1)                              
        }                                                             
    }                                                                 
    /*                                                                
     * flush any modified "cached" buffer back to disk                
     */                                                               
    rc = fat_buf_release(fs_info);                                    
ffc166dc:	7f c3 f3 78 	mr      r3,r30                                 
    }                                                                 
    else                                                              
    {                                                                 
        if (fat_ino_is_unique(fs_info, fat_fd->ino))                  
        {                                                             
            fat_fd->links_num = 0;                                    
ffc166e0:	93 bf 00 08 	stw     r29,8(r31)                             
     * flush any modified "cached" buffer back to disk                
     */                                                               
    rc = fat_buf_release(fs_info);                                    
                                                                      
    return rc;                                                        
}                                                                     
ffc166e4:	7c 08 03 a6 	mtlr    r0                                     
ffc166e8:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc166ec:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc166f0:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc166f4:	38 21 00 18 	addi    r1,r1,24                               
        }                                                             
    }                                                                 
    /*                                                                
     * flush any modified "cached" buffer back to disk                
     */                                                               
    rc = fat_buf_release(fs_info);                                    
ffc166f8:	48 00 08 7c 	b       ffc16f74 <fat_buf_release>             
ffc166fc:	7f e3 fb 78 	mr      r3,r31                                 
ffc16700:	48 00 49 2d 	bl      ffc1b02c <_Chain_Extract>              
ffc16704:	4b ff ff 9c 	b       ffc166a0 <fat_file_close+0x8c>         
            return rc;                                                
                                                                      
        _hash_delete(fs_info->rhash, key, fat_fd->ino, fat_fd);       
                                                                      
        if ( fat_ino_is_unique(fs_info, fat_fd->ino) )                
            fat_free_unique_ino(fs_info, fat_fd->ino);                
ffc16708:	80 9f 00 0c 	lwz     r4,12(r31)                             <== NOT EXECUTED
ffc1670c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc16710:	48 00 1d b1 	bl      ffc184c0 <fat_free_unique_ino>         <== NOT EXECUTED
ffc16714:	4b ff ff 8c 	b       ffc166a0 <fat_file_close+0x8c>         <== NOT EXECUTED
                                                                      

ffc16818 <fat_file_extend>: fat_file_fd_t *fat_fd, bool zero_fill, uint32_t new_length, uint32_t *a_length ) {
ffc16818:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc1681c:	7c 08 02 a6 	mflr    r0                                     
    int            rc = RC_OK;                                        
    uint32_t       chain = 0;                                         
ffc16820:	39 40 00 00 	li      r10,0                                  
    fat_file_fd_t                        *fat_fd,                     
    bool                                  zero_fill,                  
    uint32_t                              new_length,                 
    uint32_t                             *a_length                    
    )                                                                 
{                                                                     
ffc16824:	93 81 00 30 	stw     r28,48(r1)                             
ffc16828:	7c fc 3b 78 	mr      r28,r7                                 
ffc1682c:	90 01 00 44 	stw     r0,68(r1)                              
ffc16830:	93 c1 00 38 	stw     r30,56(r1)                             
ffc16834:	7c 9e 23 78 	mr      r30,r4                                 
ffc16838:	93 e1 00 3c 	stw     r31,60(r1)                             
ffc1683c:	7c df 33 78 	mr      r31,r6                                 
ffc16840:	92 e1 00 1c 	stw     r23,28(r1)                             
ffc16844:	93 01 00 20 	stw     r24,32(r1)                             
ffc16848:	93 21 00 24 	stw     r25,36(r1)                             
ffc1684c:	93 41 00 28 	stw     r26,40(r1)                             
ffc16850:	93 61 00 2c 	stw     r27,44(r1)                             
ffc16854:	93 a1 00 34 	stw     r29,52(r1)                             
    uint32_t       last_cl = 0;                                       
    uint32_t       bytes_remain = 0;                                  
    uint32_t       cls_added;                                         
    ssize_t        bytes_written;                                     
                                                                      
    *a_length = new_length;                                           
ffc16858:	90 dc 00 00 	stw     r6,0(r28)                              
                                                                      
    if (new_length <= fat_fd->fat_file_size)                          
ffc1685c:	81 24 00 18 	lwz     r9,24(r4)                              
    uint32_t                              new_length,                 
    uint32_t                             *a_length                    
    )                                                                 
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       chain = 0;                                         
ffc16860:	91 41 00 14 	stw     r10,20(r1)                             
    uint32_t       cls_added;                                         
    ssize_t        bytes_written;                                     
                                                                      
    *a_length = new_length;                                           
                                                                      
    if (new_length <= fat_fd->fat_file_size)                          
ffc16864:	7f 86 48 40 	cmplw   cr7,r6,r9                              
    int            rc = RC_OK;                                        
    uint32_t       chain = 0;                                         
    uint32_t       bytes2add = 0;                                     
    uint32_t       cls2add = 0;                                       
    uint32_t       old_last_cl;                                       
    uint32_t       last_cl = 0;                                       
ffc16868:	91 41 00 0c 	stw     r10,12(r1)                             
    uint32_t       cls_added;                                         
    ssize_t        bytes_written;                                     
                                                                      
    *a_length = new_length;                                           
                                                                      
    if (new_length <= fat_fd->fat_file_size)                          
ffc1686c:	40 9d 00 58 	ble-    cr7,ffc168c4 <fat_file_extend+0xac>    
        return RC_OK;                                                 
                                                                      
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
ffc16870:	81 44 00 20 	lwz     r10,32(r4)                             
ffc16874:	7c 7d 1b 78 	mr      r29,r3                                 
ffc16878:	7c b9 2b 78 	mr      r25,r5                                 
ffc1687c:	2f 8a 00 01 	cmpwi   cr7,r10,1                              
ffc16880:	41 9e 01 48 	beq-    cr7,ffc169c8 <fat_file_extend+0x1b0>   
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
        rtems_set_errno_and_return_minus_one( ENOSPC );               
                                                                      
    bytes_remain = (fs_info->vol.bpc -                                
ffc16884:	a3 5d 00 06 	lhz     r26,6(r29)                             
                   (fat_fd->fat_file_size & (fs_info->vol.bpc - 1))) &
                   (fs_info->vol.bpc - 1);                            
                                                                      
    bytes2add = new_length - fat_fd->fat_file_size;                   
ffc16888:	7d 09 f8 50 	subf    r8,r9,r31                              
                                                                      
    if (bytes2add > bytes_remain)                                     
        bytes2add -= bytes_remain;                                    
    else                                                              
        bytes2add = 0;                                                
ffc1688c:	3b 00 00 00 	li      r24,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))) &
ffc16890:	39 5a ff ff 	addi    r10,r26,-1                             
ffc16894:	7d 57 48 38 	and     r23,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 -                                
ffc16898:	7f 57 d0 50 	subf    r26,r23,r26                            
ffc1689c:	7f 5a 50 38 	and     r26,r26,r10                            
                   (fat_fd->fat_file_size & (fs_info->vol.bpc - 1))) &
                   (fs_info->vol.bpc - 1);                            
                                                                      
    bytes2add = new_length - fat_fd->fat_file_size;                   
                                                                      
    if (bytes2add > bytes_remain)                                     
ffc168a0:	7f 9a 40 40 	cmplw   cr7,r26,r8                             
ffc168a4:	40 9c 00 08 	bge-    cr7,ffc168ac <fat_file_extend+0x94>    
        bytes2add -= bytes_remain;                                    
ffc168a8:	7f 1a 40 50 	subf    r24,r26,r8                             
    else                                                              
        bytes2add = 0;                                                
                                                                      
    if (zero_fill && bytes_remain > 0) {                              
ffc168ac:	2f 99 00 00 	cmpwi   cr7,r25,0                              
ffc168b0:	41 9e 00 0c 	beq-    cr7,ffc168bc <fat_file_extend+0xa4>    
ffc168b4:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc168b8:	40 9e 01 3c 	bne-    cr7,ffc169f4 <fat_file_extend+0x1dc>   
    /*                                                                
     * 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)                                               
ffc168bc:	2f 98 00 00 	cmpwi   cr7,r24,0                              
ffc168c0:	40 9e 00 40 	bne-    cr7,ffc16900 <fat_file_extend+0xe8>    
    ssize_t        bytes_written;                                     
                                                                      
    *a_length = new_length;                                           
                                                                      
    if (new_length <= fat_fd->fat_file_size)                          
        return RC_OK;                                                 
ffc168c4:	3b 60 00 00 	li      r27,0                                  
                                                                      
    *a_length = new_length;                                           
    fat_fd->fat_file_size = new_length;                               
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc168c8:	80 01 00 44 	lwz     r0,68(r1)                              
ffc168cc:	7f 63 db 78 	mr      r3,r27                                 
ffc168d0:	82 e1 00 1c 	lwz     r23,28(r1)                             
ffc168d4:	7c 08 03 a6 	mtlr    r0                                     
ffc168d8:	83 01 00 20 	lwz     r24,32(r1)                             
ffc168dc:	83 21 00 24 	lwz     r25,36(r1)                             
ffc168e0:	83 41 00 28 	lwz     r26,40(r1)                             
ffc168e4:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc168e8:	83 81 00 30 	lwz     r28,48(r1)                             
ffc168ec:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc168f0:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc168f4:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc168f8:	38 21 00 40 	addi    r1,r1,64                               
ffc168fc:	4e 80 00 20 	blr                                            
     * file ) - return                                                
     */                                                               
    if (bytes2add == 0)                                               
        return RC_OK;                                                 
                                                                      
    cls2add = ((bytes2add - 1) >> fs_info->vol.bpc_log2) + 1;         
ffc16900:	89 3d 00 08 	lbz     r9,8(r29)                              
ffc16904:	3a f8 ff ff 	addi    r23,r24,-1                             
                                                                      
    rc = fat_scan_fat_for_free_clusters(fs_info, &chain, cls2add,     
ffc16908:	7f a3 eb 78 	mr      r3,r29                                 
     * file ) - return                                                
     */                                                               
    if (bytes2add == 0)                                               
        return RC_OK;                                                 
                                                                      
    cls2add = ((bytes2add - 1) >> fs_info->vol.bpc_log2) + 1;         
ffc1690c:	7e f7 4c 30 	srw     r23,r23,r9                             
ffc16910:	3a f7 00 01 	addi    r23,r23,1                              
                                                                      
    rc = fat_scan_fat_for_free_clusters(fs_info, &chain, cls2add,     
ffc16914:	38 81 00 14 	addi    r4,r1,20                               
ffc16918:	7e e5 bb 78 	mr      r5,r23                                 
ffc1691c:	38 c1 00 08 	addi    r6,r1,8                                
ffc16920:	38 e1 00 0c 	addi    r7,r1,12                               
ffc16924:	7f 28 cb 78 	mr      r8,r25                                 
ffc16928:	48 00 8c 9d 	bl      ffc1f5c4 <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)                                                  
ffc1692c:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc16930:	40 a2 ff 98 	bne-    ffc168c8 <fat_file_extend+0xb0>        <== NEVER TAKEN
        return rc;                                                    
                                                                      
    /* this means that no space left on device */                     
    if ((cls_added == 0) && (bytes_remain == 0))                      
ffc16934:	81 21 00 08 	lwz     r9,8(r1)                               
ffc16938:	7f 4a 4b 79 	or.     r10,r26,r9                             
ffc1693c:	41 82 00 a4 	beq-    ffc169e0 <fat_file_extend+0x1c8>       <== NEVER TAKEN
        rtems_set_errno_and_return_minus_one(ENOSPC);                 
                                                                      
    /*  check wether we satisfied request for 'cls2add' clusters */   
    if (cls2add != cls_added)                                         
ffc16940:	7f 97 48 00 	cmpw    cr7,r23,r9                             
ffc16944:	41 9e 00 24 	beq-    cr7,ffc16968 <fat_file_extend+0x150>   <== ALWAYS TAKEN
    {                                                                 
        new_length -= bytes2add & (fs_info->vol.bpc - 1);             
ffc16948:	a1 1d 00 06 	lhz     r8,6(r29)                              <== NOT EXECUTED
        new_length -= (cls2add - cls_added) << fs_info->vol.bpc_log2; 
ffc1694c:	7e e9 b8 50 	subf    r23,r9,r23                             <== NOT EXECUTED
ffc16950:	89 5d 00 08 	lbz     r10,8(r29)                             <== 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);             
ffc16954:	39 08 ff ff 	addi    r8,r8,-1                               <== NOT EXECUTED
ffc16958:	7f 18 40 38 	and     r24,r24,r8                             <== NOT EXECUTED
ffc1695c:	7f f8 f8 50 	subf    r31,r24,r31                            <== NOT EXECUTED
        new_length -= (cls2add - cls_added) << fs_info->vol.bpc_log2; 
ffc16960:	7e f7 50 30 	slw     r23,r23,r10                            <== NOT EXECUTED
ffc16964:	7f f7 f8 50 	subf    r31,r23,r31                            <== NOT EXECUTED
    }                                                                 
                                                                      
    /* add new chain to the end of existed */                         
    if ( fat_fd->fat_file_size == 0 )                                 
ffc16968:	80 de 00 18 	lwz     r6,24(r30)                             
ffc1696c:	2f 86 00 00 	cmpwi   cr7,r6,0                               
ffc16970:	40 9e 00 d8 	bne-    cr7,ffc16a48 <fat_file_extend+0x230>   
    {                                                                 
        fat_fd->map.disk_cln = fat_fd->cln = chain;                   
ffc16974:	81 41 00 14 	lwz     r10,20(r1)                             
        fat_fd->map.file_cln = 0;                                     
ffc16978:	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;                   
ffc1697c:	91 5e 00 1c 	stw     r10,28(r30)                            
ffc16980:	91 5e 00 38 	stw     r10,56(r30)                            
        }                                                             
        fat_buf_release(fs_info);                                     
    }                                                                 
                                                                      
    /* update number of the last cluster of the file if it changed */ 
    if (cls_added != 0)                                               
ffc16984:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc16988:	41 9e 00 b4 	beq-    cr7,ffc16a3c <fat_file_extend+0x224>   <== NEVER TAKEN
    {                                                                 
        fat_fd->map.last_cln = last_cl;                               
        if (fat_fd->fat_file_type == FAT_DIRECTORY)                   
ffc1698c:	81 3e 00 10 	lwz     r9,16(r30)                             
ffc16990:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    }                                                                 
                                                                      
    /* update number of the last cluster of the file if it changed */ 
    if (cls_added != 0)                                               
    {                                                                 
        fat_fd->map.last_cln = last_cl;                               
ffc16994:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc16998:	91 3e 00 3c 	stw     r9,60(r30)                             
        if (fat_fd->fat_file_type == FAT_DIRECTORY)                   
ffc1699c:	40 be 00 a0 	bne+    cr7,ffc16a3c <fat_file_extend+0x224>   
        {                                                             
            rc = fat_init_clusters_chain(fs_info, chain);             
ffc169a0:	80 81 00 14 	lwz     r4,20(r1)                              
ffc169a4:	7f a3 eb 78 	mr      r3,r29                                 
ffc169a8:	48 00 19 29 	bl      ffc182d0 <fat_init_clusters_chain>     
            if ( rc != RC_OK )                                        
ffc169ac:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc169b0:	41 a2 00 8c 	beq+    ffc16a3c <fat_file_extend+0x224>       <== ALWAYS TAKEN
            {                                                         
                fat_free_fat_clusters_chain(fs_info, chain);          
ffc169b4:	80 81 00 14 	lwz     r4,20(r1)                              <== NOT EXECUTED
ffc169b8:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc169bc:	7f 5b d3 78 	mr      r27,r26                                <== NOT EXECUTED
ffc169c0:	48 00 8a c9 	bl      ffc1f488 <fat_free_fat_clusters_chain> <== NOT EXECUTED
ffc169c4:	4b ff ff 04 	b       ffc168c8 <fat_file_extend+0xb0>        <== NOT EXECUTED
    *a_length = new_length;                                           
                                                                      
    if (new_length <= fat_fd->fat_file_size)                          
        return RC_OK;                                                 
                                                                      
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
ffc169c8:	81 44 00 24 	lwz     r10,36(r4)                             
ffc169cc:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc169d0:	40 be fe b4 	bne-    cr7,ffc16884 <fat_file_extend+0x6c>    <== NEVER TAKEN
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
ffc169d4:	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)) &&                               
ffc169d8:	71 48 00 03 	andi.   r8,r10,3                               
ffc169dc:	41 82 fe a8 	beq+    ffc16884 <fat_file_extend+0x6c>        <== NEVER TAKEN
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    /* this means that no space left on device */                     
    if ((cls_added == 0) && (bytes_remain == 0))                      
        rtems_set_errno_and_return_minus_one(ENOSPC);                 
ffc169e0:	48 00 ac bd 	bl      ffc2169c <__errno>                     
ffc169e4:	39 20 00 1c 	li      r9,28                                  
ffc169e8:	91 23 00 00 	stw     r9,0(r3)                               
ffc169ec:	3b 60 ff ff 	li      r27,-1                                 
ffc169f0:	4b ff fe d8 	b       ffc168c8 <fat_file_extend+0xb0>        
    else                                                              
        bytes2add = 0;                                                
                                                                      
    if (zero_fill && bytes_remain > 0) {                              
        uint32_t start = fat_fd->fat_file_size;                       
        uint32_t cl_start = start >> fs_info->vol.bpc_log2;           
ffc169f4:	88 bd 00 08 	lbz     r5,8(r29)                              
        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);     
ffc169f8:	7f a3 eb 78 	mr      r3,r29                                 
ffc169fc:	7f c4 f3 78 	mr      r4,r30                                 
ffc16a00:	7d 25 2c 30 	srw     r5,r9,r5                               
ffc16a04:	38 c1 00 08 	addi    r6,r1,8                                
ffc16a08:	4b ff f3 f1 	bl      ffc15df8 <fat_file_lseek>              
        if (rc != RC_OK)                                              
ffc16a0c:	7c 9b 23 79 	mr.     r27,r4                                 
ffc16a10:	40 82 fe b8 	bne+    ffc168c8 <fat_file_extend+0xb0>        <== NEVER TAKEN
            return rc;                                                
                                                                      
        bytes_written = fat_cluster_set (fs_info, cur_cln, ofs, bytes_remain, 0);
ffc16a14:	80 81 00 08 	lwz     r4,8(r1)                               
ffc16a18:	7f a3 eb 78 	mr      r3,r29                                 
ffc16a1c:	7e e5 bb 78 	mr      r5,r23                                 
ffc16a20:	7f 46 d3 78 	mr      r6,r26                                 
ffc16a24:	38 e0 00 00 	li      r7,0                                   
ffc16a28:	48 00 0a 29 	bl      ffc17450 <fat_cluster_set>             
        if (bytes_remain != bytes_written)                            
            return -1;                                                
ffc16a2c:	3b 60 ff ff 	li      r27,-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)                            
ffc16a30:	7f 83 d0 00 	cmpw    cr7,r3,r26                             
ffc16a34:	40 9e fe 94 	bne+    cr7,ffc168c8 <fat_file_extend+0xb0>    <== NEVER TAKEN
ffc16a38:	4b ff fe 84 	b       ffc168bc <fat_file_extend+0xa4>        
                return rc;                                            
            }                                                         
        }                                                             
    }                                                                 
                                                                      
    *a_length = new_length;                                           
ffc16a3c:	93 fc 00 00 	stw     r31,0(r28)                             
    fat_fd->fat_file_size = new_length;                               
ffc16a40:	93 fe 00 18 	stw     r31,24(r30)                            
ffc16a44:	4b ff fe 84 	b       ffc168c8 <fat_file_extend+0xb0>        
        fat_fd->map.disk_cln = fat_fd->cln = chain;                   
        fat_fd->map.file_cln = 0;                                     
    }                                                                 
    else                                                              
    {                                                                 
        if (fat_fd->map.last_cln != FAT_UNDEFINED_VALUE)              
ffc16a48:	80 9e 00 3c 	lwz     r4,60(r30)                             
ffc16a4c:	2f 84 ff ff 	cmpwi   cr7,r4,-1                              
ffc16a50:	41 9e 00 2c 	beq-    cr7,ffc16a7c <fat_file_extend+0x264>   <== NEVER TAKEN
        {                                                             
            old_last_cl = fat_fd->map.last_cln;                       
ffc16a54:	90 81 00 10 	stw     r4,16(r1)                              
                fat_free_fat_clusters_chain(fs_info, chain);          
                return rc;                                            
            }                                                         
        }                                                             
                                                                      
        rc = fat_set_fat_cluster(fs_info, old_last_cl, chain);        
ffc16a58:	80 a1 00 14 	lwz     r5,20(r1)                              
ffc16a5c:	7f a3 eb 78 	mr      r3,r29                                 
ffc16a60:	48 00 86 f5 	bl      ffc1f154 <fat_set_fat_cluster>         
        if ( rc != RC_OK )                                            
ffc16a64:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc16a68:	40 a2 ff 4c 	bne-    ffc169b4 <fat_file_extend+0x19c>       <== NEVER TAKEN
        {                                                             
            fat_free_fat_clusters_chain(fs_info, chain);              
            return rc;                                                
        }                                                             
        fat_buf_release(fs_info);                                     
ffc16a6c:	7f a3 eb 78 	mr      r3,r29                                 
ffc16a70:	48 00 05 05 	bl      ffc16f74 <fat_buf_release>             
ffc16a74:	81 21 00 08 	lwz     r9,8(r1)                               
ffc16a78:	4b ff ff 0c 	b       ffc16984 <fat_file_extend+0x16c>       
        {                                                             
            old_last_cl = fat_fd->map.last_cln;                       
        }                                                             
        else                                                          
        {                                                             
            rc = fat_file_ioctl(fs_info, fat_fd, F_CLU_NUM,           
ffc16a7c:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc16a80:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc16a84:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc16a88:	38 c6 ff ff 	addi    r6,r6,-1                               <== NOT EXECUTED
ffc16a8c:	38 e1 00 10 	addi    r7,r1,16                               <== NOT EXECUTED
ffc16a90:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc16a94:	4b ff fc 85 	bl      ffc16718 <fat_file_ioctl>              <== NOT EXECUTED
ffc16a98:	80 81 00 10 	lwz     r4,16(r1)                              <== NOT EXECUTED
                                (fat_fd->fat_file_size - 1), &old_last_cl);
            if ( rc != RC_OK )                                        
ffc16a9c:	7c 7a 1b 79 	mr.     r26,r3                                 <== NOT EXECUTED
ffc16aa0:	41 82 ff b8 	beq+    ffc16a58 <fat_file_extend+0x240>       <== NOT EXECUTED
ffc16aa4:	4b ff ff 10 	b       ffc169b4 <fat_file_extend+0x19c>       <== NOT EXECUTED
                                                                      

ffc16718 <fat_file_ioctl>: uint32_t *ret; va_list ap; va_start(ap, cmd); switch (cmd)
ffc16718:	2f 85 00 01 	cmpwi   cr7,r5,1                               
fat_file_ioctl(                                                       
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd,                     
    int                                   cmd,                        
    ...)                                                              
{                                                                     
ffc1671c:	94 21 ff d0 	stwu    r1,-48(r1)                             
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = 0;                                       
ffc16720:	39 40 00 00 	li      r10,0                                  
fat_file_ioctl(                                                       
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd,                     
    int                                   cmd,                        
    ...)                                                              
{                                                                     
ffc16724:	7c 08 02 a6 	mflr    r0                                     
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = 0;                                       
ffc16728:	91 41 00 14 	stw     r10,20(r1)                             
    uint32_t       cl_start = 0;                                      
    uint32_t       pos = 0;                                           
    uint32_t      *ret;                                               
    va_list        ap;                                                
                                                                      
    va_start(ap, cmd);                                                
ffc1672c:	39 40 00 03 	li      r10,3                                  
ffc16730:	39 21 00 10 	addi    r9,r1,16                               
ffc16734:	99 41 00 08 	stb     r10,8(r1)                              
ffc16738:	39 41 00 38 	addi    r10,r1,56                              
fat_file_ioctl(                                                       
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd,                     
    int                                   cmd,                        
    ...)                                                              
{                                                                     
ffc1673c:	90 01 00 34 	stw     r0,52(r1)                              
ffc16740:	93 c1 00 28 	stw     r30,40(r1)                             
ffc16744:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc16748:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc1674c:	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);                                                
ffc16750:	91 41 00 0c 	stw     r10,12(r1)                             
ffc16754:	91 21 00 10 	stw     r9,16(r1)                              
                                                                      
    switch (cmd)                                                      
ffc16758:	41 9e 00 2c 	beq-    cr7,ffc16784 <fat_file_ioctl+0x6c>     <== ALWAYS TAKEN
                                                                      
            *ret = cur_cln;                                           
            break;                                                    
                                                                      
        default:                                                      
            errno = EINVAL;                                           
ffc1675c:	48 00 af 41 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc16760:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc16764:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
            rc = -1;                                                  
ffc16768:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
            break;                                                    
    }                                                                 
    va_end(ap);                                                       
    return rc;                                                        
}                                                                     
ffc1676c:	80 01 00 34 	lwz     r0,52(r1)                              
ffc16770:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc16774:	7c 08 03 a6 	mtlr    r0                                     
ffc16778:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc1677c:	38 21 00 30 	addi    r1,r1,48                               
ffc16780:	4e 80 00 20 	blr                                            
        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 ) {                     
ffc16784:	81 04 00 18 	lwz     r8,24(r4)                              
                                                                      
    switch (cmd)                                                      
    {                                                                 
        case F_CLU_NUM:                                               
            pos = va_arg(ap, uint32_t);                               
            ret = va_arg(ap, uint32_t *);                             
ffc16788:	3b e0 00 05 	li      r31,5                                  
    va_start(ap, cmd);                                                
                                                                      
    switch (cmd)                                                      
    {                                                                 
        case F_CLU_NUM:                                               
            pos = va_arg(ap, uint32_t);                               
ffc1678c:	7c ca 33 78 	mr      r10,r6                                 
            ret = va_arg(ap, uint32_t *);                             
ffc16790:	9b e1 00 08 	stb     r31,8(r1)                              
                                                                      
            /* sanity check */                                        
            if ( pos >= fat_fd->fat_file_size ) {                     
ffc16794:	7f 88 30 40 	cmplw   cr7,r8,r6                              
                                                                      
    switch (cmd)                                                      
    {                                                                 
        case F_CLU_NUM:                                               
            pos = va_arg(ap, uint32_t);                               
            ret = va_arg(ap, uint32_t *);                             
ffc16798:	7c fe 3b 78 	mr      r30,r7                                 
                                                                      
            /* sanity check */                                        
            if ( pos >= fat_fd->fat_file_size ) {                     
ffc1679c:	40 9d 00 6c 	ble-    cr7,ffc16808 <fat_file_ioctl+0xf0>     <== NEVER TAKEN
                va_end(ap);                                           
                rtems_set_errno_and_return_minus_one( EIO );          
            }                                                         
                                                                      
            if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                       
ffc167a0:	81 24 00 20 	lwz     r9,32(r4)                              
ffc167a4:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc167a8:	41 9e 00 3c 	beq-    cr7,ffc167e4 <fat_file_ioctl+0xcc>     
                *ret  = 0;                                            
                rc = RC_OK;                                           
                break;                                                
            }                                                         
                                                                      
            cl_start = pos >> fs_info->vol.bpc_log2;                  
ffc167ac:	88 a3 00 08 	lbz     r5,8(r3)                               
                                                                      
            rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln); 
ffc167b0:	38 c1 00 14 	addi    r6,r1,20                               
ffc167b4:	7d 45 2c 30 	srw     r5,r10,r5                              
ffc167b8:	4b ff f6 41 	bl      ffc15df8 <fat_file_lseek>              
            if ( rc != RC_OK )                                        
ffc167bc:	7c 83 23 79 	mr.     r3,r4                                  
ffc167c0:	40 a2 ff ac 	bne-    ffc1676c <fat_file_ioctl+0x54>         <== NEVER TAKEN
            rc = -1;                                                  
            break;                                                    
    }                                                                 
    va_end(ap);                                                       
    return rc;                                                        
}                                                                     
ffc167c4:	80 01 00 34 	lwz     r0,52(r1)                              
                                                                      
            rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln); 
            if ( rc != RC_OK )                                        
                break;                                                
                                                                      
            *ret = cur_cln;                                           
ffc167c8:	81 21 00 14 	lwz     r9,20(r1)                              
            rc = -1;                                                  
            break;                                                    
    }                                                                 
    va_end(ap);                                                       
    return rc;                                                        
}                                                                     
ffc167cc:	7c 08 03 a6 	mtlr    r0                                     
ffc167d0:	83 e1 00 2c 	lwz     r31,44(r1)                             
                                                                      
            rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln); 
            if ( rc != RC_OK )                                        
                break;                                                
                                                                      
            *ret = cur_cln;                                           
ffc167d4:	91 3e 00 00 	stw     r9,0(r30)                              
            rc = -1;                                                  
            break;                                                    
    }                                                                 
    va_end(ap);                                                       
    return rc;                                                        
}                                                                     
ffc167d8:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc167dc:	38 21 00 30 	addi    r1,r1,48                               
ffc167e0:	4e 80 00 20 	blr                                            
            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)) &&                       
ffc167e4:	81 24 00 24 	lwz     r9,36(r4)                              
ffc167e8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc167ec:	40 be ff c0 	bne-    cr7,ffc167ac <fat_file_ioctl+0x94>     <== NEVER TAKEN
                (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))        
ffc167f0:	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)) &&                       
ffc167f4:	71 07 00 03 	andi.   r7,r8,3                                
ffc167f8:	41 a2 ff b4 	beq-    ffc167ac <fat_file_ioctl+0x94>         
                (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))        
            {                                                         
                /* cluster 0 (zero) reserved for root dir */          
                *ret  = 0;                                            
ffc167fc:	91 3e 00 00 	stw     r9,0(r30)                              
                rc = RC_OK;                                           
ffc16800:	38 60 00 00 	li      r3,0                                   
                break;                                                
ffc16804:	4b ff ff 68 	b       ffc1676c <fat_file_ioctl+0x54>         
            ret = va_arg(ap, uint32_t *);                             
                                                                      
            /* sanity check */                                        
            if ( pos >= fat_fd->fat_file_size ) {                     
                va_end(ap);                                           
                rtems_set_errno_and_return_minus_one( EIO );          
ffc16808:	48 00 ae 95 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc1680c:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc16810:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc16814:	4b ff ff 58 	b       ffc1676c <fat_file_ioctl+0x54>         <== NOT EXECUTED
                                                                      

ffc15df8 <fat_file_lseek>: fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd, uint32_t file_cln, uint32_t *disk_cln ) {
ffc15df8:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc15dfc:	7c 08 02 a6 	mflr    r0                                     
ffc15e00:	90 01 00 34 	stw     r0,52(r1)                              
ffc15e04:	93 c1 00 28 	stw     r30,40(r1)                             
    int rc = RC_OK;                                                   
                                                                      
    if (file_cln == fat_fd->map.file_cln)                             
ffc15e08:	83 c4 00 34 	lwz     r30,52(r4)                             
    fat_fs_info_t                         *fs_info,                   
    fat_file_fd_t                         *fat_fd,                    
    uint32_t                               file_cln,                  
    uint32_t                              *disk_cln                   
    )                                                                 
{                                                                     
ffc15e0c:	93 41 00 18 	stw     r26,24(r1)                             
ffc15e10:	7c da 33 78 	mr      r26,r6                                 
    int rc = RC_OK;                                                   
                                                                      
    if (file_cln == fat_fd->map.file_cln)                             
ffc15e14:	7f 9e 28 00 	cmpw    cr7,r30,r5                             
    fat_fs_info_t                         *fs_info,                   
    fat_file_fd_t                         *fat_fd,                    
    uint32_t                               file_cln,                  
    uint32_t                              *disk_cln                   
    )                                                                 
{                                                                     
ffc15e18:	93 61 00 1c 	stw     r27,28(r1)                             
ffc15e1c:	7c 9b 23 78 	mr      r27,r4                                 
ffc15e20:	93 81 00 20 	stw     r28,32(r1)                             
ffc15e24:	7c bc 2b 78 	mr      r28,r5                                 
ffc15e28:	93 a1 00 24 	stw     r29,36(r1)                             
ffc15e2c:	93 e1 00 2c 	stw     r31,44(r1)                             
    int rc = RC_OK;                                                   
                                                                      
    if (file_cln == fat_fd->map.file_cln)                             
ffc15e30:	41 9e 00 d8 	beq-    cr7,ffc15f08 <fat_file_lseek+0x110>    
    {                                                                 
        uint32_t   cur_cln;                                           
        uint32_t   count;                                             
        uint32_t   i;                                                 
                                                                      
        if (file_cln > fat_fd->map.file_cln)                          
ffc15e34:	7f 9e 28 40 	cmplw   cr7,r30,r5                             
ffc15e38:	7c 7d 1b 78 	mr      r29,r3                                 
ffc15e3c:	41 9c 00 74 	blt-    cr7,ffc15eb0 <fat_file_lseek+0xb8>     
            cur_cln = fat_fd->map.disk_cln;                           
            count = file_cln - fat_fd->map.file_cln;                  
        }                                                             
        else                                                          
        {                                                             
            cur_cln = fat_fd->cln;                                    
ffc15e40:	81 24 00 1c 	lwz     r9,28(r4)                              
ffc15e44:	7c be 2b 78 	mr      r30,r5                                 
ffc15e48:	91 21 00 08 	stw     r9,8(r1)                               
            count = file_cln;                                         
        }                                                             
                                                                      
        /* skip over the clusters */                                  
        for (i = 0; i < count; i++)                                   
ffc15e4c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc15e50:	3b e0 00 00 	li      r31,0                                  
ffc15e54:	41 9e 00 6c 	beq-    cr7,ffc15ec0 <fat_file_lseek+0xc8>     
        {                                                             
            rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);     
ffc15e58:	80 81 00 08 	lwz     r4,8(r1)                               
ffc15e5c:	7f a3 eb 78 	mr      r3,r29                                 
ffc15e60:	38 a1 00 08 	addi    r5,r1,8                                
ffc15e64:	48 00 90 a1 	bl      ffc1ef04 <fat_get_fat_cluster>         
            cur_cln = fat_fd->cln;                                    
            count = file_cln;                                         
        }                                                             
                                                                      
        /* skip over the clusters */                                  
        for (i = 0; i < count; i++)                                   
ffc15e68:	3b ff 00 01 	addi    r31,r31,1                              
        {                                                             
            rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);     
            if ( rc != RC_OK )                                        
ffc15e6c:	2c 03 00 00 	cmpwi   r3,0                                   
            cur_cln = fat_fd->cln;                                    
            count = file_cln;                                         
        }                                                             
                                                                      
        /* skip over the clusters */                                  
        for (i = 0; i < count; i++)                                   
ffc15e70:	7f 9f f0 00 	cmpw    cr7,r31,r30                            
        {                                                             
            rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);     
            if ( rc != RC_OK )                                        
ffc15e74:	41 82 ff e0 	beq+    ffc15e54 <fat_file_lseek+0x5c>         <== ALWAYS TAKEN
        fat_fd->map.disk_cln = cur_cln;                               
                                                                      
        *disk_cln = cur_cln;                                          
    }                                                                 
    return RC_OK;                                                     
}                                                                     
ffc15e78:	80 01 00 34 	lwz     r0,52(r1)                              <== NOT EXECUTED
        /* skip over the clusters */                                  
        for (i = 0; i < count; i++)                                   
        {                                                             
            rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);     
            if ( rc != RC_OK )                                        
                return rc;                                            
ffc15e7c:	7c 6b 1b 78 	mr      r11,r3                                 <== NOT EXECUTED
ffc15e80:	7c 6a fe 70 	srawi   r10,r3,31                              <== NOT EXECUTED
        fat_fd->map.disk_cln = cur_cln;                               
                                                                      
        *disk_cln = cur_cln;                                          
    }                                                                 
    return RC_OK;                                                     
}                                                                     
ffc15e84:	83 41 00 18 	lwz     r26,24(r1)                             <== NOT EXECUTED
ffc15e88:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc15e8c:	83 61 00 1c 	lwz     r27,28(r1)                             <== NOT EXECUTED
ffc15e90:	83 81 00 20 	lwz     r28,32(r1)                             <== NOT EXECUTED
ffc15e94:	7d 43 53 78 	mr      r3,r10                                 <== NOT EXECUTED
ffc15e98:	83 a1 00 24 	lwz     r29,36(r1)                             <== NOT EXECUTED
ffc15e9c:	7d 64 5b 78 	mr      r4,r11                                 <== NOT EXECUTED
ffc15ea0:	83 c1 00 28 	lwz     r30,40(r1)                             <== NOT EXECUTED
ffc15ea4:	83 e1 00 2c 	lwz     r31,44(r1)                             <== NOT EXECUTED
ffc15ea8:	38 21 00 30 	addi    r1,r1,48                               <== NOT EXECUTED
ffc15eac:	4e 80 00 20 	blr                                            <== NOT EXECUTED
        uint32_t   count;                                             
        uint32_t   i;                                                 
                                                                      
        if (file_cln > fat_fd->map.file_cln)                          
        {                                                             
            cur_cln = fat_fd->map.disk_cln;                           
ffc15eb0:	81 24 00 38 	lwz     r9,56(r4)                              
            count = file_cln - fat_fd->map.file_cln;                  
ffc15eb4:	7f de 28 50 	subf    r30,r30,r5                             
        uint32_t   count;                                             
        uint32_t   i;                                                 
                                                                      
        if (file_cln > fat_fd->map.file_cln)                          
        {                                                             
            cur_cln = fat_fd->map.disk_cln;                           
ffc15eb8:	91 21 00 08 	stw     r9,8(r1)                               
ffc15ebc:	4b ff ff 90 	b       ffc15e4c <fat_file_lseek+0x54>         
        fat_fd->map.disk_cln = cur_cln;                               
                                                                      
        *disk_cln = cur_cln;                                          
    }                                                                 
    return RC_OK;                                                     
}                                                                     
ffc15ec0:	80 01 00 34 	lwz     r0,52(r1)                              
        fat_fd->map.file_cln = file_cln;                              
        fat_fd->map.disk_cln = cur_cln;                               
                                                                      
        *disk_cln = cur_cln;                                          
    }                                                                 
    return RC_OK;                                                     
ffc15ec4:	39 40 00 00 	li      r10,0                                  
                return rc;                                            
        }                                                             
                                                                      
        /* update cache */                                            
        fat_fd->map.file_cln = file_cln;                              
        fat_fd->map.disk_cln = cur_cln;                               
ffc15ec8:	81 21 00 08 	lwz     r9,8(r1)                               
                                                                      
        *disk_cln = cur_cln;                                          
    }                                                                 
    return RC_OK;                                                     
ffc15ecc:	39 60 00 00 	li      r11,0                                  
}                                                                     
ffc15ed0:	7c 08 03 a6 	mtlr    r0                                     
            if ( rc != RC_OK )                                        
                return rc;                                            
        }                                                             
                                                                      
        /* update cache */                                            
        fat_fd->map.file_cln = file_cln;                              
ffc15ed4:	93 9b 00 34 	stw     r28,52(r27)                            
        fat_fd->map.disk_cln = cur_cln;                               
                                                                      
        *disk_cln = cur_cln;                                          
    }                                                                 
    return RC_OK;                                                     
}                                                                     
ffc15ed8:	7d 43 53 78 	mr      r3,r10                                 
                return rc;                                            
        }                                                             
                                                                      
        /* update cache */                                            
        fat_fd->map.file_cln = file_cln;                              
        fat_fd->map.disk_cln = cur_cln;                               
ffc15edc:	91 3b 00 38 	stw     r9,56(r27)                             
                                                                      
        *disk_cln = cur_cln;                                          
    }                                                                 
    return RC_OK;                                                     
}                                                                     
ffc15ee0:	7d 64 5b 78 	mr      r4,r11                                 
                                                                      
        /* update cache */                                            
        fat_fd->map.file_cln = file_cln;                              
        fat_fd->map.disk_cln = cur_cln;                               
                                                                      
        *disk_cln = cur_cln;                                          
ffc15ee4:	91 3a 00 00 	stw     r9,0(r26)                              
    }                                                                 
    return RC_OK;                                                     
}                                                                     
ffc15ee8:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc15eec:	83 41 00 18 	lwz     r26,24(r1)                             
ffc15ef0:	83 81 00 20 	lwz     r28,32(r1)                             
ffc15ef4:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc15ef8:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc15efc:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc15f00:	38 21 00 30 	addi    r1,r1,48                               
ffc15f04:	4e 80 00 20 	blr                                            
ffc15f08:	80 01 00 34 	lwz     r0,52(r1)                              
        fat_fd->map.file_cln = file_cln;                              
        fat_fd->map.disk_cln = cur_cln;                               
                                                                      
        *disk_cln = cur_cln;                                          
    }                                                                 
    return RC_OK;                                                     
ffc15f0c:	39 40 00 00 	li      r10,0                                  
    )                                                                 
{                                                                     
    int rc = RC_OK;                                                   
                                                                      
    if (file_cln == fat_fd->map.file_cln)                             
        *disk_cln = fat_fd->map.disk_cln;                             
ffc15f10:	81 24 00 38 	lwz     r9,56(r4)                              
        fat_fd->map.file_cln = file_cln;                              
        fat_fd->map.disk_cln = cur_cln;                               
                                                                      
        *disk_cln = cur_cln;                                          
    }                                                                 
    return RC_OK;                                                     
ffc15f14:	39 60 00 00 	li      r11,0                                  
}                                                                     
ffc15f18:	7c 08 03 a6 	mtlr    r0                                     
ffc15f1c:	83 41 00 18 	lwz     r26,24(r1)                             
ffc15f20:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc15f24:	7d 43 53 78 	mr      r3,r10                                 
ffc15f28:	83 81 00 20 	lwz     r28,32(r1)                             
ffc15f2c:	7d 64 5b 78 	mr      r4,r11                                 
ffc15f30:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc15f34:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc15f38:	83 e1 00 2c 	lwz     r31,44(r1)                             
    )                                                                 
{                                                                     
    int rc = RC_OK;                                                   
                                                                      
    if (file_cln == fat_fd->map.file_cln)                             
        *disk_cln = fat_fd->map.disk_cln;                             
ffc15f3c:	91 26 00 00 	stw     r9,0(r6)                               
        fat_fd->map.disk_cln = cur_cln;                               
                                                                      
        *disk_cln = cur_cln;                                          
    }                                                                 
    return RC_OK;                                                     
}                                                                     
ffc15f40:	38 21 00 30 	addi    r1,r1,48                               
ffc15f44:	4e 80 00 20 	blr                                            
                                                                      

ffc16da4 <fat_file_mark_removed>: void fat_file_mark_removed( fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd ) {
ffc16da4:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc16da8:	7c 08 02 a6 	mflr    r0                                     
ffc16dac:	90 01 00 1c 	stw     r0,28(r1)                              
ffc16db0:	81 24 00 20 	lwz     r9,32(r4)                              
ffc16db4:	93 c1 00 10 	stw     r30,16(r1)                             
ffc16db8:	7c 7e 1b 78 	mr      r30,r3                                 
fat_cluster_num_to_sector512_num(                                     
    const fat_fs_info_t *fs_info,                                     
    uint32_t             cln                                          
    )                                                                 
{                                                                     
    if (cln == 1)                                                     
ffc16dbc:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc16dc0:	93 e1 00 14 	stw     r31,20(r1)                             
ffc16dc4:	7c 9f 23 78 	mr      r31,r4                                 
ffc16dc8:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc16dcc:	41 9e 00 9c 	beq-    cr7,ffc16e68 <fat_file_mark_removed+0xc4><== NEVER TAKEN
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)) )
ffc16dd0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc16dd4:	41 9e 00 80 	beq-    cr7,ffc16e54 <fat_file_mark_removed+0xb0><== ALWAYS TAKEN
        return fs_info->vol.rdir_loc;                                 
                                                                      
    return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +        
ffc16dd8:	89 1e 00 05 	lbz     r8,5(r30)                              <== NOT EXECUTED
ffc16ddc:	3b a9 ff fe 	addi    r29,r9,-2                              <== NOT EXECUTED
ffc16de0:	81 5e 00 34 	lwz     r10,52(r30)                            <== NOT EXECUTED
ffc16de4:	7f bd 40 30 	slw     r29,r29,r8                             <== NOT EXECUTED
ffc16de8:	7f bd 52 14 	add     r29,r29,r10                            <== NOT EXECUTED
    )                                                                 
{                                                                     
    if (cln == 1)                                                     
        return 1;                                                     
                                                                      
    return (fat_cluster_num_to_sector_num(fs_info, cln) <<            
ffc16dec:	89 5e 00 03 	lbz     r10,3(r30)                             
ffc16df0:	7f bd 50 30 	slw     r29,r29,r10                            
              (pos->ofs >> FAT_SECTOR512_BITS)) << 4)              +  
ffc16df4:	81 5f 00 24 	lwz     r10,36(r31)                            
ffc16df8:	7f e3 fb 78 	mr      r3,r31                                 
ffc16dfc:	55 48 ba 7e 	rlwinm  r8,r10,23,9,31                         
static inline uint32_t                                                
fat_construct_key(                                                    
    const fat_fs_info_t                  *fs_info,                    
    fat_pos_t                            *pos)                        
{                                                                     
    return ( ((fat_cluster_num_to_sector512_num(fs_info, pos->cln) +  
ffc16e00:	7f bd 42 14 	add     r29,r29,r8                             
              (pos->ofs >> FAT_SECTOR512_BITS)) << 4)              +  
              ((pos->ofs >> 5) & (FAT_DIRENTRIES_PER_SEC512 - 1)) );  
ffc16e04:	55 4a df 3e 	rlwinm  r10,r10,27,28,31                       
fat_construct_key(                                                    
    const fat_fs_info_t                  *fs_info,                    
    fat_pos_t                            *pos)                        
{                                                                     
    return ( ((fat_cluster_num_to_sector512_num(fs_info, pos->cln) +  
              (pos->ofs >> FAT_SECTOR512_BITS)) << 4)              +  
ffc16e08:	57 bd 20 36 	rlwinm  r29,r29,4,0,27                         
static inline uint32_t                                                
fat_construct_key(                                                    
    const fat_fs_info_t                  *fs_info,                    
    fat_pos_t                            *pos)                        
{                                                                     
    return ( ((fat_cluster_num_to_sector512_num(fs_info, pos->cln) +  
ffc16e0c:	7f bd 52 14 	add     r29,r29,r10                            
ffc16e10:	48 00 42 1d 	bl      ffc1b02c <_Chain_Extract>              
 */                                                                   
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);
ffc16e14:	57 bd 07 fe 	clrlwi  r29,r29,31                             
ffc16e18:	80 7e 00 70 	lwz     r3,112(r30)                            
ffc16e1c:	1f bd 00 0c 	mulli   r29,r29,12                             
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
ffc16e20:	7f e4 fb 78 	mr      r4,r31                                 
ffc16e24:	7c 63 ea 14 	add     r3,r3,r29                              
ffc16e28:	4b ff 5b 41 	bl      ffc0c968 <_Chain_Append>               
                                                                      
    _hash_delete(fs_info->vhash, key, fat_fd->ino, fat_fd);           
                                                                      
    _hash_insert(fs_info->rhash, key, fat_fd->ino, fat_fd);           
                                                                      
    fat_fd->flags |= FAT_FILE_REMOVED;                                
ffc16e2c:	89 3f 00 30 	lbz     r9,48(r31)                             
ffc16e30:	61 29 00 01 	ori     r9,r9,1                                
ffc16e34:	99 3f 00 30 	stb     r9,48(r31)                             
}                                                                     
ffc16e38:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc16e3c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc16e40:	7c 08 03 a6 	mtlr    r0                                     
ffc16e44:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc16e48:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc16e4c:	38 21 00 18 	addi    r1,r1,24                               
ffc16e50:	4e 80 00 20 	blr                                            
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)) )
ffc16e54:	89 43 00 0e 	lbz     r10,14(r3)                             
ffc16e58:	71 48 00 03 	andi.   r8,r10,3                               
ffc16e5c:	41 a2 ff 7c 	beq-    ffc16dd8 <fat_file_mark_removed+0x34>  <== NEVER TAKEN
        return fs_info->vol.rdir_loc;                                 
ffc16e60:	83 a3 00 20 	lwz     r29,32(r3)                             
ffc16e64:	4b ff ff 88 	b       ffc16dec <fat_file_mark_removed+0x48>  
    const fat_fs_info_t *fs_info,                                     
    uint32_t             cln                                          
    )                                                                 
{                                                                     
    if (cln == 1)                                                     
        return 1;                                                     
ffc16e68:	3b a0 00 01 	li      r29,1                                  <== NOT EXECUTED
ffc16e6c:	4b ff ff 88 	b       ffc16df4 <fat_file_mark_removed+0x50>  <== NOT EXECUTED
                                                                      

ffc15f48 <fat_file_open>: fat_file_open( fat_fs_info_t *fs_info, fat_dir_pos_t *dir_pos, fat_file_fd_t **fat_fd ) {
ffc15f48:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc15f4c:	7c 08 02 a6 	mflr    r0                                     
ffc15f50:	90 01 00 2c 	stw     r0,44(r1)                              
static inline uint32_t                                                
fat_construct_key(                                                    
    const fat_fs_info_t                  *fs_info,                    
    fat_pos_t                            *pos)                        
{                                                                     
    return ( ((fat_cluster_num_to_sector512_num(fs_info, pos->cln) +  
ffc15f54:	81 24 00 00 	lwz     r9,0(r4)                               
ffc15f58:	93 81 00 18 	stw     r28,24(r1)                             
ffc15f5c:	7c bc 2b 78 	mr      r28,r5                                 
fat_cluster_num_to_sector512_num(                                     
    const fat_fs_info_t *fs_info,                                     
    uint32_t             cln                                          
    )                                                                 
{                                                                     
    if (cln == 1)                                                     
ffc15f60:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc15f64:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc15f68:	7c 9d 23 78 	mr      r29,r4                                 
ffc15f6c:	93 e1 00 24 	stw     r31,36(r1)                             
ffc15f70:	7c 7f 1b 78 	mr      r31,r3                                 
ffc15f74:	93 21 00 0c 	stw     r25,12(r1)                             
ffc15f78:	93 41 00 10 	stw     r26,16(r1)                             
ffc15f7c:	93 61 00 14 	stw     r27,20(r1)                             
ffc15f80:	93 c1 00 20 	stw     r30,32(r1)                             
ffc15f84:	41 9e 02 8c 	beq-    cr7,ffc16210 <fat_file_open+0x2c8>     
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)) )
ffc15f88:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc15f8c:	41 9e 01 a0 	beq-    cr7,ffc1612c <fat_file_open+0x1e4>     
        return fs_info->vol.rdir_loc;                                 
                                                                      
    return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +        
ffc15f90:	89 1f 00 05 	lbz     r8,5(r31)                              
ffc15f94:	3b c9 ff fe 	addi    r30,r9,-2                              
ffc15f98:	81 5f 00 34 	lwz     r10,52(r31)                            
ffc15f9c:	7f de 40 30 	slw     r30,r30,r8                             
ffc15fa0:	7f de 52 14 	add     r30,r30,r10                            
    )                                                                 
{                                                                     
    if (cln == 1)                                                     
        return 1;                                                     
                                                                      
    return (fat_cluster_num_to_sector_num(fs_info, cln) <<            
ffc15fa4:	89 5f 00 03 	lbz     r10,3(r31)                             
ffc15fa8:	7f de 50 30 	slw     r30,r30,r10                            
              (pos->ofs >> FAT_SECTOR512_BITS)) << 4)              +  
ffc15fac:	81 5d 00 04 	lwz     r10,4(r29)                             
    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);       
ffc15fb0:	81 3f 00 6c 	lwz     r9,108(r31)                            
ffc15fb4:	55 48 ba 7e 	rlwinm  r8,r10,23,9,31                         
static inline uint32_t                                                
fat_construct_key(                                                    
    const fat_fs_info_t                  *fs_info,                    
    fat_pos_t                            *pos)                        
{                                                                     
    return ( ((fat_cluster_num_to_sector512_num(fs_info, pos->cln) +  
ffc15fb8:	7f de 42 14 	add     r30,r30,r8                             
              (pos->ofs >> FAT_SECTOR512_BITS)) << 4)              +  
ffc15fbc:	57 de 20 36 	rlwinm  r30,r30,4,0,27                         
              ((pos->ofs >> 5) & (FAT_DIRENTRIES_PER_SEC512 - 1)) );  
ffc15fc0:	55 4a df 3e 	rlwinm  r10,r10,27,28,31                       
static inline uint32_t                                                
fat_construct_key(                                                    
    const fat_fs_info_t                  *fs_info,                    
    fat_pos_t                            *pos)                        
{                                                                     
    return ( ((fat_cluster_num_to_sector512_num(fs_info, pos->cln) +  
ffc15fc4:	7f de 52 14 	add     r30,r30,r10                            
    uint32_t                               key1,                      
    uint32_t                               key2,                      
    fat_file_fd_t                          **ret                      
    )                                                                 
{                                                                     
    uint32_t          mod = (key1) % FAT_HASH_MODULE;                 
ffc15fc8:	57 db 07 fe 	clrlwi  r27,r30,31                             
    rtems_chain_node *the_node = rtems_chain_first(hash + mod);       
ffc15fcc:	1f 7b 00 0c 	mulli   r27,r27,12                             
ffc15fd0:	7c c9 da 14 	add     r6,r9,r27                              
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc15fd4:	7d 29 d8 2e 	lwzx    r9,r9,r27                              
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 ));            
ffc15fd8:	38 c6 00 04 	addi    r6,r6,4                                
                                                                      
    for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; )          
ffc15fdc:	7f 89 30 00 	cmpw    cr7,r9,r6                              
ffc15fe0:	41 9e 00 60 	beq-    cr7,ffc16040 <fat_file_open+0xf8>      
ffc15fe4:	81 49 00 20 	lwz     r10,32(r9)                             
fat_cluster_num_to_sector512_num(                                     
    const fat_fs_info_t *fs_info,                                     
    uint32_t             cln                                          
    )                                                                 
{                                                                     
    if (cln == 1)                                                     
ffc15fe8:	2f 8a 00 01 	cmpwi   cr7,r10,1                              
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)) )
ffc15fec:	2f 0a 00 00 	cmpwi   cr6,r10,0                              
        return fs_info->vol.rdir_loc;                                 
                                                                      
    return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +        
ffc15ff0:	39 4a ff fe 	addi    r10,r10,-2                             
fat_cluster_num_to_sector512_num(                                     
    const fat_fs_info_t *fs_info,                                     
    uint32_t             cln                                          
    )                                                                 
{                                                                     
    if (cln == 1)                                                     
ffc15ff4:	41 9e 01 30 	beq-    cr7,ffc16124 <fat_file_open+0x1dc>     
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)) )
ffc15ff8:	40 9a 00 d8 	bne-    cr6,ffc160d0 <fat_file_open+0x188>     
ffc15ffc:	89 1f 00 0e 	lbz     r8,14(r31)                             
ffc16000:	71 07 00 03 	andi.   r7,r8,3                                
ffc16004:	41 82 00 cc 	beq-    ffc160d0 <fat_file_open+0x188>         <== NEVER TAKEN
        return fs_info->vol.rdir_loc;                                 
ffc16008:	81 5f 00 20 	lwz     r10,32(r31)                            
    )                                                                 
{                                                                     
    if (cln == 1)                                                     
        return 1;                                                     
                                                                      
    return (fat_cluster_num_to_sector_num(fs_info, cln) <<            
ffc1600c:	89 1f 00 03 	lbz     r8,3(r31)                              
ffc16010:	7d 4a 40 30 	slw     r10,r10,r8                             
              (pos->ofs >> FAT_SECTOR512_BITS)) << 4)              +  
ffc16014:	81 09 00 24 	lwz     r8,36(r9)                              
ffc16018:	55 07 ba 7e 	rlwinm  r7,r8,23,9,31                          
static inline uint32_t                                                
fat_construct_key(                                                    
    const fat_fs_info_t                  *fs_info,                    
    fat_pos_t                            *pos)                        
{                                                                     
    return ( ((fat_cluster_num_to_sector512_num(fs_info, pos->cln) +  
ffc1601c:	7d 4a 3a 14 	add     r10,r10,r7                             
              (pos->ofs >> FAT_SECTOR512_BITS)) << 4)              +  
ffc16020:	55 4a 20 36 	rlwinm  r10,r10,4,0,27                         
              ((pos->ofs >> 5) & (FAT_DIRENTRIES_PER_SEC512 - 1)) );  
ffc16024:	55 08 df 3e 	rlwinm  r8,r8,27,28,31                         
static inline uint32_t                                                
fat_construct_key(                                                    
    const fat_fs_info_t                  *fs_info,                    
    fat_pos_t                            *pos)                        
{                                                                     
    return ( ((fat_cluster_num_to_sector512_num(fs_info, pos->cln) +  
ffc16028:	7d 0a 42 14 	add     r8,r10,r8                              
    {                                                                 
        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)                                            
ffc1602c:	7f 9e 40 00 	cmpw    cr7,r30,r8                             
ffc16030:	41 9e 00 b4 	beq-    cr7,ffc160e4 <fat_file_open+0x19c>     
            {                                                         
                *ret = (void *)the_node;                              
                return 0;                                             
            }                                                         
        }                                                             
        the_node = the_node->next;                                    
ffc16034:	81 29 00 00 	lwz     r9,0(r9)                               
    )                                                                 
{                                                                     
    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) ; )          
ffc16038:	7f 86 48 00 	cmpw    cr7,r6,r9                              
ffc1603c:	40 9e ff a8 	bne+    cr7,ffc15fe4 <fat_file_open+0x9c>      
    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);       
ffc16040:	81 3f 00 70 	lwz     r9,112(r31)                            
        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) )              
ffc16044:	2f 1e 00 00 	cmpwi   cr6,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);       
ffc16048:	7c c9 da 14 	add     r6,r9,r27                              
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc1604c:	7d 29 d8 2e 	lwzx    r9,r9,r27                              
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 ));            
ffc16050:	38 c6 00 04 	addi    r6,r6,4                                
                                                                      
    for ( ; !rtems_chain_is_tail((hash) + mod, the_node) ; )          
ffc16054:	7f 89 30 00 	cmpw    cr7,r9,r6                              
ffc16058:	40 be 00 4c 	bne+    cr7,ffc160a4 <fat_file_open+0x15c>     <== NEVER TAKEN
ffc1605c:	48 00 01 ac 	b       ffc16208 <fat_file_open+0x2c0>         
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)) )
ffc16060:	89 1f 00 0e 	lbz     r8,14(r31)                             <== NOT EXECUTED
ffc16064:	71 07 00 03 	andi.   r7,r8,3                                <== NOT EXECUTED
ffc16068:	41 82 00 50 	beq-    ffc160b8 <fat_file_open+0x170>         <== NOT EXECUTED
        return fs_info->vol.rdir_loc;                                 
ffc1606c:	81 5f 00 20 	lwz     r10,32(r31)                            <== NOT EXECUTED
    )                                                                 
{                                                                     
    if (cln == 1)                                                     
        return 1;                                                     
                                                                      
    return (fat_cluster_num_to_sector_num(fs_info, cln) <<            
ffc16070:	89 1f 00 03 	lbz     r8,3(r31)                              <== NOT EXECUTED
ffc16074:	7d 4a 40 30 	slw     r10,r10,r8                             <== NOT EXECUTED
              (pos->ofs >> FAT_SECTOR512_BITS)) << 4)              +  
ffc16078:	81 09 00 24 	lwz     r8,36(r9)                              <== NOT EXECUTED
ffc1607c:	55 07 ba 7e 	rlwinm  r7,r8,23,9,31                          <== NOT EXECUTED
static inline uint32_t                                                
fat_construct_key(                                                    
    const fat_fs_info_t                  *fs_info,                    
    fat_pos_t                            *pos)                        
{                                                                     
    return ( ((fat_cluster_num_to_sector512_num(fs_info, pos->cln) +  
ffc16080:	7d 4a 3a 14 	add     r10,r10,r7                             <== NOT EXECUTED
              (pos->ofs >> FAT_SECTOR512_BITS)) << 4)              +  
ffc16084:	55 4a 20 36 	rlwinm  r10,r10,4,0,27                         <== NOT EXECUTED
              ((pos->ofs >> 5) & (FAT_DIRENTRIES_PER_SEC512 - 1)) );  
ffc16088:	55 08 df 3e 	rlwinm  r8,r8,27,28,31                         <== NOT EXECUTED
static inline uint32_t                                                
fat_construct_key(                                                    
    const fat_fs_info_t                  *fs_info,                    
    fat_pos_t                            *pos)                        
{                                                                     
    return ( ((fat_cluster_num_to_sector512_num(fs_info, pos->cln) +  
ffc1608c:	7d 0a 42 14 	add     r8,r10,r8                              <== NOT EXECUTED
    {                                                                 
        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)                                            
ffc16090:	7f 9e 40 00 	cmpw    cr7,r30,r8                             <== NOT EXECUTED
ffc16094:	41 9e 00 ac 	beq-    cr7,ffc16140 <fat_file_open+0x1f8>     <== NOT EXECUTED
            {                                                         
                *ret = (void *)the_node;                              
                return 0;                                             
            }                                                         
        }                                                             
        the_node = the_node->next;                                    
ffc16098:	81 29 00 00 	lwz     r9,0(r9)                               <== 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) ; )          
ffc1609c:	7f 89 30 00 	cmpw    cr7,r9,r6                              <== NOT EXECUTED
ffc160a0:	41 9e 01 68 	beq-    cr7,ffc16208 <fat_file_open+0x2c0>     <== NOT EXECUTED
ffc160a4:	81 49 00 20 	lwz     r10,32(r9)                             <== NOT EXECUTED
fat_cluster_num_to_sector512_num(                                     
    const fat_fs_info_t *fs_info,                                     
    uint32_t             cln                                          
    )                                                                 
{                                                                     
    if (cln == 1)                                                     
ffc160a8:	2f 8a 00 01 	cmpwi   cr7,r10,1                              <== NOT EXECUTED
ffc160ac:	41 9e 01 54 	beq-    cr7,ffc16200 <fat_file_open+0x2b8>     <== 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)) )
ffc160b0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
ffc160b4:	41 be ff ac 	beq-    cr7,ffc16060 <fat_file_open+0x118>     <== NOT EXECUTED
        return fs_info->vol.rdir_loc;                                 
                                                                      
    return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +        
ffc160b8:	88 ff 00 05 	lbz     r7,5(r31)                              <== NOT EXECUTED
ffc160bc:	39 4a ff fe 	addi    r10,r10,-2                             <== NOT EXECUTED
ffc160c0:	81 1f 00 34 	lwz     r8,52(r31)                             <== NOT EXECUTED
ffc160c4:	7d 4a 38 30 	slw     r10,r10,r7                             <== NOT EXECUTED
ffc160c8:	7d 4a 42 14 	add     r10,r10,r8                             <== NOT EXECUTED
ffc160cc:	4b ff ff a4 	b       ffc16070 <fat_file_open+0x128>         <== NOT EXECUTED
ffc160d0:	88 ff 00 05 	lbz     r7,5(r31)                              
ffc160d4:	81 1f 00 34 	lwz     r8,52(r31)                             
ffc160d8:	7d 4a 38 30 	slw     r10,r10,r7                             
ffc160dc:	7d 4a 42 14 	add     r10,r10,r8                             
ffc160e0:	4b ff ff 2c 	b       ffc1600c <fat_file_open+0xc4>          
    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++;                                         
ffc160e4:	81 49 00 08 	lwz     r10,8(r9)                              
ffc160e8:	38 60 00 00 	li      r3,0                                   
    /* 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;                                          
ffc160ec:	91 3c 00 00 	stw     r9,0(r28)                              
        lfat_fd->links_num++;                                         
ffc160f0:	39 4a 00 01 	addi    r10,r10,1                              
ffc160f4:	91 49 00 08 	stw     r10,8(r9)                              
     * other fields of fat-file descriptor will be initialized on upper
     * level                                                          
     */                                                               
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc160f8:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc160fc:	83 21 00 0c 	lwz     r25,12(r1)                             
ffc16100:	7c 08 03 a6 	mtlr    r0                                     
ffc16104:	83 41 00 10 	lwz     r26,16(r1)                             
ffc16108:	83 61 00 14 	lwz     r27,20(r1)                             
ffc1610c:	83 81 00 18 	lwz     r28,24(r1)                             
ffc16110:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc16114:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc16118:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc1611c:	38 21 00 28 	addi    r1,r1,40                               
ffc16120:	4e 80 00 20 	blr                                            
    const fat_fs_info_t *fs_info,                                     
    uint32_t             cln                                          
    )                                                                 
{                                                                     
    if (cln == 1)                                                     
        return 1;                                                     
ffc16124:	39 40 00 01 	li      r10,1                                  
ffc16128:	4b ff fe ec 	b       ffc16014 <fat_file_open+0xcc>          
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)) )
ffc1612c:	89 43 00 0e 	lbz     r10,14(r3)                             
ffc16130:	71 47 00 03 	andi.   r7,r10,3                               
ffc16134:	41 a2 fe 5c 	beq-    ffc15f90 <fat_file_open+0x48>          <== NEVER TAKEN
        return fs_info->vol.rdir_loc;                                 
ffc16138:	83 c3 00 20 	lwz     r30,32(r3)                             
ffc1613c:	4b ff fe 68 	b       ffc15fa4 <fat_file_open+0x5c>          
        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) )              
ffc16140:	41 9a 00 10 	beq-    cr6,ffc16150 <fat_file_open+0x208>     <== NOT EXECUTED
ffc16144:	81 49 00 0c 	lwz     r10,12(r9)                             <== NOT EXECUTED
ffc16148:	7f 9e 50 00 	cmpw    cr7,r30,r10                            <== NOT EXECUTED
ffc1614c:	40 9e ff 4c 	bne+    cr7,ffc16098 <fat_file_open+0x150>     <== NOT EXECUTED
            {                                                         
                *ret = (void *)the_node;                              
                return 0;                                             
ffc16150:	3b 20 00 00 	li      r25,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));
ffc16154:	38 60 00 44 	li      r3,68                                  
ffc16158:	4b ff 0c 45 	bl      ffc06d9c <malloc>                      
    if ( lfat_fd == NULL )                                            
ffc1615c:	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));
ffc16160:	90 7c 00 00 	stw     r3,0(r28)                              
ffc16164:	7c 7a 1b 78 	mr      r26,r3                                 
    if ( lfat_fd == NULL )                                            
ffc16168:	41 9e 00 cc 	beq-    cr7,ffc16234 <fat_file_open+0x2ec>     <== NEVER TAKEN
        rtems_set_errno_and_return_minus_one( ENOMEM );               
                                                                      
    memset(lfat_fd, 0, sizeof(fat_file_fd_t));                        
ffc1616c:	38 a0 00 44 	li      r5,68                                  
ffc16170:	38 80 00 00 	li      r4,0                                   
ffc16174:	48 00 c2 fd 	bl      ffc22470 <memset>                      
    lfat_fd->flags &= ~FAT_FILE_REMOVED;                              
    lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;                      
                                                                      
    lfat_fd->dir_pos = *dir_pos;                                      
                                                                      
    if ( rc != RC_OK )                                                
ffc16178:	2f 99 00 00 	cmpwi   cr7,r25,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;                              
ffc1617c:	89 5a 00 30 	lbz     r10,48(r26)                            
    if ( lfat_fd == NULL )                                            
        rtems_set_errno_and_return_minus_one( ENOMEM );               
                                                                      
    memset(lfat_fd, 0, sizeof(fat_file_fd_t));                        
                                                                      
    lfat_fd->links_num = 1;                                           
ffc16180:	38 a0 00 01 	li      r5,1                                   
    lfat_fd->flags &= ~FAT_FILE_REMOVED;                              
    lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;                      
                                                                      
    lfat_fd->dir_pos = *dir_pos;                                      
ffc16184:	80 dd 00 00 	lwz     r6,0(r29)                              
ffc16188:	80 fd 00 04 	lwz     r7,4(r29)                              
        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;                              
ffc1618c:	55 4a 00 3c 	rlwinm  r10,r10,0,0,30                         
    lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;                      
                                                                      
    lfat_fd->dir_pos = *dir_pos;                                      
ffc16190:	81 1d 00 08 	lwz     r8,8(r29)                              
ffc16194:	81 3d 00 0c 	lwz     r9,12(r29)                             
        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;                              
ffc16198:	99 5a 00 30 	stb     r10,48(r26)                            
    lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;                      
ffc1619c:	39 40 ff ff 	li      r10,-1                                 
    if ( lfat_fd == NULL )                                            
        rtems_set_errno_and_return_minus_one( ENOMEM );               
                                                                      
    memset(lfat_fd, 0, sizeof(fat_file_fd_t));                        
                                                                      
    lfat_fd->links_num = 1;                                           
ffc161a0:	90 ba 00 08 	stw     r5,8(r26)                              
    lfat_fd->flags &= ~FAT_FILE_REMOVED;                              
    lfat_fd->map.last_cln = FAT_UNDEFINED_VALUE;                      
ffc161a4:	91 5a 00 3c 	stw     r10,60(r26)                            
                                                                      
    lfat_fd->dir_pos = *dir_pos;                                      
ffc161a8:	90 da 00 20 	stw     r6,32(r26)                             
ffc161ac:	90 fa 00 24 	stw     r7,36(r26)                             
ffc161b0:	91 1a 00 28 	stw     r8,40(r26)                             
ffc161b4:	91 3a 00 2c 	stw     r9,44(r26)                             
                                                                      
    if ( rc != RC_OK )                                                
ffc161b8:	41 9e 00 60 	beq-    cr7,ffc16218 <fat_file_open+0x2d0>     <== NEVER TAKEN
        lfat_fd->ino = key;                                           
ffc161bc:	93 da 00 0c 	stw     r30,12(r26)                            
 */                                                                   
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);
ffc161c0:	80 7f 00 6c 	lwz     r3,108(r31)                            
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
ffc161c4:	7f 44 d3 78 	mr      r4,r26                                 
ffc161c8:	7c 63 da 14 	add     r3,r3,r27                              
ffc161cc:	4b ff 67 9d 	bl      ffc0c968 <_Chain_Append>               
     * other fields of fat-file descriptor will be initialized on upper
     * level                                                          
     */                                                               
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc161d0:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc161d4:	83 21 00 0c 	lwz     r25,12(r1)                             
    /*                                                                
     * other fields of fat-file descriptor will be initialized on upper
     * level                                                          
     */                                                               
                                                                      
    return RC_OK;                                                     
ffc161d8:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc161dc:	7c 08 03 a6 	mtlr    r0                                     
ffc161e0:	83 41 00 10 	lwz     r26,16(r1)                             
ffc161e4:	83 61 00 14 	lwz     r27,20(r1)                             
ffc161e8:	83 81 00 18 	lwz     r28,24(r1)                             
ffc161ec:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc161f0:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc161f4:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc161f8:	38 21 00 28 	addi    r1,r1,40                               
ffc161fc:	4e 80 00 20 	blr                                            
    const fat_fs_info_t *fs_info,                                     
    uint32_t             cln                                          
    )                                                                 
{                                                                     
    if (cln == 1)                                                     
        return 1;                                                     
ffc16200:	39 40 00 01 	li      r10,1                                  <== NOT EXECUTED
ffc16204:	4b ff fe 74 	b       ffc16078 <fat_file_open+0x130>         <== NOT EXECUTED
                return 0;                                             
            }                                                         
        }                                                             
        the_node = the_node->next;                                    
    }                                                                 
    return -1;                                                        
ffc16208:	3b 20 ff ff 	li      r25,-1                                 
ffc1620c:	4b ff ff 48 	b       ffc16154 <fat_file_open+0x20c>         
ffc16210:	3b c0 00 01 	li      r30,1                                  
ffc16214:	4b ff fd 98 	b       ffc15fac <fat_file_open+0x64>          
                                                                      
    if ( rc != RC_OK )                                                
        lfat_fd->ino = key;                                           
    else                                                              
    {                                                                 
        lfat_fd->ino = fat_get_unique_ino(fs_info);                   
ffc16218:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1621c:	48 00 21 81 	bl      ffc1839c <fat_get_unique_ino>          <== NOT EXECUTED
                                                                      
        if ( lfat_fd->ino == 0 )                                      
ffc16220:	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);                   
ffc16224:	90 7a 00 0c 	stw     r3,12(r26)                             <== NOT EXECUTED
                                                                      
        if ( lfat_fd->ino == 0 )                                      
ffc16228:	40 9e ff 98 	bne+    cr7,ffc161c0 <fat_file_open+0x278>     <== NOT EXECUTED
        {                                                             
            free((*fat_fd));                                          
ffc1622c:	80 7c 00 00 	lwz     r3,0(r28)                              <== NOT EXECUTED
ffc16230:	4b ff 04 e1 	bl      ffc06710 <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 );           
ffc16234:	48 00 b4 69 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc16238:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc1623c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc16240:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc16244:	4b ff fe b4 	b       ffc160f8 <fat_file_open+0x1b0>         <== NOT EXECUTED
                                                                      

ffc16260 <fat_file_read>: fat_file_fd_t *fat_fd, uint32_t start, uint32_t count, uint8_t *buf ) {
ffc16260:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc16264:	7c 08 02 a6 	mflr    r0                                     
    int            rc = RC_OK;                                        
    ssize_t        ret = 0;                                           
    uint32_t       cmpltd = 0;                                        
    uint32_t       cur_cln = 0;                                       
ffc16268:	39 20 00 00 	li      r9,0                                   
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              start,                      
    uint32_t                              count,                      
    uint8_t                              *buf                         
)                                                                     
{                                                                     
ffc1626c:	93 c1 00 30 	stw     r30,48(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)                                                   
ffc16270:	7c de 33 79 	mr.     r30,r6                                 
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              start,                      
    uint32_t                              count,                      
    uint8_t                              *buf                         
)                                                                     
{                                                                     
ffc16274:	90 01 00 3c 	stw     r0,60(r1)                              
ffc16278:	93 01 00 18 	stw     r24,24(r1)                             
ffc1627c:	93 21 00 1c 	stw     r25,28(r1)                             
ffc16280:	93 41 00 20 	stw     r26,32(r1)                             
ffc16284:	93 61 00 24 	stw     r27,36(r1)                             
ffc16288:	93 81 00 28 	stw     r28,40(r1)                             
ffc1628c:	93 a1 00 2c 	stw     r29,44(r1)                             
ffc16290:	93 e1 00 34 	stw     r31,52(r1)                             
    int            rc = RC_OK;                                        
    ssize_t        ret = 0;                                           
    uint32_t       cmpltd = 0;                                        
    uint32_t       cur_cln = 0;                                       
ffc16294:	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)                                                   
ffc16298:	41 82 01 6c 	beq-    ffc16404 <fat_file_read+0x1a4>         <== NEVER TAKEN
                                                                      
    /*                                                                
     * >= because start is offset and computed from 0 and file_size   
     * computed from 1                                                
     */                                                               
    if ( start >= fat_fd->fat_file_size )                             
ffc1629c:	81 24 00 18 	lwz     r9,24(r4)                              
ffc162a0:	7c 7f 1b 78 	mr      r31,r3                                 
ffc162a4:	7c 9b 23 78 	mr      r27,r4                                 
ffc162a8:	7f 89 28 40 	cmplw   cr7,r9,r5                              
ffc162ac:	7c bd 2b 78 	mr      r29,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;                                                
ffc162b0:	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 )                             
ffc162b4:	40 9d 01 20 	ble-    cr7,ffc163d4 <fat_file_read+0x174>     
        return FAT_EOF;                                               
                                                                      
    if ((count > fat_fd->fat_file_size) ||                            
ffc162b8:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc162bc:	7c fa 3b 78 	mr      r26,r7                                 
ffc162c0:	40 9d 01 78 	ble-    cr7,ffc16438 <fat_file_read+0x1d8>     <== ALWAYS TAKEN
        (start > fat_fd->fat_file_size - count))                      
        count = fat_fd->fat_file_size - start;                        
ffc162c4:	7f dd 48 50 	subf    r30,r29,r9                             
                                                                      
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
ffc162c8:	81 3b 00 20 	lwz     r9,32(r27)                             
ffc162cc:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc162d0:	41 9e 01 78 	beq-    cr7,ffc16448 <fat_file_read+0x1e8>     
            return -1;                                                
                                                                      
        return ret;                                                   
    }                                                                 
                                                                      
    cl_start = start >> fs_info->vol.bpc_log2;                        
ffc162d4:	8b 3f 00 08 	lbz     r25,8(r31)                             
    save_ofs = ofs = start & (fs_info->vol.bpc - 1);                  
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln);         
ffc162d8:	7f e3 fb 78 	mr      r3,r31                                 
ffc162dc:	7f 64 db 78 	mr      r4,r27                                 
                                                                      
        return ret;                                                   
    }                                                                 
                                                                      
    cl_start = start >> fs_info->vol.bpc_log2;                        
    save_ofs = ofs = start & (fs_info->vol.bpc - 1);                  
ffc162e0:	a3 1f 00 06 	lhz     r24,6(r31)                             
            return -1;                                                
                                                                      
        return ret;                                                   
    }                                                                 
                                                                      
    cl_start = start >> fs_info->vol.bpc_log2;                        
ffc162e4:	7f b9 cc 30 	srw     r25,r29,r25                            
    save_ofs = ofs = start & (fs_info->vol.bpc - 1);                  
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln);         
ffc162e8:	7f 25 cb 78 	mr      r5,r25                                 
ffc162ec:	38 c1 00 08 	addi    r6,r1,8                                
ffc162f0:	4b ff fb 09 	bl      ffc15df8 <fat_file_lseek>              
    if (rc != RC_OK)                                                  
ffc162f4:	7c 83 23 79 	mr.     r3,r4                                  
ffc162f8:	40 82 00 dc 	bne-    ffc163d4 <fat_file_read+0x174>         <== NEVER TAKEN
        return rc;                                                    
                                                                      
    while (count > 0)                                                 
ffc162fc:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
                                                                      
        return ret;                                                   
    }                                                                 
                                                                      
    cl_start = start >> fs_info->vol.bpc_log2;                        
    save_ofs = ofs = start & (fs_info->vol.bpc - 1);                  
ffc16300:	3b 18 ff ff 	addi    r24,r24,-1                             
ffc16304:	7f b8 c0 38 	and     r24,r29,r24                            
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln);         
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    while (count > 0)                                                 
ffc16308:	41 9e 01 cc 	beq-    cr7,ffc164d4 <fat_file_read+0x274>     <== NEVER TAKEN
ffc1630c:	89 1f 00 02 	lbz     r8,2(r31)                              
ffc16310:	7f 05 c3 78 	mr      r5,r24                                 
ffc16314:	a0 ff 00 00 	lhz     r7,0(r31)                              
ffc16318:	3b 80 00 00 	li      r28,0                                  
    {                                                                 
        c = MIN(count, (fs_info->vol.bpc - ofs));                     
ffc1631c:	a3 bf 00 06 	lhz     r29,6(r31)                             
                                                                      
        sec = fat_cluster_num_to_sector_num(fs_info, cur_cln);        
ffc16320:	81 41 00 08 	lwz     r10,8(r1)                              
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    while (count > 0)                                                 
    {                                                                 
        c = MIN(count, (fs_info->vol.bpc - ofs));                     
ffc16324:	7f a5 e8 50 	subf    r29,r5,r29                             
ffc16328:	7f 1d f0 40 	cmplw   cr6,r29,r30                            
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)) )
ffc1632c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
        return fs_info->vol.rdir_loc;                                 
                                                                      
    return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +        
ffc16330:	39 4a ff fe 	addi    r10,r10,-2                             
ffc16334:	40 99 00 08 	ble-    cr6,ffc1633c <fat_file_read+0xdc>      
ffc16338:	7f dd f3 78 	mr      r29,r30                                
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)) )
ffc1633c:	40 9e 01 6c 	bne-    cr7,ffc164a8 <fat_file_read+0x248>     <== ALWAYS TAKEN
ffc16340:	88 df 00 0e 	lbz     r6,14(r31)                             <== NOT EXECUTED
ffc16344:	70 c9 00 03 	andi.   r9,r6,3                                <== NOT EXECUTED
ffc16348:	41 82 01 60 	beq-    ffc164a8 <fat_file_read+0x248>         <== NOT EXECUTED
        return fs_info->vol.rdir_loc;                                 
ffc1634c:	80 9f 00 20 	lwz     r4,32(r31)                             <== NOT EXECUTED
                                                                      
        sec = fat_cluster_num_to_sector_num(fs_info, cur_cln);        
        sec += (ofs >> fs_info->vol.sec_log2);                        
ffc16350:	7c a8 44 30 	srw     r8,r5,r8                               
        byte = ofs & (fs_info->vol.bps - 1);                          
ffc16354:	38 e7 ff ff 	addi    r7,r7,-1                               
                                                                      
        ret = _fat_block_read(fs_info, sec, byte, c, buf + cmpltd);   
ffc16358:	7c a5 38 38 	and     r5,r5,r7                               
ffc1635c:	7c 84 42 14 	add     r4,r4,r8                               
ffc16360:	7c fa e2 14 	add     r7,r26,r28                             
ffc16364:	7f a6 eb 78 	mr      r6,r29                                 
ffc16368:	7f e3 fb 78 	mr      r3,r31                                 
ffc1636c:	48 00 0e e5 	bl      ffc17250 <_fat_block_read>             
        if ( ret < 0 )                                                
            return -1;                                                
                                                                      
        count -= c;                                                   
ffc16370:	7f dd f0 50 	subf    r30,r29,r30                            
        sec = fat_cluster_num_to_sector_num(fs_info, cur_cln);        
        sec += (ofs >> fs_info->vol.sec_log2);                        
        byte = ofs & (fs_info->vol.bps - 1);                          
                                                                      
        ret = _fat_block_read(fs_info, sec, byte, c, buf + cmpltd);   
        if ( ret < 0 )                                                
ffc16374:	2f 83 00 00 	cmpwi   cr7,r3,0                               
            return -1;                                                
                                                                      
        count -= c;                                                   
        cmpltd += c;                                                  
        save_cln = cur_cln;                                           
        rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);         
ffc16378:	38 a1 00 08 	addi    r5,r1,8                                
ffc1637c:	7f e3 fb 78 	mr      r3,r31                                 
        ret = _fat_block_read(fs_info, sec, byte, c, buf + cmpltd);   
        if ( ret < 0 )                                                
            return -1;                                                
                                                                      
        count -= c;                                                   
        cmpltd += c;                                                  
ffc16380:	7f 9c ea 14 	add     r28,r28,r29                            
        sec = fat_cluster_num_to_sector_num(fs_info, cur_cln);        
        sec += (ofs >> fs_info->vol.sec_log2);                        
        byte = ofs & (fs_info->vol.bps - 1);                          
                                                                      
        ret = _fat_block_read(fs_info, sec, byte, c, buf + cmpltd);   
        if ( ret < 0 )                                                
ffc16384:	41 9c 01 1c 	blt-    cr7,ffc164a0 <fat_file_read+0x240>     <== NEVER TAKEN
            return -1;                                                
                                                                      
        count -= c;                                                   
        cmpltd += c;                                                  
        save_cln = cur_cln;                                           
ffc16388:	83 a1 00 08 	lwz     r29,8(r1)                              
        rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);         
ffc1638c:	7f a4 eb 78 	mr      r4,r29                                 
ffc16390:	48 00 8b 75 	bl      ffc1ef04 <fat_get_fat_cluster>         
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln);         
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    while (count > 0)                                                 
ffc16394:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
                                                                      
        count -= c;                                                   
        cmpltd += c;                                                  
        save_cln = cur_cln;                                           
        rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);         
        if ( rc != RC_OK )                                            
ffc16398:	2c 03 00 00 	cmpwi   r3,0                                   
            return rc;                                                
                                                                      
        ofs = 0;                                                      
ffc1639c:	38 a0 00 00 	li      r5,0                                   
                                                                      
        count -= c;                                                   
        cmpltd += c;                                                  
        save_cln = cur_cln;                                           
        rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);         
        if ( rc != RC_OK )                                            
ffc163a0:	40 82 00 34 	bne-    ffc163d4 <fat_file_read+0x174>         <== NEVER TAKEN
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln);         
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    while (count > 0)                                                 
ffc163a4:	41 9e 00 10 	beq-    cr7,ffc163b4 <fat_file_read+0x154>     
ffc163a8:	89 1f 00 02 	lbz     r8,2(r31)                              
ffc163ac:	a0 ff 00 00 	lhz     r7,0(r31)                              
ffc163b0:	4b ff ff 6c 	b       ffc1631c <fat_file_read+0xbc>          
ffc163b4:	7f 83 e3 78 	mr      r3,r28                                 
    }                                                                 
                                                                      
    /* 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);
ffc163b8:	89 3f 00 08 	lbz     r9,8(r31)                              
ffc163bc:	3b 18 ff ff 	addi    r24,r24,-1                             
ffc163c0:	7f 98 e2 14 	add     r28,r24,r28                            
    fat_fd->map.disk_cln = save_cln;                                  
ffc163c4:	93 bb 00 38 	stw     r29,56(r27)                            
    }                                                                 
                                                                      
    /* 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);
ffc163c8:	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 +                                 
ffc163cc:	7f 3c ca 14 	add     r25,r28,r25                            
ffc163d0:	93 3b 00 34 	stw     r25,52(r27)                            
                           ((save_ofs + cmpltd - 1) >> fs_info->vol.bpc_log2);
    fat_fd->map.disk_cln = save_cln;                                  
                                                                      
    return cmpltd;                                                    
}                                                                     
ffc163d4:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc163d8:	83 01 00 18 	lwz     r24,24(r1)                             
ffc163dc:	7c 08 03 a6 	mtlr    r0                                     
ffc163e0:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc163e4:	83 41 00 20 	lwz     r26,32(r1)                             
ffc163e8:	83 61 00 24 	lwz     r27,36(r1)                             
ffc163ec:	83 81 00 28 	lwz     r28,40(r1)                             
ffc163f0:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc163f4:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc163f8:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc163fc:	38 21 00 38 	addi    r1,r1,56                               
ffc16400:	4e 80 00 20 	blr                                            
ffc16404:	80 01 00 3c 	lwz     r0,60(r1)                              <== NOT EXECUTED
    uint32_t       byte = 0;                                          
    uint32_t       c = 0;                                             
                                                                      
    /* it couldn't be removed - otherwise cache update will be broken */
    if (count == 0)                                                   
        return cmpltd;                                                
ffc16408:	38 60 00 00 	li      r3,0                                   <== 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;                                                    
}                                                                     
ffc1640c:	83 01 00 18 	lwz     r24,24(r1)                             <== NOT EXECUTED
ffc16410:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc16414:	83 21 00 1c 	lwz     r25,28(r1)                             <== NOT EXECUTED
ffc16418:	83 41 00 20 	lwz     r26,32(r1)                             <== NOT EXECUTED
ffc1641c:	83 61 00 24 	lwz     r27,36(r1)                             <== NOT EXECUTED
ffc16420:	83 81 00 28 	lwz     r28,40(r1)                             <== NOT EXECUTED
ffc16424:	83 a1 00 2c 	lwz     r29,44(r1)                             <== NOT EXECUTED
ffc16428:	83 c1 00 30 	lwz     r30,48(r1)                             <== NOT EXECUTED
ffc1642c:	83 e1 00 34 	lwz     r31,52(r1)                             <== NOT EXECUTED
ffc16430:	38 21 00 38 	addi    r1,r1,56                               <== NOT EXECUTED
ffc16434:	4e 80 00 20 	blr                                            <== NOT EXECUTED
     */                                                               
    if ( start >= fat_fd->fat_file_size )                             
        return FAT_EOF;                                               
                                                                      
    if ((count > fat_fd->fat_file_size) ||                            
        (start > fat_fd->fat_file_size - count))                      
ffc16438:	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) ||                            
ffc1643c:	7f 85 50 40 	cmplw   cr7,r5,r10                             
ffc16440:	40 bd fe 88 	ble-    cr7,ffc162c8 <fat_file_read+0x68>      
ffc16444:	4b ff fe 80 	b       ffc162c4 <fat_file_read+0x64>          
        (start > fat_fd->fat_file_size - count))                      
        count = fat_fd->fat_file_size - start;                        
                                                                      
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
ffc16448:	81 3b 00 24 	lwz     r9,36(r27)                             
ffc1644c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc16450:	40 be fe 84 	bne-    cr7,ffc162d4 <fat_file_read+0x74>      <== NEVER TAKEN
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
ffc16454:	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)) &&                               
ffc16458:	71 2a 00 03 	andi.   r10,r9,3                               
ffc1645c:	41 a2 fe 78 	beq-    ffc162d4 <fat_file_read+0x74>          
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
    {                                                                 
        sec = fat_cluster_num_to_sector_num(fs_info, fat_fd->cln);    
ffc16460:	81 3b 00 1c 	lwz     r9,28(r27)                             
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)) )
ffc16464:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc16468:	40 9e 00 54 	bne-    cr7,ffc164bc <fat_file_read+0x25c>     <== NEVER TAKEN
        return fs_info->vol.rdir_loc;                                 
ffc1646c:	80 9f 00 20 	lwz     r4,32(r31)                             
        sec += (start >> fs_info->vol.sec_log2);                      
ffc16470:	89 3f 00 02 	lbz     r9,2(r31)                              
        byte = start & (fs_info->vol.bps - 1);                        
                                                                      
        ret = _fat_block_read(fs_info, sec, byte, count, buf);        
ffc16474:	7f e3 fb 78 	mr      r3,r31                                 
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
    {                                                                 
        sec = fat_cluster_num_to_sector_num(fs_info, fat_fd->cln);    
        sec += (start >> fs_info->vol.sec_log2);                      
        byte = start & (fs_info->vol.bps - 1);                        
ffc16478:	a0 bf 00 00 	lhz     r5,0(r31)                              
                                                                      
        ret = _fat_block_read(fs_info, sec, byte, count, buf);        
ffc1647c:	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);                      
ffc16480:	7f a9 4c 30 	srw     r9,r29,r9                              
        byte = start & (fs_info->vol.bps - 1);                        
ffc16484:	38 a5 ff ff 	addi    r5,r5,-1                               
                                                                      
        ret = _fat_block_read(fs_info, sec, byte, count, buf);        
ffc16488:	7c 84 4a 14 	add     r4,r4,r9                               
ffc1648c:	7f a5 28 38 	and     r5,r29,r5                              
ffc16490:	7f 47 d3 78 	mr      r7,r26                                 
ffc16494:	48 00 0d bd 	bl      ffc17250 <_fat_block_read>             
        if ( ret < 0 )                                                
ffc16498:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1649c:	40 80 ff 38 	bge+    ffc163d4 <fat_file_read+0x174>         <== ALWAYS TAKEN
        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;                                                
ffc164a0:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc164a4:	4b ff ff 30 	b       ffc163d4 <fat_file_read+0x174>         <== NOT EXECUTED
                                                                      
    return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +        
ffc164a8:	88 9f 00 05 	lbz     r4,5(r31)                              
ffc164ac:	80 df 00 34 	lwz     r6,52(r31)                             
ffc164b0:	7d 4a 20 30 	slw     r10,r10,r4                             
ffc164b4:	7c 8a 32 14 	add     r4,r10,r6                              
ffc164b8:	4b ff fe 98 	b       ffc16350 <fat_file_read+0xf0>          
ffc164bc:	89 1f 00 05 	lbz     r8,5(r31)                              <== NOT EXECUTED
ffc164c0:	38 89 ff fe 	addi    r4,r9,-2                               <== NOT EXECUTED
ffc164c4:	81 5f 00 34 	lwz     r10,52(r31)                            <== NOT EXECUTED
ffc164c8:	7c 84 40 30 	slw     r4,r4,r8                               <== NOT EXECUTED
ffc164cc:	7c 84 52 14 	add     r4,r4,r10                              <== NOT EXECUTED
ffc164d0:	4b ff ff a0 	b       ffc16470 <fat_file_read+0x210>         <== NOT EXECUTED
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln);         
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    while (count > 0)                                                 
ffc164d4:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
ffc164d8:	3b 80 00 00 	li      r28,0                                  <== NOT EXECUTED
ffc164dc:	4b ff fe dc 	b       ffc163b8 <fat_file_read+0x158>         <== NOT EXECUTED
                                                                      

ffc16e70 <fat_file_size>: int fat_file_size( fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd ) {
ffc16e70:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc16e74:	7c 08 02 a6 	mflr    r0                                     
ffc16e78:	90 01 00 2c 	stw     r0,44(r1)                              
    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)) &&                               
ffc16e7c:	81 24 00 20 	lwz     r9,32(r4)                              
int                                                                   
fat_file_size(                                                        
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
ffc16e80:	93 a1 00 1c 	stw     r29,28(r1)                             
    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)) &&                               
ffc16e84:	2f 89 00 01 	cmpwi   cr7,r9,1                               
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = fat_fd->cln;                             
ffc16e88:	83 a4 00 1c 	lwz     r29,28(r4)                             
int                                                                   
fat_file_size(                                                        
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
ffc16e8c:	93 c1 00 20 	stw     r30,32(r1)                             
ffc16e90:	7c 9e 23 78 	mr      r30,r4                                 
ffc16e94:	93 e1 00 24 	stw     r31,36(r1)                             
ffc16e98:	7c 7f 1b 78 	mr      r31,r3                                 
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = fat_fd->cln;                             
ffc16e9c:	93 a1 00 08 	stw     r29,8(r1)                              
    uint32_t       save_cln = 0;                                      
                                                                      
    /* Have we requested root dir size for FAT12/16? */               
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
ffc16ea0:	41 9e 00 ac 	beq-    cr7,ffc16f4c <fat_file_size+0xdc>      
        return rc;                                                    
    }                                                                 
                                                                      
    fat_fd->fat_file_size = 0;                                        
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
ffc16ea4:	81 5f 00 10 	lwz     r10,16(r31)                            
    {                                                                 
        fat_fd->fat_file_size = fs_info->vol.rdir_size;               
        return rc;                                                    
    }                                                                 
                                                                      
    fat_fd->fat_file_size = 0;                                        
ffc16ea8:	39 00 00 00 	li      r8,0                                   
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
ffc16eac:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc16eb0:	7f aa 50 38 	and     r10,r29,r10                            
    {                                                                 
        fat_fd->fat_file_size = fs_info->vol.rdir_size;               
        return rc;                                                    
    }                                                                 
                                                                      
    fat_fd->fat_file_size = 0;                                        
ffc16eb4:	91 1e 00 18 	stw     r8,24(r30)                             
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
ffc16eb8:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc16ebc:	41 bc 00 34 	blt+    cr7,ffc16ef0 <fat_file_size+0x80>      <== ALWAYS TAKEN
ffc16ec0:	48 00 00 64 	b       ffc16f24 <fat_file_size+0xb4>          <== NOT EXECUTED
ffc16ec4:	81 1f 00 10 	lwz     r8,16(r31)                             
ffc16ec8:	81 21 00 08 	lwz     r9,8(r1)                               
ffc16ecc:	81 5f 00 14 	lwz     r10,20(r31)                            
ffc16ed0:	7d 28 40 38 	and     r8,r9,r8                               
        save_cln = cur_cln;                                           
        rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);         
        if ( rc != RC_OK )                                            
            return rc;                                                
                                                                      
        fat_fd->fat_file_size += fs_info->vol.bpc;                    
ffc16ed4:	a0 ff 00 06 	lhz     r7,6(r31)                              
        return rc;                                                    
    }                                                                 
                                                                      
    fat_fd->fat_file_size = 0;                                        
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
ffc16ed8:	7f 88 50 40 	cmplw   cr7,r8,r10                             
        save_cln = cur_cln;                                           
        rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);         
        if ( rc != RC_OK )                                            
            return rc;                                                
                                                                      
        fat_fd->fat_file_size += fs_info->vol.bpc;                    
ffc16edc:	81 5e 00 18 	lwz     r10,24(r30)                            
ffc16ee0:	7c ea 3a 14 	add     r7,r10,r7                              
ffc16ee4:	90 fe 00 18 	stw     r7,24(r30)                             
        return rc;                                                    
    }                                                                 
                                                                      
    fat_fd->fat_file_size = 0;                                        
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
ffc16ee8:	40 9c 00 40 	bge-    cr7,ffc16f28 <fat_file_size+0xb8>      <== ALWAYS TAKEN
ffc16eec:	7d 3d 4b 78 	mr      r29,r9                                 <== NOT EXECUTED
    {                                                                 
        save_cln = cur_cln;                                           
        rc = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);         
ffc16ef0:	7f a4 eb 78 	mr      r4,r29                                 
ffc16ef4:	7f e3 fb 78 	mr      r3,r31                                 
ffc16ef8:	38 a1 00 08 	addi    r5,r1,8                                
ffc16efc:	48 00 80 09 	bl      ffc1ef04 <fat_get_fat_cluster>         
        if ( rc != RC_OK )                                            
ffc16f00:	2c 03 00 00 	cmpwi   r3,0                                   
ffc16f04:	41 82 ff c0 	beq+    ffc16ec4 <fat_file_size+0x54>          <== ALWAYS TAKEN
                                                                      
        fat_fd->fat_file_size += fs_info->vol.bpc;                    
    }                                                                 
    fat_fd->map.last_cln = save_cln;                                  
    return rc;                                                        
}                                                                     
ffc16f08:	80 01 00 2c 	lwz     r0,44(r1)                              <== NOT EXECUTED
ffc16f0c:	83 a1 00 1c 	lwz     r29,28(r1)                             <== NOT EXECUTED
ffc16f10:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc16f14:	83 c1 00 20 	lwz     r30,32(r1)                             <== NOT EXECUTED
ffc16f18:	83 e1 00 24 	lwz     r31,36(r1)                             <== NOT EXECUTED
ffc16f1c:	38 21 00 28 	addi    r1,r1,40                               <== NOT EXECUTED
ffc16f20:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = fat_fd->cln;                             
    uint32_t       save_cln = 0;                                      
ffc16f24:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
                                                                      
        fat_fd->fat_file_size += fs_info->vol.bpc;                    
    }                                                                 
    fat_fd->map.last_cln = save_cln;                                  
    return rc;                                                        
}                                                                     
ffc16f28:	80 01 00 2c 	lwz     r0,44(r1)                              
        if ( rc != RC_OK )                                            
            return rc;                                                
                                                                      
        fat_fd->fat_file_size += fs_info->vol.bpc;                    
    }                                                                 
    fat_fd->map.last_cln = save_cln;                                  
ffc16f2c:	38 60 00 00 	li      r3,0                                   
ffc16f30:	93 be 00 3c 	stw     r29,60(r30)                            
    return rc;                                                        
}                                                                     
ffc16f34:	7c 08 03 a6 	mtlr    r0                                     
ffc16f38:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc16f3c:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc16f40:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc16f44:	38 21 00 28 	addi    r1,r1,40                               
ffc16f48:	4e 80 00 20 	blr                                            
    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)) &&                               
ffc16f4c:	81 24 00 24 	lwz     r9,36(r4)                              
ffc16f50:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc16f54:	40 be ff 50 	bne-    cr7,ffc16ea4 <fat_file_size+0x34>      <== NEVER TAKEN
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
ffc16f58:	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)) &&                               
ffc16f5c:	71 2a 00 03 	andi.   r10,r9,3                               
ffc16f60:	41 82 ff 44 	beq+    ffc16ea4 <fat_file_size+0x34>          <== ALWAYS TAKEN
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
    {                                                                 
        fat_fd->fat_file_size = fs_info->vol.rdir_size;               
ffc16f64:	81 23 00 2c 	lwz     r9,44(r3)                              <== NOT EXECUTED
        return rc;                                                    
ffc16f68:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
                                                                      
    /* Have we requested root dir size for FAT12/16? */               
    if ((FAT_FD_OF_ROOT_DIR(fat_fd)) &&                               
        (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)))                
    {                                                                 
        fat_fd->fat_file_size = fs_info->vol.rdir_size;               
ffc16f6c:	91 24 00 18 	stw     r9,24(r4)                              <== NOT EXECUTED
ffc16f70:	4b ff ff 98 	b       ffc16f08 <fat_file_size+0x98>          <== NOT EXECUTED
                                                                      

ffc164e0 <fat_file_truncate>: fat_file_truncate( fat_fs_info_t *fs_info, fat_file_fd_t *fat_fd, uint32_t new_length ) {
ffc164e0:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc164e4:	7c 08 02 a6 	mflr    r0                                     
ffc164e8:	7d 80 00 26 	mfcr    r12                                    
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = 0;                                       
ffc164ec:	39 40 00 00 	li      r10,0                                  
fat_file_truncate(                                                    
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              new_length                  
    )                                                                 
{                                                                     
ffc164f0:	90 01 00 2c 	stw     r0,44(r1)                              
    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 )                        
ffc164f4:	81 24 00 18 	lwz     r9,24(r4)                              
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              new_length                  
    )                                                                 
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = 0;                                       
ffc164f8:	91 41 00 0c 	stw     r10,12(r1)                             
    uint32_t       cl_start = 0;                                      
    uint32_t       new_last_cln = FAT_UNDEFINED_VALUE;                
ffc164fc:	39 40 ff ff 	li      r10,-1                                 
                                                                      
                                                                      
    if ( new_length >= fat_fd->fat_file_size )                        
ffc16500:	7f 89 28 40 	cmplw   cr7,r9,r5                              
fat_file_truncate(                                                    
    fat_fs_info_t                        *fs_info,                    
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              new_length                  
    )                                                                 
{                                                                     
ffc16504:	93 c1 00 20 	stw     r30,32(r1)                             
ffc16508:	7c 9e 23 78 	mr      r30,r4                                 
ffc1650c:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc16510:	93 e1 00 24 	stw     r31,36(r1)                             
ffc16514:	91 81 00 18 	stw     r12,24(r1)                             
    int            rc = RC_OK;                                        
    uint32_t       cur_cln = 0;                                       
    uint32_t       cl_start = 0;                                      
    uint32_t       new_last_cln = FAT_UNDEFINED_VALUE;                
ffc16518:	91 41 00 08 	stw     r10,8(r1)                              
                                                                      
                                                                      
    if ( new_length >= fat_fd->fat_file_size )                        
ffc1651c:	40 9d 00 80 	ble-    cr7,ffc1659c <fat_file_truncate+0xbc>  
        return rc;                                                    
                                                                      
    assert(fat_fd->fat_file_size);                                    
ffc16520:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc16524:	41 9e 00 d0 	beq-    cr7,ffc165f4 <fat_file_truncate+0x114> <== NEVER TAKEN
                                                                      
    cl_start = (new_length + fs_info->vol.bpc - 1) >> fs_info->vol.bpc_log2;
ffc16528:	a3 a3 00 06 	lhz     r29,6(r3)                              
ffc1652c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc16530:	89 43 00 08 	lbz     r10,8(r3)                              
ffc16534:	3b bd ff ff 	addi    r29,r29,-1                             
ffc16538:	7c bd 2a 14 	add     r5,r29,r5                              
ffc1653c:	7c bd 54 30 	srw     r29,r5,r10                             
                                                                      
    if ((cl_start << fs_info->vol.bpc_log2) >= fat_fd->fat_file_size) 
ffc16540:	7f aa 50 30 	slw     r10,r29,r10                            
ffc16544:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc16548:	40 9d 00 54 	ble-    cr7,ffc1659c <fat_file_truncate+0xbc>  
        return RC_OK;                                                 
                                                                      
    if (cl_start != 0)                                                
ffc1654c:	2e 1d 00 00 	cmpwi   cr4,r29,0                              
ffc16550:	41 92 00 18 	beq-    cr4,ffc16568 <fat_file_truncate+0x88>  
    {                                                                 
        rc = fat_file_lseek(fs_info, fat_fd, cl_start - 1, &new_last_cln);
ffc16554:	38 bd ff ff 	addi    r5,r29,-1                              
ffc16558:	38 c1 00 08 	addi    r6,r1,8                                
ffc1655c:	4b ff f8 9d 	bl      ffc15df8 <fat_file_lseek>              
        if (rc != RC_OK)                                              
ffc16560:	7c 83 23 79 	mr.     r3,r4                                  
ffc16564:	40 82 00 3c 	bne-    ffc165a0 <fat_file_truncate+0xc0>      <== NEVER TAKEN
            return rc;                                                
                                                                      
    }                                                                 
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, cl_start, &cur_cln);         
ffc16568:	7f e3 fb 78 	mr      r3,r31                                 
ffc1656c:	7f c4 f3 78 	mr      r4,r30                                 
ffc16570:	7f a5 eb 78 	mr      r5,r29                                 
ffc16574:	38 c1 00 0c 	addi    r6,r1,12                               
ffc16578:	4b ff f8 81 	bl      ffc15df8 <fat_file_lseek>              
    if (rc != RC_OK)                                                  
ffc1657c:	7c 83 23 79 	mr.     r3,r4                                  
ffc16580:	40 a2 00 20 	bne+    ffc165a0 <fat_file_truncate+0xc0>      <== NEVER TAKEN
        return rc;                                                    
                                                                      
    rc = fat_free_fat_clusters_chain(fs_info, cur_cln);               
ffc16584:	80 81 00 0c 	lwz     r4,12(r1)                              
ffc16588:	7f e3 fb 78 	mr      r3,r31                                 
ffc1658c:	48 00 8e fd 	bl      ffc1f488 <fat_free_fat_clusters_chain> 
    if (rc != RC_OK)                                                  
ffc16590:	2c 03 00 00 	cmpwi   r3,0                                   
ffc16594:	40 82 00 0c 	bne-    ffc165a0 <fat_file_truncate+0xc0>      <== NEVER TAKEN
        return rc;                                                    
                                                                      
    if (cl_start != 0)                                                
ffc16598:	40 92 00 2c 	bne-    cr4,ffc165c4 <fat_file_truncate+0xe4>  
    uint32_t       cl_start = 0;                                      
    uint32_t       new_last_cln = FAT_UNDEFINED_VALUE;                
                                                                      
                                                                      
    if ( new_length >= fat_fd->fat_file_size )                        
        return rc;                                                    
ffc1659c:	38 60 00 00 	li      r3,0                                   
        fat_fd->map.file_cln = cl_start - 1;                          
        fat_fd->map.disk_cln = new_last_cln;                          
        fat_fd->map.last_cln = new_last_cln;                          
    }                                                                 
    return RC_OK;                                                     
}                                                                     
ffc165a0:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc165a4:	81 81 00 18 	lwz     r12,24(r1)                             
ffc165a8:	7c 08 03 a6 	mtlr    r0                                     
ffc165ac:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc165b0:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc165b4:	7d 80 81 20 	mtcrf   8,r12                                  
ffc165b8:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc165bc:	38 21 00 28 	addi    r1,r1,40                               
ffc165c0:	4e 80 00 20 	blr                                            
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    if (cl_start != 0)                                                
    {                                                                 
        rc = fat_set_fat_cluster(fs_info, new_last_cln, FAT_GENFAT_EOC);
ffc165c4:	80 81 00 08 	lwz     r4,8(r1)                               
ffc165c8:	7f e3 fb 78 	mr      r3,r31                                 
ffc165cc:	38 a0 ff ff 	li      r5,-1                                  
ffc165d0:	48 00 8b 85 	bl      ffc1f154 <fat_set_fat_cluster>         
        if ( rc != RC_OK )                                            
ffc165d4:	2c 03 00 00 	cmpwi   r3,0                                   
ffc165d8:	40 a2 ff c8 	bne-    ffc165a0 <fat_file_truncate+0xc0>      <== NEVER TAKEN
            return rc;                                                
        fat_fd->map.file_cln = cl_start - 1;                          
        fat_fd->map.disk_cln = new_last_cln;                          
ffc165dc:	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;                          
ffc165e0:	3b bd ff ff 	addi    r29,r29,-1                             
ffc165e4:	93 be 00 34 	stw     r29,52(r30)                            
        fat_fd->map.disk_cln = new_last_cln;                          
ffc165e8:	91 3e 00 38 	stw     r9,56(r30)                             
        fat_fd->map.last_cln = new_last_cln;                          
ffc165ec:	91 3e 00 3c 	stw     r9,60(r30)                             
ffc165f0:	4b ff ff b0 	b       ffc165a0 <fat_file_truncate+0xc0>      
                                                                      
                                                                      
    if ( new_length >= fat_fd->fat_file_size )                        
        return rc;                                                    
                                                                      
    assert(fat_fd->fat_file_size);                                    
ffc165f4:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc165f8:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc165fc:	3c c0 ff c3 	lis     r6,-61                                 <== NOT EXECUTED
ffc16600:	38 63 1c dc 	addi    r3,r3,7388                             <== NOT EXECUTED
ffc16604:	38 80 02 d1 	li      r4,721                                 <== NOT EXECUTED
ffc16608:	38 a5 1c c8 	addi    r5,r5,7368                             <== NOT EXECUTED
ffc1660c:	38 c6 1d 24 	addi    r6,r6,7460                             <== NOT EXECUTED
ffc16610:	4b fe ff 1d 	bl      ffc0652c <__assert_func>               <== NOT EXECUTED
                                                                      

ffc16aa8 <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 )
ffc16aa8:	2c 06 00 00 	cmpwi   r6,0                                   
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              start,                      
    uint32_t                              count,                      
    const uint8_t                        *buf                         
    )                                                                 
{                                                                     
ffc16aac:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc16ab0:	7c 08 02 a6 	mflr    r0                                     
    int            rc = RC_OK;                                        
    ssize_t        ret;                                               
    uint32_t       cmpltd = 0;                                        
    uint32_t       byte;                                              
    uint32_t       c = 0;                                             
ffc16ab4:	39 20 00 00 	li      r9,0                                   
    fat_file_fd_t                        *fat_fd,                     
    uint32_t                              start,                      
    uint32_t                              count,                      
    const uint8_t                        *buf                         
    )                                                                 
{                                                                     
ffc16ab8:	93 01 00 28 	stw     r24,40(r1)                             
ffc16abc:	90 01 00 4c 	stw     r0,76(r1)                              
ffc16ac0:	93 81 00 38 	stw     r28,56(r1)                             
ffc16ac4:	7c bc 2b 78 	mr      r28,r5                                 
ffc16ac8:	93 c1 00 40 	stw     r30,64(r1)                             
ffc16acc:	7c 9e 23 78 	mr      r30,r4                                 
ffc16ad0:	92 81 00 18 	stw     r20,24(r1)                             
ffc16ad4:	92 a1 00 1c 	stw     r21,28(r1)                             
ffc16ad8:	92 c1 00 20 	stw     r22,32(r1)                             
ffc16adc:	92 e1 00 24 	stw     r23,36(r1)                             
ffc16ae0:	93 21 00 2c 	stw     r25,44(r1)                             
ffc16ae4:	93 41 00 30 	stw     r26,48(r1)                             
ffc16ae8:	93 61 00 34 	stw     r27,52(r1)                             
ffc16aec:	93 a1 00 3c 	stw     r29,60(r1)                             
ffc16af0:	93 e1 00 44 	stw     r31,68(r1)                             
    int            rc = RC_OK;                                        
    ssize_t        ret;                                               
    uint32_t       cmpltd = 0;                                        
    uint32_t       byte;                                              
    uint32_t       c = 0;                                             
ffc16af4:	91 21 00 0c 	stw     r9,12(r1)                              
    bool           zero_fill = start > fat_fd->fat_file_size;         
ffc16af8:	80 a4 00 18 	lwz     r5,24(r4)                              
    uint32_t       file_cln_initial = fat_fd->map.file_cln;           
ffc16afc:	83 04 00 34 	lwz     r24,52(r4)                             
    uint32_t       cln;                                               
                                                                      
                                                                      
    if ( count == 0 )                                                 
ffc16b00:	41 82 01 bc 	beq-    ffc16cbc <fat_file_write+0x214>        <== NEVER TAKEN
        return cmpltd;                                                
                                                                      
    if (start >= fat_fd->size_limit)                                  
ffc16b04:	83 e4 00 14 	lwz     r31,20(r4)                             
ffc16b08:	7f 9c f8 40 	cmplw   cr7,r28,r31                            
ffc16b0c:	40 9c 02 78 	bge-    cr7,ffc16d84 <fat_file_write+0x2dc>    <== NEVER TAKEN
        rtems_set_errno_and_return_minus_one(EFBIG);                  
                                                                      
    if (count > fat_fd->size_limit - start)                           
ffc16b10:	7f fc f8 50 	subf    r31,r28,r31                            
ffc16b14:	7f 9f 30 40 	cmplw   cr7,r31,r6                             
ffc16b18:	7c 7d 1b 78 	mr      r29,r3                                 
ffc16b1c:	7c f9 3b 78 	mr      r25,r7                                 
ffc16b20:	41 9d 01 68 	bgt-    cr7,ffc16c88 <fat_file_write+0x1e0>    <== ALWAYS TAKEN
        count = fat_fd->size_limit - start;                           
                                                                      
    rc = fat_file_extend(fs_info, fat_fd, zero_fill, start + count, &c);
ffc16b24:	7c bc 28 10 	subfc   r5,r28,r5                              <== NOT EXECUTED
ffc16b28:	7c a5 29 10 	subfe   r5,r5,r5                               <== NOT EXECUTED
ffc16b2c:	7f 7f e2 14 	add     r27,r31,r28                            <== NOT EXECUTED
ffc16b30:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc16b34:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc16b38:	7c a5 00 d0 	neg     r5,r5                                  <== NOT EXECUTED
ffc16b3c:	7f 66 db 78 	mr      r6,r27                                 <== NOT EXECUTED
ffc16b40:	38 e1 00 0c 	addi    r7,r1,12                               <== NOT EXECUTED
ffc16b44:	4b ff fc d5 	bl      ffc16818 <fat_file_extend>             <== NOT EXECUTED
    if (RC_OK == rc)                                                  
ffc16b48:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc16b4c:	40 82 00 fc 	bne-    ffc16c48 <fat_file_write+0x1a0>        <== NOT EXECUTED
    {                                                                 
        /*                                                            
         * check whether there was enough room on device to locate    
         * file of 'start + count' bytes                              
         */                                                           
        if (c != (start + count))                                     
ffc16b50:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc16b54:	7f 9b 48 00 	cmpw    cr7,r27,r9                             
ffc16b58:	41 9e 00 08 	beq-    cr7,ffc16b60 <fat_file_write+0xb8>     <== ALWAYS TAKEN
            count = c - start;                                        
ffc16b5c:	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));
ffc16b60:	81 3e 00 20 	lwz     r9,32(r30)                             
         */                                                           
        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))
ffc16b64:	89 5d 00 0e 	lbz     r10,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));
ffc16b68:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc16b6c:	41 9e 01 c4 	beq-    cr7,ffc16d30 <fat_file_write+0x288>    
     const uint8_t                        *buf,                       
     const uint32_t                        file_cln_initial)          
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cmpltd = 0;                                        
    uint32_t       cur_cln = 0;                                       
ffc16b70:	7c 36 0b 78 	mr      r22,r1                                 
    uint32_t       save_cln = 0; /* FIXME: This might be incorrect, cf. below */
    uint32_t       start_cln = start >> fs_info->vol.bpc_log2;        
ffc16b74:	8b 7d 00 08 	lbz     r27,8(r29)                             
     const uint8_t                        *buf,                       
     const uint32_t                        file_cln_initial)          
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cmpltd = 0;                                        
    uint32_t       cur_cln = 0;                                       
ffc16b78:	39 20 00 00 	li      r9,0                                   
ffc16b7c:	95 36 00 08 	stwu    r9,8(r22)                              
    uint32_t       save_cln = 0; /* FIXME: This might be incorrect, cf. below */
    uint32_t       start_cln = start >> fs_info->vol.bpc_log2;        
ffc16b80:	7f 94 dc 30 	srw     r20,r28,r27                            
    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);        
ffc16b84:	7f a3 eb 78 	mr      r3,r29                                 
ffc16b88:	7f c4 f3 78 	mr      r4,r30                                 
ffc16b8c:	7e 85 a3 78 	mr      r5,r20                                 
ffc16b90:	7e c6 b3 78 	mr      r6,r22                                 
ffc16b94:	4b ff f2 65 	bl      ffc15df8 <fat_file_lseek>              
    if (RC_OK == rc)                                                  
ffc16b98:	7c 83 23 79 	mr.     r3,r4                                  
ffc16b9c:	40 82 00 a8 	bne-    ffc16c44 <fat_file_write+0x19c>        <== NEVER TAKEN
    {                                                                 
        file_cln_cnt = cur_cln - fat_fd->cln;                         
        while (   (RC_OK == rc)                                       
               && (bytes_to_write > 0))                               
ffc16ba0:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
    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;                         
ffc16ba4:	80 81 00 08 	lwz     r4,8(r1)                               
ffc16ba8:	83 5e 00 1c 	lwz     r26,28(r30)                            
    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);
ffc16bac:	7e 9b d8 30 	slw     r27,r20,r27                            
ffc16bb0:	7f 9b e0 50 	subf    r28,r27,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;                         
ffc16bb4:	7f 5a 20 50 	subf    r26,r26,r4                             
        while (   (RC_OK == rc)                                       
               && (bytes_to_write > 0))                               
ffc16bb8:	41 9e 01 e0 	beq-    cr7,ffc16d98 <fat_file_write+0x2f0>    <== NEVER TAKEN
ffc16bbc:	7f 89 e3 78 	mr      r9,r28                                 
ffc16bc0:	3b 60 00 00 	li      r27,0                                  
ffc16bc4:	3a a0 00 00 	li      r21,0                                  
ffc16bc8:	3a e0 00 00 	li      r23,0                                  
        {                                                             
            c = MIN(bytes_to_write, (fs_info->vol.bpc - ofs_cln));    
ffc16bcc:	a1 5d 00 06 	lhz     r10,6(r29)                             
                                                                      
            if (file_cln_initial < file_cln_cnt)                      
ffc16bd0:	7f 98 d0 40 	cmplw   cr7,r24,r26                            
                overwrite_cluster = true;                             
                                                                      
            ret = fat_cluster_write(fs_info,                          
ffc16bd4:	7c f9 da 14 	add     r7,r25,r27                             
    {                                                                 
        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));    
ffc16bd8:	7c c9 50 50 	subf    r6,r9,r10                              
ffc16bdc:	7f 06 f8 40 	cmplw   cr6,r6,r31                             
                                                                      
            if (file_cln_initial < file_cln_cnt)                      
                overwrite_cluster = true;                             
                                                                      
            ret = fat_cluster_write(fs_info,                          
ffc16be0:	7f a3 eb 78 	mr      r3,r29                                 
ffc16be4:	7d 25 4b 78 	mr      r5,r9                                  
            if (0 > ret)                                              
              rc = -1;                                                
                                                                      
            if (RC_OK == rc)                                          
            {                                                         
                ++file_cln_cnt;                                       
ffc16be8:	3b 5a 00 01 	addi    r26,r26,1                              
    {                                                                 
        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));    
ffc16bec:	40 99 00 08 	ble-    cr6,ffc16bf4 <fat_file_write+0x14c>    
ffc16bf0:	7f e6 fb 78 	mr      r6,r31                                 
                                                                      
            if (file_cln_initial < file_cln_cnt)                      
ffc16bf4:	40 9c 00 08 	bge-    cr7,ffc16bfc <fat_file_write+0x154>    
                overwrite_cluster = true;                             
ffc16bf8:	3a e0 00 01 	li      r23,1                                  
                                                                      
            ret = fat_cluster_write(fs_info,                          
ffc16bfc:	7e e8 bb 78 	mr      r8,r23                                 
ffc16c00:	48 00 0a 45 	bl      ffc17644 <fat_cluster_write>           
                                      cur_cln,                        
                                      ofs_cln,                        
                                      c,                              
                                      &buf[cmpltd],                   
                                      overwrite_cluster);             
            if (0 > ret)                                              
ffc16c04:	2c 03 00 00 	cmpwi   r3,0                                   
            {                                                         
                ++file_cln_cnt;                                       
                bytes_to_write -= ret;                                
                cmpltd += ret;                                        
                save_cln = cur_cln;                                   
                if (0 < bytes_to_write)                               
ffc16c08:	7f e3 f8 50 	subf    r31,r3,r31                             
ffc16c0c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
                                      cur_cln,                        
                                      ofs_cln,                        
                                      c,                              
                                      &buf[cmpltd],                   
                                      overwrite_cluster);             
            if (0 > ret)                                              
ffc16c10:	41 80 00 f0 	blt-    ffc16d00 <fat_file_write+0x258>        <== NEVER TAKEN
                                                                      
            if (RC_OK == rc)                                          
            {                                                         
                ++file_cln_cnt;                                       
                bytes_to_write -= ret;                                
                cmpltd += ret;                                        
ffc16c14:	7f 7b 1a 14 	add     r27,r27,r3                             
                save_cln = cur_cln;                                   
ffc16c18:	82 a1 00 08 	lwz     r21,8(r1)                              
                if (0 < bytes_to_write)                               
ffc16c1c:	40 9e 00 f0 	bne-    cr7,ffc16d0c <fat_file_write+0x264>    
ffc16c20:	2c 1b 00 00 	cmpwi   r27,0                                  
ffc16c24:	7f 63 db 78 	mr      r3,r27                                 
        }                                                             
                                                                      
        /* 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);
ffc16c28:	89 3d 00 08 	lbz     r9,8(r29)                              
ffc16c2c:	3b 9c ff ff 	addi    r28,r28,-1                             
ffc16c30:	7f 7c da 14 	add     r27,r28,r27                            
        fat_fd->map.disk_cln = save_cln;                              
ffc16c34:	92 be 00 38 	stw     r21,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);
ffc16c38:	7f 7b 4c 30 	srw     r27,r27,r9                             
            }                                                         
        }                                                             
                                                                      
        /* update cache */                                            
        /* XXX: check this - I'm not sure :( */                       
        fat_fd->map.file_cln = start_cln +                            
ffc16c3c:	7e 9b a2 14 	add     r20,r27,r20                            
ffc16c40:	92 9e 00 34 	stw     r20,52(r30)                            
                                                       fat_fd,        
                                                       start,         
                                                       count,         
                                                       buf,           
                                                       file_cln_initial);
            if (0 > ret)                                              
ffc16c44:	41 80 01 38 	blt-    ffc16d7c <fat_file_write+0x2d4>        <== NEVER TAKEN
    }                                                                 
    if (RC_OK != rc)                                                  
        return rc;                                                    
    else                                                              
        return cmpltd;                                                
}                                                                     
ffc16c48:	80 01 00 4c 	lwz     r0,76(r1)                              
ffc16c4c:	82 81 00 18 	lwz     r20,24(r1)                             
ffc16c50:	7c 08 03 a6 	mtlr    r0                                     
ffc16c54:	82 a1 00 1c 	lwz     r21,28(r1)                             
ffc16c58:	82 c1 00 20 	lwz     r22,32(r1)                             
ffc16c5c:	82 e1 00 24 	lwz     r23,36(r1)                             
ffc16c60:	83 01 00 28 	lwz     r24,40(r1)                             
ffc16c64:	83 21 00 2c 	lwz     r25,44(r1)                             
ffc16c68:	83 41 00 30 	lwz     r26,48(r1)                             
ffc16c6c:	83 61 00 34 	lwz     r27,52(r1)                             
ffc16c70:	83 81 00 38 	lwz     r28,56(r1)                             
ffc16c74:	83 a1 00 3c 	lwz     r29,60(r1)                             
ffc16c78:	83 c1 00 40 	lwz     r30,64(r1)                             
ffc16c7c:	83 e1 00 44 	lwz     r31,68(r1)                             
ffc16c80:	38 21 00 48 	addi    r1,r1,72                               
ffc16c84:	4e 80 00 20 	blr                                            
ffc16c88:	7c df 33 78 	mr      r31,r6                                 
        rtems_set_errno_and_return_minus_one(EFBIG);                  
                                                                      
    if (count > fat_fd->size_limit - start)                           
        count = fat_fd->size_limit - start;                           
                                                                      
    rc = fat_file_extend(fs_info, fat_fd, zero_fill, start + count, &c);
ffc16c8c:	7c bc 28 10 	subfc   r5,r28,r5                              
ffc16c90:	7c a5 29 10 	subfe   r5,r5,r5                               
ffc16c94:	7f 7f e2 14 	add     r27,r31,r28                            
ffc16c98:	7f a3 eb 78 	mr      r3,r29                                 
ffc16c9c:	7f c4 f3 78 	mr      r4,r30                                 
ffc16ca0:	7c a5 00 d0 	neg     r5,r5                                  
ffc16ca4:	7f 66 db 78 	mr      r6,r27                                 
ffc16ca8:	38 e1 00 0c 	addi    r7,r1,12                               
ffc16cac:	4b ff fb 6d 	bl      ffc16818 <fat_file_extend>             
    if (RC_OK == rc)                                                  
ffc16cb0:	2c 03 00 00 	cmpwi   r3,0                                   
ffc16cb4:	40 a2 ff 94 	bne-    ffc16c48 <fat_file_write+0x1a0>        
ffc16cb8:	4b ff fe 98 	b       ffc16b50 <fat_file_write+0xa8>         
    }                                                                 
    if (RC_OK != rc)                                                  
        return rc;                                                    
    else                                                              
        return cmpltd;                                                
}                                                                     
ffc16cbc:	80 01 00 4c 	lwz     r0,76(r1)                              <== NOT EXECUTED
    uint32_t       file_cln_initial = fat_fd->map.file_cln;           
    uint32_t       cln;                                               
                                                                      
                                                                      
    if ( count == 0 )                                                 
        return cmpltd;                                                
ffc16cc0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
    }                                                                 
    if (RC_OK != rc)                                                  
        return rc;                                                    
    else                                                              
        return cmpltd;                                                
}                                                                     
ffc16cc4:	82 81 00 18 	lwz     r20,24(r1)                             <== NOT EXECUTED
ffc16cc8:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc16ccc:	82 a1 00 1c 	lwz     r21,28(r1)                             <== NOT EXECUTED
ffc16cd0:	82 c1 00 20 	lwz     r22,32(r1)                             <== NOT EXECUTED
ffc16cd4:	82 e1 00 24 	lwz     r23,36(r1)                             <== NOT EXECUTED
ffc16cd8:	83 01 00 28 	lwz     r24,40(r1)                             <== NOT EXECUTED
ffc16cdc:	83 21 00 2c 	lwz     r25,44(r1)                             <== NOT EXECUTED
ffc16ce0:	83 41 00 30 	lwz     r26,48(r1)                             <== NOT EXECUTED
ffc16ce4:	83 61 00 34 	lwz     r27,52(r1)                             <== NOT EXECUTED
ffc16ce8:	83 81 00 38 	lwz     r28,56(r1)                             <== NOT EXECUTED
ffc16cec:	83 a1 00 3c 	lwz     r29,60(r1)                             <== NOT EXECUTED
ffc16cf0:	83 c1 00 40 	lwz     r30,64(r1)                             <== NOT EXECUTED
ffc16cf4:	83 e1 00 44 	lwz     r31,68(r1)                             <== NOT EXECUTED
ffc16cf8:	38 21 00 48 	addi    r1,r1,72                               <== NOT EXECUTED
ffc16cfc:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                      cur_cln,                        
                                      ofs_cln,                        
                                      c,                              
                                      &buf[cmpltd],                   
                                      overwrite_cluster);             
            if (0 > ret)                                              
ffc16d00:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc16d04:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc16d08:	4b ff ff 20 	b       ffc16c28 <fat_file_write+0x180>        <== 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);
ffc16d0c:	7f a3 eb 78 	mr      r3,r29                                 
ffc16d10:	7e a4 ab 78 	mr      r4,r21                                 
ffc16d14:	7e c5 b3 78 	mr      r5,r22                                 
ffc16d18:	48 00 81 ed 	bl      ffc1ef04 <fat_get_fat_cluster>         
ffc16d1c:	39 20 00 00 	li      r9,0                                   
                                                                      
    rc = fat_file_lseek(fs_info, fat_fd, start_cln, &cur_cln);        
    if (RC_OK == rc)                                                  
    {                                                                 
        file_cln_cnt = cur_cln - fat_fd->cln;                         
        while (   (RC_OK == rc)                                       
ffc16d20:	2c 03 00 00 	cmpwi   r3,0                                   
ffc16d24:	40 a2 ff 04 	bne-    ffc16c28 <fat_file_write+0x180>        <== NEVER TAKEN
ffc16d28:	80 81 00 08 	lwz     r4,8(r1)                               
ffc16d2c:	4b ff fe a0 	b       ffc16bcc <fat_file_write+0x124>        
 */                                                                   
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));
ffc16d30:	81 3e 00 24 	lwz     r9,36(r30)                             
ffc16d34:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc16d38:	40 be fe 38 	bne-    cr7,ffc16b70 <fat_file_write+0xc8>     <== NEVER TAKEN
ffc16d3c:	71 49 00 03 	andi.   r9,r10,3                               
ffc16d40:	41 a2 fe 30 	beq-    ffc16b70 <fat_file_write+0xc8>         
                                                                      
        /* 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);                  
ffc16d44:	88 9d 00 08 	lbz     r4,8(r29)                              
            byte = start & (fs_info->vol.bpc -1);                     
                                                                      
            ret = fat_cluster_write(fs_info,                          
ffc16d48:	7f a3 eb 78 	mr      r3,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);                  
            byte = start & (fs_info->vol.bpc -1);                     
ffc16d4c:	a0 bd 00 06 	lhz     r5,6(r29)                              
                                                                      
            ret = fat_cluster_write(fs_info,                          
ffc16d50:	7f e6 fb 78 	mr      r6,r31                                 
            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;                                        
ffc16d54:	81 3e 00 1c 	lwz     r9,28(r30)                             
            cln += (start >> fs_info->vol.bpc_log2);                  
ffc16d58:	7f 84 24 30 	srw     r4,r28,r4                              
            byte = start & (fs_info->vol.bpc -1);                     
ffc16d5c:	38 a5 ff ff 	addi    r5,r5,-1                               
                                                                      
            ret = fat_cluster_write(fs_info,                          
ffc16d60:	7c 84 4a 14 	add     r4,r4,r9                               
ffc16d64:	7f 85 28 38 	and     r5,r28,r5                              
ffc16d68:	7f 27 cb 78 	mr      r7,r25                                 
ffc16d6c:	39 00 00 00 	li      r8,0                                   
ffc16d70:	48 00 08 d5 	bl      ffc17644 <fat_cluster_write>           
                                      cln,                            
                                      byte,                           
                                      count,                          
                                      buf,                            
                                      false);                         
            if (0 > ret)                                              
ffc16d74:	2c 03 00 00 	cmpwi   r3,0                                   
ffc16d78:	40 80 fe d0 	bge+    ffc16c48 <fat_file_write+0x1a0>        <== ALWAYS TAKEN
                                                       start,         
                                                       count,         
                                                       buf,           
                                                       file_cln_initial);
            if (0 > ret)                                              
              rc = -1;                                                
ffc16d7c:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc16d80:	4b ff fe c8 	b       ffc16c48 <fat_file_write+0x1a0>        <== NOT EXECUTED
                                                                      
    if ( count == 0 )                                                 
        return cmpltd;                                                
                                                                      
    if (start >= fat_fd->size_limit)                                  
        rtems_set_errno_and_return_minus_one(EFBIG);                  
ffc16d84:	48 00 a9 19 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc16d88:	39 20 00 1b 	li      r9,27                                  <== NOT EXECUTED
ffc16d8c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc16d90:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc16d94:	4b ff fe b4 	b       ffc16c48 <fat_file_write+0x1a0>        <== NOT EXECUTED
     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 */
ffc16d98:	3a a0 00 00 	li      r21,0                                  <== NOT EXECUTED
     const uint32_t                        count,                     
     const uint8_t                        *buf,                       
     const uint32_t                        file_cln_initial)          
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cmpltd = 0;                                        
ffc16d9c:	3b 60 00 00 	li      r27,0                                  <== NOT EXECUTED
ffc16da0:	4b ff fe 88 	b       ffc16c28 <fat_file_write+0x180>        <== NOT EXECUTED
                                                                      

ffc1f488 <fat_free_fat_clusters_chain>: int fat_free_fat_clusters_chain( fat_fs_info_t *fs_info, uint32_t chain ) {
ffc1f488:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc1f48c:	7c 08 02 a6 	mflr    r0                                     
    int            rc = RC_OK, rc1 = RC_OK;                           
    uint32_t       cur_cln = chain;                                   
    uint32_t       next_cln = 0;                                      
ffc1f490:	39 00 00 00 	li      r8,0                                   
int                                                                   
fat_free_fat_clusters_chain(                                          
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              chain                       
    )                                                                 
{                                                                     
ffc1f494:	90 01 00 34 	stw     r0,52(r1)                              
    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)      
ffc1f498:	81 23 00 10 	lwz     r9,16(r3)                              
ffc1f49c:	81 43 00 14 	lwz     r10,20(r3)                             
ffc1f4a0:	7c 89 48 38 	and     r9,r4,r9                               
int                                                                   
fat_free_fat_clusters_chain(                                          
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              chain                       
    )                                                                 
{                                                                     
ffc1f4a4:	93 61 00 1c 	stw     r27,28(r1)                             
    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)      
ffc1f4a8:	7f 89 50 40 	cmplw   cr7,r9,r10                             
int                                                                   
fat_free_fat_clusters_chain(                                          
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              chain                       
    )                                                                 
{                                                                     
ffc1f4ac:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc1f4b0:	7c 9b 23 78 	mr      r27,r4                                 
ffc1f4b4:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1f4b8:	93 81 00 20 	stw     r28,32(r1)                             
ffc1f4bc:	93 a1 00 24 	stw     r29,36(r1)                             
ffc1f4c0:	93 c1 00 28 	stw     r30,40(r1)                             
    int            rc = RC_OK, rc1 = RC_OK;                           
    uint32_t       cur_cln = chain;                                   
    uint32_t       next_cln = 0;                                      
ffc1f4c4:	91 01 00 08 	stw     r8,8(r1)                               
    uint32_t       freed_cls_cnt = 0;                                 
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
ffc1f4c8:	40 9c 00 a8 	bge-    cr7,ffc1f570 <fat_free_fat_clusters_chain+0xe8><== NEVER TAKEN
ffc1f4cc:	7c 9e 23 78 	mr      r30,r4                                 
ffc1f4d0:	3b a0 00 00 	li      r29,0                                  
ffc1f4d4:	3b 80 00 00 	li      r28,0                                  
ffc1f4d8:	48 00 00 30 	b       ffc1f508 <fat_free_fat_clusters_chain+0x80>
                                                                      
            fat_buf_release(fs_info);                                 
            return rc;                                                
        }                                                             
                                                                      
        rc = fat_set_fat_cluster(fs_info, cur_cln, FAT_GENFAT_FREE);  
ffc1f4dc:	4b ff fc 79 	bl      ffc1f154 <fat_set_fat_cluster>         
        if ( rc != RC_OK )                                            
            rc1 = rc;                                                 
                                                                      
        freed_cls_cnt++;                                              
ffc1f4e0:	3b bd 00 01 	addi    r29,r29,1                              
            fat_buf_release(fs_info);                                 
            return rc;                                                
        }                                                             
                                                                      
        rc = fat_set_fat_cluster(fs_info, cur_cln, FAT_GENFAT_FREE);  
        if ( rc != RC_OK )                                            
ffc1f4e4:	2c 03 00 00 	cmpwi   r3,0                                   
            rc1 = rc;                                                 
                                                                      
        freed_cls_cnt++;                                              
        cur_cln = next_cln;                                           
ffc1f4e8:	83 c1 00 08 	lwz     r30,8(r1)                              
            fat_buf_release(fs_info);                                 
            return rc;                                                
        }                                                             
                                                                      
        rc = fat_set_fat_cluster(fs_info, cur_cln, FAT_GENFAT_FREE);  
        if ( rc != RC_OK )                                            
ffc1f4ec:	41 82 00 08 	beq-    ffc1f4f4 <fat_free_fat_clusters_chain+0x6c><== ALWAYS TAKEN
ffc1f4f0:	7c 7c 1b 78 	mr      r28,r3                                 <== NOT EXECUTED
    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)      
ffc1f4f4:	81 5f 00 10 	lwz     r10,16(r31)                            
ffc1f4f8:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc1f4fc:	7f ca 50 38 	and     r10,r30,r10                            
ffc1f500:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc1f504:	40 9c 00 74 	bge-    cr7,ffc1f578 <fat_free_fat_clusters_chain+0xf0>
    {                                                                 
        rc = fat_get_fat_cluster(fs_info, cur_cln, &next_cln);        
ffc1f508:	7f c4 f3 78 	mr      r4,r30                                 
ffc1f50c:	38 a1 00 08 	addi    r5,r1,8                                
ffc1f510:	7f e3 fb 78 	mr      r3,r31                                 
ffc1f514:	4b ff f9 f1 	bl      ffc1ef04 <fat_get_fat_cluster>         
                                                                      
            fat_buf_release(fs_info);                                 
            return rc;                                                
        }                                                             
                                                                      
        rc = fat_set_fat_cluster(fs_info, cur_cln, FAT_GENFAT_FREE);  
ffc1f518:	7f c4 f3 78 	mr      r4,r30                                 
    uint32_t       freed_cls_cnt = 0;                                 
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
    {                                                                 
        rc = fat_get_fat_cluster(fs_info, cur_cln, &next_cln);        
        if ( rc != RC_OK )                                            
ffc1f51c:	7c 7e 1b 79 	mr.     r30,r3                                 
                                                                      
            fat_buf_release(fs_info);                                 
            return rc;                                                
        }                                                             
                                                                      
        rc = fat_set_fat_cluster(fs_info, cur_cln, FAT_GENFAT_FREE);  
ffc1f520:	38 a0 00 00 	li      r5,0                                   
ffc1f524:	7f e3 fb 78 	mr      r3,r31                                 
    uint32_t       freed_cls_cnt = 0;                                 
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
    {                                                                 
        rc = fat_get_fat_cluster(fs_info, cur_cln, &next_cln);        
        if ( rc != RC_OK )                                            
ffc1f528:	41 82 ff b4 	beq+    ffc1f4dc <fat_free_fat_clusters_chain+0x54><== ALWAYS TAKEN
        {                                                             
              if(fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)        
ffc1f52c:	81 3f 00 44 	lwz     r9,68(r31)                             <== NOT EXECUTED
ffc1f530:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              <== NOT EXECUTED
ffc1f534:	41 9e 00 0c 	beq-    cr7,ffc1f540 <fat_free_fat_clusters_chain+0xb8><== NOT EXECUTED
                fs_info->vol.free_cls += freed_cls_cnt;               
ffc1f538:	7d 3d 4a 14 	add     r9,r29,r9                              <== NOT EXECUTED
ffc1f53c:	91 3f 00 44 	stw     r9,68(r31)                             <== NOT EXECUTED
                                                                      
            fat_buf_release(fs_info);                                 
ffc1f540:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f544:	4b ff 7a 31 	bl      ffc16f74 <fat_buf_release>             <== NOT EXECUTED
    fat_buf_release(fs_info);                                         
    if (rc1 != RC_OK)                                                 
        return rc1;                                                   
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f548:	80 01 00 34 	lwz     r0,52(r1)                              <== NOT EXECUTED
ffc1f54c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1f550:	83 61 00 1c 	lwz     r27,28(r1)                             <== NOT EXECUTED
ffc1f554:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc1f558:	83 81 00 20 	lwz     r28,32(r1)                             <== NOT EXECUTED
ffc1f55c:	83 a1 00 24 	lwz     r29,36(r1)                             <== NOT EXECUTED
ffc1f560:	83 c1 00 28 	lwz     r30,40(r1)                             <== NOT EXECUTED
ffc1f564:	83 e1 00 2c 	lwz     r31,44(r1)                             <== NOT EXECUTED
ffc1f568:	38 21 00 30 	addi    r1,r1,48                               <== NOT EXECUTED
ffc1f56c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    )                                                                 
{                                                                     
    int            rc = RC_OK, rc1 = RC_OK;                           
    uint32_t       cur_cln = chain;                                   
    uint32_t       next_cln = 0;                                      
    uint32_t       freed_cls_cnt = 0;                                 
ffc1f570:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
fat_free_fat_clusters_chain(                                          
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              chain                       
    )                                                                 
{                                                                     
    int            rc = RC_OK, rc1 = RC_OK;                           
ffc1f574:	3b 80 00 00 	li      r28,0                                  <== NOT EXECUTED
        freed_cls_cnt++;                                              
        cur_cln = next_cln;                                           
    }                                                                 
                                                                      
        fs_info->vol.next_cl = chain;                                 
        if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)             
ffc1f578:	81 3f 00 44 	lwz     r9,68(r31)                             
                                                                      
        freed_cls_cnt++;                                              
        cur_cln = next_cln;                                           
    }                                                                 
                                                                      
        fs_info->vol.next_cl = chain;                                 
ffc1f57c:	93 7f 00 4c 	stw     r27,76(r31)                            
        if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)             
ffc1f580:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc1f584:	41 9e 00 0c 	beq-    cr7,ffc1f590 <fat_free_fat_clusters_chain+0x108><== ALWAYS TAKEN
            fs_info->vol.free_cls += freed_cls_cnt;                   
ffc1f588:	7d 3d 4a 14 	add     r9,r29,r9                              <== NOT EXECUTED
ffc1f58c:	91 3f 00 44 	stw     r9,68(r31)                             <== NOT EXECUTED
                                                                      
    fat_buf_release(fs_info);                                         
ffc1f590:	7f e3 fb 78 	mr      r3,r31                                 
ffc1f594:	4b ff 79 e1 	bl      ffc16f74 <fat_buf_release>             
    if (rc1 != RC_OK)                                                 
        return rc1;                                                   
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f598:	80 01 00 34 	lwz     r0,52(r1)                              
                                                                      
        fs_info->vol.next_cl = chain;                                 
        if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)             
            fs_info->vol.free_cls += freed_cls_cnt;                   
                                                                      
    fat_buf_release(fs_info);                                         
ffc1f59c:	7f 9e e3 78 	mr      r30,r28                                
    if (rc1 != RC_OK)                                                 
        return rc1;                                                   
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f5a0:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc1f5a4:	7c 08 03 a6 	mtlr    r0                                     
ffc1f5a8:	7f c3 f3 78 	mr      r3,r30                                 
ffc1f5ac:	83 81 00 20 	lwz     r28,32(r1)                             
ffc1f5b0:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc1f5b4:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc1f5b8:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc1f5bc:	38 21 00 30 	addi    r1,r1,48                               
ffc1f5c0:	4e 80 00 20 	blr                                            
                                                                      

ffc184c0 <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);
ffc184c0:	81 43 00 80 	lwz     r10,128(r3)                            <== NOT EXECUTED
ffc184c4:	38 e0 ff fe 	li      r7,-2                                  <== NOT EXECUTED
ffc184c8:	81 23 00 74 	lwz     r9,116(r3)                             <== NOT EXECUTED
ffc184cc:	7c 8a 20 50 	subf    r4,r10,r4                              <== NOT EXECUTED
ffc184d0:	54 8a e8 fe 	rlwinm  r10,r4,29,3,31                         <== NOT EXECUTED
ffc184d4:	7d 09 50 ae 	lbzx    r8,r9,r10                              <== NOT EXECUTED
ffc184d8:	54 84 07 7e 	clrlwi  r4,r4,29                               <== NOT EXECUTED
ffc184dc:	5c e4 20 3e 	rotlw   r4,r7,r4                               <== NOT EXECUTED
ffc184e0:	7c 88 40 38 	and     r8,r4,r8                               <== NOT EXECUTED
ffc184e4:	7d 09 51 ae 	stbx    r8,r9,r10                              <== NOT EXECUTED
ffc184e8:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc1ef04 <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)) )
ffc1ef04:	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                     
    )                                                                 
{                                                                     
ffc1ef08:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc1ef0c:	7c 08 02 a6 	mflr    r0                                     
ffc1ef10:	93 c1 00 30 	stw     r30,48(r1)                             
ffc1ef14:	7c 9e 23 78 	mr      r30,r4                                 
ffc1ef18:	90 01 00 3c 	stw     r0,60(r1)                              
ffc1ef1c:	93 21 00 1c 	stw     r25,28(r1)                             
ffc1ef20:	93 41 00 20 	stw     r26,32(r1)                             
ffc1ef24:	93 61 00 24 	stw     r27,36(r1)                             
ffc1ef28:	93 81 00 28 	stw     r28,40(r1)                             
ffc1ef2c:	93 a1 00 2c 	stw     r29,44(r1)                             
ffc1ef30:	93 e1 00 34 	stw     r31,52(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)) )           
ffc1ef34:	40 9d 00 8c 	ble-    cr7,ffc1efc0 <fat_get_fat_cluster+0xbc><== NEVER TAKEN
ffc1ef38:	81 23 00 38 	lwz     r9,56(r3)                              
ffc1ef3c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1ef40:	39 29 00 01 	addi    r9,r9,1                                
ffc1ef44:	7f 84 48 40 	cmplw   cr7,r4,r9                              
ffc1ef48:	41 9d 00 78 	bgt-    cr7,ffc1efc0 <fat_get_fat_cluster+0xbc><== NEVER TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
ffc1ef4c:	89 23 00 0e 	lbz     r9,14(r3)                              
ffc1ef50:	7c ba 2b 78 	mr      r26,r5                                 
ffc1ef54:	71 2a 00 01 	andi.   r10,r9,1                               
ffc1ef58:	40 82 00 a8 	bne-    ffc1f000 <fat_get_fat_cluster+0xfc>    
ffc1ef5c:	55 29 07 bc 	rlwinm  r9,r9,0,30,30                          
ffc1ef60:	8b 63 00 02 	lbz     r27,2(r3)                              
ffc1ef64:	71 2a 00 ff 	andi.   r10,r9,255                             
ffc1ef68:	41 82 00 b4 	beq-    ffc1f01c <fat_get_fat_cluster+0x118>   
ffc1ef6c:	54 9d 08 3c 	rlwinm  r29,r4,1,0,30                          
ffc1ef70:	81 23 00 58 	lwz     r9,88(r3)                              
ffc1ef74:	7f bb dc 30 	srw     r27,r29,r27                            
ffc1ef78:	7f 7b 4a 14 	add     r27,r27,r9                             
          fs_info->vol.afat_loc;                                      
    ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
                                                                      
    rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &sec_buf);    
ffc1ef7c:	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);
ffc1ef80:	a3 3f 00 00 	lhz     r25,0(r31)                             
                                                                      
    rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &sec_buf);    
ffc1ef84:	7f 64 db 78 	mr      r4,r27                                 
ffc1ef88:	38 a0 00 01 	li      r5,1                                   
ffc1ef8c:	38 c1 00 08 	addi    r6,r1,8                                
ffc1ef90:	4b ff 81 c9 	bl      ffc17158 <fat_buf_access>              
    if (rc != RC_OK)                                                  
ffc1ef94:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc1ef98:	40 82 00 38 	bne-    ffc1efd0 <fat_get_fat_cluster+0xcc>    <== NEVER TAKEN
        return rc;                                                    
                                                                      
    switch ( fs_info->vol.type )                                      
ffc1ef9c:	89 3f 00 0e 	lbz     r9,14(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);
ffc1efa0:	3b 39 ff ff 	addi    r25,r25,-1                             
ffc1efa4:	7f bd c8 38 	and     r29,r29,r25                            
                                                                      
    rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &sec_buf);    
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    switch ( fs_info->vol.type )                                      
ffc1efa8:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc1efac:	41 9e 00 84 	beq-    cr7,ffc1f030 <fat_get_fat_cluster+0x12c>
ffc1efb0:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc1efb4:	41 9e 01 08 	beq-    cr7,ffc1f0bc <fat_get_fat_cluster+0x1b8>
ffc1efb8:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc1efbc:	41 9e 00 bc 	beq-    cr7,ffc1f078 <fat_get_fat_cluster+0x174><== ALWAYS TAKEN
            *ret_val = *((uint32_t   *)(sec_buf + ofs));              
            *ret_val = CF_LE_L(*ret_val);                             
            break;                                                    
                                                                      
        default:                                                      
            rtems_set_errno_and_return_minus_one(EIO);                
ffc1efc0:	48 00 26 dd 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc1efc4:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc1efc8:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1efcc:	3b 80 ff ff 	li      r28,-1                                 <== NOT EXECUTED
            break;                                                    
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1efd0:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc1efd4:	7f 83 e3 78 	mr      r3,r28                                 
ffc1efd8:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc1efdc:	7c 08 03 a6 	mtlr    r0                                     
ffc1efe0:	83 41 00 20 	lwz     r26,32(r1)                             
ffc1efe4:	83 61 00 24 	lwz     r27,36(r1)                             
ffc1efe8:	83 81 00 28 	lwz     r28,40(r1)                             
ffc1efec:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc1eff0:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc1eff4:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc1eff8:	38 21 00 38 	addi    r1,r1,56                               
ffc1effc:	4e 80 00 20 	blr                                            
                                                                      
    /* 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) +
ffc1f000:	54 9d f8 7e 	rlwinm  r29,r4,31,1,31                         
ffc1f004:	8b 63 00 02 	lbz     r27,2(r3)                              
ffc1f008:	7f bd 22 14 	add     r29,r29,r4                             
ffc1f00c:	81 23 00 58 	lwz     r9,88(r3)                              
ffc1f010:	7f bb dc 30 	srw     r27,r29,r27                            
ffc1f014:	7f 7b 4a 14 	add     r27,r27,r9                             
ffc1f018:	4b ff ff 64 	b       ffc1ef7c <fat_get_fat_cluster+0x78>    
ffc1f01c:	54 9d 10 3a 	rlwinm  r29,r4,2,0,29                          
ffc1f020:	81 23 00 58 	lwz     r9,88(r3)                              
ffc1f024:	7f bb dc 30 	srw     r27,r29,r27                            
ffc1f028:	7f 7b 4a 14 	add     r27,r27,r9                             
ffc1f02c:	4b ff ff 50 	b       ffc1ef7c <fat_get_fat_cluster+0x78>    
            else                                                      
                *ret_val = (*ret_val) & FAT_FAT12_MASK;               
            break;                                                    
                                                                      
        case FAT_FAT16:                                               
            *ret_val = *((uint16_t   *)(sec_buf + ofs));              
ffc1f030:	81 21 00 08 	lwz     r9,8(r1)                               
            rtems_set_errno_and_return_minus_one(EIO);                
            break;                                                    
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f034:	7f 83 e3 78 	mr      r3,r28                                 
ffc1f038:	80 01 00 3c 	lwz     r0,60(r1)                              
            else                                                      
                *ret_val = (*ret_val) & FAT_FAT12_MASK;               
            break;                                                    
                                                                      
        case FAT_FAT16:                                               
            *ret_val = *((uint16_t   *)(sec_buf + ofs));              
ffc1f03c:	7d 29 ea 2e 	lhzx    r9,r9,r29                              
            rtems_set_errno_and_return_minus_one(EIO);                
            break;                                                    
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f040:	7c 08 03 a6 	mtlr    r0                                     
ffc1f044:	83 21 00 1c 	lwz     r25,28(r1)                             
                *ret_val = (*ret_val) & FAT_FAT12_MASK;               
            break;                                                    
                                                                      
        case FAT_FAT16:                                               
            *ret_val = *((uint16_t   *)(sec_buf + ofs));              
            *ret_val = CF_LE_W(*ret_val);                             
ffc1f048:	55 2a c2 3e 	rlwinm  r10,r9,24,8,31                         
            rtems_set_errno_and_return_minus_one(EIO);                
            break;                                                    
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f04c:	83 61 00 24 	lwz     r27,36(r1)                             
                *ret_val = (*ret_val) & FAT_FAT12_MASK;               
            break;                                                    
                                                                      
        case FAT_FAT16:                                               
            *ret_val = *((uint16_t   *)(sec_buf + ofs));              
            *ret_val = CF_LE_W(*ret_val);                             
ffc1f050:	55 29 44 2e 	rlwinm  r9,r9,8,16,23                          
            rtems_set_errno_and_return_minus_one(EIO);                
            break;                                                    
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f054:	83 81 00 28 	lwz     r28,40(r1)                             
                *ret_val = (*ret_val) & FAT_FAT12_MASK;               
            break;                                                    
                                                                      
        case FAT_FAT16:                                               
            *ret_val = *((uint16_t   *)(sec_buf + ofs));              
            *ret_val = CF_LE_W(*ret_val);                             
ffc1f058:	7d 49 4b 78 	or      r9,r10,r9                              
            rtems_set_errno_and_return_minus_one(EIO);                
            break;                                                    
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f05c:	83 a1 00 2c 	lwz     r29,44(r1)                             
                *ret_val = (*ret_val) & FAT_FAT12_MASK;               
            break;                                                    
                                                                      
        case FAT_FAT16:                                               
            *ret_val = *((uint16_t   *)(sec_buf + ofs));              
            *ret_val = CF_LE_W(*ret_val);                             
ffc1f060:	91 3a 00 00 	stw     r9,0(r26)                              
            rtems_set_errno_and_return_minus_one(EIO);                
            break;                                                    
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f064:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc1f068:	83 41 00 20 	lwz     r26,32(r1)                             
ffc1f06c:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc1f070:	38 21 00 38 	addi    r1,r1,56                               
ffc1f074:	4e 80 00 20 	blr                                            
            /*                                                        
             * 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) )                      
ffc1f078:	a1 3f 00 00 	lhz     r9,0(r31)                              
        case FAT_FAT12:                                               
            /*                                                        
             * we are enforced in complex computations for FAT12 to escape CPU
             * align problems for some architectures                  
             */                                                       
            *ret_val = (*(sec_buf + ofs));                            
ffc1f07c:	81 41 00 08 	lwz     r10,8(r1)                              
            if ( ofs == (fs_info->vol.bps - 1) )                      
ffc1f080:	39 29 ff ff 	addi    r9,r9,-1                               
ffc1f084:	7f 89 e8 00 	cmpw    cr7,r9,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));                            
ffc1f088:	7d 2a e8 ae 	lbzx    r9,r10,r29                             
ffc1f08c:	91 3a 00 00 	stw     r9,0(r26)                              
            if ( ofs == (fs_info->vol.bps - 1) )                      
ffc1f090:	41 9e 00 84 	beq-    cr7,ffc1f114 <fat_get_fat_cluster+0x210><== NEVER TAKEN
                                                                      
                *ret_val |= *sec_buf << 8;                            
            }                                                         
            else                                                      
            {                                                         
                *ret_val |= *(sec_buf + ofs + 1) << 8;                
ffc1f094:	7f aa ea 14 	add     r29,r10,r29                            
ffc1f098:	89 5d 00 01 	lbz     r10,1(r29)                             
ffc1f09c:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc1f0a0:	7d 49 4b 78 	or      r9,r10,r9                              
ffc1f0a4:	91 3a 00 00 	stw     r9,0(r26)                              
            }                                                         
                                                                      
            if ( FAT_CLUSTER_IS_ODD(cln) )                            
ffc1f0a8:	73 ca 00 01 	andi.   r10,r30,1                              
ffc1f0ac:	41 82 00 5c 	beq-    ffc1f108 <fat_get_fat_cluster+0x204>   
                *ret_val = (*ret_val) >> FAT12_SHIFT;                 
ffc1f0b0:	55 29 e1 3e 	rlwinm  r9,r9,28,4,31                          
ffc1f0b4:	91 3a 00 00 	stw     r9,0(r26)                              
ffc1f0b8:	4b ff ff 18 	b       ffc1efd0 <fat_get_fat_cluster+0xcc>    
            *ret_val = *((uint16_t   *)(sec_buf + ofs));              
            *ret_val = CF_LE_W(*ret_val);                             
            break;                                                    
                                                                      
        case FAT_FAT32:                                               
            *ret_val = *((uint32_t   *)(sec_buf + ofs));              
ffc1f0bc:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1f0c0:	7d 49 e8 2e 	lwzx    r10,r9,r29                             
ffc1f0c4:	51 49 46 3e 	rlwimi  r9,r10,8,24,31                         
ffc1f0c8:	51 49 c4 2e 	rlwimi  r9,r10,24,16,23                        
ffc1f0cc:	51 49 42 1e 	rlwimi  r9,r10,8,8,15                          
ffc1f0d0:	51 49 c0 0e 	rlwimi  r9,r10,24,0,7                          
            rtems_set_errno_and_return_minus_one(EIO);                
            break;                                                    
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f0d4:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc1f0d8:	7f 83 e3 78 	mr      r3,r28                                 
            *ret_val = CF_LE_W(*ret_val);                             
            break;                                                    
                                                                      
        case FAT_FAT32:                                               
            *ret_val = *((uint32_t   *)(sec_buf + ofs));              
            *ret_val = CF_LE_L(*ret_val);                             
ffc1f0dc:	91 3a 00 00 	stw     r9,0(r26)                              
            rtems_set_errno_and_return_minus_one(EIO);                
            break;                                                    
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f0e0:	7c 08 03 a6 	mtlr    r0                                     
ffc1f0e4:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc1f0e8:	83 41 00 20 	lwz     r26,32(r1)                             
ffc1f0ec:	83 61 00 24 	lwz     r27,36(r1)                             
ffc1f0f0:	83 81 00 28 	lwz     r28,40(r1)                             
ffc1f0f4:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc1f0f8:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc1f0fc:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc1f100:	38 21 00 38 	addi    r1,r1,56                               
ffc1f104:	4e 80 00 20 	blr                                            
            }                                                         
                                                                      
            if ( FAT_CLUSTER_IS_ODD(cln) )                            
                *ret_val = (*ret_val) >> FAT12_SHIFT;                 
            else                                                      
                *ret_val = (*ret_val) & FAT_FAT12_MASK;               
ffc1f108:	55 29 05 3e 	clrlwi  r9,r9,20                               
ffc1f10c:	91 3a 00 00 	stw     r9,0(r26)                              
ffc1f110:	4b ff fe c0 	b       ffc1efd0 <fat_get_fat_cluster+0xcc>    
             * align problems for some architectures                  
             */                                                       
            *ret_val = (*(sec_buf + ofs));                            
            if ( ofs == (fs_info->vol.bps - 1) )                      
            {                                                         
                rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
ffc1f114:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f118:	38 9b 00 01 	addi    r4,r27,1                               <== NOT EXECUTED
ffc1f11c:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc1f120:	38 c1 00 08 	addi    r6,r1,8                                <== NOT EXECUTED
ffc1f124:	4b ff 80 35 	bl      ffc17158 <fat_buf_access>              <== NOT EXECUTED
                                    &sec_buf);                        
                if (rc != RC_OK)                                      
ffc1f128:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc1f12c:	40 82 00 20 	bne-    ffc1f14c <fat_get_fat_cluster+0x248>   <== NOT EXECUTED
                    return rc;                                        
                                                                      
                *ret_val |= *sec_buf << 8;                            
ffc1f130:	81 41 00 08 	lwz     r10,8(r1)                              <== NOT EXECUTED
ffc1f134:	81 3a 00 00 	lwz     r9,0(r26)                              <== NOT EXECUTED
ffc1f138:	89 4a 00 00 	lbz     r10,0(r10)                             <== NOT EXECUTED
ffc1f13c:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         <== NOT EXECUTED
ffc1f140:	7d 49 4b 78 	or      r9,r10,r9                              <== NOT EXECUTED
ffc1f144:	91 3a 00 00 	stw     r9,0(r26)                              <== NOT EXECUTED
ffc1f148:	4b ff ff 60 	b       ffc1f0a8 <fat_get_fat_cluster+0x1a4>   <== 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)                                      
ffc1f14c:	7c 7c 1b 78 	mr      r28,r3                                 <== NOT EXECUTED
ffc1f150:	4b ff fe 80 	b       ffc1efd0 <fat_get_fat_cluster+0xcc>    <== NOT EXECUTED
                                                                      

ffc1839c <fat_get_unique_ino>: * 0 means FAILED !!! * */ uint32_t fat_get_unique_ino(fat_fs_info_t *fs_info) {
ffc1839c:	94 21 ff e8 	stwu    r1,-24(r1)                             <== NOT EXECUTED
ffc183a0:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc183a4:	90 01 00 1c 	stw     r0,28(r1)                              <== NOT EXECUTED
ffc183a8:	93 a1 00 0c 	stw     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))
ffc183ac:	3f a0 0f ff 	lis     r29,4095                               <== NOT EXECUTED
ffc183b0:	63 bd ff ff 	ori     r29,r29,65535                          <== NOT EXECUTED
ffc183b4:	80 83 00 7c 	lwz     r4,124(r3)                             <== NOT EXECUTED
 *     0 means FAILED !!!                                             
 *                                                                    
 */                                                                   
uint32_t                                                              
fat_get_unique_ino(fat_fs_info_t *fs_info)                            
{                                                                     
ffc183b8:	93 c1 00 10 	stw     r30,16(r1)                             <== NOT EXECUTED
                                                                      
    while (!resrc_unsuff)                                             
    {                                                                 
        for (j = 0; j < fs_info->uino_pool_size; j++)                 
        {                                                             
            if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino)) 
ffc183bc:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
 *     0 means FAILED !!!                                             
 *                                                                    
 */                                                                   
uint32_t                                                              
fat_get_unique_ino(fat_fs_info_t *fs_info)                            
{                                                                     
ffc183c0:	93 e1 00 14 	stw     r31,20(r1)                             <== NOT EXECUTED
ffc183c4:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
    uint32_t                j = 0;                                    
    bool                    resrc_unsuff = false;                     
                                                                      
    while (!resrc_unsuff)                                             
    {                                                                 
        for (j = 0; j < fs_info->uino_pool_size; j++)                 
ffc183c8:	2f 84 00 00 	cmpwi   cr7,r4,0                               <== NOT EXECUTED
ffc183cc:	41 9e 00 9c 	beq-    cr7,ffc18468 <fat_get_unique_ino+0xcc> <== NOT EXECUTED
        {                                                             
            if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino)) 
ffc183d0:	81 3f 00 78 	lwz     r9,120(r31)                            <== NOT EXECUTED
ffc183d4:	81 1f 00 74 	lwz     r8,116(r31)                            <== NOT EXECUTED
ffc183d8:	55 2a e8 fe 	rlwinm  r10,r9,29,3,31                         <== NOT EXECUTED
ffc183dc:	7c e8 50 ae 	lbzx    r7,r8,r10                              <== NOT EXECUTED
ffc183e0:	55 26 07 7e 	clrlwi  r6,r9,29                               <== NOT EXECUTED
ffc183e4:	7d 48 52 14 	add     r10,r8,r10                             <== NOT EXECUTED
ffc183e8:	7c e5 36 30 	sraw    r5,r7,r6                               <== NOT EXECUTED
ffc183ec:	70 a3 00 01 	andi.   r3,r5,1                                <== NOT EXECUTED
ffc183f0:	41 82 00 40 	beq-    ffc18430 <fat_get_unique_ino+0x94>     <== 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;                                   
ffc183f4:	7c 89 03 a6 	mtctr   r4                                     <== 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++;                                         
ffc183f8:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
            if (fs_info->index >= fs_info->uino_pool_size)            
ffc183fc:	7f 89 20 40 	cmplw   cr7,r9,r4                              <== 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++;                                         
ffc18400:	91 3f 00 78 	stw     r9,120(r31)                            <== NOT EXECUTED
            if (fs_info->index >= fs_info->uino_pool_size)            
ffc18404:	41 9c 00 08 	blt-    cr7,ffc1840c <fat_get_unique_ino+0x70> <== NOT EXECUTED
                fs_info->index = 0;                                   
ffc18408:	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++)                 
ffc1840c:	42 40 00 5c 	bdz-    ffc18468 <fat_get_unique_ino+0xcc>     <== NOT EXECUTED
        {                                                             
            if (!FAT_UNIQ_INO_IS_BUSY(fs_info->index, fs_info->uino)) 
ffc18410:	81 3f 00 78 	lwz     r9,120(r31)                            <== NOT EXECUTED
ffc18414:	55 2a e8 fe 	rlwinm  r10,r9,29,3,31                         <== NOT EXECUTED
ffc18418:	7c e8 50 ae 	lbzx    r7,r8,r10                              <== NOT EXECUTED
ffc1841c:	55 26 07 7e 	clrlwi  r6,r9,29                               <== NOT EXECUTED
ffc18420:	7d 48 52 14 	add     r10,r8,r10                             <== NOT EXECUTED
ffc18424:	7c e5 36 30 	sraw    r5,r7,r6                               <== NOT EXECUTED
ffc18428:	70 a3 00 01 	andi.   r3,r5,1                                <== NOT EXECUTED
ffc1842c:	40 82 ff cc 	bne+    ffc183f8 <fat_get_unique_ino+0x5c>     <== NOT EXECUTED
            {                                                         
                FAT_SET_UNIQ_INO_BUSY(fs_info->index, fs_info->uino); 
ffc18430:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc18434:	7d 26 30 30 	slw     r6,r9,r6                               <== NOT EXECUTED
ffc18438:	7c c7 3b 78 	or      r7,r6,r7                               <== NOT EXECUTED
ffc1843c:	98 ea 00 00 	stb     r7,0(r10)                              <== NOT EXECUTED
        }                                                             
        else                                                          
            resrc_unsuff = true;                                      
    }                                                                 
    return 0;                                                         
}                                                                     
ffc18440:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
        for (j = 0; j < fs_info->uino_pool_size; j++)                 
        {                                                             
            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);         
ffc18444:	80 7f 00 78 	lwz     r3,120(r31)                            <== NOT EXECUTED
        }                                                             
        else                                                          
            resrc_unsuff = true;                                      
    }                                                                 
    return 0;                                                         
}                                                                     
ffc18448:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
        for (j = 0; j < fs_info->uino_pool_size; j++)                 
        {                                                             
            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);         
ffc1844c:	81 3f 00 80 	lwz     r9,128(r31)                            <== NOT EXECUTED
        }                                                             
        else                                                          
            resrc_unsuff = true;                                      
    }                                                                 
    return 0;                                                         
}                                                                     
ffc18450:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc18454:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
        for (j = 0; j < fs_info->uino_pool_size; j++)                 
        {                                                             
            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);         
ffc18458:	7c 63 4a 14 	add     r3,r3,r9                               <== NOT EXECUTED
        }                                                             
        else                                                          
            resrc_unsuff = true;                                      
    }                                                                 
    return 0;                                                         
}                                                                     
ffc1845c:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc18460:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc18464:	4e 80 00 20 	blr                                            <== 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))
ffc18468:	81 3f 00 80 	lwz     r9,128(r31)                            <== NOT EXECUTED
ffc1846c:	54 84 08 3c 	rlwinm  r4,r4,1,0,30                           <== NOT EXECUTED
ffc18470:	7d 29 e8 50 	subf    r9,r9,r29                              <== NOT EXECUTED
ffc18474:	7f 84 48 40 	cmplw   cr7,r4,r9                              <== NOT EXECUTED
ffc18478:	41 9c 00 24 	blt-    cr7,ffc1849c <fat_get_unique_ino+0x100><== NOT EXECUTED
        }                                                             
        else                                                          
            resrc_unsuff = true;                                      
    }                                                                 
    return 0;                                                         
}                                                                     
ffc1847c:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
                resrc_unsuff = true;                                  
        }                                                             
        else                                                          
            resrc_unsuff = true;                                      
    }                                                                 
    return 0;                                                         
ffc18480:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
}                                                                     
ffc18484:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc18488:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc1848c:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc18490:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc18494:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc18498:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                fs_info->index = 0;                                   
        }                                                             
                                                                      
        if ((fs_info->uino_pool_size << 1) < (0x0FFFFFFF - fs_info->uino_base))
        {                                                             
            fs_info->uino_pool_size <<= 1;                            
ffc1849c:	90 9f 00 7c 	stw     r4,124(r31)                            <== NOT EXECUTED
            fs_info->uino = realloc(fs_info->uino, fs_info->uino_pool_size);
ffc184a0:	80 7f 00 74 	lwz     r3,116(r31)                            <== NOT EXECUTED
ffc184a4:	4b fe f6 15 	bl      ffc07ab8 <realloc>                     <== NOT EXECUTED
            if (fs_info->uino != NULL)                                
ffc184a8:	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);
ffc184ac:	90 7f 00 74 	stw     r3,116(r31)                            <== NOT EXECUTED
            if (fs_info->uino != NULL)                                
ffc184b0:	41 9e ff cc 	beq+    cr7,ffc1847c <fat_get_unique_ino+0xe0> <== NOT EXECUTED
                fs_info->index = fs_info->uino_pool_size;             
ffc184b4:	80 9f 00 7c 	lwz     r4,124(r31)                            <== NOT EXECUTED
ffc184b8:	90 9f 00 78 	stw     r4,120(r31)                            <== NOT EXECUTED
ffc184bc:	4b ff ff 0c 	b       ffc183c8 <fat_get_unique_ino+0x2c>     <== NOT EXECUTED
                                                                      

ffc182d0 <fat_init_clusters_chain>: int fat_init_clusters_chain( fat_fs_info_t *fs_info, uint32_t start_cln ) {
ffc182d0:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc182d4:	7c 08 02 a6 	mflr    r0                                     
ffc182d8:	7c 89 23 78 	mr      r9,r4                                  
ffc182dc:	93 c1 00 18 	stw     r30,24(r1)                             
    int                     rc = RC_OK;                               
    ssize_t                 ret = 0;                                  
    uint32_t                cur_cln = start_cln;                      
ffc182e0:	7c 3e 0b 78 	mr      r30,r1                                 
int                                                                   
fat_init_clusters_chain(                                              
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              start_cln                   
    )                                                                 
{                                                                     
ffc182e4:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc182e8:	7c 7f 1b 78 	mr      r31,r3                                 
ffc182ec:	90 01 00 24 	stw     r0,36(r1)                              
    int                     rc = RC_OK;                               
    ssize_t                 ret = 0;                                  
    uint32_t                cur_cln = start_cln;                      
ffc182f0:	94 9e 00 08 	stwu    r4,8(r30)                              
                                                                      
    while ((cur_cln & fs_info->vol.mask) < fs_info->vol.eoc_val)      
ffc182f4:	48 00 00 08 	b       ffc182fc <fat_init_clusters_chain+0x2c>
ffc182f8:	81 21 00 08 	lwz     r9,8(r1)                               
ffc182fc:	81 1f 00 10 	lwz     r8,16(r31)                             
    {                                                                 
        ret = fat_cluster_set(fs_info, cur_cln, 0, fs_info->vol.bpc, 0);
ffc18300:	7d 24 4b 78 	mr      r4,r9                                  
{                                                                     
    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)      
ffc18304:	81 5f 00 14 	lwz     r10,20(r31)                            
    {                                                                 
        ret = fat_cluster_set(fs_info, cur_cln, 0, fs_info->vol.bpc, 0);
ffc18308:	38 a0 00 00 	li      r5,0                                   
{                                                                     
    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)      
ffc1830c:	7d 29 40 38 	and     r9,r9,r8                               
ffc18310:	7f 89 50 40 	cmplw   cr7,r9,r10                             
    {                                                                 
        ret = fat_cluster_set(fs_info, cur_cln, 0, fs_info->vol.bpc, 0);
ffc18314:	38 e0 00 00 	li      r7,0                                   
ffc18318:	7f e3 fb 78 	mr      r3,r31                                 
{                                                                     
    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)      
ffc1831c:	40 9c 00 48 	bge-    cr7,ffc18364 <fat_init_clusters_chain+0x94>
    {                                                                 
        ret = fat_cluster_set(fs_info, cur_cln, 0, fs_info->vol.bpc, 0);
ffc18320:	a0 df 00 06 	lhz     r6,6(r31)                              
ffc18324:	4b ff f1 2d 	bl      ffc17450 <fat_cluster_set>             
        if ( ret != fs_info->vol.bpc )                                
ffc18328:	a1 3f 00 06 	lhz     r9,6(r31)                              
        {                                                             
            return -1;                                                
        }                                                             
                                                                      
        rc  = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);        
ffc1832c:	7f c5 f3 78 	mr      r5,r30                                 
    uint32_t                cur_cln = start_cln;                      
                                                                      
    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 )                                
ffc18330:	7f 89 18 00 	cmpw    cr7,r9,r3                              
        {                                                             
            return -1;                                                
        }                                                             
                                                                      
        rc  = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);        
ffc18334:	7f e3 fb 78 	mr      r3,r31                                 
    uint32_t                cur_cln = start_cln;                      
                                                                      
    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 )                                
ffc18338:	40 9e 00 48 	bne-    cr7,ffc18380 <fat_init_clusters_chain+0xb0><== NEVER TAKEN
        {                                                             
            return -1;                                                
        }                                                             
                                                                      
        rc  = fat_get_fat_cluster(fs_info, cur_cln, &cur_cln);        
ffc1833c:	80 81 00 08 	lwz     r4,8(r1)                               
ffc18340:	48 00 6b c5 	bl      ffc1ef04 <fat_get_fat_cluster>         
        if ( rc != RC_OK )                                            
ffc18344:	2c 03 00 00 	cmpwi   r3,0                                   
ffc18348:	41 82 ff b0 	beq+    ffc182f8 <fat_init_clusters_chain+0x28><== ALWAYS TAKEN
        }                                                             
                                                                      
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc1834c:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
ffc18350:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc18354:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc18358:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc1835c:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc18360:	4e 80 00 20 	blr                                            <== NOT EXECUTED
ffc18364:	80 01 00 24 	lwz     r0,36(r1)                              
            return rc;                                                
        }                                                             
                                                                      
    }                                                                 
                                                                      
    return rc;                                                        
ffc18368:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc1836c:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc18370:	7c 08 03 a6 	mtlr    r0                                     
ffc18374:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc18378:	38 21 00 20 	addi    r1,r1,32                               
ffc1837c:	4e 80 00 20 	blr                                            
ffc18380:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
    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;                                                
ffc18384:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
        }                                                             
                                                                      
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc18388:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc1838c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc18390:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc18394:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc18398:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc1785c <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) {
ffc1785c:	94 21 ff 28 	stwu    r1,-216(r1)                            
ffc17860:	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;                                 
ffc17864:	39 40 00 00 	li      r10,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)      
{                                                                     
ffc17868:	92 81 00 a8 	stw     r20,168(r1)                            
ffc1786c:	7c 74 1b 78 	mr      r20,r3                                 
    ssize_t             ret = 0;                                      
    struct stat         stat_buf;                                     
    int                 i = 0;                                        
    rtems_bdbuf_buffer *block = NULL;                                 
                                                                      
    vol->fd = open(device, O_RDWR);                                   
ffc17870:	7c 83 23 78 	mr      r3,r4                                  
ffc17874:	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)      
{                                                                     
ffc17878:	90 01 00 dc 	stw     r0,220(r1)                             
ffc1787c:	91 c1 00 90 	stw     r14,144(r1)                            
ffc17880:	91 e1 00 94 	stw     r15,148(r1)                            
ffc17884:	92 01 00 98 	stw     r16,152(r1)                            
ffc17888:	92 21 00 9c 	stw     r17,156(r1)                            
ffc1788c:	92 41 00 a0 	stw     r18,160(r1)                            
ffc17890:	92 61 00 a4 	stw     r19,164(r1)                            
ffc17894:	92 a1 00 ac 	stw     r21,172(r1)                            
ffc17898:	92 c1 00 b0 	stw     r22,176(r1)                            
ffc1789c:	92 e1 00 b4 	stw     r23,180(r1)                            
ffc178a0:	93 01 00 b8 	stw     r24,184(r1)                            
ffc178a4:	93 21 00 bc 	stw     r25,188(r1)                            
ffc178a8:	93 41 00 c0 	stw     r26,192(r1)                            
ffc178ac:	93 61 00 c4 	stw     r27,196(r1)                            
ffc178b0:	93 81 00 c8 	stw     r28,200(r1)                            
ffc178b4:	93 a1 00 cc 	stw     r29,204(r1)                            
ffc178b8:	93 c1 00 d0 	stw     r30,208(r1)                            
ffc178bc:	93 e1 00 d4 	stw     r31,212(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;                                 
ffc178c0:	91 41 00 5c 	stw     r10,92(r1)                             
                                                                      
    vol->fd = open(device, O_RDWR);                                   
ffc178c4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc178c8:	4b fe fe c1 	bl      ffc07788 <open>                        
    if (vol->fd < 0)                                                  
ffc178cc:	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);                                   
ffc178d0:	90 74 00 60 	stw     r3,96(r20)                             
    if (vol->fd < 0)                                                  
ffc178d4:	41 9c 06 e8 	blt-    cr7,ffc17fbc <fat_init_volume_info+0x760><== NEVER TAKEN
    {                                                                 
        rtems_set_errno_and_return_minus_one(ENXIO);                  
    }                                                                 
                                                                      
    rc = fstat(vol->fd, &stat_buf);                                   
ffc178d8:	38 81 00 08 	addi    r4,r1,8                                
ffc178dc:	4b fe ef 21 	bl      ffc067fc <fstat>                       
    if (rc != 0)                                                      
ffc178e0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc178e4:	40 9e 06 d0 	bne-    cr7,ffc17fb4 <fat_init_volume_info+0x758><== NEVER TAKEN
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one(ENXIO);                  
    }                                                                 
                                                                      
    /* Must be a block device. */                                     
    if (!S_ISBLK(stat_buf.st_mode))                                   
ffc178e8:	81 41 00 14 	lwz     r10,20(r1)                             
    {                                                                 
        close(vol->fd);                                               
ffc178ec:	80 74 00 60 	lwz     r3,96(r20)                             
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one(ENXIO);                  
    }                                                                 
                                                                      
    /* Must be a block device. */                                     
    if (!S_ISBLK(stat_buf.st_mode))                                   
ffc178f0:	55 4a 04 26 	rlwinm  r10,r10,0,16,19                        
ffc178f4:	2f 8a 60 00 	cmpwi   cr7,r10,24576                          
ffc178f8:	40 9e 06 c0 	bne-    cr7,ffc17fb8 <fat_init_volume_info+0x75c><== 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);                   
ffc178fc:	3c 80 40 04 	lis     r4,16388                               
ffc17900:	60 84 42 09 	ori     r4,r4,16905                            
ffc17904:	38 b4 00 64 	addi    r5,r20,100                             
ffc17908:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc1790c:	48 00 1a 7d 	bl      ffc19388 <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) {                                                    
ffc17910:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc17914:	40 9e 06 a0 	bne-    cr7,ffc17fb4 <fat_init_volume_info+0x758><== NEVER TAKEN
        rtems_set_errno_and_return_minus_one(ENXIO);                  
    }                                                                 
                                                                      
    /* Read boot record */                                            
    /* FIXME: Asserts FAT_MAX_BPB_SIZE < bdbuf block size */          
    sc = rtems_bdbuf_read( vol->dd, 0, &block);                       
ffc17918:	80 74 00 64 	lwz     r3,100(r20)                            
ffc1791c:	38 80 00 00 	li      r4,0                                   
ffc17920:	38 a1 00 5c 	addi    r5,r1,92                               
ffc17924:	4b ff cb d9 	bl      ffc144fc <rtems_bdbuf_read>            
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc17928:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1792c:	40 9e 06 bc 	bne-    cr7,ffc17fe8 <fat_init_volume_info+0x78c><== NEVER TAKEN
    {                                                                 
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one( EIO);                   
    }                                                                 
                                                                      
    memcpy( boot_rec, block->buffer, FAT_MAX_BPB_SIZE);               
ffc17930:	80 61 00 5c 	lwz     r3,92(r1)                              
ffc17934:	81 43 00 1c 	lwz     r10,28(r3)                             
ffc17938:	89 2a 00 21 	lbz     r9,33(r10)                             
ffc1793c:	8b ea 00 0b 	lbz     r31,11(r10)                            
ffc17940:	91 21 00 6c 	stw     r9,108(r1)                             
ffc17944:	89 2a 00 24 	lbz     r9,36(r10)                             
ffc17948:	8b ca 00 0c 	lbz     r30,12(r10)                            
ffc1794c:	91 21 00 70 	stw     r9,112(r1)                             
ffc17950:	89 2a 00 25 	lbz     r9,37(r10)                             
ffc17954:	89 ea 00 0d 	lbz     r15,13(r10)                            
ffc17958:	91 21 00 68 	stw     r9,104(r1)                             
ffc1795c:	89 2a 00 28 	lbz     r9,40(r10)                             
ffc17960:	8a ea 00 0e 	lbz     r23,14(r10)                            
ffc17964:	91 21 00 74 	stw     r9,116(r1)                             
ffc17968:	89 2a 00 2c 	lbz     r9,44(r10)                             
ffc1796c:	8a ca 00 0f 	lbz     r22,15(r10)                            
ffc17970:	91 21 00 80 	stw     r9,128(r1)                             
ffc17974:	89 2a 00 2d 	lbz     r9,45(r10)                             
ffc17978:	8a 4a 00 10 	lbz     r18,16(r10)                            
ffc1797c:	91 21 00 84 	stw     r9,132(r1)                             
ffc17980:	89 2a 00 2e 	lbz     r9,46(r10)                             
ffc17984:	8b aa 00 11 	lbz     r29,17(r10)                            
ffc17988:	91 21 00 88 	stw     r9,136(r1)                             
ffc1798c:	89 2a 00 2f 	lbz     r9,47(r10)                             
ffc17990:	8b 8a 00 12 	lbz     r28,18(r10)                            
ffc17994:	8b 6a 00 13 	lbz     r27,19(r10)                            
ffc17998:	8b 4a 00 14 	lbz     r26,20(r10)                            
ffc1799c:	8b 2a 00 16 	lbz     r25,22(r10)                            
ffc179a0:	8b 0a 00 17 	lbz     r24,23(r10)                            
ffc179a4:	89 ca 00 20 	lbz     r14,32(r10)                            
ffc179a8:	8a 2a 00 22 	lbz     r17,34(r10)                            
ffc179ac:	8a 0a 00 23 	lbz     r16,35(r10)                            
ffc179b0:	8a 6a 00 26 	lbz     r19,38(r10)                            
ffc179b4:	8a aa 00 27 	lbz     r21,39(r10)                            
ffc179b8:	91 21 00 8c 	stw     r9,140(r1)                             
ffc179bc:	89 2a 00 30 	lbz     r9,48(r10)                             
ffc179c0:	89 4a 00 31 	lbz     r10,49(r10)                            
ffc179c4:	91 21 00 78 	stw     r9,120(r1)                             
ffc179c8:	91 41 00 7c 	stw     r10,124(r1)                            
                                                                      
    sc = rtems_bdbuf_release( block);                                 
ffc179cc:	4b ff cd 71 	bl      ffc1473c <rtems_bdbuf_release>         
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc179d0:	2c 03 00 00 	cmpwi   r3,0                                   
ffc179d4:	40 82 06 14 	bne-    ffc17fe8 <fat_init_volume_info+0x78c>  <== NEVER TAKEN
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one( EIO );                  
    }                                                                 
                                                                      
    /* Evaluate boot record */                                        
    vol->bps = FAT_GET_BR_BYTES_PER_SECTOR(boot_rec);                 
ffc179d8:	57 de 40 2e 	rlwinm  r30,r30,8,0,23                         
ffc179dc:	7f df fb 78 	or      r31,r30,r31                            
ffc179e0:	7f ff 07 34 	extsh   r31,r31                                
ffc179e4:	57 e4 04 3e 	clrlwi  r4,r31,16                              
                                                                      
    if ( (vol->bps != 512)  &&                                        
ffc179e8:	2f 84 02 00 	cmpwi   cr7,r4,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);                 
ffc179ec:	b0 94 00 00 	sth     r4,0(r20)                              
                                                                      
    if ( (vol->bps != 512)  &&                                        
ffc179f0:	41 9e 05 74 	beq-    cr7,ffc17f64 <fat_init_volume_info+0x708><== ALWAYS TAKEN
ffc179f4:	2f 84 04 00 	cmpwi   cr7,r4,1024                            <== NOT EXECUTED
ffc179f8:	41 9e 00 14 	beq-    cr7,ffc17a0c <fat_init_volume_info+0x1b0><== NOT EXECUTED
         (vol->bps != 1024) &&                                        
ffc179fc:	2f 84 08 00 	cmpwi   cr7,r4,2048                            <== NOT EXECUTED
ffc17a00:	41 9e 00 0c 	beq-    cr7,ffc17a0c <fat_init_volume_info+0x1b0><== NOT EXECUTED
         (vol->bps != 2048) &&                                        
ffc17a04:	2f 84 10 00 	cmpwi   cr7,r4,4096                            <== NOT EXECUTED
ffc17a08:	40 9e 05 90 	bne-    cr7,ffc17f98 <fat_init_volume_info+0x73c><== 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;
ffc17a0c:	54 8a ba 7e 	rlwinm  r10,r4,23,9,31                         <== NOT EXECUTED
ffc17a10:	39 00 00 01 	li      r8,1                                   <== NOT EXECUTED
ffc17a14:	48 00 00 08 	b       ffc17a1c <fat_init_volume_info+0x1c0>  <== NOT EXECUTED
ffc17a18:	7c e8 3b 78 	mr      r8,r7                                  <== NOT EXECUTED
         i >>= 1, vol->sec_mul++);                                    
ffc17a1c:	7d 4a 0e 70 	srawi   r10,r10,1                              <== 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;
ffc17a20:	71 49 00 01 	andi.   r9,r10,1                               <== NOT EXECUTED
ffc17a24:	38 e8 00 01 	addi    r7,r8,1                                <== NOT EXECUTED
ffc17a28:	54 e7 06 3e 	clrlwi  r7,r7,24                               <== NOT EXECUTED
ffc17a2c:	41 82 ff ec 	beq+    ffc17a18 <fat_init_volume_info+0x1bc>  <== NOT EXECUTED
ffc17a30:	99 14 00 03 	stb     r8,3(r20)                              <== NOT EXECUTED
         i >>= 1, vol->sec_mul++);                                    
    for (vol->sec_log2 = 0, i = vol->bps; (i & 1) == 0;               
ffc17a34:	73 e9 00 01 	andi.   r9,r31,1                               
ffc17a38:	39 40 00 00 	li      r10,0                                  
ffc17a3c:	99 54 00 02 	stb     r10,2(r20)                             
ffc17a40:	40 82 05 98 	bne-    ffc17fd8 <fat_init_volume_info+0x77c>  <== NEVER TAKEN
ffc17a44:	7c 8a 23 78 	mr      r10,r4                                 
ffc17a48:	39 00 00 01 	li      r8,1                                   
ffc17a4c:	48 00 00 08 	b       ffc17a54 <fat_init_volume_info+0x1f8>  
ffc17a50:	7c e8 3b 78 	mr      r8,r7                                  
         i >>= 1, vol->sec_log2++);                                   
ffc17a54:	7d 4a 0e 70 	srawi   r10,r10,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;               
ffc17a58:	71 49 00 01 	andi.   r9,r10,1                               
ffc17a5c:	38 e8 00 01 	addi    r7,r8,1                                
ffc17a60:	54 e7 06 3e 	clrlwi  r7,r7,24                               
ffc17a64:	41 82 ff ec 	beq+    ffc17a50 <fat_init_volume_info+0x1f4>  
ffc17a68:	99 14 00 02 	stb     r8,2(r20)                              
    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)                                                
ffc17a6c:	2f 8f 00 00 	cmpwi   cr7,r15,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;                                  
ffc17a70:	b0 94 00 0a 	sth     r4,10(r20)                             
    vol->bytes_per_block_log2 = vol->sec_log2;                        
    vol->sectors_per_block = 1;                                       
ffc17a74:	39 40 00 01 	li      r10,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;                        
ffc17a78:	99 14 00 0c 	stb     r8,12(r20)                             
    vol->sectors_per_block = 1;                                       
ffc17a7c:	99 54 00 09 	stb     r10,9(r20)                             
                                                                      
    vol->spc = FAT_GET_BR_SECTORS_PER_CLUSTER(boot_rec);              
ffc17a80:	99 f4 00 04 	stb     r15,4(r20)                             
    /*                                                                
     * "sectors per cluster" of zero is invalid                       
     * (and would hang the following loop)                            
     */                                                               
    if (vol->spc == 0)                                                
ffc17a84:	41 9e 05 14 	beq-    cr7,ffc17f98 <fat_init_volume_info+0x73c><== NEVER TAKEN
    {                                                                 
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one(EINVAL);                 
    }                                                                 
                                                                      
    for (vol->spc_log2 = 0, i = vol->spc; (i & 1) == 0;               
ffc17a88:	71 e9 00 01 	andi.   r9,r15,1                               
ffc17a8c:	39 40 00 00 	li      r10,0                                  
ffc17a90:	99 54 00 05 	stb     r10,5(r20)                             
ffc17a94:	7d ea 7b 78 	mr      r10,r15                                
ffc17a98:	40 82 05 48 	bne-    ffc17fe0 <fat_init_volume_info+0x784>  
ffc17a9c:	38 e0 00 01 	li      r7,1                                   
ffc17aa0:	48 00 00 08 	b       ffc17aa8 <fat_init_volume_info+0x24c>  
ffc17aa4:	7c 67 1b 78 	mr      r7,r3                                  
         i >>= 1, vol->spc_log2++);                                   
ffc17aa8:	7d 4a 0e 70 	srawi   r10,r10,1                              
    {                                                                 
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one(EINVAL);                 
    }                                                                 
                                                                      
    for (vol->spc_log2 = 0, i = vol->spc; (i & 1) == 0;               
ffc17aac:	71 49 00 01 	andi.   r9,r10,1                               
ffc17ab0:	38 67 00 01 	addi    r3,r7,1                                
ffc17ab4:	54 63 06 3e 	clrlwi  r3,r3,24                               
ffc17ab8:	41 82 ff ec 	beq+    ffc17aa4 <fat_init_volume_info+0x248>  
ffc17abc:	98 f4 00 05 	stb     r7,5(r20)                              
         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)
ffc17ac0:	7c 8a 38 30 	slw     r10,r4,r7                              
ffc17ac4:	55 47 04 3e 	clrlwi  r7,r10,16                              
ffc17ac8:	2b 87 80 00 	cmplwi  cr7,r7,32768                           
ffc17acc:	b0 f4 00 06 	sth     r7,6(r20)                              
ffc17ad0:	41 9d 04 c8 	bgt-    cr7,ffc17f98 <fat_init_volume_info+0x73c><== NEVER TAKEN
    {                                                                 
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one(EINVAL);                 
    }                                                                 
                                                                      
    for (vol->bpc_log2 = 0, i = vol->bpc; (i & 1) == 0;               
ffc17ad4:	71 49 00 01 	andi.   r9,r10,1                               
ffc17ad8:	38 e0 00 00 	li      r7,0                                   
ffc17adc:	98 f4 00 08 	stb     r7,8(r20)                              
ffc17ae0:	55 4a 04 3e 	clrlwi  r10,r10,16                             
ffc17ae4:	38 e0 00 01 	li      r7,1                                   
ffc17ae8:	41 a2 00 0c 	beq+    ffc17af4 <fat_init_volume_info+0x298>  <== ALWAYS TAKEN
ffc17aec:	48 00 00 20 	b       ffc17b0c <fat_init_volume_info+0x2b0>  <== NOT EXECUTED
ffc17af0:	7c 67 1b 78 	mr      r7,r3                                  
         i >>= 1, vol->bpc_log2++);                                   
ffc17af4:	7d 4a 0e 70 	srawi   r10,r10,1                              
    {                                                                 
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one(EINVAL);                 
    }                                                                 
                                                                      
    for (vol->bpc_log2 = 0, i = vol->bpc; (i & 1) == 0;               
ffc17af8:	71 49 00 01 	andi.   r9,r10,1                               
ffc17afc:	38 67 00 01 	addi    r3,r7,1                                
ffc17b00:	54 63 06 3e 	clrlwi  r3,r3,24                               
ffc17b04:	41 82 ff ec 	beq+    ffc17af0 <fat_init_volume_info+0x294>  
ffc17b08:	98 f4 00 08 	stb     r7,8(r20)                              
         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);        
ffc17b0c:	57 9c 40 2e 	rlwinm  r28,r28,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);                         
ffc17b10:	9a 54 00 0d 	stb     r18,13(r20)                            
    vol->fat_loc = FAT_GET_BR_RESERVED_SECTORS_NUM(boot_rec);         
                                                                      
    vol->rdir_entrs = FAT_GET_BR_FILES_PER_ROOT_DIR(boot_rec);        
ffc17b14:	7f 9d eb 78 	or      r29,r28,r29                            
                                                                      
    /* calculate the count of sectors occupied by the root directory */
    vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) /
ffc17b18:	39 44 ff ff 	addi    r10,r4,-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);        
ffc17b1c:	b3 b4 00 24 	sth     r29,36(r20)                            
                                                                      
    /* calculate the count of sectors occupied by the root directory */
    vol->rdir_secs = ((vol->rdir_entrs * FAT_DIRENTRY_SIZE) + (vol->bps - 1)) /
ffc17b20:	57 a7 28 34 	rlwinm  r7,r29,5,0,26                          
ffc17b24:	7d 47 52 14 	add     r10,r7,r10                             
ffc17b28:	7c 8a 23 d6 	divw    r4,r10,r4                              
                     vol->bps;                                        
                                                                      
    vol->rdir_size = vol->rdir_secs << vol->sec_log2;                 
                                                                      
    if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)                 
ffc17b2c:	57 18 40 2e 	rlwinm  r24,r24,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)) /
ffc17b30:	90 94 00 28 	stw     r4,40(r20)                             
                     vol->bps;                                        
                                                                      
    vol->rdir_size = vol->rdir_secs << vol->sec_log2;                 
                                                                      
    if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)                 
ffc17b34:	7f 19 cb 78 	or      r25,r24,r25                            
ffc17b38:	7f 38 07 35 	extsh.  r24,r25                                
                                                                      
    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);         
ffc17b3c:	56 d6 40 2e 	rlwinm  r22,r22,8,0,23                         
ffc17b40:	7e d7 bb 78 	or      r23,r22,r23                            
                                                                      
    /* 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;                 
ffc17b44:	7c 88 40 30 	slw     r8,r4,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);         
ffc17b48:	b2 f4 00 18 	sth     r23,24(r20)                            
                                                                      
    /* 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;                 
ffc17b4c:	91 14 00 2c 	stw     r8,44(r20)                             
                                                                      
    if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)                 
ffc17b50:	40 82 01 f0 	bne-    ffc17d40 <fat_init_volume_info+0x4e4>  
        vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec);       
    else                                                              
        vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec);     
ffc17b54:	81 21 00 68 	lwz     r9,104(r1)                             
ffc17b58:	56 73 80 1e 	rlwinm  r19,r19,16,0,15                        
                     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)             
ffc17b5c:	57 5a 40 2e 	rlwinm  r26,r26,8,0,23                         
    vol->rdir_size = vol->rdir_secs << vol->sec_log2;                 
                                                                      
    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);     
ffc17b60:	55 39 40 2e 	rlwinm  r25,r9,8,0,23                          
ffc17b64:	81 21 00 70 	lwz     r9,112(r1)                             
ffc17b68:	7f 39 9b 78 	or      r25,r25,r19                            
ffc17b6c:	7f 39 4b 78 	or      r25,r25,r9                             
ffc17b70:	56 b5 c0 0e 	rlwinm  r21,r21,24,0,7                         
ffc17b74:	7f 39 ab 78 	or      r25,r25,r21                            
                     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)             
ffc17b78:	7f 5b db 78 	or      r27,r26,r27                            
    vol->rdir_size = vol->rdir_secs << vol->sec_log2;                 
                                                                      
    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);     
ffc17b7c:	93 34 00 1c 	stw     r25,28(r20)                            
                                                                      
    vol->data_fsec = vol->fat_loc + vol->fats * vol->fat_length +     
ffc17b80:	7c b9 91 d6 	mullw   r5,r25,r18                             
                     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)             
ffc17b84:	7f 7a 07 35 	extsh.  r26,r27                                
    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 +     
ffc17b88:	7c a5 ba 14 	add     r5,r5,r23                              
ffc17b8c:	7c 85 22 14 	add     r4,r5,r4                               
                     vol->rdir_secs;                                  
                                                                      
    /* for  FAT12/16 root dir starts at(sector) */                    
    vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length;       
ffc17b90:	90 b4 00 20 	stw     r5,32(r20)                             
    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 +     
ffc17b94:	90 94 00 34 	stw     r4,52(r20)                             
                     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)             
ffc17b98:	41 82 01 d4 	beq-    ffc17d6c <fat_init_volume_info+0x510>  <== ALWAYS TAKEN
        vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec);     
ffc17b9c:	57 5b 04 3e 	clrlwi  r27,r26,16                             
    else                                                              
        vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM32(boot_rec);     
                                                                      
    data_secs = vol->tot_secs - vol->data_fsec;                       
ffc17ba0:	7c 84 d8 50 	subf    r4,r4,r27                              
                                                                      
    /* 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)             
        vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec);     
ffc17ba4:	93 74 00 30 	stw     r27,48(r20)                            
    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;                             
ffc17ba8:	7c c4 7b 96 	divwu   r6,r4,r15                              
                                                                      
    /* determine FAT type at least */                                 
    if ( vol->data_cls < FAT_FAT12_MAX_CLN)                           
ffc17bac:	2b 86 0f f4 	cmplwi  cr7,r6,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;                             
ffc17bb0:	90 d4 00 38 	stw     r6,56(r20)                             
                                                                      
    /* determine FAT type at least */                                 
    if ( vol->data_cls < FAT_FAT12_MAX_CLN)                           
ffc17bb4:	41 9d 01 ec 	bgt-    cr7,ffc17da0 <fat_init_volume_info+0x544>
    {                                                                 
        vol->type = FAT_FAT12;                                        
ffc17bb8:	39 40 00 01 	li      r10,1                                  
ffc17bbc:	99 54 00 0e 	stb     r10,14(r20)                            
        vol->mask = FAT_FAT12_MASK;                                   
ffc17bc0:	39 40 0f ff 	li      r10,4095                               
ffc17bc4:	91 54 00 10 	stw     r10,16(r20)                            
        vol->eoc_val = FAT_FAT12_EOC;                                 
ffc17bc8:	39 40 0f f8 	li      r10,4088                               
ffc17bcc:	91 54 00 14 	stw     r10,20(r20)                            
            }                                                         
        }                                                             
    }                                                                 
    else                                                              
    {                                                                 
        vol->rdir_cl = 0;                                             
ffc17bd0:	39 40 00 00 	li      r10,0                                  
        vol->mirror = 0;                                              
        vol->afat = 0;                                                
        vol->free_cls = FAT_UNDEFINED_VALUE;                          
ffc17bd4:	39 00 ff ff 	li      r8,-1                                  
            }                                                         
        }                                                             
    }                                                                 
    else                                                              
    {                                                                 
        vol->rdir_cl = 0;                                             
ffc17bd8:	91 54 00 3c 	stw     r10,60(r20)                            
        vol->mirror = 0;                                              
ffc17bdc:	99 54 00 54 	stb     r10,84(r20)                            
        vol->afat = 0;                                                
ffc17be0:	99 54 00 5c 	stb     r10,92(r20)                            
        vol->free_cls = FAT_UNDEFINED_VALUE;                          
ffc17be4:	91 14 00 44 	stw     r8,68(r20)                             
        vol->next_cl = FAT_UNDEFINED_VALUE;                           
ffc17be8:	91 14 00 4c 	stw     r8,76(r20)                             
 *     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);                                  
ffc17bec:	7e 83 a3 78 	mr      r3,r20                                 
ffc17bf0:	4b ff f3 85 	bl      ffc16f74 <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;       
ffc17bf4:	88 f4 00 5c 	lbz     r7,92(r20)                             
ffc17bf8:	81 54 00 1c 	lwz     r10,28(r20)                            
                                                                      
    /* set up collection of fat-files fd */                           
    fs_info->vhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
ffc17bfc:	38 60 00 02 	li      r3,2                                   
        vol->next_cl = FAT_UNDEFINED_VALUE;                           
    }                                                                 
                                                                      
    _fat_block_release(fs_info);                                      
                                                                      
    vol->afat_loc = vol->fat_loc + vol->fat_length * vol->afat;       
ffc17c00:	a1 14 00 18 	lhz     r8,24(r20)                             
                                                                      
    /* set up collection of fat-files fd */                           
    fs_info->vhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
ffc17c04:	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;       
ffc17c08:	7d 47 51 d6 	mullw   r10,r7,r10                             
ffc17c0c:	7d 4a 42 14 	add     r10,r10,r8                             
ffc17c10:	91 54 00 58 	stw     r10,88(r20)                            
                                                                      
    /* set up collection of fat-files fd */                           
    fs_info->vhash = calloc(FAT_HASH_SIZE, sizeof(rtems_chain_control));
ffc17c14:	4b fe e9 ed 	bl      ffc06600 <calloc>                      
    if ( fs_info->vhash == NULL )                                     
ffc17c18:	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));
ffc17c1c:	90 74 00 6c 	stw     r3,108(r20)                            
ffc17c20:	7c 6a 1b 78 	mr      r10,r3                                 
    if ( fs_info->vhash == NULL )                                     
ffc17c24:	41 9e 04 0c 	beq-    cr7,ffc18030 <fat_init_volume_info+0x7d4><== 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 );                        
ffc17c28:	38 c3 00 04 	addi    r6,r3,4                                
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc17c2c:	91 4a 00 08 	stw     r10,8(r10)                             
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 );                        
ffc17c30:	39 03 00 0c 	addi    r8,r3,12                               
ffc17c34:	38 e3 00 10 	addi    r7,r3,16                               
                                                                      
  head->next = tail;                                                  
ffc17c38:	90 ca 00 00 	stw     r6,0(r10)                              
  head->previous = NULL;                                              
ffc17c3c:	3b e0 00 00 	li      r31,0                                  
ffc17c40:	93 ea 00 04 	stw     r31,4(r10)                             
    }                                                                 
                                                                      
    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));
ffc17c44:	38 60 00 02 	li      r3,2                                   
ffc17c48:	38 80 00 0c 	li      r4,12                                  
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc17c4c:	90 ea 00 0c 	stw     r7,12(r10)                             
  head->previous = NULL;                                              
ffc17c50:	93 ea 00 10 	stw     r31,16(r10)                            
  tail->previous = head;                                              
ffc17c54:	91 0a 00 14 	stw     r8,20(r10)                             
ffc17c58:	4b fe e9 a9 	bl      ffc06600 <calloc>                      
    if ( fs_info->rhash == NULL )                                     
ffc17c5c:	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));
ffc17c60:	90 74 00 70 	stw     r3,112(r20)                            
ffc17c64:	7c 6a 1b 78 	mr      r10,r3                                 
    if ( fs_info->rhash == NULL )                                     
ffc17c68:	41 9e 03 fc 	beq-    cr7,ffc18064 <fat_init_volume_info+0x808><== NEVER TAKEN
    }                                                                 
    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;        
ffc17c6c:	88 f4 00 03 	lbz     r7,3(r20)                              
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 );                        
ffc17c70:	38 c3 00 04 	addi    r6,r3,4                                
ffc17c74:	81 14 00 30 	lwz     r8,48(r20)                             
    fs_info->index = 0;                                               
    fs_info->uino = (char *)calloc(fs_info->uino_pool_size, sizeof(char));
ffc17c78:	38 80 00 01 	li      r4,1                                   
    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;        
    fs_info->index = 0;                                               
ffc17c7c:	93 f4 00 78 	stw     r31,120(r20)                           
    }                                                                 
    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;        
ffc17c80:	7d 08 38 30 	slw     r8,r8,r7                               
ffc17c84:	55 08 20 36 	rlwinm  r8,r8,4,0,27                           
        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;                
ffc17c88:	38 e0 01 00 	li      r7,256                                 
    fs_info->uino_base = (vol->tot_secs << vol->sec_mul) << 4;        
ffc17c8c:	91 14 00 80 	stw     r8,128(r20)                            
ffc17c90:	39 03 00 0c 	addi    r8,r3,12                               
        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;                
ffc17c94:	90 f4 00 7c 	stw     r7,124(r20)                            
ffc17c98:	38 e3 00 10 	addi    r7,r3,16                               
    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));
ffc17c9c:	38 60 01 00 	li      r3,256                                 
                                                                      
  head->next = tail;                                                  
ffc17ca0:	90 ca 00 00 	stw     r6,0(r10)                              
  head->previous = NULL;                                              
ffc17ca4:	93 ea 00 04 	stw     r31,4(r10)                             
  tail->previous = head;                                              
ffc17ca8:	91 4a 00 08 	stw     r10,8(r10)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc17cac:	90 ea 00 0c 	stw     r7,12(r10)                             
  head->previous = NULL;                                              
ffc17cb0:	93 ea 00 10 	stw     r31,16(r10)                            
  tail->previous = head;                                              
ffc17cb4:	91 0a 00 14 	stw     r8,20(r10)                             
ffc17cb8:	4b fe e9 49 	bl      ffc06600 <calloc>                      
    if ( fs_info->uino == NULL )                                      
ffc17cbc:	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));
ffc17cc0:	90 74 00 74 	stw     r3,116(r20)                            
    if ( fs_info->uino == NULL )                                      
ffc17cc4:	41 9e 03 40 	beq-    cr7,ffc18004 <fat_init_volume_info+0x7a8><== NEVER TAKEN
        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));  
ffc17cc8:	a0 74 00 00 	lhz     r3,0(r20)                              
ffc17ccc:	38 80 00 01 	li      r4,1                                   
ffc17cd0:	4b fe e9 31 	bl      ffc06600 <calloc>                      
    if (fs_info->sec_buf == NULL)                                     
ffc17cd4:	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));  
ffc17cd8:	90 74 00 90 	stw     r3,144(r20)                            
    if (fs_info->sec_buf == NULL)                                     
ffc17cdc:	41 9e 03 98 	beq-    cr7,ffc18074 <fat_init_volume_info+0x818><== NEVER TAKEN
      return bytes_written;                                           
}                                                                     
                                                                      
static bool is_cluster_aligned(const fat_vol_t *vol, uint32_t sec_num)
{                                                                     
    return (sec_num & (vol->spc - 1)) == 0;                           
ffc17ce0:	89 54 00 04 	lbz     r10,4(r20)                             
ffc17ce4:	81 14 00 34 	lwz     r8,52(r20)                             
ffc17ce8:	39 4a ff ff 	addi    r10,r10,-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)                       
ffc17cec:	7d 49 40 39 	and.    r9,r10,r8                              
ffc17cf0:	40 82 02 18 	bne-    ffc17f08 <fat_init_volume_info+0x6ac>  <== NEVER TAKEN
        && (FAT_FAT32 == vol->type || is_cluster_aligned(vol, vol->rdir_loc)))
ffc17cf4:	89 14 00 0e 	lbz     r8,14(r20)                             
ffc17cf8:	2f 88 00 04 	cmpwi   cr7,r8,4                               
ffc17cfc:	41 9e 00 10 	beq-    cr7,ffc17d0c <fat_init_volume_info+0x4b0>
      return bytes_written;                                           
}                                                                     
                                                                      
static bool is_cluster_aligned(const fat_vol_t *vol, uint32_t sec_num)
{                                                                     
    return (sec_num & (vol->spc - 1)) == 0;                           
ffc17d00:	81 14 00 20 	lwz     r8,32(r20)                             
     * 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)))
ffc17d04:	7d 49 40 39 	and.    r9,r10,r8                              
ffc17d08:	40 82 02 00 	bne-    ffc17f08 <fat_init_volume_info+0x6ac>  <== NEVER TAKEN
    {                                                                 
        sc = rtems_bdbuf_set_block_size (vol->dd, vol->bpc, true);    
ffc17d0c:	80 74 00 64 	lwz     r3,100(r20)                            
ffc17d10:	38 a0 00 01 	li      r5,1                                   
ffc17d14:	a0 94 00 06 	lhz     r4,6(r20)                              
ffc17d18:	4b ff cf c5 	bl      ffc14cdc <rtems_bdbuf_set_block_size>  
        if (sc == RTEMS_SUCCESSFUL)                                   
ffc17d1c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc17d20:	40 9e 01 e8 	bne-    cr7,ffc17f08 <fat_init_volume_info+0x6ac><== NEVER TAKEN
        {                                                             
            vol->bytes_per_block = vol->bpc;                          
ffc17d24:	a0 f4 00 06 	lhz     r7,6(r20)                              
            vol->bytes_per_block_log2 = vol->bpc_log2;                
ffc17d28:	89 14 00 08 	lbz     r8,8(r20)                              
            vol->sectors_per_block = vol->spc;                        
ffc17d2c:	89 54 00 04 	lbz     r10,4(r20)                             
        && (FAT_FAT32 == vol->type || is_cluster_aligned(vol, vol->rdir_loc)))
    {                                                                 
        sc = rtems_bdbuf_set_block_size (vol->dd, vol->bpc, true);    
        if (sc == RTEMS_SUCCESSFUL)                                   
        {                                                             
            vol->bytes_per_block = vol->bpc;                          
ffc17d30:	b0 f4 00 0a 	sth     r7,10(r20)                             
            vol->bytes_per_block_log2 = vol->bpc_log2;                
ffc17d34:	99 14 00 0c 	stb     r8,12(r20)                             
            vol->sectors_per_block = vol->spc;                        
ffc17d38:	99 54 00 09 	stb     r10,9(r20)                             
ffc17d3c:	48 00 01 d0 	b       ffc17f0c <fat_init_volume_info+0x6b0>  
                     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)             
ffc17d40:	57 5a 40 2e 	rlwinm  r26,r26,8,0,23                         
                     vol->bps;                                        
                                                                      
    vol->rdir_size = vol->rdir_secs << vol->sec_log2;                 
                                                                      
    if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)                 
        vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec);       
ffc17d44:	57 19 04 3e 	clrlwi  r25,r24,16                             
                     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)             
ffc17d48:	7f 5b db 78 	or      r27,r26,r27                            
                     vol->bps;                                        
                                                                      
    vol->rdir_size = vol->rdir_secs << vol->sec_log2;                 
                                                                      
    if ( (FAT_GET_BR_SECTORS_PER_FAT(boot_rec)) != 0)                 
        vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT(boot_rec);       
ffc17d4c:	93 34 00 1c 	stw     r25,28(r20)                            
    else                                                              
        vol->fat_length = FAT_GET_BR_SECTORS_PER_FAT32(boot_rec);     
                                                                      
    vol->data_fsec = vol->fat_loc + vol->fats * vol->fat_length +     
ffc17d50:	7c b9 91 d6 	mullw   r5,r25,r18                             
                     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)             
ffc17d54:	7f 7a 07 35 	extsh.  r26,r27                                
    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 +     
ffc17d58:	7c a5 ba 14 	add     r5,r5,r23                              
ffc17d5c:	7c 85 22 14 	add     r4,r5,r4                               
                     vol->rdir_secs;                                  
                                                                      
    /* for  FAT12/16 root dir starts at(sector) */                    
    vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length;       
ffc17d60:	90 b4 00 20 	stw     r5,32(r20)                             
    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 +     
ffc17d64:	90 94 00 34 	stw     r4,52(r20)                             
                     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)             
ffc17d68:	40 a2 fe 34 	bne-    ffc17b9c <fat_init_volume_info+0x340>  
        vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec);     
    else                                                              
        vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM32(boot_rec);     
ffc17d6c:	81 21 00 6c 	lwz     r9,108(r1)                             
ffc17d70:	56 31 80 1e 	rlwinm  r17,r17,16,0,15                        
ffc17d74:	56 10 c0 0e 	rlwinm  r16,r16,24,0,7                         
ffc17d78:	55 3b 40 2e 	rlwinm  r27,r9,8,0,23                          
ffc17d7c:	7f 7b 8b 78 	or      r27,r27,r17                            
ffc17d80:	7f 7b 73 78 	or      r27,r27,r14                            
ffc17d84:	7f 7b 83 78 	or      r27,r27,r16                            
                                                                      
    data_secs = vol->tot_secs - vol->data_fsec;                       
ffc17d88:	7c 84 d8 50 	subf    r4,r4,r27                              
    vol->rdir_loc = vol->fat_loc + vol->fats * vol->fat_length;       
                                                                      
    if ( (FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec)) != 0)             
        vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM16(boot_rec);     
    else                                                              
        vol->tot_secs = FAT_GET_BR_TOTAL_SECTORS_NUM32(boot_rec);     
ffc17d8c:	93 74 00 30 	stw     r27,48(r20)                            
                                                                      
    data_secs = vol->tot_secs - vol->data_fsec;                       
                                                                      
    vol->data_cls = data_secs / vol->spc;                             
ffc17d90:	7c c4 7b 96 	divwu   r6,r4,r15                              
                                                                      
    /* determine FAT type at least */                                 
    if ( vol->data_cls < FAT_FAT12_MAX_CLN)                           
ffc17d94:	2b 86 0f f4 	cmplwi  cr7,r6,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;                             
ffc17d98:	90 d4 00 38 	stw     r6,56(r20)                             
                                                                      
    /* determine FAT type at least */                                 
    if ( vol->data_cls < FAT_FAT12_MAX_CLN)                           
ffc17d9c:	40 bd fe 1c 	ble-    cr7,ffc17bb8 <fat_init_volume_info+0x35c>
        vol->mask = FAT_FAT12_MASK;                                   
        vol->eoc_val = FAT_FAT12_EOC;                                 
    }                                                                 
    else                                                              
    {                                                                 
        if ( vol->data_cls < FAT_FAT16_MAX_CLN)                       
ffc17da0:	2b 86 ff f4 	cmplwi  cr7,r6,65524                           
ffc17da4:	40 9d 01 c8 	ble-    cr7,ffc17f6c <fat_init_volume_info+0x710>
                                                                      
    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;
ffc17da8:	81 21 00 74 	lwz     r9,116(r1)                             
ffc17dac:	55 2a 00 30 	rlwinm  r10,r9,0,0,24                          
        }                                                             
    }                                                                 
                                                                      
    if (vol->type == FAT_FAT32)                                       
    {                                                                 
        vol->rdir_cl = FAT_GET_BR_FAT32_ROOT_CLUSTER(boot_rec);       
ffc17db0:	81 21 00 84 	lwz     r9,132(r1)                             
                                                                      
        vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR;
ffc17db4:	55 4a 06 3e 	clrlwi  r10,r10,24                             
        }                                                             
    }                                                                 
                                                                      
    if (vol->type == FAT_FAT32)                                       
    {                                                                 
        vol->rdir_cl = FAT_GET_BR_FAT32_ROOT_CLUSTER(boot_rec);       
ffc17db8:	55 27 40 2e 	rlwinm  r7,r9,8,0,23                           
ffc17dbc:	81 21 00 88 	lwz     r9,136(r1)                             
                                                                      
        vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR;
        if (vol->mirror)                                              
ffc17dc0:	2f 8a 00 00 	cmpwi   cr7,r10,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;
ffc17dc4:	99 54 00 54 	stb     r10,84(r20)                            
        }                                                             
    }                                                                 
                                                                      
    if (vol->type == FAT_FAT32)                                       
    {                                                                 
        vol->rdir_cl = FAT_GET_BR_FAT32_ROOT_CLUSTER(boot_rec);       
ffc17dc8:	55 28 80 1e 	rlwinm  r8,r9,16,0,15                          
ffc17dcc:	81 21 00 80 	lwz     r9,128(r1)                             
ffc17dd0:	7c e7 43 78 	or      r7,r7,r8                               
ffc17dd4:	7c e7 4b 78 	or      r7,r7,r9                               
ffc17dd8:	81 21 00 8c 	lwz     r9,140(r1)                             
ffc17ddc:	55 28 c0 0e 	rlwinm  r8,r9,24,0,7                           
ffc17de0:	7c e8 43 78 	or      r8,r7,r8                               
            vol->mask = FAT_FAT16_MASK;                               
            vol->eoc_val = FAT_FAT16_EOC;                             
        }                                                             
        else                                                          
        {                                                             
            vol->type = FAT_FAT32;                                    
ffc17de4:	38 e0 00 04 	li      r7,4                                   
        }                                                             
    }                                                                 
                                                                      
    if (vol->type == FAT_FAT32)                                       
    {                                                                 
        vol->rdir_cl = FAT_GET_BR_FAT32_ROOT_CLUSTER(boot_rec);       
ffc17de8:	91 14 00 3c 	stw     r8,60(r20)                             
            vol->mask = FAT_FAT16_MASK;                               
            vol->eoc_val = FAT_FAT16_EOC;                             
        }                                                             
        else                                                          
        {                                                             
            vol->type = FAT_FAT32;                                    
ffc17dec:	98 f4 00 0e 	stb     r7,14(r20)                             
            vol->mask = FAT_FAT32_MASK;                               
ffc17df0:	3c e0 0f ff 	lis     r7,4095                                
ffc17df4:	60 e7 ff ff 	ori     r7,r7,65535                            
ffc17df8:	90 f4 00 10 	stw     r7,16(r20)                             
            vol->eoc_val = FAT_FAT32_EOC;                             
ffc17dfc:	3c e0 0f ff 	lis     r7,4095                                
ffc17e00:	60 e7 ff f8 	ori     r7,r7,65528                            
ffc17e04:	90 f4 00 14 	stw     r7,20(r20)                             
    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;
        if (vol->mirror)                                              
ffc17e08:	41 9e 01 c8 	beq-    cr7,ffc17fd0 <fat_init_volume_info+0x774><== ALWAYS TAKEN
            vol->afat = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_FAT_NUM;
ffc17e0c:	81 21 00 74 	lwz     r9,116(r1)                             <== NOT EXECUTED
ffc17e10:	55 2a 07 3e 	clrlwi  r10,r9,28                              <== NOT EXECUTED
ffc17e14:	99 54 00 5c 	stb     r10,92(r20)                            <== NOT EXECUTED
        else                                                          
            vol->afat = 0;                                            
                                                                      
        vol->info_sec = FAT_GET_BR_FAT32_FS_INFO_SECTOR(boot_rec);    
ffc17e18:	81 21 00 7c 	lwz     r9,124(r1)                             
ffc17e1c:	55 24 40 2e 	rlwinm  r4,r9,8,0,23                           
ffc17e20:	81 21 00 78 	lwz     r9,120(r1)                             
ffc17e24:	7c 84 4b 78 	or      r4,r4,r9                               
        if( vol->info_sec == 0 )                                      
ffc17e28:	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);    
ffc17e2c:	b0 94 00 40 	sth     r4,64(r20)                             
        if( vol->info_sec == 0 )                                      
ffc17e30:	41 9e 01 68 	beq-    cr7,ffc17f98 <fat_init_volume_info+0x73c><== NEVER TAKEN
            close(vol->fd);                                           
            rtems_set_errno_and_return_minus_one( EINVAL );           
        }                                                             
        else                                                          
        {                                                             
            ret = _fat_block_read(fs_info, vol->info_sec , 0,         
ffc17e34:	7e 83 a3 78 	mr      r3,r20                                 
ffc17e38:	38 a0 00 00 	li      r5,0                                   
ffc17e3c:	38 c0 00 04 	li      r6,4                                   
ffc17e40:	38 e1 00 50 	addi    r7,r1,80                               
ffc17e44:	4b ff f4 0d 	bl      ffc17250 <_fat_block_read>             
                                  FAT_FSI_LEADSIG_SIZE, fs_info_sector);
            if ( ret < 0 )                                            
ffc17e48:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc17e4c:	41 9c 02 08 	blt-    cr7,ffc18054 <fat_init_volume_info+0x7f8><== NEVER TAKEN
            {                                                         
                close(vol->fd);                                       
                return -1;                                            
            }                                                         
                                                                      
            if (FAT_GET_FSINFO_LEAD_SIGNATURE(fs_info_sector) !=      
ffc17e50:	88 c1 00 51 	lbz     r6,81(r1)                              
ffc17e54:	89 01 00 52 	lbz     r8,82(r1)                              
ffc17e58:	54 c6 40 2e 	rlwinm  r6,r6,8,0,23                           
ffc17e5c:	88 e1 00 50 	lbz     r7,80(r1)                              
ffc17e60:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          
ffc17e64:	89 41 00 53 	lbz     r10,83(r1)                             
ffc17e68:	7c c8 43 78 	or      r8,r6,r8                               
ffc17e6c:	55 4a c0 0e 	rlwinm  r10,r10,24,0,7                         
ffc17e70:	7d 08 3b 78 	or      r8,r8,r7                               
ffc17e74:	7d 08 53 78 	or      r8,r8,r10                              
ffc17e78:	6d 0a 41 61 	xoris   r10,r8,16737                           
ffc17e7c:	2f 8a 52 52 	cmpwi   cr7,r10,21074                          
ffc17e80:	40 9e 01 10 	bne-    cr7,ffc17f90 <fat_init_volume_info+0x734><== NEVER TAKEN
                close(vol->fd);                                       
                rtems_set_errno_and_return_minus_one( EINVAL );       
            }                                                         
            else                                                      
            {                                                         
                ret = _fat_block_read(fs_info, vol->info_sec , FAT_FSI_INFO,
ffc17e84:	a0 94 00 40 	lhz     r4,64(r20)                             
ffc17e88:	7e 83 a3 78 	mr      r3,r20                                 
ffc17e8c:	38 a0 01 e4 	li      r5,484                                 
ffc17e90:	38 c0 00 0c 	li      r6,12                                  
ffc17e94:	38 e1 00 50 	addi    r7,r1,80                               
ffc17e98:	4b ff f3 b9 	bl      ffc17250 <_fat_block_read>             
                                      FAT_USEFUL_INFO_SIZE, fs_info_sector);
                if ( ret < 0 )                                        
ffc17e9c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc17ea0:	41 9c 01 ac 	blt-    cr7,ffc1804c <fat_init_volume_info+0x7f0><== NEVER TAKEN
                    close(vol->fd);                                   
                    return -1;                                        
                }                                                     
                                                                      
                vol->free_cls_in_fs_info =                            
                  FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);  
ffc17ea4:	89 61 00 55 	lbz     r11,85(r1)                             
ffc17ea8:	88 c1 00 56 	lbz     r6,86(r1)                              
                vol->free_cls = vol->free_cls_in_fs_info;             
                vol->next_cl_in_fs_info =                             
                  FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);   
ffc17eac:	88 61 00 59 	lbz     r3,89(r1)                              
                    close(vol->fd);                                   
                    return -1;                                        
                }                                                     
                                                                      
                vol->free_cls_in_fs_info =                            
                  FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);  
ffc17eb0:	55 6b 40 2e 	rlwinm  r11,r11,8,0,23                         
                vol->free_cls = vol->free_cls_in_fs_info;             
                vol->next_cl_in_fs_info =                             
                  FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);   
ffc17eb4:	88 e1 00 5a 	lbz     r7,90(r1)                              
                    close(vol->fd);                                   
                    return -1;                                        
                }                                                     
                                                                      
                vol->free_cls_in_fs_info =                            
                  FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);  
ffc17eb8:	54 c6 80 1e 	rlwinm  r6,r6,16,0,15                          
ffc17ebc:	88 81 00 54 	lbz     r4,84(r1)                              
                vol->free_cls = vol->free_cls_in_fs_info;             
                vol->next_cl_in_fs_info =                             
                  FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);   
ffc17ec0:	54 63 40 2e 	rlwinm  r3,r3,8,0,23                           
                    close(vol->fd);                                   
                    return -1;                                        
                }                                                     
                                                                      
                vol->free_cls_in_fs_info =                            
                  FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);  
ffc17ec4:	89 01 00 57 	lbz     r8,87(r1)                              
                vol->free_cls = vol->free_cls_in_fs_info;             
                vol->next_cl_in_fs_info =                             
                  FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);   
ffc17ec8:	54 e7 80 1e 	rlwinm  r7,r7,16,0,15                          
ffc17ecc:	88 a1 00 58 	lbz     r5,88(r1)                              
                    close(vol->fd);                                   
                    return -1;                                        
                }                                                     
                                                                      
                vol->free_cls_in_fs_info =                            
                  FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);  
ffc17ed0:	7d 66 33 78 	or      r6,r11,r6                              
                vol->free_cls = vol->free_cls_in_fs_info;             
                vol->next_cl_in_fs_info =                             
                  FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);   
ffc17ed4:	89 41 00 5b 	lbz     r10,91(r1)                             
ffc17ed8:	7c 67 3b 78 	or      r7,r3,r7                               
                    close(vol->fd);                                   
                    return -1;                                        
                }                                                     
                                                                      
                vol->free_cls_in_fs_info =                            
                  FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);  
ffc17edc:	7c c6 23 78 	or      r6,r6,r4                               
ffc17ee0:	55 08 c0 0e 	rlwinm  r8,r8,24,0,7                           
                vol->free_cls = vol->free_cls_in_fs_info;             
                vol->next_cl_in_fs_info =                             
                  FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);   
ffc17ee4:	7c e7 2b 78 	or      r7,r7,r5                               
ffc17ee8:	55 4a c0 0e 	rlwinm  r10,r10,24,0,7                         
                    close(vol->fd);                                   
                    return -1;                                        
                }                                                     
                                                                      
                vol->free_cls_in_fs_info =                            
                  FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);  
ffc17eec:	7c c8 43 78 	or      r8,r6,r8                               
                vol->free_cls = vol->free_cls_in_fs_info;             
                vol->next_cl_in_fs_info =                             
                  FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);   
ffc17ef0:	7c ea 53 78 	or      r10,r7,r10                             
                    _fat_block_release(fs_info);                      
                    close(vol->fd);                                   
                    return -1;                                        
                }                                                     
                                                                      
                vol->free_cls_in_fs_info =                            
ffc17ef4:	91 14 00 48 	stw     r8,72(r20)                             
                  FAT_GET_FSINFO_FREE_CLUSTER_COUNT(fs_info_sector);  
                vol->free_cls = vol->free_cls_in_fs_info;             
ffc17ef8:	91 14 00 44 	stw     r8,68(r20)                             
                vol->next_cl_in_fs_info =                             
ffc17efc:	91 54 00 50 	stw     r10,80(r20)                            
                  FAT_GET_FSINFO_NEXT_FREE_CLUSTER(fs_info_sector);   
                vol->next_cl = vol->next_cl_in_fs_info;               
ffc17f00:	91 54 00 4c 	stw     r10,76(r20)                            
ffc17f04:	4b ff fc e8 	b       ffc17bec <fat_init_volume_info+0x390>  
            vol->bytes_per_block_log2 = vol->bpc_log2;                
            vol->sectors_per_block = vol->spc;                        
        }                                                             
    }                                                                 
                                                                      
    return RC_OK;                                                     
ffc17f08:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
}                                                                     
ffc17f0c:	80 01 00 dc 	lwz     r0,220(r1)                             
ffc17f10:	81 c1 00 90 	lwz     r14,144(r1)                            
ffc17f14:	7c 08 03 a6 	mtlr    r0                                     
ffc17f18:	81 e1 00 94 	lwz     r15,148(r1)                            
ffc17f1c:	82 01 00 98 	lwz     r16,152(r1)                            
ffc17f20:	82 21 00 9c 	lwz     r17,156(r1)                            
ffc17f24:	82 41 00 a0 	lwz     r18,160(r1)                            
ffc17f28:	82 61 00 a4 	lwz     r19,164(r1)                            
ffc17f2c:	82 81 00 a8 	lwz     r20,168(r1)                            
ffc17f30:	82 a1 00 ac 	lwz     r21,172(r1)                            
ffc17f34:	82 c1 00 b0 	lwz     r22,176(r1)                            
ffc17f38:	82 e1 00 b4 	lwz     r23,180(r1)                            
ffc17f3c:	83 01 00 b8 	lwz     r24,184(r1)                            
ffc17f40:	83 21 00 bc 	lwz     r25,188(r1)                            
ffc17f44:	83 41 00 c0 	lwz     r26,192(r1)                            
ffc17f48:	83 61 00 c4 	lwz     r27,196(r1)                            
ffc17f4c:	83 81 00 c8 	lwz     r28,200(r1)                            
ffc17f50:	83 a1 00 cc 	lwz     r29,204(r1)                            
ffc17f54:	83 c1 00 d0 	lwz     r30,208(r1)                            
ffc17f58:	83 e1 00 d4 	lwz     r31,212(r1)                            
ffc17f5c:	38 21 00 d8 	addi    r1,r1,216                              
ffc17f60:	4e 80 00 20 	blr                                            
         (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;
ffc17f64:	98 74 00 03 	stb     r3,3(r20)                              
ffc17f68:	4b ff fa cc 	b       ffc17a34 <fat_init_volume_info+0x1d8>  
    }                                                                 
    else                                                              
    {                                                                 
        if ( vol->data_cls < FAT_FAT16_MAX_CLN)                       
        {                                                             
            vol->type = FAT_FAT16;                                    
ffc17f6c:	39 40 00 02 	li      r10,2                                  
ffc17f70:	99 54 00 0e 	stb     r10,14(r20)                            
            vol->mask = FAT_FAT16_MASK;                               
ffc17f74:	39 40 00 00 	li      r10,0                                  
ffc17f78:	61 4a ff ff 	ori     r10,r10,65535                          
ffc17f7c:	91 54 00 10 	stw     r10,16(r20)                            
            vol->eoc_val = FAT_FAT16_EOC;                             
ffc17f80:	39 40 00 00 	li      r10,0                                  
ffc17f84:	61 4a ff f8 	ori     r10,r10,65528                          
ffc17f88:	91 54 00 14 	stw     r10,20(r20)                            
ffc17f8c:	4b ff fc 44 	b       ffc17bd0 <fat_init_volume_info+0x374>  
 *     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);                                  
ffc17f90:	7e 83 a3 78 	mr      r3,r20                                 <== NOT EXECUTED
ffc17f94:	4b ff ef e1 	bl      ffc16f74 <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);                                       
ffc17f98:	80 74 00 60 	lwz     r3,96(r20)                             <== NOT EXECUTED
ffc17f9c:	4b fe e6 dd 	bl      ffc06678 <close>                       <== NOT EXECUTED
                rtems_set_errno_and_return_minus_one( EINVAL );       
ffc17fa0:	48 00 96 fd 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc17fa4:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc17fa8:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc17fac:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc17fb0:	4b ff ff 5c 	b       ffc17f0c <fat_init_volume_info+0x6b0>  <== NOT EXECUTED
    }                                                                 
                                                                      
    rc = fstat(vol->fd, &stat_buf);                                   
    if (rc != 0)                                                      
    {                                                                 
        close(vol->fd);                                               
ffc17fb4:	80 74 00 60 	lwz     r3,96(r20)                             <== NOT EXECUTED
ffc17fb8:	4b fe e6 c1 	bl      ffc06678 <close>                       <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one(ENXIO);                  
ffc17fbc:	48 00 96 e1 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc17fc0:	39 20 00 06 	li      r9,6                                   <== NOT EXECUTED
ffc17fc4:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc17fc8:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc17fcc:	4b ff ff 40 	b       ffc17f0c <fat_init_volume_info+0x6b0>  <== NOT EXECUTED
                                                                      
        vol->mirror = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_MIRROR;
        if (vol->mirror)                                              
            vol->afat = FAT_GET_BR_EXT_FLAGS(boot_rec) & FAT_BR_EXT_FLAGS_FAT_NUM;
        else                                                          
            vol->afat = 0;                                            
ffc17fd0:	99 54 00 5c 	stb     r10,92(r20)                            
ffc17fd4:	4b ff fe 44 	b       ffc17e18 <fat_init_volume_info+0x5bc>  
        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;               
ffc17fd8:	39 00 00 00 	li      r8,0                                   <== NOT EXECUTED
ffc17fdc:	4b ff fa 90 	b       ffc17a6c <fat_init_volume_info+0x210>  <== NOT EXECUTED
    {                                                                 
        close(vol->fd);                                               
        rtems_set_errno_and_return_minus_one(EINVAL);                 
    }                                                                 
                                                                      
    for (vol->spc_log2 = 0, i = vol->spc; (i & 1) == 0;               
ffc17fe0:	38 e0 00 00 	li      r7,0                                   
ffc17fe4:	4b ff fa dc 	b       ffc17ac0 <fat_init_volume_info+0x264>  
    memcpy( boot_rec, block->buffer, FAT_MAX_BPB_SIZE);               
                                                                      
    sc = rtems_bdbuf_release( block);                                 
    if (sc != RTEMS_SUCCESSFUL)                                       
    {                                                                 
        close(vol->fd);                                               
ffc17fe8:	80 74 00 60 	lwz     r3,96(r20)                             <== NOT EXECUTED
ffc17fec:	4b fe e6 8d 	bl      ffc06678 <close>                       <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one( EIO );                  
ffc17ff0:	48 00 96 ad 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc17ff4:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc17ff8:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc17ffc:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc18000:	4b ff ff 0c 	b       ffc17f0c <fat_init_volume_info+0x6b0>  <== 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);                                               
ffc18004:	80 74 00 60 	lwz     r3,96(r20)                             <== NOT EXECUTED
ffc18008:	4b fe e6 71 	bl      ffc06678 <close>                       <== NOT EXECUTED
        free(fs_info->vhash);                                         
ffc1800c:	80 74 00 6c 	lwz     r3,108(r20)                            <== NOT EXECUTED
ffc18010:	4b fe e7 01 	bl      ffc06710 <free>                        <== NOT EXECUTED
        free(fs_info->rhash);                                         
ffc18014:	80 74 00 70 	lwz     r3,112(r20)                            <== NOT EXECUTED
    if (fs_info->sec_buf == NULL)                                     
    {                                                                 
        close(vol->fd);                                               
        free(fs_info->vhash);                                         
        free(fs_info->rhash);                                         
        free(fs_info->uino);                                          
ffc18018:	4b fe e6 f9 	bl      ffc06710 <free>                        <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one( ENOMEM );               
ffc1801c:	48 00 96 81 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc18020:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc18024:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc18028:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc1802c:	4b ff fe e0 	b       ffc17f0c <fat_init_volume_info+0x6b0>  <== 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);                                               
ffc18030:	80 74 00 60 	lwz     r3,96(r20)                             <== NOT EXECUTED
ffc18034:	4b fe e6 45 	bl      ffc06678 <close>                       <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one( ENOMEM );               
ffc18038:	48 00 96 65 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc1803c:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc18040:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc18044:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc18048:	4b ff fe c4 	b       ffc17f0c <fat_init_volume_info+0x6b0>  <== NOT EXECUTED
 *     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);                                  
ffc1804c:	7e 83 a3 78 	mr      r3,r20                                 <== NOT EXECUTED
ffc18050:	4b ff ef 25 	bl      ffc16f74 <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);                                   
ffc18054:	80 74 00 60 	lwz     r3,96(r20)                             <== NOT EXECUTED
ffc18058:	4b fe e6 21 	bl      ffc06678 <close>                       <== NOT EXECUTED
                    return -1;                                        
ffc1805c:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc18060:	4b ff fe ac 	b       ffc17f0c <fat_init_volume_info+0x6b0>  <== 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);                                               
ffc18064:	80 74 00 60 	lwz     r3,96(r20)                             <== NOT EXECUTED
ffc18068:	4b fe e6 11 	bl      ffc06678 <close>                       <== NOT EXECUTED
        free(fs_info->vhash);                                         
ffc1806c:	80 74 00 6c 	lwz     r3,108(r20)                            <== NOT EXECUTED
ffc18070:	4b ff ff a8 	b       ffc18018 <fat_init_volume_info+0x7bc>  <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one( ENOMEM );               
    }                                                                 
    fs_info->sec_buf = (uint8_t *)calloc(vol->bps, sizeof(uint8_t));  
    if (fs_info->sec_buf == NULL)                                     
    {                                                                 
        close(vol->fd);                                               
ffc18074:	80 74 00 60 	lwz     r3,96(r20)                             <== NOT EXECUTED
ffc18078:	4b fe e6 01 	bl      ffc06678 <close>                       <== NOT EXECUTED
        free(fs_info->vhash);                                         
ffc1807c:	80 74 00 6c 	lwz     r3,108(r20)                            <== NOT EXECUTED
ffc18080:	4b fe e6 91 	bl      ffc06710 <free>                        <== NOT EXECUTED
        free(fs_info->rhash);                                         
ffc18084:	80 74 00 70 	lwz     r3,112(r20)                            <== NOT EXECUTED
ffc18088:	4b fe e6 89 	bl      ffc06710 <free>                        <== NOT EXECUTED
        free(fs_info->uino);                                          
ffc1808c:	80 74 00 74 	lwz     r3,116(r20)                            <== NOT EXECUTED
ffc18090:	4b ff ff 88 	b       ffc18018 <fat_init_volume_info+0x7bc>  <== NOT EXECUTED
                                                                      

ffc1f5c4 <fat_scan_fat_for_free_clusters>: uint32_t count, uint32_t *cls_added, uint32_t *last_cl, bool zero_fill ) {
ffc1f5c4:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc1f5c8:	7d 80 00 26 	mfcr    r12                                    
ffc1f5cc:	7c 08 02 a6 	mflr    r0                                     
    int            rc = RC_OK;                                        
    uint32_t       cl4find = 2;                                       
    uint32_t       next_cln = 0;                                      
ffc1f5d0:	39 20 00 00 	li      r9,0                                   
    uint32_t                              count,                      
    uint32_t                             *cls_added,                  
    uint32_t                             *last_cl,                    
    bool                                  zero_fill                   
    )                                                                 
{                                                                     
ffc1f5d4:	93 21 00 2c 	stw     r25,44(r1)                             
    uint32_t       i = 2;                                             
    ssize_t        bytes_written;                                     
                                                                      
    *cls_added = 0;                                                   
                                                                      
    if (count == 0)                                                   
ffc1f5d8:	7c b9 2b 79 	mr.     r25,r5                                 
    uint32_t                              count,                      
    uint32_t                             *cls_added,                  
    uint32_t                             *last_cl,                    
    bool                                  zero_fill                   
    )                                                                 
{                                                                     
ffc1f5dc:	90 01 00 4c 	stw     r0,76(r1)                              
ffc1f5e0:	93 41 00 30 	stw     r26,48(r1)                             
    ssize_t        bytes_written;                                     
                                                                      
    *cls_added = 0;                                                   
                                                                      
    if (count == 0)                                                   
        return rc;                                                    
ffc1f5e4:	3b 40 00 00 	li      r26,0                                  
    uint32_t                              count,                      
    uint32_t                             *cls_added,                  
    uint32_t                             *last_cl,                    
    bool                                  zero_fill                   
    )                                                                 
{                                                                     
ffc1f5e8:	93 61 00 34 	stw     r27,52(r1)                             
ffc1f5ec:	7c db 33 78 	mr      r27,r6                                 
ffc1f5f0:	93 81 00 38 	stw     r28,56(r1)                             
ffc1f5f4:	93 a1 00 3c 	stw     r29,60(r1)                             
ffc1f5f8:	7c 7d 1b 78 	mr      r29,r3                                 
ffc1f5fc:	92 a1 00 1c 	stw     r21,28(r1)                             
ffc1f600:	92 c1 00 20 	stw     r22,32(r1)                             
ffc1f604:	92 e1 00 24 	stw     r23,36(r1)                             
ffc1f608:	93 01 00 28 	stw     r24,40(r1)                             
ffc1f60c:	93 c1 00 40 	stw     r30,64(r1)                             
ffc1f610:	93 e1 00 44 	stw     r31,68(r1)                             
ffc1f614:	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;          
ffc1f618:	83 83 00 38 	lwz     r28,56(r3)                             
    bool                                  zero_fill                   
    )                                                                 
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cl4find = 2;                                       
    uint32_t       next_cln = 0;                                      
ffc1f61c:	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;                                                   
ffc1f620:	91 26 00 00 	stw     r9,0(r6)                               
                                                                      
    if (count == 0)                                                   
ffc1f624:	41 82 00 e0 	beq-    ffc1f704 <fat_scan_fat_for_free_clusters+0x140><== NEVER TAKEN
        return rc;                                                    
                                                                      
    if (fs_info->vol.next_cl != FAT_UNDEFINED_VALUE)                  
ffc1f628:	83 e3 00 4c 	lwz     r31,76(r3)                             
ffc1f62c:	7c 98 23 78 	mr      r24,r4                                 
ffc1f630:	7c f7 3b 78 	mr      r23,r7                                 
ffc1f634:	2f 9f ff ff 	cmpwi   cr7,r31,-1                             
ffc1f638:	41 9e 01 9c 	beq-    cr7,ffc1f7d4 <fat_scan_fat_for_free_clusters+0x210>
{                                                                     
    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;          
ffc1f63c:	3b 9c 00 02 	addi    r28,r28,2                              
    /*                                                                
     * 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)                                          
ffc1f640:	2b 9c 00 02 	cmplwi  cr7,r28,2                              
ffc1f644:	40 9d 01 fc 	ble-    cr7,ffc1f840 <fat_scan_fat_for_free_clusters+0x27c><== NEVER TAKEN
                rc = fat_set_fat_cluster(fs_info, save_cln, cl4find); 
                if ( rc != RC_OK )                                    
                    goto cleanup;                                     
            }                                                         
                                                                      
            if (zero_fill)                                            
ffc1f648:	2e 08 00 00 	cmpwi   cr4,r8,0                               
    /*                                                                
     * 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)                                          
ffc1f64c:	3b c0 00 02 	li      r30,2                                  
ffc1f650:	3a c0 00 00 	li      r22,0                                  
    {                                                                 
        rc = fat_get_fat_cluster(fs_info, cl4find, &next_cln);        
ffc1f654:	7f a3 eb 78 	mr      r3,r29                                 
ffc1f658:	7f e4 fb 78 	mr      r4,r31                                 
ffc1f65c:	38 a1 00 08 	addi    r5,r1,8                                
ffc1f660:	4b ff f8 a5 	bl      ffc1ef04 <fat_get_fat_cluster>         
        if ( rc != RC_OK )                                            
ffc1f664:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc1f668:	40 82 01 74 	bne-    ffc1f7dc <fat_scan_fat_for_free_clusters+0x218><== NEVER TAKEN
            if (*cls_added != 0)                                      
                fat_free_fat_clusters_chain(fs_info, (*chain));       
            return rc;                                                
        }                                                             
                                                                      
        if (next_cln == FAT_GENFAT_FREE)                              
ffc1f66c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1f670:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1f674:	40 9e 00 48 	bne-    cr7,ffc1f6bc <fat_scan_fat_for_free_clusters+0xf8>
            /*                                                        
             * 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)                                      
ffc1f678:	81 3b 00 00 	lwz     r9,0(r27)                              
ffc1f67c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1f680:	40 9e 00 cc 	bne-    cr7,ffc1f74c <fat_scan_fat_for_free_clusters+0x188>
            {                                                         
                *chain = cl4find;                                     
ffc1f684:	93 f8 00 00 	stw     r31,0(r24)                             
                rc = fat_set_fat_cluster(fs_info, cl4find, FAT_GENFAT_EOC);
ffc1f688:	7f a3 eb 78 	mr      r3,r29                                 
ffc1f68c:	7f e4 fb 78 	mr      r4,r31                                 
ffc1f690:	38 a0 ff ff 	li      r5,-1                                  
ffc1f694:	4b ff fa c1 	bl      ffc1f154 <fat_set_fat_cluster>         
                if ( rc != RC_OK )                                    
ffc1f698:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1f69c:	40 82 01 88 	bne-    ffc1f824 <fat_scan_fat_for_free_clusters+0x260><== NEVER TAKEN
                rc = fat_set_fat_cluster(fs_info, save_cln, cl4find); 
                if ( rc != RC_OK )                                    
                    goto cleanup;                                     
            }                                                         
                                                                      
            if (zero_fill)                                            
ffc1f6a0:	40 92 01 08 	bne-    cr4,ffc1f7a8 <fat_scan_fat_for_free_clusters+0x1e4>
                    goto cleanup;                                     
                }                                                     
            }                                                         
                                                                      
            save_cln = cl4find;                                       
            (*cls_added)++;                                           
ffc1f6a4:	81 3b 00 00 	lwz     r9,0(r27)                              
ffc1f6a8:	39 29 00 01 	addi    r9,r9,1                                
                                                                      
            /* have we satisfied request ? */                         
            if (*cls_added == count)                                  
ffc1f6ac:	7f 99 48 00 	cmpw    cr7,r25,r9                             
                    goto cleanup;                                     
                }                                                     
            }                                                         
                                                                      
            save_cln = cl4find;                                       
            (*cls_added)++;                                           
ffc1f6b0:	91 3b 00 00 	stw     r9,0(r27)                              
                                                                      
            /* have we satisfied request ? */                         
            if (*cls_added == count)                                  
ffc1f6b4:	41 9e 01 44 	beq-    cr7,ffc1f7f8 <fat_scan_fat_for_free_clusters+0x234>
ffc1f6b8:	7f f6 fb 78 	mr      r22,r31                                
                fat_buf_release(fs_info);                             
                return rc;                                            
            }                                                         
        }                                                             
        i++;                                                          
        cl4find++;                                                    
ffc1f6bc:	3b ff 00 01 	addi    r31,r31,1                              
        if (cl4find >= data_cls_val)                                  
ffc1f6c0:	7f 9c f8 40 	cmplw   cr7,r28,r31                            
                *last_cl = save_cln;                                  
                fat_buf_release(fs_info);                             
                return rc;                                            
            }                                                         
        }                                                             
        i++;                                                          
ffc1f6c4:	3b de 00 01 	addi    r30,r30,1                              
        cl4find++;                                                    
        if (cl4find >= data_cls_val)                                  
ffc1f6c8:	41 9d 00 08 	bgt-    cr7,ffc1f6d0 <fat_scan_fat_for_free_clusters+0x10c><== ALWAYS TAKEN
            cl4find = 2;                                              
ffc1f6cc:	3b e0 00 02 	li      r31,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)                                          
ffc1f6d0:	7f 9c f0 00 	cmpw    cr7,r28,r30                            
ffc1f6d4:	40 9e ff 80 	bne+    cr7,ffc1f654 <fat_scan_fat_for_free_clusters+0x90><== 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)             
ffc1f6d8:	81 3d 00 44 	lwz     r9,68(r29)                             <== NOT EXECUTED
        cl4find++;                                                    
        if (cl4find >= data_cls_val)                                  
            cl4find = 2;                                              
    }                                                                 
                                                                      
        fs_info->vol.next_cl = save_cln;                              
ffc1f6dc:	92 dd 00 4c 	stw     r22,76(r29)                            <== NOT EXECUTED
        if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)             
ffc1f6e0:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              <== NOT EXECUTED
ffc1f6e4:	41 9e 00 10 	beq-    cr7,ffc1f6f4 <fat_scan_fat_for_free_clusters+0x130><== NOT EXECUTED
            fs_info->vol.free_cls -= (*cls_added);                    
ffc1f6e8:	81 5b 00 00 	lwz     r10,0(r27)                             <== NOT EXECUTED
ffc1f6ec:	7d 2a 48 50 	subf    r9,r10,r9                              <== NOT EXECUTED
ffc1f6f0:	91 3d 00 44 	stw     r9,68(r29)                             <== NOT EXECUTED
                                                                      
    *last_cl = save_cln;                                              
ffc1f6f4:	92 d7 00 00 	stw     r22,0(r23)                             <== NOT EXECUTED
    fat_buf_release(fs_info);                                         
ffc1f6f8:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
    return RC_OK;                                                     
ffc1f6fc:	3b 40 00 00 	li      r26,0                                  <== NOT EXECUTED
        fs_info->vol.next_cl = save_cln;                              
        if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE)             
            fs_info->vol.free_cls -= (*cls_added);                    
                                                                      
    *last_cl = save_cln;                                              
    fat_buf_release(fs_info);                                         
ffc1f700:	4b ff 78 75 	bl      ffc16f74 <fat_buf_release>             <== 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;                                                        
}                                                                     
ffc1f704:	80 01 00 4c 	lwz     r0,76(r1)                              
ffc1f708:	7f 43 d3 78 	mr      r3,r26                                 
ffc1f70c:	81 81 00 18 	lwz     r12,24(r1)                             
ffc1f710:	7c 08 03 a6 	mtlr    r0                                     
ffc1f714:	82 a1 00 1c 	lwz     r21,28(r1)                             
ffc1f718:	82 c1 00 20 	lwz     r22,32(r1)                             
ffc1f71c:	7d 80 81 20 	mtcrf   8,r12                                  
ffc1f720:	82 e1 00 24 	lwz     r23,36(r1)                             
ffc1f724:	83 01 00 28 	lwz     r24,40(r1)                             
ffc1f728:	83 21 00 2c 	lwz     r25,44(r1)                             
ffc1f72c:	83 41 00 30 	lwz     r26,48(r1)                             
ffc1f730:	83 61 00 34 	lwz     r27,52(r1)                             
ffc1f734:	83 81 00 38 	lwz     r28,56(r1)                             
ffc1f738:	83 a1 00 3c 	lwz     r29,60(r1)                             
ffc1f73c:	83 c1 00 40 	lwz     r30,64(r1)                             
ffc1f740:	83 e1 00 44 	lwz     r31,68(r1)                             
ffc1f744:	38 21 00 48 	addi    r1,r1,72                               
ffc1f748:	4e 80 00 20 	blr                                            
                }                                                     
            }                                                         
            else                                                      
            {                                                         
                /* set EOC value to new allocated cluster */          
                rc = fat_set_fat_cluster(fs_info, cl4find, FAT_GENFAT_EOC);
ffc1f74c:	7f a3 eb 78 	mr      r3,r29                                 
ffc1f750:	7f e4 fb 78 	mr      r4,r31                                 
ffc1f754:	38 a0 ff ff 	li      r5,-1                                  
ffc1f758:	4b ff f9 fd 	bl      ffc1f154 <fat_set_fat_cluster>         
                if ( rc != RC_OK )                                    
ffc1f75c:	7c 75 1b 79 	mr.     r21,r3                                 
ffc1f760:	40 82 00 cc 	bne-    ffc1f82c <fat_scan_fat_for_free_clusters+0x268><== NEVER TAKEN
                    /* cleanup activity */                            
                    fat_free_fat_clusters_chain(fs_info, (*chain));   
                    return rc;                                        
                }                                                     
                                                                      
                rc = fat_set_fat_cluster(fs_info, save_cln, cl4find); 
ffc1f764:	7e c4 b3 78 	mr      r4,r22                                 
ffc1f768:	7f a3 eb 78 	mr      r3,r29                                 
ffc1f76c:	7f e5 fb 78 	mr      r5,r31                                 
ffc1f770:	4b ff f9 e5 	bl      ffc1f154 <fat_set_fat_cluster>         
                if ( rc != RC_OK )                                    
ffc1f774:	7c 76 1b 79 	mr.     r22,r3                                 
ffc1f778:	41 82 ff 28 	beq+    ffc1f6a0 <fat_scan_fat_for_free_clusters+0xdc><== ALWAYS TAKEN
    return RC_OK;                                                     
                                                                      
cleanup:                                                              
                                                                      
    /* cleanup activity */                                            
    fat_free_fat_clusters_chain(fs_info, (*chain));                   
ffc1f77c:	80 98 00 00 	lwz     r4,0(r24)                              <== NOT EXECUTED
ffc1f780:	7f a3 eb 78 	mr      r3,r29                                 <== 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;                                                        
ffc1f784:	7e da b3 78 	mr      r26,r22                                <== NOT EXECUTED
    return RC_OK;                                                     
                                                                      
cleanup:                                                              
                                                                      
    /* cleanup activity */                                            
    fat_free_fat_clusters_chain(fs_info, (*chain));                   
ffc1f788:	4b ff fd 01 	bl      ffc1f488 <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);           
ffc1f78c:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1f790:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc1f794:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc1f798:	4b ff f9 bd 	bl      ffc1f154 <fat_set_fat_cluster>         <== NOT EXECUTED
    fat_buf_release(fs_info);                                         
ffc1f79c:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc1f7a0:	4b ff 77 d5 	bl      ffc16f74 <fat_buf_release>             <== NOT EXECUTED
ffc1f7a4:	4b ff ff 60 	b       ffc1f704 <fat_scan_fat_for_free_clusters+0x140><== NOT EXECUTED
                    goto cleanup;                                     
            }                                                         
                                                                      
            if (zero_fill)                                            
            {                                                         
                bytes_written = fat_cluster_set (fs_info, cl4find, 0, fs_info->vol.bpc, 0);
ffc1f7a8:	a0 dd 00 06 	lhz     r6,6(r29)                              
ffc1f7ac:	7f a3 eb 78 	mr      r3,r29                                 
ffc1f7b0:	7f e4 fb 78 	mr      r4,r31                                 
ffc1f7b4:	38 a0 00 00 	li      r5,0                                   
ffc1f7b8:	38 e0 00 00 	li      r7,0                                   
ffc1f7bc:	4b ff 7c 95 	bl      ffc17450 <fat_cluster_set>             
                if (fs_info->vol.bpc != bytes_written)                
ffc1f7c0:	a1 3d 00 06 	lhz     r9,6(r29)                              
ffc1f7c4:	7f 89 18 00 	cmpw    cr7,r9,r3                              
ffc1f7c8:	41 9e fe dc 	beq+    cr7,ffc1f6a4 <fat_scan_fat_for_free_clusters+0xe0><== ALWAYS TAKEN
                {                                                     
                    rc = -1;                                          
ffc1f7cc:	3a c0 ff ff 	li      r22,-1                                 <== NOT EXECUTED
ffc1f7d0:	4b ff ff ac 	b       ffc1f77c <fat_scan_fat_for_free_clusters+0x1b8><== NOT EXECUTED
    uint32_t                             *last_cl,                    
    bool                                  zero_fill                   
    )                                                                 
{                                                                     
    int            rc = RC_OK;                                        
    uint32_t       cl4find = 2;                                       
ffc1f7d4:	3b e0 00 02 	li      r31,2                                  
ffc1f7d8:	4b ff fe 64 	b       ffc1f63c <fat_scan_fat_for_free_clusters+0x78>
    while (i < data_cls_val)                                          
    {                                                                 
        rc = fat_get_fat_cluster(fs_info, cl4find, &next_cln);        
        if ( rc != RC_OK )                                            
        {                                                             
            if (*cls_added != 0)                                      
ffc1f7dc:	81 3b 00 00 	lwz     r9,0(r27)                              <== NOT EXECUTED
ffc1f7e0:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc1f7e4:	41 9e ff 20 	beq+    cr7,ffc1f704 <fat_scan_fat_for_free_clusters+0x140><== NOT EXECUTED
                fat_free_fat_clusters_chain(fs_info, (*chain));       
ffc1f7e8:	80 98 00 00 	lwz     r4,0(r24)                              <== NOT EXECUTED
ffc1f7ec:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc1f7f0:	4b ff fc 99 	bl      ffc1f488 <fat_free_fat_clusters_chain> <== NOT EXECUTED
ffc1f7f4:	4b ff ff 10 	b       ffc1f704 <fat_scan_fat_for_free_clusters+0x140><== 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) 
ffc1f7f8:	81 3d 00 44 	lwz     r9,68(r29)                             
            (*cls_added)++;                                           
                                                                      
            /* have we satisfied request ? */                         
            if (*cls_added == count)                                  
            {                                                         
                    fs_info->vol.next_cl = save_cln;                  
ffc1f7fc:	93 fd 00 4c 	stw     r31,76(r29)                            
                    if (fs_info->vol.free_cls != FAT_UNDEFINED_VALUE) 
ffc1f800:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc1f804:	41 9e 00 10 	beq-    cr7,ffc1f814 <fat_scan_fat_for_free_clusters+0x250><== ALWAYS TAKEN
                        fs_info->vol.free_cls -= (*cls_added);        
ffc1f808:	81 5b 00 00 	lwz     r10,0(r27)                             <== NOT EXECUTED
ffc1f80c:	7d 2a 48 50 	subf    r9,r10,r9                              <== NOT EXECUTED
ffc1f810:	91 3d 00 44 	stw     r9,68(r29)                             <== NOT EXECUTED
                *last_cl = save_cln;                                  
ffc1f814:	93 f7 00 00 	stw     r31,0(r23)                             
                fat_buf_release(fs_info);                             
ffc1f818:	7f a3 eb 78 	mr      r3,r29                                 
ffc1f81c:	4b ff 77 59 	bl      ffc16f74 <fat_buf_release>             
ffc1f820:	4b ff fe e4 	b       ffc1f704 <fat_scan_fat_for_free_clusters+0x140>
             * wouldn't work properly                                 
             */                                                       
            if (*cls_added == 0)                                      
            {                                                         
                *chain = cl4find;                                     
                rc = fat_set_fat_cluster(fs_info, cl4find, FAT_GENFAT_EOC);
ffc1f824:	7c 7a 1b 78 	mr      r26,r3                                 <== NOT EXECUTED
ffc1f828:	4b ff fe dc 	b       ffc1f704 <fat_scan_fat_for_free_clusters+0x140><== NOT EXECUTED
                /* set EOC value to new allocated cluster */          
                rc = fat_set_fat_cluster(fs_info, cl4find, FAT_GENFAT_EOC);
                if ( rc != RC_OK )                                    
                {                                                     
                    /* cleanup activity */                            
                    fat_free_fat_clusters_chain(fs_info, (*chain));   
ffc1f82c:	80 98 00 00 	lwz     r4,0(r24)                              <== NOT EXECUTED
ffc1f830:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
                }                                                     
            }                                                         
            else                                                      
            {                                                         
                /* set EOC value to new allocated cluster */          
                rc = fat_set_fat_cluster(fs_info, cl4find, FAT_GENFAT_EOC);
ffc1f834:	7e ba ab 78 	mr      r26,r21                                <== NOT EXECUTED
                if ( rc != RC_OK )                                    
                {                                                     
                    /* cleanup activity */                            
                    fat_free_fat_clusters_chain(fs_info, (*chain));   
ffc1f838:	4b ff fc 51 	bl      ffc1f488 <fat_free_fat_clusters_chain> <== NOT EXECUTED
ffc1f83c:	4b ff fe c8 	b       ffc1f704 <fat_scan_fat_for_free_clusters+0x140><== 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)                                          
ffc1f840:	3a c0 00 00 	li      r22,0                                  <== NOT EXECUTED
ffc1f844:	4b ff fe 94 	b       ffc1f6d8 <fat_scan_fat_for_free_clusters+0x114><== NOT EXECUTED
                                                                      

ffc1732c <fat_sector_write>: fat_fs_info_t *fs_info, uint32_t start, uint32_t offset, uint32_t count, const void *buff) {
ffc1732c:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc17330:	7c 08 02 a6 	mflr    r0                                     
ffc17334:	93 c1 00 30 	stw     r30,48(r1)                             
    uint32_t            sec_num = start;                              
    uint32_t            ofs = offset;                                 
    uint8_t            *sec_buf;                                      
    uint32_t            c = 0;                                        
                                                                      
    while(count > 0)                                                  
ffc17338:	7c de 33 79 	mr.     r30,r6                                 
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              start,                      
    uint32_t                              offset,                     
    uint32_t                              count,                      
    const void                           *buff)                       
{                                                                     
ffc1733c:	90 01 00 3c 	stw     r0,60(r1)                              
ffc17340:	93 01 00 18 	stw     r24,24(r1)                             
ffc17344:	93 21 00 1c 	stw     r25,28(r1)                             
ffc17348:	93 41 00 20 	stw     r26,32(r1)                             
ffc1734c:	93 61 00 24 	stw     r27,36(r1)                             
ffc17350:	93 81 00 28 	stw     r28,40(r1)                             
ffc17354:	93 a1 00 2c 	stw     r29,44(r1)                             
ffc17358:	93 e1 00 34 	stw     r31,52(r1)                             
    uint32_t            sec_num = start;                              
    uint32_t            ofs = offset;                                 
    uint8_t            *sec_buf;                                      
    uint32_t            c = 0;                                        
                                                                      
    while(count > 0)                                                  
ffc1735c:	41 82 00 ec 	beq-    ffc17448 <fat_sector_write+0x11c>      <== NEVER TAKEN
ffc17360:	7c 7d 1b 78 	mr      r29,r3                                 
ffc17364:	7c f9 3b 78 	mr      r25,r7                                 
ffc17368:	7c ba 2b 78 	mr      r26,r5                                 
ffc1736c:	7c 9c 23 78 	mr      r28,r4                                 
ffc17370:	3b 60 00 00 	li      r27,0                                  
}                                                                     
                                                                      
static inline void                                                    
fat_buf_mark_modified(fat_fs_info_t *fs_info)                         
{                                                                     
    fs_info->c.modified = true;                                       
ffc17374:	3b 00 00 01 	li      r24,1                                  
ffc17378:	48 00 00 3c 	b       ffc173b4 <fat_sector_write+0x88>       
        c = MIN(count, (fs_info->vol.bps - ofs));                     
                                                                      
        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);
ffc1737c:	4b ff fd dd 	bl      ffc17158 <fat_buf_access>              
                                                                      
        fat_buf_mark_modified(fs_info);                               
                                                                      
        count -= c;                                                   
        cmpltd +=c;                                                   
        sec_num++;                                                    
ffc17380:	3b 9c 00 01 	addi    r28,r28,1                              
                                                                      
        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)                                              
ffc17384:	2f 83 00 00 	cmpwi   cr7,r3,0                               
            return -1;                                                
                                                                      
        memcpy((sec_buf + ofs), (buff + cmpltd), c);                  
ffc17388:	7c 99 da 14 	add     r4,r25,r27                             
ffc1738c:	7f e5 fb 78 	mr      r5,r31                                 
                                                                      
        fat_buf_mark_modified(fs_info);                               
                                                                      
        count -= c;                                                   
        cmpltd +=c;                                                   
ffc17390:	7f 7f da 14 	add     r27,r31,r27                            
                                                                      
        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)                                              
ffc17394:	40 9e 00 7c 	bne-    cr7,ffc17410 <fat_sector_write+0xe4>   <== NEVER TAKEN
            return -1;                                                
                                                                      
        memcpy((sec_buf + ofs), (buff + cmpltd), c);                  
ffc17398:	80 61 00 08 	lwz     r3,8(r1)                               
ffc1739c:	7c 63 d2 14 	add     r3,r3,r26                              
ffc173a0:	48 00 af dd 	bl      ffc2237c <memcpy>                      
    uint32_t            sec_num = start;                              
    uint32_t            ofs = offset;                                 
    uint8_t            *sec_buf;                                      
    uint32_t            c = 0;                                        
                                                                      
    while(count > 0)                                                  
ffc173a4:	7f df f0 51 	subf.   r30,r31,r30                            
ffc173a8:	9b 1d 00 88 	stb     r24,136(r29)                           
        fat_buf_mark_modified(fs_info);                               
                                                                      
        count -= c;                                                   
        cmpltd +=c;                                                   
        sec_num++;                                                    
        ofs = 0;                                                      
ffc173ac:	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)                                                  
ffc173b0:	41 82 00 64 	beq-    ffc17414 <fat_sector_write+0xe8>       <== ALWAYS TAKEN
    {                                                                 
        c = MIN(count, (fs_info->vol.bps - ofs));                     
ffc173b4:	a3 fd 00 00 	lhz     r31,0(r29)                             
                                                                      
        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);
ffc173b8:	7f 84 e3 78 	mr      r4,r28                                 
ffc173bc:	38 a0 00 01 	li      r5,1                                   
    uint8_t            *sec_buf;                                      
    uint32_t            c = 0;                                        
                                                                      
    while(count > 0)                                                  
    {                                                                 
        c = MIN(count, (fs_info->vol.bps - ofs));                     
ffc173c0:	7f fa f8 50 	subf    r31,r26,r31                            
ffc173c4:	7f 9f f0 40 	cmplw   cr7,r31,r30                            
                                                                      
        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);
ffc173c8:	38 c1 00 08 	addi    r6,r1,8                                
ffc173cc:	7f a3 eb 78 	mr      r3,r29                                 
    uint8_t            *sec_buf;                                      
    uint32_t            c = 0;                                        
                                                                      
    while(count > 0)                                                  
    {                                                                 
        c = MIN(count, (fs_info->vol.bps - ofs));                     
ffc173d0:	40 9d 00 08 	ble-    cr7,ffc173d8 <fat_sector_write+0xac>   
ffc173d4:	7f df f3 78 	mr      r31,r30                                
                                                                      
        if (c == fs_info->vol.bytes_per_block)                        
ffc173d8:	a1 3d 00 0a 	lhz     r9,10(r29)                             
ffc173dc:	7f 89 f8 00 	cmpw    cr7,r9,r31                             
ffc173e0:	40 9e ff 9c 	bne+    cr7,ffc1737c <fat_sector_write+0x50>   <== ALWAYS TAKEN
            rc = fat_buf_access(fs_info, sec_num, FAT_OP_TYPE_GET, &sec_buf);
ffc173e4:	7f 84 e3 78 	mr      r4,r28                                 <== NOT EXECUTED
ffc173e8:	38 a0 00 02 	li      r5,2                                   <== NOT EXECUTED
ffc173ec:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc173f0:	38 c1 00 08 	addi    r6,r1,8                                <== NOT EXECUTED
ffc173f4:	4b ff fd 65 	bl      ffc17158 <fat_buf_access>              <== NOT EXECUTED
                                                                      
        fat_buf_mark_modified(fs_info);                               
                                                                      
        count -= c;                                                   
        cmpltd +=c;                                                   
        sec_num++;                                                    
ffc173f8:	3b 9c 00 01 	addi    r28,r28,1                              <== NOT EXECUTED
                                                                      
        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)                                              
ffc173fc:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
            return -1;                                                
                                                                      
        memcpy((sec_buf + ofs), (buff + cmpltd), c);                  
ffc17400:	7c 99 da 14 	add     r4,r25,r27                             <== NOT EXECUTED
ffc17404:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
                                                                      
        fat_buf_mark_modified(fs_info);                               
                                                                      
        count -= c;                                                   
        cmpltd +=c;                                                   
ffc17408:	7f 7f da 14 	add     r27,r31,r27                            <== NOT EXECUTED
                                                                      
        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)                                              
ffc1740c:	41 9e ff 8c 	beq+    cr7,ffc17398 <fat_sector_write+0x6c>   <== NOT EXECUTED
            return -1;                                                
ffc17410:	3b 60 ff ff 	li      r27,-1                                 <== NOT EXECUTED
        cmpltd +=c;                                                   
        sec_num++;                                                    
        ofs = 0;                                                      
    }                                                                 
    return cmpltd;                                                    
}                                                                     
ffc17414:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc17418:	7f 63 db 78 	mr      r3,r27                                 
ffc1741c:	83 01 00 18 	lwz     r24,24(r1)                             
ffc17420:	7c 08 03 a6 	mtlr    r0                                     
ffc17424:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc17428:	83 41 00 20 	lwz     r26,32(r1)                             
ffc1742c:	83 61 00 24 	lwz     r27,36(r1)                             
ffc17430:	83 81 00 28 	lwz     r28,40(r1)                             
ffc17434:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc17438:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc1743c:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc17440:	38 21 00 38 	addi    r1,r1,56                               
ffc17444:	4e 80 00 20 	blr                                            
    uint32_t                              offset,                     
    uint32_t                              count,                      
    const void                           *buff)                       
{                                                                     
    int                 rc = RC_OK;                                   
    ssize_t             cmpltd = 0;                                   
ffc17448:	3b 60 00 00 	li      r27,0                                  <== NOT EXECUTED
ffc1744c:	4b ff ff c8 	b       ffc17414 <fat_sector_write+0xe8>       <== NOT EXECUTED
                                                                      

ffc1f154 <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)) )
ffc1f154:	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                      
    )                                                                 
{                                                                     
ffc1f158:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc1f15c:	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;                               
ffc1f160:	39 20 00 00 	li      r9,0                                   
fat_set_fat_cluster(                                                  
    fat_fs_info_t                        *fs_info,                    
    uint32_t                              cln,                        
    uint32_t                              in_val                      
    )                                                                 
{                                                                     
ffc1f164:	93 c1 00 30 	stw     r30,48(r1)                             
ffc1f168:	7c 9e 23 78 	mr      r30,r4                                 
ffc1f16c:	90 01 00 3c 	stw     r0,60(r1)                              
ffc1f170:	93 21 00 1c 	stw     r25,28(r1)                             
ffc1f174:	93 41 00 20 	stw     r26,32(r1)                             
ffc1f178:	93 61 00 24 	stw     r27,36(r1)                             
ffc1f17c:	93 81 00 28 	stw     r28,40(r1)                             
ffc1f180:	93 a1 00 2c 	stw     r29,44(r1)                             
ffc1f184:	93 e1 00 34 	stw     r31,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;                               
ffc1f188:	91 21 00 08 	stw     r9,8(r1)                               
                                                                      
    /* sanity check */                                                
    if ( (cln < 2) || (cln > (fs_info->vol.data_cls + 1)) )           
ffc1f18c:	40 9d 00 8c 	ble-    cr7,ffc1f218 <fat_set_fat_cluster+0xc4><== NEVER TAKEN
ffc1f190:	81 23 00 38 	lwz     r9,56(r3)                              
ffc1f194:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1f198:	39 29 00 01 	addi    r9,r9,1                                
ffc1f19c:	7f 84 48 40 	cmplw   cr7,r4,r9                              
ffc1f1a0:	41 9d 00 78 	bgt-    cr7,ffc1f218 <fat_set_fat_cluster+0xc4><== NEVER TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    sec = (FAT_FAT_OFFSET(fs_info->vol.type, cln) >> fs_info->vol.sec_log2) +
ffc1f1a4:	89 23 00 0e 	lbz     r9,14(r3)                              
ffc1f1a8:	7c ba 2b 78 	mr      r26,r5                                 
ffc1f1ac:	71 2a 00 01 	andi.   r10,r9,1                               
ffc1f1b0:	40 82 00 a4 	bne-    ffc1f254 <fat_set_fat_cluster+0x100>   
ffc1f1b4:	55 29 07 bc 	rlwinm  r9,r9,0,30,30                          
ffc1f1b8:	8b 63 00 02 	lbz     r27,2(r3)                              
ffc1f1bc:	71 2a 00 ff 	andi.   r10,r9,255                             
ffc1f1c0:	41 82 00 b0 	beq-    ffc1f270 <fat_set_fat_cluster+0x11c>   
ffc1f1c4:	54 9d 08 3c 	rlwinm  r29,r4,1,0,30                          
ffc1f1c8:	81 23 00 58 	lwz     r9,88(r3)                              
ffc1f1cc:	7f bb dc 30 	srw     r27,r29,r27                            
ffc1f1d0:	7f 7b 4a 14 	add     r27,r27,r9                             
          fs_info->vol.afat_loc;                                      
    ofs = FAT_FAT_OFFSET(fs_info->vol.type, cln) & (fs_info->vol.bps - 1);
                                                                      
    rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &sec_buf);    
ffc1f1d4:	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);
ffc1f1d8:	a3 3f 00 00 	lhz     r25,0(r31)                             
                                                                      
    rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &sec_buf);    
ffc1f1dc:	7f 64 db 78 	mr      r4,r27                                 
ffc1f1e0:	38 a0 00 01 	li      r5,1                                   
ffc1f1e4:	38 c1 00 08 	addi    r6,r1,8                                
ffc1f1e8:	4b ff 7f 71 	bl      ffc17158 <fat_buf_access>              
    if (rc != RC_OK)                                                  
ffc1f1ec:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1f1f0:	40 82 00 38 	bne-    ffc1f228 <fat_set_fat_cluster+0xd4>    <== NEVER TAKEN
        return rc;                                                    
                                                                      
    switch ( fs_info->vol.type )                                      
ffc1f1f4:	8b 9f 00 0e 	lbz     r28,14(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);
ffc1f1f8:	3b 39 ff ff 	addi    r25,r25,-1                             
ffc1f1fc:	7f bd c8 38 	and     r29,r29,r25                            
                                                                      
    rc = fat_buf_access(fs_info, sec, FAT_OP_TYPE_READ, &sec_buf);    
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    switch ( fs_info->vol.type )                                      
ffc1f200:	2f 9c 00 02 	cmpwi   cr7,r28,2                              
ffc1f204:	41 9e 00 80 	beq-    cr7,ffc1f284 <fat_set_fat_cluster+0x130>
ffc1f208:	2f 9c 00 04 	cmpwi   cr7,r28,4                              
ffc1f20c:	41 9e 01 24 	beq-    cr7,ffc1f330 <fat_set_fat_cluster+0x1dc>
ffc1f210:	2f 9c 00 01 	cmpwi   cr7,r28,1                              
ffc1f214:	41 9e 00 b8 	beq-    cr7,ffc1f2cc <fat_set_fat_cluster+0x178><== ALWAYS TAKEN
                                                                      
            fat_buf_mark_modified(fs_info);                           
            break;                                                    
                                                                      
        default:                                                      
            rtems_set_errno_and_return_minus_one(EIO);                
ffc1f218:	48 00 24 85 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc1f21c:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc1f220:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1f224:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
            break;                                                    
                                                                      
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f228:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc1f22c:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc1f230:	7c 08 03 a6 	mtlr    r0                                     
ffc1f234:	83 41 00 20 	lwz     r26,32(r1)                             
ffc1f238:	83 61 00 24 	lwz     r27,36(r1)                             
ffc1f23c:	83 81 00 28 	lwz     r28,40(r1)                             
ffc1f240:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc1f244:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc1f248:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc1f24c:	38 21 00 38 	addi    r1,r1,56                               
ffc1f250:	4e 80 00 20 	blr                                            
                                                                      
    /* 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) +
ffc1f254:	54 9d f8 7e 	rlwinm  r29,r4,31,1,31                         
ffc1f258:	8b 63 00 02 	lbz     r27,2(r3)                              
ffc1f25c:	7f bd 22 14 	add     r29,r29,r4                             
ffc1f260:	81 23 00 58 	lwz     r9,88(r3)                              
ffc1f264:	7f bb dc 30 	srw     r27,r29,r27                            
ffc1f268:	7f 7b 4a 14 	add     r27,r27,r9                             
ffc1f26c:	4b ff ff 68 	b       ffc1f1d4 <fat_set_fat_cluster+0x80>    
ffc1f270:	54 9d 10 3a 	rlwinm  r29,r4,2,0,29                          
ffc1f274:	81 23 00 58 	lwz     r9,88(r3)                              
ffc1f278:	7f bb dc 30 	srw     r27,r29,r27                            
ffc1f27c:	7f 7b 4a 14 	add     r27,r27,r9                             
ffc1f280:	4b ff ff 54 	b       ffc1f1d4 <fat_set_fat_cluster+0x80>    
            break;                                                    
                                                                      
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f284:	80 01 00 3c 	lwz     r0,60(r1)                              
            }                                                         
            break;                                                    
                                                                      
        case FAT_FAT16:                                               
            *((uint16_t   *)(sec_buf + ofs)) =                        
                    (uint16_t  )(CT_LE_W(in_val));                    
ffc1f288:	57 49 42 2e 	rlwinm  r9,r26,8,8,23                          
ffc1f28c:	57 5a c6 3e 	rlwinm  r26,r26,24,24,31                       
            break;                                                    
                                                                      
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f290:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc1f294:	7c 08 03 a6 	mtlr    r0                                     
            }                                                         
            break;                                                    
                                                                      
        case FAT_FAT16:                                               
            *((uint16_t   *)(sec_buf + ofs)) =                        
                    (uint16_t  )(CT_LE_W(in_val));                    
ffc1f298:	7d 3a d3 78 	or      r26,r9,r26                             
                }                                                     
            }                                                         
            break;                                                    
                                                                      
        case FAT_FAT16:                                               
            *((uint16_t   *)(sec_buf + ofs)) =                        
ffc1f29c:	81 21 00 08 	lwz     r9,8(r1)                               
            break;                                                    
                                                                      
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f2a0:	83 61 00 24 	lwz     r27,36(r1)                             
                }                                                     
            }                                                         
            break;                                                    
                                                                      
        case FAT_FAT16:                                               
            *((uint16_t   *)(sec_buf + ofs)) =                        
ffc1f2a4:	7f 49 eb 2e 	sthx    r26,r9,r29                             
}                                                                     
                                                                      
static inline void                                                    
fat_buf_mark_modified(fat_fs_info_t *fs_info)                         
{                                                                     
    fs_info->c.modified = true;                                       
ffc1f2a8:	39 20 00 01 	li      r9,1                                   
ffc1f2ac:	99 3f 00 88 	stb     r9,136(r31)                            
            break;                                                    
                                                                      
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f2b0:	83 41 00 20 	lwz     r26,32(r1)                             
ffc1f2b4:	83 81 00 28 	lwz     r28,40(r1)                             
ffc1f2b8:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc1f2bc:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc1f2c0:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc1f2c4:	38 21 00 38 	addi    r1,r1,56                               
ffc1f2c8:	4e 80 00 20 	blr                                            
        return rc;                                                    
                                                                      
    switch ( fs_info->vol.type )                                      
    {                                                                 
        case FAT_FAT12:                                               
            if ( FAT_CLUSTER_IS_ODD(cln) )                            
ffc1f2cc:	73 c9 00 01 	andi.   r9,r30,1                               
ffc1f2d0:	41 82 00 d0 	beq-    ffc1f3a0 <fat_set_fat_cluster+0x24c>   
            {                                                         
                fat16_clv = ((uint16_t  )in_val) << FAT_FAT12_SHIFT;  
                *(sec_buf + ofs) &= 0x0F;                             
ffc1f2d4:	81 21 00 08 	lwz     r9,8(r1)                               
    switch ( fs_info->vol.type )                                      
    {                                                                 
        case FAT_FAT12:                                               
            if ( FAT_CLUSTER_IS_ODD(cln) )                            
            {                                                         
                fat16_clv = ((uint16_t  )in_val) << FAT_FAT12_SHIFT;  
ffc1f2d8:	57 5a 24 36 	rlwinm  r26,r26,4,16,27                        
                *(sec_buf + ofs) &= 0x0F;                             
ffc1f2dc:	7d 49 e8 ae 	lbzx    r10,r9,r29                             
ffc1f2e0:	55 4a 07 3e 	clrlwi  r10,r10,28                             
ffc1f2e4:	7d 49 e9 ae 	stbx    r10,r9,r29                             
                                                                      
                *(sec_buf + ofs) |= (uint8_t)(fat16_clv & 0x00F0);    
ffc1f2e8:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1f2ec:	7d 49 e8 ae 	lbzx    r10,r9,r29                             
ffc1f2f0:	7f 4a 53 78 	or      r10,r26,r10                            
ffc1f2f4:	7d 49 e9 ae 	stbx    r10,r9,r29                             
                                                                      
                fat_buf_mark_modified(fs_info);                       
                                                                      
                if ( ofs == (fs_info->vol.bps - 1) )                  
ffc1f2f8:	a1 3f 00 00 	lhz     r9,0(r31)                              
ffc1f2fc:	9b 9f 00 88 	stb     r28,136(r31)                           
ffc1f300:	39 29 ff ff 	addi    r9,r9,-1                               
ffc1f304:	7f 89 e8 00 	cmpw    cr7,r9,r29                             
ffc1f308:	41 9e 00 f8 	beq-    cr7,ffc1f400 <fat_set_fat_cluster+0x2ac><== NEVER TAKEN
                                                                      
                     fat_buf_mark_modified(fs_info);                  
                }                                                     
                else                                                  
                {                                                     
                    *(sec_buf + ofs + 1) &= 0x00;                     
ffc1f30c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1f310:	3b bd 00 01 	addi    r29,r29,1                              
                                                                      
                    *(sec_buf + ofs + 1) |= (uint8_t  )((fat16_clv & 0xFF00)>>8);
ffc1f314:	57 5a c2 3e 	rlwinm  r26,r26,24,8,31                        
                                                                      
                     fat_buf_mark_modified(fs_info);                  
                }                                                     
                else                                                  
                {                                                     
                    *(sec_buf + ofs + 1) &= 0x00;                     
ffc1f318:	7c 69 e9 ae 	stbx    r3,r9,r29                              
                                                                      
                    *(sec_buf + ofs + 1) |= (uint8_t  )((fat16_clv & 0xFF00)>>8);
ffc1f31c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1f320:	7d 49 e8 ae 	lbzx    r10,r9,r29                             
ffc1f324:	7d 4a d3 78 	or      r10,r10,r26                            
ffc1f328:	7d 49 e9 ae 	stbx    r10,r9,r29                             
ffc1f32c:	4b ff fe fc 	b       ffc1f228 <fat_set_fat_cluster+0xd4>    
                    (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));           
ffc1f330:	57 5a 01 3e 	clrlwi  r26,r26,4                              
ffc1f334:	53 48 46 3e 	rlwimi  r8,r26,8,24,31                         
ffc1f338:	53 48 c4 2e 	rlwimi  r8,r26,24,16,23                        
ffc1f33c:	53 48 42 1e 	rlwimi  r8,r26,8,8,15                          
ffc1f340:	53 48 c0 0e 	rlwimi  r8,r26,24,0,7                          
ffc1f344:	3d 40 f0 00 	lis     r10,-4096                              
                                                                      
            *((uint32_t *)(sec_buf + ofs)) &= CT_LE_L(0xF0000000);    
ffc1f348:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1f34c:	51 47 46 3e 	rlwimi  r7,r10,8,24,31                         
ffc1f350:	51 47 c4 2e 	rlwimi  r7,r10,24,16,23                        
ffc1f354:	51 47 42 1e 	rlwimi  r7,r10,8,8,15                          
ffc1f358:	51 47 c0 0e 	rlwimi  r7,r10,24,0,7                          
            break;                                                    
                                                                      
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f35c:	80 01 00 3c 	lwz     r0,60(r1)                              
            break;                                                    
                                                                      
        case FAT_FAT32:                                               
            fat32_clv = CT_LE_L((in_val & FAT_FAT32_MASK));           
                                                                      
            *((uint32_t *)(sec_buf + ofs)) &= CT_LE_L(0xF0000000);    
ffc1f360:	7d 49 e8 2e 	lwzx    r10,r9,r29                             
            break;                                                    
                                                                      
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f364:	7c 08 03 a6 	mtlr    r0                                     
ffc1f368:	83 21 00 1c 	lwz     r25,28(r1)                             
            break;                                                    
                                                                      
        case FAT_FAT32:                                               
            fat32_clv = CT_LE_L((in_val & FAT_FAT32_MASK));           
                                                                      
            *((uint32_t *)(sec_buf + ofs)) &= CT_LE_L(0xF0000000);    
ffc1f36c:	7c ea 50 38 	and     r10,r7,r10                             
            break;                                                    
                                                                      
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f370:	83 41 00 20 	lwz     r26,32(r1)                             
        case FAT_FAT32:                                               
            fat32_clv = CT_LE_L((in_val & FAT_FAT32_MASK));           
                                                                      
            *((uint32_t *)(sec_buf + ofs)) &= CT_LE_L(0xF0000000);    
                                                                      
            *((uint32_t *)(sec_buf + ofs)) |= fat32_clv;              
ffc1f374:	7d 4a 43 78 	or      r10,r10,r8                             
            break;                                                    
                                                                      
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f378:	83 61 00 24 	lwz     r27,36(r1)                             
        case FAT_FAT32:                                               
            fat32_clv = CT_LE_L((in_val & FAT_FAT32_MASK));           
                                                                      
            *((uint32_t *)(sec_buf + ofs)) &= CT_LE_L(0xF0000000);    
                                                                      
            *((uint32_t *)(sec_buf + ofs)) |= fat32_clv;              
ffc1f37c:	7d 49 e9 2e 	stwx    r10,r9,r29                             
ffc1f380:	39 20 00 01 	li      r9,1                                   
ffc1f384:	99 3f 00 88 	stb     r9,136(r31)                            
            break;                                                    
                                                                      
    }                                                                 
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1f388:	83 81 00 28 	lwz     r28,40(r1)                             
ffc1f38c:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc1f390:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc1f394:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc1f398:	38 21 00 38 	addi    r1,r1,56                               
ffc1f39c:	4e 80 00 20 	blr                                            
                }                                                     
            }                                                         
            else                                                      
            {                                                         
                fat16_clv = ((uint16_t  )in_val) & FAT_FAT12_MASK;    
                *(sec_buf + ofs) &= 0x00;                             
ffc1f3a0:	81 21 00 08 	lwz     r9,8(r1)                               
                    *(sec_buf + ofs + 1) |= (uint8_t  )((fat16_clv & 0xFF00)>>8);
                }                                                     
            }                                                         
            else                                                      
            {                                                         
                fat16_clv = ((uint16_t  )in_val) & FAT_FAT12_MASK;    
ffc1f3a4:	57 5a 05 3e 	clrlwi  r26,r26,20                             
ffc1f3a8:	57 5e 04 3e 	clrlwi  r30,r26,16                             
                *(sec_buf + ofs) &= 0x00;                             
ffc1f3ac:	7c 69 e9 ae 	stbx    r3,r9,r29                              
                                                                      
                *(sec_buf + ofs) |= (uint8_t)(fat16_clv & 0x00FF);    
ffc1f3b0:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1f3b4:	7d 49 e8 ae 	lbzx    r10,r9,r29                             
ffc1f3b8:	7d 5a d3 78 	or      r26,r10,r26                            
ffc1f3bc:	7f 49 e9 ae 	stbx    r26,r9,r29                             
                                                                      
                fat_buf_mark_modified(fs_info);                       
                                                                      
                if ( ofs == (fs_info->vol.bps - 1) )                  
ffc1f3c0:	a1 3f 00 00 	lhz     r9,0(r31)                              
ffc1f3c4:	9b 9f 00 88 	stb     r28,136(r31)                           
ffc1f3c8:	39 29 ff ff 	addi    r9,r9,-1                               
ffc1f3cc:	7f 89 e8 00 	cmpw    cr7,r9,r29                             
ffc1f3d0:	41 9e 00 70 	beq-    cr7,ffc1f440 <fat_set_fat_cluster+0x2ec><== NEVER TAKEN
                                                                      
                    fat_buf_mark_modified(fs_info);                   
                }                                                     
                else                                                  
                {                                                     
                    *(sec_buf + ofs + 1) &= 0xF0;                     
ffc1f3d4:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1f3d8:	3b bd 00 01 	addi    r29,r29,1                              
                                                                      
                    *(sec_buf + ofs+1) |= (uint8_t)((fat16_clv & 0xFF00)>>8);
ffc1f3dc:	57 de c2 3e 	rlwinm  r30,r30,24,8,31                        
                                                                      
                    fat_buf_mark_modified(fs_info);                   
                }                                                     
                else                                                  
                {                                                     
                    *(sec_buf + ofs + 1) &= 0xF0;                     
ffc1f3e0:	7d 09 e8 ae 	lbzx    r8,r9,r29                              
ffc1f3e4:	55 08 00 36 	rlwinm  r8,r8,0,0,27                           
ffc1f3e8:	7d 09 e9 ae 	stbx    r8,r9,r29                              
                                                                      
                    *(sec_buf + ofs+1) |= (uint8_t)((fat16_clv & 0xFF00)>>8);
ffc1f3ec:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1f3f0:	7d 49 e8 ae 	lbzx    r10,r9,r29                             
ffc1f3f4:	7d 4a f3 78 	or      r10,r10,r30                            
ffc1f3f8:	7d 49 e9 ae 	stbx    r10,r9,r29                             
ffc1f3fc:	4b ff fe 2c 	b       ffc1f228 <fat_set_fat_cluster+0xd4>    
                                                                      
                fat_buf_mark_modified(fs_info);                       
                                                                      
                if ( ofs == (fs_info->vol.bps - 1) )                  
                {                                                     
                    rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
ffc1f400:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f404:	38 9b 00 01 	addi    r4,r27,1                               <== NOT EXECUTED
ffc1f408:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc1f40c:	38 c1 00 08 	addi    r6,r1,8                                <== NOT EXECUTED
ffc1f410:	4b ff 7d 49 	bl      ffc17158 <fat_buf_access>              <== NOT EXECUTED
                                        &sec_buf);                    
                    if (rc != RC_OK)                                  
ffc1f414:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc1f418:	40 a2 fe 10 	bne-    ffc1f228 <fat_set_fat_cluster+0xd4>    <== NOT EXECUTED
                        return rc;                                    
                                                                      
                     *sec_buf &= 0x00;                                
ffc1f41c:	81 21 00 08 	lwz     r9,8(r1)                               <== NOT EXECUTED
                                                                      
                     *sec_buf |= (uint8_t)((fat16_clv & 0xFF00)>>8);  
ffc1f420:	57 5a c2 3e 	rlwinm  r26,r26,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;                                
ffc1f424:	98 69 00 00 	stb     r3,0(r9)                               <== NOT EXECUTED
                                                                      
                     *sec_buf |= (uint8_t)((fat16_clv & 0xFF00)>>8);  
ffc1f428:	81 21 00 08 	lwz     r9,8(r1)                               <== NOT EXECUTED
ffc1f42c:	89 49 00 00 	lbz     r10,0(r9)                              <== NOT EXECUTED
ffc1f430:	7f 4a 53 78 	or      r10,r26,r10                            <== NOT EXECUTED
ffc1f434:	99 49 00 00 	stb     r10,0(r9)                              <== NOT EXECUTED
ffc1f438:	9b 9f 00 88 	stb     r28,136(r31)                           <== NOT EXECUTED
ffc1f43c:	4b ff fd ec 	b       ffc1f228 <fat_set_fat_cluster+0xd4>    <== NOT EXECUTED
                                                                      
                fat_buf_mark_modified(fs_info);                       
                                                                      
                if ( ofs == (fs_info->vol.bps - 1) )                  
                {                                                     
                    rc = fat_buf_access(fs_info, sec + 1, FAT_OP_TYPE_READ,
ffc1f440:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1f444:	38 9b 00 01 	addi    r4,r27,1                               <== NOT EXECUTED
ffc1f448:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc1f44c:	38 c1 00 08 	addi    r6,r1,8                                <== NOT EXECUTED
ffc1f450:	4b ff 7d 09 	bl      ffc17158 <fat_buf_access>              <== NOT EXECUTED
                                        &sec_buf);                    
                    if (rc != RC_OK)                                  
ffc1f454:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc1f458:	40 a2 fd d0 	bne-    ffc1f228 <fat_set_fat_cluster+0xd4>    <== NOT EXECUTED
                        return rc;                                    
                                                                      
                    *sec_buf &= 0xF0;                                 
ffc1f45c:	81 21 00 08 	lwz     r9,8(r1)                               <== NOT EXECUTED
                                                                      
                    *sec_buf |= (uint8_t)((fat16_clv & 0xFF00)>>8);   
ffc1f460:	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;                                 
ffc1f464:	89 49 00 00 	lbz     r10,0(r9)                              <== NOT EXECUTED
ffc1f468:	55 4a 00 36 	rlwinm  r10,r10,0,0,27                         <== NOT EXECUTED
ffc1f46c:	99 49 00 00 	stb     r10,0(r9)                              <== NOT EXECUTED
                                                                      
                    *sec_buf |= (uint8_t)((fat16_clv & 0xFF00)>>8);   
ffc1f470:	81 21 00 08 	lwz     r9,8(r1)                               <== NOT EXECUTED
ffc1f474:	89 49 00 00 	lbz     r10,0(r9)                              <== NOT EXECUTED
ffc1f478:	7f ca 53 78 	or      r10,r30,r10                            <== NOT EXECUTED
ffc1f47c:	99 49 00 00 	stb     r10,0(r9)                              <== NOT EXECUTED
ffc1f480:	9b 9f 00 88 	stb     r28,136(r31)                           <== NOT EXECUTED
ffc1f484:	4b ff fd a4 	b       ffc1f228 <fat_set_fat_cluster+0xd4>    <== NOT EXECUTED
                                                                      

ffc181c8 <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) {
ffc181c8:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc181cc:	7d 80 00 26 	mfcr    r12                                    
ffc181d0:	7c 08 02 a6 	mflr    r0                                     
ffc181d4:	93 81 00 10 	stw     r28,16(r1)                             
ffc181d8:	93 c1 00 18 	stw     r30,24(r1)                             
ffc181dc:	7c 7e 1b 78 	mr      r30,r3                                 
ffc181e0:	90 01 00 24 	stw     r0,36(r1)                              
ffc181e4:	93 a1 00 14 	stw     r29,20(r1)                             
ffc181e8:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc181ec:	91 81 00 0c 	stw     r12,12(r1)                             
    int            rc = RC_OK;                                        
    int            i = 0;                                             
                                                                      
    rc = fat_sync(fs_info);                                           
ffc181f0:	4b ff fe a5 	bl      ffc18094 <fat_sync>                    
    if ( rc != RC_OK )                                                
ffc181f4:	2e 03 00 00 	cmpwi   cr4,r3,0                               
ffc181f8:	7c 7c 1b 78 	mr      r28,r3                                 
ffc181fc:	40 92 00 c8 	bne-    cr4,ffc182c4 <fat_shutdown_drive+0xfc> <== NEVER TAKEN
        rc = -1;                                                      
ffc18200:	3b a0 00 00 	li      r29,0                                  
                                                                      
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
    {                                                                 
        rtems_chain_node    *node = NULL;                             
        rtems_chain_control *the_chain = fs_info->vhash + i;          
ffc18204:	83 fe 00 6c 	lwz     r31,108(r30)                           
ffc18208:	7f ff ea 14 	add     r31,r31,r29                            
                                                                      
        while ( (node = rtems_chain_get(the_chain)) != NULL )         
ffc1820c:	48 00 00 08 	b       ffc18214 <fat_shutdown_drive+0x4c>     
            free(node);                                               
ffc18210:	4b fe e5 01 	bl      ffc06710 <free>                        
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
ffc18214:	7f e3 fb 78 	mr      r3,r31                                 
ffc18218:	4b ff 47 81 	bl      ffc0c998 <_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 )         
ffc1821c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc18220:	40 9e ff f0 	bne+    cr7,ffc18210 <fat_shutdown_drive+0x48> 
                                                                      
    rc = fat_sync(fs_info);                                           
    if ( rc != RC_OK )                                                
        rc = -1;                                                      
                                                                      
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
ffc18224:	2f 9d 00 0c 	cmpwi   cr7,r29,12                             
ffc18228:	3b bd 00 0c 	addi    r29,r29,12                             
ffc1822c:	40 be ff d8 	bne-    cr7,ffc18204 <fat_shutdown_drive+0x3c> 
ffc18230:	3b a0 00 00 	li      r29,0                                  
    }                                                                 
                                                                      
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
    {                                                                 
        rtems_chain_node    *node = NULL;                             
        rtems_chain_control *the_chain = fs_info->rhash + i;          
ffc18234:	83 fe 00 70 	lwz     r31,112(r30)                           
ffc18238:	7f ff ea 14 	add     r31,r31,r29                            
                                                                      
        while ( (node = rtems_chain_get(the_chain)) != NULL )         
ffc1823c:	48 00 00 08 	b       ffc18244 <fat_shutdown_drive+0x7c>     
            free(node);                                               
ffc18240:	4b fe e4 d1 	bl      ffc06710 <free>                        <== NOT EXECUTED
ffc18244:	7f e3 fb 78 	mr      r3,r31                                 
ffc18248:	4b ff 47 51 	bl      ffc0c998 <_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 )         
ffc1824c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc18250:	40 9e ff f0 	bne+    cr7,ffc18240 <fat_shutdown_drive+0x78> <== NEVER TAKEN
                                                                      
        while ( (node = rtems_chain_get(the_chain)) != NULL )         
            free(node);                                               
    }                                                                 
                                                                      
    for (i = 0; i < FAT_HASH_SIZE; i++)                               
ffc18254:	2f 9d 00 0c 	cmpwi   cr7,r29,12                             
ffc18258:	3b bd 00 0c 	addi    r29,r29,12                             
ffc1825c:	40 be ff d8 	bne-    cr7,ffc18234 <fat_shutdown_drive+0x6c> 
                                                                      
        while ( (node = rtems_chain_get(the_chain)) != NULL )         
            free(node);                                               
    }                                                                 
                                                                      
    free(fs_info->vhash);                                             
ffc18260:	80 7e 00 6c 	lwz     r3,108(r30)                            
ffc18264:	4b fe e4 ad 	bl      ffc06710 <free>                        
    free(fs_info->rhash);                                             
ffc18268:	80 7e 00 70 	lwz     r3,112(r30)                            
ffc1826c:	4b fe e4 a5 	bl      ffc06710 <free>                        
                                                                      
    free(fs_info->uino);                                              
ffc18270:	80 7e 00 74 	lwz     r3,116(r30)                            
ffc18274:	4b fe e4 9d 	bl      ffc06710 <free>                        
    free(fs_info->sec_buf);                                           
ffc18278:	80 7e 00 90 	lwz     r3,144(r30)                            
ffc1827c:	4b fe e4 95 	bl      ffc06710 <free>                        
    close(fs_info->vol.fd);                                           
ffc18280:	80 7e 00 60 	lwz     r3,96(r30)                             
ffc18284:	4b fe e3 f5 	bl      ffc06678 <close>                       
                                                                      
    if (rc)                                                           
ffc18288:	41 b2 00 10 	beq+    cr4,ffc18298 <fat_shutdown_drive+0xd0> <== ALWAYS TAKEN
        errno = EIO;                                                  
ffc1828c:	48 00 94 11 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc18290:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc18294:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    return rc;                                                        
}                                                                     
ffc18298:	80 01 00 24 	lwz     r0,36(r1)                              
ffc1829c:	7f 83 e3 78 	mr      r3,r28                                 
ffc182a0:	81 81 00 0c 	lwz     r12,12(r1)                             
ffc182a4:	7c 08 03 a6 	mtlr    r0                                     
ffc182a8:	83 81 00 10 	lwz     r28,16(r1)                             
ffc182ac:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc182b0:	7d 80 81 20 	mtcrf   8,r12                                  
ffc182b4:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc182b8:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc182bc:	38 21 00 20 	addi    r1,r1,32                               
ffc182c0:	4e 80 00 20 	blr                                            
    int            rc = RC_OK;                                        
    int            i = 0;                                             
                                                                      
    rc = fat_sync(fs_info);                                           
    if ( rc != RC_OK )                                                
        rc = -1;                                                      
ffc182c4:	3b 80 ff ff 	li      r28,-1                                 <== NOT EXECUTED
ffc182c8:	2e 1c 00 00 	cmpwi   cr4,r28,0                              <== NOT EXECUTED
ffc182cc:	4b ff ff 34 	b       ffc18200 <fat_shutdown_drive+0x38>     <== NOT EXECUTED
                                                                      

ffc18094 <fat_sync>: return RC_OK; } int fat_sync(fat_fs_info_t *fs_info) {
ffc18094:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc18098:	7c 08 02 a6 	mflr    r0                                     
ffc1809c:	93 e1 00 24 	stw     r31,36(r1)                             
ffc180a0:	7c 7f 1b 78 	mr      r31,r3                                 
ffc180a4:	90 01 00 2c 	stw     r0,44(r1)                              
ffc180a8:	93 81 00 18 	stw     r28,24(r1)                             
ffc180ac:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc180b0:	93 c1 00 20 	stw     r30,32(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)                               
ffc180b4:	89 23 00 0e 	lbz     r9,14(r3)                              
ffc180b8:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc180bc:	41 9e 00 44 	beq-    cr7,ffc18100 <fat_sync+0x6c>           
 *     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;                                       
ffc180c0:	3b c0 00 00 	li      r30,0                                  
                                                                      
    rc = fat_fat32_update_fsinfo_sector(fs_info);                     
    if ( rc != RC_OK )                                                
        rc = -1;                                                      
                                                                      
    fat_buf_release(fs_info);                                         
ffc180c4:	7f e3 fb 78 	mr      r3,r31                                 
ffc180c8:	4b ff ee ad 	bl      ffc16f74 <fat_buf_release>             
                                                                      
    if (rtems_bdbuf_syncdev(fs_info->vol.dd) != RTEMS_SUCCESSFUL)     
ffc180cc:	80 7f 00 64 	lwz     r3,100(r31)                            
ffc180d0:	4b ff c9 45 	bl      ffc14a14 <rtems_bdbuf_syncdev>         
ffc180d4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc180d8:	40 9e 00 e8 	bne-    cr7,ffc181c0 <fat_sync+0x12c>          <== NEVER TAKEN
        rc = -1;                                                      
                                                                      
    return rc;                                                        
}                                                                     
ffc180dc:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc180e0:	7f c3 f3 78 	mr      r3,r30                                 
ffc180e4:	83 81 00 18 	lwz     r28,24(r1)                             
ffc180e8:	7c 08 03 a6 	mtlr    r0                                     
ffc180ec:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc180f0:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc180f4:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc180f8:	38 21 00 28 	addi    r1,r1,40                               
ffc180fc:	4e 80 00 20 	blr                                            
{                                                                     
    ssize_t ret1 = 0, ret2 = 0;                                       
                                                                      
    if (fs_info->vol.type == FAT_FAT32)                               
    {                                                                 
        uint32_t free_count = fs_info->vol.free_cls;                  
ffc18100:	81 23 00 44 	lwz     r9,68(r3)                              
        uint32_t next_free = fs_info->vol.next_cl;                    
                                                                      
        if (free_count != fs_info->vol.free_cls_in_fs_info)           
ffc18104:	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;                    
ffc18108:	83 a3 00 4c 	lwz     r29,76(r3)                             
                                                                      
        if (free_count != fs_info->vol.free_cls_in_fs_info)           
ffc1810c:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc18110:	41 9e 00 54 	beq-    cr7,ffc18164 <fat_sync+0xd0>           <== ALWAYS TAKEN
  uint32_t value                                                      
)                                                                     
{                                                                     
  uint32_t   swapped;                                                 
                                                                      
  __asm__ volatile("rlwimi %0,%1,8,24,31;"                            
ffc18114:	51 2a 46 3e 	rlwimi  r10,r9,8,24,31                         <== NOT EXECUTED
ffc18118:	51 2a c4 2e 	rlwimi  r10,r9,24,16,23                        <== NOT EXECUTED
ffc1811c:	51 2a 42 1e 	rlwimi  r10,r9,8,8,15                          <== NOT EXECUTED
ffc18120:	51 2a c0 0e 	rlwimi  r10,r9,24,0,7                          <== NOT EXECUTED
        {                                                             
            uint32_t le_free_count = CT_LE_L(free_count);             
ffc18124:	7c 3e 0b 78 	mr      r30,r1                                 <== NOT EXECUTED
                                                                      
            fs_info->vol.free_cls_in_fs_info = free_count;            
ffc18128:	91 23 00 48 	stw     r9,72(r3)                              <== NOT EXECUTED
                                                                      
            ret1 = fat_sector_write(fs_info,                          
ffc1812c:	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);             
ffc18130:	95 5e 00 08 	stwu    r10,8(r30)                             <== NOT EXECUTED
                                                                      
            fs_info->vol.free_cls_in_fs_info = free_count;            
                                                                      
            ret1 = fat_sector_write(fs_info,                          
ffc18134:	38 c0 00 04 	li      r6,4                                   <== NOT EXECUTED
ffc18138:	a0 83 00 40 	lhz     r4,64(r3)                              <== NOT EXECUTED
ffc1813c:	7f c7 f3 78 	mr      r7,r30                                 <== NOT EXECUTED
ffc18140:	4b ff f1 ed 	bl      ffc1732c <fat_sector_write>            <== 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)             
ffc18144:	81 3f 00 50 	lwz     r9,80(r31)                             <== NOT EXECUTED
        {                                                             
            uint32_t le_free_count = CT_LE_L(free_count);             
                                                                      
            fs_info->vol.free_cls_in_fs_info = free_count;            
                                                                      
            ret1 = fat_sector_write(fs_info,                          
ffc18148:	7c 7c 1b 78 	mr      r28,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)             
ffc1814c:	7f 9d 48 00 	cmpw    cr7,r29,r9                             <== NOT EXECUTED
ffc18150:	40 9e 00 28 	bne-    cr7,ffc18178 <fat_sync+0xe4>           <== NOT EXECUTED
                                    sizeof(le_next_free),             
                                    &le_next_free);                   
        }                                                             
    }                                                                 
                                                                      
    if ( (ret1 < 0) || (ret2 < 0) )                                   
ffc18154:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc18158:	40 9c ff 68 	bge+    cr7,ffc180c0 <fat_sync+0x2c>           <== NOT EXECUTED
{                                                                     
    int rc = RC_OK;                                                   
                                                                      
    rc = fat_fat32_update_fsinfo_sector(fs_info);                     
    if ( rc != RC_OK )                                                
        rc = -1;                                                      
ffc1815c:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc18160:	4b ff ff 64 	b       ffc180c4 <fat_sync+0x30>               <== 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)             
ffc18164:	81 23 00 50 	lwz     r9,80(r3)                              
ffc18168:	7f 9d 48 00 	cmpw    cr7,r29,r9                             
ffc1816c:	41 be ff 54 	beq-    cr7,ffc180c0 <fat_sync+0x2c>           <== NEVER TAKEN
 *     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;                                       
ffc18170:	3b 80 00 00 	li      r28,0                                  
ffc18174:	3b c1 00 08 	addi    r30,r1,8                               
ffc18178:	53 a9 46 3e 	rlwimi  r9,r29,8,24,31                         
ffc1817c:	53 a9 c4 2e 	rlwimi  r9,r29,24,16,23                        
ffc18180:	53 a9 42 1e 	rlwimi  r9,r29,8,8,15                          
ffc18184:	53 a9 c0 0e 	rlwimi  r9,r29,24,0,7                          
                                                                      
        if (next_free != fs_info->vol.next_cl_in_fs_info)             
        {                                                             
            uint32_t le_next_free = CT_LE_L(next_free);               
                                                                      
            fs_info->vol.next_cl_in_fs_info = next_free;              
ffc18188:	93 bf 00 50 	stw     r29,80(r31)                            
                                                                      
            ret2 = fat_sector_write(fs_info,                          
ffc1818c:	7f e3 fb 78 	mr      r3,r31                                 
ffc18190:	38 a0 01 ec 	li      r5,492                                 
ffc18194:	a0 9f 00 40 	lhz     r4,64(r31)                             
ffc18198:	38 c0 00 04 	li      r6,4                                   
ffc1819c:	7f c7 f3 78 	mr      r7,r30                                 
                                    &le_free_count);                  
        }                                                             
                                                                      
        if (next_free != fs_info->vol.next_cl_in_fs_info)             
        {                                                             
            uint32_t le_next_free = CT_LE_L(next_free);               
ffc181a0:	91 21 00 08 	stw     r9,8(r1)                               
                                                                      
            fs_info->vol.next_cl_in_fs_info = next_free;              
                                                                      
            ret2 = fat_sector_write(fs_info,                          
ffc181a4:	4b ff f1 89 	bl      ffc1732c <fat_sector_write>            
                                    sizeof(le_next_free),             
                                    &le_next_free);                   
        }                                                             
    }                                                                 
                                                                      
    if ( (ret1 < 0) || (ret2 < 0) )                                   
ffc181a8:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc181ac:	41 bc ff b0 	blt-    cr7,ffc1815c <fat_sync+0xc8>           <== NEVER TAKEN
ffc181b0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc181b4:	40 9c ff 0c 	bge+    cr7,ffc180c0 <fat_sync+0x2c>           <== ALWAYS TAKEN
{                                                                     
    int rc = RC_OK;                                                   
                                                                      
    rc = fat_fat32_update_fsinfo_sector(fs_info);                     
    if ( rc != RC_OK )                                                
        rc = -1;                                                      
ffc181b8:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc181bc:	4b ff ff 08 	b       ffc180c4 <fat_sync+0x30>               <== NOT EXECUTED
                                                                      
    fat_buf_release(fs_info);                                         
                                                                      
    if (rtems_bdbuf_syncdev(fs_info->vol.dd) != RTEMS_SUCCESSFUL)     
        rc = -1;                                                      
ffc181c0:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc181c4:	4b ff ff 18 	b       ffc180dc <fat_sync+0x48>               <== NOT EXECUTED
                                                                      

ffc3e6f8 <fchdir>: st.st_mode = 0; st.st_uid = 0; st.st_gid = 0; rtems_libio_check_fd( fd );
ffc3e6f8:	3d 20 00 00 	lis     r9,0                                   
                                                                      
/**                                                                   
 *  compatible with SVr4, 4.4BSD and X/OPEN - Change Directory        
 */                                                                   
int fchdir( int fd )                                                  
{                                                                     
ffc3e6fc:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc3e700:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  st.st_mode = 0;                                                     
  st.st_uid = 0;                                                      
  st.st_gid = 0;                                                      
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc3e704:	81 29 33 d8 	lwz     r9,13272(r9)                           
                                                                      
/**                                                                   
 *  compatible with SVr4, 4.4BSD and X/OPEN - Change Directory        
 */                                                                   
int fchdir( int fd )                                                  
{                                                                     
ffc3e708:	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 );                                         
ffc3e70c:	7f 83 48 40 	cmplw   cr7,r3,r9                              
  int rv = 0;                                                         
  rtems_libio_t *iop;                                                 
  struct stat st;                                                     
  rtems_filesystem_location_info_t loc;                               
                                                                      
  st.st_mode = 0;                                                     
ffc3e710:	39 20 00 00 	li      r9,0                                   
                                                                      
/**                                                                   
 *  compatible with SVr4, 4.4BSD and X/OPEN - Change Directory        
 */                                                                   
int fchdir( int fd )                                                  
{                                                                     
ffc3e714:	93 a1 00 6c 	stw     r29,108(r1)                            
ffc3e718:	93 c1 00 70 	stw     r30,112(r1)                            
ffc3e71c:	93 e1 00 74 	stw     r31,116(r1)                            
  int rv = 0;                                                         
  rtems_libio_t *iop;                                                 
  struct stat st;                                                     
  rtems_filesystem_location_info_t loc;                               
                                                                      
  st.st_mode = 0;                                                     
ffc3e720:	91 21 00 14 	stw     r9,20(r1)                              
  st.st_uid = 0;                                                      
ffc3e724:	b1 21 00 1a 	sth     r9,26(r1)                              
  st.st_gid = 0;                                                      
ffc3e728:	b1 21 00 1c 	sth     r9,28(r1)                              
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc3e72c:	40 9c 01 08 	bge-    cr7,ffc3e834 <fchdir+0x13c>            
  iop = rtems_libio_iop( fd );                                        
ffc3e730:	3d 20 00 00 	lis     r9,0                                   
ffc3e734:	83 e9 34 c8 	lwz     r31,13512(r9)                          
ffc3e738:	1c 63 00 38 	mulli   r3,r3,56                               
ffc3e73c:	7f ff 1a 14 	add     r31,r31,r3                             
  rtems_libio_check_is_open( iop );                                   
ffc3e740:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc3e744:	71 2a 01 00 	andi.   r10,r9,256                             
ffc3e748:	41 82 00 ec 	beq-    ffc3e834 <fchdir+0x13c>                
  if ( rv == 0 ) {                                                    
    rv = rtems_filesystem_chdir( &loc );                              
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc3e74c:	80 7f 00 28 	lwz     r3,40(r31)                             
  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 );     
ffc3e750:	3b bf 00 14 	addi    r29,r31,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 );                               
ffc3e754:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc3e758:	81 29 00 00 	lwz     r9,0(r9)                               
ffc3e75c:	7d 29 03 a6 	mtctr   r9                                     
ffc3e760:	4e 80 04 21 	bctrl                                          
ffc3e764:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc3e768:	7f a3 eb 78 	mr      r3,r29                                 
ffc3e76c:	81 29 00 18 	lwz     r9,24(r9)                              
ffc3e770:	38 81 00 08 	addi    r4,r1,8                                
ffc3e774:	7d 29 03 a6 	mtctr   r9                                     
ffc3e778:	4e 80 04 21 	bctrl                                          
  if ( rv == 0 ) {                                                    
ffc3e77c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc3e780:	41 82 00 38 	beq-    ffc3e7b8 <fchdir+0xc0>                 <== ALWAYS TAKEN
  if ( rv == 0 ) {                                                    
    rv = rtems_filesystem_chdir( &loc );                              
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc3e784:	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 );                             
ffc3e788:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc3e78c:	81 29 00 04 	lwz     r9,4(r9)                               
ffc3e790:	7d 29 03 a6 	mtctr   r9                                     
ffc3e794:	4e 80 04 21 	bctrl                                          
ffc3e798:	80 01 00 7c 	lwz     r0,124(r1)                             
ffc3e79c:	7f c3 f3 78 	mr      r3,r30                                 
ffc3e7a0:	83 a1 00 6c 	lwz     r29,108(r1)                            
ffc3e7a4:	7c 08 03 a6 	mtlr    r0                                     
ffc3e7a8:	83 c1 00 70 	lwz     r30,112(r1)                            
ffc3e7ac:	83 e1 00 74 	lwz     r31,116(r1)                            
ffc3e7b0:	38 21 00 78 	addi    r1,r1,120                              
ffc3e7b4:	4e 80 00 20 	blr                                            
  rtems_libio_check_is_open( iop );                                   
                                                                      
  rtems_filesystem_instance_lock( &iop->pathinfo );                   
  rv = (*iop->pathinfo.handlers->fstat_h)( &iop->pathinfo, &st );     
  if ( rv == 0 ) {                                                    
    bool access_ok = rtems_filesystem_check_access(                   
ffc3e7b8:	80 81 00 14 	lwz     r4,20(r1)                              
ffc3e7bc:	38 60 00 01 	li      r3,1                                   
ffc3e7c0:	a0 a1 00 1a 	lhz     r5,26(r1)                              
ffc3e7c4:	a0 c1 00 1c 	lhz     r6,28(r1)                              
ffc3e7c8:	4b fd 36 b9 	bl      ffc11e80 <rtems_filesystem_check_access>
      st.st_mode,                                                     
      st.st_uid,                                                      
      st.st_gid                                                       
    );                                                                
                                                                      
    if ( access_ok ) {                                                
ffc3e7cc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc3e7d0:	41 9e 00 50 	beq-    cr7,ffc3e820 <fchdir+0x128>            
      rtems_filesystem_location_clone( &loc, &iop->pathinfo );        
ffc3e7d4:	7f a4 eb 78 	mr      r4,r29                                 
ffc3e7d8:	38 61 00 50 	addi    r3,r1,80                               
ffc3e7dc:	4b fd 2d bd 	bl      ffc11598 <rtems_filesystem_location_clone>
  if ( rv == 0 ) {                                                    
    rv = rtems_filesystem_chdir( &loc );                              
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc3e7e0:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc3e7e4:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc3e7e8:	81 29 00 04 	lwz     r9,4(r9)                               
ffc3e7ec:	7d 29 03 a6 	mtctr   r9                                     
ffc3e7f0:	4e 80 04 21 	bctrl                                          
    }                                                                 
  }                                                                   
  rtems_filesystem_instance_unlock( &iop->pathinfo );                 
                                                                      
  if ( rv == 0 ) {                                                    
    rv = rtems_filesystem_chdir( &loc );                              
ffc3e7f4:	38 61 00 50 	addi    r3,r1,80                               
ffc3e7f8:	4b fe d6 d1 	bl      ffc2bec8 <rtems_filesystem_chdir>      
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc3e7fc:	80 01 00 7c 	lwz     r0,124(r1)                             
    }                                                                 
  }                                                                   
  rtems_filesystem_instance_unlock( &iop->pathinfo );                 
                                                                      
  if ( rv == 0 ) {                                                    
    rv = rtems_filesystem_chdir( &loc );                              
ffc3e800:	7c 7e 1b 78 	mr      r30,r3                                 
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc3e804:	83 a1 00 6c 	lwz     r29,108(r1)                            
ffc3e808:	7c 08 03 a6 	mtlr    r0                                     
ffc3e80c:	7f c3 f3 78 	mr      r3,r30                                 
ffc3e810:	83 e1 00 74 	lwz     r31,116(r1)                            
ffc3e814:	83 c1 00 70 	lwz     r30,112(r1)                            
ffc3e818:	38 21 00 78 	addi    r1,r1,120                              
ffc3e81c:	4e 80 00 20 	blr                                            
    );                                                                
                                                                      
    if ( access_ok ) {                                                
      rtems_filesystem_location_clone( &loc, &iop->pathinfo );        
    } else {                                                          
      errno = EACCES;                                                 
ffc3e820:	48 00 51 f9 	bl      ffc43a18 <__errno>                     
ffc3e824:	39 20 00 0d 	li      r9,13                                  
ffc3e828:	91 23 00 00 	stw     r9,0(r3)                               
      rv = -1;                                                        
ffc3e82c:	3b c0 ff ff 	li      r30,-1                                 
ffc3e830:	4b ff ff 54 	b       ffc3e784 <fchdir+0x8c>                 
  st.st_uid = 0;                                                      
  st.st_gid = 0;                                                      
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
ffc3e834:	48 00 51 e5 	bl      ffc43a18 <__errno>                     
ffc3e838:	39 20 00 09 	li      r9,9                                   
ffc3e83c:	91 23 00 00 	stw     r9,0(r3)                               
ffc3e840:	3b c0 ff ff 	li      r30,-1                                 
ffc3e844:	4b ff ff 54 	b       ffc3e798 <fchdir+0xa0>                 
                                                                      

ffc2c57c <fchmod>: int fchmod( int fd, mode_t mode ) { int rv; rtems_libio_t *iop; rtems_libio_check_fd( fd );
ffc2c57c:	3d 20 00 00 	lis     r9,0                                   
                                                                      
/**                                                                   
 *  POSIX 1003.1b 5.6.4 - Change File Modes                           
 */                                                                   
int fchmod( int fd, mode_t mode )                                     
{                                                                     
ffc2c580:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc2c584:	7c 08 02 a6 	mflr    r0                                     
  int rv;                                                             
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc2c588:	81 29 33 d8 	lwz     r9,13272(r9)                           
                                                                      
/**                                                                   
 *  POSIX 1003.1b 5.6.4 - Change File Modes                           
 */                                                                   
int fchmod( int fd, mode_t mode )                                     
{                                                                     
ffc2c58c:	90 01 00 1c 	stw     r0,28(r1)                              
  int rv;                                                             
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc2c590:	7f 83 48 40 	cmplw   cr7,r3,r9                              
                                                                      
/**                                                                   
 *  POSIX 1003.1b 5.6.4 - Change File Modes                           
 */                                                                   
int fchmod( int fd, mode_t mode )                                     
{                                                                     
ffc2c594:	93 c1 00 10 	stw     r30,16(r1)                             
ffc2c598:	93 e1 00 14 	stw     r31,20(r1)                             
  int rv;                                                             
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc2c59c:	40 9c 00 c0 	bge-    cr7,ffc2c65c <fchmod+0xe0>             
  iop = rtems_libio_iop( fd );                                        
ffc2c5a0:	3d 20 00 00 	lis     r9,0                                   
ffc2c5a4:	83 e9 34 c8 	lwz     r31,13512(r9)                          
ffc2c5a8:	1c 63 00 38 	mulli   r3,r3,56                               
ffc2c5ac:	7f ff 1a 14 	add     r31,r31,r3                             
  rtems_libio_check_is_open(iop);                                     
ffc2c5b0:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc2c5b4:	71 2a 01 00 	andi.   r10,r9,256                             
ffc2c5b8:	41 82 00 a4 	beq-    ffc2c65c <fchmod+0xe0>                 
                                                                      
  if (iop->pathinfo.mt_entry->writeable) {                            
ffc2c5bc:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc2c5c0:	89 23 00 29 	lbz     r9,41(r3)                              
ffc2c5c4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc2c5c8:	40 9e 00 30 	bne-    cr7,ffc2c5f8 <fchmod+0x7c>             <== ALWAYS TAKEN
    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;                                                    
ffc2c5cc:	48 01 74 4d 	bl      ffc43a18 <__errno>                     <== NOT EXECUTED
ffc2c5d0:	39 20 00 1e 	li      r9,30                                  <== NOT EXECUTED
ffc2c5d4:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    rv = -1;                                                          
ffc2c5d8:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc2c5dc:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc2c5e0:	7f c3 f3 78 	mr      r3,r30                                 
ffc2c5e4:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc2c5e8:	7c 08 03 a6 	mtlr    r0                                     
ffc2c5ec:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc2c5f0:	38 21 00 18 	addi    r1,r1,24                               
ffc2c5f4:	4e 80 00 20 	blr                                            
  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 );                               
ffc2c5f8:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc2c5fc:	81 29 00 00 	lwz     r9,0(r9)                               
ffc2c600:	90 81 00 08 	stw     r4,8(r1)                               
ffc2c604:	7d 29 03 a6 	mtctr   r9                                     
ffc2c608:	4e 80 04 21 	bctrl                                          
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open(iop);                                     
                                                                      
  if (iop->pathinfo.mt_entry->writeable) {                            
    rtems_filesystem_instance_lock( &iop->pathinfo );                 
    rv = (*iop->pathinfo.mt_entry->ops->fchmod_h)( &iop->pathinfo, mode );
ffc2c60c:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc2c610:	80 81 00 08 	lwz     r4,8(r1)                               
ffc2c614:	38 7f 00 14 	addi    r3,r31,20                              
ffc2c618:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc2c61c:	81 29 00 20 	lwz     r9,32(r9)                              
ffc2c620:	7d 29 03 a6 	mtctr   r9                                     
ffc2c624:	4e 80 04 21 	bctrl                                          
ffc2c628:	7c 7e 1b 78 	mr      r30,r3                                 
    errno = EROFS;                                                    
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc2c62c:	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 );                             
ffc2c630:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc2c634:	81 29 00 04 	lwz     r9,4(r9)                               
ffc2c638:	7d 29 03 a6 	mtctr   r9                                     
ffc2c63c:	4e 80 04 21 	bctrl                                          
ffc2c640:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc2c644:	7f c3 f3 78 	mr      r3,r30                                 
ffc2c648:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc2c64c:	7c 08 03 a6 	mtlr    r0                                     
ffc2c650:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc2c654:	38 21 00 18 	addi    r1,r1,24                               
ffc2c658:	4e 80 00 20 	blr                                            
  int rv;                                                             
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open(iop);                                     
ffc2c65c:	48 01 73 bd 	bl      ffc43a18 <__errno>                     
ffc2c660:	39 20 00 09 	li      r9,9                                   
ffc2c664:	91 23 00 00 	stw     r9,0(r3)                               
ffc2c668:	3b c0 ff ff 	li      r30,-1                                 
ffc2c66c:	4b ff ff 70 	b       ffc2c5dc <fchmod+0x60>                 
                                                                      

ffc2c670 <fchown>: int fchown( int fd, uid_t owner, gid_t group ) { int rv = 0; rtems_libio_t *iop; rtems_libio_check_fd( fd );
ffc2c670:	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 )                        
{                                                                     
ffc2c674:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc2c678:	7c 08 02 a6 	mflr    r0                                     
  int rv = 0;                                                         
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc2c67c:	81 29 33 d8 	lwz     r9,13272(r9)                           
                                                                      
/**                                                                   
 *  POSIX 1003.1b 5.6.5 - Change Owner and Group of a File            
 */                                                                   
int fchown( int fd, uid_t owner, gid_t group )                        
{                                                                     
ffc2c680:	90 01 00 1c 	stw     r0,28(r1)                              
  int rv = 0;                                                         
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc2c684:	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 )                        
{                                                                     
ffc2c688:	93 c1 00 10 	stw     r30,16(r1)                             
ffc2c68c:	93 e1 00 14 	stw     r31,20(r1)                             
  int rv = 0;                                                         
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc2c690:	40 9c 00 c8 	bge-    cr7,ffc2c758 <fchown+0xe8>             
  iop = rtems_libio_iop( fd );                                        
ffc2c694:	3d 20 00 00 	lis     r9,0                                   
ffc2c698:	83 e9 34 c8 	lwz     r31,13512(r9)                          
ffc2c69c:	1c 63 00 38 	mulli   r3,r3,56                               
ffc2c6a0:	7f ff 1a 14 	add     r31,r31,r3                             
  rtems_libio_check_is_open(iop);                                     
ffc2c6a4:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc2c6a8:	71 2a 01 00 	andi.   r10,r9,256                             
ffc2c6ac:	41 82 00 ac 	beq-    ffc2c758 <fchown+0xe8>                 
                                                                      
  if (iop->pathinfo.mt_entry->writeable) {                            
ffc2c6b0:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc2c6b4:	89 23 00 29 	lbz     r9,41(r3)                              
ffc2c6b8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc2c6bc:	40 9e 00 30 	bne-    cr7,ffc2c6ec <fchown+0x7c>             <== ALWAYS TAKEN
      owner,                                                          
      group                                                           
    );                                                                
    rtems_filesystem_instance_unlock( &iop->pathinfo );               
  } else {                                                            
    errno = EROFS;                                                    
ffc2c6c0:	48 01 73 59 	bl      ffc43a18 <__errno>                     <== NOT EXECUTED
ffc2c6c4:	39 20 00 1e 	li      r9,30                                  <== NOT EXECUTED
ffc2c6c8:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    rv = -1;                                                          
ffc2c6cc:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc2c6d0:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc2c6d4:	7f c3 f3 78 	mr      r3,r30                                 
ffc2c6d8:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc2c6dc:	7c 08 03 a6 	mtlr    r0                                     
ffc2c6e0:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc2c6e4:	38 21 00 18 	addi    r1,r1,24                               
ffc2c6e8:	4e 80 00 20 	blr                                            
  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 );                               
ffc2c6ec:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc2c6f0:	81 29 00 00 	lwz     r9,0(r9)                               
ffc2c6f4:	90 81 00 08 	stw     r4,8(r1)                               
ffc2c6f8:	7d 29 03 a6 	mtctr   r9                                     
ffc2c6fc:	90 a1 00 0c 	stw     r5,12(r1)                              
ffc2c700:	4e 80 04 21 	bctrl                                          
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open(iop);                                     
                                                                      
  if (iop->pathinfo.mt_entry->writeable) {                            
    rtems_filesystem_instance_lock( &iop->pathinfo );                 
    rv = (*iop->pathinfo.mt_entry->ops->chown_h)(                     
ffc2c704:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc2c708:	80 81 00 08 	lwz     r4,8(r1)                               
ffc2c70c:	38 7f 00 14 	addi    r3,r31,20                              
ffc2c710:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc2c714:	80 a1 00 0c 	lwz     r5,12(r1)                              
ffc2c718:	81 29 00 24 	lwz     r9,36(r9)                              
ffc2c71c:	7d 29 03 a6 	mtctr   r9                                     
ffc2c720:	4e 80 04 21 	bctrl                                          
ffc2c724:	7c 7e 1b 78 	mr      r30,r3                                 
    errno = EROFS;                                                    
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc2c728:	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 );                             
ffc2c72c:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc2c730:	81 29 00 04 	lwz     r9,4(r9)                               
ffc2c734:	7d 29 03 a6 	mtctr   r9                                     
ffc2c738:	4e 80 04 21 	bctrl                                          
ffc2c73c:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc2c740:	7f c3 f3 78 	mr      r3,r30                                 
ffc2c744:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc2c748:	7c 08 03 a6 	mtlr    r0                                     
ffc2c74c:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc2c750:	38 21 00 18 	addi    r1,r1,24                               
ffc2c754:	4e 80 00 20 	blr                                            
  int rv = 0;                                                         
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open(iop);                                     
ffc2c758:	48 01 72 c1 	bl      ffc43a18 <__errno>                     
ffc2c75c:	39 20 00 09 	li      r9,9                                   
ffc2c760:	91 23 00 00 	stw     r9,0(r3)                               
ffc2c764:	3b c0 ff ff 	li      r30,-1                                 
ffc2c768:	4b ff ff 68 	b       ffc2c6d0 <fchown+0x60>                 
                                                                      

ffc38de8 <fcntl>: int fd2; int flags; int mask; int ret = 0; rtems_libio_check_fd( fd );
ffc38de8:	3d 20 00 00 	lis     r9,0                                   
int fcntl(                                                            
  int fd,                                                             
  int cmd,                                                            
  ...                                                                 
)                                                                     
{                                                                     
ffc38dec:	7d 80 00 26 	mfcr    r12                                    
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc38df0:	81 29 27 b8 	lwz     r9,10168(r9)                           
  ...                                                                 
)                                                                     
{                                                                     
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
ffc38df4:	39 40 00 02 	li      r10,2                                  
int fcntl(                                                            
  int fd,                                                             
  int cmd,                                                            
  ...                                                                 
)                                                                     
{                                                                     
ffc38df8:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc38dfc:	7c 08 02 a6 	mflr    r0                                     
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc38e00:	7f 83 48 40 	cmplw   cr7,r3,r9                              
  ...                                                                 
)                                                                     
{                                                                     
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
ffc38e04:	99 41 00 08 	stb     r10,8(r1)                              
ffc38e08:	39 41 00 50 	addi    r10,r1,80                              
ffc38e0c:	91 41 00 0c 	stw     r10,12(r1)                             
ffc38e10:	39 41 00 10 	addi    r10,r1,16                              
int fcntl(                                                            
  int fd,                                                             
  int cmd,                                                            
  ...                                                                 
)                                                                     
{                                                                     
ffc38e14:	90 01 00 4c 	stw     r0,76(r1)                              
ffc38e18:	93 41 00 30 	stw     r26,48(r1)                             
ffc38e1c:	93 61 00 34 	stw     r27,52(r1)                             
ffc38e20:	93 81 00 38 	stw     r28,56(r1)                             
ffc38e24:	93 a1 00 3c 	stw     r29,60(r1)                             
ffc38e28:	93 c1 00 40 	stw     r30,64(r1)                             
ffc38e2c:	93 e1 00 44 	stw     r31,68(r1)                             
ffc38e30:	91 81 00 2c 	stw     r12,44(r1)                             
ffc38e34:	90 a1 00 18 	stw     r5,24(r1)                              
ffc38e38:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc38e3c:	90 e1 00 20 	stw     r7,32(r1)                              
  int            ret;                                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
ffc38e40:	91 41 00 10 	stw     r10,16(r1)                             
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc38e44:	40 9c 02 8c 	bge-    cr7,ffc390d0 <fcntl+0x2e8>             
  iop = rtems_libio_iop( fd );                                        
ffc38e48:	3f 80 00 00 	lis     r28,0                                  
ffc38e4c:	1f a3 00 38 	mulli   r29,r3,56                              
ffc38e50:	81 3c 28 68 	lwz     r9,10344(r28)                          
ffc38e54:	7f a9 ea 14 	add     r29,r9,r29                             
  rtems_libio_check_is_open(iop);                                     
ffc38e58:	80 7d 00 10 	lwz     r3,16(r29)                             
ffc38e5c:	70 69 01 00 	andi.   r9,r3,256                              
ffc38e60:	41 82 02 70 	beq-    ffc390d0 <fcntl+0x2e8>                 
                                                                      
  /*                                                                  
   *  This switch should contain all the cases from POSIX.            
   */                                                                 
                                                                      
  switch ( cmd ) {                                                    
ffc38e64:	2b 84 00 09 	cmplwi  cr7,r4,9                               
ffc38e68:	7c 9e 23 78 	mr      r30,r4                                 
ffc38e6c:	40 9d 00 48 	ble-    cr7,ffc38eb4 <fcntl+0xcc>              
      errno = ENOTSUP;                                                
      ret = -1;                                                       
      break;                                                          
                                                                      
    default:                                                          
      errno = EINVAL;                                                 
ffc38e70:	4b ff 01 89 	bl      ffc28ff8 <__errno>                     
ffc38e74:	39 20 00 16 	li      r9,22                                  
ffc38e78:	91 23 00 00 	stw     r9,0(r3)                               
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open(iop);                                     
ffc38e7c:	3b e0 ff ff 	li      r31,-1                                 
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
  ret = vfcntl(fd,cmd,ap);                                            
  va_end(ap);                                                         
  return ret;                                                         
}                                                                     
ffc38e80:	80 01 00 4c 	lwz     r0,76(r1)                              
ffc38e84:	7f e3 fb 78 	mr      r3,r31                                 
ffc38e88:	81 81 00 2c 	lwz     r12,44(r1)                             
ffc38e8c:	7c 08 03 a6 	mtlr    r0                                     
ffc38e90:	83 41 00 30 	lwz     r26,48(r1)                             
ffc38e94:	83 61 00 34 	lwz     r27,52(r1)                             
ffc38e98:	7d 80 81 20 	mtcrf   8,r12                                  
ffc38e9c:	83 81 00 38 	lwz     r28,56(r1)                             
ffc38ea0:	83 a1 00 3c 	lwz     r29,60(r1)                             
ffc38ea4:	83 c1 00 40 	lwz     r30,64(r1)                             
ffc38ea8:	83 e1 00 44 	lwz     r31,68(r1)                             
ffc38eac:	38 21 00 48 	addi    r1,r1,72                               
ffc38eb0:	4e 80 00 20 	blr                                            
                                                                      
  /*                                                                  
   *  This switch should contain all the cases from POSIX.            
   */                                                                 
                                                                      
  switch ( cmd ) {                                                    
ffc38eb4:	3d 20 ff c4 	lis     r9,-60                                 
ffc38eb8:	39 29 f8 c0 	addi    r9,r9,-1856                            
ffc38ebc:	54 8a 10 3a 	rlwinm  r10,r4,2,0,29                          
ffc38ec0:	7d 49 50 2e 	lwzx    r10,r9,r10                             
ffc38ec4:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc38ec8:	7d 29 03 a6 	mtctr   r9                                     
ffc38ecc:	4e 80 04 20 	bctr                                           
      errno = ENOTSUP;                                                
      ret = -1;                                                       
      break;                                                          
                                                                      
    case F_GETOWN:       /*  for sockets. */                          
      errno = ENOTSUP;                                                
ffc38ed0:	4b ff 01 29 	bl      ffc28ff8 <__errno>                     
ffc38ed4:	39 20 00 86 	li      r9,134                                 
ffc38ed8:	91 23 00 00 	stw     r9,0(r3)                               
ffc38edc:	4b ff ff a0 	b       ffc38e7c <fcntl+0x94>                  
    case F_GETFL:        /* more flags (cloexec) */                   
      ret = rtems_libio_to_fcntl_flags( iop->flags );                 
      break;                                                          
                                                                      
    case F_SETFL:                                                     
      flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );           
ffc38ee0:	89 21 00 08 	lbz     r9,8(r1)                               
ffc38ee4:	2b 89 00 07 	cmplwi  cr7,r9,7                               
ffc38ee8:	40 9d 01 d0 	ble-    cr7,ffc390b8 <fcntl+0x2d0>             <== ALWAYS TAKEN
ffc38eec:	81 41 00 0c 	lwz     r10,12(r1)                             <== NOT EXECUTED
ffc38ef0:	39 2a 00 04 	addi    r9,r10,4                               <== NOT EXECUTED
ffc38ef4:	91 21 00 0c 	stw     r9,12(r1)                              <== NOT EXECUTED
ffc38ef8:	80 6a 00 00 	lwz     r3,0(r10)                              
{                                                                     
  rtems_libio_t *iop;                                                 
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
ffc38efc:	3b e0 00 00 	li      r31,0                                  
    case F_GETFL:        /* more flags (cloexec) */                   
      ret = rtems_libio_to_fcntl_flags( iop->flags );                 
      break;                                                          
                                                                      
    case F_SETFL:                                                     
      flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );           
ffc38f00:	4b fd 17 ed 	bl      ffc0a6ec <rtems_libio_fcntl_flags>     
                                                                      
      /*                                                              
       *  XXX If we are turning on append, should we seek to the end? 
       */                                                             
                                                                      
      iop->flags = (iop->flags & ~mask) | (flags & mask);             
ffc38f04:	81 3d 00 10 	lwz     r9,16(r29)                             
ffc38f08:	70 63 02 01 	andi.   r3,r3,513                              
ffc38f0c:	39 40 fd fe 	li      r10,-514                               
ffc38f10:	7d 49 48 38 	and     r9,r10,r9                              
ffc38f14:	7c 69 4b 78 	or      r9,r3,r9                               
ffc38f18:	91 3d 00 10 	stw     r9,16(r29)                             
ffc38f1c:	48 00 00 14 	b       ffc38f30 <fcntl+0x148>                 
      else                                                            
        iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;                     
      break;                                                          
                                                                      
    case F_GETFL:        /* more flags (cloexec) */                   
      ret = rtems_libio_to_fcntl_flags( iop->flags );                 
ffc38f20:	4b fd 18 2d 	bl      ffc0a74c <rtems_libio_to_fcntl_flags>  
ffc38f24:	2e 03 00 00 	cmpwi   cr4,r3,0                               
ffc38f28:	7c 7f 1b 78 	mr      r31,r3                                 
  /*                                                                  
   *  If we got this far successfully, then we give the optional      
   *  filesystem specific handler a chance to process this.           
   */                                                                 
                                                                      
  if (ret >= 0) {                                                     
ffc38f2c:	41 b0 ff 54 	blt-    cr4,ffc38e80 <fcntl+0x98>              <== NEVER TAKEN
    int err = (*iop->pathinfo.handlers->fcntl_h)( iop, cmd );         
ffc38f30:	81 3d 00 24 	lwz     r9,36(r29)                             
ffc38f34:	7f c4 f3 78 	mr      r4,r30                                 
ffc38f38:	7f a3 eb 78 	mr      r3,r29                                 
ffc38f3c:	81 29 00 28 	lwz     r9,40(r9)                              
ffc38f40:	7d 29 03 a6 	mtctr   r9                                     
ffc38f44:	4e 80 04 21 	bctrl                                          
    if (err) {                                                        
ffc38f48:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc38f4c:	41 82 ff 34 	beq+    ffc38e80 <fcntl+0x98>                  <== ALWAYS TAKEN
      errno = err;                                                    
ffc38f50:	4b ff 00 a9 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
  ret = vfcntl(fd,cmd,ap);                                            
  va_end(ap);                                                         
  return ret;                                                         
}                                                                     
ffc38f54:	80 01 00 4c 	lwz     r0,76(r1)                              <== NOT EXECUTED
ffc38f58:	81 81 00 2c 	lwz     r12,44(r1)                             <== NOT EXECUTED
                                                                      
  if (ret >= 0) {                                                     
    int err = (*iop->pathinfo.handlers->fcntl_h)( iop, cmd );         
    if (err) {                                                        
      errno = err;                                                    
      ret = -1;                                                       
ffc38f5c:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
  ret = vfcntl(fd,cmd,ap);                                            
  va_end(ap);                                                         
  return ret;                                                         
}                                                                     
ffc38f60:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
   */                                                                 
                                                                      
  if (ret >= 0) {                                                     
    int err = (*iop->pathinfo.handlers->fcntl_h)( iop, cmd );         
    if (err) {                                                        
      errno = err;                                                    
ffc38f64:	93 c3 00 00 	stw     r30,0(r3)                              <== NOT EXECUTED
  va_list        ap;                                                  
  va_start( ap, cmd );                                                
  ret = vfcntl(fd,cmd,ap);                                            
  va_end(ap);                                                         
  return ret;                                                         
}                                                                     
ffc38f68:	7d 80 81 20 	mtcrf   8,r12                                  <== NOT EXECUTED
ffc38f6c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc38f70:	83 41 00 30 	lwz     r26,48(r1)                             <== NOT EXECUTED
ffc38f74:	83 61 00 34 	lwz     r27,52(r1)                             <== NOT EXECUTED
ffc38f78:	83 81 00 38 	lwz     r28,56(r1)                             <== NOT EXECUTED
ffc38f7c:	83 a1 00 3c 	lwz     r29,60(r1)                             <== NOT EXECUTED
ffc38f80:	83 c1 00 40 	lwz     r30,64(r1)                             <== NOT EXECUTED
ffc38f84:	83 e1 00 44 	lwz     r31,68(r1)                             <== NOT EXECUTED
ffc38f88:	38 21 00 48 	addi    r1,r1,72                               <== NOT EXECUTED
ffc38f8c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
       *  if a new process is exec()'ed.  Since RTEMS does not support
       *  processes, then we can ignore this one except to make       
       *  F_GETFD work.                                               
       */                                                             
                                                                      
      if ( va_arg( ap, int ) )                                        
ffc38f90:	89 21 00 08 	lbz     r9,8(r1)                               
ffc38f94:	2b 89 00 07 	cmplwi  cr7,r9,7                               
ffc38f98:	41 9d 01 10 	bgt-    cr7,ffc390a8 <fcntl+0x2c0>             <== NEVER TAKEN
ffc38f9c:	55 28 10 3a 	rlwinm  r8,r9,2,0,29                           
ffc38fa0:	81 41 00 10 	lwz     r10,16(r1)                             
ffc38fa4:	39 29 00 01 	addi    r9,r9,1                                
ffc38fa8:	99 21 00 08 	stb     r9,8(r1)                               
ffc38fac:	7d 4a 42 14 	add     r10,r10,r8                             
ffc38fb0:	81 2a 00 00 	lwz     r9,0(r10)                              
ffc38fb4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc38fb8:	41 9e 01 2c 	beq-    cr7,ffc390e4 <fcntl+0x2fc>             
        iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;                      
ffc38fbc:	60 63 08 00 	ori     r3,r3,2048                             
ffc38fc0:	90 7d 00 10 	stw     r3,16(r29)                             
{                                                                     
  rtems_libio_t *iop;                                                 
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
ffc38fc4:	3b e0 00 00 	li      r31,0                                  
ffc38fc8:	4b ff ff 68 	b       ffc38f30 <fcntl+0x148>                 
      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);          
ffc38fcc:	54 7f af fe 	rlwinm  r31,r3,21,31,31                        
ffc38fd0:	4b ff ff 60 	b       ffc38f30 <fcntl+0x148>                 
   *  This switch should contain all the cases from POSIX.            
   */                                                                 
                                                                      
  switch ( cmd ) {                                                    
    case F_DUPFD:        /* dup */                                    
      fd2 = va_arg( ap, int );                                        
ffc38fd4:	89 21 00 08 	lbz     r9,8(r1)                               
ffc38fd8:	2b 89 00 07 	cmplwi  cr7,r9,7                               
ffc38fdc:	41 9d 00 bc 	bgt-    cr7,ffc39098 <fcntl+0x2b0>             <== NEVER TAKEN
ffc38fe0:	39 29 00 01 	addi    r9,r9,1                                
ffc38fe4:	99 21 00 08 	stb     r9,8(r1)                               
                                                                      
  /*                                                                  
   * FIXME: We ignore the start value fd2 for the file descriptor search.  This
   * is not POSIX conform.                                            
   */                                                                 
  rtems_libio_t *diop = rtems_libio_allocate();                       
ffc38fe8:	4b fd 17 b5 	bl      ffc0a79c <rtems_libio_allocate>        
                                                                      
  if (diop != NULL) {                                                 
ffc38fec:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc38ff0:	41 a2 fe 8c 	beq-    ffc38e7c <fcntl+0x94>                  
    int oflag = rtems_libio_to_fcntl_flags( iop->flags );             
ffc38ff4:	80 7d 00 10 	lwz     r3,16(r29)                             
ffc38ff8:	4b fd 17 55 	bl      ffc0a74c <rtems_libio_to_fcntl_flags>  
                                                                      
    oflag &= ~O_CREAT;                                                
    diop->flags |= rtems_libio_fcntl_flags( oflag );                  
ffc38ffc:	83 5b 00 10 	lwz     r26,16(r27)                            
  rtems_libio_t *diop = rtems_libio_allocate();                       
                                                                      
  if (diop != NULL) {                                                 
    int oflag = rtems_libio_to_fcntl_flags( iop->flags );             
                                                                      
    oflag &= ~O_CREAT;                                                
ffc39000:	54 7f 05 ea 	rlwinm  r31,r3,0,23,21                         
    diop->flags |= rtems_libio_fcntl_flags( oflag );                  
ffc39004:	7f e3 fb 78 	mr      r3,r31                                 
ffc39008:	4b fd 16 e5 	bl      ffc0a6ec <rtems_libio_fcntl_flags>     
  int cmd,                                                            
  int arg                                                             
)                                                                     
{                                                                     
  return fcntl( fd, cmd, arg );                                       
}                                                                     
ffc3900c:	81 3d 00 28 	lwz     r9,40(r29)                             
                                                                      
  if (diop != NULL) {                                                 
    int oflag = rtems_libio_to_fcntl_flags( iop->flags );             
                                                                      
    oflag &= ~O_CREAT;                                                
    diop->flags |= rtems_libio_fcntl_flags( oflag );                  
ffc39010:	7c 7a d3 78 	or      r26,r3,r26                             
  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 );                               
ffc39014:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc39018:	7d 23 4b 78 	mr      r3,r9                                  
ffc3901c:	81 2a 00 00 	lwz     r9,0(r10)                              
ffc39020:	93 5b 00 10 	stw     r26,16(r27)                            
ffc39024:	7d 29 03 a6 	mtctr   r9                                     
ffc39028:	4e 80 04 21 	bctrl                                          
                                                                      
    rtems_filesystem_instance_lock( &iop->pathinfo );                 
    rtems_filesystem_location_clone( &diop->pathinfo, &iop->pathinfo );
ffc3902c:	38 9d 00 14 	addi    r4,r29,20                              
ffc39030:	38 7b 00 14 	addi    r3,r27,20                              
ffc39034:	4b fe 31 65 	bl      ffc1c198 <rtems_filesystem_location_clone>
  int cmd,                                                            
  int arg                                                             
)                                                                     
{                                                                     
  return fcntl( fd, cmd, arg );                                       
}                                                                     
ffc39038:	80 7d 00 28 	lwz     r3,40(r29)                             
  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 );                             
ffc3903c:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc39040:	81 29 00 04 	lwz     r9,4(r9)                               
ffc39044:	7d 29 03 a6 	mtctr   r9                                     
ffc39048:	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 );  
ffc3904c:	81 3b 00 24 	lwz     r9,36(r27)                             
ffc39050:	7f e5 fb 78 	mr      r5,r31                                 
ffc39054:	81 29 00 00 	lwz     r9,0(r9)                               
ffc39058:	7f 63 db 78 	mr      r3,r27                                 
ffc3905c:	38 80 00 00 	li      r4,0                                   
ffc39060:	38 c0 00 00 	li      r6,0                                   
ffc39064:	7d 29 03 a6 	mtctr   r9                                     
ffc39068:	4e 80 04 21 	bctrl                                          
    if ( rv == 0 ) {                                                  
ffc3906c:	2e 03 00 00 	cmpwi   cr4,r3,0                               
ffc39070:	7c 7f 1b 78 	mr      r31,r3                                 
ffc39074:	40 92 00 80 	bne-    cr4,ffc390f4 <fcntl+0x30c>             <== NEVER TAKEN
      rv = diop - rtems_libio_iops;                                   
ffc39078:	83 fc 28 68 	lwz     r31,10344(r28)                         
ffc3907c:	3d 20 b6 db 	lis     r9,-18725                              
ffc39080:	61 29 6d b7 	ori     r9,r9,28087                            
ffc39084:	7f ff d8 50 	subf    r31,r31,r27                            
ffc39088:	7f ff 1e 70 	srawi   r31,r31,3                              
ffc3908c:	7f ff 49 d6 	mullw   r31,r31,r9                             
ffc39090:	2e 1f 00 00 	cmpwi   cr4,r31,0                              
ffc39094:	4b ff fe 98 	b       ffc38f2c <fcntl+0x144>                 
   *  This switch should contain all the cases from POSIX.            
   */                                                                 
                                                                      
  switch ( cmd ) {                                                    
    case F_DUPFD:        /* dup */                                    
      fd2 = va_arg( ap, int );                                        
ffc39098:	81 21 00 0c 	lwz     r9,12(r1)                              <== NOT EXECUTED
ffc3909c:	39 29 00 04 	addi    r9,r9,4                                <== NOT EXECUTED
ffc390a0:	91 21 00 0c 	stw     r9,12(r1)                              <== NOT EXECUTED
ffc390a4:	4b ff ff 44 	b       ffc38fe8 <fcntl+0x200>                 <== NOT EXECUTED
       *  if a new process is exec()'ed.  Since RTEMS does not support
       *  processes, then we can ignore this one except to make       
       *  F_GETFD work.                                               
       */                                                             
                                                                      
      if ( va_arg( ap, int ) )                                        
ffc390a8:	81 41 00 0c 	lwz     r10,12(r1)                             <== NOT EXECUTED
ffc390ac:	39 2a 00 04 	addi    r9,r10,4                               <== NOT EXECUTED
ffc390b0:	91 21 00 0c 	stw     r9,12(r1)                              <== NOT EXECUTED
ffc390b4:	4b ff fe fc 	b       ffc38fb0 <fcntl+0x1c8>                 <== NOT EXECUTED
    case F_GETFL:        /* more flags (cloexec) */                   
      ret = rtems_libio_to_fcntl_flags( iop->flags );                 
      break;                                                          
                                                                      
    case F_SETFL:                                                     
      flags = rtems_libio_fcntl_flags( va_arg( ap, int ) );           
ffc390b8:	81 41 00 10 	lwz     r10,16(r1)                             
ffc390bc:	55 28 10 3a 	rlwinm  r8,r9,2,0,29                           
ffc390c0:	39 29 00 01 	addi    r9,r9,1                                
ffc390c4:	7d 4a 42 14 	add     r10,r10,r8                             
ffc390c8:	99 21 00 08 	stb     r9,8(r1)                               
ffc390cc:	4b ff fe 2c 	b       ffc38ef8 <fcntl+0x110>                 
  int            mask;                                                
  int            ret = 0;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open(iop);                                     
ffc390d0:	4b fe ff 29 	bl      ffc28ff8 <__errno>                     
ffc390d4:	39 20 00 09 	li      r9,9                                   
ffc390d8:	91 23 00 00 	stw     r9,0(r3)                               
ffc390dc:	3b e0 ff ff 	li      r31,-1                                 
ffc390e0:	4b ff fd a0 	b       ffc38e80 <fcntl+0x98>                  
       */                                                             
                                                                      
      if ( va_arg( ap, int ) )                                        
        iop->flags |= LIBIO_FLAGS_CLOSE_ON_EXEC;                      
      else                                                            
        iop->flags &= ~LIBIO_FLAGS_CLOSE_ON_EXEC;                     
ffc390e4:	54 63 05 66 	rlwinm  r3,r3,0,21,19                          
ffc390e8:	90 7d 00 10 	stw     r3,16(r29)                             
{                                                                     
  rtems_libio_t *iop;                                                 
  int            fd2;                                                 
  int            flags;                                               
  int            mask;                                                
  int            ret = 0;                                             
ffc390ec:	3b e0 00 00 	li      r31,0                                  
ffc390f0:	4b ff fe 40 	b       ffc38f30 <fcntl+0x148>                 
     */                                                               
    rv = (*diop->pathinfo.handlers->open_h)( diop, NULL, oflag, 0 );  
    if ( rv == 0 ) {                                                  
      rv = diop - rtems_libio_iops;                                   
    } else {                                                          
      rtems_libio_free( diop );                                       
ffc390f4:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc390f8:	4b fd 17 21 	bl      ffc0a818 <rtems_libio_free>            <== NOT EXECUTED
ffc390fc:	4b ff fe 30 	b       ffc38f2c <fcntl+0x144>                 <== NOT EXECUTED
                                                                      

ffc110c0 <fifo_open>: int fifo_open( pipe_control_t **pipep, rtems_libio_t *iop ) {
ffc110c0:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc110c4:	7c 08 02 a6 	mflr    r0                                     
ffc110c8:	93 e1 00 2c 	stw     r31,44(r1)                             
                                                                      
static int pipe_lock(void)                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
ffc110cc:	3f e0 00 00 	lis     r31,0                                  
ffc110d0:	81 3f 2a 20 	lwz     r9,10784(r31)                          
                                                                      
int fifo_open(                                                        
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
ffc110d4:	93 81 00 20 	stw     r28,32(r1)                             
ffc110d8:	7c 9c 23 78 	mr      r28,r4                                 
                                                                      
static int pipe_lock(void)                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
ffc110dc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
                                                                      
int fifo_open(                                                        
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
ffc110e0:	93 a1 00 24 	stw     r29,36(r1)                             
ffc110e4:	7c 7d 1b 78 	mr      r29,r3                                 
ffc110e8:	93 c1 00 28 	stw     r30,40(r1)                             
                                                                      
static int pipe_lock(void)                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
ffc110ec:	3b df 2a 20 	addi    r30,r31,10784                          
                                                                      
int fifo_open(                                                        
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
ffc110f0:	90 01 00 34 	stw     r0,52(r1)                              
ffc110f4:	93 41 00 18 	stw     r26,24(r1)                             
ffc110f8:	93 61 00 1c 	stw     r27,28(r1)                             
                                                                      
static int pipe_lock(void)                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
ffc110fc:	41 9e 00 54 	beq-    cr7,ffc11150 <fifo_open+0x90>          
                                                                      
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
    sc = rtems_semaphore_obtain(pipe_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc11100:	7d 23 4b 78 	mr      r3,r9                                  
ffc11104:	38 80 00 00 	li      r4,0                                   
ffc11108:	38 a0 00 00 	li      r5,0                                   
ffc1110c:	4b ff a4 dd 	bl      ffc0b5e8 <rtems_semaphore_obtain>      
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
ffc11110:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11114:	40 9e 01 a8 	bne-    cr7,ffc112bc <fifo_open+0x1fc>         <== NEVER TAKEN
                                                                      
  err = pipe_lock();                                                  
  if (err)                                                            
    return err;                                                       
                                                                      
  pipe = *pipep;                                                      
ffc11118:	83 dd 00 00 	lwz     r30,0(r29)                             
  if (pipe == NULL) {                                                 
ffc1111c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc11120:	41 9e 00 60 	beq-    cr7,ffc11180 <fifo_open+0xc0>          
    err = pipe_alloc(&pipe);                                          
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc11124:	80 7e 00 28 	lwz     r3,40(r30)                             
ffc11128:	38 80 00 00 	li      r4,0                                   
ffc1112c:	38 a0 00 00 	li      r5,0                                   
ffc11130:	4b ff a4 b9 	bl      ffc0b5e8 <rtems_semaphore_obtain>      
ffc11134:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11138:	41 9e 02 28 	beq-    cr7,ffc11360 <fifo_open+0x2a0>         <== ALWAYS TAKEN
    err = -EINTR;                                                     
                                                                      
  if (*pipep == NULL) {                                               
ffc1113c:	81 3d 00 00 	lwz     r9,0(r29)                              <== NOT EXECUTED
ffc11140:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc11144:	41 9e 01 a8 	beq-    cr7,ffc112ec <fifo_open+0x22c>         <== NOT EXECUTED
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    err = -EINTR;                                                     
ffc11148:	3b c0 ff fc 	li      r30,-4                                 <== NOT EXECUTED
ffc1114c:	48 00 01 cc 	b       ffc11318 <fifo_open+0x258>             <== NOT EXECUTED
 */                                                                   
#include <rtems/userenv.h>                                            
                                                                      
static inline void rtems_libio_lock( void )                           
{                                                                     
  rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
ffc11150:	3f 60 00 00 	lis     r27,0                                  
ffc11154:	80 7b 28 30 	lwz     r3,10288(r27)                          
ffc11158:	38 80 00 00 	li      r4,0                                   
ffc1115c:	38 a0 00 00 	li      r5,0                                   
ffc11160:	4b ff a4 89 	bl      ffc0b5e8 <rtems_semaphore_obtain>      
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
    rtems_libio_lock();                                               
                                                                      
    if (pipe_semaphore == RTEMS_ID_NONE) {                            
ffc11164:	81 3f 2a 20 	lwz     r9,10784(r31)                          
ffc11168:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1116c:	41 9e 01 20 	beq-    cr7,ffc1128c <fifo_open+0x1cc>         <== ALWAYS TAKEN
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
ffc11170:	80 7b 28 30 	lwz     r3,10288(r27)                          <== NOT EXECUTED
ffc11174:	4b ff a6 15 	bl      ffc0b788 <rtems_semaphore_release>     <== NOT EXECUTED
ffc11178:	81 3f 2a 20 	lwz     r9,10784(r31)                          <== NOT EXECUTED
ffc1117c:	4b ff ff 84 	b       ffc11100 <fifo_open+0x40>              <== NOT EXECUTED
{                                                                     
  static char c = 'a';                                                
  pipe_control_t *pipe;                                               
  int err = -ENOMEM;                                                  
                                                                      
  pipe = malloc(sizeof(pipe_control_t));                              
ffc11180:	38 60 00 34 	li      r3,52                                  
ffc11184:	4b ff 52 81 	bl      ffc06404 <malloc>                      
  if (pipe == NULL)                                                   
ffc11188:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1118c:	41 82 01 c4 	beq-    ffc11350 <fifo_open+0x290>             <== NEVER TAKEN
    return err;                                                       
  memset(pipe, 0, sizeof(pipe_control_t));                            
ffc11190:	38 80 00 00 	li      r4,0                                   
ffc11194:	38 a0 00 34 	li      r5,52                                  
ffc11198:	48 00 58 cd 	bl      ffc16a64 <memset>                      
                                                                      
  pipe->Size = PIPE_BUF;                                              
ffc1119c:	39 20 02 00 	li      r9,512                                 
ffc111a0:	91 3e 00 04 	stw     r9,4(r30)                              
  pipe->Buffer = malloc(pipe->Size);                                  
ffc111a4:	38 60 02 00 	li      r3,512                                 
ffc111a8:	4b ff 52 5d 	bl      ffc06404 <malloc>                      
  if (! pipe->Buffer)                                                 
ffc111ac:	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);                                  
ffc111b0:	90 7e 00 00 	stw     r3,0(r30)                              
  if (! pipe->Buffer)                                                 
ffc111b4:	41 9e 01 94 	beq-    cr7,ffc11348 <fifo_open+0x288>         <== NEVER TAKEN
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
        rtems_build_name ('P', 'I', 'r', c),                          
ffc111b8:	3f 60 00 00 	lis     r27,0                                  
ffc111bc:	88 7b 22 14 	lbz     r3,8724(r27)                           
  if (! pipe->Buffer)                                                 
    goto err_buf;                                                     
                                                                      
  err = -ENOMEM;                                                      
                                                                      
  if (rtems_barrier_create(                                           
ffc111c0:	38 80 00 00 	li      r4,0                                   
ffc111c4:	38 a0 00 00 	li      r5,0                                   
ffc111c8:	64 63 50 49 	oris    r3,r3,20553                            
ffc111cc:	60 63 72 00 	ori     r3,r3,29184                            
ffc111d0:	38 de 00 2c 	addi    r6,r30,44                              
ffc111d4:	48 00 1d b5 	bl      ffc12f88 <rtems_barrier_create>        
ffc111d8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc111dc:	40 9e 01 64 	bne-    cr7,ffc11340 <fifo_open+0x280>         
        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),                          
ffc111e0:	88 7b 22 14 	lbz     r3,8724(r27)                           
  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(                                           
ffc111e4:	38 80 00 00 	li      r4,0                                   
ffc111e8:	38 a0 00 00 	li      r5,0                                   
ffc111ec:	64 63 50 49 	oris    r3,r3,20553                            
ffc111f0:	60 63 77 00 	ori     r3,r3,30464                            
ffc111f4:	38 de 00 30 	addi    r6,r30,48                              
ffc111f8:	48 00 1d 91 	bl      ffc12f88 <rtems_barrier_create>        
ffc111fc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11200:	40 9e 01 38 	bne-    cr7,ffc11338 <fifo_open+0x278>         
        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,                       
ffc11204:	88 7b 22 14 	lbz     r3,8724(r27)                           
  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(                                         
ffc11208:	38 80 00 01 	li      r4,1                                   
ffc1120c:	38 a0 00 10 	li      r5,16                                  
ffc11210:	64 63 50 49 	oris    r3,r3,20553                            
ffc11214:	60 63 73 00 	ori     r3,r3,29440                            
ffc11218:	38 c0 00 00 	li      r6,0                                   
ffc1121c:	38 fe 00 28 	addi    r7,r30,40                              
ffc11220:	4b ff a0 b5 	bl      ffc0b2d4 <rtems_semaphore_create>      
ffc11224:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11228:	40 9e 01 08 	bne-    cr7,ffc11330 <fifo_open+0x270>         
RTEMS_INLINE_ROUTINE Barrier_Control *_Barrier_Get (                  
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Barrier_Control *)                                          
ffc1122c:	3f 40 00 00 	lis     r26,0                                  
ffc11230:	80 9e 00 2c 	lwz     r4,44(r30)                             
ffc11234:	3b 5a 35 9c 	addi    r26,r26,13724                          
ffc11238:	38 a1 00 08 	addi    r5,r1,8                                
ffc1123c:	7f 43 d3 78 	mr      r3,r26                                 
ffc11240:	4b ff c4 09 	bl      ffc0d648 <_Objects_Get>                
static void pipe_interruptible(pipe_control_t *pipe)                  
{                                                                     
  Objects_Locations location;                                         
                                                                      
  _Barrier_Get(pipe->readBarrier, &location)->Barrier.Wait_queue.state
    |= STATES_INTERRUPTIBLE_BY_SIGNAL;                                
ffc11244:	81 23 00 4c 	lwz     r9,76(r3)                              
ffc11248:	65 29 10 00 	oris    r9,r9,4096                             
ffc1124c:	91 23 00 4c 	stw     r9,76(r3)                              
  _Thread_Enable_dispatch();                                          
ffc11250:	4b ff d4 49 	bl      ffc0e698 <_Thread_Enable_dispatch>     
ffc11254:	80 9e 00 30 	lwz     r4,48(r30)                             
ffc11258:	38 a1 00 08 	addi    r5,r1,8                                
ffc1125c:	7f 43 d3 78 	mr      r3,r26                                 
ffc11260:	4b ff c3 e9 	bl      ffc0d648 <_Objects_Get>                
  _Barrier_Get(pipe->writeBarrier, &location)->Barrier.Wait_queue.state
    |= STATES_INTERRUPTIBLE_BY_SIGNAL;                                
ffc11264:	81 23 00 4c 	lwz     r9,76(r3)                              
ffc11268:	65 29 10 00 	oris    r9,r9,4096                             
ffc1126c:	91 23 00 4c 	stw     r9,76(r3)                              
  _Thread_Enable_dispatch();                                          
ffc11270:	4b ff d4 29 	bl      ffc0e698 <_Thread_Enable_dispatch>     
#ifdef RTEMS_POSIX_API                                                
  pipe_interruptible(pipe);                                           
#endif                                                                
                                                                      
  *pipep = pipe;                                                      
  if (c ++ == 'z')                                                    
ffc11274:	89 3b 22 14 	lbz     r9,8724(r27)                           
ffc11278:	2f 89 00 7a 	cmpwi   cr7,r9,122                             
ffc1127c:	41 9e 00 a8 	beq-    cr7,ffc11324 <fifo_open+0x264>         
ffc11280:	39 29 00 01 	addi    r9,r9,1                                
ffc11284:	99 3b 22 14 	stb     r9,8724(r27)                           
ffc11288:	4b ff fe 9c 	b       ffc11124 <fifo_open+0x64>              
                                                                      
  if (pipe_semaphore == RTEMS_ID_NONE) {                              
    rtems_libio_lock();                                               
                                                                      
    if (pipe_semaphore == RTEMS_ID_NONE) {                            
      sc = rtems_semaphore_create(                                    
ffc1128c:	3c 60 50 49 	lis     r3,20553                               
ffc11290:	7f c7 f3 78 	mr      r7,r30                                 
ffc11294:	38 80 00 01 	li      r4,1                                   
ffc11298:	38 a0 00 54 	li      r5,84                                  
ffc1129c:	38 c0 00 00 	li      r6,0                                   
ffc112a0:	60 63 50 45 	ori     r3,r3,20549                            
ffc112a4:	4b ff a0 31 	bl      ffc0b2d4 <rtems_semaphore_create>      
ffc112a8:	7c 7e 1b 78 	mr      r30,r3                                 
ffc112ac:	80 7b 28 30 	lwz     r3,10288(r27)                          
ffc112b0:	4b ff a4 d9 	bl      ffc0b788 <rtems_semaphore_release>     
    }                                                                 
                                                                      
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  if (sc == RTEMS_SUCCESSFUL) {                                       
ffc112b4:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc112b8:	41 9e 00 a0 	beq-    cr7,ffc11358 <fifo_open+0x298>         
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
	PIPE_UNLOCK(pipe);                                                   
        err = -ENXIO;                                                 
ffc112bc:	3b c0 ff f4 	li      r30,-12                                
  return 0;                                                           
                                                                      
out_error:                                                            
  pipe_release(pipep, iop);                                           
  return err;                                                         
}                                                                     
ffc112c0:	80 01 00 34 	lwz     r0,52(r1)                              
ffc112c4:	7f c3 f3 78 	mr      r3,r30                                 
ffc112c8:	83 41 00 18 	lwz     r26,24(r1)                             
ffc112cc:	7c 08 03 a6 	mtlr    r0                                     
ffc112d0:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc112d4:	83 81 00 20 	lwz     r28,32(r1)                             
ffc112d8:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc112dc:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc112e0:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc112e4:	38 21 00 30 	addi    r1,r1,48                               
ffc112e8:	4e 80 00 20 	blr                                            
/* Called with pipe_semaphore held. */                                
static inline void pipe_free(                                         
  pipe_control_t *pipe                                                
)                                                                     
{                                                                     
  rtems_barrier_delete(pipe->readBarrier);                            
ffc112ec:	80 7e 00 2c 	lwz     r3,44(r30)                             <== NOT EXECUTED
ffc112f0:	48 00 1d a9 	bl      ffc13098 <rtems_barrier_delete>        <== NOT EXECUTED
  rtems_barrier_delete(pipe->writeBarrier);                           
ffc112f4:	80 7e 00 30 	lwz     r3,48(r30)                             <== NOT EXECUTED
ffc112f8:	48 00 1d a1 	bl      ffc13098 <rtems_barrier_delete>        <== NOT EXECUTED
  rtems_semaphore_delete(pipe->Semaphore);                            
ffc112fc:	80 7e 00 28 	lwz     r3,40(r30)                             <== NOT EXECUTED
ffc11300:	4b ff a1 f5 	bl      ffc0b4f4 <rtems_semaphore_delete>      <== NOT EXECUTED
  free(pipe->Buffer);                                                 
ffc11304:	80 7e 00 00 	lwz     r3,0(r30)                              <== NOT EXECUTED
ffc11308:	4b ff 4b 7d 	bl      ffc05e84 <free>                        <== NOT EXECUTED
  free(pipe);                                                         
ffc1130c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc11310:	4b ff 4b 75 	bl      ffc05e84 <free>                        <== NOT EXECUTED
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    err = -EINTR;                                                     
ffc11314:	3b c0 ff fc 	li      r30,-4                                 <== NOT EXECUTED
#ifdef RTEMS_DEBUG                                                    
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc =                                                                
#endif                                                                
   rtems_semaphore_release(pipe_semaphore);                           
ffc11318:	80 7f 2a 20 	lwz     r3,10784(r31)                          
ffc1131c:	4b ff a4 6d 	bl      ffc0b788 <rtems_semaphore_release>     
ffc11320:	4b ff ff a0 	b       ffc112c0 <fifo_open+0x200>             
  pipe_interruptible(pipe);                                           
#endif                                                                
                                                                      
  *pipep = pipe;                                                      
  if (c ++ == 'z')                                                    
    c = 'a';                                                          
ffc11324:	39 20 00 61 	li      r9,97                                  
ffc11328:	99 3b 22 14 	stb     r9,8724(r27)                           
ffc1132c:	4b ff fd f8 	b       ffc11124 <fifo_open+0x64>              
  return 0;                                                           
                                                                      
err_sem:                                                              
  rtems_barrier_delete(pipe->writeBarrier);                           
ffc11330:	80 7e 00 30 	lwz     r3,48(r30)                             
ffc11334:	48 00 1d 65 	bl      ffc13098 <rtems_barrier_delete>        
err_wbar:                                                             
  rtems_barrier_delete(pipe->readBarrier);                            
ffc11338:	80 7e 00 2c 	lwz     r3,44(r30)                             
ffc1133c:	48 00 1d 5d 	bl      ffc13098 <rtems_barrier_delete>        
err_rbar:                                                             
  free(pipe->Buffer);                                                 
ffc11340:	80 7e 00 00 	lwz     r3,0(r30)                              
ffc11344:	4b ff 4b 41 	bl      ffc05e84 <free>                        
err_buf:                                                              
  free(pipe);                                                         
ffc11348:	7f c3 f3 78 	mr      r3,r30                                 
ffc1134c:	4b ff 4b 39 	bl      ffc05e84 <free>                        
    if (err)                                                          
      goto out;                                                       
  }                                                                   
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    err = -EINTR;                                                     
ffc11350:	3b c0 ff f4 	li      r30,-12                                
ffc11354:	4b ff ff c4 	b       ffc11318 <fifo_open+0x258>             
ffc11358:	81 3f 2a 20 	lwz     r9,10784(r31)                          
ffc1135c:	4b ff fd a4 	b       ffc11100 <fifo_open+0x40>              
                                                                      
  if (*pipep == NULL) {                                               
ffc11360:	81 3d 00 00 	lwz     r9,0(r29)                              
ffc11364:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc11368:	40 be 00 08 	bne+    cr7,ffc11370 <fifo_open+0x2b0>         
    if (err)                                                          
      pipe_free(pipe);                                                
    else                                                              
      *pipep = pipe;                                                  
ffc1136c:	93 dd 00 00 	stw     r30,0(r29)                             
#ifdef RTEMS_DEBUG                                                    
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc =                                                                
#endif                                                                
   rtems_semaphore_release(pipe_semaphore);                           
ffc11370:	80 7f 2a 20 	lwz     r3,10784(r31)                          
ffc11374:	4b ff a4 15 	bl      ffc0b788 <rtems_semaphore_release>     
  err = pipe_new(pipep);                                              
  if (err)                                                            
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
ffc11378:	81 3c 00 10 	lwz     r9,16(r28)                             
  int err;                                                            
                                                                      
  err = pipe_new(pipep);                                              
  if (err)                                                            
    return err;                                                       
  pipe = *pipep;                                                      
ffc1137c:	83 fd 00 00 	lwz     r31,0(r29)                             
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
ffc11380:	55 29 07 7c 	rlwinm  r9,r9,0,29,30                          
ffc11384:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc11388:	41 9e 00 4c 	beq-    cr7,ffc113d4 <fifo_open+0x314>         
ffc1138c:	2f 89 00 06 	cmpwi   cr7,r9,6                               
ffc11390:	41 9e 01 5c 	beq-    cr7,ffc114ec <fifo_open+0x42c>         
ffc11394:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc11398:	41 9e 00 d0 	beq-    cr7,ffc11468 <fifo_open+0x3a8>         <== ALWAYS TAKEN
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
      break;                                                          
  }                                                                   
                                                                      
  PIPE_UNLOCK(pipe);                                                  
ffc1139c:	80 7f 00 28 	lwz     r3,40(r31)                             
  return 0;                                                           
ffc113a0:	3b c0 00 00 	li      r30,0                                  
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
      break;                                                          
  }                                                                   
                                                                      
  PIPE_UNLOCK(pipe);                                                  
ffc113a4:	4b ff a3 e5 	bl      ffc0b788 <rtems_semaphore_release>     
  return 0;                                                           
                                                                      
out_error:                                                            
  pipe_release(pipep, iop);                                           
  return err;                                                         
}                                                                     
ffc113a8:	80 01 00 34 	lwz     r0,52(r1)                              
ffc113ac:	7f c3 f3 78 	mr      r3,r30                                 
ffc113b0:	83 41 00 18 	lwz     r26,24(r1)                             
ffc113b4:	7c 08 03 a6 	mtlr    r0                                     
ffc113b8:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc113bc:	83 81 00 20 	lwz     r28,32(r1)                             
ffc113c0:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc113c4:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc113c8:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc113cc:	38 21 00 30 	addi    r1,r1,48                               
ffc113d0:	4e 80 00 20 	blr                                            
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
                                                                      
      if (pipe->Writers ++ == 0)                                      
ffc113d4:	81 3f 00 14 	lwz     r9,20(r31)                             
        } while (prevCounter == pipe->writerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
ffc113d8:	81 5f 00 24 	lwz     r10,36(r31)                            
                                                                      
      if (pipe->Writers ++ == 0)                                      
ffc113dc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
        } while (prevCounter == pipe->writerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
ffc113e0:	39 4a 00 01 	addi    r10,r10,1                              
                                                                      
      if (pipe->Writers ++ == 0)                                      
ffc113e4:	39 29 00 01 	addi    r9,r9,1                                
        } while (prevCounter == pipe->writerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
ffc113e8:	91 5f 00 24 	stw     r10,36(r31)                            
                                                                      
      if (pipe->Writers ++ == 0)                                      
ffc113ec:	91 3f 00 14 	stw     r9,20(r31)                             
ffc113f0:	41 9e 01 6c 	beq-    cr7,ffc1155c <fifo_open+0x49c>         <== ALWAYS TAKEN
        PIPE_WAKEUPREADERS(pipe);                                     
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
ffc113f4:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc113f8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc113fc:	40 be ff a0 	bne-    cr7,ffc1139c <fifo_open+0x2dc>         
ffc11400:	81 3c 00 10 	lwz     r9,16(r28)                             
ffc11404:	71 2a 00 01 	andi.   r10,r9,1                               
ffc11408:	40 82 01 64 	bne-    ffc1156c <fifo_open+0x4ac>             
        err = -ENXIO;                                                 
        goto out_error;                                               
      }                                                               
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
ffc1140c:	83 df 00 20 	lwz     r30,32(r31)                            
ffc11410:	48 00 00 20 	b       ffc11430 <fifo_open+0x370>             
        err = -EINTR;                                                 
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
          if (! PIPE_WRITEWAIT(pipe))                                 
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
ffc11414:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc11418:	4b ff a1 d1 	bl      ffc0b5e8 <rtems_semaphore_obtain>      
ffc1141c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11420:	40 9e 00 34 	bne-    cr7,ffc11454 <fifo_open+0x394>         <== NEVER TAKEN
            goto out_error;                                           
        } while (prevCounter == pipe->readerCounter);                 
ffc11424:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc11428:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc1142c:	40 be ff 70 	bne-    cr7,ffc1139c <fifo_open+0x2dc>         <== ALWAYS TAKEN
                                                                      
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
ffc11430:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc11434:	4b ff a3 55 	bl      ffc0b788 <rtems_semaphore_release>     
          if (! PIPE_WRITEWAIT(pipe))                                 
ffc11438:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc1143c:	38 80 00 00 	li      r4,0                                   
ffc11440:	48 00 1d b9 	bl      ffc131f8 <rtems_barrier_wait>          
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
ffc11444:	38 80 00 00 	li      r4,0                                   
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
          if (! PIPE_WRITEWAIT(pipe))                                 
ffc11448:	2f 83 00 00 	cmpwi   cr7,r3,0                               
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
ffc1144c:	38 a0 00 00 	li      r5,0                                   
      if (pipe->Readers == 0) {                                       
        prevCounter = pipe->readerCounter;                            
        err = -EINTR;                                                 
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
          if (! PIPE_WRITEWAIT(pipe))                                 
ffc11450:	41 9e ff c4 	beq+    cr7,ffc11414 <fifo_open+0x354>         <== ALWAYS TAKEN
        /* Not an error */                                            
        if (LIBIO_NODELAY(iop))                                       
          break;                                                      
                                                                      
        prevCounter = pipe->writerCounter;                            
        err = -EINTR;                                                 
ffc11454:	3b c0 ff fc 	li      r30,-4                                 <== NOT EXECUTED
                                                                      
  PIPE_UNLOCK(pipe);                                                  
  return 0;                                                           
                                                                      
out_error:                                                            
  pipe_release(pipep, iop);                                           
ffc11458:	7f a3 eb 78 	mr      r3,r29                                 
ffc1145c:	7f 84 e3 78 	mr      r4,r28                                 
ffc11460:	4b ff fb 09 	bl      ffc10f68 <pipe_release>                
  return err;                                                         
ffc11464:	4b ff fe 5c 	b       ffc112c0 <fifo_open+0x200>             
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
ffc11468:	81 3f 00 10 	lwz     r9,16(r31)                             
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
ffc1146c:	81 5f 00 20 	lwz     r10,32(r31)                            
      if (pipe->Readers ++ == 0)                                      
ffc11470:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
ffc11474:	39 4a 00 01 	addi    r10,r10,1                              
      if (pipe->Readers ++ == 0)                                      
ffc11478:	39 29 00 01 	addi    r9,r9,1                                
    return err;                                                       
  pipe = *pipep;                                                      
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
ffc1147c:	91 5f 00 20 	stw     r10,32(r31)                            
      if (pipe->Readers ++ == 0)                                      
ffc11480:	91 3f 00 10 	stw     r9,16(r31)                             
ffc11484:	41 9e 00 b8 	beq-    cr7,ffc1153c <fifo_open+0x47c>         <== ALWAYS TAKEN
        PIPE_WAKEUPWRITERS(pipe);                                     
                                                                      
      if (pipe->Writers == 0) {                                       
ffc11488:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc1148c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc11490:	40 be ff 0c 	bne-    cr7,ffc1139c <fifo_open+0x2dc>         
        /* Not an error */                                            
        if (LIBIO_NODELAY(iop))                                       
ffc11494:	81 3c 00 10 	lwz     r9,16(r28)                             
ffc11498:	71 2a 00 01 	andi.   r10,r9,1                               
ffc1149c:	40 a2 ff 00 	bne-    ffc1139c <fifo_open+0x2dc>             
          break;                                                      
                                                                      
        prevCounter = pipe->writerCounter;                            
ffc114a0:	83 df 00 24 	lwz     r30,36(r31)                            
ffc114a4:	48 00 00 20 	b       ffc114c4 <fifo_open+0x404>             
        /* Wait until a writer opens the pipe */                      
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
          if (! PIPE_READWAIT(pipe))                                  
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
ffc114a8:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc114ac:	4b ff a1 3d 	bl      ffc0b5e8 <rtems_semaphore_obtain>      
ffc114b0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc114b4:	40 be ff a0 	bne-    cr7,ffc11454 <fifo_open+0x394>         <== NEVER TAKEN
            goto out_error;                                           
        } while (prevCounter == pipe->writerCounter);                 
ffc114b8:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc114bc:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc114c0:	40 be fe dc 	bne-    cr7,ffc1139c <fifo_open+0x2dc>         <== ALWAYS TAKEN
                                                                      
        prevCounter = pipe->writerCounter;                            
        err = -EINTR;                                                 
        /* Wait until a writer opens the pipe */                      
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
ffc114c4:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc114c8:	4b ff a2 c1 	bl      ffc0b788 <rtems_semaphore_release>     
          if (! PIPE_READWAIT(pipe))                                  
ffc114cc:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc114d0:	38 80 00 00 	li      r4,0                                   
ffc114d4:	48 00 1d 25 	bl      ffc131f8 <rtems_barrier_wait>          
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
ffc114d8:	38 80 00 00 	li      r4,0                                   
        prevCounter = pipe->writerCounter;                            
        err = -EINTR;                                                 
        /* Wait until a writer opens the pipe */                      
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
          if (! PIPE_READWAIT(pipe))                                  
ffc114dc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
            goto out_error;                                           
          if (! PIPE_LOCK(pipe))                                      
ffc114e0:	38 a0 00 00 	li      r5,0                                   
        prevCounter = pipe->writerCounter;                            
        err = -EINTR;                                                 
        /* Wait until a writer opens the pipe */                      
        do {                                                          
          PIPE_UNLOCK(pipe);                                          
          if (! PIPE_READWAIT(pipe))                                  
ffc114e4:	41 9e ff c4 	beq+    cr7,ffc114a8 <fifo_open+0x3e8>         <== ALWAYS TAKEN
ffc114e8:	4b ff ff 6c 	b       ffc11454 <fifo_open+0x394>             <== NOT EXECUTED
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
ffc114ec:	81 3f 00 10 	lwz     r9,16(r31)                             
        } while (prevCounter == pipe->readerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
ffc114f0:	81 5f 00 20 	lwz     r10,32(r31)                            
      if (pipe->Readers ++ == 0)                                      
ffc114f4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
        } while (prevCounter == pipe->readerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
ffc114f8:	39 4a 00 01 	addi    r10,r10,1                              
      if (pipe->Readers ++ == 0)                                      
ffc114fc:	39 29 00 01 	addi    r9,r9,1                                
        } while (prevCounter == pipe->readerCounter);                 
      }                                                               
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
ffc11500:	91 5f 00 20 	stw     r10,32(r31)                            
      if (pipe->Readers ++ == 0)                                      
ffc11504:	91 3f 00 10 	stw     r9,16(r31)                             
ffc11508:	41 9e 00 44 	beq-    cr7,ffc1154c <fifo_open+0x48c>         <== ALWAYS TAKEN
        PIPE_WAKEUPWRITERS(pipe);                                     
      pipe->writerCounter ++;                                         
      if (pipe->Writers ++ == 0)                                      
ffc1150c:	81 3f 00 14 	lwz     r9,20(r31)                             
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
      pipe->writerCounter ++;                                         
ffc11510:	81 5f 00 24 	lwz     r10,36(r31)                            
      if (pipe->Writers ++ == 0)                                      
ffc11514:	2f 89 00 00 	cmpwi   cr7,r9,0                               
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
      pipe->writerCounter ++;                                         
ffc11518:	39 4a 00 01 	addi    r10,r10,1                              
      if (pipe->Writers ++ == 0)                                      
ffc1151c:	39 29 00 01 	addi    r9,r9,1                                
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
      pipe->writerCounter ++;                                         
ffc11520:	91 5f 00 24 	stw     r10,36(r31)                            
      if (pipe->Writers ++ == 0)                                      
ffc11524:	91 3f 00 14 	stw     r9,20(r31)                             
ffc11528:	40 9e fe 74 	bne+    cr7,ffc1139c <fifo_open+0x2dc>         <== NEVER TAKEN
        PIPE_WAKEUPREADERS(pipe);                                     
ffc1152c:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc11530:	38 81 00 0c 	addi    r4,r1,12                               
ffc11534:	48 00 1c 2d 	bl      ffc13160 <rtems_barrier_release>       
ffc11538:	4b ff fe 64 	b       ffc1139c <fifo_open+0x2dc>             
                                                                      
  switch (LIBIO_ACCMODE(iop)) {                                       
    case LIBIO_FLAGS_READ:                                            
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
ffc1153c:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc11540:	38 81 00 0c 	addi    r4,r1,12                               
ffc11544:	48 00 1c 1d 	bl      ffc13160 <rtems_barrier_release>       
ffc11548:	4b ff ff 40 	b       ffc11488 <fifo_open+0x3c8>             
      break;                                                          
                                                                      
    case LIBIO_FLAGS_READ_WRITE:                                      
      pipe->readerCounter ++;                                         
      if (pipe->Readers ++ == 0)                                      
        PIPE_WAKEUPWRITERS(pipe);                                     
ffc1154c:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc11550:	38 81 00 0c 	addi    r4,r1,12                               
ffc11554:	48 00 1c 0d 	bl      ffc13160 <rtems_barrier_release>       
ffc11558:	4b ff ff b4 	b       ffc1150c <fifo_open+0x44c>             
                                                                      
    case LIBIO_FLAGS_WRITE:                                           
      pipe->writerCounter ++;                                         
                                                                      
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
ffc1155c:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc11560:	38 81 00 0c 	addi    r4,r1,12                               
ffc11564:	48 00 1b fd 	bl      ffc13160 <rtems_barrier_release>       
ffc11568:	4b ff fe 8c 	b       ffc113f4 <fifo_open+0x334>             
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
	PIPE_UNLOCK(pipe);                                                   
ffc1156c:	80 7f 00 28 	lwz     r3,40(r31)                             
        err = -ENXIO;                                                 
ffc11570:	3b c0 ff fa 	li      r30,-6                                 
                                                                      
      if (pipe->Writers ++ == 0)                                      
        PIPE_WAKEUPREADERS(pipe);                                     
                                                                      
      if (pipe->Readers == 0 && LIBIO_NODELAY(iop)) {                 
	PIPE_UNLOCK(pipe);                                                   
ffc11574:	4b ff a2 15 	bl      ffc0b788 <rtems_semaphore_release>     
        err = -ENXIO;                                                 
        goto out_error;                                               
ffc11578:	4b ff fe e0 	b       ffc11458 <fifo_open+0x398>             
                                                                      

ffc0c45c <fpathconf>: { long return_value; rtems_libio_t *iop; const rtems_filesystem_limits_and_options_t *the_limits; rtems_libio_check_fd(fd);
ffc0c45c:	3d 20 00 00 	lis     r9,0                                   
 */                                                                   
long fpathconf(                                                       
  int   fd,                                                           
  int   name                                                          
)                                                                     
{                                                                     
ffc0c460:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc0c464:	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);                                           
ffc0c468:	81 29 27 3c 	lwz     r9,10044(r9)                           
 */                                                                   
long fpathconf(                                                       
  int   fd,                                                           
  int   name                                                          
)                                                                     
{                                                                     
ffc0c46c:	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);                                           
ffc0c470:	7f 83 48 40 	cmplw   cr7,r3,r9                              
ffc0c474:	40 9c 00 cc 	bge-    cr7,ffc0c540 <fpathconf+0xe4>          
  iop = rtems_libio_iop(fd);                                          
ffc0c478:	3d 20 00 00 	lis     r9,0                                   
ffc0c47c:	81 29 27 ec 	lwz     r9,10220(r9)                           
ffc0c480:	1c 63 00 38 	mulli   r3,r3,56                               
ffc0c484:	7c 69 1a 14 	add     r3,r9,r3                               
  rtems_libio_check_is_open(iop);                                     
ffc0c488:	81 23 00 10 	lwz     r9,16(r3)                              
ffc0c48c:	71 2a 01 00 	andi.   r10,r9,256                             
ffc0c490:	41 82 00 b0 	beq-    ffc0c540 <fpathconf+0xe4>              <== NEVER TAKEN
   *  Now process the information request.                            
   */                                                                 
                                                                      
  the_limits = iop->pathinfo.mt_entry->pathconf_limits_and_options;   
                                                                      
  switch ( name ) {                                                   
ffc0c494:	2b 84 00 0b 	cmplwi  cr7,r4,11                              
                                                                      
  /*                                                                  
   *  Now process the information request.                            
   */                                                                 
                                                                      
  the_limits = iop->pathinfo.mt_entry->pathconf_limits_and_options;   
ffc0c498:	81 23 00 28 	lwz     r9,40(r3)                              
ffc0c49c:	81 29 00 2c 	lwz     r9,44(r9)                              
                                                                      
  switch ( name ) {                                                   
ffc0c4a0:	40 9d 00 24 	ble-    cr7,ffc0c4c4 <fpathconf+0x68>          
      break;                                                          
    case _PC_SYNC_IO:                                                 
      return_value = the_limits->posix_sync_io;                       
      break;                                                          
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc0c4a4:	48 00 2a 99 	bl      ffc0ef3c <__errno>                     
ffc0c4a8:	39 20 00 16 	li      r9,22                                  
ffc0c4ac:	91 23 00 00 	stw     r9,0(r3)                               
ffc0c4b0:	38 60 ff ff 	li      r3,-1                                  
      break;                                                          
  }                                                                   
                                                                      
  return return_value;                                                
}                                                                     
ffc0c4b4:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc0c4b8:	38 21 00 08 	addi    r1,r1,8                                
ffc0c4bc:	7c 08 03 a6 	mtlr    r0                                     
ffc0c4c0:	4e 80 00 20 	blr                                            
   *  Now process the information request.                            
   */                                                                 
                                                                      
  the_limits = iop->pathinfo.mt_entry->pathconf_limits_and_options;   
                                                                      
  switch ( name ) {                                                   
ffc0c4c4:	3d 40 ff c1 	lis     r10,-63                                
ffc0c4c8:	39 4a 5b 1c 	addi    r10,r10,23324                          
ffc0c4cc:	54 84 10 3a 	rlwinm  r4,r4,2,0,29                           
ffc0c4d0:	7d 0a 20 2e 	lwzx    r8,r10,r4                              
ffc0c4d4:	7d 48 52 14 	add     r10,r8,r10                             
ffc0c4d8:	7d 49 03 a6 	mtctr   r10                                    
ffc0c4dc:	4e 80 04 20 	bctr                                           
      break;                                                          
    case _PC_ASYNC_IO:                                                
      return_value = the_limits->posix_async_io;                      
      break;                                                          
    case _PC_PRIO_IO:                                                 
      return_value = the_limits->posix_prio_io;                       
ffc0c4e0:	80 69 00 24 	lwz     r3,36(r9)                              
      break;                                                          
ffc0c4e4:	4b ff ff d0 	b       ffc0c4b4 <fpathconf+0x58>              
      break;                                                          
    case _PC_VDISABLE:                                                
      return_value = the_limits->posix_vdisable;                      
      break;                                                          
    case _PC_ASYNC_IO:                                                
      return_value = the_limits->posix_async_io;                      
ffc0c4e8:	80 69 00 18 	lwz     r3,24(r9)                              
      break;                                                          
ffc0c4ec:	4b ff ff c8 	b       ffc0c4b4 <fpathconf+0x58>              
      break;                                                          
    case _PC_NO_TRUNC:                                                
      return_value = the_limits->posix_no_trunc;                      
      break;                                                          
    case _PC_VDISABLE:                                                
      return_value = the_limits->posix_vdisable;                      
ffc0c4f0:	80 69 00 2c 	lwz     r3,44(r9)                              
      break;                                                          
ffc0c4f4:	4b ff ff c0 	b       ffc0c4b4 <fpathconf+0x58>              
      break;                                                          
    case _PC_CHOWN_RESTRICTED:                                        
      return_value = the_limits->posix_chown_restrictions;            
      break;                                                          
    case _PC_NO_TRUNC:                                                
      return_value = the_limits->posix_no_trunc;                      
ffc0c4f8:	80 69 00 20 	lwz     r3,32(r9)                              
      break;                                                          
ffc0c4fc:	4b ff ff b8 	b       ffc0c4b4 <fpathconf+0x58>              
      break;                                                          
    case _PC_PIPE_BUF:                                                
      return_value = the_limits->pipe_buf;                            
      break;                                                          
    case _PC_CHOWN_RESTRICTED:                                        
      return_value = the_limits->posix_chown_restrictions;            
ffc0c500:	80 69 00 1c 	lwz     r3,28(r9)                              
      break;                                                          
ffc0c504:	4b ff ff b0 	b       ffc0c4b4 <fpathconf+0x58>              
      break;                                                          
    case _PC_PATH_MAX:                                                
      return_value = the_limits->path_max;                            
      break;                                                          
    case _PC_PIPE_BUF:                                                
      return_value = the_limits->pipe_buf;                            
ffc0c508:	80 69 00 14 	lwz     r3,20(r9)                              
      break;                                                          
ffc0c50c:	4b ff ff a8 	b       ffc0c4b4 <fpathconf+0x58>              
      break;                                                          
    case _PC_NAME_MAX:                                                
      return_value = the_limits->name_max;                            
      break;                                                          
    case _PC_PATH_MAX:                                                
      return_value = the_limits->path_max;                            
ffc0c510:	80 69 00 10 	lwz     r3,16(r9)                              
      break;                                                          
ffc0c514:	4b ff ff a0 	b       ffc0c4b4 <fpathconf+0x58>              
      break;                                                          
    case _PC_MAX_INPUT:                                               
      return_value = the_limits->max_input;                           
      break;                                                          
    case _PC_NAME_MAX:                                                
      return_value = the_limits->name_max;                            
ffc0c518:	80 69 00 0c 	lwz     r3,12(r9)                              
      break;                                                          
ffc0c51c:	4b ff ff 98 	b       ffc0c4b4 <fpathconf+0x58>              
      break;                                                          
    case _PC_MAX_CANON:                                               
      return_value = the_limits->max_canon;                           
      break;                                                          
    case _PC_MAX_INPUT:                                               
      return_value = the_limits->max_input;                           
ffc0c520:	80 69 00 08 	lwz     r3,8(r9)                               
      break;                                                          
ffc0c524:	4b ff ff 90 	b       ffc0c4b4 <fpathconf+0x58>              
  switch ( name ) {                                                   
    case _PC_LINK_MAX:                                                
      return_value = the_limits->link_max;                            
      break;                                                          
    case _PC_MAX_CANON:                                               
      return_value = the_limits->max_canon;                           
ffc0c528:	80 69 00 04 	lwz     r3,4(r9)                               
      break;                                                          
ffc0c52c:	4b ff ff 88 	b       ffc0c4b4 <fpathconf+0x58>              
                                                                      
  the_limits = iop->pathinfo.mt_entry->pathconf_limits_and_options;   
                                                                      
  switch ( name ) {                                                   
    case _PC_LINK_MAX:                                                
      return_value = the_limits->link_max;                            
ffc0c530:	80 69 00 00 	lwz     r3,0(r9)                               
      break;                                                          
ffc0c534:	4b ff ff 80 	b       ffc0c4b4 <fpathconf+0x58>              
      break;                                                          
    case _PC_PRIO_IO:                                                 
      return_value = the_limits->posix_prio_io;                       
      break;                                                          
    case _PC_SYNC_IO:                                                 
      return_value = the_limits->posix_sync_io;                       
ffc0c538:	80 69 00 28 	lwz     r3,40(r9)                              
      break;                                                          
ffc0c53c:	4b ff ff 78 	b       ffc0c4b4 <fpathconf+0x58>              
  rtems_libio_t                          *iop;                        
  const rtems_filesystem_limits_and_options_t *the_limits;            
                                                                      
  rtems_libio_check_fd(fd);                                           
  iop = rtems_libio_iop(fd);                                          
  rtems_libio_check_is_open(iop);                                     
ffc0c540:	48 00 29 fd 	bl      ffc0ef3c <__errno>                     
ffc0c544:	39 20 00 09 	li      r9,9                                   
ffc0c548:	91 23 00 00 	stw     r9,0(r3)                               
ffc0c54c:	38 60 ff ff 	li      r3,-1                                  
ffc0c550:	4b ff ff 64 	b       ffc0c4b4 <fpathconf+0x58>              
                                                                      

ffc04b68 <free>: #include <stdlib.h> void free( void *ptr ) {
ffc04b68:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc04b6c:	7c 08 02 a6 	mflr    r0                                     
  MSBUMP(free_calls, 1);                                              
ffc04b70:	3d 20 00 00 	lis     r9,0                                   
#include <stdlib.h>                                                   
                                                                      
void free(                                                            
  void *ptr                                                           
)                                                                     
{                                                                     
ffc04b74:	90 01 00 14 	stw     r0,20(r1)                              
  MSBUMP(free_calls, 1);                                              
ffc04b78:	39 29 2b a0 	addi    r9,r9,11168                            
#include <stdlib.h>                                                   
                                                                      
void free(                                                            
  void *ptr                                                           
)                                                                     
{                                                                     
ffc04b7c:	93 e1 00 0c 	stw     r31,12(r1)                             
  MSBUMP(free_calls, 1);                                              
                                                                      
  if ( !ptr )                                                         
ffc04b80:	7c 7f 1b 79 	mr.     r31,r3                                 
                                                                      
void free(                                                            
  void *ptr                                                           
)                                                                     
{                                                                     
  MSBUMP(free_calls, 1);                                              
ffc04b84:	81 49 00 0c 	lwz     r10,12(r9)                             
#include <stdlib.h>                                                   
                                                                      
void free(                                                            
  void *ptr                                                           
)                                                                     
{                                                                     
ffc04b88:	93 c1 00 08 	stw     r30,8(r1)                              
  MSBUMP(free_calls, 1);                                              
ffc04b8c:	39 4a 00 01 	addi    r10,r10,1                              
ffc04b90:	91 49 00 0c 	stw     r10,12(r9)                             
                                                                      
  if ( !ptr )                                                         
ffc04b94:	41 82 00 4c 	beq-    ffc04be0 <free+0x78>                   
    return;                                                           
                                                                      
  /*                                                                  
   *  Do not attempt to free memory if in a critical section or ISR.  
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
ffc04b98:	3d 20 00 00 	lis     r9,0                                   
ffc04b9c:	81 29 28 90 	lwz     r9,10384(r9)                           
ffc04ba0:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc04ba4:	41 9e 00 88 	beq-    cr7,ffc04c2c <free+0xc4>               <== ALWAYS TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   *  If configured, update the statistics                            
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
ffc04ba8:	3d 20 00 00 	lis     r9,0                                   
ffc04bac:	81 29 28 08 	lwz     r9,10248(r9)                           
ffc04bb0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04bb4:	41 9e 00 14 	beq-    cr7,ffc04bc8 <free+0x60>               
    (*rtems_malloc_statistics_helpers->at_free)(ptr);                 
ffc04bb8:	81 29 00 08 	lwz     r9,8(r9)                               
ffc04bbc:	7f e3 fb 78 	mr      r3,r31                                 
ffc04bc0:	7d 29 03 a6 	mtctr   r9                                     
ffc04bc4:	4e 80 04 21 	bctrl                                          
                                                                      
  if ( !_Protected_heap_Free( RTEMS_Malloc_Heap, ptr ) ) {            
ffc04bc8:	3f c0 00 00 	lis     r30,0                                  
ffc04bcc:	80 7e 27 90 	lwz     r3,10128(r30)                          
ffc04bd0:	7f e4 fb 78 	mr      r4,r31                                 
ffc04bd4:	48 00 71 dd 	bl      ffc0bdb0 <_Protected_heap_Free>        
ffc04bd8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04bdc:	41 9e 00 1c 	beq-    cr7,ffc04bf8 <free+0x90>               
      RTEMS_Malloc_Heap->area_begin,                                  
      RTEMS_Malloc_Heap->area_end                                     
    );                                                                
  }                                                                   
                                                                      
}                                                                     
ffc04be0:	80 01 00 14 	lwz     r0,20(r1)                              
ffc04be4:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc04be8:	7c 08 03 a6 	mtlr    r0                                     
ffc04bec:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc04bf0:	38 21 00 10 	addi    r1,r1,16                               
ffc04bf4:	4e 80 00 20 	blr                                            
ffc04bf8:	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",
ffc04bfc:	3c 60 ff c2 	lis     r3,-62                                 
      ptr,                                                            
      RTEMS_Malloc_Heap->area_begin,                                  
ffc04c00:	81 3e 27 90 	lwz     r9,10128(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",
ffc04c04:	7f e4 fb 78 	mr      r4,r31                                 
      RTEMS_Malloc_Heap->area_begin,                                  
      RTEMS_Malloc_Heap->area_end                                     
    );                                                                
  }                                                                   
                                                                      
}                                                                     
ffc04c08:	7c 08 03 a6 	mtlr    r0                                     
ffc04c0c:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc04c10:	83 e1 00 0c 	lwz     r31,12(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",
ffc04c14:	38 63 fc b8 	addi    r3,r3,-840                             
ffc04c18:	80 a9 00 18 	lwz     r5,24(r9)                              
ffc04c1c:	80 c9 00 1c 	lwz     r6,28(r9)                              
      RTEMS_Malloc_Heap->area_begin,                                  
      RTEMS_Malloc_Heap->area_end                                     
    );                                                                
  }                                                                   
                                                                      
}                                                                     
ffc04c20:	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",
ffc04c24:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04c28:	48 00 10 a0 	b       ffc05cc8 <printk>                      
                                                                      
  /*                                                                  
   *  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() ) {                               
ffc04c2c:	48 00 01 d9 	bl      ffc04e04 <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()) &&                    
ffc04c30:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04c34:	40 9e ff 74 	bne+    cr7,ffc04ba8 <free+0x40>               
      RTEMS_Malloc_Heap->area_begin,                                  
      RTEMS_Malloc_Heap->area_end                                     
    );                                                                
  }                                                                   
                                                                      
}                                                                     
ffc04c38:	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);                                      
ffc04c3c:	7f e3 fb 78 	mr      r3,r31                                 
      RTEMS_Malloc_Heap->area_begin,                                  
      RTEMS_Malloc_Heap->area_end                                     
    );                                                                
  }                                                                   
                                                                      
}                                                                     
ffc04c40:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc04c44:	7c 08 03 a6 	mtlr    r0                                     
ffc04c48:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc04c4c:	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);                                      
ffc04c50:	48 00 02 24 	b       ffc04e74 <malloc_deferred_free>        
                                                                      

ffc1dba8 <fstat>: int fstat( int fd, struct stat *sbuf ) {
ffc1dba8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1dbac:	7c 08 02 a6 	mflr    r0                                     
ffc1dbb0:	93 e1 00 0c 	stw     r31,12(r1)                             
  rtems_libio_t *iop;                                                 
                                                                      
  /*                                                                  
   *  Check to see if we were passed a valid pointer.                 
   */                                                                 
  if ( !sbuf )                                                        
ffc1dbb4:	7c 9f 23 79 	mr.     r31,r4                                 
                                                                      
int fstat(                                                            
  int          fd,                                                    
  struct stat *sbuf                                                   
)                                                                     
{                                                                     
ffc1dbb8:	90 01 00 14 	stw     r0,20(r1)                              
ffc1dbbc:	93 c1 00 08 	stw     r30,8(r1)                              
  rtems_libio_t *iop;                                                 
                                                                      
  /*                                                                  
   *  Check to see if we were passed a valid pointer.                 
   */                                                                 
  if ( !sbuf )                                                        
ffc1dbc0:	41 82 00 94 	beq-    ffc1dc54 <fstat+0xac>                  <== NEVER TAKEN
    rtems_set_errno_and_return_minus_one( EFAULT );                   
                                                                      
  /*                                                                  
   *  Now process the stat() request.                                 
   */                                                                 
  iop = rtems_libio_iop( fd );                                        
ffc1dbc4:	3d 20 00 00 	lis     r9,0                                   
ffc1dbc8:	81 29 27 98 	lwz     r9,10136(r9)                           
ffc1dbcc:	7f 83 48 40 	cmplw   cr7,r3,r9                              
ffc1dbd0:	40 9c 00 5c 	bge-    cr7,ffc1dc2c <fstat+0x84>              
ffc1dbd4:	3d 20 00 00 	lis     r9,0                                   
ffc1dbd8:	83 c9 28 4c 	lwz     r30,10316(r9)                          
ffc1dbdc:	1c 63 00 38 	mulli   r3,r3,56                               
ffc1dbe0:	7f de 1a 14 	add     r30,r30,r3                             
  rtems_libio_check_fd( fd );                                         
  rtems_libio_check_is_open(iop);                                     
ffc1dbe4:	81 3e 00 10 	lwz     r9,16(r30)                             
ffc1dbe8:	71 2a 01 00 	andi.   r10,r9,256                             
ffc1dbec:	41 82 00 40 	beq-    ffc1dc2c <fstat+0x84>                  
                                                                      
  /*                                                                  
   *  Zero out the stat structure so the various support              
   *  versions of stat don't have to.                                 
   */                                                                 
  memset( sbuf, 0, sizeof(struct stat) );                             
ffc1dbf0:	38 80 00 00 	li      r4,0                                   
ffc1dbf4:	7f e3 fb 78 	mr      r3,r31                                 
ffc1dbf8:	38 a0 00 48 	li      r5,72                                  
ffc1dbfc:	4b ff 62 75 	bl      ffc13e70 <memset>                      
                                                                      
  return (*iop->pathinfo.handlers->fstat_h)( &iop->pathinfo, sbuf );  
ffc1dc00:	81 3e 00 24 	lwz     r9,36(r30)                             
}                                                                     
ffc1dc04:	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 );  
ffc1dc08:	38 7e 00 14 	addi    r3,r30,20                              
ffc1dc0c:	81 29 00 18 	lwz     r9,24(r9)                              
ffc1dc10:	7f e4 fb 78 	mr      r4,r31                                 
}                                                                     
ffc1dc14:	7c 08 03 a6 	mtlr    r0                                     
ffc1dc18:	83 c1 00 08 	lwz     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 );  
ffc1dc1c:	7d 29 03 a6 	mtctr   r9                                     
}                                                                     
ffc1dc20:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc1dc24:	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 );  
ffc1dc28:	4e 80 04 20 	bctr                                           
  /*                                                                  
   *  Now process the stat() request.                                 
   */                                                                 
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_fd( fd );                                         
  rtems_libio_check_is_open(iop);                                     
ffc1dc2c:	4b ff 54 4d 	bl      ffc13078 <__errno>                     
ffc1dc30:	39 20 00 09 	li      r9,9                                   
ffc1dc34:	91 23 00 00 	stw     r9,0(r3)                               
   *  versions of stat don't have to.                                 
   */                                                                 
  memset( sbuf, 0, sizeof(struct stat) );                             
                                                                      
  return (*iop->pathinfo.handlers->fstat_h)( &iop->pathinfo, sbuf );  
}                                                                     
ffc1dc38:	80 01 00 14 	lwz     r0,20(r1)                              
ffc1dc3c:	38 60 ff ff 	li      r3,-1                                  
ffc1dc40:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc1dc44:	7c 08 03 a6 	mtlr    r0                                     
ffc1dc48:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc1dc4c:	38 21 00 10 	addi    r1,r1,16                               
ffc1dc50:	4e 80 00 20 	blr                                            
                                                                      
  /*                                                                  
   *  Check to see if we were passed a valid pointer.                 
   */                                                                 
  if ( !sbuf )                                                        
    rtems_set_errno_and_return_minus_one( EFAULT );                   
ffc1dc54:	4b ff 54 25 	bl      ffc13078 <__errno>                     <== NOT EXECUTED
ffc1dc58:	39 20 00 0e 	li      r9,14                                  <== NOT EXECUTED
ffc1dc5c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1dc60:	4b ff ff d8 	b       ffc1dc38 <fstat+0x90>                  <== NOT EXECUTED
                                                                      

ffc04588 <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) {
ffc04588:	3d 20 00 00 	lis     r9,0                                   
ffc0458c:	81 49 28 e0 	lwz     r10,10464(r9)                          
ffc04590:	39 29 28 e0 	addi    r9,r9,10464                            
ffc04594:	7f 8a 18 40 	cmplw   cr7,r10,r3                             
ffc04598:	40 9d 00 64 	ble-    cr7,ffc045fc <get_disk_entry+0x74>     <== NEVER TAKEN
ffc0459c:	81 29 00 04 	lwz     r9,4(r9)                               
ffc045a0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc045a4:	41 9e 00 58 	beq-    cr7,ffc045fc <get_disk_entry+0x74>     <== NEVER TAKEN
    rtems_disk_device_table *dtab = disktab + major;                  
ffc045a8:	54 63 18 38 	rlwinm  r3,r3,3,0,28                           
ffc045ac:	7d 49 1a 14 	add     r10,r9,r3                              
                                                                      
    if (minor < dtab->size && dtab->minor != NULL) {                  
ffc045b0:	81 4a 00 04 	lwz     r10,4(r10)                             
ffc045b4:	7f 8a 20 40 	cmplw   cr7,r10,r4                             
ffc045b8:	40 9d 00 44 	ble-    cr7,ffc045fc <get_disk_entry+0x74>     <== NEVER TAKEN
ffc045bc:	7d 29 18 2e 	lwzx    r9,r9,r3                               
ffc045c0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc045c4:	41 9e 00 38 	beq-    cr7,ffc045fc <get_disk_entry+0x74>     <== NEVER TAKEN
      rtems_disk_device *dd = dtab->minor [minor];                    
ffc045c8:	54 84 10 3a 	rlwinm  r4,r4,2,0,29                           
ffc045cc:	7c 69 20 2e 	lwzx    r3,r9,r4                               
                                                                      
      if (dd != NULL && !lookup_only) {                               
ffc045d0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc045d4:	4d 9e 00 20 	beqlr   cr7                                    
ffc045d8:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc045dc:	4c 9e 00 20 	bnelr   cr7                                    
        if (!dd->deleted) {                                           
ffc045e0:	89 23 00 40 	lbz     r9,64(r3)                              
ffc045e4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc045e8:	40 9e 00 14 	bne-    cr7,ffc045fc <get_disk_entry+0x74>     
          ++dd->uses;                                                 
ffc045ec:	81 23 00 14 	lwz     r9,20(r3)                              
ffc045f0:	39 29 00 01 	addi    r9,r9,1                                
ffc045f4:	91 23 00 14 	stw     r9,20(r3)                              
ffc045f8:	4e 80 00 20 	blr                                            
                                                                      
      return dd;                                                      
    }                                                                 
  }                                                                   
                                                                      
  return NULL;                                                        
ffc045fc:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc04600:	4e 80 00 20 	blr                                            
                                                                      

ffc067c4 <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,
ffc067c4:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc067c8:	7c 08 02 a6 	mflr    r0                                     
ffc067cc:	93 c1 00 10 	stw     r30,16(r1)                             
ffc067d0:	7c 7e 1b 78 	mr      r30,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);
ffc067d4:	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,                                                    
ffc067d8:	93 81 00 08 	stw     r28,8(r1)                              
ffc067dc:	7c 9c 23 78 	mr      r28,r4                                 
ffc067e0:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc067e4:	7c bd 2b 78 	mr      r29,r5                                 
ffc067e8:	93 e1 00 14 	stw     r31,20(r1)                             
ffc067ec:	90 01 00 1c 	stw     r0,28(r1)                              
    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);
ffc067f0:	48 00 19 7d 	bl      ffc0816c <malloc>                      
    if (s == NULL)                                                    
ffc067f4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc067f8:	41 82 00 48 	beq-    ffc06840 <get_sector.part.0+0x7c>      <== NEVER TAKEN
    {                                                                 
        return RTEMS_NO_MEMORY;                                       
    }                                                                 
                                                                      
    n = read(fd, s->data, RTEMS_IDE_SECTOR_SIZE);                     
ffc067fc:	7f c3 f3 78 	mr      r3,r30                                 
ffc06800:	38 9f 00 04 	addi    r4,r31,4                               
ffc06804:	38 a0 02 00 	li      r5,512                                 
ffc06808:	48 00 26 81 	bl      ffc08e88 <read>                        
    if (n != RTEMS_IDE_SECTOR_SIZE)                                   
ffc0680c:	2f 83 02 00 	cmpwi   cr7,r3,512                             
ffc06810:	41 9e 00 54 	beq-    cr7,ffc06864 <get_sector.part.0+0xa0>  <== ALWAYS TAKEN
    {                                                                 
        free(s);                                                      
ffc06814:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc06818:	48 00 11 bd 	bl      ffc079d4 <free>                        <== NOT EXECUTED
    s->sector_num = sector_num;                                       
                                                                      
    *sector = s;                                                      
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc0681c:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
ffc06820:	83 81 00 08 	lwz     r28,8(r1)                              <== NOT EXECUTED
                                                                      
    n = read(fd, s->data, RTEMS_IDE_SECTOR_SIZE);                     
    if (n != RTEMS_IDE_SECTOR_SIZE)                                   
    {                                                                 
        free(s);                                                      
        return RTEMS_IO_ERROR;                                        
ffc06824:	38 60 00 1b 	li      r3,27                                  <== NOT EXECUTED
    s->sector_num = sector_num;                                       
                                                                      
    *sector = s;                                                      
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc06828:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0682c:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc06830:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc06834:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc06838:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc0683c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
ffc06840:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
    }                                                                 
                                                                      
    s = (rtems_sector_data_t *) malloc(sizeof(rtems_sector_data_t) + RTEMS_IDE_SECTOR_SIZE);
    if (s == NULL)                                                    
    {                                                                 
        return RTEMS_NO_MEMORY;                                       
ffc06844:	38 60 00 1a 	li      r3,26                                  <== NOT EXECUTED
    s->sector_num = sector_num;                                       
                                                                      
    *sector = s;                                                      
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc06848:	83 81 00 08 	lwz     r28,8(r1)                              <== NOT EXECUTED
ffc0684c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc06850:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc06854:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc06858:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc0685c:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc06860:	4e 80 00 20 	blr                                            <== NOT EXECUTED
ffc06864:	80 01 00 1c 	lwz     r0,28(r1)                              
                                                                      
    s->sector_num = sector_num;                                       
                                                                      
    *sector = s;                                                      
                                                                      
    return RTEMS_SUCCESSFUL;                                          
ffc06868:	38 60 00 00 	li      r3,0                                   
    {                                                                 
        free(s);                                                      
        return RTEMS_IO_ERROR;                                        
    }                                                                 
                                                                      
    s->sector_num = sector_num;                                       
ffc0686c:	93 9f 00 00 	stw     r28,0(r31)                             
                                                                      
    *sector = s;                                                      
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc06870:	7c 08 03 a6 	mtlr    r0                                     
        return RTEMS_IO_ERROR;                                        
    }                                                                 
                                                                      
    s->sector_num = sector_num;                                       
                                                                      
    *sector = s;                                                      
ffc06874:	93 fd 00 00 	stw     r31,0(r29)                             
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc06878:	83 81 00 08 	lwz     r28,8(r1)                              
ffc0687c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc06880:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc06884:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc06888:	38 21 00 18 	addi    r1,r1,24                               
ffc0688c:	4e 80 00 20 	blr                                            
                                                                      

ffc3911c <getdents>: rtems_filesystem_node_types_t type; /* * Get the file control block structure associated with the file descriptor */ iop = rtems_libio_iop( dd_fd );
ffc3911c:	3d 20 00 00 	lis     r9,0                                   
int getdents(                                                         
  int   dd_fd,                                                        
  char *dd_buf,                                                       
  int   dd_len                                                        
)                                                                     
{                                                                     
ffc39120:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc39124:	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 );                                     
ffc39128:	81 29 27 b8 	lwz     r9,10168(r9)                           
int getdents(                                                         
  int   dd_fd,                                                        
  char *dd_buf,                                                       
  int   dd_len                                                        
)                                                                     
{                                                                     
ffc3912c:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc39130:	7c 9d 23 78 	mr      r29,r4                                 
  rtems_filesystem_node_types_t type;                                 
                                                                      
  /*                                                                  
   *  Get the file control block structure associated with the file descriptor
   */                                                                 
  iop = rtems_libio_iop( dd_fd );                                     
ffc39134:	7f 83 48 40 	cmplw   cr7,r3,r9                              
int getdents(                                                         
  int   dd_fd,                                                        
  char *dd_buf,                                                       
  int   dd_len                                                        
)                                                                     
{                                                                     
ffc39138:	93 c1 00 10 	stw     r30,16(r1)                             
ffc3913c:	7c be 2b 78 	mr      r30,r5                                 
ffc39140:	93 e1 00 14 	stw     r31,20(r1)                             
  rtems_filesystem_node_types_t type;                                 
                                                                      
  /*                                                                  
   *  Get the file control block structure associated with the file descriptor
   */                                                                 
  iop = rtems_libio_iop( dd_fd );                                     
ffc39144:	3b e0 00 00 	li      r31,0                                  
int getdents(                                                         
  int   dd_fd,                                                        
  char *dd_buf,                                                       
  int   dd_len                                                        
)                                                                     
{                                                                     
ffc39148:	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 );                                     
ffc3914c:	40 9c 00 14 	bge-    cr7,ffc39160 <getdents+0x44>           <== NEVER TAKEN
ffc39150:	3d 20 00 00 	lis     r9,0                                   
ffc39154:	1c 63 00 38 	mulli   r3,r3,56                               
ffc39158:	83 e9 28 68 	lwz     r31,10344(r9)                          
ffc3915c:	7f ff 1a 14 	add     r31,r31,r3                             
                                                                      
  /*                                                                  
   *  Make sure we are working on a directory                         
   */                                                                 
  type = rtems_filesystem_node_type( &iop->pathinfo );                
ffc39160:	38 7f 00 14 	addi    r3,r31,20                              
ffc39164:	4b fd 39 c9 	bl      ffc0cb2c <rtems_filesystem_node_type>  
  if ( type != RTEMS_FILESYSTEM_DIRECTORY )                           
ffc39168:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc3916c:	40 9e 00 38 	bne-    cr7,ffc391a4 <getdents+0x88>           
                                                                      
  /*                                                                  
   *  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  );   
ffc39170:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc39174:	7f e3 fb 78 	mr      r3,r31                                 
}                                                                     
ffc39178:	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  );   
ffc3917c:	7f a4 eb 78 	mr      r4,r29                                 
ffc39180:	81 29 00 08 	lwz     r9,8(r9)                               
ffc39184:	7f c5 f3 78 	mr      r5,r30                                 
}                                                                     
ffc39188:	7c 08 03 a6 	mtlr    r0                                     
ffc3918c:	83 a1 00 0c 	lwz     r29,12(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  );   
ffc39190:	7d 29 03 a6 	mtctr   r9                                     
}                                                                     
ffc39194:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc39198:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc3919c:	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  );   
ffc391a0:	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 );                  
ffc391a4:	4b fe fe 55 	bl      ffc28ff8 <__errno>                     
  /*                                                                  
   *  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  );   
}                                                                     
ffc391a8:	80 01 00 1c 	lwz     r0,28(r1)                              
  /*                                                                  
   *  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 );                  
ffc391ac:	39 20 00 14 	li      r9,20                                  
  /*                                                                  
   *  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  );   
}                                                                     
ffc391b0:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc391b4:	7c 08 03 a6 	mtlr    r0                                     
  /*                                                                  
   *  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 );                  
ffc391b8:	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  );   
}                                                                     
ffc391bc:	38 60 ff ff 	li      r3,-1                                  
ffc391c0:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc391c4:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc391c8:	38 21 00 18 	addi    r1,r1,24                               
ffc391cc:	4e 80 00 20 	blr                                            
                                                                      

ffc121ec <imfs_dir_read>: ssize_t imfs_dir_read( rtems_libio_t *iop, void *buffer, size_t count ) {
ffc121ec:	94 21 fe b0 	stwu    r1,-336(r1)                            
ffc121f0:	7c 08 02 a6 	mflr    r0                                     
ffc121f4:	90 01 01 54 	stw     r0,340(r1)                             
ffc121f8:	93 41 01 38 	stw     r26,312(r1)                            
ffc121fc:	7c 7a 1b 78 	mr      r26,r3                                 
   }                                                                  
                                                                      
   rtems_filesystem_instance_unlock( &iop->pathinfo );                
                                                                      
   return bytes_transferred;                                          
}                                                                     
ffc12200:	80 63 00 28 	lwz     r3,40(r3)                              
ssize_t imfs_dir_read(                                                
  rtems_libio_t  *iop,                                                
  void           *buffer,                                             
  size_t          count                                               
)                                                                     
{                                                                     
ffc12204:	93 61 01 3c 	stw     r27,316(r1)                            
   bytes_transferred = 0;                                             
   first_entry = iop->offset;                                         
   /* protect against using sizes that are not exact multiples of the */
   /* -dirent- size. These could result in unexpected results          */
   last_entry = first_entry                                           
     + (count / sizeof( struct dirent )) * sizeof( struct dirent );   
ffc12208:	3f 60 0e a0 	lis     r27,3744                               
ffc1220c:	63 7b ea 0f 	ori     r27,r27,59919                          
  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 );                               
ffc12210:	81 23 00 0c 	lwz     r9,12(r3)                              
ssize_t imfs_dir_read(                                                
  rtems_libio_t  *iop,                                                
  void           *buffer,                                             
  size_t          count                                               
)                                                                     
{                                                                     
ffc12214:	93 e1 01 4c 	stw     r31,332(r1)                            
ffc12218:	7c bf 2b 78 	mr      r31,r5                                 
   bytes_transferred = 0;                                             
   first_entry = iop->offset;                                         
   /* protect against using sizes that are not exact multiples of the */
   /* -dirent- size. These could result in unexpected results          */
   last_entry = first_entry                                           
     + (count / sizeof( struct dirent )) * sizeof( struct dirent );   
ffc1221c:	57 ff e8 fe 	rlwinm  r31,r31,29,3,31                        
ffc12220:	81 29 00 00 	lwz     r9,0(r9)                               
ffc12224:	7f 7f d8 16 	mulhwu  r27,r31,r27                            
ssize_t imfs_dir_read(                                                
  rtems_libio_t  *iop,                                                
  void           *buffer,                                             
  size_t          count                                               
)                                                                     
{                                                                     
ffc12228:	92 e1 01 2c 	stw     r23,300(r1)                            
ffc1222c:	7d 29 03 a6 	mtctr   r9                                     
ffc12230:	7c 97 23 78 	mr      r23,r4                                 
ffc12234:	93 81 01 40 	stw     r28,320(r1)                            
   bytes_transferred = 0;                                             
   first_entry = iop->offset;                                         
   /* protect against using sizes that are not exact multiples of the */
   /* -dirent- size. These could result in unexpected results          */
   last_entry = first_entry                                           
     + (count / sizeof( struct dirent )) * sizeof( struct dirent );   
ffc12238:	57 7b f8 7e 	rlwinm  r27,r27,31,1,31                        
ffc1223c:	1f 7b 01 18 	mulli   r27,r27,280                            
ssize_t imfs_dir_read(                                                
  rtems_libio_t  *iop,                                                
  void           *buffer,                                             
  size_t          count                                               
)                                                                     
{                                                                     
ffc12240:	93 a1 01 44 	stw     r29,324(r1)                            
ffc12244:	93 c1 01 48 	stw     r30,328(r1)                            
ffc12248:	92 c1 01 28 	stw     r22,296(r1)                            
ffc1224c:	93 01 01 30 	stw     r24,304(r1)                            
ffc12250:	93 21 01 34 	stw     r25,308(r1)                            
ffc12254:	4e 80 04 21 	bctrl                                          
   the_chain = &the_jnode->info.directory.Entries;                    
                                                                      
   /* Move to the first of the desired directory entries */           
                                                                      
   bytes_transferred = 0;                                             
   first_entry = iop->offset;                                         
ffc12258:	83 ba 00 0c 	lwz     r29,12(r26)                            
   int                  last_entry;                                   
   struct dirent        tmp_dirent;                                   
                                                                      
   rtems_filesystem_instance_lock( &iop->pathinfo );                  
                                                                      
   the_jnode = (IMFS_jnode_t *)iop->pathinfo.node_access;             
ffc1225c:	83 9a 00 1c 	lwz     r28,28(r26)                            
   /* -dirent- size. These could result in unexpected results          */
   last_entry = first_entry                                           
     + (count / sizeof( struct dirent )) * sizeof( struct dirent );   
                                                                      
   /* The directory was not empty so try to move to the desired entry in chain*/
   for (                                                              
ffc12260:	7f 7b ea 15 	add.    r27,r27,r29                            
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc12264:	83 dc 00 50 	lwz     r30,80(r28)                            
ffc12268:	40 81 01 0c 	ble-    ffc12374 <imfs_dir_read+0x188>         <== NEVER TAKEN
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 ));            
ffc1226c:	3b 9c 00 54 	addi    r28,r28,84                             
      current_entry = 0,                                              
        the_node = rtems_chain_first( the_chain );                    
      current_entry < last_entry                                      
        && !rtems_chain_is_tail( the_chain, the_node );               
ffc12270:	7f 9e e0 00 	cmpw    cr7,r30,r28                            
ffc12274:	41 9e 01 00 	beq-    cr7,ffc12374 <imfs_dir_read+0x188>     
ffc12278:	3b e0 00 00 	li      r31,0                                  
ffc1227c:	3b 20 00 00 	li      r25,0                                  
        the_node = rtems_chain_next( the_node )                       
   ) {                                                                
      if( current_entry >= first_entry ) {                            
         /* Move the entry to the return buffer */                    
         tmp_dirent.d_off = current_entry;                            
         tmp_dirent.d_reclen = sizeof( struct dirent );               
ffc12280:	3a c0 01 18 	li      r22,280                                
ffc12284:	48 00 00 1c 	b       ffc122a0 <imfs_dir_read+0xb4>          
#include "imfs.h"                                                     
                                                                      
#include <string.h>                                                   
#include <dirent.h>                                                   
                                                                      
ssize_t imfs_dir_read(                                                
ffc12288:	3b ff 01 18 	addi    r31,r31,280                            
   }                                                                  
                                                                      
   rtems_filesystem_instance_unlock( &iop->pathinfo );                
                                                                      
   return bytes_transferred;                                          
}                                                                     
ffc1228c:	83 de 00 00 	lwz     r30,0(r30)                             
   /* -dirent- size. These could result in unexpected results          */
   last_entry = first_entry                                           
     + (count / sizeof( struct dirent )) * sizeof( struct dirent );   
                                                                      
   /* The directory was not empty so try to move to the desired entry in chain*/
   for (                                                              
ffc12290:	7f 9b f8 00 	cmpw    cr7,r27,r31                            
      current_entry = 0,                                              
        the_node = rtems_chain_first( the_chain );                    
      current_entry < last_entry                                      
        && !rtems_chain_is_tail( the_chain, the_node );               
ffc12294:	7f 1e e0 00 	cmpw    cr6,r30,r28                            
   /* -dirent- size. These could result in unexpected results          */
   last_entry = first_entry                                           
     + (count / sizeof( struct dirent )) * sizeof( struct dirent );   
                                                                      
   /* The directory was not empty so try to move to the desired entry in chain*/
   for (                                                              
ffc12298:	40 9d 00 8c 	ble-    cr7,ffc12324 <imfs_dir_read+0x138>     <== NEVER TAKEN
      current_entry = 0,                                              
        the_node = rtems_chain_first( the_chain );                    
      current_entry < last_entry                                      
        && !rtems_chain_is_tail( the_chain, the_node );               
ffc1229c:	41 9a 00 88 	beq-    cr6,ffc12324 <imfs_dir_read+0x138>     
      current_entry +=  sizeof( struct dirent ),                      
        the_node = rtems_chain_next( the_node )                       
   ) {                                                                
      if( current_entry >= first_entry ) {                            
ffc122a0:	7f 9d f8 00 	cmpw    cr7,r29,r31                            
ffc122a4:	41 9d ff e4 	bgt+    cr7,ffc12288 <imfs_dir_read+0x9c>      
         /* Move the entry to the return buffer */                    
         tmp_dirent.d_off = current_entry;                            
         tmp_dirent.d_reclen = sizeof( struct dirent );               
         the_jnode = (IMFS_jnode_t *) the_node;                       
         tmp_dirent.d_ino = the_jnode->st_ino;                        
ffc122a8:	81 3e 00 38 	lwz     r9,56(r30)                             
         tmp_dirent.d_namlen = strlen( the_jnode->name );             
ffc122ac:	3b 1e 00 0c 	addi    r24,r30,12                             
      current_entry +=  sizeof( struct dirent ),                      
        the_node = rtems_chain_next( the_node )                       
   ) {                                                                
      if( current_entry >= first_entry ) {                            
         /* Move the entry to the return buffer */                    
         tmp_dirent.d_off = current_entry;                            
ffc122b0:	7f ea fe 70 	srawi   r10,r31,31                             
ffc122b4:	93 e1 00 14 	stw     r31,20(r1)                             
         tmp_dirent.d_reclen = sizeof( struct dirent );               
         the_jnode = (IMFS_jnode_t *) the_node;                       
         tmp_dirent.d_ino = the_jnode->st_ino;                        
         tmp_dirent.d_namlen = strlen( the_jnode->name );             
ffc122b8:	7f 03 c3 78 	mr      r3,r24                                 
      current_entry +=  sizeof( struct dirent ),                      
        the_node = rtems_chain_next( the_node )                       
   ) {                                                                
      if( current_entry >= first_entry ) {                            
         /* Move the entry to the return buffer */                    
         tmp_dirent.d_off = current_entry;                            
ffc122bc:	91 41 00 10 	stw     r10,16(r1)                             
#include "imfs.h"                                                     
                                                                      
#include <string.h>                                                   
#include <dirent.h>                                                   
                                                                      
ssize_t imfs_dir_read(                                                
ffc122c0:	3b ff 01 18 	addi    r31,r31,280                            
      if( current_entry >= first_entry ) {                            
         /* Move the entry to the return buffer */                    
         tmp_dirent.d_off = current_entry;                            
         tmp_dirent.d_reclen = sizeof( struct dirent );               
         the_jnode = (IMFS_jnode_t *) the_node;                       
         tmp_dirent.d_ino = the_jnode->st_ino;                        
ffc122c4:	91 21 00 08 	stw     r9,8(r1)                               
        the_node = rtems_chain_next( the_node )                       
   ) {                                                                
      if( current_entry >= first_entry ) {                            
         /* Move the entry to the return buffer */                    
         tmp_dirent.d_off = current_entry;                            
         tmp_dirent.d_reclen = sizeof( struct dirent );               
ffc122c8:	b2 c1 00 18 	sth     r22,24(r1)                             
         the_jnode = (IMFS_jnode_t *) the_node;                       
         tmp_dirent.d_ino = the_jnode->st_ino;                        
         tmp_dirent.d_namlen = strlen( the_jnode->name );             
ffc122cc:	48 00 26 01 	bl      ffc148cc <strlen>                      
ffc122d0:	7c 69 1b 78 	mr      r9,r3                                  
         strcpy( tmp_dirent.d_name, the_jnode->name );                
ffc122d4:	38 a3 00 01 	addi    r5,r3,1                                
         /* Move the entry to the return buffer */                    
         tmp_dirent.d_off = current_entry;                            
         tmp_dirent.d_reclen = sizeof( struct dirent );               
         the_jnode = (IMFS_jnode_t *) the_node;                       
         tmp_dirent.d_ino = the_jnode->st_ino;                        
         tmp_dirent.d_namlen = strlen( the_jnode->name );             
ffc122d8:	b1 21 00 1a 	sth     r9,26(r1)                              
         strcpy( tmp_dirent.d_name, the_jnode->name );                
ffc122dc:	7f 04 c3 78 	mr      r4,r24                                 
ffc122e0:	38 61 00 1c 	addi    r3,r1,28                               
ffc122e4:	48 00 1a 99 	bl      ffc13d7c <memcpy>                      
         memcpy(                                                      
ffc122e8:	7c 77 ca 14 	add     r3,r23,r25                             
ffc122ec:	38 81 00 08 	addi    r4,r1,8                                
ffc122f0:	38 a0 01 18 	li      r5,280                                 
ffc122f4:	48 00 1a 89 	bl      ffc13d7c <memcpy>                      
   /* -dirent- size. These could result in unexpected results          */
   last_entry = first_entry                                           
     + (count / sizeof( struct dirent )) * sizeof( struct dirent );   
                                                                      
   /* The directory was not empty so try to move to the desired entry in chain*/
   for (                                                              
ffc122f8:	7f 9b f8 00 	cmpw    cr7,r27,r31                            
         memcpy(                                                      
            buffer + bytes_transferred,                               
            (void *)&tmp_dirent,                                      
            sizeof( struct dirent )                                   
         );                                                           
         iop->offset += sizeof( struct dirent );                      
ffc122fc:	81 5a 00 08 	lwz     r10,8(r26)                             
         bytes_transferred += sizeof( struct dirent );                
ffc12300:	3b 39 01 18 	addi    r25,r25,280                            
         memcpy(                                                      
            buffer + bytes_transferred,                               
            (void *)&tmp_dirent,                                      
            sizeof( struct dirent )                                   
         );                                                           
         iop->offset += sizeof( struct dirent );                      
ffc12304:	81 7a 00 0c 	lwz     r11,12(r26)                            
   }                                                                  
                                                                      
   rtems_filesystem_instance_unlock( &iop->pathinfo );                
                                                                      
   return bytes_transferred;                                          
}                                                                     
ffc12308:	83 de 00 00 	lwz     r30,0(r30)                             
         memcpy(                                                      
            buffer + bytes_transferred,                               
            (void *)&tmp_dirent,                                      
            sizeof( struct dirent )                                   
         );                                                           
         iop->offset += sizeof( struct dirent );                      
ffc1230c:	31 6b 01 18 	addic   r11,r11,280                            
ffc12310:	7d 4a 01 94 	addze   r10,r10                                
ffc12314:	91 5a 00 08 	stw     r10,8(r26)                             
   /* The directory was not empty so try to move to the desired entry in chain*/
   for (                                                              
      current_entry = 0,                                              
        the_node = rtems_chain_first( the_chain );                    
      current_entry < last_entry                                      
        && !rtems_chain_is_tail( the_chain, the_node );               
ffc12318:	7f 1e e0 00 	cmpw    cr6,r30,r28                            
         memcpy(                                                      
            buffer + bytes_transferred,                               
            (void *)&tmp_dirent,                                      
            sizeof( struct dirent )                                   
         );                                                           
         iop->offset += sizeof( struct dirent );                      
ffc1231c:	91 7a 00 0c 	stw     r11,12(r26)                            
   /* -dirent- size. These could result in unexpected results          */
   last_entry = first_entry                                           
     + (count / sizeof( struct dirent )) * sizeof( struct dirent );   
                                                                      
   /* The directory was not empty so try to move to the desired entry in chain*/
   for (                                                              
ffc12320:	41 9d ff 7c 	bgt+    cr7,ffc1229c <imfs_dir_read+0xb0>      <== NEVER TAKEN
   }                                                                  
                                                                      
   rtems_filesystem_instance_unlock( &iop->pathinfo );                
                                                                      
   return bytes_transferred;                                          
}                                                                     
ffc12324:	80 7a 00 28 	lwz     r3,40(r26)                             
  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 );                             
ffc12328:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc1232c:	81 29 00 04 	lwz     r9,4(r9)                               
ffc12330:	7d 29 03 a6 	mtctr   r9                                     
ffc12334:	4e 80 04 21 	bctrl                                          
ffc12338:	80 01 01 54 	lwz     r0,340(r1)                             
ffc1233c:	7f 23 cb 78 	mr      r3,r25                                 
ffc12340:	82 c1 01 28 	lwz     r22,296(r1)                            
ffc12344:	7c 08 03 a6 	mtlr    r0                                     
ffc12348:	82 e1 01 2c 	lwz     r23,300(r1)                            
ffc1234c:	83 01 01 30 	lwz     r24,304(r1)                            
ffc12350:	83 21 01 34 	lwz     r25,308(r1)                            
ffc12354:	83 41 01 38 	lwz     r26,312(r1)                            
ffc12358:	83 61 01 3c 	lwz     r27,316(r1)                            
ffc1235c:	83 81 01 40 	lwz     r28,320(r1)                            
ffc12360:	83 a1 01 44 	lwz     r29,324(r1)                            
ffc12364:	83 c1 01 48 	lwz     r30,328(r1)                            
ffc12368:	83 e1 01 4c 	lwz     r31,332(r1)                            
ffc1236c:	38 21 01 50 	addi    r1,r1,336                              
ffc12370:	4e 80 00 20 	blr                                            
   the_jnode = (IMFS_jnode_t *)iop->pathinfo.node_access;             
   the_chain = &the_jnode->info.directory.Entries;                    
                                                                      
   /* Move to the first of the desired directory entries */           
                                                                      
   bytes_transferred = 0;                                             
ffc12374:	3b 20 00 00 	li      r25,0                                  
ffc12378:	4b ff ff ac 	b       ffc12324 <imfs_dir_read+0x138>         
                                                                      

ffc2ce80 <init_etc_passwd_group>: void init_etc_passwd_group(void) { FILE *fp; static char etc_passwd_initted = 0; if (etc_passwd_initted)
ffc2ce80:	3d 20 00 00 	lis     r9,0                                   
ffc2ce84:	89 49 5d 64 	lbz     r10,23908(r9)                          
ffc2ce88:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc2ce8c:	4c be 00 20 	bnelr+  cr7                                    
                                                                      
/**                                                                   
 *  Initialize useable but dummy databases                            
 */                                                                   
void init_etc_passwd_group(void)                                      
{                                                                     
ffc2ce90:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc2ce94:	7c 08 02 a6 	mflr    r0                                     
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
    return;                                                           
  etc_passwd_initted = 1;                                             
  mkdir("/etc", 0777);                                                
ffc2ce98:	3c 60 ff c6 	lis     r3,-58                                 
                                                                      
/**                                                                   
 *  Initialize useable but dummy databases                            
 */                                                                   
void init_etc_passwd_group(void)                                      
{                                                                     
ffc2ce9c:	93 c1 00 08 	stw     r30,8(r1)                              
  mkdir("/etc", 0777);                                                
                                                                      
  /*                                                                  
   *  Initialize /etc/passwd                                          
   */                                                                 
  if ((fp = fopen("/etc/passwd", "r")) != NULL) {                     
ffc2cea0:	3f c0 ff c6 	lis     r30,-58                                
  FILE *fp;                                                           
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
    return;                                                           
  etc_passwd_initted = 1;                                             
ffc2cea4:	39 40 00 01 	li      r10,1                                  
                                                                      
/**                                                                   
 *  Initialize useable but dummy databases                            
 */                                                                   
void init_etc_passwd_group(void)                                      
{                                                                     
ffc2cea8:	93 e1 00 0c 	stw     r31,12(r1)                             
  mkdir("/etc", 0777);                                                
                                                                      
  /*                                                                  
   *  Initialize /etc/passwd                                          
   */                                                                 
  if ((fp = fopen("/etc/passwd", "r")) != NULL) {                     
ffc2ceac:	3f e0 ff c6 	lis     r31,-58                                
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
    return;                                                           
  etc_passwd_initted = 1;                                             
  mkdir("/etc", 0777);                                                
ffc2ceb0:	38 80 01 ff 	li      r4,511                                 
ffc2ceb4:	38 63 7f 64 	addi    r3,r3,32612                            
                                                                      
/**                                                                   
 *  Initialize useable but dummy databases                            
 */                                                                   
void init_etc_passwd_group(void)                                      
{                                                                     
ffc2ceb8:	90 01 00 14 	stw     r0,20(r1)                              
  mkdir("/etc", 0777);                                                
                                                                      
  /*                                                                  
   *  Initialize /etc/passwd                                          
   */                                                                 
  if ((fp = fopen("/etc/passwd", "r")) != NULL) {                     
ffc2cebc:	3b de 7f 6c 	addi    r30,r30,32620                          
ffc2cec0:	3b ff 70 30 	addi    r31,r31,28720                          
  FILE *fp;                                                           
  static char etc_passwd_initted = 0;                                 
                                                                      
  if (etc_passwd_initted)                                             
    return;                                                           
  etc_passwd_initted = 1;                                             
ffc2cec4:	99 49 5d 64 	stb     r10,23908(r9)                          
  mkdir("/etc", 0777);                                                
ffc2cec8:	4b fd 7c 11 	bl      ffc04ad8 <mkdir>                       
                                                                      
  /*                                                                  
   *  Initialize /etc/passwd                                          
   */                                                                 
  if ((fp = fopen("/etc/passwd", "r")) != NULL) {                     
ffc2cecc:	7f c3 f3 78 	mr      r3,r30                                 
ffc2ced0:	7f e4 fb 78 	mr      r4,r31                                 
ffc2ced4:	48 01 78 e9 	bl      ffc447bc <fopen>                       
ffc2ced8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2cedc:	41 9e 00 3c 	beq-    cr7,ffc2cf18 <init_etc_passwd_group+0x98>
  }                                                                   
  else if ((fp = fopen("/etc/passwd", "w")) != NULL) {                
    fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"                        
                 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n"         
                 "tty:!:2:2:tty owner::/:/bin/false\n" );             
    fclose(fp);                                                       
ffc2cee0:	48 01 6c c5 	bl      ffc43ba4 <fclose>                      
  }                                                                   
                                                                      
  /*                                                                  
   *  Initialize /etc/group                                           
   */                                                                 
  if ((fp = fopen("/etc/group", "r")) != NULL) {                      
ffc2cee4:	3f c0 ff c6 	lis     r30,-58                                
ffc2cee8:	3b de 7f e0 	addi    r30,r30,32736                          
ffc2ceec:	7f c3 f3 78 	mr      r3,r30                                 
ffc2cef0:	7f e4 fb 78 	mr      r4,r31                                 
ffc2cef4:	48 01 78 c9 	bl      ffc447bc <fopen>                       
ffc2cef8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2cefc:	41 9e 00 54 	beq-    cr7,ffc2cf50 <init_etc_passwd_group+0xd0>
    fprintf( fp, "root:x:0:root\n"                                    
                 "rtems:x:1:rtems\n"                                  
                 "tty:x:2:tty\n" );                                   
    fclose(fp);                                                       
  }                                                                   
}                                                                     
ffc2cf00:	80 01 00 14 	lwz     r0,20(r1)                              
ffc2cf04:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc2cf08:	7c 08 03 a6 	mtlr    r0                                     
ffc2cf0c:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc2cf10:	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);                                                       
ffc2cf14:	48 01 6c 90 	b       ffc43ba4 <fclose>                      
   *  Initialize /etc/passwd                                          
   */                                                                 
  if ((fp = fopen("/etc/passwd", "r")) != NULL) {                     
    fclose(fp);                                                       
  }                                                                   
  else if ((fp = fopen("/etc/passwd", "w")) != NULL) {                
ffc2cf18:	3c 80 ff c6 	lis     r4,-58                                 
ffc2cf1c:	7f c3 f3 78 	mr      r3,r30                                 
ffc2cf20:	38 84 2f f8 	addi    r4,r4,12280                            
ffc2cf24:	48 01 78 99 	bl      ffc447bc <fopen>                       
ffc2cf28:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc2cf2c:	41 a2 ff b8 	beq-    ffc2cee4 <init_etc_passwd_group+0x64>  <== NEVER TAKEN
    fprintf(fp, "root:*:0:0:root::/:/bin/sh\n"                        
ffc2cf30:	3c 60 ff c6 	lis     r3,-58                                 
ffc2cf34:	38 63 7f 78 	addi    r3,r3,32632                            
ffc2cf38:	38 80 00 01 	li      r4,1                                   
ffc2cf3c:	38 a0 00 66 	li      r5,102                                 
ffc2cf40:	7f c6 f3 78 	mr      r6,r30                                 
ffc2cf44:	48 01 8f cd 	bl      ffc45f10 <fwrite>                      
                 "rtems:*:1:1:RTEMS Application::/:/bin/sh\n"         
                 "tty:!:2:2:tty owner::/:/bin/false\n" );             
    fclose(fp);                                                       
ffc2cf48:	7f c3 f3 78 	mr      r3,r30                                 
ffc2cf4c:	4b ff ff 94 	b       ffc2cee0 <init_etc_passwd_group+0x60>  
   *  Initialize /etc/group                                           
   */                                                                 
  if ((fp = fopen("/etc/group", "r")) != NULL) {                      
    fclose(fp);                                                       
  }                                                                   
  else if ((fp = fopen("/etc/group", "w")) != NULL) {                 
ffc2cf50:	3c 80 ff c6 	lis     r4,-58                                 
ffc2cf54:	7f c3 f3 78 	mr      r3,r30                                 
ffc2cf58:	38 84 2f f8 	addi    r4,r4,12280                            
ffc2cf5c:	48 01 78 61 	bl      ffc447bc <fopen>                       
ffc2cf60:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc2cf64:	41 82 00 24 	beq-    ffc2cf88 <init_etc_passwd_group+0x108> <== NEVER TAKEN
    fprintf( fp, "root:x:0:root\n"                                    
ffc2cf68:	3c 60 ff c6 	lis     r3,-58                                 
ffc2cf6c:	38 63 7f ec 	addi    r3,r3,32748                            
ffc2cf70:	38 80 00 01 	li      r4,1                                   
ffc2cf74:	38 a0 00 2a 	li      r5,42                                  
ffc2cf78:	7f e6 fb 78 	mr      r6,r31                                 
ffc2cf7c:	48 01 8f 95 	bl      ffc45f10 <fwrite>                      
                 "rtems:x:1:rtems\n"                                  
                 "tty:x:2:tty\n" );                                   
    fclose(fp);                                                       
ffc2cf80:	7f e3 fb 78 	mr      r3,r31                                 
ffc2cf84:	4b ff ff 7c 	b       ffc2cf00 <init_etc_passwd_group+0x80>  
  }                                                                   
}                                                                     
ffc2cf88:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
ffc2cf8c:	83 c1 00 08 	lwz     r30,8(r1)                              <== NOT EXECUTED
ffc2cf90:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc2cf94:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc2cf98:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc2cf9c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc08048 <iproc>: /* * Process a single input character */ static int iproc (unsigned char c, struct rtems_termios_tty *tty) {
ffc08048:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0804c:	7c 08 02 a6 	mflr    r0                                     
ffc08050:	90 01 00 14 	stw     r0,20(r1)                              
  if (tty->termios.c_iflag & ISTRIP)                                  
ffc08054:	81 24 00 30 	lwz     r9,48(r4)                              
/*                                                                    
 * Process a single input character                                   
 */                                                                   
static int                                                            
iproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
ffc08058:	93 c1 00 08 	stw     r30,8(r1)                              
ffc0805c:	7c 9e 23 78 	mr      r30,r4                                 
  if (tty->termios.c_iflag & ISTRIP)                                  
ffc08060:	71 28 00 20 	andi.   r8,r9,32                               
/*                                                                    
 * Process a single input character                                   
 */                                                                   
static int                                                            
iproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
ffc08064:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc08068:	7c 7f 1b 78 	mr      r31,r3                                 
  if (tty->termios.c_iflag & ISTRIP)                                  
ffc0806c:	41 82 00 08 	beq-    ffc08074 <iproc+0x2c>                  <== ALWAYS TAKEN
    c &= 0x7f;                                                        
ffc08070:	54 7f 06 7e 	clrlwi  r31,r3,25                              <== NOT EXECUTED
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
ffc08074:	71 2a 02 00 	andi.   r10,r9,512                             
ffc08078:	41 82 00 28 	beq-    ffc080a0 <iproc+0x58>                  
    c = tolower (c);                                                  
ffc0807c:	3d 40 00 00 	lis     r10,0                                  
ffc08080:	81 0a 27 e0 	lwz     r8,10208(r10)                          
ffc08084:	7f ea fb 78 	mr      r10,r31                                
ffc08088:	7f e8 fa 14 	add     r31,r8,r31                             
ffc0808c:	89 1f 00 01 	lbz     r8,1(r31)                              
ffc08090:	55 08 07 be 	clrlwi  r8,r8,30                               
ffc08094:	2f 88 00 01 	cmpwi   cr7,r8,1                               
ffc08098:	41 9e 01 3c 	beq-    cr7,ffc081d4 <iproc+0x18c>             
ffc0809c:	55 5f 06 3e 	clrlwi  r31,r10,24                             
                                                                      
  if (c == '\r') {                                                    
ffc080a0:	2f 9f 00 0d 	cmpwi   cr7,r31,13                             
ffc080a4:	41 9e 00 98 	beq-    cr7,ffc0813c <iproc+0xf4>              
    if (tty->termios.c_iflag & IGNCR)                                 
      return 0;                                                       
    if (tty->termios.c_iflag & ICRNL)                                 
      c = '\n';                                                       
  } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {         
ffc080a8:	2f 9f 00 0a 	cmpwi   cr7,r31,10                             
ffc080ac:	41 9e 01 18 	beq-    cr7,ffc081c4 <iproc+0x17c>             
    c = '\r';                                                         
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
ffc080b0:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc080b4:	40 9e 00 9c 	bne-    cr7,ffc08150 <iproc+0x108>             <== ALWAYS TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
ffc080b8:	3d 20 00 00 	lis     r9,0                                   
ffc080bc:	81 49 21 64 	lwz     r10,8548(r9)                           
ffc080c0:	81 3e 00 20 	lwz     r9,32(r30)                             
ffc080c4:	39 4a ff ff 	addi    r10,r10,-1                             
ffc080c8:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc080cc:	40 9c 00 54 	bge-    cr7,ffc08120 <iproc+0xd8>              <== NEVER TAKEN
    if (tty->termios.c_lflag & ECHO)                                  
ffc080d0:	81 5e 00 3c 	lwz     r10,60(r30)                            
ffc080d4:	71 48 00 08 	andi.   r8,r10,8                               
ffc080d8:	40 82 01 04 	bne-    ffc081dc <iproc+0x194>                 <== ALWAYS TAKEN
      echo (c, tty);                                                  
    tty->cbuf[tty->ccount++] = c;                                     
ffc080dc:	81 5e 00 1c 	lwz     r10,28(r30)                            
ffc080e0:	39 09 00 01 	addi    r8,r9,1                                
  }                                                                   
  return 0;                                                           
ffc080e4:	38 60 00 00 	li      r3,0                                   
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
    if (tty->termios.c_lflag & ECHO)                                  
      echo (c, tty);                                                  
    tty->cbuf[tty->ccount++] = c;                                     
ffc080e8:	7f ea 49 ae 	stbx    r31,r10,r9                             
ffc080ec:	91 1e 00 20 	stw     r8,32(r30)                             
  }                                                                   
  return 0;                                                           
}                                                                     
ffc080f0:	80 01 00 14 	lwz     r0,20(r1)                              
ffc080f4:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc080f8:	7c 08 03 a6 	mtlr    r0                                     
ffc080fc:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc08100:	38 21 00 10 	addi    r1,r1,16                               
ffc08104:	4e 80 00 20 	blr                                            
 * FIXME: Some of the tests should check for IEXTEN, too.             
 */                                                                   
static void                                                           
erase (struct rtems_termios_tty *tty, int lineFlag)                   
{                                                                     
  if (tty->ccount == 0)                                               
ffc08108:	81 3e 00 20 	lwz     r9,32(r30)                             
ffc0810c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08110:	41 9e 00 10 	beq-    cr7,ffc08120 <iproc+0xd8>              
ffc08114:	7f c3 f3 78 	mr      r3,r30                                 
ffc08118:	38 80 00 00 	li      r4,0                                   
ffc0811c:	4b ff fc fd 	bl      ffc07e18 <erase.part.2>                
    if (tty->termios.c_lflag & ECHO)                                  
      echo (c, tty);                                                  
    tty->cbuf[tty->ccount++] = c;                                     
  }                                                                   
  return 0;                                                           
}                                                                     
ffc08120:	80 01 00 14 	lwz     r0,20(r1)                              
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
    if (c == tty->termios.c_cc[VERASE]) {                             
      erase (tty, 0);                                                 
      return 0;                                                       
ffc08124:	38 60 00 00 	li      r3,0                                   
    if (tty->termios.c_lflag & ECHO)                                  
      echo (c, tty);                                                  
    tty->cbuf[tty->ccount++] = c;                                     
  }                                                                   
  return 0;                                                           
}                                                                     
ffc08128:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0812c:	7c 08 03 a6 	mtlr    r0                                     
ffc08130:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc08134:	38 21 00 10 	addi    r1,r1,16                               
ffc08138:	4e 80 00 20 	blr                                            
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
    c = tolower (c);                                                  
                                                                      
  if (c == '\r') {                                                    
    if (tty->termios.c_iflag & IGNCR)                                 
ffc0813c:	71 28 00 80 	andi.   r8,r9,128                              
ffc08140:	40 a2 ff e0 	bne-    ffc08120 <iproc+0xd8>                  <== NEVER TAKEN
      return 0;                                                       
    if (tty->termios.c_iflag & ICRNL)                                 
ffc08144:	71 2a 01 00 	andi.   r10,r9,256                             
ffc08148:	41 82 00 08 	beq-    ffc08150 <iproc+0x108>                 <== NEVER TAKEN
      c = '\n';                                                       
ffc0814c:	3b e0 00 0a 	li      r31,10                                 
  } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {         
    c = '\r';                                                         
  }                                                                   
                                                                      
  if ((c != '\0') && (tty->termios.c_lflag & ICANON)) {               
ffc08150:	81 3e 00 3c 	lwz     r9,60(r30)                             
ffc08154:	71 2a 00 02 	andi.   r10,r9,2                               
ffc08158:	41 a2 ff 60 	beq-    ffc080b8 <iproc+0x70>                  
    if (c == tty->termios.c_cc[VERASE]) {                             
ffc0815c:	89 5e 00 43 	lbz     r10,67(r30)                            
ffc08160:	7f 8a f8 00 	cmpw    cr7,r10,r31                            
ffc08164:	41 be ff a4 	beq-    cr7,ffc08108 <iproc+0xc0>              
      erase (tty, 0);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
ffc08168:	89 5e 00 44 	lbz     r10,68(r30)                            
ffc0816c:	7f 8a f8 00 	cmpw    cr7,r10,r31                            
ffc08170:	41 9e 00 90 	beq-    cr7,ffc08200 <iproc+0x1b8>             
      erase (tty, 1);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
ffc08174:	89 5e 00 45 	lbz     r10,69(r30)                            
ffc08178:	7f 8a f8 00 	cmpw    cr7,r10,r31                            
ffc0817c:	41 9e 00 e8 	beq-    cr7,ffc08264 <iproc+0x21c>             <== NEVER TAKEN
      return 1;                                                       
    } else if (c == '\n') {                                           
ffc08180:	2f 9f 00 0a 	cmpwi   cr7,r31,10                             
ffc08184:	41 9e 00 ac 	beq-    cr7,ffc08230 <iproc+0x1e8>             
      if (tty->termios.c_lflag & (ECHO | ECHONL))                     
        echo (c, tty);                                                
      tty->cbuf[tty->ccount++] = c;                                   
      return 1;                                                       
    } else if ((c == tty->termios.c_cc[VEOL]) ||                      
ffc08188:	89 5e 00 4c 	lbz     r10,76(r30)                            
ffc0818c:	7f 8a f8 00 	cmpw    cr7,r10,r31                            
ffc08190:	41 9e 00 10 	beq-    cr7,ffc081a0 <iproc+0x158>             <== NEVER TAKEN
ffc08194:	89 5e 00 51 	lbz     r10,81(r30)                            
ffc08198:	7f 8a f8 00 	cmpw    cr7,r10,r31                            
ffc0819c:	40 9e ff 1c 	bne+    cr7,ffc080b8 <iproc+0x70>              <== ALWAYS TAKEN
               (c == tty->termios.c_cc[VEOL2])) {                     
      if (tty->termios.c_lflag & ECHO)                                
ffc081a0:	71 28 00 08 	andi.   r8,r9,8                                <== NOT EXECUTED
ffc081a4:	40 82 00 4c 	bne-    ffc081f0 <iproc+0x1a8>                 <== NOT EXECUTED
        echo (c, tty);                                                
      tty->cbuf[tty->ccount++] = c;                                   
ffc081a8:	81 3e 00 20 	lwz     r9,32(r30)                             <== NOT EXECUTED
      return 1;                                                       
ffc081ac:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
      return 1;                                                       
    } else if ((c == tty->termios.c_cc[VEOL]) ||                      
               (c == tty->termios.c_cc[VEOL2])) {                     
      if (tty->termios.c_lflag & ECHO)                                
        echo (c, tty);                                                
      tty->cbuf[tty->ccount++] = c;                                   
ffc081b0:	81 5e 00 1c 	lwz     r10,28(r30)                            <== NOT EXECUTED
ffc081b4:	39 09 00 01 	addi    r8,r9,1                                <== NOT EXECUTED
ffc081b8:	7f ea 49 ae 	stbx    r31,r10,r9                             <== NOT EXECUTED
ffc081bc:	91 1e 00 20 	stw     r8,32(r30)                             <== NOT EXECUTED
      return 1;                                                       
ffc081c0:	4b ff ff 30 	b       ffc080f0 <iproc+0xa8>                  <== NOT EXECUTED
  if (c == '\r') {                                                    
    if (tty->termios.c_iflag & IGNCR)                                 
      return 0;                                                       
    if (tty->termios.c_iflag & ICRNL)                                 
      c = '\n';                                                       
  } else if ((c == '\n') && (tty->termios.c_iflag & INLCR)) {         
ffc081c4:	71 28 00 40 	andi.   r8,r9,64                               
ffc081c8:	41 a2 ff 88 	beq-    ffc08150 <iproc+0x108>                 <== ALWAYS TAKEN
    c = '\r';                                                         
ffc081cc:	3b e0 00 0d 	li      r31,13                                 <== NOT EXECUTED
ffc081d0:	4b ff ff 80 	b       ffc08150 <iproc+0x108>                 <== NOT EXECUTED
{                                                                     
  if (tty->termios.c_iflag & ISTRIP)                                  
    c &= 0x7f;                                                        
                                                                      
  if (tty->termios.c_iflag & IUCLC)                                   
    c = tolower (c);                                                  
ffc081d4:	39 4a 00 20 	addi    r10,r10,32                             
ffc081d8:	4b ff fe c4 	b       ffc0809c <iproc+0x54>                  
  /*                                                                  
   * FIXME: Should do IMAXBEL handling somehow                        
   */                                                                 
  if (tty->ccount < (CBUFSIZE-1)) {                                   
    if (tty->termios.c_lflag & ECHO)                                  
      echo (c, tty);                                                  
ffc081dc:	7f e3 fb 78 	mr      r3,r31                                 
ffc081e0:	7f c4 f3 78 	mr      r4,r30                                 
ffc081e4:	4b ff fb 8d 	bl      ffc07d70 <echo>                        
ffc081e8:	81 3e 00 20 	lwz     r9,32(r30)                             
ffc081ec:	4b ff fe f0 	b       ffc080dc <iproc+0x94>                  
      tty->cbuf[tty->ccount++] = c;                                   
      return 1;                                                       
    } else if ((c == tty->termios.c_cc[VEOL]) ||                      
               (c == tty->termios.c_cc[VEOL2])) {                     
      if (tty->termios.c_lflag & ECHO)                                
        echo (c, tty);                                                
ffc081f0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc081f4:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc081f8:	4b ff fb 79 	bl      ffc07d70 <echo>                        <== NOT EXECUTED
ffc081fc:	4b ff ff ac 	b       ffc081a8 <iproc+0x160>                 <== NOT EXECUTED
 * FIXME: Some of the tests should check for IEXTEN, too.             
 */                                                                   
static void                                                           
erase (struct rtems_termios_tty *tty, int lineFlag)                   
{                                                                     
  if (tty->ccount == 0)                                               
ffc08200:	81 5e 00 20 	lwz     r10,32(r30)                            
ffc08204:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc08208:	41 be ff 18 	beq-    cr7,ffc08120 <iproc+0xd8>              <== NEVER TAKEN
    return;                                                           
  if (lineFlag) {                                                     
    if (!(tty->termios.c_lflag & ECHO)) {                             
ffc0820c:	71 2a 00 08 	andi.   r10,r9,8                               
ffc08210:	41 82 00 5c 	beq-    ffc0826c <iproc+0x224>                 <== NEVER TAKEN
      tty->ccount = 0;                                                
      return;                                                         
    }                                                                 
    if (!(tty->termios.c_lflag & ECHOE)) {                            
ffc08214:	71 2a 00 10 	andi.   r10,r9,16                              
ffc08218:	41 82 00 60 	beq-    ffc08278 <iproc+0x230>                 <== NEVER TAKEN
ffc0821c:	7f c3 f3 78 	mr      r3,r30                                 
ffc08220:	38 80 00 01 	li      r4,1                                   
ffc08224:	4b ff fb f5 	bl      ffc07e18 <erase.part.2>                
      erase (tty, 0);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
      erase (tty, 1);                                                 
      return 0;                                                       
ffc08228:	38 60 00 00 	li      r3,0                                   
ffc0822c:	4b ff fe c4 	b       ffc080f0 <iproc+0xa8>                  
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
      return 1;                                                       
    } else if (c == '\n') {                                           
      if (tty->termios.c_lflag & (ECHO | ECHONL))                     
ffc08230:	71 2a 00 48 	andi.   r10,r9,72                              
ffc08234:	41 a2 00 10 	beq+    ffc08244 <iproc+0x1fc>                 <== NEVER TAKEN
        echo (c, tty);                                                
ffc08238:	38 60 00 0a 	li      r3,10                                  
ffc0823c:	7f c4 f3 78 	mr      r4,r30                                 
ffc08240:	4b ff fb 31 	bl      ffc07d70 <echo>                        
      tty->cbuf[tty->ccount++] = c;                                   
ffc08244:	81 3e 00 20 	lwz     r9,32(r30)                             
ffc08248:	38 e0 00 0a 	li      r7,10                                  
ffc0824c:	81 5e 00 1c 	lwz     r10,28(r30)                            
      return 1;                                                       
ffc08250:	38 60 00 01 	li      r3,1                                   
    else if (c == tty->termios.c_cc[VEOF]) {                          
      return 1;                                                       
    } else if (c == '\n') {                                           
      if (tty->termios.c_lflag & (ECHO | ECHONL))                     
        echo (c, tty);                                                
      tty->cbuf[tty->ccount++] = c;                                   
ffc08254:	39 09 00 01 	addi    r8,r9,1                                
ffc08258:	7c ea 49 ae 	stbx    r7,r10,r9                              
ffc0825c:	91 1e 00 20 	stw     r8,32(r30)                             
      return 1;                                                       
ffc08260:	4b ff fe 90 	b       ffc080f0 <iproc+0xa8>                  
    else if (c == tty->termios.c_cc[VKILL]) {                         
      erase (tty, 1);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VEOF]) {                          
      return 1;                                                       
ffc08264:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc08268:	4b ff fe 88 	b       ffc080f0 <iproc+0xa8>                  <== NOT EXECUTED
{                                                                     
  if (tty->ccount == 0)                                               
    return;                                                           
  if (lineFlag) {                                                     
    if (!(tty->termios.c_lflag & ECHO)) {                             
      tty->ccount = 0;                                                
ffc0826c:	91 5e 00 20 	stw     r10,32(r30)                            <== NOT EXECUTED
      erase (tty, 0);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
      erase (tty, 1);                                                 
      return 0;                                                       
ffc08270:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc08274:	4b ff fe 7c 	b       ffc080f0 <iproc+0xa8>                  <== NOT EXECUTED
    if (!(tty->termios.c_lflag & ECHO)) {                             
      tty->ccount = 0;                                                
      return;                                                         
    }                                                                 
    if (!(tty->termios.c_lflag & ECHOE)) {                            
      tty->ccount = 0;                                                
ffc08278:	91 5e 00 20 	stw     r10,32(r30)                            <== NOT EXECUTED
      echo (tty->termios.c_cc[VKILL], tty);                           
ffc0827c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc08280:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc08284:	4b ff fa ed 	bl      ffc07d70 <echo>                        <== NOT EXECUTED
      if (tty->termios.c_lflag & ECHOK)                               
ffc08288:	81 3e 00 3c 	lwz     r9,60(r30)                             <== NOT EXECUTED
ffc0828c:	71 28 00 20 	andi.   r8,r9,32                               <== NOT EXECUTED
ffc08290:	41 82 fe 90 	beq+    ffc08120 <iproc+0xd8>                  <== NOT EXECUTED
        echo ('\n', tty);                                             
ffc08294:	38 60 00 0a 	li      r3,10                                  <== NOT EXECUTED
ffc08298:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc0829c:	4b ff fa d5 	bl      ffc07d70 <echo>                        <== NOT EXECUTED
      erase (tty, 0);                                                 
      return 0;                                                       
    }                                                                 
    else if (c == tty->termios.c_cc[VKILL]) {                         
      erase (tty, 1);                                                 
      return 0;                                                       
ffc082a0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc082a4:	4b ff fe 4c 	b       ffc080f0 <iproc+0xa8>                  <== NOT EXECUTED
                                                                      

ffc1e064 <killinfo>: int killinfo( pid_t pid, int sig, const union sigval *value ) {
ffc1e064:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc1e068:	7c 08 02 a6 	mflr    r0                                     
ffc1e06c:	93 61 00 1c 	stw     r27,28(r1)                             
ffc1e070:	7c bb 2b 78 	mr      r27,r5                                 
ffc1e074:	93 c1 00 28 	stw     r30,40(r1)                             
ffc1e078:	7c 9e 23 78 	mr      r30,r4                                 
ffc1e07c:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc1e080:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1e084:	90 01 00 34 	stw     r0,52(r1)                              
ffc1e088:	93 41 00 18 	stw     r26,24(r1)                             
ffc1e08c:	93 81 00 20 	stw     r28,32(r1)                             
ffc1e090:	93 a1 00 24 	stw     r29,36(r1)                             
  POSIX_signals_Siginfo_node  *psiginfo;                              
                                                                      
  /*                                                                  
   *  Only supported for the "calling process" (i.e. this node).      
   */                                                                 
  if ( pid != getpid() )                                              
ffc1e094:	4b ff fb dd 	bl      ffc1dc70 <getpid>                      
ffc1e098:	7f 83 f8 00 	cmpw    cr7,r3,r31                             
ffc1e09c:	40 9e 02 ac 	bne-    cr7,ffc1e348 <killinfo+0x2e4>          
    rtems_set_errno_and_return_minus_one( ESRCH );                    
                                                                      
  /*                                                                  
   *  Validate the signal passed.                                     
   */                                                                 
  if ( !sig )                                                         
ffc1e0a0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc1e0a4:	41 9e 02 b8 	beq-    cr7,ffc1e35c <killinfo+0x2f8>          
                                                                      
static inline bool is_valid_signo(                                    
  int signo                                                           
)                                                                     
{                                                                     
  return ((signo) >= 1 && (signo) <= 32 );                            
ffc1e0a8:	3b fe ff ff 	addi    r31,r30,-1                             
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
ffc1e0ac:	2b 9f 00 1f 	cmplwi  cr7,r31,31                             
ffc1e0b0:	41 9d 02 ac 	bgt-    cr7,ffc1e35c <killinfo+0x2f8>          
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  /*                                                                  
   *  If the signal is being ignored, then we are out of here.        
   */                                                                 
  if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN )          
ffc1e0b4:	1f be 00 0c 	mulli   r29,r30,12                             
ffc1e0b8:	3f 80 00 00 	lis     r28,0                                  
ffc1e0bc:	3b 9c 32 20 	addi    r28,r28,12832                          
ffc1e0c0:	7d 3c ea 14 	add     r9,r28,r29                             
ffc1e0c4:	81 29 00 08 	lwz     r9,8(r9)                               
ffc1e0c8:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc1e0cc:	41 9e 02 58 	beq-    cr7,ffc1e324 <killinfo+0x2c0>          
  /*                                                                  
   *  P1003.1c/Draft 10, p. 33 says that certain signals should always
   *  be directed to the executing thread such as those caused by hardware
   *  faults.                                                         
   */                                                                 
  if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) )      
ffc1e0d0:	2f 9e 00 08 	cmpwi   cr7,r30,8                              
ffc1e0d4:	41 9e 01 d0 	beq-    cr7,ffc1e2a4 <killinfo+0x240>          
ffc1e0d8:	2f 9e 00 04 	cmpwi   cr7,r30,4                              
ffc1e0dc:	41 9e 01 c8 	beq-    cr7,ffc1e2a4 <killinfo+0x240>          
ffc1e0e0:	2f 9e 00 0b 	cmpwi   cr7,r30,11                             
ffc1e0e4:	41 9e 01 c0 	beq-    cr7,ffc1e2a4 <killinfo+0x240>          
   *  Build up a siginfo structure                                    
   */                                                                 
  siginfo = &siginfo_struct;                                          
  siginfo->si_signo = sig;                                            
  siginfo->si_code = SI_USER;                                         
  if ( !value ) {                                                     
ffc1e0e8:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
                                                                      
  /*                                                                  
   *  Build up a siginfo structure                                    
   */                                                                 
  siginfo = &siginfo_struct;                                          
  siginfo->si_signo = sig;                                            
ffc1e0ec:	93 c1 00 08 	stw     r30,8(r1)                              
                                                                      
static inline sigset_t signo_to_mask(                                 
  uint32_t sig                                                        
)                                                                     
{                                                                     
  return 1u << (sig - 1);                                             
ffc1e0f0:	39 20 00 01 	li      r9,1                                   
ffc1e0f4:	7d 3f f8 30 	slw     r31,r9,r31                             
  siginfo->si_code = SI_USER;                                         
ffc1e0f8:	91 21 00 0c 	stw     r9,12(r1)                              
  if ( !value ) {                                                     
ffc1e0fc:	41 9e 02 30 	beq-    cr7,ffc1e32c <killinfo+0x2c8>          
    siginfo->si_value.sival_int = 0;                                  
  } else {                                                            
    siginfo->si_value = *value;                                       
ffc1e100:	81 3b 00 00 	lwz     r9,0(r27)                              
ffc1e104:	91 21 00 10 	stw     r9,16(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;                  
ffc1e108:	3d 20 00 00 	lis     r9,0                                   
ffc1e10c:	81 49 28 68 	lwz     r10,10344(r9)                          
                                                                      
    ++level;                                                          
ffc1e110:	39 4a 00 01 	addi    r10,r10,1                              
    _Thread_Dispatch_disable_level = level;                           
ffc1e114:	91 49 28 68 	stw     r10,10344(r9)                          
 */                                                                   
void _POSIX_signals_Manager_Initialization(void);                     
                                                                      
static inline void _POSIX_signals_Add_post_switch_extension(void)     
{                                                                     
  _API_extensions_Add_post_switch( &_POSIX_signals_Post_switch );     
ffc1e118:	3c 60 00 00 	lis     r3,0                                   
ffc1e11c:	38 63 22 20 	addi    r3,r3,8736                             
ffc1e120:	4b fe c5 01 	bl      ffc0a620 <_API_extensions_Add_post_switch>
                                                                      
  /*                                                                  
   *  Is the currently executing thread interested?  If so then it will
   *  get it an execute it as soon as the dispatcher executes.        
   */                                                                 
  the_thread = _Thread_Executing;                                     
ffc1e124:	3d 20 00 00 	lis     r9,0                                   
ffc1e128:	80 69 31 b0 	lwz     r3,12720(r9)                           
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
  if ( _POSIX_signals_Is_interested( api, mask ) ) {                  
ffc1e12c:	81 23 01 50 	lwz     r9,336(r3)                             
ffc1e130:	81 29 00 d0 	lwz     r9,208(r9)                             
ffc1e134:	7f e6 48 79 	andc.   r6,r31,r9                              
ffc1e138:	40 82 01 14 	bne-    ffc1e24c <killinfo+0x1e8>              
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc1e13c:	3d 20 00 00 	lis     r9,0                                   
ffc1e140:	38 e9 33 ac 	addi    r7,r9,13228                            
ffc1e144:	81 29 33 ac 	lwz     r9,13228(r9)                           
                                                                      
  /* XXX violation of visibility -- need to define thread queue support */
                                                                      
  the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;                 
                                                                      
  for ( the_node = _Chain_First( the_chain );                         
ffc1e148:	38 e7 00 04 	addi    r7,r7,4                                
ffc1e14c:	7f 89 38 00 	cmpw    cr7,r9,r7                              
ffc1e150:	41 9e 00 4c 	beq-    cr7,ffc1e19c <killinfo+0x138>          
    #endif                                                            
                                                                      
    /*                                                                
     * Is this thread is actually blocked waiting for the signal?     
     */                                                               
    if (the_thread->Wait.option & mask)                               
ffc1e154:	81 49 00 30 	lwz     r10,48(r9)                             
  for ( the_node = _Chain_First( the_chain );                         
        !_Chain_Is_tail( the_chain, the_node ) ;                      
        the_node = the_node->next ) {                                 
                                                                      
    the_thread = (Thread_Control *)the_node;                          
    api = the_thread->API_Extensions[ THREAD_API_POSIX ];             
ffc1e158:	81 09 01 50 	lwz     r8,336(r9)                             
    #endif                                                            
                                                                      
    /*                                                                
     * Is this thread is actually blocked waiting for the signal?     
     */                                                               
    if (the_thread->Wait.option & mask)                               
ffc1e15c:	7f eb 50 39 	and.    r11,r31,r10                            
ffc1e160:	40 82 01 78 	bne-    ffc1e2d8 <killinfo+0x274>              
                                                                      
    /*                                                                
     * Is this thread is blocked waiting for another signal but has   
     * not blocked this one?                                          
     */                                                               
    if (~api->signals_blocked & mask)                                 
ffc1e164:	81 48 00 d0 	lwz     r10,208(r8)                            
ffc1e168:	7f fa 50 79 	andc.   r26,r31,r10                            
ffc1e16c:	41 a2 00 24 	beq+    ffc1e190 <killinfo+0x12c>              
ffc1e170:	48 00 01 68 	b       ffc1e2d8 <killinfo+0x274>              
    #endif                                                            
                                                                      
    /*                                                                
     * Is this thread is actually blocked waiting for the signal?     
     */                                                               
    if (the_thread->Wait.option & mask)                               
ffc1e174:	81 49 00 30 	lwz     r10,48(r9)                             <== NOT EXECUTED
  for ( the_node = _Chain_First( the_chain );                         
        !_Chain_Is_tail( the_chain, the_node ) ;                      
        the_node = the_node->next ) {                                 
                                                                      
    the_thread = (Thread_Control *)the_node;                          
    api = the_thread->API_Extensions[ THREAD_API_POSIX ];             
ffc1e178:	81 09 01 50 	lwz     r8,336(r9)                             <== NOT EXECUTED
    #endif                                                            
                                                                      
    /*                                                                
     * Is this thread is actually blocked waiting for the signal?     
     */                                                               
    if (the_thread->Wait.option & mask)                               
ffc1e17c:	7f fb 50 39 	and.    r27,r31,r10                            <== NOT EXECUTED
ffc1e180:	40 82 01 58 	bne-    ffc1e2d8 <killinfo+0x274>              <== NOT EXECUTED
                                                                      
    /*                                                                
     * Is this thread is blocked waiting for another signal but has   
     * not blocked this one?                                          
     */                                                               
    if (~api->signals_blocked & mask)                                 
ffc1e184:	81 48 00 d0 	lwz     r10,208(r8)                            <== NOT EXECUTED
ffc1e188:	7f e6 50 79 	andc.   r6,r31,r10                             <== NOT EXECUTED
ffc1e18c:	40 82 01 4c 	bne-    ffc1e2d8 <killinfo+0x274>              <== NOT EXECUTED
                                                                      
  the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;                 
                                                                      
  for ( the_node = _Chain_First( the_chain );                         
        !_Chain_Is_tail( the_chain, the_node ) ;                      
        the_node = the_node->next ) {                                 
ffc1e190:	81 29 00 00 	lwz     r9,0(r9)                               
                                                                      
  /* XXX violation of visibility -- need to define thread queue support */
                                                                      
  the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;                 
                                                                      
  for ( the_node = _Chain_First( the_chain );                         
ffc1e194:	7f 89 38 00 	cmpw    cr7,r9,r7                              
ffc1e198:	40 9e ff dc 	bne+    cr7,ffc1e174 <killinfo+0x110>          <== NEVER TAKEN
   *  NOTES:                                                          
   *                                                                  
   *    + rtems internal threads do not receive signals.              
   */                                                                 
  interested = NULL;                                                  
  interested_priority = PRIORITY_MAXIMUM + 1;                         
ffc1e19c:	3d 20 00 00 	lis     r9,0                                   
ffc1e1a0:	88 89 27 84 	lbz     r4,10116(r9)                           
ffc1e1a4:	3d 20 00 00 	lis     r9,0                                   
ffc1e1a8:	39 29 2c 7c 	addi    r9,r9,11388                            
ffc1e1ac:	38 84 00 01 	addi    r4,r4,1                                
 */                                                                   
                                                                      
#define _POSIX_signals_Is_interested( _api, _mask ) \                 
  ( ~(_api)->signals_blocked & (_mask) )                              
                                                                      
int killinfo(                                                         
ffc1e1b0:	38 09 00 08 	addi    r0,r9,8                                
   *                                                                  
   *  NOTES:                                                          
   *                                                                  
   *    + rtems internal threads do not receive signals.              
   */                                                                 
  interested = NULL;                                                  
ffc1e1b4:	38 60 00 00 	li      r3,0                                   
  for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) {
                                                                      
    /*                                                                
     *  This can occur when no one is interested and an API is not configured.
     */                                                               
    if ( !_Objects_Information_table[ the_api ] )                     
ffc1e1b8:	85 49 00 04 	lwzu    r10,4(r9)                              
ffc1e1bc:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1e1c0:	41 9e 00 7c 	beq-    cr7,ffc1e23c <killinfo+0x1d8>          <== NEVER TAKEN
      continue;                                                       
                                                                      
    the_info = _Objects_Information_table[ the_api ][ 1 ];            
ffc1e1c4:	81 4a 00 04 	lwz     r10,4(r10)                             
       */                                                             
      if ( !the_info )                                                
        continue;                                                     
    #endif                                                            
                                                                      
    maximum = the_info->maximum;                                      
ffc1e1c8:	a0 aa 00 10 	lhz     r5,16(r10)                             
    object_table = the_info->local_table;                             
ffc1e1cc:	80 ea 00 1c 	lwz     r7,28(r10)                             
                                                                      
    for ( index = 1 ; index <= maximum ; index++ ) {                  
ffc1e1d0:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc1e1d4:	41 9e 00 68 	beq-    cr7,ffc1e23c <killinfo+0x1d8>          
ffc1e1d8:	39 00 00 01 	li      r8,1                                   
      the_thread = (Thread_Control *) object_table[ index ];          
ffc1e1dc:	85 47 00 04 	lwzu    r10,4(r7)                              
                                                                      
      if ( !the_thread )                                              
ffc1e1e0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1e1e4:	41 9e 00 4c 	beq-    cr7,ffc1e230 <killinfo+0x1cc>          
                                                                      
      /*                                                              
       *  If this thread is of lower priority than the interested thread,
       *  go on to the next thread.                                   
       */                                                             
      if ( the_thread->current_priority > interested_priority )       
ffc1e1e8:	80 ca 00 14 	lwz     r6,20(r10)                             
ffc1e1ec:	7f 86 20 40 	cmplw   cr7,r6,r4                              
ffc1e1f0:	41 9d 00 40 	bgt-    cr7,ffc1e230 <killinfo+0x1cc>          
      #if defined(RTEMS_DEBUG)                                        
        if ( !api )                                                   
          continue;                                                   
      #endif                                                          
                                                                      
      if ( !_POSIX_signals_Is_interested( api, mask ) )               
ffc1e1f4:	81 6a 01 50 	lwz     r11,336(r10)                           
ffc1e1f8:	81 6b 00 d0 	lwz     r11,208(r11)                           
ffc1e1fc:	7f fa 58 79 	andc.   r26,r31,r11                            
ffc1e200:	41 82 00 30 	beq-    ffc1e230 <killinfo+0x1cc>              
       *                                                              
       *  NOTE: We initialized interested_priority to PRIORITY_MAXIMUM + 1
       *        so we never have to worry about deferencing a NULL    
       *        interested thread.                                    
       */                                                             
      if ( the_thread->current_priority < interested_priority ) {     
ffc1e204:	41 9c 00 24 	blt-    cr7,ffc1e228 <killinfo+0x1c4>          
       *  and blocking interruptibutable by signal.                   
       *                                                              
       *  If the interested thread is ready, don't think about changing.
       */                                                             
                                                                      
      if ( interested && !_States_Is_ready( interested->current_state ) ) {
ffc1e208:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1e20c:	41 9e 00 24 	beq-    cr7,ffc1e230 <killinfo+0x1cc>          <== NEVER TAKEN
ffc1e210:	81 63 00 10 	lwz     r11,16(r3)                             
ffc1e214:	2f 8b 00 00 	cmpwi   cr7,r11,0                              
ffc1e218:	41 9e 00 18 	beq-    cr7,ffc1e230 <killinfo+0x1cc>          <== NEVER TAKEN
        /* preferred ready over blocked */                            
        DEBUG_STEP("5");                                              
        if ( _States_Is_ready( the_thread->current_state ) ) {        
ffc1e21c:	83 6a 00 10 	lwz     r27,16(r10)                            
ffc1e220:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc1e224:	40 9e 01 10 	bne-    cr7,ffc1e334 <killinfo+0x2d0>          
ffc1e228:	7c c4 33 78 	mr      r4,r6                                  
ffc1e22c:	7d 43 53 78 	mr      r3,r10                                 
    #endif                                                            
                                                                      
    maximum = the_info->maximum;                                      
    object_table = the_info->local_table;                             
                                                                      
    for ( index = 1 ; index <= maximum ; index++ ) {                  
ffc1e230:	39 08 00 01 	addi    r8,r8,1                                
ffc1e234:	7f 85 40 40 	cmplw   cr7,r5,r8                              
ffc1e238:	40 9c ff a4 	bge+    cr7,ffc1e1dc <killinfo+0x178>          
   *    + rtems internal threads do not receive signals.              
   */                                                                 
  interested = NULL;                                                  
  interested_priority = PRIORITY_MAXIMUM + 1;                         
                                                                      
  for (the_api = OBJECTS_CLASSIC_API; the_api <= OBJECTS_APIS_LAST; the_api++) {
ffc1e23c:	7f 89 00 00 	cmpw    cr7,r9,r0                              
ffc1e240:	40 be ff 78 	bne-    cr7,ffc1e1b8 <killinfo+0x154>          
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( interested ) {                                                 
ffc1e244:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1e248:	41 9e 00 18 	beq-    cr7,ffc1e260 <killinfo+0x1fc>          
                                                                      
  /*                                                                  
   *  Returns true if the signal was synchronously given to a thread  
   *  blocked waiting for the signal.                                 
   */                                                                 
  if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) {  
ffc1e24c:	7f c4 f3 78 	mr      r4,r30                                 
ffc1e250:	38 a1 00 08 	addi    r5,r1,8                                
ffc1e254:	48 00 01 5d 	bl      ffc1e3b0 <_POSIX_signals_Unblock_thread>
ffc1e258:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1e25c:	40 9e 00 18 	bne-    cr7,ffc1e274 <killinfo+0x210>          
                                                                      
  /*                                                                  
   *  We may have woken up a thread but we definitely need to post the
   *  signal to the process wide information set.                     
   */                                                                 
  _POSIX_signals_Set_process_signals( mask );                         
ffc1e260:	7f e3 fb 78 	mr      r3,r31                                 
ffc1e264:	48 00 01 25 	bl      ffc1e388 <_POSIX_signals_Set_process_signals>
                                                                      
  if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {       
ffc1e268:	7d 3c e8 2e 	lwzx    r9,r28,r29                             
ffc1e26c:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc1e270:	41 9e 00 70 	beq-    cr7,ffc1e2e0 <killinfo+0x27c>          
  /*                                                                  
   *  Returns true if the signal was synchronously given to a thread  
   *  blocked waiting for the signal.                                 
   */                                                                 
  if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) {  
    _Thread_Enable_dispatch();                                        
ffc1e274:	4b fe e8 4d 	bl      ffc0cac0 <_Thread_Enable_dispatch>     
  }                                                                   
                                                                      
  DEBUG_STEP("\n");                                                   
  _Thread_Enable_dispatch();                                          
  return 0;                                                           
}                                                                     
ffc1e278:	80 01 00 34 	lwz     r0,52(r1)                              
ffc1e27c:	83 41 00 18 	lwz     r26,24(r1)                             
   *  Returns true if the signal was synchronously given to a thread  
   *  blocked waiting for the signal.                                 
   */                                                                 
  if ( _POSIX_signals_Unblock_thread( the_thread, sig, siginfo ) ) {  
    _Thread_Enable_dispatch();                                        
    return 0;                                                         
ffc1e280:	38 60 00 00 	li      r3,0                                   
  }                                                                   
                                                                      
  DEBUG_STEP("\n");                                                   
  _Thread_Enable_dispatch();                                          
  return 0;                                                           
}                                                                     
ffc1e284:	7c 08 03 a6 	mtlr    r0                                     
ffc1e288:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc1e28c:	83 81 00 20 	lwz     r28,32(r1)                             
ffc1e290:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc1e294:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc1e298:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc1e29c:	38 21 00 30 	addi    r1,r1,48                               
ffc1e2a0:	4e 80 00 20 	blr                                            
   *  P1003.1c/Draft 10, p. 33 says that certain signals should always
   *  be directed to the executing thread such as those caused by hardware
   *  faults.                                                         
   */                                                                 
  if ( (sig == SIGFPE) || (sig == SIGILL) || (sig == SIGSEGV ) )      
      return pthread_kill( pthread_self(), sig );                     
ffc1e2a4:	48 00 03 79 	bl      ffc1e61c <pthread_self>                
ffc1e2a8:	7f c4 f3 78 	mr      r4,r30                                 
ffc1e2ac:	48 00 02 61 	bl      ffc1e50c <pthread_kill>                
  }                                                                   
                                                                      
  DEBUG_STEP("\n");                                                   
  _Thread_Enable_dispatch();                                          
  return 0;                                                           
}                                                                     
ffc1e2b0:	80 01 00 34 	lwz     r0,52(r1)                              
ffc1e2b4:	83 41 00 18 	lwz     r26,24(r1)                             
ffc1e2b8:	7c 08 03 a6 	mtlr    r0                                     
ffc1e2bc:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc1e2c0:	83 81 00 20 	lwz     r28,32(r1)                             
ffc1e2c4:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc1e2c8:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc1e2cc:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc1e2d0:	38 21 00 30 	addi    r1,r1,48                               
ffc1e2d4:	4e 80 00 20 	blr                                            
                                                                      
  the_chain = &_POSIX_signals_Wait_queue.Queues.Fifo;                 
                                                                      
  for ( the_node = _Chain_First( the_chain );                         
        !_Chain_Is_tail( the_chain, the_node ) ;                      
        the_node = the_node->next ) {                                 
ffc1e2d8:	7d 23 4b 78 	mr      r3,r9                                  
ffc1e2dc:	4b ff ff 70 	b       ffc1e24c <killinfo+0x1e8>              
   */                                                                 
  _POSIX_signals_Set_process_signals( mask );                         
                                                                      
  if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {       
                                                                      
    psiginfo = (POSIX_signals_Siginfo_node *)                         
ffc1e2e0:	3c 60 00 00 	lis     r3,0                                   
ffc1e2e4:	38 63 33 a0 	addi    r3,r3,13216                            
ffc1e2e8:	4b fe c5 15 	bl      ffc0a7fc <_Chain_Get>                  
               _Chain_Get( &_POSIX_signals_Inactive_siginfo );        
    if ( !psiginfo ) {                                                
ffc1e2ec:	7c 69 1b 79 	mr.     r9,r3                                  
ffc1e2f0:	41 82 00 80 	beq-    ffc1e370 <killinfo+0x30c>              
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one( EAGAIN );                 
    }                                                                 
                                                                      
    psiginfo->Info = *siginfo;                                        
ffc1e2f4:	81 41 00 08 	lwz     r10,8(r1)                              
                                                                      
    _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 
ffc1e2f8:	3c 60 00 00 	lis     r3,0                                   
ffc1e2fc:	38 63 34 14 	addi    r3,r3,13332                            
    if ( !psiginfo ) {                                                
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one( EAGAIN );                 
    }                                                                 
                                                                      
    psiginfo->Info = *siginfo;                                        
ffc1e300:	91 49 00 08 	stw     r10,8(r9)                              
                                                                      
    _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 
ffc1e304:	7c 63 ea 14 	add     r3,r3,r29                              
ffc1e308:	7d 24 4b 78 	mr      r4,r9                                  
    if ( !psiginfo ) {                                                
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one( EAGAIN );                 
    }                                                                 
                                                                      
    psiginfo->Info = *siginfo;                                        
ffc1e30c:	81 41 00 0c 	lwz     r10,12(r1)                             
ffc1e310:	91 49 00 0c 	stw     r10,12(r9)                             
ffc1e314:	81 41 00 10 	lwz     r10,16(r1)                             
ffc1e318:	91 49 00 10 	stw     r10,16(r9)                             
                                                                      
    _Chain_Append( &_POSIX_signals_Siginfo[ sig ], &psiginfo->Node ); 
ffc1e31c:	4b fe c4 b1 	bl      ffc0a7cc <_Chain_Append>               
ffc1e320:	4b ff ff 54 	b       ffc1e274 <killinfo+0x210>              
                                                                      
  /*                                                                  
   *  If the signal is being ignored, then we are out of here.        
   */                                                                 
  if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN )          
    return 0;                                                         
ffc1e324:	38 60 00 00 	li      r3,0                                   
ffc1e328:	4b ff ff 88 	b       ffc1e2b0 <killinfo+0x24c>              
   */                                                                 
  siginfo = &siginfo_struct;                                          
  siginfo->si_signo = sig;                                            
  siginfo->si_code = SI_USER;                                         
  if ( !value ) {                                                     
    siginfo->si_value.sival_int = 0;                                  
ffc1e32c:	93 61 00 10 	stw     r27,16(r1)                             
ffc1e330:	4b ff fd d8 	b       ffc1e108 <killinfo+0xa4>               
          continue;                                                   
        }                                                             
                                                                      
        DEBUG_STEP("6");                                              
        /* prefer blocked/interruptible over blocked/not interruptible */
        if ( !_States_Is_interruptible_by_signal(interested->current_state) ) {
ffc1e334:	75 7a 10 00 	andis.  r26,r11,4096                           
ffc1e338:	40 a2 fe f8 	bne-    ffc1e230 <killinfo+0x1cc>              
          DEBUG_STEP("7");                                            
          if ( _States_Is_interruptible_by_signal(the_thread->current_state) ) {
ffc1e33c:	77 6b 10 00 	andis.  r11,r27,4096                           
ffc1e340:	41 a2 fe f0 	beq-    ffc1e230 <killinfo+0x1cc>              
ffc1e344:	4b ff fe e4 	b       ffc1e228 <killinfo+0x1c4>              
                                                                      
  /*                                                                  
   *  Only supported for the "calling process" (i.e. this node).      
   */                                                                 
  if ( pid != getpid() )                                              
    rtems_set_errno_and_return_minus_one( ESRCH );                    
ffc1e348:	4b ff 4d 31 	bl      ffc13078 <__errno>                     
ffc1e34c:	39 20 00 03 	li      r9,3                                   
ffc1e350:	91 23 00 00 	stw     r9,0(r3)                               
ffc1e354:	38 60 ff ff 	li      r3,-1                                  
ffc1e358:	4b ff ff 58 	b       ffc1e2b0 <killinfo+0x24c>              
   */                                                                 
  if ( !sig )                                                         
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc1e35c:	4b ff 4d 1d 	bl      ffc13078 <__errno>                     
ffc1e360:	39 20 00 16 	li      r9,22                                  
ffc1e364:	91 23 00 00 	stw     r9,0(r3)                               
ffc1e368:	38 60 ff ff 	li      r3,-1                                  
ffc1e36c:	4b ff ff 44 	b       ffc1e2b0 <killinfo+0x24c>              
  if ( _POSIX_signals_Vectors[ sig ].sa_flags == SA_SIGINFO ) {       
                                                                      
    psiginfo = (POSIX_signals_Siginfo_node *)                         
               _Chain_Get( &_POSIX_signals_Inactive_siginfo );        
    if ( !psiginfo ) {                                                
      _Thread_Enable_dispatch();                                      
ffc1e370:	4b fe e7 51 	bl      ffc0cac0 <_Thread_Enable_dispatch>     
      rtems_set_errno_and_return_minus_one( EAGAIN );                 
ffc1e374:	4b ff 4d 05 	bl      ffc13078 <__errno>                     
ffc1e378:	39 20 00 0b 	li      r9,11                                  
ffc1e37c:	91 23 00 00 	stw     r9,0(r3)                               
ffc1e380:	38 60 ff ff 	li      r3,-1                                  
ffc1e384:	4b ff ff 2c 	b       ffc1e2b0 <killinfo+0x24c>              
                                                                      

ffc04f94 <malloc>: #include "malloc_p.h" void *malloc( size_t size ) {
ffc04f94:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc04f98:	7c 08 02 a6 	mflr    r0                                     
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
ffc04f9c:	3d 20 00 00 	lis     r9,0                                   
#include "malloc_p.h"                                                 
                                                                      
void *malloc(                                                         
  size_t  size                                                        
)                                                                     
{                                                                     
ffc04fa0:	90 01 00 1c 	stw     r0,28(r1)                              
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
ffc04fa4:	39 29 2b a0 	addi    r9,r9,11168                            
ffc04fa8:	81 49 00 04 	lwz     r10,4(r9)                              
#include "malloc_p.h"                                                 
                                                                      
void *malloc(                                                         
  size_t  size                                                        
)                                                                     
{                                                                     
ffc04fac:	93 e1 00 14 	stw     r31,20(r1)                             
ffc04fb0:	7c 7f 1b 78 	mr      r31,r3                                 
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
ffc04fb4:	39 4a 00 01 	addi    r10,r10,1                              
#include "malloc_p.h"                                                 
                                                                      
void *malloc(                                                         
  size_t  size                                                        
)                                                                     
{                                                                     
ffc04fb8:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc04fbc:	93 c1 00 10 	stw     r30,16(r1)                             
  void        *return_this;                                           
                                                                      
  MSBUMP(malloc_calls, 1);                                            
ffc04fc0:	91 49 00 04 	stw     r10,4(r9)                              
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  malloc_deferred_frees_process();                                    
ffc04fc4:	4b ff fe 6d 	bl      ffc04e30 <malloc_deferred_frees_process>
                                                                      
  /*                                                                  
   * Validate the parameters                                          
   */                                                                 
  if ( !size )                                                        
ffc04fc8:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc04fcc:	41 9e 00 a0 	beq-    cr7,ffc0506c <malloc+0xd8>             
    return (void *) 0;                                                
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
ffc04fd0:	3d 20 00 00 	lis     r9,0                                   
ffc04fd4:	81 29 28 90 	lwz     r9,10384(r9)                           
ffc04fd8:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc04fdc:	41 9e 00 84 	beq-    cr7,ffc05060 <malloc+0xcc>             
RTEMS_INLINE_ROUTINE void *_Protected_heap_Allocate(                  
  Heap_Control *heap,                                                 
  uintptr_t size                                                      
)                                                                     
{                                                                     
  return _Protected_heap_Allocate_aligned_with_boundary( heap, size, 0, 0 );
ffc04fe0:	3f a0 00 00 	lis     r29,0                                  
ffc04fe4:	80 7d 27 90 	lwz     r3,10128(r29)                          
ffc04fe8:	7f e4 fb 78 	mr      r4,r31                                 
ffc04fec:	38 a0 00 00 	li      r5,0                                   
ffc04ff0:	38 c0 00 00 	li      r6,0                                   
ffc04ff4:	48 00 6d 51 	bl      ffc0bd44 <_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 ) {                                               
ffc04ff8:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc04ffc:	41 82 00 94 	beq-    ffc05090 <malloc+0xfc>                 
  }                                                                   
                                                                      
  /*                                                                  
   *  If the user wants us to dirty the allocated memory, then do it. 
   */                                                                 
  if ( rtems_malloc_dirty_helper )                                    
ffc05000:	3d 20 00 00 	lis     r9,0                                   
ffc05004:	81 29 28 04 	lwz     r9,10244(r9)                           
ffc05008:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0500c:	41 9e 00 14 	beq-    cr7,ffc05020 <malloc+0x8c>             
    (*rtems_malloc_dirty_helper)( return_this, size );                
ffc05010:	7f c3 f3 78 	mr      r3,r30                                 
ffc05014:	7d 29 03 a6 	mtctr   r9                                     
ffc05018:	7f e4 fb 78 	mr      r4,r31                                 
ffc0501c:	4e 80 04 21 	bctrl                                          
                                                                      
  /*                                                                  
   *  If configured, update the statistics                            
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
ffc05020:	3d 20 00 00 	lis     r9,0                                   
ffc05024:	81 29 28 08 	lwz     r9,10248(r9)                           
ffc05028:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0502c:	41 9e 00 14 	beq-    cr7,ffc05040 <malloc+0xac>             
    (*rtems_malloc_statistics_helpers->at_malloc)(return_this);       
ffc05030:	81 29 00 04 	lwz     r9,4(r9)                               
ffc05034:	7f c3 f3 78 	mr      r3,r30                                 
ffc05038:	7d 29 03 a6 	mtctr   r9                                     
ffc0503c:	4e 80 04 21 	bctrl                                          
                                                                      
  return return_this;                                                 
}                                                                     
ffc05040:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc05044:	7f c3 f3 78 	mr      r3,r30                                 
ffc05048:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0504c:	7c 08 03 a6 	mtlr    r0                                     
ffc05050:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc05054:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc05058:	38 21 00 18 	addi    r1,r1,24                               
ffc0505c:	4e 80 00 20 	blr                                            
                                                                      
  /*                                                                  
   *  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() )                                 
ffc05060:	4b ff fd a5 	bl      ffc04e04 <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()) &&                    
ffc05064:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05068:	40 9e ff 78 	bne+    cr7,ffc04fe0 <malloc+0x4c>             <== ALWAYS TAKEN
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
    (*rtems_malloc_statistics_helpers->at_malloc)(return_this);       
                                                                      
  return return_this;                                                 
}                                                                     
ffc0506c:	80 01 00 1c 	lwz     r0,28(r1)                              
                                                                      
  /*                                                                  
   * Validate the parameters                                          
   */                                                                 
  if ( !size )                                                        
    return (void *) 0;                                                
ffc05070:	3b c0 00 00 	li      r30,0                                  
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
    (*rtems_malloc_statistics_helpers->at_malloc)(return_this);       
                                                                      
  return return_this;                                                 
}                                                                     
ffc05074:	7f c3 f3 78 	mr      r3,r30                                 
ffc05078:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0507c:	7c 08 03 a6 	mtlr    r0                                     
ffc05080:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc05084:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc05088:	38 21 00 18 	addi    r1,r1,24                               
ffc0508c:	4e 80 00 20 	blr                                            
   */                                                                 
                                                                      
  return_this = _Protected_heap_Allocate( RTEMS_Malloc_Heap, size );  
                                                                      
  if ( !return_this ) {                                               
    return_this = (*rtems_malloc_extend_handler)( RTEMS_Malloc_Heap, size );
ffc05090:	3d 20 00 00 	lis     r9,0                                   
ffc05094:	80 7d 27 90 	lwz     r3,10128(r29)                          
ffc05098:	81 29 27 8c 	lwz     r9,10124(r9)                           
ffc0509c:	7f e4 fb 78 	mr      r4,r31                                 
ffc050a0:	7d 29 03 a6 	mtctr   r9                                     
ffc050a4:	4e 80 04 21 	bctrl                                          
    if ( !return_this ) {                                             
ffc050a8:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc050ac:	40 82 ff 54 	bne+    ffc05000 <malloc+0x6c>                 <== NEVER TAKEN
      errno = ENOMEM;                                                 
ffc050b0:	48 00 df c9 	bl      ffc13078 <__errno>                     
ffc050b4:	39 20 00 0c 	li      r9,12                                  
ffc050b8:	91 23 00 00 	stw     r9,0(r3)                               
      return (void *) 0;                                              
ffc050bc:	4b ff ff 84 	b       ffc05040 <malloc+0xac>                 
                                                                      

ffc10fcc <memfile_alloc_block>: void *memfile_alloc_block(void) { void *memory; memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK);
ffc10fcc:	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)                                       
{                                                                     
ffc10fd0:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc10fd4:	7c 08 02 a6 	mflr    r0                                     
  void *memory;                                                       
                                                                      
  memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK);           
ffc10fd8:	38 60 00 01 	li      r3,1                                   
ffc10fdc:	80 89 28 44 	lwz     r4,10308(r9)                           
 *  Allocate a block for an in-memory file.                           
 */                                                                   
int memfile_blocks_allocated = 0;                                     
                                                                      
void *memfile_alloc_block(void)                                       
{                                                                     
ffc10fe0:	90 01 00 0c 	stw     r0,12(r1)                              
  void *memory;                                                       
                                                                      
  memory = (void *)calloc(1, IMFS_MEMFILE_BYTES_PER_BLOCK);           
ffc10fe4:	4b ff 37 d5 	bl      ffc047b8 <calloc>                      
  if ( memory )                                                       
ffc10fe8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc10fec:	41 82 00 14 	beq-    ffc11000 <memfile_alloc_block+0x34>    <== NEVER TAKEN
    memfile_blocks_allocated++;                                       
ffc10ff0:	3d 20 00 00 	lis     r9,0                                   
ffc10ff4:	81 49 28 ac 	lwz     r10,10412(r9)                          
ffc10ff8:	39 4a 00 01 	addi    r10,r10,1                              
ffc10ffc:	91 49 28 ac 	stw     r10,10412(r9)                          
                                                                      
  return memory;                                                      
}                                                                     
ffc11000:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc11004:	38 21 00 08 	addi    r1,r1,8                                
ffc11008:	7c 08 03 a6 	mtlr    r0                                     
ffc1100c:	4e 80 00 20 	blr                                            
                                                                      

ffc11644 <memfile_free_blocks_in_table>: */ static void memfile_free_blocks_in_table( block_p **block_table, int entries ) {
ffc11644:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc11648:	7c 08 02 a6 	mflr    r0                                     
ffc1164c:	93 a1 00 14 	stw     r29,20(r1)                             
  /*                                                                  
   *  Now go through all the slots in the table and free the memory.  
   */                                                                 
  b = *block_table;                                                   
                                                                      
  for ( i=0 ; i<entries ; i++ ) {                                     
ffc11650:	7c 9d 23 79 	mr.     r29,r4                                 
 */                                                                   
static void memfile_free_blocks_in_table(                             
  block_p **block_table,                                              
  int       entries                                                   
)                                                                     
{                                                                     
ffc11654:	90 01 00 24 	stw     r0,36(r1)                              
ffc11658:	93 61 00 0c 	stw     r27,12(r1)                             
ffc1165c:	7c 7b 1b 78 	mr      r27,r3                                 
ffc11660:	93 81 00 10 	stw     r28,16(r1)                             
ffc11664:	93 c1 00 18 	stw     r30,24(r1)                             
ffc11668:	93 e1 00 1c 	stw     r31,28(r1)                             
  IMFS_assert( block_table );                                         
                                                                      
  /*                                                                  
   *  Now go through all the slots in the table and free the memory.  
   */                                                                 
  b = *block_table;                                                   
ffc1166c:	80 63 00 00 	lwz     r3,0(r3)                               
                                                                      
  for ( i=0 ; i<entries ; i++ ) {                                     
ffc11670:	40 81 00 34 	ble-    ffc116a4 <memfile_free_blocks_in_table+0x60><== NEVER TAKEN
 *  memfile_free_blocks_in_table                                      
 *                                                                    
 *  This is a support routine for IMFS_memfile_remove.  It frees all the
 *  blocks in one of the indirection tables.                          
 */                                                                   
static void memfile_free_blocks_in_table(                             
ffc11674:	3b c3 ff fc 	addi    r30,r3,-4                              
  /*                                                                  
   *  Now go through all the slots in the table and free the memory.  
   */                                                                 
  b = *block_table;                                                   
                                                                      
  for ( i=0 ; i<entries ; i++ ) {                                     
ffc11678:	3b e0 00 00 	li      r31,0                                  
    if ( b[i] ) {                                                     
      memfile_free_block( b[i] );                                     
      b[i] = 0;                                                       
ffc1167c:	3b 80 00 00 	li      r28,0                                  
   *  Now go through all the slots in the table and free the memory.  
   */                                                                 
  b = *block_table;                                                   
                                                                      
  for ( i=0 ; i<entries ; i++ ) {                                     
    if ( b[i] ) {                                                     
ffc11680:	84 7e 00 04 	lwzu    r3,4(r30)                              
  /*                                                                  
   *  Now go through all the slots in the table and free the memory.  
   */                                                                 
  b = *block_table;                                                   
                                                                      
  for ( i=0 ; i<entries ; i++ ) {                                     
ffc11684:	3b ff 00 01 	addi    r31,r31,1                              
    if ( b[i] ) {                                                     
ffc11688:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1168c:	41 9e 00 0c 	beq-    cr7,ffc11698 <memfile_free_blocks_in_table+0x54>
      memfile_free_block( b[i] );                                     
ffc11690:	4b ff ff 85 	bl      ffc11614 <memfile_free_block>          
      b[i] = 0;                                                       
ffc11694:	93 9e 00 00 	stw     r28,0(r30)                             
  /*                                                                  
   *  Now go through all the slots in the table and free the memory.  
   */                                                                 
  b = *block_table;                                                   
                                                                      
  for ( i=0 ; i<entries ; i++ ) {                                     
ffc11698:	7f 9f e8 00 	cmpw    cr7,r31,r29                            
ffc1169c:	40 9e ff e4 	bne+    cr7,ffc11680 <memfile_free_blocks_in_table+0x3c>
ffc116a0:	80 7b 00 00 	lwz     r3,0(r27)                              
                                                                      
  /*                                                                  
   *  Now that all the blocks in the block table are free, we can     
   *  free the block table itself.                                    
   */                                                                 
  memfile_free_block( *block_table );                                 
ffc116a4:	4b ff ff 71 	bl      ffc11614 <memfile_free_block>          
  *block_table = 0;                                                   
}                                                                     
ffc116a8:	80 01 00 24 	lwz     r0,36(r1)                              
  /*                                                                  
   *  Now that all the blocks in the block table are free, we can     
   *  free the block table itself.                                    
   */                                                                 
  memfile_free_block( *block_table );                                 
  *block_table = 0;                                                   
ffc116ac:	39 20 00 00 	li      r9,0                                   
}                                                                     
ffc116b0:	83 81 00 10 	lwz     r28,16(r1)                             
ffc116b4:	7c 08 03 a6 	mtlr    r0                                     
  /*                                                                  
   *  Now that all the blocks in the block table are free, we can     
   *  free the block table itself.                                    
   */                                                                 
  memfile_free_block( *block_table );                                 
  *block_table = 0;                                                   
ffc116b8:	91 3b 00 00 	stw     r9,0(r27)                              
}                                                                     
ffc116bc:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc116c0:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc116c4:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc116c8:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc116cc:	38 21 00 20 	addi    r1,r1,32                               
ffc116d0:	4e 80 00 20 	blr                                            
                                                                      

ffc11f0c <memfile_ftruncate>: int memfile_ftruncate( rtems_libio_t *iop, off_t length ) {
ffc11f0c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc11f10:	7c 08 02 a6 	mflr    r0                                     
ffc11f14:	90 01 00 24 	stw     r0,36(r1)                              
ffc11f18:	93 e1 00 1c 	stw     r31,28(r1)                             
  IMFS_jnode_t   *the_jnode;                                          
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
ffc11f1c:	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 )                           
ffc11f20:	81 3f 00 50 	lwz     r9,80(r31)                             
ffc11f24:	7f 89 28 00 	cmpw    cr7,r9,r5                              
ffc11f28:	41 9c 00 48 	blt-    cr7,ffc11f70 <memfile_ftruncate+0x64>  <== NEVER TAKEN
ffc11f2c:	41 9e 00 38 	beq-    cr7,ffc11f64 <memfile_ftruncate+0x58>  <== ALWAYS TAKEN
  /*                                                                  
   *  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;                                 
ffc11f30:	90 bf 00 50 	stw     r5,80(r31)                             
                                                                      
  IMFS_update_atime( the_jnode );                                     
ffc11f34:	38 61 00 08 	addi    r3,r1,8                                
ffc11f38:	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;                                 
ffc11f3c:	90 df 00 54 	stw     r6,84(r31)                             
                                                                      
  IMFS_update_atime( the_jnode );                                     
ffc11f40:	4b ff 2d 15 	bl      ffc04c54 <gettimeofday>                
                                                                      
  return 0;                                                           
}                                                                     
ffc11f44:	80 01 00 24 	lwz     r0,36(r1)                              
   *  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 );                                     
ffc11f48:	81 21 00 08 	lwz     r9,8(r1)                               
                                                                      
  return 0;                                                           
ffc11f4c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc11f50:	7c 08 03 a6 	mtlr    r0                                     
   *  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 );                                     
ffc11f54:	91 3f 00 40 	stw     r9,64(r31)                             
                                                                      
  return 0;                                                           
}                                                                     
ffc11f58:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc11f5c:	38 21 00 20 	addi    r1,r1,32                               
ffc11f60:	4e 80 00 20 	blr                                            
   *  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 )                           
ffc11f64:	81 3f 00 54 	lwz     r9,84(r31)                             
ffc11f68:	7f 89 30 40 	cmplw   cr7,r9,r6                              
ffc11f6c:	40 9c ff c4 	bge+    cr7,ffc11f30 <memfile_ftruncate+0x24>  
    return IMFS_memfile_extend( the_jnode, true, length );            
ffc11f70:	7f e3 fb 78 	mr      r3,r31                                 
ffc11f74:	38 80 00 01 	li      r4,1                                   
ffc11f78:	4b ff f9 45 	bl      ffc118bc <IMFS_memfile_extend>         
  the_jnode->info.file.size = length;                                 
                                                                      
  IMFS_update_atime( the_jnode );                                     
                                                                      
  return 0;                                                           
}                                                                     
ffc11f7c:	80 01 00 24 	lwz     r0,36(r1)                              
ffc11f80:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc11f84:	7c 08 03 a6 	mtlr    r0                                     
ffc11f88:	38 21 00 20 	addi    r1,r1,32                               
ffc11f8c:	4e 80 00 20 	blr                                            
                                                                      

ffc11e6c <memfile_open>: the_jnode = iop->pathinfo.node_access; /* * Perform 'copy on write' for linear files */ if ((iop->flags & LIBIO_FLAGS_WRITE)
ffc11e6c:	81 23 00 10 	lwz     r9,16(r3)                              
  mode_t         mode                                                 
)                                                                     
{                                                                     
  IMFS_jnode_t  *the_jnode;                                           
                                                                      
  the_jnode = iop->pathinfo.node_access;                              
ffc11e70:	80 63 00 1c 	lwz     r3,28(r3)                              
                                                                      
  /*                                                                  
   * Perform 'copy on write' for linear files                         
   */                                                                 
  if ((iop->flags & LIBIO_FLAGS_WRITE)                                
ffc11e74:	71 2a 00 04 	andi.   r10,r9,4                               
ffc11e78:	41 82 00 14 	beq-    ffc11e8c <memfile_open+0x20>           
ffc11e7c:	81 23 00 4c 	lwz     r9,76(r3)                              
   && (IMFS_type( the_jnode ) == IMFS_LINEAR_FILE)) {                 
ffc11e80:	81 29 00 00 	lwz     r9,0(r9)                               
ffc11e84:	2f 89 00 05 	cmpwi   cr7,r9,5                               
ffc11e88:	41 9e 00 0c 	beq-    cr7,ffc11e94 <memfile_open+0x28>       <== NEVER TAKEN
    if ((count != 0)                                                  
     && (IMFS_memfile_write(the_jnode, 0, buffer, count) == -1))      
        return -1;                                                    
  }                                                                   
                                                                      
  return 0;                                                           
ffc11e8c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc11e90:	4e 80 00 20 	blr                                            
  /*                                                                  
   * 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;               
ffc11e94:	81 03 00 54 	lwz     r8,84(r3)                              <== NOT EXECUTED
    const unsigned char *buffer = the_jnode->info.linearfile.direct;  
                                                                      
    the_jnode->control = &IMFS_node_control_memfile;                  
ffc11e98:	3d 40 ff c2 	lis     r10,-62                                <== NOT EXECUTED
ffc11e9c:	39 4a ff a0 	addi    r10,r10,-96                            <== 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;  
ffc11ea0:	80 e3 00 58 	lwz     r7,88(r3)                              <== 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)                                                  
ffc11ea4:	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;                  
ffc11ea8:	91 43 00 4c 	stw     r10,76(r3)                             <== NOT EXECUTED
    the_jnode->info.file.size            = 0;                         
    the_jnode->info.file.indirect        = 0;                         
ffc11eac:	39 20 00 00 	li      r9,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;                         
ffc11eb0:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
    the_jnode->info.file.indirect        = 0;                         
ffc11eb4:	91 23 00 58 	stw     r9,88(r3)                              <== 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;                         
ffc11eb8:	39 60 00 00 	li      r11,0                                  <== NOT EXECUTED
ffc11ebc:	91 43 00 50 	stw     r10,80(r3)                             <== NOT EXECUTED
ffc11ec0:	91 63 00 54 	stw     r11,84(r3)                             <== NOT EXECUTED
    the_jnode->info.file.indirect        = 0;                         
    the_jnode->info.file.doubly_indirect = 0;                         
ffc11ec4:	91 23 00 5c 	stw     r9,92(r3)                              <== NOT EXECUTED
    the_jnode->info.file.triply_indirect = 0;                         
ffc11ec8:	91 23 00 60 	stw     r9,96(r3)                              <== NOT EXECUTED
    if ((count != 0)                                                  
ffc11ecc:	41 9e ff c0 	beq+    cr7,ffc11e8c <memfile_open+0x20>       <== NOT EXECUTED
  rtems_libio_t *iop,                                                 
  const char    *pathname,                                            
  int            oflag,                                               
  mode_t         mode                                                 
)                                                                     
{                                                                     
ffc11ed0:	94 21 ff f8 	stwu    r1,-8(r1)                              <== NOT EXECUTED
ffc11ed4:	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))      
ffc11ed8:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc11edc:	38 c0 00 00 	li      r6,0                                   <== NOT EXECUTED
  rtems_libio_t *iop,                                                 
  const char    *pathname,                                            
  int            oflag,                                               
  mode_t         mode                                                 
)                                                                     
{                                                                     
ffc11ee0:	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))      
ffc11ee4:	4b ff fc 69 	bl      ffc11b4c <IMFS_memfile_write>          <== NOT EXECUTED
ffc11ee8:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              <== NOT EXECUTED
        return -1;                                                    
  }                                                                   
                                                                      
  return 0;                                                           
ffc11eec:	38 60 00 00 	li      r3,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))      
ffc11ef0:	41 9e 00 14 	beq-    cr7,ffc11f04 <memfile_open+0x98>       <== NOT EXECUTED
        return -1;                                                    
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc11ef4:	80 01 00 0c 	lwz     r0,12(r1)                              <== NOT EXECUTED
ffc11ef8:	38 21 00 08 	addi    r1,r1,8                                <== NOT EXECUTED
ffc11efc:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc11f00:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    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))      
        return -1;                                                    
ffc11f04:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc11f08:	4b ff ff ec 	b       ffc11ef4 <memfile_open+0x88>           <== NOT EXECUTED
                                                                      

ffc051f0 <mount>: const char *target, const char *filesystemtype, rtems_filesystem_options_t options, const void *data ) {
ffc051f0:	7d 80 00 26 	mfcr    r12                                    
  int rv = 0;                                                         
                                                                      
  if (                                                                
ffc051f4:	2b 86 00 01 	cmplwi  cr7,r6,1                               
  const char                 *target,                                 
  const char                 *filesystemtype,                         
  rtems_filesystem_options_t options,                                 
  const void                 *data                                    
)                                                                     
{                                                                     
ffc051f8:	94 21 ff 70 	stwu    r1,-144(r1)                            
ffc051fc:	7c 08 02 a6 	mflr    r0                                     
ffc05200:	93 21 00 74 	stw     r25,116(r1)                            
ffc05204:	7c d9 33 78 	mr      r25,r6                                 
ffc05208:	90 01 00 94 	stw     r0,148(r1)                             
ffc0520c:	92 81 00 60 	stw     r20,96(r1)                             
ffc05210:	92 a1 00 64 	stw     r21,100(r1)                            
ffc05214:	92 c1 00 68 	stw     r22,104(r1)                            
ffc05218:	92 e1 00 6c 	stw     r23,108(r1)                            
ffc0521c:	93 01 00 70 	stw     r24,112(r1)                            
ffc05220:	93 41 00 78 	stw     r26,120(r1)                            
ffc05224:	93 61 00 7c 	stw     r27,124(r1)                            
ffc05228:	93 81 00 80 	stw     r28,128(r1)                            
ffc0522c:	93 a1 00 84 	stw     r29,132(r1)                            
ffc05230:	93 c1 00 88 	stw     r30,136(r1)                            
ffc05234:	93 e1 00 8c 	stw     r31,140(r1)                            
ffc05238:	91 81 00 5c 	stw     r12,92(r1)                             
  int rv = 0;                                                         
                                                                      
  if (                                                                
ffc0523c:	41 9d 02 b0 	bgt-    cr7,ffc054ec <mount+0x2fc>             
ffc05240:	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 =                      
ffc05244:	7c a3 2b 78 	mr      r3,r5                                  
ffc05248:	7c 9d 23 78 	mr      r29,r4                                 
ffc0524c:	7c bc 2b 78 	mr      r28,r5                                 
ffc05250:	7c f6 3b 78 	mr      r22,r7                                 
ffc05254:	48 00 9e 61 	bl      ffc0f0b4 <rtems_filesystem_get_mount_handler>
      rtems_filesystem_get_mount_handler( filesystemtype );           
                                                                      
    if ( fsmount_me_h != NULL ) {                                     
ffc05258:	7c 75 1b 79 	mr.     r21,r3                                 
ffc0525c:	41 82 02 90 	beq-    ffc054ec <mount+0x2fc>                 
  const char *target_or_null,                                         
  const char *filesystemtype,                                         
  size_t *target_length_ptr                                           
)                                                                     
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
ffc05260:	2d 9d 00 00 	cmpwi   cr3,r29,0                              
ffc05264:	41 8e 02 30 	beq-    cr3,ffc05494 <mount+0x2a4>             
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
ffc05268:	2e 1b 00 00 	cmpwi   cr4,r27,0                              
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
                                                                      
int mount(                                                            
ffc0526c:	7f a3 eb 78 	mr      r3,r29                                 
ffc05270:	7f b4 eb 78 	mr      r20,r29                                
ffc05274:	48 00 f6 59 	bl      ffc148cc <strlen>                      
ffc05278:	3b 03 00 01 	addi    r24,r3,1                               
  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;          
ffc0527c:	7f 83 e3 78 	mr      r3,r28                                 
ffc05280:	48 00 f6 4d 	bl      ffc148cc <strlen>                      
ffc05284:	7c 7f 1b 78 	mr      r31,r3                                 
ffc05288:	3a e3 00 01 	addi    r23,r3,1                               
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
ffc0528c:	41 92 02 2c 	beq-    cr4,ffc054b8 <mount+0x2c8>             
ffc05290:	7f 63 db 78 	mr      r3,r27                                 
ffc05294:	48 00 f6 39 	bl      ffc148cc <strlen>                      
  size_t target_size = strlen( target ) + 1;                          
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size                 
ffc05298:	7f ff c2 14 	add     r31,r31,r24                            
)                                                                     
{                                                                     
  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;                                 
ffc0529c:	3b 43 00 01 	addi    r26,r3,1                               
  size_t target_size = strlen( target ) + 1;                          
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size                 
ffc052a0:	38 9f 00 65 	addi    r4,r31,101                             
    + sizeof( rtems_filesystem_global_location_t );                   
  rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 
ffc052a4:	38 60 00 01 	li      r3,1                                   
ffc052a8:	7c 84 d2 14 	add     r4,r4,r26                              
ffc052ac:	4b ff f5 0d 	bl      ffc047b8 <calloc>                      
                                                                      
  if ( mt_entry != NULL ) {                                           
ffc052b0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc052b4:	41 82 02 24 	beq-    ffc054d8 <mount+0x2e8>                 <== 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 );          
ffc052b8:	3b df 00 64 	addi    r30,r31,100                            
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
ffc052bc:	7f c3 f3 78 	mr      r3,r30                                 
ffc052c0:	7f 84 e3 78 	mr      r4,r28                                 
ffc052c4:	7e e5 bb 78 	mr      r5,r23                                 
ffc052c8:	48 00 ea b5 	bl      ffc13d7c <memcpy>                      
    + 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 =                  
ffc052cc:	3b 9f 00 40 	addi    r28,r31,64                             
      (rtems_filesystem_global_location_t *)                          
        ((char *) mt_entry + sizeof( *mt_entry ));                    
    char *str = (char *) mt_fs_root + sizeof( *mt_fs_root );          
                                                                      
    memcpy( str, filesystemtype, filesystemtype_size );               
    mt_entry->type = str;                                             
ffc052d0:	93 df 00 34 	stw     r30,52(r31)                            
    str += filesystemtype_size;                                       
ffc052d4:	7f de ba 14 	add     r30,r30,r23                            
                                                                      
    if ( source_or_null != NULL ) {                                   
ffc052d8:	41 92 00 1c 	beq-    cr4,ffc052f4 <mount+0x104>             
      memcpy( str, source_or_null, source_size );                     
ffc052dc:	7f c3 f3 78 	mr      r3,r30                                 
ffc052e0:	7f 64 db 78 	mr      r4,r27                                 
ffc052e4:	7f 45 d3 78 	mr      r5,r26                                 
ffc052e8:	48 00 ea 95 	bl      ffc13d7c <memcpy>                      
      mt_entry->dev = str;                                            
ffc052ec:	93 df 00 38 	stw     r30,56(r31)                            
      str += source_size;                                             
ffc052f0:	7f de d2 14 	add     r30,r30,r26                            
    }                                                                 
                                                                      
    memcpy( str, target, target_size );                               
ffc052f4:	7e 84 a3 78 	mr      r4,r20                                 
ffc052f8:	7f 05 c3 78 	mr      r5,r24                                 
ffc052fc:	7f c3 f3 78 	mr      r3,r30                                 
ffc05300:	48 00 ea 7d 	bl      ffc13d7c <memcpy>                      
    mt_entry->target = str;                                           
    str += target_size;                                               
                                                                      
    mt_entry->mounted = true;                                         
ffc05304:	39 20 00 01 	li      r9,1                                   
ffc05308:	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;
ffc0530c:	3d 20 ff c2 	lis     r9,-62                                 
ffc05310:	39 29 fc f0 	addi    r9,r9,-784                             
ffc05314:	91 3f 00 2c 	stw     r9,44(r31)                             
                                                                      
    mt_fs_root->location.mt_entry = mt_entry;                         
    mt_fs_root->reference_count = 1;                                  
ffc05318:	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 );
ffc0531c:	38 7f 00 14 	addi    r3,r31,20                              
      mt_entry->dev = str;                                            
      str += source_size;                                             
    }                                                                 
                                                                      
    memcpy( str, target, target_size );                               
    mt_entry->target = str;                                           
ffc05320:	93 df 00 30 	stw     r30,48(r31)                            
ffc05324:	7f 84 e3 78 	mr      r4,r28                                 
ffc05328:	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;                                  
ffc0532c:	91 3f 00 58 	stw     r9,88(r31)                             
ffc05330:	38 c0 00 24 	li      r6,36                                  
        filesystemtype,                                               
        &target_length                                                
      );                                                              
                                                                      
      if ( mt_entry != NULL ) {                                       
        mt_entry->writeable = options == RTEMS_FILESYSTEM_READ_WRITE; 
ffc05334:	57 39 07 fe 	clrlwi  r25,r25,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;                                
ffc05338:	93 9f 00 24 	stw     r28,36(r31)                            
    mt_entry->pathconf_limits_and_options = &rtems_filesystem_default_pathconf;
                                                                      
    mt_fs_root->location.mt_entry = mt_entry;                         
ffc0533c:	93 ff 00 54 	stw     r31,84(r31)                            
ffc05340:	48 00 54 fd 	bl      ffc0a83c <_Chain_Initialize>           
        filesystemtype,                                               
        &target_length                                                
      );                                                              
                                                                      
      if ( mt_entry != NULL ) {                                       
        mt_entry->writeable = options == RTEMS_FILESYSTEM_READ_WRITE; 
ffc05344:	9b 3f 00 29 	stb     r25,41(r31)                            
                                                                      
        rv = (*fsmount_me_h)( mt_entry, data );                       
ffc05348:	7f e3 fb 78 	mr      r3,r31                                 
ffc0534c:	7e a9 03 a6 	mtctr   r21                                    
ffc05350:	7e c4 b3 78 	mr      r4,r22                                 
ffc05354:	4e 80 04 21 	bctrl                                          
        if ( rv == 0 ) {                                              
ffc05358:	2e 03 00 00 	cmpwi   cr4,r3,0                               
ffc0535c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc05360:	40 92 00 a0 	bne-    cr4,ffc05400 <mount+0x210>             
          if ( target != NULL ) {                                     
ffc05364:	41 8e 01 9c 	beq-    cr3,ffc05500 <mount+0x310>             
{                                                                     
  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 =                      
ffc05368:	7f a4 eb 78 	mr      r4,r29                                 
ffc0536c:	38 a0 00 1f 	li      r5,31                                  
ffc05370:	38 61 00 08 	addi    r3,r1,8                                
ffc05374:	48 00 0e 99 	bl      ffc0620c <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;
ffc05378:	81 23 00 14 	lwz     r9,20(r3)                              
                                                                      
  return (*mt_entry->ops->are_nodes_equal_h)(                         
ffc0537c:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc05380:	80 89 00 24 	lwz     r4,36(r9)                              
ffc05384:	81 2a 00 10 	lwz     r9,16(r10)                             
ffc05388:	7d 29 03 a6 	mtctr   r9                                     
ffc0538c:	4e 80 04 21 	bctrl                                          
    rtems_filesystem_eval_path_start( &ctx, target, eval_flags );     
                                                                      
  if ( !rtems_filesystem_location_is_instance_root( currentloc ) ) {  
ffc05390:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05394:	40 9e 01 f4 	bne-    cr7,ffc05588 <mount+0x398>             
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(                          
ffc05398:	38 81 00 20 	addi    r4,r1,32                               
ffc0539c:	38 61 00 40 	addi    r3,r1,64                               
ffc053a0:	48 00 13 b9 	bl      ffc06758 <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 );
ffc053a4:	38 61 00 40 	addi    r3,r1,64                               
ffc053a8:	48 00 16 69 	bl      ffc06a10 <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 );
ffc053ac:	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 );
ffc053b0:	7c 7d 1b 78 	mr      r29,r3                                 
    mt_entry->mt_point_node = mt_point_node;                          
ffc053b4:	90 7f 00 20 	stw     r3,32(r31)                             
    rv = (*mt_point_node->location.mt_entry->ops->mount_h)( mt_entry );
ffc053b8:	7f e3 fb 78 	mr      r3,r31                                 
ffc053bc:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc053c0:	81 29 00 30 	lwz     r9,48(r9)                              
ffc053c4:	7d 29 03 a6 	mtctr   r9                                     
ffc053c8:	4e 80 04 21 	bctrl                                          
    if ( rv == 0 ) {                                                  
ffc053cc:	2e 03 00 00 	cmpwi   cr4,r3,0                               
ffc053d0:	7c 7e 1b 78 	mr      r30,r3                                 
ffc053d4:	41 92 00 80 	beq-    cr4,ffc05454 <mount+0x264>             
        &rtems_filesystem_mount_table,                                
        &mt_entry->mt_node                                            
      );                                                              
      rtems_filesystem_mt_unlock();                                   
    } else {                                                          
      rtems_filesystem_global_location_release( mt_point_node );      
ffc053d8:	7f a3 eb 78 	mr      r3,r29                                 
ffc053dc:	48 00 14 a9 	bl      ffc06884 <rtems_filesystem_global_location_release>
  } else {                                                            
    rtems_filesystem_eval_path_error( &ctx, EBUSY );                  
    rv = -1;                                                          
  }                                                                   
                                                                      
  rtems_filesystem_eval_path_cleanup( &ctx );                         
ffc053e0:	38 61 00 08 	addi    r3,r1,8                                
ffc053e4:	48 00 0f 71 	bl      ffc06354 <rtems_filesystem_eval_path_cleanup>
            rv = register_subordinate_file_system( mt_entry, target );
          } else {                                                    
            rv = register_root_file_system( mt_entry );               
          }                                                           
                                                                      
          if ( rv != 0 ) {                                            
ffc053e8:	41 b2 00 20 	beq+    cr4,ffc05408 <mount+0x218>             
            (*mt_entry->ops->fsunmount_me_h)( mt_entry );             
ffc053ec:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc053f0:	7f e3 fb 78 	mr      r3,r31                                 
ffc053f4:	81 29 00 3c 	lwz     r9,60(r9)                              
ffc053f8:	7d 29 03 a6 	mtctr   r9                                     
ffc053fc:	4e 80 04 21 	bctrl                                          
          }                                                           
        }                                                             
                                                                      
        if ( rv != 0 ) {                                              
          free( mt_entry );                                           
ffc05400:	7f e3 fb 78 	mr      r3,r31                                 
ffc05404:	4b ff f7 65 	bl      ffc04b68 <free>                        
    errno = EINVAL;                                                   
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc05408:	80 01 00 94 	lwz     r0,148(r1)                             
ffc0540c:	7f c3 f3 78 	mr      r3,r30                                 
ffc05410:	81 81 00 5c 	lwz     r12,92(r1)                             
ffc05414:	7c 08 03 a6 	mtlr    r0                                     
ffc05418:	82 81 00 60 	lwz     r20,96(r1)                             
ffc0541c:	82 a1 00 64 	lwz     r21,100(r1)                            
ffc05420:	7d 81 81 20 	mtcrf   24,r12                                 
ffc05424:	82 c1 00 68 	lwz     r22,104(r1)                            
ffc05428:	82 e1 00 6c 	lwz     r23,108(r1)                            
ffc0542c:	83 01 00 70 	lwz     r24,112(r1)                            
ffc05430:	83 21 00 74 	lwz     r25,116(r1)                            
ffc05434:	83 41 00 78 	lwz     r26,120(r1)                            
ffc05438:	83 61 00 7c 	lwz     r27,124(r1)                            
ffc0543c:	83 81 00 80 	lwz     r28,128(r1)                            
ffc05440:	83 a1 00 84 	lwz     r29,132(r1)                            
ffc05444:	83 c1 00 88 	lwz     r30,136(r1)                            
ffc05448:	83 e1 00 8c 	lwz     r31,140(r1)                            
ffc0544c:	38 21 00 90 	addi    r1,r1,144                              
ffc05450:	4e 80 00 20 	blr                                            
 */                                                                   
#include <rtems/userenv.h>                                            
                                                                      
static inline void rtems_libio_lock( void )                           
{                                                                     
  rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
ffc05454:	3f a0 00 00 	lis     r29,0                                  
ffc05458:	80 7d 28 54 	lwz     r3,10324(r29)                          
ffc0545c:	38 80 00 00 	li      r4,0                                   
ffc05460:	38 a0 00 00 	li      r5,0                                   
ffc05464:	48 00 45 bd 	bl      ffc09a20 <rtems_semaphore_obtain>      
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc05468:	3d 20 00 00 	lis     r9,0                                   
ffc0546c:	39 29 21 50 	addi    r9,r9,8528                             
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
ffc05470:	80 7d 28 54 	lwz     r3,10324(r29)                          
ffc05474:	81 49 00 08 	lwz     r10,8(r9)                              
                                                                      
  the_node->next = tail;                                              
ffc05478:	39 09 00 04 	addi    r8,r9,4                                
ffc0547c:	91 1f 00 00 	stw     r8,0(r31)                              
  tail->previous = the_node;                                          
  old_last->next = the_node;                                          
  the_node->previous = old_last;                                      
ffc05480:	91 5f 00 04 	stw     r10,4(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;                                          
ffc05484:	93 ea 00 00 	stw     r31,0(r10)                             
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
  tail->previous = the_node;                                          
ffc05488:	93 e9 00 08 	stw     r31,8(r9)                              
ffc0548c:	48 00 47 35 	bl      ffc09bc0 <rtems_semaphore_release>     
ffc05490:	4b ff ff 50 	b       ffc053e0 <mount+0x1f0>                 
)                                                                     
{                                                                     
  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;                                 
ffc05494:	2e 1b 00 00 	cmpwi   cr4,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;          
ffc05498:	7f 83 e3 78 	mr      r3,r28                                 
  const char *target_or_null,                                         
  const char *filesystemtype,                                         
  size_t *target_length_ptr                                           
)                                                                     
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
ffc0549c:	3e 80 ff c2 	lis     r20,-62                                
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
ffc054a0:	48 00 f4 2d 	bl      ffc148cc <strlen>                      
  const char *target_or_null,                                         
  const char *filesystemtype,                                         
  size_t *target_length_ptr                                           
)                                                                     
{                                                                     
  const char *target = target_or_null != NULL ? target_or_null : "/"; 
ffc054a4:	3b 00 00 02 	li      r24,2                                  
ffc054a8:	3a 94 fd 20 	addi    r20,r20,-736                           
  size_t filesystemtype_size = strlen( filesystemtype ) + 1;          
ffc054ac:	7c 7f 1b 78 	mr      r31,r3                                 
ffc054b0:	3a e3 00 01 	addi    r23,r3,1                               
  size_t source_size = source_or_null != NULL ?                       
    strlen( source_or_null ) + 1 : 0;                                 
ffc054b4:	40 92 fd dc 	bne+    cr4,ffc05290 <mount+0xa0>              <== NEVER TAKEN
  size_t target_size = strlen( target ) + 1;                          
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size                 
ffc054b8:	7f ff c2 14 	add     r31,r31,r24                            
ffc054bc:	38 9f 00 65 	addi    r4,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;                                 
ffc054c0:	3b 40 00 00 	li      r26,0                                  
  size_t target_size = strlen( target ) + 1;                          
  size_t size = sizeof( rtems_filesystem_mount_table_entry_t )        
    + filesystemtype_size + source_size + target_size                 
    + sizeof( rtems_filesystem_global_location_t );                   
  rtems_filesystem_mount_table_entry_t *mt_entry = calloc( 1, size ); 
ffc054c4:	38 60 00 01 	li      r3,1                                   
ffc054c8:	7c 84 d2 14 	add     r4,r4,r26                              
ffc054cc:	4b ff f2 ed 	bl      ffc047b8 <calloc>                      
                                                                      
  if ( mt_entry != NULL ) {                                           
ffc054d0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc054d4:	40 82 fd e4 	bne+    ffc052b8 <mount+0xc8>                  <== ALWAYS TAKEN
                                                                      
        if ( rv != 0 ) {                                              
          free( mt_entry );                                           
        }                                                             
      } else {                                                        
        errno = ENOMEM;                                               
ffc054d8:	48 00 db a1 	bl      ffc13078 <__errno>                     <== NOT EXECUTED
ffc054dc:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc054e0:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
        rv = -1;                                                      
ffc054e4:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc054e8:	4b ff ff 20 	b       ffc05408 <mount+0x218>                 <== NOT EXECUTED
    } else {                                                          
      errno = EINVAL;                                                 
      rv = -1;                                                        
    }                                                                 
  } else {                                                            
    errno = EINVAL;                                                   
ffc054ec:	48 00 db 8d 	bl      ffc13078 <__errno>                     
ffc054f0:	39 20 00 16 	li      r9,22                                  
ffc054f4:	91 23 00 00 	stw     r9,0(r3)                               
    rv = -1;                                                          
ffc054f8:	3b c0 ff ff 	li      r30,-1                                 
ffc054fc:	4b ff ff 0c 	b       ffc05408 <mount+0x218>                 
 */                                                                   
#include <rtems/userenv.h>                                            
                                                                      
static inline void rtems_libio_lock( void )                           
{                                                                     
  rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
ffc05500:	3f a0 00 00 	lis     r29,0                                  
ffc05504:	80 7d 28 54 	lwz     r3,10324(r29)                          
ffc05508:	38 80 00 00 	li      r4,0                                   
ffc0550c:	38 a0 00 00 	li      r5,0                                   
ffc05510:	48 00 45 11 	bl      ffc09a20 <rtems_semaphore_obtain>      
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc05514:	3d 40 00 00 	lis     r10,0                                  
ffc05518:	39 2a 21 50 	addi    r9,r10,8528                            
)                                                                     
{                                                                     
  int rv = 0;                                                         
                                                                      
  rtems_filesystem_mt_lock();                                         
  if ( rtems_chain_is_empty( &rtems_filesystem_mount_table ) ) {      
ffc0551c:	81 4a 21 50 	lwz     r10,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 );                            
ffc05520:	39 09 00 04 	addi    r8,r9,4                                
ffc05524:	7f 8a 40 00 	cmpw    cr7,r10,r8                             
ffc05528:	40 9e 00 78 	bne-    cr7,ffc055a0 <mount+0x3b0>             <== NEVER TAKEN
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc0552c:	81 09 00 08 	lwz     r8,8(r9)                               
  }                                                                   
  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 );
ffc05530:	3b 9f 00 24 	addi    r28,r31,36                             
                                                                      
  the_node->next = tail;                                              
ffc05534:	91 5f 00 00 	stw     r10,0(r31)                             
    rtems_filesystem_global_location_t *new_fs_current =              
      rtems_filesystem_global_location_obtain( &mt_entry->mt_fs_root );
                                                                      
    rtems_filesystem_global_location_assign(                          
ffc05538:	3f 60 00 00 	lis     r27,0                                  
  tail->previous = the_node;                                          
  old_last->next = the_node;                                          
ffc0553c:	93 e8 00 00 	stw     r31,0(r8)                              
  the_node->previous = old_last;                                      
ffc05540:	91 1f 00 04 	stw     r8,4(r31)                              
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
  tail->previous = the_node;                                          
ffc05544:	93 e9 00 08 	stw     r31,8(r9)                              
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
ffc05548:	80 7d 28 54 	lwz     r3,10324(r29)                          
ffc0554c:	48 00 46 75 	bl      ffc09bc0 <rtems_semaphore_release>     
    rv = -1;                                                          
  }                                                                   
  rtems_filesystem_mt_unlock();                                       
                                                                      
  if ( rv == 0 ) {                                                    
    rtems_filesystem_global_location_t *new_fs_root =                 
ffc05550:	7f 83 e3 78 	mr      r3,r28                                 
ffc05554:	48 00 13 a5 	bl      ffc068f8 <rtems_filesystem_global_location_obtain>
ffc05558:	7c 7d 1b 78 	mr      r29,r3                                 
      rtems_filesystem_global_location_obtain( &mt_entry->mt_fs_root );
    rtems_filesystem_global_location_t *new_fs_current =              
ffc0555c:	7f 83 e3 78 	mr      r3,r28                                 
ffc05560:	48 00 13 99 	bl      ffc068f8 <rtems_filesystem_global_location_obtain>
      rtems_filesystem_global_location_obtain( &mt_entry->mt_fs_root );
                                                                      
    rtems_filesystem_global_location_assign(                          
ffc05564:	7f a4 eb 78 	mr      r4,r29                                 
  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 =              
ffc05568:	7c 7f 1b 78 	mr      r31,r3                                 
      rtems_filesystem_global_location_obtain( &mt_entry->mt_fs_root );
                                                                      
    rtems_filesystem_global_location_assign(                          
ffc0556c:	80 7b 27 d8 	lwz     r3,10200(r27)                          
ffc05570:	38 63 00 04 	addi    r3,r3,4                                
ffc05574:	48 00 13 61 	bl      ffc068d4 <rtems_filesystem_global_location_assign>
      &rtems_filesystem_root,                                         
      new_fs_root                                                     
    );                                                                
    rtems_filesystem_global_location_assign(                          
ffc05578:	80 7b 27 d8 	lwz     r3,10200(r27)                          
ffc0557c:	7f e4 fb 78 	mr      r4,r31                                 
ffc05580:	48 00 13 55 	bl      ffc068d4 <rtems_filesystem_global_location_assign>
ffc05584:	4b ff fe 84 	b       ffc05408 <mount+0x218>                 
      rtems_filesystem_mt_unlock();                                   
    } else {                                                          
      rtems_filesystem_global_location_release( mt_point_node );      
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error( &ctx, EBUSY );                  
ffc05588:	38 61 00 08 	addi    r3,r1,8                                
ffc0558c:	38 80 00 10 	li      r4,16                                  
    rv = -1;                                                          
ffc05590:	3b c0 ff ff 	li      r30,-1                                 
      rtems_filesystem_mt_unlock();                                   
    } else {                                                          
      rtems_filesystem_global_location_release( mt_point_node );      
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error( &ctx, EBUSY );                  
ffc05594:	48 00 08 a9 	bl      ffc05e3c <rtems_filesystem_eval_path_error>
ffc05598:	2e 1e 00 00 	cmpwi   cr4,r30,0                              
ffc0559c:	4b ff fe 44 	b       ffc053e0 <mount+0x1f0>                 
    rtems_chain_append_unprotected(                                   
      &rtems_filesystem_mount_table,                                  
      &mt_entry->mt_node                                              
    );                                                                
  } else {                                                            
    errno = EINVAL;                                                   
ffc055a0:	48 00 da d9 	bl      ffc13078 <__errno>                     <== NOT EXECUTED
ffc055a4:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc055a8:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    rv = -1;                                                          
ffc055ac:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc055b0:	80 7d 28 54 	lwz     r3,10324(r29)                          <== NOT EXECUTED
ffc055b4:	48 00 46 0d 	bl      ffc09bc0 <rtems_semaphore_release>     <== NOT EXECUTED
ffc055b8:	4b ff fe 34 	b       ffc053ec <mount+0x1fc>                 <== NOT EXECUTED
                                                                      

ffc0acf0 <mount_and_make_target_path>: const char *target, const char *filesystemtype, rtems_filesystem_options_t options, const void *data ) {
ffc0acf0:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0acf4:	7c 08 02 a6 	mflr    r0                                     
ffc0acf8:	93 e1 00 1c 	stw     r31,28(r1)                             
  int rv = -1;                                                        
                                                                      
  if (target != NULL) {                                               
ffc0acfc:	7c 9f 23 79 	mr.     r31,r4                                 
  const char *target,                                                 
  const char *filesystemtype,                                         
  rtems_filesystem_options_t options,                                 
  const void *data                                                    
)                                                                     
{                                                                     
ffc0ad00:	90 01 00 24 	stw     r0,36(r1)                              
ffc0ad04:	93 61 00 0c 	stw     r27,12(r1)                             
ffc0ad08:	93 81 00 10 	stw     r28,16(r1)                             
ffc0ad0c:	93 a1 00 14 	stw     r29,20(r1)                             
ffc0ad10:	93 c1 00 18 	stw     r30,24(r1)                             
  int rv = -1;                                                        
                                                                      
  if (target != NULL) {                                               
ffc0ad14:	41 82 00 84 	beq-    ffc0ad98 <mount_and_make_target_path+0xa8>
ffc0ad18:	7c 7e 1b 78 	mr      r30,r3                                 
    rv = rtems_mkdir(target, S_IRWXU | S_IRWXG | S_IRWXO);            
ffc0ad1c:	38 80 01 ff 	li      r4,511                                 
ffc0ad20:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ad24:	7c bb 2b 78 	mr      r27,r5                                 
ffc0ad28:	7c dc 33 78 	mr      r28,r6                                 
ffc0ad2c:	7c fd 3b 78 	mr      r29,r7                                 
ffc0ad30:	48 00 0e 9d 	bl      ffc0bbcc <rtems_mkdir>                 
    if (rv == 0) {                                                    
ffc0ad34:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0ad38:	41 82 00 28 	beq-    ffc0ad60 <mount_and_make_target_path+0x70><== ALWAYS TAKEN
  } else {                                                            
    errno = EINVAL;                                                   
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc0ad3c:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0ad40:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0ad44:	7c 08 03 a6 	mtlr    r0                                     
ffc0ad48:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0ad4c:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0ad50:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0ad54:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0ad58:	38 21 00 20 	addi    r1,r1,32                               
ffc0ad5c:	4e 80 00 20 	blr                                            
ffc0ad60:	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(                                                     
ffc0ad64:	7f c3 f3 78 	mr      r3,r30                                 
ffc0ad68:	7f e4 fb 78 	mr      r4,r31                                 
  } else {                                                            
    errno = EINVAL;                                                   
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc0ad6c:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0ad70:	7c 08 03 a6 	mtlr    r0                                     
ffc0ad74:	83 e1 00 1c 	lwz     r31,28(r1)                             
  int rv = -1;                                                        
                                                                      
  if (target != NULL) {                                               
    rv = rtems_mkdir(target, S_IRWXU | S_IRWXG | S_IRWXO);            
    if (rv == 0) {                                                    
      rv = mount(                                                     
ffc0ad78:	7f 65 db 78 	mr      r5,r27                                 
  } else {                                                            
    errno = EINVAL;                                                   
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc0ad7c:	83 61 00 0c 	lwz     r27,12(r1)                             
  int rv = -1;                                                        
                                                                      
  if (target != NULL) {                                               
    rv = rtems_mkdir(target, S_IRWXU | S_IRWXG | S_IRWXO);            
    if (rv == 0) {                                                    
      rv = mount(                                                     
ffc0ad80:	7f 86 e3 78 	mr      r6,r28                                 
  } else {                                                            
    errno = EINVAL;                                                   
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc0ad84:	83 81 00 10 	lwz     r28,16(r1)                             
  int rv = -1;                                                        
                                                                      
  if (target != NULL) {                                               
    rv = rtems_mkdir(target, S_IRWXU | S_IRWXG | S_IRWXO);            
    if (rv == 0) {                                                    
      rv = mount(                                                     
ffc0ad88:	7f a7 eb 78 	mr      r7,r29                                 
  } else {                                                            
    errno = EINVAL;                                                   
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc0ad8c:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0ad90:	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(                                                     
ffc0ad94:	48 00 00 18 	b       ffc0adac <mount>                       
        options,                                                      
        data                                                          
      );                                                              
    }                                                                 
  } else {                                                            
    errno = EINVAL;                                                   
ffc0ad98:	48 01 e2 61 	bl      ffc28ff8 <__errno>                     
ffc0ad9c:	39 20 00 16 	li      r9,22                                  
ffc0ada0:	91 23 00 00 	stw     r9,0(r3)                               
  const char *filesystemtype,                                         
  rtems_filesystem_options_t options,                                 
  const void *data                                                    
)                                                                     
{                                                                     
  int rv = -1;                                                        
ffc0ada4:	38 60 ff ff 	li      r3,-1                                  
ffc0ada8:	4b ff ff 94 	b       ffc0ad3c <mount_and_make_target_path+0x4c>
                                                                      

ffc09ca0 <mq_open>: * * 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;
ffc09ca0:	3d 20 00 00 	lis     r9,0                                   
  int         oflag,                                                  
  ...                                                                 
  /* mode_t mode, */                                                  
  /* struct mq_attr  attr */                                          
)                                                                     
{                                                                     
ffc09ca4:	94 21 ff b0 	stwu    r1,-80(r1)                             
ffc09ca8:	7c 08 02 a6 	mflr    r0                                     
ffc09cac:	81 49 28 a8 	lwz     r10,10408(r9)                          
ffc09cb0:	7d 80 00 26 	mfcr    r12                                    
ffc09cb4:	93 81 00 40 	stw     r28,64(r1)                             
ffc09cb8:	7c 7c 1b 78 	mr      r28,r3                                 
                                                                      
    ++level;                                                          
ffc09cbc:	39 4a 00 01 	addi    r10,r10,1                              
ffc09cc0:	93 c1 00 48 	stw     r30,72(r1)                             
ffc09cc4:	7c 9e 23 78 	mr      r30,r4                                 
ffc09cc8:	90 01 00 54 	stw     r0,84(r1)                              
ffc09ccc:	93 21 00 34 	stw     r25,52(r1)                             
ffc09cd0:	93 41 00 38 	stw     r26,56(r1)                             
ffc09cd4:	93 61 00 3c 	stw     r27,60(r1)                             
ffc09cd8:	93 a1 00 44 	stw     r29,68(r1)                             
ffc09cdc:	93 e1 00 4c 	stw     r31,76(r1)                             
ffc09ce0:	91 81 00 30 	stw     r12,48(r1)                             
ffc09ce4:	90 a1 00 28 	stw     r5,40(r1)                              
ffc09ce8:	90 c1 00 2c 	stw     r6,44(r1)                              
    _Thread_Dispatch_disable_level = level;                           
ffc09cec:	91 49 28 a8 	stw     r10,10408(r9)                          
  Objects_Locations               location;                           
  size_t                          name_len;                           
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
ffc09cf0:	54 89 bf fe 	rlwinm  r9,r4,23,31,31                         
ffc09cf4:	2e 09 00 00 	cmpwi   cr4,r9,0                               
  /* struct mq_attr  attr */                                          
)                                                                     
{                                                                     
  va_list                         arg;                                
  mode_t                          mode;                               
  struct mq_attr                 *attr = NULL;                        
ffc09cf8:	3b 20 00 00 	li      r25,0                                  
  Objects_Locations               location;                           
  size_t                          name_len;                           
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
ffc09cfc:	40 92 01 20 	bne-    cr4,ffc09e1c <mq_open+0x17c>           
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *                 
  _POSIX_Message_queue_Allocate_fd( void )                            
{                                                                     
  return (POSIX_Message_queue_Control_fd *)                           
ffc09d00:	3f a0 00 00 	lis     r29,0                                  
ffc09d04:	3b bd 5b 0c 	addi    r29,r29,23308                          
ffc09d08:	7f a3 eb 78 	mr      r3,r29                                 
ffc09d0c:	48 00 3a 9d 	bl      ffc0d7a8 <_Objects_Allocate>           
    attr = va_arg( arg, struct mq_attr * );                           
    va_end(arg);                                                      
  }                                                                   
                                                                      
  the_mq_fd = _POSIX_Message_queue_Allocate_fd();                     
  if ( !the_mq_fd ) {                                                 
ffc09d10:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc09d14:	41 82 01 3c 	beq-    ffc09e50 <mq_open+0x1b0>               <== NEVER TAKEN
  const char          *name,                                          
  Objects_Id          *id,                                            
  size_t              *len                                            
)                                                                     
{                                                                     
  return _POSIX_Name_to_id( &_POSIX_Message_queue_Information, name, id, len );
ffc09d18:	3f 60 00 00 	lis     r27,0                                  
    _Thread_Enable_dispatch();                                        
    rtems_set_errno_and_return_minus_one( ENFILE );                   
  }                                                                   
  the_mq_fd->oflag = oflag;                                           
ffc09d1c:	93 df 00 14 	stw     r30,20(r31)                            
ffc09d20:	3b 7b 59 80 	addi    r27,r27,22912                          
ffc09d24:	7f 63 db 78 	mr      r3,r27                                 
ffc09d28:	7f 84 e3 78 	mr      r4,r28                                 
ffc09d2c:	38 a1 00 20 	addi    r5,r1,32                               
ffc09d30:	38 c1 00 14 	addi    r6,r1,20                               
ffc09d34:	48 00 06 49 	bl      ffc0a37c <_POSIX_Name_to_id>           
   *  If the name to id translation worked, then the message queue exists
   *  and we can just return a pointer to the id.  Otherwise we may   
   *  need to check to see if this is a "message queue does not exist"
   *  or some other miscellaneous error on the name.                  
   */                                                                 
  if ( status ) {                                                     
ffc09d38:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc09d3c:	40 82 00 88 	bne-    ffc09dc4 <mq_open+0x124>               
                                                                      
  } else {                /* name -> ID translation succeeded */      
    /*                                                                
     * Check for existence with creation.                             
     */                                                               
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
ffc09d40:	73 de 0a 00 	andi.   r30,r30,2560                           
ffc09d44:	2f 9e 0a 00 	cmpwi   cr7,r30,2560                           
ffc09d48:	41 9e 01 50 	beq-    cr7,ffc09e98 <mq_open+0x1f8>           
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control *_POSIX_Message_queue_Get (
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (POSIX_Message_queue_Control *)                              
ffc09d4c:	80 81 00 20 	lwz     r4,32(r1)                              
ffc09d50:	38 a1 00 18 	addi    r5,r1,24                               
ffc09d54:	7f 63 db 78 	mr      r3,r27                                 
ffc09d58:	48 00 40 39 	bl      ffc0dd90 <_Objects_Get>                
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  const char          *name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
ffc09d5c:	a1 5f 00 0a 	lhz     r10,10(r31)                            
    /*                                                                
     * In this case we need to do an ID->pointer conversion to        
     * check the mode.                                                
     */                                                               
    the_mq = _POSIX_Message_queue_Get( the_mq_id, &location );        
    the_mq->open_count += 1;                                          
ffc09d60:	81 23 00 18 	lwz     r9,24(r3)                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc09d64:	81 1d 00 1c 	lwz     r8,28(r29)                             
ffc09d68:	55 4a 10 3a 	rlwinm  r10,r10,2,0,29                         
ffc09d6c:	39 29 00 01 	addi    r9,r9,1                                
                                                                      
    /*                                                                
     * In this case we need to do an ID->pointer conversion to        
     * check the mode.                                                
     */                                                               
    the_mq = _POSIX_Message_queue_Get( the_mq_id, &location );        
ffc09d70:	90 61 00 1c 	stw     r3,28(r1)                              
    the_mq->open_count += 1;                                          
ffc09d74:	91 23 00 18 	stw     r9,24(r3)                              
    the_mq_fd->Queue = the_mq;                                        
ffc09d78:	90 7f 00 10 	stw     r3,16(r31)                             
ffc09d7c:	7f e8 51 2e 	stwx    r31,r8,r10                             
    the_object                                                        
  );                                                                  
                                                                      
  #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                 
    /* ASSERT: information->is_string */                              
    the_object->name.name_p = name;                                   
ffc09d80:	93 5f 00 0c 	stw     r26,12(r31)                            
    _Objects_Open_string(                                             
      &_POSIX_Message_queue_Information_fds,                          
      &the_mq_fd->Object,                                             
      NULL                                                            
    );                                                                
    _Thread_Enable_dispatch();                                        
ffc09d84:	48 00 52 09 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
    _Thread_Enable_dispatch();                                        
ffc09d88:	48 00 52 05 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
    return (mqd_t)the_mq_fd->Object.id;                               
ffc09d8c:	80 7f 00 08 	lwz     r3,8(r31)                              
  );                                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return (mqd_t) the_mq_fd->Object.id;                                
}                                                                     
ffc09d90:	80 01 00 54 	lwz     r0,84(r1)                              
ffc09d94:	81 81 00 30 	lwz     r12,48(r1)                             
ffc09d98:	7c 08 03 a6 	mtlr    r0                                     
ffc09d9c:	83 21 00 34 	lwz     r25,52(r1)                             
ffc09da0:	83 41 00 38 	lwz     r26,56(r1)                             
ffc09da4:	7d 80 81 20 	mtcrf   8,r12                                  
ffc09da8:	83 61 00 3c 	lwz     r27,60(r1)                             
ffc09dac:	83 81 00 40 	lwz     r28,64(r1)                             
ffc09db0:	83 a1 00 44 	lwz     r29,68(r1)                             
ffc09db4:	83 c1 00 48 	lwz     r30,72(r1)                             
ffc09db8:	83 e1 00 4c 	lwz     r31,76(r1)                             
ffc09dbc:	38 21 00 50 	addi    r1,r1,80                               
ffc09dc0:	4e 80 00 20 	blr                                            
  if ( status ) {                                                     
    /*                                                                
     * Unless provided a valid name that did not already exist        
     * and we are willing to create then it is an error.              
     */                                                               
    if ( !( status == ENOENT && (oflag & O_CREAT) ) ) {               
ffc09dc4:	2f 9a 00 02 	cmpwi   cr7,r26,2                              
ffc09dc8:	41 9e 01 24 	beq-    cr7,ffc09eec <mq_open+0x24c>           
                                                                      
RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free_fd (              
  POSIX_Message_queue_Control_fd *the_mq_fd                           
)                                                                     
{                                                                     
  _Objects_Free( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object );
ffc09dcc:	7f a3 eb 78 	mr      r3,r29                                 
ffc09dd0:	7f e4 fb 78 	mr      r4,r31                                 
ffc09dd4:	48 00 3d e5 	bl      ffc0dbb8 <_Objects_Free>               
      _POSIX_Message_queue_Free_fd( the_mq_fd );                      
      _Thread_Enable_dispatch();                                      
ffc09dd8:	48 00 51 b5 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
      rtems_set_errno_and_return_minus_one_cast( status, mqd_t );     
ffc09ddc:	48 00 ba a1 	bl      ffc1587c <__errno>                     
  );                                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return (mqd_t) the_mq_fd->Object.id;                                
}                                                                     
ffc09de0:	80 01 00 54 	lwz     r0,84(r1)                              
ffc09de4:	81 81 00 30 	lwz     r12,48(r1)                             
ffc09de8:	7c 08 03 a6 	mtlr    r0                                     
     * and we are willing to create then it is an error.              
     */                                                               
    if ( !( status == ENOENT && (oflag & O_CREAT) ) ) {               
      _POSIX_Message_queue_Free_fd( the_mq_fd );                      
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one_cast( status, mqd_t );     
ffc09dec:	93 43 00 00 	stw     r26,0(r3)                              
  );                                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return (mqd_t) the_mq_fd->Object.id;                                
}                                                                     
ffc09df0:	7d 80 81 20 	mtcrf   8,r12                                  
     * and we are willing to create then it is an error.              
     */                                                               
    if ( !( status == ENOENT && (oflag & O_CREAT) ) ) {               
      _POSIX_Message_queue_Free_fd( the_mq_fd );                      
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one_cast( status, mqd_t );     
ffc09df4:	38 60 ff ff 	li      r3,-1                                  
  );                                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return (mqd_t) the_mq_fd->Object.id;                                
}                                                                     
ffc09df8:	83 21 00 34 	lwz     r25,52(r1)                             
ffc09dfc:	83 41 00 38 	lwz     r26,56(r1)                             
ffc09e00:	83 61 00 3c 	lwz     r27,60(r1)                             
ffc09e04:	83 81 00 40 	lwz     r28,64(r1)                             
ffc09e08:	83 a1 00 44 	lwz     r29,68(r1)                             
ffc09e0c:	83 c1 00 48 	lwz     r30,72(r1)                             
ffc09e10:	83 e1 00 4c 	lwz     r31,76(r1)                             
ffc09e14:	38 21 00 50 	addi    r1,r1,80                               
ffc09e18:	4e 80 00 20 	blr                                            
  size_t                          name_len;                           
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
    va_start(arg, oflag);                                             
ffc09e1c:	39 21 00 58 	addi    r9,r1,88                               
    mode = va_arg( arg, mode_t );                                     
    attr = va_arg( arg, struct mq_attr * );                           
ffc09e20:	83 21 00 2c 	lwz     r25,44(r1)                             
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE POSIX_Message_queue_Control_fd *                 
  _POSIX_Message_queue_Allocate_fd( void )                            
{                                                                     
  return (POSIX_Message_queue_Control_fd *)                           
ffc09e24:	3f a0 00 00 	lis     r29,0                                  
  size_t                          name_len;                           
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
    va_start(arg, oflag);                                             
ffc09e28:	91 21 00 0c 	stw     r9,12(r1)                              
ffc09e2c:	3b bd 5b 0c 	addi    r29,r29,23308                          
ffc09e30:	39 21 00 20 	addi    r9,r1,32                               
ffc09e34:	91 21 00 10 	stw     r9,16(r1)                              
ffc09e38:	7f a3 eb 78 	mr      r3,r29                                 
    mode = va_arg( arg, mode_t );                                     
ffc09e3c:	39 20 00 03 	li      r9,3                                   
ffc09e40:	99 21 00 08 	stb     r9,8(r1)                               
ffc09e44:	48 00 39 65 	bl      ffc0d7a8 <_Objects_Allocate>           
    attr = va_arg( arg, struct mq_attr * );                           
    va_end(arg);                                                      
  }                                                                   
                                                                      
  the_mq_fd = _POSIX_Message_queue_Allocate_fd();                     
  if ( !the_mq_fd ) {                                                 
ffc09e48:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc09e4c:	40 82 fe cc 	bne+    ffc09d18 <mq_open+0x78>                
    _Thread_Enable_dispatch();                                        
ffc09e50:	48 00 51 3d 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
    rtems_set_errno_and_return_minus_one( ENFILE );                   
ffc09e54:	48 00 ba 29 	bl      ffc1587c <__errno>                     
  );                                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return (mqd_t) the_mq_fd->Object.id;                                
}                                                                     
ffc09e58:	80 01 00 54 	lwz     r0,84(r1)                              
ffc09e5c:	81 81 00 30 	lwz     r12,48(r1)                             
  }                                                                   
                                                                      
  the_mq_fd = _POSIX_Message_queue_Allocate_fd();                     
  if ( !the_mq_fd ) {                                                 
    _Thread_Enable_dispatch();                                        
    rtems_set_errno_and_return_minus_one( ENFILE );                   
ffc09e60:	39 20 00 17 	li      r9,23                                  
  );                                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return (mqd_t) the_mq_fd->Object.id;                                
}                                                                     
ffc09e64:	7c 08 03 a6 	mtlr    r0                                     
  }                                                                   
                                                                      
  the_mq_fd = _POSIX_Message_queue_Allocate_fd();                     
  if ( !the_mq_fd ) {                                                 
    _Thread_Enable_dispatch();                                        
    rtems_set_errno_and_return_minus_one( ENFILE );                   
ffc09e68:	91 23 00 00 	stw     r9,0(r3)                               
  );                                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return (mqd_t) the_mq_fd->Object.id;                                
}                                                                     
ffc09e6c:	7d 80 81 20 	mtcrf   8,r12                                  
  }                                                                   
                                                                      
  the_mq_fd = _POSIX_Message_queue_Allocate_fd();                     
  if ( !the_mq_fd ) {                                                 
    _Thread_Enable_dispatch();                                        
    rtems_set_errno_and_return_minus_one( ENFILE );                   
ffc09e70:	38 60 ff ff 	li      r3,-1                                  
  );                                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return (mqd_t) the_mq_fd->Object.id;                                
}                                                                     
ffc09e74:	83 21 00 34 	lwz     r25,52(r1)                             
ffc09e78:	83 41 00 38 	lwz     r26,56(r1)                             
ffc09e7c:	83 61 00 3c 	lwz     r27,60(r1)                             
ffc09e80:	83 81 00 40 	lwz     r28,64(r1)                             
ffc09e84:	83 a1 00 44 	lwz     r29,68(r1)                             
ffc09e88:	83 c1 00 48 	lwz     r30,72(r1)                             
ffc09e8c:	83 e1 00 4c 	lwz     r31,76(r1)                             
ffc09e90:	38 21 00 50 	addi    r1,r1,80                               
ffc09e94:	4e 80 00 20 	blr                                            
                                                                      
RTEMS_INLINE_ROUTINE void _POSIX_Message_queue_Free_fd (              
  POSIX_Message_queue_Control_fd *the_mq_fd                           
)                                                                     
{                                                                     
  _Objects_Free( &_POSIX_Message_queue_Information_fds, &the_mq_fd->Object );
ffc09e98:	7f a3 eb 78 	mr      r3,r29                                 
ffc09e9c:	7f e4 fb 78 	mr      r4,r31                                 
ffc09ea0:	48 00 3d 19 	bl      ffc0dbb8 <_Objects_Free>               
    /*                                                                
     * Check for existence with creation.                             
     */                                                               
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
      _POSIX_Message_queue_Free_fd( the_mq_fd );                      
      _Thread_Enable_dispatch();                                      
ffc09ea4:	48 00 50 e9 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
      rtems_set_errno_and_return_minus_one_cast( EEXIST, mqd_t );     
ffc09ea8:	48 00 b9 d5 	bl      ffc1587c <__errno>                     
  );                                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return (mqd_t) the_mq_fd->Object.id;                                
}                                                                     
ffc09eac:	80 01 00 54 	lwz     r0,84(r1)                              
ffc09eb0:	81 81 00 30 	lwz     r12,48(r1)                             
     * Check for existence with creation.                             
     */                                                               
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
      _POSIX_Message_queue_Free_fd( the_mq_fd );                      
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one_cast( EEXIST, mqd_t );     
ffc09eb4:	39 20 00 11 	li      r9,17                                  
  );                                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return (mqd_t) the_mq_fd->Object.id;                                
}                                                                     
ffc09eb8:	7c 08 03 a6 	mtlr    r0                                     
     * Check for existence with creation.                             
     */                                                               
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
      _POSIX_Message_queue_Free_fd( the_mq_fd );                      
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one_cast( EEXIST, mqd_t );     
ffc09ebc:	91 23 00 00 	stw     r9,0(r3)                               
  );                                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return (mqd_t) the_mq_fd->Object.id;                                
}                                                                     
ffc09ec0:	7d 80 81 20 	mtcrf   8,r12                                  
     * Check for existence with creation.                             
     */                                                               
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
      _POSIX_Message_queue_Free_fd( the_mq_fd );                      
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one_cast( EEXIST, mqd_t );     
ffc09ec4:	38 60 ff ff 	li      r3,-1                                  
  );                                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return (mqd_t) the_mq_fd->Object.id;                                
}                                                                     
ffc09ec8:	83 21 00 34 	lwz     r25,52(r1)                             
ffc09ecc:	83 41 00 38 	lwz     r26,56(r1)                             
ffc09ed0:	83 61 00 3c 	lwz     r27,60(r1)                             
ffc09ed4:	83 81 00 40 	lwz     r28,64(r1)                             
ffc09ed8:	83 a1 00 44 	lwz     r29,68(r1)                             
ffc09edc:	83 c1 00 48 	lwz     r30,72(r1)                             
ffc09ee0:	83 e1 00 4c 	lwz     r31,76(r1)                             
ffc09ee4:	38 21 00 50 	addi    r1,r1,80                               
ffc09ee8:	4e 80 00 20 	blr                                            
  if ( status ) {                                                     
    /*                                                                
     * Unless provided a valid name that did not already exist        
     * and we are willing to create then it is an error.              
     */                                                               
    if ( !( status == ENOENT && (oflag & O_CREAT) ) ) {               
ffc09eec:	41 92 fe e0 	beq+    cr4,ffc09dcc <mq_open+0x12c>           
                                                                      
  /*                                                                  
   *  At this point, the message queue does not exist and everything has been
   *  checked. We should go ahead and create a message queue.         
   */                                                                 
  status = _POSIX_Message_queue_Create_support(                       
ffc09ef0:	80 81 00 14 	lwz     r4,20(r1)                              
ffc09ef4:	7f 83 e3 78 	mr      r3,r28                                 
ffc09ef8:	38 a0 00 01 	li      r5,1                                   
ffc09efc:	7f 26 cb 78 	mr      r6,r25                                 
ffc09f00:	38 e1 00 1c 	addi    r7,r1,28                               
ffc09f04:	48 00 81 a5 	bl      ffc120a8 <_POSIX_Message_queue_Create_support>
  );                                                                  
                                                                      
  /*                                                                  
   * errno was set by Create_support, so don't set it again.          
   */                                                                 
  if ( status == -1 ) {                                               
ffc09f08:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc09f0c:	41 9e 00 30 	beq-    cr7,ffc09f3c <mq_open+0x29c>           
    _POSIX_Message_queue_Free_fd( the_mq_fd );                        
    _Thread_Enable_dispatch();                                        
    return (mqd_t) -1;                                                
  }                                                                   
                                                                      
  the_mq_fd->Queue = the_mq;                                          
ffc09f10:	81 21 00 1c 	lwz     r9,28(r1)                              
  Objects_Information *information,                                   
  Objects_Control     *the_object,                                    
  const char          *name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
ffc09f14:	a1 5f 00 0a 	lhz     r10,10(r31)                            
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc09f18:	81 1d 00 1c 	lwz     r8,28(r29)                             
ffc09f1c:	55 4a 10 3a 	rlwinm  r10,r10,2,0,29                         
ffc09f20:	91 3f 00 10 	stw     r9,16(r31)                             
    the_object                                                        
  );                                                                  
                                                                      
  #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                 
    /* ASSERT: information->is_string */                              
    the_object->name.name_p = name;                                   
ffc09f24:	39 20 00 00 	li      r9,0                                   
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc09f28:	7f e8 51 2e 	stwx    r31,r8,r10                             
    the_object                                                        
  );                                                                  
                                                                      
  #if defined(RTEMS_SCORE_OBJECT_ENABLE_STRING_NAMES)                 
    /* ASSERT: information->is_string */                              
    the_object->name.name_p = name;                                   
ffc09f2c:	91 3f 00 0c 	stw     r9,12(r31)                             
    &_POSIX_Message_queue_Information_fds,                            
    &the_mq_fd->Object,                                               
    NULL                                                              
  );                                                                  
                                                                      
  _Thread_Enable_dispatch();                                          
ffc09f30:	48 00 50 5d 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
                                                                      
  return (mqd_t) the_mq_fd->Object.id;                                
ffc09f34:	80 7f 00 08 	lwz     r3,8(r31)                              
ffc09f38:	4b ff fe 58 	b       ffc09d90 <mq_open+0xf0>                
ffc09f3c:	7f a3 eb 78 	mr      r3,r29                                 
ffc09f40:	7f e4 fb 78 	mr      r4,r31                                 
ffc09f44:	48 00 3c 75 	bl      ffc0dbb8 <_Objects_Free>               
  /*                                                                  
   * errno was set by Create_support, so don't set it again.          
   */                                                                 
  if ( status == -1 ) {                                               
    _POSIX_Message_queue_Free_fd( the_mq_fd );                        
    _Thread_Enable_dispatch();                                        
ffc09f48:	48 00 50 45 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
    return (mqd_t) -1;                                                
ffc09f4c:	38 60 ff ff 	li      r3,-1                                  
ffc09f50:	4b ff fe 40 	b       ffc09d90 <mq_open+0xf0>                
                                                                      

ffc1cba4 <msdos_creat_node>: msdos_node_type_t type, const char *name, int name_len, mode_t mode, const fat_file_fd_t *link_fd) {
ffc1cba4:	94 21 ff 30 	stwu    r1,-208(r1)                            
ffc1cba8:	7c 08 02 a6 	mflr    r0                                     
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
  dir_pos->sname.ofs = 0;                                             
  dir_pos->lname.cln = FAT_FILE_SHORT_NAME;                           
ffc1cbac:	39 20 ff ff 	li      r9,-1                                  
ffc1cbb0:	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;        
ffc1cbb4:	81 43 00 14 	lwz     r10,20(r3)                             
                 msdos_node_type_t                        type,       
                 const char                              *name,       
                 int                                      name_len,   
                 mode_t                                   mode,       
                 const fat_file_fd_t                     *link_fd)    
{                                                                     
ffc1cbb8:	93 41 00 b8 	stw     r26,184(r1)                            
ffc1cbbc:	7c 9a 23 78 	mr      r26,r4                                 
    uint32_t          byte = 0;                                       
                                                                      
    fat_dir_pos_init(&dir_pos);                                       
                                                                      
    memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);         
    memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2);     
ffc1cbc0:	38 80 00 00 	li      r4,0                                   
                 msdos_node_type_t                        type,       
                 const char                              *name,       
                 int                                      name_len,   
                 mode_t                                   mode,       
                 const fat_file_fd_t                     *link_fd)    
{                                                                     
ffc1cbc4:	93 81 00 c0 	stw     r28,192(r1)                            
ffc1cbc8:	7c bc 2b 78 	mr      r28,r5                                 
    uint32_t          byte = 0;                                       
                                                                      
    fat_dir_pos_init(&dir_pos);                                       
                                                                      
    memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);         
    memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2);     
ffc1cbcc:	38 a0 00 40 	li      r5,64                                  
                 msdos_node_type_t                        type,       
                 const char                              *name,       
                 int                                      name_len,   
                 mode_t                                   mode,       
                 const fat_file_fd_t                     *link_fd)    
{                                                                     
ffc1cbd0:	93 a1 00 c4 	stw     r29,196(r1)                            
ffc1cbd4:	7c dd 33 78 	mr      r29,r6                                 
ffc1cbd8:	93 c1 00 c8 	stw     r30,200(r1)                            
ffc1cbdc:	7c 7e 1b 78 	mr      r30,r3                                 
    uint32_t          byte = 0;                                       
                                                                      
    fat_dir_pos_init(&dir_pos);                                       
                                                                      
    memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);         
    memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2);     
ffc1cbe0:	38 61 00 08 	addi    r3,r1,8                                
                 msdos_node_type_t                        type,       
                 const char                              *name,       
                 int                                      name_len,   
                 mode_t                                   mode,       
                 const fat_file_fd_t                     *link_fd)    
{                                                                     
ffc1cbe4:	93 e1 00 cc 	stw     r31,204(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;                                  
ffc1cbe8:	3b e0 00 00 	li      r31,0                                  
                 msdos_node_type_t                        type,       
                 const char                              *name,       
                 int                                      name_len,   
                 mode_t                                   mode,       
                 const fat_file_fd_t                     *link_fd)    
{                                                                     
ffc1cbec:	92 e1 00 ac 	stw     r23,172(r1)                            
ffc1cbf0:	7d 17 43 78 	mr      r23,r8                                 
ffc1cbf4:	93 01 00 b0 	stw     r24,176(r1)                            
ffc1cbf8:	93 61 00 bc 	stw     r27,188(r1)                            
ffc1cbfc:	93 21 00 b4 	stw     r25,180(r1)                            
    int               rc = RC_OK;                                     
    ssize_t           ret = 0;                                        
    msdos_fs_info_t  *fs_info = parent_loc->mt_entry->fs_info;        
ffc1cc00:	83 6a 00 08 	lwz     r27,8(r10)                             
    fat_file_fd_t    *parent_fat_fd = parent_loc->node_access;        
ffc1cc04:	83 1e 00 08 	lwz     r24,8(r30)                             
    fat_file_fd_t    *fat_fd = NULL;                                  
ffc1cc08:	93 e1 00 98 	stw     r31,152(r1)                            
    time_t            time_ret = 0;                                   
    uint16_t          time_val = 0;                                   
ffc1cc0c:	b3 e1 00 9e 	sth     r31,158(r1)                            
    uint16_t          date = 0;                                       
ffc1cc10:	b3 e1 00 9c 	sth     r31,156(r1)                            
static inline void                                                    
fat_dir_pos_init(                                                     
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
ffc1cc14:	93 e1 00 88 	stw     r31,136(r1)                            
  dir_pos->sname.ofs = 0;                                             
ffc1cc18:	93 e1 00 8c 	stw     r31,140(r1)                            
  dir_pos->lname.cln = FAT_FILE_SHORT_NAME;                           
ffc1cc1c:	91 21 00 90 	stw     r9,144(r1)                             
  dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;                           
ffc1cc20:	91 21 00 94 	stw     r9,148(r1)                             
    uint32_t          sec = 0;                                        
    uint32_t          byte = 0;                                       
                                                                      
    fat_dir_pos_init(&dir_pos);                                       
                                                                      
    memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);         
ffc1cc24:	93 e1 00 68 	stw     r31,104(r1)                            
ffc1cc28:	93 e1 00 6c 	stw     r31,108(r1)                            
ffc1cc2c:	93 e1 00 70 	stw     r31,112(r1)                            
ffc1cc30:	93 e1 00 74 	stw     r31,116(r1)                            
ffc1cc34:	93 e1 00 78 	stw     r31,120(r1)                            
ffc1cc38:	93 e1 00 7c 	stw     r31,124(r1)                            
ffc1cc3c:	93 e1 00 80 	stw     r31,128(r1)                            
ffc1cc40:	93 e1 00 84 	stw     r31,132(r1)                            
    memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2);     
ffc1cc44:	48 00 58 2d 	bl      ffc22470 <memset>                      
                                                                      
    if (name_len > MSDOS_NAME_MAX_LFN_WITH_DOT) {                     
ffc1cc48:	2f 9d 01 04 	cmpwi   cr7,r29,260                            
ffc1cc4c:	41 9d 03 f8 	bgt-    cr7,ffc1d044 <msdos_creat_node+0x4a0>  <== NEVER TAKEN
        rtems_set_errno_and_return_minus_one(ENAMETOOLONG);           
    }                                                                 
                                                                      
    name_type = msdos_long_to_short (name, name_len,                  
ffc1cc50:	7f 83 e3 78 	mr      r3,r28                                 
ffc1cc54:	7f a4 eb 78 	mr      r4,r29                                 
ffc1cc58:	38 a1 00 68 	addi    r5,r1,104                              
ffc1cc5c:	38 c0 00 0b 	li      r6,11                                  
ffc1cc60:	48 00 05 79 	bl      ffc1d1d8 <msdos_long_to_short>         
                                     MSDOS_DIR_NAME(short_node),      
                                     MSDOS_NAME_MAX);                 
    if (name_type == MSDOS_NAME_INVALID) {                            
ffc1cc64:	7c 79 1b 79 	mr.     r25,r3                                 
ffc1cc68:	41 82 03 f0 	beq-    ffc1d058 <msdos_creat_node+0x4b4>      <== NEVER TAKEN
        rtems_set_errno_and_return_minus_one(EINVAL);                 
    }                                                                 
                                                                      
    /* fill reserved field */                                         
    *MSDOS_DIR_NT_RES(short_node) = MSDOS_RES_NT_VALUE;               
ffc1cc6c:	39 20 00 00 	li      r9,0                                   
                                                                      
    /* set up last write date and time */                             
    time_ret = time(NULL);                                            
ffc1cc70:	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;               
ffc1cc74:	99 21 00 74 	stb     r9,116(r1)                             
                                                                      
    /* set up last write date and time */                             
    time_ret = time(NULL);                                            
ffc1cc78:	48 00 95 d9 	bl      ffc26250 <time>                        
    if ( time_ret == -1 )                                             
ffc1cc7c:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc1cc80:	41 9e 03 ec 	beq-    cr7,ffc1d06c <msdos_creat_node+0x4c8>  <== NEVER TAKEN
        return -1;                                                    
                                                                      
    msdos_date_unix2dos(time_ret, &date, &time_val);                  
ffc1cc84:	38 81 00 9c 	addi    r4,r1,156                              
ffc1cc88:	38 a1 00 9e 	addi    r5,r1,158                              
ffc1cc8c:	48 00 37 b1 	bl      ffc2043c <msdos_date_unix2dos>         
    *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) {                                    
ffc1cc90:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
    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);              
ffc1cc94:	a1 21 00 9e 	lhz     r9,158(r1)                             
    *MSDOS_DIR_CRT_DATE(short_node) = CT_LE_W(date);                  
ffc1cc98:	a0 c1 00 9c 	lhz     r6,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);              
ffc1cc9c:	55 28 c2 3e 	rlwinm  r8,r9,24,8,31                          
    *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;           
ffc1cca0:	93 e1 00 84 	stw     r31,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);              
ffc1cca4:	55 2a 44 2e 	rlwinm  r10,r9,8,16,23                         
    *MSDOS_DIR_CRT_DATE(short_node) = CT_LE_W(date);                  
ffc1cca8:	54 c7 c2 3e 	rlwinm  r7,r6,24,8,31                          
ffc1ccac:	54 c9 44 2e 	rlwinm  r9,r6,8,16,23                          
ffc1ccb0:	7d 29 3b 78 	or      r9,r9,r7                               
    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);              
ffc1ccb4:	7d 4a 43 78 	or      r10,r10,r8                             
    *MSDOS_DIR_CRT_DATE(short_node) = CT_LE_W(date);                  
ffc1ccb8:	b1 21 00 78 	sth     r9,120(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);              
ffc1ccbc:	b1 41 00 76 	sth     r10,118(r1)                            
    *MSDOS_DIR_CRT_DATE(short_node) = CT_LE_W(date);                  
    *MSDOS_DIR_WRITE_TIME(short_node) = CT_LE_W(time_val);            
ffc1ccc0:	b1 41 00 7e 	sth     r10,126(r1)                            
    *MSDOS_DIR_WRITE_DATE(short_node) = CT_LE_W(date);                
ffc1ccc4:	b1 21 00 80 	sth     r9,128(r1)                             
    *MSDOS_DIR_LAST_ACCESS_DATE(short_node) = CT_LE_W(date);          
ffc1ccc8:	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) {                                    
ffc1cccc:	41 9e 00 74 	beq-    cr7,ffc1cd40 <msdos_creat_node+0x19c>  
      *MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_DIRECTORY;            
    }                                                                 
    else if (type == MSDOS_HARD_LINK) {                               
ffc1ccd0:	2f 9a 00 02 	cmpwi   cr7,r26,2                              
ffc1ccd4:	41 9e 02 a0 	beq-    cr7,ffc1cf74 <msdos_creat_node+0x3d0>  <== NEVER TAKEN
       * 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;            
ffc1ccd8:	89 21 00 73 	lbz     r9,115(r1)                             
ffc1ccdc:	61 29 00 20 	ori     r9,r9,32                               
ffc1cce0:	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,        
ffc1cce4:	7f c3 f3 78 	mr      r3,r30                                 
ffc1cce8:	38 80 00 01 	li      r4,1                                   
ffc1ccec:	7f 85 e3 78 	mr      r5,r28                                 
ffc1ccf0:	7f a6 eb 78 	mr      r6,r29                                 
ffc1ccf4:	7f 27 cb 78 	mr      r7,r25                                 
ffc1ccf8:	39 01 00 88 	addi    r8,r1,136                              
ffc1ccfc:	39 21 00 68 	addi    r9,r1,104                              
ffc1cd00:	48 00 1d 1d 	bl      ffc1ea1c <msdos_get_name_node>         
ffc1cd04:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
err:                                                                  
    /* mark the used 32bytes structure on the disk as free */         
    msdos_set_first_char4file_name(parent_loc->mt_entry, &dir_pos, 0xE5);
    return rc;                                                        
}                                                                     
ffc1cd08:	80 01 00 d4 	lwz     r0,212(r1)                             
ffc1cd0c:	7f e3 fb 78 	mr      r3,r31                                 
ffc1cd10:	82 e1 00 ac 	lwz     r23,172(r1)                            
ffc1cd14:	7c 08 03 a6 	mtlr    r0                                     
ffc1cd18:	83 01 00 b0 	lwz     r24,176(r1)                            
ffc1cd1c:	83 21 00 b4 	lwz     r25,180(r1)                            
ffc1cd20:	83 41 00 b8 	lwz     r26,184(r1)                            
ffc1cd24:	83 61 00 bc 	lwz     r27,188(r1)                            
ffc1cd28:	83 81 00 c0 	lwz     r28,192(r1)                            
ffc1cd2c:	83 a1 00 c4 	lwz     r29,196(r1)                            
ffc1cd30:	83 c1 00 c8 	lwz     r30,200(r1)                            
ffc1cd34:	83 e1 00 cc 	lwz     r31,204(r1)                            
ffc1cd38:	38 21 00 d0 	addi    r1,r1,208                              
ffc1cd3c:	4e 80 00 20 	blr                                            
                                                                      
    /* initialize directory/file size */                              
    *MSDOS_DIR_FILE_SIZE(short_node) = MSDOS_INIT_DIR_SIZE;           
                                                                      
    if (type == MSDOS_DIRECTORY) {                                    
      *MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_DIRECTORY;            
ffc1cd40:	89 41 00 73 	lbz     r10,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,        
ffc1cd44:	7f c3 f3 78 	mr      r3,r30                                 
ffc1cd48:	38 80 00 01 	li      r4,1                                   
                                                                      
    /* initialize directory/file size */                              
    *MSDOS_DIR_FILE_SIZE(short_node) = MSDOS_INIT_DIR_SIZE;           
                                                                      
    if (type == MSDOS_DIRECTORY) {                                    
      *MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_DIRECTORY;            
ffc1cd4c:	61 4a 00 10 	ori     r10,r10,16                             
                                                                      
    /*                                                                
     * 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,        
ffc1cd50:	7f 85 e3 78 	mr      r5,r28                                 
                                                                      
    /* initialize directory/file size */                              
    *MSDOS_DIR_FILE_SIZE(short_node) = MSDOS_INIT_DIR_SIZE;           
                                                                      
    if (type == MSDOS_DIRECTORY) {                                    
      *MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_DIRECTORY;            
ffc1cd54:	99 41 00 73 	stb     r10,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,        
ffc1cd58:	7f a6 eb 78 	mr      r6,r29                                 
ffc1cd5c:	7f 27 cb 78 	mr      r7,r25                                 
ffc1cd60:	39 01 00 88 	addi    r8,r1,136                              
ffc1cd64:	39 21 00 68 	addi    r9,r1,104                              
ffc1cd68:	48 00 1c b5 	bl      ffc1ea1c <msdos_get_name_node>         
                             name_type, &dir_pos, short_node);        
    if ( rc != RC_OK )                                                
ffc1cd6c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1cd70:	40 a2 ff 98 	bne-    ffc1cd08 <msdos_creat_node+0x164>      <== NEVER TAKEN
     * to do                                                          
     */                                                               
    if (type == MSDOS_DIRECTORY)                                      
    {                                                                 
        /* open new directory as fat-file */                          
        rc = fat_file_open(&fs_info->fat, &dir_pos, &fat_fd);         
ffc1cd74:	7f 63 db 78 	mr      r3,r27                                 
ffc1cd78:	38 81 00 88 	addi    r4,r1,136                              
ffc1cd7c:	38 a1 00 98 	addi    r5,r1,152                              
ffc1cd80:	4b ff 91 c9 	bl      ffc15f48 <fat_file_open>               
        if (rc != RC_OK)                                              
ffc1cd84:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1cd88:	40 82 01 a4 	bne-    ffc1cf2c <msdos_creat_node+0x388>      <== NEVER TAKEN
                                                                      
        /*                                                            
         * we opened fat-file for node we just created, so initialize fat-file
         * descritor                                                  
         */                                                           
        fat_fd->fat_file_size = 0;                                    
ffc1cd8c:	80 81 00 98 	lwz     r4,152(r1)                             
        fat_fd->fat_file_type = FAT_DIRECTORY;                        
        fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                    
ffc1cd90:	3d 20 00 20 	lis     r9,32                                  
                                                                      
        /*                                                            
         * we opened fat-file for node we just created, so initialize fat-file
         * descritor                                                  
         */                                                           
        fat_fd->fat_file_size = 0;                                    
ffc1cd94:	93 e4 00 18 	stw     r31,24(r4)                             
        fat_fd->fat_file_type = FAT_DIRECTORY;                        
ffc1cd98:	93 e4 00 10 	stw     r31,16(r4)                             
        fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                    
ffc1cd9c:	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,                    
ffc1cda0:	81 21 00 84 	lwz     r9,132(r1)                             
ffc1cda4:	80 e1 00 78 	lwz     r7,120(r1)                             
ffc1cda8:	81 01 00 7c 	lwz     r8,124(r1)                             
ffc1cdac:	81 41 00 80 	lwz     r10,128(r1)                            
ffc1cdb0:	81 61 00 68 	lwz     r11,104(r1)                            
ffc1cdb4:	80 61 00 6c 	lwz     r3,108(r1)                             
ffc1cdb8:	80 a1 00 70 	lwz     r5,112(r1)                             
ffc1cdbc:	80 c1 00 74 	lwz     r6,116(r1)                             
ffc1cdc0:	91 21 00 24 	stw     r9,36(r1)                              
               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);                    
        memcpy(DOTDOT_NODE_P(dot_dotdot), short_node,                 
ffc1cdc4:	91 21 00 44 	stw     r9,68(r1)                              
               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);                    
        memcpy(MSDOS_DIR_NAME(DOT_NODE_P(dot_dotdot)), MSDOS_DOT_NAME,
ffc1cdc8:	3d 20 00 00 	lis     r9,0                                   
                                                                      
        /*                                                            
         * dot and dotdot entries are identical to new node except the
         * names                                                      
         */                                                           
        memcpy(DOT_NODE_P(dot_dotdot), short_node,                    
ffc1cdcc:	91 61 00 08 	stw     r11,8(r1)                              
ffc1cdd0:	90 61 00 0c 	stw     r3,12(r1)                              
ffc1cdd4:	90 a1 00 10 	stw     r5,16(r1)                              
ffc1cdd8:	90 c1 00 14 	stw     r6,20(r1)                              
ffc1cddc:	90 e1 00 18 	stw     r7,24(r1)                              
ffc1cde0:	91 01 00 1c 	stw     r8,28(r1)                              
ffc1cde4:	91 41 00 20 	stw     r10,32(r1)                             
               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);                    
        memcpy(DOTDOT_NODE_P(dot_dotdot), short_node,                 
ffc1cde8:	91 61 00 28 	stw     r11,40(r1)                             
ffc1cdec:	90 61 00 2c 	stw     r3,44(r1)                              
ffc1cdf0:	90 a1 00 30 	stw     r5,48(r1)                              
ffc1cdf4:	90 c1 00 34 	stw     r6,52(r1)                              
ffc1cdf8:	90 e1 00 38 	stw     r7,56(r1)                              
ffc1cdfc:	91 01 00 3c 	stw     r8,60(r1)                              
ffc1ce00:	91 41 00 40 	stw     r10,64(r1)                             
               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);                    
        memcpy(MSDOS_DIR_NAME(DOT_NODE_P(dot_dotdot)), MSDOS_DOT_NAME,
ffc1ce04:	81 29 27 e4 	lwz     r9,10212(r9)                           
ffc1ce08:	80 e9 00 04 	lwz     r7,4(r9)                               
ffc1ce0c:	a1 09 00 08 	lhz     r8,8(r9)                               
ffc1ce10:	89 49 00 0a 	lbz     r10,10(r9)                             
ffc1ce14:	81 29 00 00 	lwz     r9,0(r9)                               
ffc1ce18:	91 21 00 08 	stw     r9,8(r1)                               
               MSDOS_NAME_MAX);                                       
        memcpy(MSDOS_DIR_NAME(DOTDOT_NODE_P(dot_dotdot)), MSDOS_DOTDOT_NAME,
ffc1ce1c:	3d 20 00 00 	lis     r9,0                                   
         */                                                           
        memcpy(DOT_NODE_P(dot_dotdot), short_node,                    
               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);                    
        memcpy(DOTDOT_NODE_P(dot_dotdot), short_node,                 
               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);                    
        memcpy(MSDOS_DIR_NAME(DOT_NODE_P(dot_dotdot)), MSDOS_DOT_NAME,
ffc1ce20:	90 e1 00 0c 	stw     r7,12(r1)                              
ffc1ce24:	b1 01 00 10 	sth     r8,16(r1)                              
ffc1ce28:	99 41 00 12 	stb     r10,18(r1)                             
               MSDOS_NAME_MAX);                                       
        memcpy(MSDOS_DIR_NAME(DOTDOT_NODE_P(dot_dotdot)), MSDOS_DOTDOT_NAME,
ffc1ce2c:	81 29 27 e0 	lwz     r9,10208(r9)                           
ffc1ce30:	80 e9 00 00 	lwz     r7,0(r9)                               
ffc1ce34:	81 09 00 04 	lwz     r8,4(r9)                               
ffc1ce38:	a1 49 00 08 	lhz     r10,8(r9)                              
ffc1ce3c:	89 29 00 0a 	lbz     r9,10(r9)                              
ffc1ce40:	90 e1 00 28 	stw     r7,40(r1)                              
ffc1ce44:	91 01 00 2c 	stw     r8,44(r1)                              
ffc1ce48:	b1 41 00 30 	sth     r10,48(r1)                             
ffc1ce4c:	99 21 00 32 	stb     r9,50(r1)                              
        /*                                                            
         * 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)) &&                    
ffc1ce50:	81 38 00 20 	lwz     r9,32(r24)                             
ffc1ce54:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc1ce58:	41 9e 01 c4 	beq-    cr7,ffc1d01c <msdos_creat_node+0x478>  
            *MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
        }                                                             
        else                                                          
        {                                                             
            *MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 
                CT_LE_W((uint16_t  )((parent_fat_fd->cln) & 0x0000FFFF));
ffc1ce5c:	81 38 00 1c 	lwz     r9,28(r24)                             
            *MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =  
                CT_LE_W((uint16_t  )(((parent_fat_fd->cln) & 0xFFFF0000)>>16));
ffc1ce60:	55 2a 84 3e 	rlwinm  r10,r9,16,16,31                        
            *MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
        }                                                             
        else                                                          
        {                                                             
            *MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 
                CT_LE_W((uint16_t  )((parent_fat_fd->cln) & 0x0000FFFF));
ffc1ce64:	55 27 42 2e 	rlwinm  r7,r9,8,8,23                           
            *MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =  
                CT_LE_W((uint16_t  )(((parent_fat_fd->cln) & 0xFFFF0000)>>16));
ffc1ce68:	55 48 40 2e 	rlwinm  r8,r10,8,0,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)) = 
ffc1ce6c:	55 29 c6 3e 	rlwinm  r9,r9,24,24,31                         
                CT_LE_W((uint16_t  )((parent_fat_fd->cln) & 0x0000FFFF));
            *MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =  
ffc1ce70:	55 4a c2 3e 	rlwinm  r10,r10,24,8,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)) = 
ffc1ce74:	7c e9 4b 78 	or      r9,r7,r9                               
                CT_LE_W((uint16_t  )((parent_fat_fd->cln) & 0x0000FFFF));
            *MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =  
ffc1ce78:	7d 0a 53 78 	or      r10,r8,r10                             
            *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)) = 
ffc1ce7c:	b1 21 00 42 	sth     r9,66(r1)                              
                CT_LE_W((uint16_t  )((parent_fat_fd->cln) & 0x0000FFFF));
            *MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) =  
ffc1ce80:	b1 41 00 3c 	sth     r10,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,                
ffc1ce84:	7f 63 db 78 	mr      r3,r27                                 
ffc1ce88:	38 a0 00 00 	li      r5,0                                   
ffc1ce8c:	38 c0 00 40 	li      r6,64                                  
ffc1ce90:	38 e1 00 08 	addi    r7,r1,8                                
ffc1ce94:	4b ff 9c 15 	bl      ffc16aa8 <fat_file_write>              
                             MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2,   
                             (uint8_t *)dot_dotdot);                  
        if (ret < 0)                                                  
ffc1ce98:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1ce9c:	41 9c 00 80 	blt-    cr7,ffc1cf1c <msdos_creat_node+0x378>  <== NEVER TAKEN
            rc = -1;                                                  
            goto error;                                               
        }                                                             
                                                                      
        /* increment fat-file size by cluster size */                 
        fat_fd->fat_file_size += fs_info->fat.vol.bpc;                
ffc1cea0:	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,                
ffc1cea4:	7f 63 db 78 	mr      r3,r27                                 
            rc = -1;                                                  
            goto error;                                               
        }                                                             
                                                                      
        /* increment fat-file size by cluster size */                 
        fat_fd->fat_file_size += fs_info->fat.vol.bpc;                
ffc1cea8:	a1 1b 00 06 	lhz     r8,6(r27)                              
                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,                
ffc1ceac:	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;                
ffc1ceb0:	81 44 00 18 	lwz     r10,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,                
ffc1ceb4:	38 c0 00 20 	li      r6,32                                  
        /* 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)) =        
                CT_LE_W((uint16_t  )((fat_fd->cln) & 0x0000FFFF));    
ffc1ceb8:	81 24 00 1c 	lwz     r9,28(r4)                              
            rc = -1;                                                  
            goto error;                                               
        }                                                             
                                                                      
        /* increment fat-file size by cluster size */                 
        fat_fd->fat_file_size += fs_info->fat.vol.bpc;                
ffc1cebc:	7d 0a 42 14 	add     r8,r10,r8                              
                                                                      
        /* 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)) =         
                CT_LE_W((uint16_t  )(((fat_fd->cln) & 0xFFFF0000) >> 16));
ffc1cec0:	55 2a 84 3e 	rlwinm  r10,r9,16,16,31                        
            rc = -1;                                                  
            goto error;                                               
        }                                                             
                                                                      
        /* increment fat-file size by cluster size */                 
        fat_fd->fat_file_size += fs_info->fat.vol.bpc;                
ffc1cec4:	91 04 00 18 	stw     r8,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));    
ffc1cec8:	55 27 42 2e 	rlwinm  r7,r9,8,8,23                           
        *MSDOS_DIR_FIRST_CLUSTER_HI(DOT_NODE_P(dot_dotdot)) =         
                CT_LE_W((uint16_t  )(((fat_fd->cln) & 0xFFFF0000) >> 16));
ffc1cecc:	55 48 40 2e 	rlwinm  r8,r10,8,0,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)) =        
ffc1ced0:	55 29 c6 3e 	rlwinm  r9,r9,24,24,31                         
                CT_LE_W((uint16_t  )((fat_fd->cln) & 0x0000FFFF));    
        *MSDOS_DIR_FIRST_CLUSTER_HI(DOT_NODE_P(dot_dotdot)) =         
ffc1ced4:	55 4a c2 3e 	rlwinm  r10,r10,24,8,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)) =        
ffc1ced8:	7c e9 4b 78 	or      r9,r7,r9                               
                CT_LE_W((uint16_t  )((fat_fd->cln) & 0x0000FFFF));    
        *MSDOS_DIR_FIRST_CLUSTER_HI(DOT_NODE_P(dot_dotdot)) =         
ffc1cedc:	7d 0a 53 78 	or      r10,r8,r10                             
                                                                      
        /* 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)) =        
ffc1cee0:	b1 21 00 22 	sth     r9,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));
                                                                      
        /* rewrite dot entry */                                       
        ret = fat_file_write(&fs_info->fat, fat_fd, 0,                
ffc1cee4:	38 e1 00 08 	addi    r7,r1,8                                
        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)) =         
ffc1cee8:	b1 41 00 1c 	sth     r10,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,                
ffc1ceec:	4b ff 9b bd 	bl      ffc16aa8 <fat_file_write>              
                             MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,       
                             (uint8_t *)DOT_NODE_P(dot_dotdot));      
        if (ret < 0)                                                  
ffc1cef0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1cef4:	41 9c 00 28 	blt-    cr7,ffc1cf1c <msdos_creat_node+0x378>  <== 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);
ffc1cef8:	80 7e 00 14 	lwz     r3,20(r30)                             
ffc1cefc:	80 81 00 98 	lwz     r4,152(r1)                             
ffc1cf00:	48 00 06 71 	bl      ffc1d570 <msdos_set_first_cluster_num> 
        if (rc != RC_OK)                                              
ffc1cf04:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1cf08:	40 a2 00 18 	bne+    ffc1cf20 <msdos_creat_node+0x37c>      <== NEVER TAKEN
            goto error;                                               
                                                                      
        fat_file_close(&fs_info->fat, fat_fd);                        
ffc1cf0c:	80 81 00 98 	lwz     r4,152(r1)                             
ffc1cf10:	7f 63 db 78 	mr      r3,r27                                 
ffc1cf14:	4b ff 97 01 	bl      ffc16614 <fat_file_close>              
ffc1cf18:	4b ff fd f0 	b       ffc1cd08 <msdos_creat_node+0x164>      
        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;                                                  
ffc1cf1c:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
        fat_file_close(&fs_info->fat, fat_fd);                        
    }                                                                 
    return RC_OK;                                                     
                                                                      
error:                                                                
    fat_file_close(&fs_info->fat, fat_fd);                            
ffc1cf20:	80 81 00 98 	lwz     r4,152(r1)                             <== NOT EXECUTED
ffc1cf24:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc1cf28:	4b ff 96 ed 	bl      ffc16614 <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);
ffc1cf2c:	80 7e 00 14 	lwz     r3,20(r30)                             <== NOT EXECUTED
ffc1cf30:	38 81 00 88 	addi    r4,r1,136                              <== NOT EXECUTED
ffc1cf34:	38 a0 00 e5 	li      r5,229                                 <== NOT EXECUTED
ffc1cf38:	48 00 07 f1 	bl      ffc1d728 <msdos_set_first_char4file_name><== NOT EXECUTED
    return rc;                                                        
}                                                                     
ffc1cf3c:	80 01 00 d4 	lwz     r0,212(r1)                             <== NOT EXECUTED
ffc1cf40:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1cf44:	82 e1 00 ac 	lwz     r23,172(r1)                            <== NOT EXECUTED
ffc1cf48:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc1cf4c:	83 01 00 b0 	lwz     r24,176(r1)                            <== NOT EXECUTED
ffc1cf50:	83 21 00 b4 	lwz     r25,180(r1)                            <== NOT EXECUTED
ffc1cf54:	83 41 00 b8 	lwz     r26,184(r1)                            <== NOT EXECUTED
ffc1cf58:	83 61 00 bc 	lwz     r27,188(r1)                            <== NOT EXECUTED
ffc1cf5c:	83 81 00 c0 	lwz     r28,192(r1)                            <== NOT EXECUTED
ffc1cf60:	83 a1 00 c4 	lwz     r29,196(r1)                            <== NOT EXECUTED
ffc1cf64:	83 c1 00 c8 	lwz     r30,200(r1)                            <== NOT EXECUTED
ffc1cf68:	83 e1 00 cc 	lwz     r31,204(r1)                            <== NOT EXECUTED
ffc1cf6c:	38 21 00 d0 	addi    r1,r1,208                              <== NOT EXECUTED
ffc1cf70:	4e 80 00 20 	blr                                            <== NOT EXECUTED
       * node to the newly created                                    
       */                                                             
      /*                                                              
       * read the original directory entry                            
       */                                                             
      sec = fat_cluster_num_to_sector_num(&fs_info->fat,              
ffc1cf74:	81 37 00 20 	lwz     r9,32(r23)                             <== 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)) )
ffc1cf78:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc1cf7c:	40 9e 00 10 	bne-    cr7,ffc1cf8c <msdos_creat_node+0x3e8>  <== NOT EXECUTED
ffc1cf80:	89 5b 00 0e 	lbz     r10,14(r27)                            <== NOT EXECUTED
ffc1cf84:	71 48 00 03 	andi.   r8,r10,3                               <== NOT EXECUTED
ffc1cf88:	40 82 00 8c 	bne-    ffc1d014 <msdos_creat_node+0x470>      <== NOT EXECUTED
        return fs_info->vol.rdir_loc;                                 
                                                                      
    return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +        
ffc1cf8c:	89 1b 00 05 	lbz     r8,5(r27)                              <== NOT EXECUTED
ffc1cf90:	38 89 ff fe 	addi    r4,r9,-2                               <== NOT EXECUTED
ffc1cf94:	81 5b 00 34 	lwz     r10,52(r27)                            <== NOT EXECUTED
ffc1cf98:	7c 84 40 30 	slw     r4,r4,r8                               <== NOT EXECUTED
ffc1cf9c:	7c 84 52 14 	add     r4,r4,r10                              <== NOT EXECUTED
                                          link_fd->dir_pos.sname.cln);
      sec += (link_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);
ffc1cfa0:	81 37 00 24 	lwz     r9,36(r23)                             <== NOT EXECUTED
      byte = (link_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
                                                                      
      ret = _fat_block_read(&fs_info->fat,                            
ffc1cfa4:	7f 63 db 78 	mr      r3,r27                                 <== 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);
ffc1cfa8:	89 5b 00 02 	lbz     r10,2(r27)                             <== NOT EXECUTED
      byte = (link_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
                                                                      
      ret = _fat_block_read(&fs_info->fat,                            
ffc1cfac:	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));
ffc1cfb0:	a0 bb 00 00 	lhz     r5,0(r27)                              <== NOT EXECUTED
                                                                      
      ret = _fat_block_read(&fs_info->fat,                            
ffc1cfb4:	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);
ffc1cfb8:	7d 2a 54 30 	srw     r10,r9,r10                             <== NOT EXECUTED
      byte = (link_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));
ffc1cfbc:	38 a5 ff ff 	addi    r5,r5,-1                               <== NOT EXECUTED
                                                                      
      ret = _fat_block_read(&fs_info->fat,                            
ffc1cfc0:	7c 84 52 14 	add     r4,r4,r10                              <== NOT EXECUTED
ffc1cfc4:	7c a5 48 38 	and     r5,r5,r9                               <== NOT EXECUTED
ffc1cfc8:	4b ff a2 89 	bl      ffc17250 <_fat_block_read>             <== NOT EXECUTED
                            sec, byte, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE,
                            link_node);                               
      if (ret < 0) {                                                  
ffc1cfcc:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1cfd0:	41 9c 00 9c 	blt-    cr7,ffc1d06c <msdos_creat_node+0x4c8>  <== 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);
ffc1cfd4:	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);
ffc1cfd8:	89 41 00 53 	lbz     r10,83(r1)                             <== NOT EXECUTED
      *MSDOS_DIR_CRT_TIME_TENTH(short_node)=*MSDOS_DIR_CRT_TIME_TENTH(link_node);
ffc1cfdc:	99 21 00 75 	stb     r9,117(r1)                             <== NOT EXECUTED
      *MSDOS_DIR_FIRST_CLUSTER_HI(short_node) =                       
           *MSDOS_DIR_FIRST_CLUSTER_HI(link_node);                    
      /*                                                              
       * set "archive bit" due to changes                             
       */                                                             
      *MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;              
ffc1cfe0:	61 4a 00 20 	ori     r10,r10,32                             <== 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);
      *MSDOS_DIR_CRT_TIME(short_node)      =*MSDOS_DIR_CRT_TIME(link_node);
ffc1cfe4:	a1 21 00 56 	lhz     r9,86(r1)                              <== NOT EXECUTED
      *MSDOS_DIR_FIRST_CLUSTER_HI(short_node) =                       
           *MSDOS_DIR_FIRST_CLUSTER_HI(link_node);                    
      /*                                                              
       * set "archive bit" due to changes                             
       */                                                             
      *MSDOS_DIR_ATTR(short_node) |= MSDOS_ATTR_ARCHIVE;              
ffc1cfe8:	99 41 00 73 	stb     r10,115(r1)                            <== 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);
      *MSDOS_DIR_CRT_TIME(short_node)      =*MSDOS_DIR_CRT_TIME(link_node);
ffc1cfec:	b1 21 00 76 	sth     r9,118(r1)                             <== NOT EXECUTED
      *MSDOS_DIR_CRT_DATE(short_node)      =*MSDOS_DIR_CRT_DATE(link_node);
ffc1cff0:	a1 21 00 58 	lhz     r9,88(r1)                              <== NOT EXECUTED
ffc1cff4:	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);
ffc1cff8:	81 21 00 64 	lwz     r9,100(r1)                             <== NOT EXECUTED
ffc1cffc:	91 21 00 84 	stw     r9,132(r1)                             <== NOT EXECUTED
                                                                      
      *MSDOS_DIR_FIRST_CLUSTER_LOW(short_node) =                      
ffc1d000:	a1 21 00 62 	lhz     r9,98(r1)                              <== NOT EXECUTED
ffc1d004:	b1 21 00 82 	sth     r9,130(r1)                             <== NOT EXECUTED
           *MSDOS_DIR_FIRST_CLUSTER_LOW(link_node);                   
      *MSDOS_DIR_FIRST_CLUSTER_HI(short_node) =                       
ffc1d008:	a1 21 00 5c 	lhz     r9,92(r1)                              <== NOT EXECUTED
ffc1d00c:	b1 21 00 7c 	sth     r9,124(r1)                             <== NOT EXECUTED
ffc1d010:	4b ff fc d4 	b       ffc1cce4 <msdos_creat_node+0x140>      <== NOT EXECUTED
    const fat_fs_info_t *fs_info,                                     
    uint32_t             cln                                          
    )                                                                 
{                                                                     
    if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
        return fs_info->vol.rdir_loc;                                 
ffc1d014:	80 9b 00 20 	lwz     r4,32(r27)                             <== NOT EXECUTED
ffc1d018:	4b ff ff 88 	b       ffc1cfa0 <msdos_creat_node+0x3fc>      <== NOT EXECUTED
        /*                                                            
         * 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)) &&                    
ffc1d01c:	81 38 00 24 	lwz     r9,36(r24)                             
ffc1d020:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1d024:	40 be fe 38 	bne-    cr7,ffc1ce5c <msdos_creat_node+0x2b8>  <== NEVER TAKEN
            (fs_info->fat.vol.type & FAT_FAT32))                      
ffc1d028:	89 5b 00 0e 	lbz     r10,14(r27)                            
        /*                                                            
         * 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)) &&                    
ffc1d02c:	55 4a 07 7a 	rlwinm  r10,r10,0,29,29                        
ffc1d030:	71 48 00 ff 	andi.   r8,r10,255                             
ffc1d034:	41 a2 fe 28 	beq-    ffc1ce5c <msdos_creat_node+0x2b8>      <== ALWAYS TAKEN
            (fs_info->fat.vol.type & FAT_FAT32))                      
        {                                                             
            *MSDOS_DIR_FIRST_CLUSTER_LOW(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
ffc1d038:	b1 21 00 42 	sth     r9,66(r1)                              <== NOT EXECUTED
            *MSDOS_DIR_FIRST_CLUSTER_HI(DOTDOT_NODE_P(dot_dotdot)) = 0x0000;
ffc1d03c:	b1 21 00 3c 	sth     r9,60(r1)                              <== NOT EXECUTED
ffc1d040:	4b ff fe 44 	b       ffc1ce84 <msdos_creat_node+0x2e0>      <== NOT EXECUTED
                                                                      
    memset(short_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);         
    memset(dot_dotdot, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE * 2);     
                                                                      
    if (name_len > MSDOS_NAME_MAX_LFN_WITH_DOT) {                     
        rtems_set_errno_and_return_minus_one(ENAMETOOLONG);           
ffc1d044:	48 00 46 59 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc1d048:	39 20 00 5b 	li      r9,91                                  <== NOT EXECUTED
ffc1d04c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1d050:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
ffc1d054:	4b ff fc b4 	b       ffc1cd08 <msdos_creat_node+0x164>      <== NOT EXECUTED
                                                                      
    name_type = msdos_long_to_short (name, name_len,                  
                                     MSDOS_DIR_NAME(short_node),      
                                     MSDOS_NAME_MAX);                 
    if (name_type == MSDOS_NAME_INVALID) {                            
        rtems_set_errno_and_return_minus_one(EINVAL);                 
ffc1d058:	48 00 46 45 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc1d05c:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc1d060:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1d064:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
ffc1d068:	4b ff fc a0 	b       ffc1cd08 <msdos_creat_node+0x164>      <== NOT EXECUTED
    *MSDOS_DIR_NT_RES(short_node) = MSDOS_RES_NT_VALUE;               
                                                                      
    /* set up last write date and time */                             
    time_ret = time(NULL);                                            
    if ( time_ret == -1 )                                             
        return -1;                                                    
ffc1d06c:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
ffc1d070:	4b ff fc 98 	b       ffc1cd08 <msdos_creat_node+0x164>      <== NOT EXECUTED
                                                                      

ffc205b0 <msdos_date_dos2unix>: + ((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) {
ffc205b0:	3c c0 00 00 	lis     r6,0                                   
ffc205b4:	38 c6 2a ec 	addi    r6,r6,10988                            
ffc205b8:	a1 26 00 0c 	lhz     r9,12(r6)                              
	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;   
ffc205bc:	54 88 ae fe 	rlwinm  r8,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  
ffc205c0:	54 8a de be 	rlwinm  r10,r4,27,26,31                        
	    + ((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) {                                             
ffc205c4:	7f 89 18 00 	cmpw    cr7,r9,r3                              
	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;   
ffc205c8:	1d 08 07 08 	mulli   r8,r8,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  
ffc205cc:	1d 4a 00 1e 	mulli   r10,r10,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)
ffc205d0:	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;   
ffc205d4:	7d 48 52 14 	add     r10,r8,r10                             
ffc205d8:	7c 8a 22 14 	add     r4,r10,r4                              
	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)
ffc205dc:	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) {                                             
ffc205e0:	41 9e 00 d0 	beq-    cr7,ffc206b0 <msdos_date_dos2unix+0x100>
		lastdosdate = dd;                                                   
		days = 0;                                                           
		year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;            
		for (y = 0; y < year; y++)                                          
ffc205e4:	54 67 be 7f 	rlwinm. r7,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;                                                   
ffc205e8:	b0 66 00 0c 	sth     r3,12(r6)                              
		days = 0;                                                           
		year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;            
		for (y = 0; y < year; y++)                                          
ffc205ec:	39 20 00 00 	li      r9,0                                   
ffc205f0:	39 40 00 00 	li      r10,0                                  
ffc205f4:	39 00 01 6e 	li      r8,366                                 
ffc205f8:	41 82 00 c4 	beq-    ffc206bc <msdos_date_dos2unix+0x10c>   <== NEVER TAKEN
ffc205fc:	7c e9 03 a6 	mtctr   r7                                     
ffc20600:	48 00 00 10 	b       ffc20610 <msdos_date_dos2unix+0x60>    
			days += y & 0x03 ? 365 : 366;                                      
ffc20604:	7d 00 00 26 	mfcr    r8                                     
ffc20608:	55 08 1f fe 	rlwinm  r8,r8,3,31,31                          
ffc2060c:	39 08 01 6d 	addi    r8,r8,365                              
	 */                                                                  
	if (lastdosdate != dd) {                                             
		lastdosdate = dd;                                                   
		days = 0;                                                           
		year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;            
		for (y = 0; y < year; y++)                                          
ffc20610:	39 4a 00 01 	addi    r10,r10,1                              
			days += y & 0x03 ? 365 : 366;                                      
ffc20614:	7d 29 42 14 	add     r9,r9,r8                               
ffc20618:	71 48 00 03 	andi.   r8,r10,3                               
	 */                                                                  
	if (lastdosdate != dd) {                                             
		lastdosdate = dd;                                                   
		days = 0;                                                           
		year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;            
		for (y = 0; y < year; y++)                                          
ffc2061c:	42 00 ff e8 	bdnz+   ffc20604 <msdos_date_dos2unix+0x54>    
			days += y & 0x03 ? 365 : 366;                                      
		months = year & 0x03 ? regyear : leapyear;                          
ffc20620:	3c e0 00 00 	lis     r7,0                                   
ffc20624:	38 e7 22 ac 	addi    r7,r7,8876                             
ffc20628:	41 82 00 78 	beq-    ffc206a0 <msdos_date_dos2unix+0xf0>    <== ALWAYS TAKEN
		/*                                                                  
		 * Prevent going from 0 to 0xffffffff in the following              
		 * loop.                                                            
		 */                                                                 
		month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;         
		if (month == 0) {                                                   
ffc2062c:	54 6a df 3f 	rlwinm. r10,r3,27,28,31                        <== NOT EXECUTED
ffc20630:	41 82 00 34 	beq-    ffc20664 <msdos_date_dos2unix+0xb4>    <== NOT EXECUTED
			month = 1;                                                         
		}                                                                   
		for (m = 0; m < month - 1; m++)                                     
ffc20634:	2f 8a 00 01 	cmpwi   cr7,r10,1                              
ffc20638:	41 9e 00 2c 	beq-    cr7,ffc20664 <msdos_date_dos2unix+0xb4><== ALWAYS TAKEN
 * 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)                 
ffc2063c:	55 48 08 3c 	rlwinm  r8,r10,1,0,30                          <== NOT EXECUTED
ffc20640:	39 08 ff fc 	addi    r8,r8,-4                               <== NOT EXECUTED
ffc20644:	55 08 f8 7e 	rlwinm  r8,r8,31,1,31                          <== NOT EXECUTED
ffc20648:	39 08 00 01 	addi    r8,r8,1                                <== NOT EXECUTED
ffc2064c:	7d 09 03 a6 	mtctr   r8                                     <== NOT EXECUTED
ffc20650:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
		month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;         
		if (month == 0) {                                                   
			month = 1;                                                         
		}                                                                   
		for (m = 0; m < month - 1; m++)                                     
			days += months[m];                                                 
ffc20654:	7d 07 52 2e 	lhzx    r8,r7,r10                              <== NOT EXECUTED
ffc20658:	39 4a 00 02 	addi    r10,r10,2                              <== NOT EXECUTED
ffc2065c:	7d 29 42 14 	add     r9,r9,r8                               <== NOT EXECUTED
		 */                                                                 
		month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;         
		if (month == 0) {                                                   
			month = 1;                                                         
		}                                                                   
		for (m = 0; m < month - 1; m++)                                     
ffc20660:	42 00 ff f4 	bdnz+   ffc20654 <msdos_date_dos2unix+0xa4>    <== NOT EXECUTED
			days += months[m];                                                 
		days += ((dd & MSDOS_DD_DAY_MASK) >> MSDOS_DD_DAY_SHIFT) - 1;       
ffc20664:	54 63 06 fe 	clrlwi  r3,r3,27                               
ffc20668:	38 63 ff ff 	addi    r3,r3,-1                               
ffc2066c:	7d 23 4a 14 	add     r9,r3,r9                               
		lastseconds = (days + DAYSTO1980) * SECONDSPERDAY;                  
ffc20670:	55 2a 38 30 	rlwinm  r10,r9,7,0,24                          
ffc20674:	55 29 48 2c 	rlwinm  r9,r9,9,0,22                           
ffc20678:	7d 2a 48 50 	subf    r9,r10,r9                              
ffc2067c:	55 2a 20 36 	rlwinm  r10,r9,4,0,27                          
ffc20680:	7d 29 50 50 	subf    r9,r9,r10                              
ffc20684:	55 2a 20 36 	rlwinm  r10,r9,4,0,27                          
ffc20688:	7d 29 50 50 	subf    r9,r9,r10                              
ffc2068c:	3d 29 12 cf 	addis   r9,r9,4815                             
ffc20690:	38 69 a6 00 	addi    r3,r9,-23040                           
ffc20694:	90 66 00 10 	stw     r3,16(r6)                              
	}                                                                    
	return seconds + lastseconds;                                        
}                                                                     
ffc20698:	7c 63 22 14 	add     r3,r3,r4                               
ffc2069c:	4e 80 00 20 	blr                                            
		/*                                                                  
		 * Prevent going from 0 to 0xffffffff in the following              
		 * loop.                                                            
		 */                                                                 
		month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;         
		if (month == 0) {                                                   
ffc206a0:	54 6a df 3f 	rlwinm. r10,r3,27,28,31                        
		lastdosdate = dd;                                                   
		days = 0;                                                           
		year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;            
		for (y = 0; y < year; y++)                                          
			days += y & 0x03 ? 365 : 366;                                      
		months = year & 0x03 ? regyear : leapyear;                          
ffc206a4:	38 e7 00 18 	addi    r7,r7,24                               
		/*                                                                  
		 * Prevent going from 0 to 0xffffffff in the following              
		 * loop.                                                            
		 */                                                                 
		month = (dd & MSDOS_DD_MONTH_MASK) >> MSDOS_DD_MONTH_SHIFT;         
		if (month == 0) {                                                   
ffc206a8:	41 a2 ff bc 	beq-    ffc20664 <msdos_date_dos2unix+0xb4>    <== NEVER TAKEN
ffc206ac:	4b ff ff 88 	b       ffc20634 <msdos_date_dos2unix+0x84>    
ffc206b0:	80 66 00 10 	lwz     r3,16(r6)                              
			days += months[m];                                                 
		days += ((dd & MSDOS_DD_DAY_MASK) >> MSDOS_DD_DAY_SHIFT) - 1;       
		lastseconds = (days + DAYSTO1980) * SECONDSPERDAY;                  
	}                                                                    
	return seconds + lastseconds;                                        
}                                                                     
ffc206b4:	7c 63 22 14 	add     r3,r3,r4                               
ffc206b8:	4e 80 00 20 	blr                                            
		lastdosdate = dd;                                                   
		days = 0;                                                           
		year = (dd & MSDOS_DD_YEAR_MASK) >> MSDOS_DD_YEAR_SHIFT;            
		for (y = 0; y < year; y++)                                          
			days += y & 0x03 ? 365 : 366;                                      
		months = year & 0x03 ? regyear : leapyear;                          
ffc206bc:	3c e0 00 00 	lis     r7,0                                   <== NOT EXECUTED
ffc206c0:	38 e7 22 ac 	addi    r7,r7,8876                             <== NOT EXECUTED
ffc206c4:	38 e7 00 18 	addi    r7,r7,24                               <== NOT EXECUTED
ffc206c8:	4b ff ff 64 	b       ffc2062c <msdos_date_dos2unix+0x7c>    <== NOT EXECUTED
                                                                      

ffc2043c <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) {
ffc2043c:	3d 20 00 00 	lis     r9,0                                   
ffc20440:	81 49 2a ec 	lwz     r10,10988(r9)                          
ffc20444:	39 69 2a ec 	addi    r11,r9,10988                           
ffc20448:	7f 8a 18 00 	cmpw    cr7,r10,r3                             
ffc2044c:	41 9e 01 40 	beq-    cr7,ffc2058c <msdos_date_unix2dos+0x150>
		lasttime = t;                                                       
		lastdtime = (((t % 60) >> 1) << MSDOS_DT_2SECONDS_SHIFT)            
		    + (((t / 60) % 60) << MSDOS_DT_MINUTES_SHIFT)                   
ffc20450:	3c e0 88 88 	lis     r7,-30584                              
	/*                                                                   
	 * 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;                                                       
ffc20454:	90 69 2a ec 	stw     r3,10988(r9)                           
		lastdtime = (((t % 60) >> 1) << MSDOS_DT_2SECONDS_SHIFT)            
		    + (((t / 60) % 60) << MSDOS_DT_MINUTES_SHIFT)                   
		    + (((t / 3600) % 24) << MSDOS_DT_HOURS_SHIFT);                  
ffc20458:	3d 00 91 a2 	lis     r8,-28254                              
	 * 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)                   
ffc2045c:	60 e7 88 89 	ori     r7,r7,34953                            
		 * 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);                                         
		if (days != lastday) {                                              
ffc20460:	80 cb 00 08 	lwz     r6,8(r11)                              
	 */                                                                  
	if (lasttime != t) {                                                 
		lasttime = t;                                                       
		lastdtime = (((t % 60) >> 1) << MSDOS_DT_2SECONDS_SHIFT)            
		    + (((t / 60) % 60) << MSDOS_DT_MINUTES_SHIFT)                   
		    + (((t / 3600) % 24) << MSDOS_DT_HOURS_SHIFT);                  
ffc20464:	61 08 b3 c5 	ori     r8,r8,46021                            
	 * 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)                   
ffc20468:	7d 43 38 16 	mulhwu  r10,r3,r7                              
		    + (((t / 3600) % 24) << MSDOS_DT_HOURS_SHIFT);                  
ffc2046c:	7d 03 40 16 	mulhwu  r8,r3,r8                               
ffc20470:	3d 80 aa aa 	lis     r12,-21846                             
	 * 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)                   
ffc20474:	55 4a d9 7e 	rlwinm  r10,r10,27,5,31                        
		    + (((t / 3600) % 24) << MSDOS_DT_HOURS_SHIFT);                  
ffc20478:	55 08 aa fe 	rlwinm  r8,r8,21,11,31                         
ffc2047c:	61 8c aa ab 	ori     r12,r12,43691                          
	 * 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)                   
ffc20480:	7c ea 38 16 	mulhwu  r7,r10,r7                              
		    + (((t / 3600) % 24) << MSDOS_DT_HOURS_SHIFT);                  
ffc20484:	7d 88 60 16 	mulhwu  r12,r8,r12                             
		/*                                                                  
		 * 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);                                         
ffc20488:	3d 20 c2 2e 	lis     r9,-15826                              
ffc2048c:	61 29 45 07 	ori     r9,r9,17671                            
ffc20490:	7d 23 48 16 	mulhwu  r9,r3,r9                               
	 * 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)                   
ffc20494:	54 e7 d9 7e 	rlwinm  r7,r7,27,5,31                          
		    + (((t / 3600) % 24) << MSDOS_DT_HOURS_SHIFT);                  
ffc20498:	55 8c e1 3e 	rlwinm  r12,r12,28,4,31                        
	 * 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)                   
ffc2049c:	1c e7 00 3c 	mulli   r7,r7,60                               
		    + (((t / 3600) % 24) << MSDOS_DT_HOURS_SHIFT);                  
ffc204a0:	1d 8c 00 18 	mulli   r12,r12,24                             
	 * 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)            
ffc204a4:	1c 0a 00 3c 	mulli   r0,r10,60                              
		/*                                                                  
		 * 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);                                         
ffc204a8:	55 29 84 3e 	rlwinm  r9,r9,16,16,31                         
	 * 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)                   
ffc204ac:	7d 47 50 50 	subf    r10,r7,r10                             
		    + (((t / 3600) % 24) << MSDOS_DT_HOURS_SHIFT);                  
ffc204b0:	7d 0c 40 50 	subf    r8,r12,r8                              
		 * 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);                                         
		if (days != lastday) {                                              
ffc204b4:	7f 89 30 00 	cmpw    cr7,r9,r6                              
	 * 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)            
ffc204b8:	55 4a 28 34 	rlwinm  r10,r10,5,0,26                         
ffc204bc:	55 08 58 28 	rlwinm  r8,r8,11,0,20                          
ffc204c0:	7c 60 18 50 	subf    r3,r0,r3                               
ffc204c4:	7d 4a 42 14 	add     r10,r10,r8                             
ffc204c8:	54 63 f8 7e 	rlwinm  r3,r3,31,1,31                          
ffc204cc:	7c 6a 1a 14 	add     r3,r10,r3                              
ffc204d0:	54 63 04 3e 	clrlwi  r3,r3,16                               
ffc204d4:	b0 6b 00 04 	sth     r3,4(r11)                              
		 * 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);                                         
		if (days != lastday) {                                              
ffc204d8:	41 9e 00 c8 	beq-    cr7,ffc205a0 <msdos_date_unix2dos+0x164>
			lastday = days;                                                    
ffc204dc:	91 2b 00 08 	stw     r9,8(r11)                              
			for (year = 1970;; year++) {                                       
ffc204e0:	39 40 07 b2 	li      r10,1970                               
ffc204e4:	48 00 00 0c 	b       ffc204f0 <msdos_date_unix2dos+0xb4>    
				inc = year & 0x03 ? 365 : 366;                                    
				if (days < inc)                                                   
					break;                                                           
				days -= inc;                                                      
ffc204e8:	7d 28 48 50 	subf    r9,r8,r9                               
		 * and month stuff.                                                 
		 */                                                                 
		days = t / (SECONDSPERDAY);                                         
		if (days != lastday) {                                              
			lastday = days;                                                    
			for (year = 1970;; year++) {                                       
ffc204ec:	39 4a 00 01 	addi    r10,r10,1                              
				inc = year & 0x03 ? 365 : 366;                                    
ffc204f0:	71 48 00 03 	andi.   r8,r10,3                               
ffc204f4:	7d 00 00 26 	mfcr    r8                                     
ffc204f8:	55 08 1f fe 	rlwinm  r8,r8,3,31,31                          
ffc204fc:	39 08 01 6d 	addi    r8,r8,365                              
				if (days < inc)                                                   
ffc20500:	7f 89 40 40 	cmplw   cr7,r9,r8                              
ffc20504:	40 9c ff e4 	bge+    cr7,ffc204e8 <msdos_date_unix2dos+0xac>
					break;                                                           
				days -= inc;                                                      
			}                                                                  
			months = year & 0x03 ? regyear : leapyear;                         
ffc20508:	3c e0 00 00 	lis     r7,0                                   
ffc2050c:	38 e7 22 ac 	addi    r7,r7,8876                             
ffc20510:	41 82 00 64 	beq-    ffc20574 <msdos_date_unix2dos+0x138>   <== ALWAYS TAKEN
			for (month = 0; month < 12; month++) {                             
ffc20514:	39 00 00 0c 	li      r8,12                                  
ffc20518:	7d 09 03 a6 	mtctr   r8                                     
/*                                                                    
 * 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,                    
ffc2051c:	38 e7 ff fe 	addi    r7,r7,-2                               
				if (days < inc)                                                   
					break;                                                           
				days -= inc;                                                      
			}                                                                  
			months = year & 0x03 ? regyear : leapyear;                         
			for (month = 0; month < 12; month++) {                             
ffc20520:	38 c0 00 00 	li      r6,0                                   
				if (days < months[month])                                         
ffc20524:	a5 07 00 02 	lhzu    r8,2(r7)                               
ffc20528:	7f 88 48 40 	cmplw   cr7,r8,r9                              
ffc2052c:	41 9d 00 50 	bgt-    cr7,ffc2057c <msdos_date_unix2dos+0x140><== ALWAYS TAKEN
					break;                                                           
				days -= months[month];                                            
ffc20530:	7d 28 48 50 	subf    r9,r8,r9                               <== NOT EXECUTED
				if (days < inc)                                                   
					break;                                                           
				days -= inc;                                                      
			}                                                                  
			months = year & 0x03 ? regyear : leapyear;                         
			for (month = 0; month < 12; month++) {                             
ffc20534:	38 c6 00 01 	addi    r6,r6,1                                <== NOT EXECUTED
ffc20538:	42 00 ff ec 	bdnz+   ffc20524 <msdos_date_unix2dos+0xe8>    <== NOT EXECUTED
ffc2053c:	39 00 01 a0 	li      r8,416                                 <== 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)                                                   
ffc20540:	2b 8a 07 bc 	cmplwi  cr7,r10,1980                           
			for (month = 0; month < 12; month++) {                             
				if (days < months[month])                                         
					break;                                                           
				days -= months[month];                                            
			}                                                                  
			lastddate = ((days + 1) << MSDOS_DD_DAY_SHIFT)                     
ffc20544:	39 08 00 01 	addi    r8,r8,1                                
ffc20548:	7d 28 4a 14 	add     r9,r8,r9                               
ffc2054c:	55 29 04 3e 	clrlwi  r9,r9,16                               
			 * 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)                                                   
ffc20550:	40 9d 00 14 	ble-    cr7,ffc20564 <msdos_date_unix2dos+0x128><== NEVER TAKEN
				lastddate += (year - 1980) <<                                     
ffc20554:	39 4a f8 44 	addi    r10,r10,-1980                          
ffc20558:	55 4a 48 2c 	rlwinm  r10,r10,9,0,22                         
ffc2055c:	7d 29 52 14 	add     r9,r9,r10                              
ffc20560:	55 29 04 3e 	clrlwi  r9,r9,16                               
				             MSDOS_DD_YEAR_SHIFT;                                 
		}                                                                   
	}                                                                    
	*dtp = lastdtime;                                                    
ffc20564:	b0 65 00 00 	sth     r3,0(r5)                               
			 * unix's is relative to 1970.  If somehow we get a                
			 * time before 1980 then don't give totally crazy                  
			 * results.                                                        
			 */                                                                
			if (year > 1980)                                                   
				lastddate += (year - 1980) <<                                     
ffc20568:	b1 2b 00 06 	sth     r9,6(r11)                              
				             MSDOS_DD_YEAR_SHIFT;                                 
		}                                                                   
	}                                                                    
	*dtp = lastdtime;                                                    
	*ddp = lastddate;                                                    
ffc2056c:	b1 24 00 00 	sth     r9,0(r4)                               
ffc20570:	4e 80 00 20 	blr                                            
				inc = year & 0x03 ? 365 : 366;                                    
				if (days < inc)                                                   
					break;                                                           
				days -= inc;                                                      
			}                                                                  
			months = year & 0x03 ? regyear : leapyear;                         
ffc20574:	38 e7 00 18 	addi    r7,r7,24                               
ffc20578:	4b ff ff 9c 	b       ffc20514 <msdos_date_unix2dos+0xd8>    
ffc2057c:	54 c8 04 3e 	clrlwi  r8,r6,16                               
ffc20580:	39 08 00 01 	addi    r8,r8,1                                
ffc20584:	55 08 2c 34 	rlwinm  r8,r8,5,16,26                          
ffc20588:	4b ff ff b8 	b       ffc20540 <msdos_date_unix2dos+0x104>   
ffc2058c:	a0 6b 00 04 	lhz     r3,4(r11)                              
ffc20590:	a1 2b 00 06 	lhz     r9,6(r11)                              
			if (year > 1980)                                                   
				lastddate += (year - 1980) <<                                     
				             MSDOS_DD_YEAR_SHIFT;                                 
		}                                                                   
	}                                                                    
	*dtp = lastdtime;                                                    
ffc20594:	b0 65 00 00 	sth     r3,0(r5)                               
	*ddp = lastddate;                                                    
ffc20598:	b1 24 00 00 	sth     r9,0(r4)                               
ffc2059c:	4e 80 00 20 	blr                                            
ffc205a0:	a1 2b 00 06 	lhz     r9,6(r11)                              
			if (year > 1980)                                                   
				lastddate += (year - 1980) <<                                     
				             MSDOS_DD_YEAR_SHIFT;                                 
		}                                                                   
	}                                                                    
	*dtp = lastdtime;                                                    
ffc205a4:	b0 65 00 00 	sth     r3,0(r5)                               
	*ddp = lastddate;                                                    
ffc205a8:	b1 24 00 00 	sth     r9,0(r4)                               
ffc205ac:	4e 80 00 20 	blr                                            
                                                                      

ffc1d8f8 <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 ) {
ffc1d8f8:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc1d8fc:	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;                                                 
ffc1d900:	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                     
    )                                                                 
{                                                                     
ffc1d904:	90 01 00 3c 	stw     r0,60(r1)                              
ffc1d908:	93 61 00 24 	stw     r27,36(r1)                             
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
ffc1d90c:	83 63 00 08 	lwz     r27,8(r3)                              
msdos_dir_is_empty(                                                   
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    fat_file_fd_t                        *fat_fd,                     
    bool                                 *ret_val                     
    )                                                                 
{                                                                     
ffc1d910:	92 a1 00 0c 	stw     r21,12(r1)                             
ffc1d914:	7c 95 23 78 	mr      r21,r4                                 
ffc1d918:	92 c1 00 10 	stw     r22,16(r1)                             
ffc1d91c:	7c b6 2b 78 	mr      r22,r5                                 
ffc1d920:	92 e1 00 14 	stw     r23,20(r1)                             
                 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) ||               
                (strncmp(MSDOS_DIR_NAME((entry)),                     
ffc1d924:	3e e0 ff c3 	lis     r23,-61                                
ffc1d928:	3a f7 21 cc 	addi    r23,r23,8652                           
msdos_dir_is_empty(                                                   
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    fat_file_fd_t                        *fat_fd,                     
    bool                                 *ret_val                     
    )                                                                 
{                                                                     
ffc1d92c:	93 01 00 18 	stw     r24,24(r1)                             
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    uint32_t         j = 0, i = 0;                                    
ffc1d930:	3b 00 00 00 	li      r24,0                                  
msdos_dir_is_empty(                                                   
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    fat_file_fd_t                        *fat_fd,                     
    bool                                 *ret_val                     
    )                                                                 
{                                                                     
ffc1d934:	93 21 00 1c 	stw     r25,28(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,     
ffc1d938:	3f 20 ff c3 	lis     r25,-61                                
ffc1d93c:	3b 39 21 c0 	addi    r25,r25,8640                           
msdos_dir_is_empty(                                                   
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    fat_file_fd_t                        *fat_fd,                     
    bool                                 *ret_val                     
    )                                                                 
{                                                                     
ffc1d940:	93 41 00 20 	stw     r26,32(r1)                             
ffc1d944:	93 81 00 28 	stw     r28,40(r1)                             
ffc1d948:	93 a1 00 2c 	stw     r29,44(r1)                             
ffc1d94c:	93 c1 00 30 	stw     r30,48(r1)                             
ffc1d950:	93 e1 00 34 	stw     r31,52(r1)                             
ffc1d954:	a3 9b 00 00 	lhz     r28,0(r27)                             
    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;                                                 
ffc1d958:	99 25 00 00 	stb     r9,0(r5)                               
ffc1d95c:	83 5b 00 a0 	lwz     r26,160(r27)                           
                                                                      
    while ((ret = fat_file_read(&fs_info->fat, fat_fd, j * fs_info->fat.vol.bps,
ffc1d960:	7c bc c1 d6 	mullw   r5,r28,r24                             
ffc1d964:	7f 63 db 78 	mr      r3,r27                                 
ffc1d968:	7e a4 ab 78 	mr      r4,r21                                 
ffc1d96c:	7f 86 e3 78 	mr      r6,r28                                 
ffc1d970:	7f 47 d3 78 	mr      r7,r26                                 
ffc1d974:	4b ff 88 ed 	bl      ffc16260 <fat_file_read>               
ffc1d978:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1d97c:	41 82 00 e8 	beq-    ffc1da64 <msdos_dir_is_empty+0x16c>    <== NEVER TAKEN
                                  fs_info->fat.vol.bps,               
                                  fs_info->cl_buf)) != FAT_EOF)       
    {                                                                 
        if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)                  
ffc1d980:	2f 83 00 1f 	cmpwi   cr7,r3,31                              
ffc1d984:	40 9d 00 f0 	ble-    cr7,ffc1da74 <msdos_dir_is_empty+0x17c><== NEVER TAKEN
            return -1;                                                
                                                                      
        assert(ret == fs_info->fat.vol.bps);                          
ffc1d988:	a3 9b 00 00 	lhz     r28,0(r27)                             
ffc1d98c:	7f 9c 18 00 	cmpw    cr7,r28,r3                             
ffc1d990:	40 9e 00 ec 	bne-    cr7,ffc1da7c <msdos_dir_is_empty+0x184><== NEVER TAKEN
                                                                      
        /* have to look at the DIR_NAME as "raw" 8-bit data */        
        for (i = 0;                                                   
ffc1d994:	41 82 00 c4 	beq-    ffc1da58 <msdos_dir_is_empty+0x160>    <== NEVER TAKEN
ffc1d998:	83 5b 00 a0 	lwz     r26,160(r27)                           
ffc1d99c:	3b c0 00 00 	li      r30,0                                  
ffc1d9a0:	7f 5f d3 78 	mr      r31,r26                                
             * 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)) ==                    
ffc1d9a4:	8b bf 00 00 	lbz     r29,0(r31)                             
ffc1d9a8:	2f 9d 00 e5 	cmpwi   cr7,r29,229                            
ffc1d9ac:	41 9e 00 94 	beq-    cr7,ffc1da40 <msdos_dir_is_empty+0x148><== NEVER TAKEN
                 MSDOS_THIS_DIR_ENTRY_EMPTY) ||                       
                ((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==    
ffc1d9b0:	89 3f 00 0b 	lbz     r9,11(r31)                             
             *                                                        
             * 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) ||                       
ffc1d9b4:	55 29 06 be 	clrlwi  r9,r9,26                               
ffc1d9b8:	2f 89 00 0f 	cmpwi   cr7,r9,15                              
ffc1d9bc:	41 9e 00 84 	beq-    cr7,ffc1da40 <msdos_dir_is_empty+0x148><== NEVER TAKEN
                ((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) ==    
                 MSDOS_ATTR_LFN) ||                                   
                (strncmp(MSDOS_DIR_NAME((entry)), MSDOS_DOT_NAME,     
ffc1d9c0:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d9c4:	7f 24 cb 78 	mr      r4,r25                                 
ffc1d9c8:	38 a0 00 0b 	li      r5,11                                  
ffc1d9cc:	48 00 5c b9 	bl      ffc23684 <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) ||                                   
ffc1d9d0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1d9d4:	41 9e 00 6c 	beq-    cr7,ffc1da40 <msdos_dir_is_empty+0x148>
                (strncmp(MSDOS_DIR_NAME((entry)), MSDOS_DOT_NAME,     
                         MSDOS_SHORT_NAME_LEN) == 0) ||               
                (strncmp(MSDOS_DIR_NAME((entry)),                     
ffc1d9d8:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d9dc:	7e e4 bb 78 	mr      r4,r23                                 
ffc1d9e0:	38 a0 00 0b 	li      r5,11                                  
ffc1d9e4:	48 00 5c a1 	bl      ffc23684 <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) ||               
ffc1d9e8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1d9ec:	41 9e 00 54 	beq-    cr7,ffc1da40 <msdos_dir_is_empty+0x148>
                continue;                                             
                                                                      
            /*                                                        
             * Nothing more to look at.                               
             */                                                       
            if ((*MSDOS_DIR_NAME(entry)) ==                           
ffc1d9f0:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
            }                                                         
                                                                      
            /*                                                        
             * Short file name entries mean not empty.                
             */                                                       
            return RC_OK;                                             
ffc1d9f4:	38 60 00 00 	li      r3,0                                   
                continue;                                             
                                                                      
            /*                                                        
             * Nothing more to look at.                               
             */                                                       
            if ((*MSDOS_DIR_NAME(entry)) ==                           
ffc1d9f8:	40 9e 00 0c 	bne-    cr7,ffc1da04 <msdos_dir_is_empty+0x10c>
                MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)                  
            {                                                         
                *ret_val = true;                                      
ffc1d9fc:	39 20 00 01 	li      r9,1                                   
ffc1da00:	99 36 00 00 	stb     r9,0(r22)                              
        }                                                             
        j++;                                                          
    }                                                                 
    *ret_val = true;                                                  
    return RC_OK;                                                     
}                                                                     
ffc1da04:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc1da08:	82 a1 00 0c 	lwz     r21,12(r1)                             
ffc1da0c:	7c 08 03 a6 	mtlr    r0                                     
ffc1da10:	82 c1 00 10 	lwz     r22,16(r1)                             
ffc1da14:	82 e1 00 14 	lwz     r23,20(r1)                             
ffc1da18:	83 01 00 18 	lwz     r24,24(r1)                             
ffc1da1c:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc1da20:	83 41 00 20 	lwz     r26,32(r1)                             
ffc1da24:	83 61 00 24 	lwz     r27,36(r1)                             
ffc1da28:	83 81 00 28 	lwz     r28,40(r1)                             
ffc1da2c:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc1da30:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc1da34:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc1da38:	38 21 00 38 	addi    r1,r1,56                               
ffc1da3c:	4e 80 00 20 	blr                                            
        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)                  
ffc1da40:	3b de 00 20 	addi    r30,r30,32                             
            return -1;                                                
                                                                      
        assert(ret == fs_info->fat.vol.bps);                          
                                                                      
        /* have to look at the DIR_NAME as "raw" 8-bit data */        
        for (i = 0;                                                   
ffc1da44:	7f 9e e0 40 	cmplw   cr7,r30,r28                            
ffc1da48:	3b ff 00 20 	addi    r31,r31,32                             
ffc1da4c:	41 9c ff 58 	blt+    cr7,ffc1d9a4 <msdos_dir_is_empty+0xac> <== ALWAYS TAKEN
            /*                                                        
             * Short file name entries mean not empty.                
             */                                                       
            return RC_OK;                                             
        }                                                             
        j++;                                                          
ffc1da50:	3b 18 00 01 	addi    r24,r24,1                              <== NOT EXECUTED
ffc1da54:	4b ff ff 0c 	b       ffc1d960 <msdos_dir_is_empty+0x68>     <== NOT EXECUTED
ffc1da58:	83 5b 00 a0 	lwz     r26,160(r27)                           <== NOT EXECUTED
ffc1da5c:	3b 18 00 01 	addi    r24,r24,1                              <== NOT EXECUTED
ffc1da60:	4b ff ff 00 	b       ffc1d960 <msdos_dir_is_empty+0x68>     <== NOT EXECUTED
    }                                                                 
    *ret_val = true;                                                  
ffc1da64:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc1da68:	99 36 00 00 	stb     r9,0(r22)                              <== NOT EXECUTED
    return RC_OK;                                                     
ffc1da6c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1da70:	4b ff ff 94 	b       ffc1da04 <msdos_dir_is_empty+0x10c>    <== 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;                                                
ffc1da74:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc1da78:	4b ff ff 8c 	b       ffc1da04 <msdos_dir_is_empty+0x10c>    <== NOT EXECUTED
                                                                      
        assert(ret == fs_info->fat.vol.bps);                          
ffc1da7c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1da80:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc1da84:	3c c0 ff c3 	lis     r6,-61                                 <== NOT EXECUTED
ffc1da88:	38 63 21 58 	addi    r3,r3,8536                             <== NOT EXECUTED
ffc1da8c:	38 80 03 65 	li      r4,869                                 <== NOT EXECUTED
ffc1da90:	38 a5 20 e0 	addi    r5,r5,8416                             <== NOT EXECUTED
ffc1da94:	38 c6 21 a4 	addi    r6,r6,8612                             <== NOT EXECUTED
ffc1da98:	4b fe 8a 95 	bl      ffc0652c <__assert_func>               <== NOT EXECUTED
                                                                      

ffc208ac <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) {
ffc208ac:	94 21 fe 70 	stwu    r1,-400(r1)                            <== NOT EXECUTED
ffc208b0:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc208b4:	7d 80 00 26 	mfcr    r12                                    <== 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;                             
ffc208b8:	39 20 00 00 	li      r9,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)        
{                                                                     
ffc208bc:	90 01 01 94 	stw     r0,404(r1)                             <== NOT EXECUTED
    /*                                                                
     * cast start and count - protect against using sizes that are not exact
     * multiples of the -dirent- size. These could result in unexpected
     * results                                                        
     */                                                               
    start = iop->offset / sizeof(struct dirent);                      
ffc208c0:	38 c0 01 18 	li      r6,280                                 <== 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)        
{                                                                     
ffc208c4:	93 81 01 80 	stw     r28,384(r1)                            <== NOT EXECUTED
ffc208c8:	7c 7c 1b 78 	mr      r28,r3                                 <== NOT EXECUTED
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
ffc208cc:	81 43 00 28 	lwz     r10,40(r3)                             <== 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)        
{                                                                     
ffc208d0:	92 e1 01 6c 	stw     r23,364(r1)                            <== NOT EXECUTED
ffc208d4:	7c 97 23 78 	mr      r23,r4                                 <== NOT EXECUTED
ffc208d8:	93 01 01 70 	stw     r24,368(r1)                            <== NOT EXECUTED
    /*                                                                
     * cast start and count - protect against using sizes that are not exact
     * multiples of the -dirent- size. These could result in unexpected
     * results                                                        
     */                                                               
    start = iop->offset / sizeof(struct dirent);                      
ffc208dc:	80 9c 00 0c 	lwz     r4,12(r28)                             <== NOT EXECUTED
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;     
    fat_file_fd_t     *fat_fd = iop->pathinfo.node_access;            
ffc208e0:	83 03 00 1c 	lwz     r24,28(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);                      
ffc208e4:	80 63 00 08 	lwz     r3,8(r3)                               <== 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)        
{                                                                     
ffc208e8:	93 e1 01 8c 	stw     r31,396(r1)                            <== NOT EXECUTED
ffc208ec:	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);                      
ffc208f0:	38 a0 00 00 	li      r5,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)        
{                                                                     
ffc208f4:	91 c1 01 48 	stw     r14,328(r1)                            <== NOT EXECUTED
     * cast start and count - protect against using sizes that are not exact
     * multiples of the -dirent- size. These could result in unexpected
     * results                                                        
     */                                                               
    start = iop->offset / sizeof(struct dirent);                      
    count = (count / sizeof(struct dirent)) * sizeof(struct dirent);  
ffc208f8:	57 ff e8 fe 	rlwinm  r31,r31,29,3,31                        <== 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)        
{                                                                     
ffc208fc:	92 01 01 50 	stw     r16,336(r1)                            <== NOT EXECUTED
ffc20900:	93 a1 01 84 	stw     r29,388(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;     
ffc20904:	81 ca 00 08 	lwz     r14,8(r10)                             <== NOT EXECUTED
    fat_file_fd_t     *fat_fd = iop->pathinfo.node_access;            
    fat_file_fd_t     *tmp_fat_fd = NULL;                             
ffc20908:	91 21 01 34 	stw     r9,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;                                   
ffc2090c:	91 21 01 30 	stw     r9,304(r1)                             <== 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)        
{                                                                     
ffc20910:	91 e1 01 4c 	stw     r15,332(r1)                            <== NOT EXECUTED
ffc20914:	92 21 01 54 	stw     r17,340(r1)                            <== NOT EXECUTED
ffc20918:	92 41 01 58 	stw     r18,344(r1)                            <== NOT EXECUTED
ffc2091c:	92 61 01 5c 	stw     r19,348(r1)                            <== NOT EXECUTED
ffc20920:	92 81 01 60 	stw     r20,352(r1)                            <== NOT EXECUTED
ffc20924:	92 a1 01 64 	stw     r21,356(r1)                            <== NOT EXECUTED
ffc20928:	92 c1 01 68 	stw     r22,360(r1)                            <== NOT EXECUTED
ffc2092c:	93 21 01 74 	stw     r25,372(r1)                            <== NOT EXECUTED
ffc20930:	93 41 01 78 	stw     r26,376(r1)                            <== NOT EXECUTED
ffc20934:	93 61 01 7c 	stw     r27,380(r1)                            <== NOT EXECUTED
ffc20938:	93 c1 01 88 	stw     r30,392(r1)                            <== NOT EXECUTED
ffc2093c:	91 81 01 44 	stw     r12,324(r1)                            <== NOT EXECUTED
    /*                                                                
     * cast start and count - protect against using sizes that are not exact
     * multiples of the -dirent- size. These could result in unexpected
     * results                                                        
     */                                                               
    start = iop->offset / sizeof(struct dirent);                      
ffc20940:	4b fe 08 f1 	bl      ffc01230 <__divdi3>                    <== NOT EXECUTED
    count = (count / sizeof(struct dirent)) * sizeof(struct dirent);  
ffc20944:	3d 40 0e a0 	lis     r10,3744                               <== 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                              :     
ffc20948:	81 38 00 20 	lwz     r9,32(r24)                             <== 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);  
ffc2094c:	61 4a ea 0f 	ori     r10,r10,59919                          <== NOT EXECUTED
ffc20950:	7f bf 50 16 	mulhwu  r29,r31,r10                            <== 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                              :     
ffc20954:	2f 89 00 01 	cmpwi   cr7,r9,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);  
ffc20958:	57 bd f8 7e 	rlwinm  r29,r29,31,1,31                        <== 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);                      
ffc2095c:	7c 90 23 78 	mr      r16,r4                                 <== NOT EXECUTED
    count = (count / sizeof(struct dirent)) * sizeof(struct dirent);  
ffc20960:	1f bd 01 18 	mulli   r29,r29,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                              :     
ffc20964:	41 9e 03 d4 	beq-    cr7,ffc20d38 <msdos_dir_read+0x48c>    <== NOT EXECUTED
ffc20968:	a2 8e 00 06 	lhz     r20,6(r14)                             <== NOT EXECUTED
             fs_info->fat.vol.bpc;                                    
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc2096c:	80 6e 00 9c 	lwz     r3,156(r14)                            <== NOT EXECUTED
ffc20970:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc20974:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc20978:	4b fe b2 5d 	bl      ffc0bbd4 <rtems_semaphore_obtain>      <== NOT EXECUTED
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc2097c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc20980:	40 9e 04 68 	bne-    cr7,ffc20de8 <msdos_dir_read+0x53c>    <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    while (count > 0)                                                 
ffc20984:	2e 1d 00 00 	cmpwi   cr4,r29,0                              <== NOT EXECUTED
ffc20988:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
ffc2098c:	41 92 00 d0 	beq-    cr4,ffc20a5c <msdos_dir_read+0x1b0>    <== NOT EXECUTED
ffc20990:	3b 40 00 00 	li      r26,0                                  <== NOT EXECUTED
ffc20994:	3b 60 00 00 	li      r27,0                                  <== NOT EXECUTED
ffc20998:	3a a0 00 00 	li      r21,0                                  <== NOT EXECUTED
ffc2099c:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
ffc209a0:	3b c0 00 00 	li      r30,0                                  <== 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;                  
ffc209a4:	3b 20 ff ff 	li      r25,-1                                 <== NOT EXECUTED
                     * also the checksum of the short entry.          
                     */                                               
                    lfn_entries = (*MSDOS_DIR_ENTRY_TYPE(entry) &     
                                   MSDOS_LAST_LONG_ENTRY_MASK);       
                    lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);    
                    memset (tmp_dirent.d_name, 0, sizeof(tmp_dirent.d_name));
ffc209a8:	3a 61 00 1c 	addi    r19,r1,28                              <== 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);          
ffc209ac:	3a c0 01 18 	li      r22,280                                <== 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),      
ffc209b0:	80 ee 00 a0 	lwz     r7,160(r14)                            <== NOT EXECUTED
ffc209b4:	7d c3 73 78 	mr      r3,r14                                 <== NOT EXECUTED
ffc209b8:	7f 04 c3 78 	mr      r4,r24                                 <== NOT EXECUTED
ffc209bc:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc209c0:	7e 86 a3 78 	mr      r6,r20                                 <== NOT EXECUTED
ffc209c4:	4b ff 58 9d 	bl      ffc16260 <fat_file_read>               <== NOT EXECUTED
                            bts2rd, fs_info->cl_buf);                 
        if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)                  
ffc209c8:	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),      
ffc209cc:	7c 71 1b 78 	mr      r17,r3                                 <== NOT EXECUTED
                            bts2rd, fs_info->cl_buf);                 
        if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)                  
ffc209d0:	40 9d 04 10 	ble-    cr7,ffc20de0 <msdos_dir_read+0x534>    <== NOT EXECUTED
            rtems_set_errno_and_return_minus_one(EIO);                
        }                                                             
                                                                      
        for (i = 0; i < ret; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)  
        {                                                             
            char* entry = (char*) fs_info->cl_buf + i;                
ffc209d4:	82 4e 00 a0 	lwz     r18,160(r14)                           <== NOT EXECUTED
                                                                      
            /*                                                        
             * Is this directory from here on empty ?                 
             */                                                       
            if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==                     
ffc209d8:	89 52 00 00 	lbz     r10,0(r18)                             <== NOT EXECUTED
ffc209dc:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
ffc209e0:	41 9e 02 e8 	beq-    cr7,ffc20cc8 <msdos_dir_read+0x41c>    <== NOT EXECUTED
ffc209e4:	39 e0 00 00 	li      r15,0                                  <== NOT EXECUTED
ffc209e8:	48 00 00 28 	b       ffc20a10 <msdos_dir_read+0x164>        <== NOT EXECUTED
            /* Is the directory entry empty */                        
            if ((*MSDOS_DIR_ENTRY_TYPE(entry)) == MSDOS_THIS_DIR_ENTRY_EMPTY)
                continue;                                             
                                                                      
            /* Is the directory entry empty a volume label */         
            if (((*MSDOS_DIR_ATTR(entry)) & MSDOS_ATTR_VOLUME_ID) &&  
ffc209ec:	41 9e 00 84 	beq-    cr7,ffc20a70 <msdos_dir_read+0x1c4>    <== 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)  
ffc209f0:	39 ef 00 20 	addi    r15,r15,32                             <== NOT EXECUTED
ffc209f4:	7f 8f 88 40 	cmplw   cr7,r15,r17                            <== NOT EXECUTED
ffc209f8:	40 9c 00 58 	bge-    cr7,ffc20a50 <msdos_dir_read+0x1a4>    <== NOT EXECUTED
        {                                                             
            char* entry = (char*) fs_info->cl_buf + i;                
ffc209fc:	80 ee 00 a0 	lwz     r7,160(r14)                            <== NOT EXECUTED
                                                                      
            /*                                                        
             * Is this directory from here on empty ?                 
             */                                                       
            if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==                     
ffc20a00:	7d 47 78 ae 	lbzx    r10,r7,r15                             <== NOT EXECUTED
            rtems_set_errno_and_return_minus_one(EIO);                
        }                                                             
                                                                      
        for (i = 0; i < ret; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)  
        {                                                             
            char* entry = (char*) fs_info->cl_buf + i;                
ffc20a04:	7e 47 7a 14 	add     r18,r7,r15                             <== NOT EXECUTED
                                                                      
            /*                                                        
             * Is this directory from here on empty ?                 
             */                                                       
            if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==                     
ffc20a08:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
ffc20a0c:	41 9e 02 bc 	beq-    cr7,ffc20cc8 <msdos_dir_read+0x41c>    <== 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)
ffc20a10:	2f 8a 00 e5 	cmpwi   cr7,r10,229                            <== NOT EXECUTED
ffc20a14:	41 be ff dc 	beq-    cr7,ffc209f0 <msdos_dir_read+0x144>    <== NOT EXECUTED
                continue;                                             
                                                                      
            /* Is the directory entry empty a volume label */         
            if (((*MSDOS_DIR_ATTR(entry)) & MSDOS_ATTR_VOLUME_ID) &&  
ffc20a18:	88 f2 00 0b 	lbz     r7,11(r18)                             <== NOT EXECUTED
ffc20a1c:	54 e6 07 38 	rlwinm  r6,r7,0,28,28                          <== NOT EXECUTED
ffc20a20:	70 c9 00 ff 	andi.   r9,r6,255                              <== NOT EXECUTED
ffc20a24:	54 e7 06 be 	clrlwi  r7,r7,26                               <== NOT EXECUTED
ffc20a28:	2f 87 00 0f 	cmpwi   cr7,r7,15                              <== NOT EXECUTED
ffc20a2c:	40 a2 ff c0 	bne-    ffc209ec <msdos_dir_read+0x140>        <== 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) ==     
ffc20a30:	41 9e 00 40 	beq-    cr7,ffc20a70 <msdos_dir_read+0x1c4>    <== NOT EXECUTED
                fat_dir_pos_t dir_pos;                                
                                                                      
                /*                                                    
                 * Skip active entries until get the entry to start from.
                 */                                                   
                if (start)                                            
ffc20a34:	2f 90 00 00 	cmpwi   cr7,r16,0                              <== NOT EXECUTED
ffc20a38:	41 9e 00 d4 	beq-    cr7,ffc20b0c <msdos_dir_read+0x260>    <== 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)  
ffc20a3c:	39 ef 00 20 	addi    r15,r15,32                             <== NOT EXECUTED
ffc20a40:	7f 8f 88 40 	cmplw   cr7,r15,r17                            <== NOT EXECUTED
                 * Skip active entries until get the entry to start from.
                 */                                                   
                if (start)                                            
                {                                                     
                    lfn_start = FAT_FILE_SHORT_NAME;                  
                    start--;                                          
ffc20a44:	3a 10 ff ff 	addi    r16,r16,-1                             <== NOT EXECUTED
                /*                                                    
                 * Skip active entries until get the entry to start from.
                 */                                                   
                if (start)                                            
                {                                                     
                    lfn_start = FAT_FILE_SHORT_NAME;                  
ffc20a48:	3b e0 ff ff 	li      r31,-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)  
ffc20a4c:	41 9c ff b0 	blt+    cr7,ffc209fc <msdos_dir_read+0x150>    <== NOT EXECUTED
ffc20a50:	7f 5a a2 14 	add     r26,r26,r20                            <== 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)                                                 
ffc20a54:	40 92 ff 5c 	bne+    cr4,ffc209b0 <msdos_dir_read+0x104>    <== NOT EXECUTED
ffc20a58:	7f ca f3 78 	mr      r10,r30                                <== NOT EXECUTED
                break;                                                
        }                                                             
        j++;                                                          
    }                                                                 
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
ffc20a5c:	80 6e 00 9c 	lwz     r3,156(r14)                            <== NOT EXECUTED
ffc20a60:	91 41 01 38 	stw     r10,312(r1)                            <== NOT EXECUTED
ffc20a64:	4b fe b3 11 	bl      ffc0bd74 <rtems_semaphore_release>     <== NOT EXECUTED
ffc20a68:	81 41 01 38 	lwz     r10,312(r1)                            <== NOT EXECUTED
ffc20a6c:	48 00 02 68 	b       ffc20cd4 <msdos_dir_read+0x428>        <== NOT EXECUTED
                int   q;                                              
                                                                      
                /*                                                    
                 * Is this is the first entry of a LFN ?              
                 */                                                   
                if (lfn_start == FAT_FILE_SHORT_NAME)                 
ffc20a70:	2f 9f ff ff 	cmpwi   cr7,r31,-1                             <== NOT EXECUTED
ffc20a74:	41 9e 02 24 	beq-    cr7,ffc20c98 <msdos_dir_read+0x3ec>    <== 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) &   
ffc20a78:	89 52 00 00 	lbz     r10,0(r18)                             <== NOT EXECUTED
ffc20a7c:	55 4a 06 be 	clrlwi  r10,r10,26                             <== NOT EXECUTED
ffc20a80:	7f 8a d8 00 	cmpw    cr7,r10,r27                            <== NOT EXECUTED
ffc20a84:	41 9e 00 0c 	beq-    cr7,ffc20a90 <msdos_dir_read+0x1e4>    <== NOT EXECUTED
                                     MSDOS_LAST_LONG_ENTRY_MASK)) ||  
                    (lfn_checksum != *MSDOS_DIR_LFN_CHECKSUM(entry))) 
                {                                                     
                    lfn_start = FAT_FILE_SHORT_NAME;                  
ffc20a88:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
ffc20a8c:	4b ff ff 64 	b       ffc209f0 <msdos_dir_read+0x144>        <== NOT EXECUTED
                 * be orphaned entries depending on the history of the
                 * disk.                                              
                 */                                                   
                if ((lfn_entries != (*MSDOS_DIR_ENTRY_TYPE(entry) &   
                                     MSDOS_LAST_LONG_ENTRY_MASK)) ||  
                    (lfn_checksum != *MSDOS_DIR_LFN_CHECKSUM(entry))) 
ffc20a90:	88 72 00 0d 	lbz     r3,13(r18)                             <== NOT EXECUTED
                 * 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) &   
                                     MSDOS_LAST_LONG_ENTRY_MASK)) ||  
ffc20a94:	7f 83 a8 00 	cmpw    cr7,r3,r21                             <== NOT EXECUTED
ffc20a98:	40 9e ff f0 	bne+    cr7,ffc20a88 <msdos_dir_read+0x1dc>    <== 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--;                                        
ffc20a9c:	3b 7b ff ff 	addi    r27,r27,-1                             <== NOT EXECUTED
                p = entry + 1;                                        
                o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;            
ffc20aa0:	1c 1b 00 0d 	mulli   r0,r27,13                              <== NOT EXECUTED
ffc20aa4:	2b 80 00 ff 	cmplwi  cr7,r0,255                             <== 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)        
ffc20aa8:	21 20 01 00 	subfic  r9,r0,256                              <== 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;                                        
ffc20aac:	39 72 00 01 	addi    r11,r18,1                              <== NOT EXECUTED
 * RETURNS:                                                           
 *     the number of bytes read on success, or -1 if error occured (errno
 *     set apropriately).                                             
 */                                                                   
ssize_t                                                               
msdos_dir_read(rtems_libio_t *iop, void *buffer, size_t count)        
ffc20ab0:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
                 * fit in the directory entry name field.             
                 */                                                   
                                                                      
                lfn_entries--;                                        
                p = entry + 1;                                        
                o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;            
ffc20ab4:	7c 0a 03 78 	mr      r10,r0                                 <== NOT EXECUTED
ffc20ab8:	38 c0 00 01 	li      r6,1                                   <== NOT EXECUTED
ffc20abc:	41 9d 03 b0 	bgt-    cr7,ffc20e6c <msdos_dir_read+0x5c0>    <== 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)        
ffc20ac0:	7c e0 50 50 	subf    r7,r0,r10                              <== NOT EXECUTED
ffc20ac4:	39 21 00 08 	addi    r9,r1,8                                <== NOT EXECUTED
ffc20ac8:	7c a9 52 14 	add     r5,r9,r10                              <== 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++)         
ffc20acc:	2f 06 00 0d 	cmpwi   cr6,r6,13                              <== NOT EXECUTED
                    tmp_dirent.d_name[o++] = *p;                      
                                                                      
                    if (*p == '\0')                                   
                        break;                                        
                                                                      
                    switch (q)                                        
ffc20ad0:	2f 87 00 04 	cmpwi   cr7,r7,4                               <== NOT EXECUTED
ffc20ad4:	2c 87 00 0a 	cmpwi   cr1,r7,10                              <== 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;                      
ffc20ad8:	39 4a 00 01 	addi    r10,r10,1                              <== NOT EXECUTED
                p = entry + 1;                                        
                o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;            
                                                                      
                for (q = 0; q < MSDOS_LFN_LEN_PER_ENTRY; q++)         
                {                                                     
                    if (o >= (sizeof(tmp_dirent.d_name) - 1))         
ffc20adc:	42 40 02 7c 	bdz-    ffc20d58 <msdos_dir_read+0x4ac>        <== NOT EXECUTED
                        break;                                        
                                                                      
                    tmp_dirent.d_name[o++] = *p;                      
ffc20ae0:	88 8b 00 00 	lbz     r4,0(r11)                              <== NOT EXECUTED
ffc20ae4:	98 85 00 14 	stb     r4,20(r5)                              <== NOT EXECUTED
                                                                      
                    if (*p == '\0')                                   
ffc20ae8:	88 ab 00 00 	lbz     r5,0(r11)                              <== NOT EXECUTED
ffc20aec:	2c 05 00 00 	cmpwi   r5,0                                   <== NOT EXECUTED
ffc20af0:	41 82 02 68 	beq-    ffc20d58 <msdos_dir_read+0x4ac>        <== NOT EXECUTED
                        break;                                        
                                                                      
                    switch (q)                                        
ffc20af4:	41 9e 02 7c 	beq-    cr7,ffc20d70 <msdos_dir_read+0x4c4>    <== NOT EXECUTED
ffc20af8:	41 86 02 6c 	beq-    cr1,ffc20d64 <msdos_dir_read+0x4b8>    <== NOT EXECUTED
                            break;                                    
                        case 10:                                      
                            p += 4;                                   
                            break;                                    
                        default:                                      
                            p += 2;                                   
ffc20afc:	39 6b 00 02 	addi    r11,r11,2                              <== NOT EXECUTED
                                                                      
                lfn_entries--;                                        
                p = entry + 1;                                        
                o = lfn_entries * MSDOS_LFN_LEN_PER_ENTRY;            
                                                                      
                for (q = 0; q < MSDOS_LFN_LEN_PER_ENTRY; q++)         
ffc20b00:	41 9a 02 58 	beq-    cr6,ffc20d58 <msdos_dir_read+0x4ac>    <== NOT EXECUTED
ffc20b04:	38 c6 00 01 	addi    r6,r6,1                                <== NOT EXECUTED
ffc20b08:	4b ff ff b8 	b       ffc20ac0 <msdos_dir_read+0x214>        <== 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, 
ffc20b0c:	7d c3 73 78 	mr      r3,r14                                 <== NOT EXECUTED
ffc20b10:	7f 04 c3 78 	mr      r4,r24                                 <== NOT EXECUTED
ffc20b14:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc20b18:	7f 46 d3 78 	mr      r6,r26                                 <== NOT EXECUTED
ffc20b1c:	38 e1 01 30 	addi    r7,r1,304                              <== NOT EXECUTED
ffc20b20:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc20b24:	4b ff 5b f5 	bl      ffc16718 <fat_file_ioctl>              <== NOT EXECUTED
                                    j * bts2rd, &cur_cln);            
                if (rc != RC_OK)                                      
ffc20b28:	7c 6a 1b 79 	mr.     r10,r3                                 <== NOT EXECUTED
ffc20b2c:	40 a2 ff 30 	bne-    ffc20a5c <msdos_dir_read+0x1b0>        <== NOT EXECUTED
                    rtems_semaphore_release(fs_info->vol_sema);       
                    return rc;                                        
                }                                                     
                                                                      
                fat_dir_pos_init(&dir_pos);                           
                dir_pos.sname.cln = cur_cln;                          
ffc20b30:	81 41 01 30 	lwz     r10,304(r1)                            <== NOT EXECUTED
                dir_pos.sname.ofs = i;                                
                rc = fat_file_open(&fs_info->fat, &dir_pos, &tmp_fat_fd);
ffc20b34:	7d c3 73 78 	mr      r3,r14                                 <== NOT EXECUTED
ffc20b38:	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;                           
ffc20b3c:	93 21 01 28 	stw     r25,296(r1)                            <== NOT EXECUTED
ffc20b40:	38 a1 01 34 	addi    r5,r1,308                              <== NOT EXECUTED
                    rtems_semaphore_release(fs_info->vol_sema);       
                    return rc;                                        
                }                                                     
                                                                      
                fat_dir_pos_init(&dir_pos);                           
                dir_pos.sname.cln = cur_cln;                          
ffc20b44:	91 41 01 20 	stw     r10,288(r1)                            <== NOT EXECUTED
  dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;                           
ffc20b48:	93 21 01 2c 	stw     r25,300(r1)                            <== NOT EXECUTED
                dir_pos.sname.ofs = i;                                
ffc20b4c:	91 e1 01 24 	stw     r15,292(r1)                            <== NOT EXECUTED
                rc = fat_file_open(&fs_info->fat, &dir_pos, &tmp_fat_fd);
ffc20b50:	4b ff 53 f9 	bl      ffc15f48 <fat_file_open>               <== NOT EXECUTED
                if (rc != RC_OK)                                      
ffc20b54:	7c 6a 1b 79 	mr.     r10,r3                                 <== NOT EXECUTED
ffc20b58:	40 a2 ff 04 	bne-    ffc20a5c <msdos_dir_read+0x1b0>        <== 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)                 
ffc20b5c:	2f 9f ff ff 	cmpwi   cr7,r31,-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;                   
ffc20b60:	81 41 01 34 	lwz     r10,308(r1)                            <== 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;                    
ffc20b64:	93 c1 00 14 	stw     r30,20(r1)                             <== NOT EXECUTED
                tmp_dirent.d_reclen = sizeof(struct dirent);          
                tmp_dirent.d_ino = tmp_fat_fd->ino;                   
ffc20b68:	81 4a 00 0c 	lwz     r10,12(r10)                            <== 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;                    
ffc20b6c:	92 01 00 10 	stw     r16,16(r1)                             <== NOT EXECUTED
                tmp_dirent.d_reclen = sizeof(struct dirent);          
ffc20b70:	b2 c1 00 18 	sth     r22,24(r1)                             <== NOT EXECUTED
                tmp_dirent.d_ino = tmp_fat_fd->ino;                   
ffc20b74:	91 41 00 08 	stw     r10,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)                 
ffc20b78:	41 9e 00 6c 	beq-    cr7,ffc20be4 <msdos_dir_read+0x338>    <== 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;  
ffc20b7c:	39 20 00 0b 	li      r9,11                                  <== NOT EXECUTED
ffc20b80:	7d 29 03 a6 	mtctr   r9                                     <== 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)        
ffc20b84:	38 d2 ff ff 	addi    r6,r18,-1                              <== NOT EXECUTED
ffc20b88:	39 40 00 00 	li      r10,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;  
ffc20b8c:	38 e0 00 00 	li      r7,0                                   <== NOT EXECUTED
ffc20b90:	8c a6 00 01 	lbzu    r5,1(r6)                               <== NOT EXECUTED
ffc20b94:	55 4a f8 7e 	rlwinm  r10,r10,31,1,31                        <== NOT EXECUTED
ffc20b98:	7d 45 52 14 	add     r10,r5,r10                             <== NOT EXECUTED
ffc20b9c:	7d 4a 3a 14 	add     r10,r10,r7                             <== NOT EXECUTED
ffc20ba0:	55 4a 06 3e 	clrlwi  r10,r10,24                             <== NOT EXECUTED
ffc20ba4:	71 49 00 01 	andi.   r9,r10,1                               <== NOT EXECUTED
                {                                                     
                    uint8_t  cs = 0;                                  
                    uint8_t* p = (uint8_t*) entry;                    
                    int      i;                                       
                                                                      
                    for (i = 0; i < 11; i++, p++)                     
ffc20ba8:	42 40 00 2c 	bdz-    ffc20bd4 <msdos_dir_read+0x328>        <== NOT EXECUTED
                        cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;  
ffc20bac:	38 e0 00 00 	li      r7,0                                   <== NOT EXECUTED
ffc20bb0:	41 a2 ff e0 	beq-    ffc20b90 <msdos_dir_read+0x2e4>        <== NOT EXECUTED
ffc20bb4:	8c a6 00 01 	lbzu    r5,1(r6)                               <== NOT EXECUTED
ffc20bb8:	55 4a f8 7e 	rlwinm  r10,r10,31,1,31                        <== NOT EXECUTED
ffc20bbc:	38 e0 00 80 	li      r7,128                                 <== NOT EXECUTED
ffc20bc0:	7d 45 52 14 	add     r10,r5,r10                             <== NOT EXECUTED
ffc20bc4:	7d 4a 3a 14 	add     r10,r10,r7                             <== NOT EXECUTED
ffc20bc8:	55 4a 06 3e 	clrlwi  r10,r10,24                             <== NOT EXECUTED
ffc20bcc:	71 49 00 01 	andi.   r9,r10,1                               <== NOT EXECUTED
                {                                                     
                    uint8_t  cs = 0;                                  
                    uint8_t* p = (uint8_t*) entry;                    
                    int      i;                                       
                                                                      
                    for (i = 0; i < 11; i++, p++)                     
ffc20bd0:	42 00 ff dc 	bdnz+   ffc20bac <msdos_dir_read+0x300>        <== NOT EXECUTED
                        cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;  
                                                                      
                    if (lfn_entries || (lfn_checksum != cs))          
ffc20bd4:	2f 9b 00 00 	cmpwi   cr7,r27,0                              <== NOT EXECUTED
ffc20bd8:	40 9e 00 0c 	bne-    cr7,ffc20be4 <msdos_dir_read+0x338>    <== NOT EXECUTED
ffc20bdc:	7f 8a a8 00 	cmpw    cr7,r10,r21                            <== NOT EXECUTED
ffc20be0:	41 9e 01 9c 	beq-    cr7,ffc20d7c <msdos_dir_read+0x4d0>    <== NOT EXECUTED
  const char *src_tmp;                                                
                                                                      
  /*                                                                  
   * find last non-blank character of base name                       
   */                                                                 
  for ((i       =       MSDOS_SHORT_BASE_LEN  ,                       
ffc20be4:	38 80 00 08 	li      r4,8                                   <== NOT EXECUTED
ffc20be8:	7c 89 03 a6 	mtctr   r4                                     <== NOT EXECUTED
	src_tmp = src + MSDOS_SHORT_BASE_LEN-1);                             
ffc20bec:	38 72 00 07 	addi    r3,r18,7                               <== 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)        
ffc20bf0:	39 52 00 08 	addi    r10,r18,8                              <== 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) &&                                                    
ffc20bf4:	8c ea ff ff 	lbzu    r7,-1(r10)                             <== NOT EXECUTED
ffc20bf8:	2f 87 00 20 	cmpwi   cr7,r7,32                              <== NOT EXECUTED
ffc20bfc:	40 9e 01 90 	bne-    cr7,ffc20d8c <msdos_dir_read+0x4e0>    <== NOT EXECUTED
	(*src_tmp == ' '));                                                  
       i--,src_tmp--)                                                 
ffc20c00:	38 84 ff ff 	addi    r4,r4,-1                               <== NOT EXECUTED
  const char *src_tmp;                                                
                                                                      
  /*                                                                  
   * find last non-blank character of base name                       
   */                                                                 
  for ((i       =       MSDOS_SHORT_BASE_LEN  ,                       
ffc20c04:	42 00 ff f0 	bdnz+   ffc20bf4 <msdos_dir_read+0x348>        <== 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(
ffc20c08:	7e 6a 9b 78 	mr      r10,r19                                <== 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) &&                                                    
ffc20c0c:	88 f2 00 0a 	lbz     r7,10(r18)                             <== NOT EXECUTED
ffc20c10:	2f 87 00 20 	cmpwi   cr7,r7,32                              <== NOT EXECUTED
ffc20c14:	40 9e 02 50 	bne-    cr7,ffc20e64 <msdos_dir_read+0x5b8>    <== NOT EXECUTED
ffc20c18:	88 f2 00 09 	lbz     r7,9(r18)                              <== NOT EXECUTED
ffc20c1c:	2f 87 00 20 	cmpwi   cr7,r7,32                              <== NOT EXECUTED
ffc20c20:	40 9e 01 dc 	bne-    cr7,ffc20dfc <msdos_dir_read+0x550>    <== NOT EXECUTED
ffc20c24:	88 f2 00 08 	lbz     r7,8(r18)                              <== NOT EXECUTED
ffc20c28:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc20c2c:	2f 87 00 20 	cmpwi   cr7,r7,32                              <== NOT EXECUTED
ffc20c30:	40 9e 01 d0 	bne-    cr7,ffc20e00 <msdos_dir_read+0x554>    <== NOT EXECUTED
    while (i-- > 0) {                                                 
      *dst++ = tolower((unsigned char)(*src_tmp++));                  
      len++;                                                          
    }                                                                 
  }                                                                   
  *dst = '\0'; /* terminate string */                                 
ffc20c34:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc20c38:	99 2a 00 00 	stb     r9,0(r10)                              <== 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(
ffc20c3c:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
ffc20c40:	b0 81 00 1a 	sth     r4,26(r1)                              <== NOT EXECUTED
                else                                                  
                {                                                     
                    tmp_dirent.d_namlen = strlen(tmp_dirent.d_name);  
                }                                                     
                                                                      
                memcpy(buffer + cmpltd, &tmp_dirent, sizeof(struct dirent));
ffc20c44:	7c 77 f2 14 	add     r3,r23,r30                             <== NOT EXECUTED
ffc20c48:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc20c4c:	38 a0 01 18 	li      r5,280                                 <== NOT EXECUTED
ffc20c50:	48 00 17 2d 	bl      ffc2237c <memcpy>                      <== NOT EXECUTED
                                                                      
                iop->offset = iop->offset + sizeof(struct dirent);    
ffc20c54:	81 5c 00 08 	lwz     r10,8(r28)                             <== NOT EXECUTED
ffc20c58:	81 7c 00 0c 	lwz     r11,12(r28)                            <== 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);       
ffc20c5c:	7d c3 73 78 	mr      r3,r14                                 <== NOT EXECUTED
ffc20c60:	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));                    
ffc20c64:	3b de 01 18 	addi    r30,r30,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);    
ffc20c68:	31 6b 01 18 	addic   r11,r11,280                            <== NOT EXECUTED
ffc20c6c:	7d 4a 01 94 	addze   r10,r10                                <== NOT EXECUTED
ffc20c70:	91 5c 00 08 	stw     r10,8(r28)                             <== NOT EXECUTED
                cmpltd += (sizeof(struct dirent));                    
                count -= (sizeof(struct dirent));                     
ffc20c74:	3b bd fe e8 	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);    
ffc20c78:	91 7c 00 0c 	stw     r11,12(r28)                            <== 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);       
ffc20c7c:	4b ff 59 99 	bl      ffc16614 <fat_file_close>              <== NOT EXECUTED
                if (rc != RC_OK)                                      
ffc20c80:	7c 6a 1b 79 	mr.     r10,r3                                 <== NOT EXECUTED
ffc20c84:	40 a2 fd d8 	bne-    ffc20a5c <msdos_dir_read+0x1b0>        <== NOT EXECUTED
ffc20c88:	2e 1d 00 00 	cmpwi   cr4,r29,0                              <== NOT EXECUTED
                    rtems_semaphore_release(fs_info->vol_sema);       
                    return rc;                                        
                }                                                     
            }                                                         
                                                                      
            if (count <= 0)                                           
ffc20c8c:	40 92 fd 64 	bne+    cr4,ffc209f0 <msdos_dir_read+0x144>    <== NOT EXECUTED
ffc20c90:	7f ca f3 78 	mr      r10,r30                                <== NOT EXECUTED
ffc20c94:	4b ff fd c8 	b       ffc20a5c <msdos_dir_read+0x1b0>        <== NOT EXECUTED
                if (lfn_start == FAT_FILE_SHORT_NAME)                 
                {                                                     
                    /*                                                
                     * The first entry must have the last long entry flag set.
                     */                                               
                    if ((*MSDOS_DIR_ENTRY_TYPE(entry) &               
ffc20c98:	55 47 06 72 	rlwinm  r7,r10,0,25,25                         <== NOT EXECUTED
ffc20c9c:	70 e9 00 ff 	andi.   r9,r7,255                              <== NOT EXECUTED
ffc20ca0:	41 82 fd 50 	beq+    ffc209f0 <msdos_dir_read+0x144>        <== 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)        
ffc20ca4:	7f ef d2 14 	add     r31,r15,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);    
ffc20ca8:	8a b2 00 0d 	lbz     r21,13(r18)                            <== NOT EXECUTED
                    memset (tmp_dirent.d_name, 0, sizeof(tmp_dirent.d_name));
ffc20cac:	7e 63 9b 78 	mr      r3,r19                                 <== NOT EXECUTED
ffc20cb0:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc20cb4:	38 a0 01 00 	li      r5,256                                 <== NOT EXECUTED
                        continue;                                     
                                                                      
                    /*                                                
                     * Remember the start location of the long file name.
                     */                                               
                    lfn_start =                                       
ffc20cb8:	57 ff d9 7e 	rlwinm  r31,r31,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) &     
ffc20cbc:	55 5b 06 be 	clrlwi  r27,r10,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));
ffc20cc0:	48 00 17 b1 	bl      ffc22470 <memset>                      <== NOT EXECUTED
ffc20cc4:	4b ff fd b4 	b       ffc20a78 <msdos_dir_read+0x1cc>        <== NOT EXECUTED
             * Is this directory from here on empty ?                 
             */                                                       
            if ((*MSDOS_DIR_ENTRY_TYPE(entry)) ==                     
                MSDOS_THIS_DIR_ENTRY_AND_REST_EMPTY)                  
            {                                                         
                rtems_semaphore_release(fs_info->vol_sema);           
ffc20cc8:	80 6e 00 9c 	lwz     r3,156(r14)                            <== NOT EXECUTED
ffc20ccc:	4b fe b0 a9 	bl      ffc0bd74 <rtems_semaphore_release>     <== NOT EXECUTED
                return cmpltd;                                        
ffc20cd0:	7f ca f3 78 	mr      r10,r30                                <== NOT EXECUTED
        j++;                                                          
    }                                                                 
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
    return cmpltd;                                                    
}                                                                     
ffc20cd4:	80 01 01 94 	lwz     r0,404(r1)                             <== NOT EXECUTED
ffc20cd8:	7d 43 53 78 	mr      r3,r10                                 <== NOT EXECUTED
ffc20cdc:	81 81 01 44 	lwz     r12,324(r1)                            <== NOT EXECUTED
ffc20ce0:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc20ce4:	81 c1 01 48 	lwz     r14,328(r1)                            <== NOT EXECUTED
ffc20ce8:	81 e1 01 4c 	lwz     r15,332(r1)                            <== NOT EXECUTED
ffc20cec:	7d 80 81 20 	mtcrf   8,r12                                  <== NOT EXECUTED
ffc20cf0:	82 01 01 50 	lwz     r16,336(r1)                            <== NOT EXECUTED
ffc20cf4:	82 21 01 54 	lwz     r17,340(r1)                            <== NOT EXECUTED
ffc20cf8:	82 41 01 58 	lwz     r18,344(r1)                            <== NOT EXECUTED
ffc20cfc:	82 61 01 5c 	lwz     r19,348(r1)                            <== NOT EXECUTED
ffc20d00:	82 81 01 60 	lwz     r20,352(r1)                            <== NOT EXECUTED
ffc20d04:	82 a1 01 64 	lwz     r21,356(r1)                            <== NOT EXECUTED
ffc20d08:	82 c1 01 68 	lwz     r22,360(r1)                            <== NOT EXECUTED
ffc20d0c:	82 e1 01 6c 	lwz     r23,364(r1)                            <== NOT EXECUTED
ffc20d10:	83 01 01 70 	lwz     r24,368(r1)                            <== NOT EXECUTED
ffc20d14:	83 21 01 74 	lwz     r25,372(r1)                            <== NOT EXECUTED
ffc20d18:	83 41 01 78 	lwz     r26,376(r1)                            <== NOT EXECUTED
ffc20d1c:	83 61 01 7c 	lwz     r27,380(r1)                            <== NOT EXECUTED
ffc20d20:	83 81 01 80 	lwz     r28,384(r1)                            <== NOT EXECUTED
ffc20d24:	83 a1 01 84 	lwz     r29,388(r1)                            <== NOT EXECUTED
ffc20d28:	83 c1 01 88 	lwz     r30,392(r1)                            <== NOT EXECUTED
ffc20d2c:	83 e1 01 8c 	lwz     r31,396(r1)                            <== NOT EXECUTED
ffc20d30:	38 21 01 90 	addi    r1,r1,400                              <== NOT EXECUTED
ffc20d34:	4e 80 00 20 	blr                                            <== 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) &&                           
ffc20d38:	81 38 00 24 	lwz     r9,36(r24)                             <== NOT EXECUTED
ffc20d3c:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc20d40:	40 be fc 28 	bne-    cr7,ffc20968 <msdos_dir_read+0xbc>     <== NOT EXECUTED
             (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16))) ?     
ffc20d44:	89 2e 00 0e 	lbz     r9,14(r14)                             <== 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) &&                           
ffc20d48:	71 2a 00 03 	andi.   r10,r9,3                               <== NOT EXECUTED
ffc20d4c:	41 a2 fc 1c 	beq-    ffc20968 <msdos_dir_read+0xbc>         <== NOT EXECUTED
             (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16))) ?     
             fat_fd->fat_file_size                              :     
ffc20d50:	82 98 00 18 	lwz     r20,24(r24)                            <== NOT EXECUTED
ffc20d54:	4b ff fc 18 	b       ffc2096c <msdos_dir_read+0xc0>         <== NOT EXECUTED
                    if (o >= (sizeof(tmp_dirent.d_name) - 1))         
                        break;                                        
                                                                      
                    tmp_dirent.d_name[o++] = *p;                      
                                                                      
                    if (*p == '\0')                                   
ffc20d58:	7c 75 1b 78 	mr      r21,r3                                 <== NOT EXECUTED
                    rtems_semaphore_release(fs_info->vol_sema);       
                    return rc;                                        
                }                                                     
            }                                                         
                                                                      
            if (count <= 0)                                           
ffc20d5c:	40 92 fc 94 	bne+    cr4,ffc209f0 <msdos_dir_read+0x144>    <== NOT EXECUTED
ffc20d60:	4b ff ff 30 	b       ffc20c90 <msdos_dir_read+0x3e4>        <== NOT EXECUTED
                    {                                                 
                        case 4:                                       
                            p += 5;                                   
                            break;                                    
                        case 10:                                      
                            p += 4;                                   
ffc20d64:	39 6b 00 04 	addi    r11,r11,4                              <== NOT EXECUTED
ffc20d68:	38 c6 00 01 	addi    r6,r6,1                                <== NOT EXECUTED
ffc20d6c:	4b ff fd 54 	b       ffc20ac0 <msdos_dir_read+0x214>        <== NOT EXECUTED
                        break;                                        
                                                                      
                    switch (q)                                        
                    {                                                 
                        case 4:                                       
                            p += 5;                                   
ffc20d70:	39 6b 00 05 	addi    r11,r11,5                              <== NOT EXECUTED
ffc20d74:	38 c6 00 01 	addi    r6,r6,1                                <== NOT EXECUTED
ffc20d78:	4b ff fd 48 	b       ffc20ac0 <msdos_dir_read+0x214>        <== 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);  
ffc20d7c:	7e 63 9b 78 	mr      r3,r19                                 <== NOT EXECUTED
ffc20d80:	48 00 28 69 	bl      ffc235e8 <strlen>                      <== NOT EXECUTED
ffc20d84:	b0 61 00 1a 	sth     r3,26(r1)                              <== NOT EXECUTED
ffc20d88:	4b ff fe bc 	b       ffc20c44 <msdos_dir_read+0x398>        <== 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)        
ffc20d8c:	39 41 00 08 	addi    r10,r1,8                               <== NOT EXECUTED
ffc20d90:	38 e4 00 14 	addi    r7,r4,20                               <== NOT EXECUTED
ffc20d94:	7c ea 3a 14 	add     r7,r10,r7                              <== NOT EXECUTED
ffc20d98:	3d 20 00 00 	lis     r9,0                                   <== NOT EXECUTED
                {                                                     
                    /*                                                
                     * convert dir entry from fixed 8+3 format (without dot)
                     * to 0..8 + 1dot + 0..3 format                   
                     */                                               
                    tmp_dirent.d_namlen = msdos_format_dirent_with_dot(
ffc20d9c:	7c f3 38 50 	subf    r7,r19,r7                              <== NOT EXECUTED
ffc20da0:	80 09 27 e8 	lwz     r0,10216(r9)                           <== 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)        
ffc20da4:	38 d2 ff ff 	addi    r6,r18,-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(
ffc20da8:	7c e9 03 a6 	mtctr   r7                                     <== NOT EXECUTED
ffc20dac:	7e 6a 9b 78 	mr      r10,r19                                <== NOT EXECUTED
ffc20db0:	48 00 00 10 	b       ffc20dc0 <msdos_dir_read+0x514>        <== NOT EXECUTED
   * copy base name to destination                                    
   */                                                                 
  src_tmp = src;                                                      
  len = i;                                                            
  while (i-- > 0) {                                                   
    *dst++ = tolower((unsigned char)(*src_tmp++));                    
ffc20db4:	98 ea 00 00 	stb     r7,0(r10)                              <== NOT EXECUTED
ffc20db8:	39 4a 00 01 	addi    r10,r10,1                              <== NOT EXECUTED
  /*                                                                  
   * copy base name to destination                                    
   */                                                                 
  src_tmp = src;                                                      
  len = i;                                                            
  while (i-- > 0) {                                                   
ffc20dbc:	42 40 fe 50 	bdz+    ffc20c0c <msdos_dir_read+0x360>        <== NOT EXECUTED
    *dst++ = tolower((unsigned char)(*src_tmp++));                    
ffc20dc0:	8c e6 00 01 	lbzu    r7,1(r6)                               <== NOT EXECUTED
ffc20dc4:	7c a0 3a 14 	add     r5,r0,r7                               <== NOT EXECUTED
ffc20dc8:	88 a5 00 01 	lbz     r5,1(r5)                               <== NOT EXECUTED
ffc20dcc:	54 a5 07 be 	clrlwi  r5,r5,30                               <== NOT EXECUTED
ffc20dd0:	2f 85 00 01 	cmpwi   cr7,r5,1                               <== NOT EXECUTED
ffc20dd4:	40 9e ff e0 	bne+    cr7,ffc20db4 <msdos_dir_read+0x508>    <== NOT EXECUTED
ffc20dd8:	38 e7 00 20 	addi    r7,r7,32                               <== NOT EXECUTED
ffc20ddc:	4b ff ff d8 	b       ffc20db4 <msdos_dir_read+0x508>        <== NOT EXECUTED
         */                                                           
        ret = fat_file_read(&fs_info->fat, fat_fd, (j * bts2rd),      
                            bts2rd, fs_info->cl_buf);                 
        if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)                  
        {                                                             
            rtems_semaphore_release(fs_info->vol_sema);               
ffc20de0:	80 6e 00 9c 	lwz     r3,156(r14)                            <== NOT EXECUTED
ffc20de4:	4b fe af 91 	bl      ffc0bd74 <rtems_semaphore_release>     <== NOT EXECUTED
            rtems_set_errno_and_return_minus_one(EIO);                
ffc20de8:	48 00 08 b5 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc20dec:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc20df0:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc20df4:	39 40 ff ff 	li      r10,-1                                 <== NOT EXECUTED
ffc20df8:	4b ff fe dc 	b       ffc20cd4 <msdos_dir_read+0x428>        <== NOT EXECUTED
   */                                                                 
  for ((i       =                            MSDOS_SHORT_EXT_LEN  ,   
	src_tmp = src + MSDOS_SHORT_BASE_LEN+MSDOS_SHORT_EXT_LEN-1);         
       ((i > 0) &&                                                    
	(*src_tmp == ' '));                                                  
       i--,src_tmp--)                                                 
ffc20dfc:	38 a0 00 02 	li      r5,2                                   <== NOT EXECUTED
    {};                                                               
  /*                                                                  
   * extension is not empty                                           
   */                                                                 
  if (i > 0) {                                                        
    *dst++ = '.'; /* append dot */                                    
ffc20e00:	39 20 00 2e 	li      r9,46                                  <== 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)        
ffc20e04:	7c a9 03 a6 	mtctr   r5                                     <== NOT EXECUTED
  /*                                                                  
   * extension is not empty                                           
   */                                                                 
  if (i > 0) {                                                        
    *dst++ = '.'; /* append dot */                                    
    len += i + 1; /* extension + dot */                               
ffc20e08:	38 e5 00 01 	addi    r7,r5,1                                <== NOT EXECUTED
    {};                                                               
  /*                                                                  
   * extension is not empty                                           
   */                                                                 
  if (i > 0) {                                                        
    *dst++ = '.'; /* append dot */                                    
ffc20e0c:	99 2a 00 00 	stb     r9,0(r10)                              <== NOT EXECUTED
ffc20e10:	3d 20 00 00 	lis     r9,0                                   <== NOT EXECUTED
ffc20e14:	38 0a 00 01 	addi    r0,r10,1                               <== NOT EXECUTED
ffc20e18:	80 c9 27 e8 	lwz     r6,10216(r9)                           <== NOT EXECUTED
    len += i + 1; /* extension + dot */                               
ffc20e1c:	7c 84 3a 14 	add     r4,r4,r7                               <== NOT EXECUTED
    src_tmp = src + MSDOS_SHORT_BASE_LEN;                             
    while (i-- > 0) {                                                 
ffc20e20:	39 65 ff ff 	addi    r11,r5,-1                              <== NOT EXECUTED
ffc20e24:	48 00 00 0c 	b       ffc20e30 <msdos_dir_read+0x584>        <== NOT EXECUTED
      *dst++ = tolower((unsigned char)(*src_tmp++));                  
ffc20e28:	9c ea 00 01 	stbu    r7,1(r10)                              <== NOT EXECUTED
   */                                                                 
  if (i > 0) {                                                        
    *dst++ = '.'; /* append dot */                                    
    len += i + 1; /* extension + dot */                               
    src_tmp = src + MSDOS_SHORT_BASE_LEN;                             
    while (i-- > 0) {                                                 
ffc20e2c:	42 40 00 28 	bdz-    ffc20e54 <msdos_dir_read+0x5a8>        <== NOT EXECUTED
      *dst++ = tolower((unsigned char)(*src_tmp++));                  
ffc20e30:	8c e3 00 01 	lbzu    r7,1(r3)                               <== NOT EXECUTED
ffc20e34:	7f e6 3a 14 	add     r31,r6,r7                              <== NOT EXECUTED
ffc20e38:	8b ff 00 01 	lbz     r31,1(r31)                             <== NOT EXECUTED
ffc20e3c:	57 ff 07 be 	clrlwi  r31,r31,30                             <== NOT EXECUTED
ffc20e40:	2f 9f 00 01 	cmpwi   cr7,r31,1                              <== NOT EXECUTED
ffc20e44:	40 9e ff e4 	bne+    cr7,ffc20e28 <msdos_dir_read+0x57c>    <== NOT EXECUTED
ffc20e48:	38 e7 00 20 	addi    r7,r7,32                               <== NOT EXECUTED
ffc20e4c:	9c ea 00 01 	stbu    r7,1(r10)                              <== NOT EXECUTED
   */                                                                 
  if (i > 0) {                                                        
    *dst++ = '.'; /* append dot */                                    
    len += i + 1; /* extension + dot */                               
    src_tmp = src + MSDOS_SHORT_BASE_LEN;                             
    while (i-- > 0) {                                                 
ffc20e50:	42 00 ff e0 	bdnz+   ffc20e30 <msdos_dir_read+0x584>        <== 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)        
ffc20e54:	38 84 00 01 	addi    r4,r4,1                                <== NOT EXECUTED
ffc20e58:	7d 40 2a 14 	add     r10,r0,r5                              <== NOT EXECUTED
ffc20e5c:	7c 84 5a 14 	add     r4,r4,r11                              <== NOT EXECUTED
ffc20e60:	4b ff fd d4 	b       ffc20c34 <msdos_dir_read+0x388>        <== NOT EXECUTED
    *dst++ = tolower((unsigned char)(*src_tmp++));                    
  }                                                                   
  /*                                                                  
   * find last non-blank character of extension                       
   */                                                                 
  for ((i       =                            MSDOS_SHORT_EXT_LEN  ,   
ffc20e64:	38 a0 00 03 	li      r5,3                                   <== NOT EXECUTED
ffc20e68:	4b ff ff 98 	b       ffc20e00 <msdos_dir_read+0x554>        <== NOT EXECUTED
ffc20e6c:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc20e70:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc20e74:	4b ff fc 4c 	b       ffc20ac0 <msdos_dir_read+0x214>        <== NOT EXECUTED
                                                                      

ffc20e78 <msdos_dir_stat>: int msdos_dir_stat( const rtems_filesystem_location_info_t *loc, struct stat *buf ) {
ffc20e78:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc20e7c:	7c 08 02 a6 	mflr    r0                                     
ffc20e80:	7c 69 1b 78 	mr      r9,r3                                  
ffc20e84:	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;              
    fat_file_fd_t     *fat_fd = loc->node_access;                     
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc20e88:	38 a0 00 00 	li      r5,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;              
ffc20e8c:	81 43 00 14 	lwz     r10,20(r3)                             
int                                                                   
msdos_dir_stat(                                                       
    const rtems_filesystem_location_info_t *loc,                      
    struct stat *buf                                                  
)                                                                     
{                                                                     
ffc20e90:	93 c1 00 10 	stw     r30,16(r1)                             
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = loc->mt_entry->fs_info;              
ffc20e94:	83 ca 00 08 	lwz     r30,8(r10)                             
int                                                                   
msdos_dir_stat(                                                       
    const rtems_filesystem_location_info_t *loc,                      
    struct stat *buf                                                  
)                                                                     
{                                                                     
ffc20e98:	93 e1 00 14 	stw     r31,20(r1)                             
ffc20e9c:	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,        
ffc20ea0:	38 80 00 00 	li      r4,0                                   
ffc20ea4:	80 7e 00 9c 	lwz     r3,156(r30)                            
int                                                                   
msdos_dir_stat(                                                       
    const rtems_filesystem_location_info_t *loc,                      
    struct stat *buf                                                  
)                                                                     
{                                                                     
ffc20ea8:	93 a1 00 0c 	stw     r29,12(r1)                             
    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;                     
ffc20eac:	83 a9 00 08 	lwz     r29,8(r9)                              
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc20eb0:	4b fe ad 25 	bl      ffc0bbd4 <rtems_semaphore_obtain>      
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc20eb4:	2c 03 00 00 	cmpwi   r3,0                                   
ffc20eb8:	40 82 00 84 	bne-    ffc20f3c <msdos_dir_stat+0xc4>         <== NEVER TAKEN
    buf->st_blksize = fs_info->fat.vol.bps;                           
    buf->st_mtime = fat_fd->mtime;                                    
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
    return RC_OK;                                                     
}                                                                     
ffc20ebc:	81 5e 00 64 	lwz     r10,100(r30)                           
        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;                                               
ffc20ec0:	39 60 00 00 	li      r11,0                                  
    buf->st_size = fat_fd->fat_file_size;                             
ffc20ec4:	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);
ffc20ec8:	80 ca 00 00 	lwz     r6,0(r10)                              
ffc20ecc:	80 ea 00 04 	lwz     r7,4(r10)                              
    buf->st_ino = fat_fd->ino;                                        
    buf->st_mode  = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;            
    buf->st_rdev = 0ll;                                               
    buf->st_size = fat_fd->fat_file_size;                             
    buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;     
ffc20ed0:	55 24 ba 7e 	rlwinm  r4,r9,23,9,31                          
                                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;                                        
ffc20ed4:	81 5d 00 0c 	lwz     r10,12(r29)                            
    buf->st_mode  = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;            
    buf->st_rdev = 0ll;                                               
    buf->st_size = fat_fd->fat_file_size;                             
    buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;     
    buf->st_blksize = fs_info->fat.vol.bps;                           
ffc20ed8:	a0 be 00 00 	lhz     r5,0(r30)                              
    buf->st_mtime = fat_fd->mtime;                                    
ffc20edc:	81 1d 00 40 	lwz     r8,64(r29)                             
                                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;                                        
ffc20ee0:	91 5f 00 08 	stw     r10,8(r31)                             
    buf->st_mode  = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;            
ffc20ee4:	39 40 41 ff 	li      r10,16895                              
ffc20ee8:	91 5f 00 0c 	stw     r10,12(r31)                            
    buf->st_rdev = 0ll;                                               
ffc20eec:	39 40 00 00 	li      r10,0                                  
    buf->st_size = fat_fd->fat_file_size;                             
ffc20ef0:	90 7f 00 20 	stw     r3,32(r31)                             
    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);
ffc20ef4:	90 df 00 00 	stw     r6,0(r31)                              
ffc20ef8:	90 ff 00 04 	stw     r7,4(r31)                              
    buf->st_ino = fat_fd->ino;                                        
    buf->st_mode  = S_IFDIR | S_IRWXU | S_IRWXG | S_IRWXO;            
    buf->st_rdev = 0ll;                                               
ffc20efc:	91 5f 00 18 	stw     r10,24(r31)                            
ffc20f00:	91 7f 00 1c 	stw     r11,28(r31)                            
    buf->st_size = fat_fd->fat_file_size;                             
ffc20f04:	91 3f 00 24 	stw     r9,36(r31)                             
    buf->st_blocks = fat_fd->fat_file_size >> FAT_SECTOR512_BITS;     
ffc20f08:	90 9f 00 44 	stw     r4,68(r31)                             
    buf->st_blksize = fs_info->fat.vol.bps;                           
ffc20f0c:	90 bf 00 40 	stw     r5,64(r31)                             
    buf->st_mtime = fat_fd->mtime;                                    
ffc20f10:	91 1f 00 30 	stw     r8,48(r31)                             
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
ffc20f14:	80 7e 00 9c 	lwz     r3,156(r30)                            
ffc20f18:	4b fe ae 5d 	bl      ffc0bd74 <rtems_semaphore_release>     
    return RC_OK;                                                     
ffc20f1c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc20f20:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc20f24:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc20f28:	7c 08 03 a6 	mtlr    r0                                     
ffc20f2c:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc20f30:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc20f34:	38 21 00 18 	addi    r1,r1,24                               
ffc20f38:	4e 80 00 20 	blr                                            
    fat_file_fd_t     *fat_fd = loc->node_access;                     
                                                                      
    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);                    
ffc20f3c:	48 00 07 61 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc20f40:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc20f44:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc20f48:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc20f4c:	4b ff ff d4 	b       ffc20f20 <msdos_dir_stat+0xa8>         <== NOT EXECUTED
                                                                      

ffc1d088 <msdos_eval_token>:
ffc1d088:	2f 86 00 01 	cmpwi   cr7,r6,1                               
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
ffc1d08c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1d090:	7c 08 02 a6 	mflr    r0                                     
ffc1d094:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc1d098:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1d09c:	90 01 00 14 	stw     r0,20(r1)                              
ffc1d0a0:	41 9e 00 60 	beq-    cr7,ffc1d100 <msdos_eval_token+0x78>   
    rtems_filesystem_eval_path_clear_token(ctx);                      
    status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;             
  } else {                                                            
    rtems_filesystem_location_info_t *currentloc =                    
      rtems_filesystem_eval_path_get_currentloc(ctx);                 
    int rc = msdos_find_name(currentloc, token, tokenlen);            
ffc1d0a4:	7c a4 2b 78 	mr      r4,r5                                  
ffc1d0a8:	38 7f 00 18 	addi    r3,r31,24                              
ffc1d0ac:	7c c5 33 78 	mr      r5,r6                                  
ffc1d0b0:	48 00 1a a1 	bl      ffc1eb50 <msdos_find_name>             
                                                                      
    if (rc == RC_OK) {                                                
ffc1d0b4:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1d0b8:	40 82 00 64 	bne-    ffc1d11c <msdos_eval_token+0x94>       
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)                       
ffc1d0bc:	81 5f 00 20 	lwz     r10,32(r31)                            
 *     None                                                           
 */                                                                   
static void                                                           
msdos_set_handlers(rtems_filesystem_location_info_t *loc)             
{                                                                     
    msdos_fs_info_t *fs_info = loc->mt_entry->fs_info;                
ffc1d0c0:	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)                       
ffc1d0c4:	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;                
ffc1d0c8:	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)                       
ffc1d0cc:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
                                                                      
static inline void rtems_filesystem_eval_path_clear_token(            
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  ctx->tokenlen = 0;                                                  
ffc1d0d0:	90 7f 00 0c 	stw     r3,12(r31)                             
ffc1d0d4:	40 9e 00 78 	bne-    cr7,ffc1d14c <msdos_eval_token+0xc4>   
        loc->handlers = fs_info->directory_handlers;                  
ffc1d0d8:	81 29 00 94 	lwz     r9,148(r9)                             
ffc1d0dc:	91 3f 00 28 	stw     r9,40(r31)                             
      rtems_filesystem_eval_path_error(ctx, 0);                       
    }                                                                 
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc1d0e0:	80 01 00 14 	lwz     r0,20(r1)                              
    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)) {                 
ffc1d0e4:	80 7f 00 04 	lwz     r3,4(r31)                              
      rtems_filesystem_eval_path_error(ctx, 0);                       
    }                                                                 
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc1d0e8:	7c 08 03 a6 	mtlr    r0                                     
ffc1d0ec:	83 e1 00 0c 	lwz     r31,12(r1)                             
    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)) {                 
ffc1d0f0:	7c 63 00 34 	cntlzw  r3,r3                                  
ffc1d0f4:	54 63 d9 7e 	rlwinm  r3,r3,27,5,31                          
      rtems_filesystem_eval_path_error(ctx, 0);                       
    }                                                                 
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc1d0f8:	38 21 00 10 	addi    r1,r1,16                               
ffc1d0fc:	4e 80 00 20 	blr                                            
static inline bool rtems_filesystem_is_current_directory(             
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 1 && token [0] == '.';                           
ffc1d100:	89 25 00 00 	lbz     r9,0(r5)                               
ffc1d104:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
ffc1d108:	40 9e ff 9c 	bne+    cr7,ffc1d0a4 <msdos_eval_token+0x1c>   
                                                                      
static inline void rtems_filesystem_eval_path_clear_token(            
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  ctx->tokenlen = 0;                                                  
ffc1d10c:	39 20 00 00 	li      r9,0                                   
ffc1d110:	91 23 00 0c 	stw     r9,12(r3)                              
  rtems_filesystem_eval_path_generic_status status =                  
    RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;                          
                                                                      
  if (rtems_filesystem_is_current_directory(token, tokenlen)) {       
    rtems_filesystem_eval_path_clear_token(ctx);                      
    status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;             
ffc1d114:	38 60 00 00 	li      r3,0                                   
ffc1d118:	48 00 00 20 	b       ffc1d138 <msdos_eval_token+0xb0>       
      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) {                      
ffc1d11c:	2f 83 7d 01 	cmpwi   cr7,r3,32001                           
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;           
ffc1d120:	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) {                      
ffc1d124:	41 be 00 14 	beq+    cr7,ffc1d138 <msdos_eval_token+0xb0>   <== ALWAYS TAKEN
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;           
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, 0);                       
ffc1d128:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1d12c:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc1d130:	4b fe ac 41 	bl      ffc07d70 <rtems_filesystem_eval_path_error><== NOT EXECUTED
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
ffc1d134:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
      rtems_filesystem_eval_path_error(ctx, 0);                       
    }                                                                 
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc1d138:	80 01 00 14 	lwz     r0,20(r1)                              
ffc1d13c:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc1d140:	7c 08 03 a6 	mtlr    r0                                     
ffc1d144:	38 21 00 10 	addi    r1,r1,16                               
ffc1d148:	4e 80 00 20 	blr                                            
    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;                       
ffc1d14c:	81 29 00 98 	lwz     r9,152(r9)                             
ffc1d150:	91 3f 00 28 	stw     r9,40(r31)                             
ffc1d154:	4b ff ff 8c 	b       ffc1d0e0 <msdos_eval_token+0x58>       
                                                                      

ffc20fdc <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) {
ffc20fdc:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc20fe0:	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,        
ffc20fe4:	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)                                  
{                                                                     
ffc20fe8:	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,        
ffc20fec:	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;     
ffc20ff0:	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)                                  
{                                                                     
ffc20ff4:	93 c1 00 08 	stw     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;     
ffc20ff8:	83 c9 00 08 	lwz     r30,8(r9)                              
 *     RC_OK, if file closed successfully, or -1 if error occured (errno set
 *     appropriately)                                                 
 */                                                                   
int                                                                   
msdos_file_close(rtems_libio_t *iop)                                  
{                                                                     
ffc20ffc:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc21000:	7c 7f 1b 78 	mr      r31,r3                                 
    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,        
ffc21004:	80 7e 00 9c 	lwz     r3,156(r30)                            
ffc21008:	4b fe ab cd 	bl      ffc0bbd4 <rtems_semaphore_obtain>      
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc2100c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc21010:	40 9e 00 38 	bne-    cr7,ffc21048 <msdos_file_close+0x6c>   <== NEVER TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    rc = msdos_file_update(iop);                                      
ffc21014:	80 7f 00 1c 	lwz     r3,28(r31)                             
ffc21018:	38 9f 00 28 	addi    r4,r31,40                              
ffc2101c:	4b ff ff 35 	bl      ffc20f50 <msdos_file_update.isra.1>    
ffc21020:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
ffc21024:	80 7e 00 9c 	lwz     r3,156(r30)                            
ffc21028:	4b fe ad 4d 	bl      ffc0bd74 <rtems_semaphore_release>     
    return rc;                                                        
}                                                                     
ffc2102c:	80 01 00 14 	lwz     r0,20(r1)                              
ffc21030:	7f e3 fb 78 	mr      r3,r31                                 
ffc21034:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc21038:	7c 08 03 a6 	mtlr    r0                                     
ffc2103c:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc21040:	38 21 00 10 	addi    r1,r1,16                               
ffc21044:	4e 80 00 20 	blr                                            
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
                                                                      
    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);                    
ffc21048:	48 00 06 55 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc2104c:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc21050:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc21054:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
ffc21058:	4b ff ff d4 	b       ffc2102c <msdos_file_close+0x50>       <== NOT EXECUTED
                                                                      

ffc21344 <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) {
ffc21344:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc21348:	7c 08 02 a6 	mflr    r0                                     
ffc2134c:	7c 69 1b 78 	mr      r9,r3                                  
ffc21350:	90 01 00 34 	stw     r0,52(r1)                              
    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,        
ffc21354:	38 80 00 00 	li      r4,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;     
ffc21358:	81 43 00 28 	lwz     r10,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)                
{                                                                     
ffc2135c:	93 e1 00 2c 	stw     r31,44(r1)                             
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
ffc21360:	83 ea 00 08 	lwz     r31,8(r10)                             
 * RETURNS:                                                           
 *     RC_OK on success, or -1 if error occured (errno set appropriately).
 */                                                                   
int                                                                   
msdos_file_ftruncate(rtems_libio_t *iop, off_t length)                
{                                                                     
ffc21364:	93 61 00 1c 	stw     r27,28(r1)                             
ffc21368:	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,        
ffc2136c:	38 a0 00 00 	li      r5,0                                   
ffc21370:	80 7f 00 9c 	lwz     r3,156(r31)                            
 * RETURNS:                                                           
 *     RC_OK on success, or -1 if error occured (errno set appropriately).
 */                                                                   
int                                                                   
msdos_file_ftruncate(rtems_libio_t *iop, off_t length)                
{                                                                     
ffc21374:	93 a1 00 24 	stw     r29,36(r1)                             
ffc21378:	7c dd 33 78 	mr      r29,r6                                 
ffc2137c:	93 c1 00 28 	stw     r30,40(r1)                             
ffc21380:	93 41 00 18 	stw     r26,24(r1)                             
ffc21384:	93 81 00 20 	stw     r28,32(r1)                             
    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;            
ffc21388:	83 c9 00 1c 	lwz     r30,28(r9)                             
    uint32_t old_length;                                              
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc2138c:	4b fe a8 49 	bl      ffc0bbd4 <rtems_semaphore_obtain>      
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc21390:	2c 03 00 00 	cmpwi   r3,0                                   
ffc21394:	40 82 00 c8 	bne-    ffc2145c <msdos_file_ftruncate+0x118>  <== NEVER TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    old_length = fat_fd->fat_file_size;                               
    if (length < old_length) {                                        
ffc21398:	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;                               
ffc2139c:	83 5e 00 18 	lwz     r26,24(r30)                            
    if (length < old_length) {                                        
ffc213a0:	41 9d 00 90 	bgt-    cr7,ffc21430 <msdos_file_ftruncate+0xec><== NEVER TAKEN
ffc213a4:	40 9e 00 0c 	bne-    cr7,ffc213b0 <msdos_file_ftruncate+0x6c><== NEVER TAKEN
ffc213a8:	7f 9a e8 40 	cmplw   cr7,r26,r29                            
ffc213ac:	41 9d 00 84 	bgt-    cr7,ffc21430 <msdos_file_ftruncate+0xec>
        rc = fat_file_truncate(&fs_info->fat, fat_fd, length);        
    } else {                                                          
        uint32_t new_length;                                          
                                                                      
        rc = fat_file_extend(&fs_info->fat,                           
ffc213b0:	7f e3 fb 78 	mr      r3,r31                                 
ffc213b4:	7f c4 f3 78 	mr      r4,r30                                 
ffc213b8:	38 a0 00 01 	li      r5,1                                   
ffc213bc:	7f a6 eb 78 	mr      r6,r29                                 
ffc213c0:	38 e1 00 08 	addi    r7,r1,8                                
ffc213c4:	4b ff 54 55 	bl      ffc16818 <fat_file_extend>             
                             fat_fd,                                  
                             true,                                    
                             length,                                  
                             &new_length);                            
        if (rc == RC_OK && length != new_length) {                    
ffc213c8:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc213cc:	40 82 00 78 	bne-    ffc21444 <msdos_file_ftruncate+0x100>  <== NEVER TAKEN
ffc213d0:	7f 9c d8 00 	cmpw    cr7,r28,r27                            
ffc213d4:	81 21 00 08 	lwz     r9,8(r1)                               
ffc213d8:	41 9e 00 78 	beq-    cr7,ffc21450 <msdos_file_ftruncate+0x10c><== ALWAYS TAKEN
            fat_file_truncate(&fs_info->fat, fat_fd, old_length);     
ffc213dc:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc213e0:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc213e4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc213e8:	4b ff 50 f9 	bl      ffc164e0 <fat_file_truncate>           <== NOT EXECUTED
            errno = ENOSPC;                                           
            rc = -1;                                                  
ffc213ec:	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;                                           
ffc213f0:	48 00 02 ad 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc213f4:	39 20 00 1c 	li      r9,28                                  <== NOT EXECUTED
ffc213f8:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
                                                                      
    if (rc == RC_OK) {                                                
        fat_fd->fat_file_size = length;                               
    }                                                                 
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
ffc213fc:	80 7f 00 9c 	lwz     r3,156(r31)                            
ffc21400:	4b fe a9 75 	bl      ffc0bd74 <rtems_semaphore_release>     
                                                                      
    return rc;                                                        
}                                                                     
ffc21404:	80 01 00 34 	lwz     r0,52(r1)                              
ffc21408:	7f 83 e3 78 	mr      r3,r28                                 
ffc2140c:	83 41 00 18 	lwz     r26,24(r1)                             
ffc21410:	7c 08 03 a6 	mtlr    r0                                     
ffc21414:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc21418:	83 81 00 20 	lwz     r28,32(r1)                             
ffc2141c:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc21420:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc21424:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc21428:	38 21 00 30 	addi    r1,r1,48                               
ffc2142c:	4e 80 00 20 	blr                                            
    if (sc != RTEMS_SUCCESSFUL)                                       
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    old_length = fat_fd->fat_file_size;                               
    if (length < old_length) {                                        
        rc = fat_file_truncate(&fs_info->fat, fat_fd, length);        
ffc21430:	7f e3 fb 78 	mr      r3,r31                                 
ffc21434:	7f c4 f3 78 	mr      r4,r30                                 
ffc21438:	7f a5 eb 78 	mr      r5,r29                                 
ffc2143c:	4b ff 50 a5 	bl      ffc164e0 <fat_file_truncate>           
ffc21440:	7c 7c 1b 79 	mr.     r28,r3                                 
            errno = ENOSPC;                                           
            rc = -1;                                                  
        }                                                             
    }                                                                 
                                                                      
    if (rc == RC_OK) {                                                
ffc21444:	40 a2 ff b8 	bne-    ffc213fc <msdos_file_ftruncate+0xb8>   <== NEVER TAKEN
        fat_fd->fat_file_size = length;                               
ffc21448:	93 be 00 18 	stw     r29,24(r30)                            
ffc2144c:	4b ff ff b0 	b       ffc213fc <msdos_file_ftruncate+0xb8>   
        rc = fat_file_extend(&fs_info->fat,                           
                             fat_fd,                                  
                             true,                                    
                             length,                                  
                             &new_length);                            
        if (rc == RC_OK && length != new_length) {                    
ffc21450:	7f 89 e8 00 	cmpw    cr7,r9,r29                             
ffc21454:	40 be ff 88 	bne-    cr7,ffc213dc <msdos_file_ftruncate+0x98><== NEVER TAKEN
ffc21458:	4b ff ff f0 	b       ffc21448 <msdos_file_ftruncate+0x104>  
    uint32_t old_length;                                              
                                                                      
    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);                    
ffc2145c:	48 00 02 41 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc21460:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc21464:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc21468:	3b 80 ff ff 	li      r28,-1                                 <== NOT EXECUTED
ffc2146c:	4b ff ff 98 	b       ffc21404 <msdos_file_ftruncate+0xc0>   <== NOT EXECUTED
                                                                      

ffc2105c <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) {
ffc2105c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc21060:	7c 08 02 a6 	mflr    r0                                     
ffc21064:	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;     
ffc21068:	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)       
{                                                                     
ffc2106c:	93 c1 00 18 	stw     r30,24(r1)                             
    ssize_t            ret = 0;                                       
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
ffc21070:	83 c9 00 08 	lwz     r30,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)       
{                                                                     
ffc21074:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc21078:	7c 7f 1b 78 	mr      r31,r3                                 
    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;            
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc2107c:	80 7e 00 9c 	lwz     r3,156(r30)                            
 *     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)       
{                                                                     
ffc21080:	93 61 00 0c 	stw     r27,12(r1)                             
ffc21084:	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;            
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc21088:	38 a0 00 00 	li      r5,0                                   
 *     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)       
{                                                                     
ffc2108c:	93 81 00 10 	stw     r28,16(r1)                             
ffc21090:	7c 9c 23 78 	mr      r28,r4                                 
    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;            
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc21094:	38 80 00 00 	li      r4,0                                   
 *     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)       
{                                                                     
ffc21098:	93 a1 00 14 	stw     r29,20(r1)                             
    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;            
ffc2109c:	83 bf 00 1c 	lwz     r29,28(r31)                            
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc210a0:	4b fe ab 35 	bl      ffc0bbd4 <rtems_semaphore_obtain>      
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc210a4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc210a8:	40 9e 00 74 	bne-    cr7,ffc2111c <msdos_file_read+0xc0>    <== NEVER TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    ret = fat_file_read(&fs_info->fat, fat_fd, iop->offset, count,    
ffc210ac:	80 bf 00 0c 	lwz     r5,12(r31)                             
ffc210b0:	7f a4 eb 78 	mr      r4,r29                                 
ffc210b4:	7f c3 f3 78 	mr      r3,r30                                 
ffc210b8:	7f 66 db 78 	mr      r6,r27                                 
ffc210bc:	7f 87 e3 78 	mr      r7,r28                                 
ffc210c0:	4b ff 51 a1 	bl      ffc16260 <fat_file_read>               
                        buffer);                                      
    if (ret > 0)                                                      
ffc210c4:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc210c8:	40 81 00 24 	ble-    ffc210ec <msdos_file_read+0x90>        
        iop->offset += ret;                                           
ffc210cc:	81 1f 00 08 	lwz     r8,8(r31)                              
ffc210d0:	7f ab eb 78 	mr      r11,r29                                
ffc210d4:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc210d8:	7f aa fe 70 	srawi   r10,r29,31                             
ffc210dc:	7d 6b 48 14 	addc    r11,r11,r9                             
ffc210e0:	7d 4a 41 14 	adde    r10,r10,r8                             
ffc210e4:	91 5f 00 08 	stw     r10,8(r31)                             
ffc210e8:	91 7f 00 0c 	stw     r11,12(r31)                            
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
ffc210ec:	80 7e 00 9c 	lwz     r3,156(r30)                            
ffc210f0:	4b fe ac 85 	bl      ffc0bd74 <rtems_semaphore_release>     
    return ret;                                                       
}                                                                     
ffc210f4:	80 01 00 24 	lwz     r0,36(r1)                              
ffc210f8:	7f a3 eb 78 	mr      r3,r29                                 
ffc210fc:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc21100:	7c 08 03 a6 	mtlr    r0                                     
ffc21104:	83 81 00 10 	lwz     r28,16(r1)                             
ffc21108:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc2110c:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc21110:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc21114:	38 21 00 20 	addi    r1,r1,32                               
ffc21118:	4e 80 00 20 	blr                                            
    fat_file_fd_t     *fat_fd = iop->pathinfo.node_access;            
                                                                      
    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);                    
ffc2111c:	48 00 05 81 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc21120:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc21124:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc21128:	3b a0 ff ff 	li      r29,-1                                 <== NOT EXECUTED
ffc2112c:	4b ff ff c8 	b       ffc210f4 <msdos_file_read+0x98>        <== NOT EXECUTED
                                                                      

ffc21250 <msdos_file_stat>: int msdos_file_stat( const rtems_filesystem_location_info_t *loc, struct stat *buf ) {
ffc21250:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc21254:	7c 08 02 a6 	mflr    r0                                     
ffc21258:	7c 69 1b 78 	mr      r9,r3                                  
ffc2125c:	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;              
    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,        
ffc21260:	38 a0 00 00 	li      r5,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;              
ffc21264:	81 43 00 14 	lwz     r10,20(r3)                             
int                                                                   
msdos_file_stat(                                                      
    const rtems_filesystem_location_info_t *loc,                      
    struct stat *buf                                                  
)                                                                     
{                                                                     
ffc21268:	93 c1 00 10 	stw     r30,16(r1)                             
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = loc->mt_entry->fs_info;              
ffc2126c:	83 ca 00 08 	lwz     r30,8(r10)                             
int                                                                   
msdos_file_stat(                                                      
    const rtems_filesystem_location_info_t *loc,                      
    struct stat *buf                                                  
)                                                                     
{                                                                     
ffc21270:	93 e1 00 14 	stw     r31,20(r1)                             
ffc21274:	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,        
ffc21278:	38 80 00 00 	li      r4,0                                   
ffc2127c:	80 7e 00 9c 	lwz     r3,156(r30)                            
int                                                                   
msdos_file_stat(                                                      
    const rtems_filesystem_location_info_t *loc,                      
    struct stat *buf                                                  
)                                                                     
{                                                                     
ffc21280:	93 81 00 08 	stw     r28,8(r1)                              
ffc21284:	93 a1 00 0c 	stw     r29,12(r1)                             
    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;            
ffc21288:	a3 9e 00 06 	lhz     r28,6(r30)                             
    struct stat *buf                                                  
)                                                                     
{                                                                     
    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;                     
ffc2128c:	83 a9 00 08 	lwz     r29,8(r9)                              
    uint32_t           cl_mask = fs_info->fat.vol.bpc - 1;            
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc21290:	4b fe a9 45 	bl      ffc0bbd4 <rtems_semaphore_obtain>      
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc21294:	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;            
ffc21298:	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)                                       
ffc2129c:	40 82 00 94 	bne-    ffc21330 <msdos_file_stat+0xe0>        <== NEVER TAKEN
                                                                      
    rc = fat_sync(&fs_info->fat);                                     
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
    return RC_OK;                                                     
}                                                                     
ffc212a0:	81 5e 00 64 	lwz     r10,100(r30)                           
        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;                                               
ffc212a4:	39 60 00 00 	li      r11,0                                  
    buf->st_size = fat_fd->fat_file_size;                             
ffc212a8:	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);
ffc212ac:	80 ca 00 00 	lwz     r6,0(r10)                              
ffc212b0:	80 ea 00 04 	lwz     r7,4(r10)                              
    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)   
ffc212b4:	7d 1c 4a 14 	add     r8,r28,r9                              
                                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;                                        
ffc212b8:	81 5d 00 0c 	lwz     r10,12(r29)                            
    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)   
ffc212bc:	7d 1c e0 78 	andc    r28,r8,r28                             
      >> FAT_SECTOR512_BITS;                                          
    buf->st_blksize = fs_info->fat.vol.bpc;                           
ffc212c0:	a0 be 00 06 	lhz     r5,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;                                          
ffc212c4:	57 9c ba 7e 	rlwinm  r28,r28,23,9,31                        
    buf->st_blksize = fs_info->fat.vol.bpc;                           
    buf->st_mtime = fat_fd->mtime;                                    
ffc212c8:	81 1d 00 40 	lwz     r8,64(r29)                             
                                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;                                        
ffc212cc:	91 5f 00 08 	stw     r10,8(r31)                             
    buf->st_mode  = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;            
ffc212d0:	39 40 00 00 	li      r10,0                                  
ffc212d4:	61 4a 81 ff 	ori     r10,r10,33279                          
ffc212d8:	91 5f 00 0c 	stw     r10,12(r31)                            
    buf->st_rdev = 0ll;                                               
ffc212dc:	39 40 00 00 	li      r10,0                                  
    buf->st_size = fat_fd->fat_file_size;                             
ffc212e0:	90 7f 00 20 	stw     r3,32(r31)                             
    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);
ffc212e4:	90 df 00 00 	stw     r6,0(r31)                              
ffc212e8:	90 ff 00 04 	stw     r7,4(r31)                              
    buf->st_ino = fat_fd->ino;                                        
    buf->st_mode  = S_IFREG | S_IRWXU | S_IRWXG | S_IRWXO;            
    buf->st_rdev = 0ll;                                               
ffc212ec:	91 5f 00 18 	stw     r10,24(r31)                            
ffc212f0:	91 7f 00 1c 	stw     r11,28(r31)                            
    buf->st_size = fat_fd->fat_file_size;                             
ffc212f4:	91 3f 00 24 	stw     r9,36(r31)                             
    buf->st_blocks = ((fat_fd->fat_file_size + cl_mask) & ~cl_mask)   
ffc212f8:	93 9f 00 44 	stw     r28,68(r31)                            
      >> FAT_SECTOR512_BITS;                                          
    buf->st_blksize = fs_info->fat.vol.bpc;                           
ffc212fc:	90 bf 00 40 	stw     r5,64(r31)                             
    buf->st_mtime = fat_fd->mtime;                                    
ffc21300:	91 1f 00 30 	stw     r8,48(r31)                             
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
ffc21304:	80 7e 00 9c 	lwz     r3,156(r30)                            
ffc21308:	4b fe aa 6d 	bl      ffc0bd74 <rtems_semaphore_release>     
    return RC_OK;                                                     
ffc2130c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc21310:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc21314:	83 81 00 08 	lwz     r28,8(r1)                              
ffc21318:	7c 08 03 a6 	mtlr    r0                                     
ffc2131c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc21320:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc21324:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc21328:	38 21 00 18 	addi    r1,r1,24                               
ffc2132c:	4e 80 00 20 	blr                                            
    uint32_t           cl_mask = fs_info->fat.vol.bpc - 1;            
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
        rtems_set_errno_and_return_minus_one(EIO);                    
ffc21330:	48 00 03 6d 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc21334:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc21338:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc2133c:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc21340:	4b ff ff d0 	b       ffc21310 <msdos_file_stat+0xc0>        <== NOT EXECUTED
                                                                      

ffc21470 <msdos_file_sync>: * RETURNS: * RC_OK on success, or -1 if error occured (errno set appropriately) */ int msdos_file_sync(rtems_libio_t *iop) {
ffc21470:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc21474:	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,        
ffc21478:	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)                                   
{                                                                     
ffc2147c:	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,        
ffc21480:	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;     
ffc21484:	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)                                   
{                                                                     
ffc21488:	93 c1 00 08 	stw     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;     
ffc2148c:	83 c9 00 08 	lwz     r30,8(r9)                              
 * RETURNS:                                                           
 *     RC_OK on success, or -1 if error occured (errno set appropriately)
 */                                                                   
int                                                                   
msdos_file_sync(rtems_libio_t *iop)                                   
{                                                                     
ffc21490:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc21494:	7c 7f 1b 78 	mr      r31,r3                                 
    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,        
ffc21498:	80 7e 00 9c 	lwz     r3,156(r30)                            
ffc2149c:	4b fe a7 39 	bl      ffc0bbd4 <rtems_semaphore_obtain>      
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc214a0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc214a4:	40 9e 00 44 	bne-    cr7,ffc214e8 <msdos_file_sync+0x78>    <== NEVER TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    rc = msdos_file_update(iop);                                      
ffc214a8:	80 7f 00 1c 	lwz     r3,28(r31)                             
ffc214ac:	38 9f 00 28 	addi    r4,r31,40                              
ffc214b0:	4b ff fa a1 	bl      ffc20f50 <msdos_file_update.isra.1>    
    if (rc != RC_OK)                                                  
ffc214b4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc214b8:	40 82 00 0c 	bne-    ffc214c4 <msdos_file_sync+0x54>        <== NEVER TAKEN
    {                                                                 
        rtems_semaphore_release(fs_info->vol_sema);                   
        return rc;                                                    
    }                                                                 
                                                                      
    rc = fat_sync(&fs_info->fat);                                     
ffc214bc:	7f c3 f3 78 	mr      r3,r30                                 
ffc214c0:	4b ff 6b d5 	bl      ffc18094 <fat_sync>                    
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
ffc214c4:	80 7e 00 9c 	lwz     r3,156(r30)                            
ffc214c8:	4b fe a8 ad 	bl      ffc0bd74 <rtems_semaphore_release>     
    return RC_OK;                                                     
}                                                                     
ffc214cc:	80 01 00 14 	lwz     r0,20(r1)                              
ffc214d0:	7f e3 fb 78 	mr      r3,r31                                 
ffc214d4:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc214d8:	7c 08 03 a6 	mtlr    r0                                     
ffc214dc:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc214e0:	38 21 00 10 	addi    r1,r1,16                               
ffc214e4:	4e 80 00 20 	blr                                            
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
                                                                      
    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);                    
ffc214e8:	48 00 01 b5 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc214ec:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc214f0:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc214f4:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
ffc214f8:	4b ff ff d4 	b       ffc214cc <msdos_file_sync+0x5c>        <== NOT EXECUTED
                                                                      

ffc20f50 <msdos_file_update.isra.1>: #include "fat_file.h" #include "msdos.h" static int msdos_file_update(rtems_libio_t *iop)
ffc20f50:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc20f54:	7c 08 02 a6 	mflr    r0                                     
ffc20f58:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc20f5c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc20f60:	90 01 00 14 	stw     r0,20(r1)                              
ffc20f64:	93 c1 00 08 	stw     r30,8(r1)                              
                                                                      
    /*                                                                
     * 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))                                 
ffc20f68:	89 23 00 30 	lbz     r9,48(r3)                              
#include "msdos.h"                                                    
                                                                      
static int                                                            
msdos_file_update(rtems_libio_t *iop)                                 
{                                                                     
    int              rc = RC_OK;                                      
ffc20f6c:	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))                                 
ffc20f70:	71 2a 00 01 	andi.   r10,r9,1                               
ffc20f74:	41 82 00 1c 	beq-    ffc20f90 <msdos_file_update.isra.1+0x40><== ALWAYS TAKEN
            return rc;                                                
        }                                                             
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc20f78:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
ffc20f7c:	83 c1 00 08 	lwz     r30,8(r1)                              <== NOT EXECUTED
ffc20f80:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc20f84:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc20f88:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc20f8c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
     * if fat-file descriptor is not marked as "removed", synchronize 
     * size, first cluster number, write time and date fields of the file
     */                                                               
    if (!FAT_FILE_IS_REMOVED(fat_fd))                                 
    {                                                                 
        rc = msdos_set_first_cluster_num(iop->pathinfo.mt_entry, fat_fd);
ffc20f90:	80 64 00 00 	lwz     r3,0(r4)                               
ffc20f94:	7c 9e 23 78 	mr      r30,r4                                 
ffc20f98:	7f e4 fb 78 	mr      r4,r31                                 
ffc20f9c:	4b ff c5 d5 	bl      ffc1d570 <msdos_set_first_cluster_num> 
        if (rc != RC_OK)                                              
ffc20fa0:	2c 03 00 00 	cmpwi   r3,0                                   
ffc20fa4:	40 82 ff d4 	bne+    ffc20f78 <msdos_file_update.isra.1+0x28><== NEVER TAKEN
        {                                                             
            return rc;                                                
        }                                                             
                                                                      
        rc = msdos_set_file_size(iop->pathinfo.mt_entry, fat_fd);     
ffc20fa8:	80 7e 00 00 	lwz     r3,0(r30)                              
ffc20fac:	7f e4 fb 78 	mr      r4,r31                                 
ffc20fb0:	4b ff c6 d9 	bl      ffc1d688 <msdos_set_file_size>         
        if (rc != RC_OK)                                              
ffc20fb4:	2c 03 00 00 	cmpwi   r3,0                                   
ffc20fb8:	40 82 ff c0 	bne+    ffc20f78 <msdos_file_update.isra.1+0x28><== NEVER TAKEN
            return rc;                                                
        }                                                             
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc20fbc:	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);
ffc20fc0:	7f e4 fb 78 	mr      r4,r31                                 
ffc20fc4:	80 7e 00 00 	lwz     r3,0(r30)                              
            return rc;                                                
        }                                                             
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc20fc8:	7c 08 03 a6 	mtlr    r0                                     
ffc20fcc:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc20fd0:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc20fd4:	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);
ffc20fd8:	4b ff c4 50 	b       ffc1d428 <msdos_set_dir_wrt_time_and_date>
                                                                      

ffc21130 <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) {
ffc21130:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc21134:	7c 08 02 a6 	mflr    r0                                     
ffc21138:	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;     
ffc2113c:	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) 
{                                                                     
ffc21140:	93 c1 00 18 	stw     r30,24(r1)                             
    ssize_t            ret = 0;                                       
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
ffc21144:	83 c9 00 08 	lwz     r30,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) 
{                                                                     
ffc21148:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc2114c:	7c 7f 1b 78 	mr      r31,r3                                 
    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;            
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc21150:	80 7e 00 9c 	lwz     r3,156(r30)                            
 *     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) 
{                                                                     
ffc21154:	93 61 00 0c 	stw     r27,12(r1)                             
ffc21158:	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;            
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc2115c:	38 a0 00 00 	li      r5,0                                   
 *     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) 
{                                                                     
ffc21160:	93 a1 00 14 	stw     r29,20(r1)                             
ffc21164:	7c 9d 23 78 	mr      r29,r4                                 
    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;            
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc21168:	38 80 00 00 	li      r4,0                                   
 *     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) 
{                                                                     
ffc2116c:	93 81 00 10 	stw     r28,16(r1)                             
    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;            
ffc21170:	83 9f 00 1c 	lwz     r28,28(r31)                            
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc21174:	4b fe aa 61 	bl      ffc0bbd4 <rtems_semaphore_obtain>      
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc21178:	2c 03 00 00 	cmpwi   r3,0                                   
ffc2117c:	40 82 00 b0 	bne-    ffc2122c <msdos_file_write+0xfc>       <== NEVER TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    if ((iop->flags & LIBIO_FLAGS_APPEND) != 0)                       
ffc21180:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc21184:	71 2a 02 00 	andi.   r10,r9,512                             
ffc21188:	40 82 00 8c 	bne-    ffc21214 <msdos_file_write+0xe4>       
ffc2118c:	80 bf 00 0c 	lwz     r5,12(r31)                             
        iop->offset = fat_fd->fat_file_size;                          
                                                                      
    ret = fat_file_write(&fs_info->fat, fat_fd, iop->offset, count,   
ffc21190:	7f a7 eb 78 	mr      r7,r29                                 
ffc21194:	7f c3 f3 78 	mr      r3,r30                                 
ffc21198:	7f 84 e3 78 	mr      r4,r28                                 
ffc2119c:	7f 66 db 78 	mr      r6,r27                                 
ffc211a0:	4b ff 59 09 	bl      ffc16aa8 <fat_file_write>              
                         buffer);                                     
    if (ret < 0)                                                      
ffc211a4:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc211a8:	41 80 00 98 	blt-    ffc21240 <msdos_file_write+0x110>      <== NEVER TAKEN
                                                                      
    /*                                                                
     * update file size in both fat-file descriptor and file control block if
     * file was extended                                              
     */                                                               
    iop->offset += ret;                                               
ffc211ac:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc211b0:	7f ab eb 78 	mr      r11,r29                                
ffc211b4:	81 1f 00 08 	lwz     r8,8(r31)                              
ffc211b8:	7f aa fe 70 	srawi   r10,r29,31                             
ffc211bc:	7d 6b 48 14 	addc    r11,r11,r9                             
ffc211c0:	7d 4a 41 14 	adde    r10,r10,r8                             
    if (iop->offset > fat_fd->fat_file_size)                          
ffc211c4:	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;                                               
ffc211c8:	91 5f 00 08 	stw     r10,8(r31)                             
    if (iop->offset > fat_fd->fat_file_size)                          
ffc211cc:	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;                                               
ffc211d0:	91 7f 00 0c 	stw     r11,12(r31)                            
    if (iop->offset > fat_fd->fat_file_size)                          
ffc211d4:	41 9d 00 50 	bgt-    cr7,ffc21224 <msdos_file_write+0xf4>   <== NEVER TAKEN
ffc211d8:	40 9e 00 0c 	bne-    cr7,ffc211e4 <msdos_file_write+0xb4>   <== NEVER TAKEN
ffc211dc:	7f 8b 48 40 	cmplw   cr7,r11,r9                             
ffc211e0:	41 9d 00 44 	bgt-    cr7,ffc21224 <msdos_file_write+0xf4>   
        fat_fd->fat_file_size = iop->offset;                          
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
ffc211e4:	80 7e 00 9c 	lwz     r3,156(r30)                            
ffc211e8:	4b fe ab 8d 	bl      ffc0bd74 <rtems_semaphore_release>     
    return ret;                                                       
}                                                                     
ffc211ec:	80 01 00 24 	lwz     r0,36(r1)                              
ffc211f0:	7f a3 eb 78 	mr      r3,r29                                 
ffc211f4:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc211f8:	7c 08 03 a6 	mtlr    r0                                     
ffc211fc:	83 81 00 10 	lwz     r28,16(r1)                             
ffc21200:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc21204:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc21208:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc2120c:	38 21 00 20 	addi    r1,r1,32                               
ffc21210:	4e 80 00 20 	blr                                            
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    if ((iop->flags & LIBIO_FLAGS_APPEND) != 0)                       
        iop->offset = fat_fd->fat_file_size;                          
ffc21214:	80 bc 00 18 	lwz     r5,24(r28)                             
ffc21218:	90 7f 00 08 	stw     r3,8(r31)                              
ffc2121c:	90 bf 00 0c 	stw     r5,12(r31)                             
ffc21220:	4b ff ff 70 	b       ffc21190 <msdos_file_write+0x60>       
     * update file size in both fat-file descriptor and file control block if
     * file was extended                                              
     */                                                               
    iop->offset += ret;                                               
    if (iop->offset > fat_fd->fat_file_size)                          
        fat_fd->fat_file_size = iop->offset;                          
ffc21224:	91 7c 00 18 	stw     r11,24(r28)                            
ffc21228:	4b ff ff bc 	b       ffc211e4 <msdos_file_write+0xb4>       
    fat_file_fd_t     *fat_fd = iop->pathinfo.node_access;            
                                                                      
    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);                    
ffc2122c:	48 00 04 71 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc21230:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc21234:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc21238:	3b a0 ff ff 	li      r29,-1                                 <== NOT EXECUTED
ffc2123c:	4b ff ff b0 	b       ffc211ec <msdos_file_write+0xbc>       <== NOT EXECUTED
                                                                      
    ret = fat_file_write(&fs_info->fat, fat_fd, iop->offset, count,   
                         buffer);                                     
    if (ret < 0)                                                      
    {                                                                 
        rtems_semaphore_release(fs_info->vol_sema);                   
ffc21240:	80 7e 00 9c 	lwz     r3,156(r30)                            <== NOT EXECUTED
        return -1;                                                    
ffc21244:	3b a0 ff ff 	li      r29,-1                                 <== NOT EXECUTED
                                                                      
    ret = fat_file_write(&fs_info->fat, fat_fd, iop->offset, count,   
                         buffer);                                     
    if (ret < 0)                                                      
    {                                                                 
        rtems_semaphore_release(fs_info->vol_sema);                   
ffc21248:	4b fe ab 2d 	bl      ffc0bd74 <rtems_semaphore_release>     <== NOT EXECUTED
        return -1;                                                    
ffc2124c:	4b ff ff a0 	b       ffc211ec <msdos_file_write+0xbc>       <== NOT EXECUTED
                                                                      

ffc206cc <msdos_filename_unix2dos>: /* * Fill the dos filename string with blanks. These are DOS's pad * characters. */ for (i = 0; i <= 10; i++) dn[i] = ' ';
ffc206cc:	39 00 00 0b 	li      r8,11                                  
ffc206d0:	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++)                                            
ffc206d4:	39 20 00 00 	li      r9,0                                   
		dn[i] = ' ';                                                        
ffc206d8:	39 40 00 20 	li      r10,32                                 
ffc206dc:	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++)                                            
ffc206e0:	39 29 00 01 	addi    r9,r9,1                                
ffc206e4:	42 00 ff f8 	bdnz+   ffc206dc <msdos_filename_unix2dos+0x10>
                                                                      
	/*                                                                   
	 * The filenames "." and ".." are handled specially, since they      
	 * don't follow dos filename rules.                                  
	 */                                                                  
	if (un[0] == '.' && unlen == 1) {                                    
ffc206e8:	89 23 00 00 	lbz     r9,0(r3)                               
ffc206ec:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
ffc206f0:	41 9e 01 54 	beq-    cr7,ffc20844 <msdos_filename_unix2dos+0x178><== NEVER TAKEN
	}                                                                    
                                                                      
  /*                                                                  
   * Remove any dots from the start of a file name.                   
   */                                                                 
	while (unlen && (*un == '.')) {                                      
ffc206f4:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc206f8:	41 9e 00 84 	beq-    cr7,ffc2077c <msdos_filename_unix2dos+0xb0><== NEVER TAKEN
	 * 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++) {         
ffc206fc:	2f 09 00 00 	cmpwi   cr6,r9,0                               
ffc20700:	41 9a 00 7c 	beq-    cr6,ffc2077c <msdos_filename_unix2dos+0xb0><== NEVER TAKEN
    if (msdos_map[c] == 0)                                            
ffc20704:	3c e0 ff c3 	lis     r7,-61                                 
ffc20708:	38 e7 21 f8 	addi    r7,r7,8696                             
ffc2070c:	7d 47 48 ae 	lbzx    r10,r7,r9                              
ffc20710:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc20714:	41 9e 01 84 	beq-    cr7,ffc20898 <msdos_filename_unix2dos+0x1cc>
      break;                                                          
		dn[i] = msdos_map[c];                                               
		un++;                                                               
		unlen--;                                                            
ffc20718:	38 84 ff ff 	addi    r4,r4,-1                               
	 * upper case.                                                       
	 */                                                                  
	for (i = 0; i <= 7 && unlen && (c = *un) && c != '.'; i++) {         
    if (msdos_map[c] == 0)                                            
      break;                                                          
		dn[i] = msdos_map[c];                                               
ffc2071c:	99 45 00 00 	stb     r10,0(r5)                              
	 * 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++) {         
ffc20720:	2f 84 00 00 	cmpwi   cr7,r4,0                               
    if (msdos_map[c] == 0)                                            
      break;                                                          
		dn[i] = msdos_map[c];                                               
		un++;                                                               
ffc20724:	39 43 00 01 	addi    r10,r3,1                               
/*                                                                    
 * 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)          
ffc20728:	39 20 00 07 	li      r9,7                                   
ffc2072c:	7c a6 2b 78 	mr      r6,r5                                  
ffc20730:	7d 29 03 a6 	mtctr   r9                                     
ffc20734:	38 63 00 08 	addi    r3,r3,8                                
	 */                                                                  
	for (i = 0; i <= 7 && unlen && (c = *un) && c != '.'; i++) {         
    if (msdos_map[c] == 0)                                            
      break;                                                          
		dn[i] = msdos_map[c];                                               
		un++;                                                               
ffc20738:	39 6a 00 01 	addi    r11,r10,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++) {         
ffc2073c:	41 9e 00 40 	beq-    cr7,ffc2077c <msdos_filename_unix2dos+0xb0>
ffc20740:	89 2a 00 00 	lbz     r9,0(r10)                              
ffc20744:	2f 09 00 00 	cmpwi   cr6,r9,0                               
ffc20748:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
ffc2074c:	41 9a 00 30 	beq-    cr6,ffc2077c <msdos_filename_unix2dos+0xb0><== NEVER TAKEN
ffc20750:	41 9e 00 50 	beq-    cr7,ffc207a0 <msdos_filename_unix2dos+0xd4>
    if (msdos_map[c] == 0)                                            
ffc20754:	7d 07 48 ae 	lbzx    r8,r7,r9                               
ffc20758:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc2075c:	41 9e 00 3c 	beq-    cr7,ffc20798 <msdos_filename_unix2dos+0xcc>
      break;                                                          
		dn[i] = msdos_map[c];                                               
ffc20760:	9d 06 00 01 	stbu    r8,1(r6)                               
		un++;                                                               
		unlen--;                                                            
ffc20764:	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++) {         
ffc20768:	42 40 00 1c 	bdz-    ffc20784 <msdos_filename_unix2dos+0xb8>
ffc2076c:	2f 84 00 00 	cmpwi   cr7,r4,0                               
    if (msdos_map[c] == 0)                                            
      break;                                                          
		dn[i] = msdos_map[c];                                               
		un++;                                                               
ffc20770:	7d 6a 5b 78 	mr      r10,r11                                
ffc20774:	39 6a 00 01 	addi    r11,r10,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++) {         
ffc20778:	40 9e ff c8 	bne+    cr7,ffc20740 <msdos_filename_unix2dos+0x74>
    dn[i] = msdos_map[c];                                             
		un++;                                                               
		unlen--;                                                            
	}                                                                    
	return 0;                                                            
}                                                                     
ffc2077c:	38 60 00 00 	li      r3,0                                   
ffc20780:	4e 80 00 20 	blr                                            
                                                                      
	/*                                                                   
	 * Strip any further characters up to a '.' or the end of the        
	 * string.                                                           
	 */                                                                  
	while (unlen && (c = *un)) {                                         
ffc20784:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc20788:	41 be ff f4 	beq-    cr7,ffc2077c <msdos_filename_unix2dos+0xb0><== NEVER TAKEN
ffc2078c:	89 2a 00 01 	lbz     r9,1(r10)                              
	 */                                                                  
	for (i = 0; i <= 7 && unlen && (c = *un) && c != '.'; i++) {         
    if (msdos_map[c] == 0)                                            
      break;                                                          
		dn[i] = msdos_map[c];                                               
		un++;                                                               
ffc20790:	7c 6a 1b 78 	mr      r10,r3                                 
ffc20794:	2f 09 00 00 	cmpwi   cr6,r9,0                               
                                                                      
	/*                                                                   
	 * Strip any further characters up to a '.' or the end of the        
	 * string.                                                           
	 */                                                                  
	while (unlen && (c = *un)) {                                         
ffc20798:	41 ba ff e4 	beq-    cr6,ffc2077c <msdos_filename_unix2dos+0xb0><== NEVER TAKEN
ffc2079c:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
		un++;                                                               
ffc207a0:	39 2a 00 01 	addi    r9,r10,1                               
		unlen--;                                                            
ffc207a4:	39 04 ff ff 	addi    r8,r4,-1                               
		/* Make sure we've skipped over the dot before stopping. */         
		if (c == '.')                                                       
ffc207a8:	41 9e 00 28 	beq-    cr7,ffc207d0 <msdos_filename_unix2dos+0x104>
ffc207ac:	7c 89 03 a6 	mtctr   r4                                     
                                                                      
	/*                                                                   
	 * Strip any further characters up to a '.' or the end of the        
	 * string.                                                           
	 */                                                                  
	while (unlen && (c = *un)) {                                         
ffc207b0:	42 40 ff cc 	bdz+    ffc2077c <msdos_filename_unix2dos+0xb0>
ffc207b4:	89 49 00 00 	lbz     r10,0(r9)                              
		un++;                                                               
		unlen--;                                                            
ffc207b8:	39 08 ff ff 	addi    r8,r8,-1                               
	/*                                                                   
	 * Strip any further characters up to a '.' or the end of the        
	 * string.                                                           
	 */                                                                  
	while (unlen && (c = *un)) {                                         
		un++;                                                               
ffc207bc:	39 29 00 01 	addi    r9,r9,1                                
                                                                      
	/*                                                                   
	 * Strip any further characters up to a '.' or the end of the        
	 * string.                                                           
	 */                                                                  
	while (unlen && (c = *un)) {                                         
ffc207c0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
		un++;                                                               
		unlen--;                                                            
		/* Make sure we've skipped over the dot before stopping. */         
		if (c == '.')                                                       
ffc207c4:	2f 0a 00 2e 	cmpwi   cr6,r10,46                             
                                                                      
	/*                                                                   
	 * Strip any further characters up to a '.' or the end of the        
	 * string.                                                           
	 */                                                                  
	while (unlen && (c = *un)) {                                         
ffc207c8:	41 be ff b4 	beq-    cr7,ffc2077c <msdos_filename_unix2dos+0xb0><== NEVER TAKEN
		un++;                                                               
		unlen--;                                                            
		/* Make sure we've skipped over the dot before stopping. */         
		if (c == '.')                                                       
ffc207cc:	40 9a ff e4 	bne+    cr6,ffc207b0 <msdos_filename_unix2dos+0xe4><== ALWAYS TAKEN
	/*                                                                   
	 * Copy in the extension part of the name, if any. Force to upper    
	 * case. Note that the extension is allowed to contain '.'s.         
	 * Filenames in this form are probably inaccessable under dos.       
	 */                                                                  
	for (i = 8; i <= 10 && unlen && (c = *un); i++) {                    
ffc207d0:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc207d4:	41 be ff a8 	beq-    cr7,ffc2077c <msdos_filename_unix2dos+0xb0><== NEVER TAKEN
ffc207d8:	89 49 00 00 	lbz     r10,0(r9)                              
ffc207dc:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc207e0:	41 be ff 9c 	beq-    cr7,ffc2077c <msdos_filename_unix2dos+0xb0><== NEVER TAKEN
    if (msdos_map[c] == 0)                                            
ffc207e4:	7d 47 50 ae 	lbzx    r10,r7,r10                             
ffc207e8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc207ec:	41 be ff 90 	beq-    cr7,ffc2077c <msdos_filename_unix2dos+0xb0>
	/*                                                                   
	 * 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++) {                    
ffc207f0:	2f 88 00 01 	cmpwi   cr7,r8,1                               
    if (msdos_map[c] == 0)                                            
      break;                                                          
    dn[i] = msdos_map[c];                                             
ffc207f4:	99 45 00 08 	stb     r10,8(r5)                              
	/*                                                                   
	 * 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++) {                    
ffc207f8:	41 be ff 84 	beq-    cr7,ffc2077c <msdos_filename_unix2dos+0xb0><== NEVER TAKEN
ffc207fc:	89 49 00 01 	lbz     r10,1(r9)                              
ffc20800:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc20804:	41 be ff 78 	beq-    cr7,ffc2077c <msdos_filename_unix2dos+0xb0><== NEVER TAKEN
    if (msdos_map[c] == 0)                                            
ffc20808:	7d 47 50 ae 	lbzx    r10,r7,r10                             
ffc2080c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc20810:	41 be ff 6c 	beq-    cr7,ffc2077c <msdos_filename_unix2dos+0xb0><== NEVER TAKEN
	/*                                                                   
	 * Copy in the extension part of the name, if any. Force to upper    
	 * case. Note that the extension is allowed to contain '.'s.         
	 * Filenames in this form are probably inaccessable under dos.       
	 */                                                                  
	for (i = 8; i <= 10 && unlen && (c = *un); i++) {                    
ffc20814:	2f 88 00 02 	cmpwi   cr7,r8,2                               
    if (msdos_map[c] == 0)                                            
      break;                                                          
    dn[i] = msdos_map[c];                                             
ffc20818:	99 45 00 09 	stb     r10,9(r5)                              
	/*                                                                   
	 * 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++) {                    
ffc2081c:	41 be ff 60 	beq-    cr7,ffc2077c <msdos_filename_unix2dos+0xb0><== NEVER TAKEN
ffc20820:	89 29 00 02 	lbz     r9,2(r9)                               
ffc20824:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc20828:	41 be ff 54 	beq-    cr7,ffc2077c <msdos_filename_unix2dos+0xb0><== NEVER TAKEN
    if (msdos_map[c] == 0)                                            
ffc2082c:	7d 27 48 ae 	lbzx    r9,r7,r9                               
ffc20830:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc20834:	41 be ff 48 	beq-    cr7,ffc2077c <msdos_filename_unix2dos+0xb0><== NEVER TAKEN
      break;                                                          
    dn[i] = msdos_map[c];                                             
ffc20838:	99 25 00 0a 	stb     r9,10(r5)                              
		un++;                                                               
		unlen--;                                                            
	}                                                                    
	return 0;                                                            
}                                                                     
ffc2083c:	38 60 00 00 	li      r3,0                                   
ffc20840:	4e 80 00 20 	blr                                            
                                                                      
	/*                                                                   
	 * The filenames "." and ".." are handled specially, since they      
	 * don't follow dos filename rules.                                  
	 */                                                                  
	if (un[0] == '.' && unlen == 1) {                                    
ffc20844:	2f 84 00 01 	cmpwi   cr7,r4,1                               <== NOT EXECUTED
ffc20848:	41 9e 00 48 	beq-    cr7,ffc20890 <msdos_filename_unix2dos+0x1c4><== NOT EXECUTED
		dn[0] = '.';                                                        
		return 0;                                                           
	}                                                                    
	if (un[0] == '.' && un[1] == '.' && unlen == 2) {                    
ffc2084c:	89 23 00 01 	lbz     r9,1(r3)                               <== NOT EXECUTED
ffc20850:	2f 89 00 2e 	cmpwi   cr7,r9,46                              <== NOT EXECUTED
ffc20854:	40 be 00 0c 	bne+    cr7,ffc20860 <msdos_filename_unix2dos+0x194><== NOT EXECUTED
ffc20858:	2f 84 00 02 	cmpwi   cr7,r4,2                               <== NOT EXECUTED
ffc2085c:	41 9e 00 44 	beq-    cr7,ffc208a0 <msdos_filename_unix2dos+0x1d4><== NOT EXECUTED
	}                                                                    
                                                                      
  /*                                                                  
   * Remove any dots from the start of a file name.                   
   */                                                                 
	while (unlen && (*un == '.')) {                                      
ffc20860:	2f 84 00 00 	cmpwi   cr7,r4,0                               <== NOT EXECUTED
ffc20864:	7c 89 03 a6 	mtctr   r4                                     <== NOT EXECUTED
ffc20868:	40 be 00 14 	bne+    cr7,ffc2087c <msdos_filename_unix2dos+0x1b0><== NOT EXECUTED
ffc2086c:	4b ff ff 10 	b       ffc2077c <msdos_filename_unix2dos+0xb0><== NOT EXECUTED
ffc20870:	89 23 00 00 	lbz     r9,0(r3)                               <== NOT EXECUTED
ffc20874:	2f 89 00 2e 	cmpwi   cr7,r9,46                              <== NOT EXECUTED
ffc20878:	40 be fe 84 	bne-    cr7,ffc206fc <msdos_filename_unix2dos+0x30><== NOT EXECUTED
		un++;                                                               
ffc2087c:	38 63 00 01 	addi    r3,r3,1                                <== NOT EXECUTED
		unlen--;                                                            
ffc20880:	38 84 ff ff 	addi    r4,r4,-1                               <== NOT EXECUTED
	}                                                                    
                                                                      
  /*                                                                  
   * Remove any dots from the start of a file name.                   
   */                                                                 
	while (unlen && (*un == '.')) {                                      
ffc20884:	42 00 ff ec 	bdnz+   ffc20870 <msdos_filename_unix2dos+0x1a4><== NOT EXECUTED
    dn[i] = msdos_map[c];                                             
		un++;                                                               
		unlen--;                                                            
	}                                                                    
	return 0;                                                            
}                                                                     
ffc20888:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc2088c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
	/*                                                                   
	 * The filenames "." and ".." are handled specially, since they      
	 * don't follow dos filename rules.                                  
	 */                                                                  
	if (un[0] == '.' && unlen == 1) {                                    
		dn[0] = '.';                                                        
ffc20890:	99 25 00 00 	stb     r9,0(r5)                               <== NOT EXECUTED
		return 0;                                                           
ffc20894:	4b ff fe e8 	b       ffc2077c <msdos_filename_unix2dos+0xb0><== NOT EXECUTED
	 * 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)                                            
ffc20898:	7c 6a 1b 78 	mr      r10,r3                                 
ffc2089c:	4b ff fe fc 	b       ffc20798 <msdos_filename_unix2dos+0xcc>
	if (un[0] == '.' && unlen == 1) {                                    
		dn[0] = '.';                                                        
		return 0;                                                           
	}                                                                    
	if (un[0] == '.' && un[1] == '.' && unlen == 2) {                    
		dn[0] = '.';                                                        
ffc208a0:	99 25 00 00 	stb     r9,0(r5)                               <== NOT EXECUTED
		dn[1] = '.';                                                        
ffc208a4:	99 25 00 01 	stb     r9,1(r5)                               <== NOT EXECUTED
		return 0;                                                           
ffc208a8:	4b ff fe d4 	b       ffc2077c <msdos_filename_unix2dos+0xb0><== NOT EXECUTED
                                                                      

ffc1eb50 <msdos_find_name>: msdos_find_name( rtems_filesystem_location_info_t *parent_loc, const char *name, int name_len ) {
ffc1eb50:	94 21 ff a8 	stwu    r1,-88(r1)                             
ffc1eb54:	7c 08 02 a6 	mflr    r0                                     
    int                rc = RC_OK;                                    
    msdos_fs_info_t   *fs_info = parent_loc->mt_entry->fs_info;       
    fat_file_fd_t     *fat_fd = NULL;                                 
ffc1eb58:	39 20 00 00 	li      r9,0                                   
msdos_find_name(                                                      
    rtems_filesystem_location_info_t *parent_loc,                     
    const char                       *name,                           
    int                               name_len                        
    )                                                                 
{                                                                     
ffc1eb5c:	90 01 00 5c 	stw     r0,92(r1)                              
    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,                            
ffc1eb60:	38 c0 00 0b 	li      r6,11                                  
    const char                       *name,                           
    int                               name_len                        
    )                                                                 
{                                                                     
    int                rc = RC_OK;                                    
    msdos_fs_info_t   *fs_info = parent_loc->mt_entry->fs_info;       
ffc1eb64:	81 43 00 14 	lwz     r10,20(r3)                             
msdos_find_name(                                                      
    rtems_filesystem_location_info_t *parent_loc,                     
    const char                       *name,                           
    int                               name_len                        
    )                                                                 
{                                                                     
ffc1eb68:	93 a1 00 4c 	stw     r29,76(r1)                             
ffc1eb6c:	7c 9d 23 78 	mr      r29,r4                                 
    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,                            
ffc1eb70:	7c a4 2b 78 	mr      r4,r5                                  
msdos_find_name(                                                      
    rtems_filesystem_location_info_t *parent_loc,                     
    const char                       *name,                           
    int                               name_len                        
    )                                                                 
{                                                                     
ffc1eb74:	93 c1 00 50 	stw     r30,80(r1)                             
ffc1eb78:	7c be 2b 78 	mr      r30,r5                                 
    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,                            
ffc1eb7c:	38 a1 00 08 	addi    r5,r1,8                                
msdos_find_name(                                                      
    rtems_filesystem_location_info_t *parent_loc,                     
    const char                       *name,                           
    int                               name_len                        
    )                                                                 
{                                                                     
ffc1eb80:	93 e1 00 54 	stw     r31,84(r1)                             
ffc1eb84:	7c 7f 1b 78 	mr      r31,r3                                 
    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,                            
ffc1eb88:	7f a3 eb 78 	mr      r3,r29                                 
msdos_find_name(                                                      
    rtems_filesystem_location_info_t *parent_loc,                     
    const char                       *name,                           
    int                               name_len                        
    )                                                                 
{                                                                     
ffc1eb8c:	93 81 00 48 	stw     r28,72(r1)                             
    int                rc = RC_OK;                                    
    msdos_fs_info_t   *fs_info = parent_loc->mt_entry->fs_info;       
    fat_file_fd_t     *fat_fd = NULL;                                 
ffc1eb90:	91 21 00 38 	stw     r9,56(r1)                              
    const char                       *name,                           
    int                               name_len                        
    )                                                                 
{                                                                     
    int                rc = RC_OK;                                    
    msdos_fs_info_t   *fs_info = parent_loc->mt_entry->fs_info;       
ffc1eb94:	83 8a 00 08 	lwz     r28,8(r10)                             
    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);         
ffc1eb98:	91 21 00 08 	stw     r9,8(r1)                               
ffc1eb9c:	91 21 00 0c 	stw     r9,12(r1)                              
ffc1eba0:	91 21 00 10 	stw     r9,16(r1)                              
ffc1eba4:	91 21 00 14 	stw     r9,20(r1)                              
ffc1eba8:	91 21 00 18 	stw     r9,24(r1)                              
ffc1ebac:	91 21 00 1c 	stw     r9,28(r1)                              
ffc1ebb0:	91 21 00 20 	stw     r9,32(r1)                              
ffc1ebb4:	91 21 00 24 	stw     r9,36(r1)                              
                                                                      
    name_type = msdos_long_to_short (name,                            
ffc1ebb8:	4b ff e6 21 	bl      ffc1d1d8 <msdos_long_to_short>         
ffc1ebbc:	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,
ffc1ebc0:	7f c6 f3 78 	mr      r6,r30                                 
ffc1ebc4:	38 80 00 00 	li      r4,0                                   
ffc1ebc8:	7f e3 fb 78 	mr      r3,r31                                 
ffc1ebcc:	7f a5 eb 78 	mr      r5,r29                                 
ffc1ebd0:	39 01 00 28 	addi    r8,r1,40                               
ffc1ebd4:	39 21 00 08 	addi    r9,r1,8                                
ffc1ebd8:	4b ff fe 45 	bl      ffc1ea1c <msdos_get_name_node>         
                             &dir_pos, node_entry);                   
    if (rc != RC_OK)                                                  
ffc1ebdc:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1ebe0:	40 82 00 18 	bne-    ffc1ebf8 <msdos_find_name+0xa8>        
        return rc;                                                    
                                                                      
    if (((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_VOLUME_ID) ||     
ffc1ebe4:	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;                              
ffc1ebe8:	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) ||     
ffc1ebec:	55 2a 07 38 	rlwinm  r10,r9,0,28,28                         
ffc1ebf0:	71 48 00 ff 	andi.   r8,r10,255                             
ffc1ebf4:	41 82 00 28 	beq-    ffc1ec1c <msdos_find_name+0xcc>        <== ALWAYS TAKEN
                                                                      
    /* update node_info_ptr field */                                  
    parent_loc->node_access = fat_fd;                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc1ebf8:	80 01 00 5c 	lwz     r0,92(r1)                              
ffc1ebfc:	7f c3 f3 78 	mr      r3,r30                                 
ffc1ec00:	83 81 00 48 	lwz     r28,72(r1)                             
ffc1ec04:	7c 08 03 a6 	mtlr    r0                                     
ffc1ec08:	83 a1 00 4c 	lwz     r29,76(r1)                             
ffc1ec0c:	83 c1 00 50 	lwz     r30,80(r1)                             
ffc1ec10:	83 e1 00 54 	lwz     r31,84(r1)                             
ffc1ec14:	38 21 00 58 	addi    r1,r1,88                               
ffc1ec18:	4e 80 00 20 	blr                                            
    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) ||     
ffc1ec1c:	55 29 06 be 	clrlwi  r9,r9,26                               
ffc1ec20:	2f 89 00 0f 	cmpwi   cr7,r9,15                              
ffc1ec24:	41 9e ff d4 	beq+    cr7,ffc1ebf8 <msdos_find_name+0xa8>    <== 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);             
ffc1ec28:	7f 83 e3 78 	mr      r3,r28                                 
ffc1ec2c:	38 81 00 28 	addi    r4,r1,40                               
ffc1ec30:	38 a1 00 38 	addi    r5,r1,56                               
ffc1ec34:	4b ff 73 15 	bl      ffc15f48 <fat_file_open>               
    if (rc != RC_OK)                                                  
ffc1ec38:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1ec3c:	40 a2 ff bc 	bne-    ffc1ebf8 <msdos_find_name+0xa8>        <== NEVER TAKEN
        return rc;                                                    
                                                                      
    fat_fd->dir_pos = dir_pos;                                        
ffc1ec40:	83 a1 00 38 	lwz     r29,56(r1)                             
     * size and first cluster num to the disk after each write operation
     * (even if one byte is written  - that is TOO slow) because      
     * otherwise real values of these fields stored in fat-file descriptor
     * may be accidentally rewritten with wrong values stored on the disk
     */                                                               
    if (fat_fd->links_num == 1)                                       
ffc1ec44:	81 3d 00 08 	lwz     r9,8(r29)                              
ffc1ec48:	2f 89 00 01 	cmpwi   cr7,r9,1                               
    /* open fat-file corresponded to the found node */                
    rc = fat_file_open(&fs_info->fat, &dir_pos, &fat_fd);             
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    fat_fd->dir_pos = dir_pos;                                        
ffc1ec4c:	81 21 00 28 	lwz     r9,40(r1)                              
ffc1ec50:	91 3d 00 20 	stw     r9,32(r29)                             
ffc1ec54:	81 21 00 2c 	lwz     r9,44(r1)                              
ffc1ec58:	91 3d 00 24 	stw     r9,36(r29)                             
ffc1ec5c:	81 21 00 30 	lwz     r9,48(r1)                              
ffc1ec60:	91 3d 00 28 	stw     r9,40(r29)                             
ffc1ec64:	81 21 00 34 	lwz     r9,52(r1)                              
ffc1ec68:	91 3d 00 2c 	stw     r9,44(r29)                             
     * 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)                                       
ffc1ec6c:	41 9e 00 24 	beq-    cr7,ffc1ec90 <msdos_find_name+0x140>   
            fat_fd->map.last_cln = FAT_UNDEFINED_VALUE;               
        }                                                             
    }                                                                 
                                                                      
    /* close fat-file corresponded to the node we searched in */      
    rc = fat_file_close(&fs_info->fat, parent_loc->node_access);      
ffc1ec70:	80 9f 00 08 	lwz     r4,8(r31)                              
ffc1ec74:	7f 83 e3 78 	mr      r3,r28                                 
ffc1ec78:	4b ff 79 9d 	bl      ffc16614 <fat_file_close>              
    if (rc != RC_OK)                                                  
ffc1ec7c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1ec80:	40 82 00 cc 	bne-    ffc1ed4c <msdos_find_name+0x1fc>       <== NEVER TAKEN
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    /* update node_info_ptr field */                                  
    parent_loc->node_access = fat_fd;                                 
ffc1ec84:	81 21 00 38 	lwz     r9,56(r1)                              
ffc1ec88:	91 3f 00 08 	stw     r9,8(r31)                              
ffc1ec8c:	4b ff ff 6c 	b       ffc1ebf8 <msdos_find_name+0xa8>        
     * 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);          
ffc1ec90:	a1 41 00 1c 	lhz     r10,28(r1)                             
ffc1ec94:	a1 21 00 22 	lhz     r9,34(r1)                              
ffc1ec98:	55 47 c2 3e 	rlwinm  r7,r10,24,8,31                         
ffc1ec9c:	55 4a 44 2e 	rlwinm  r10,r10,8,16,23                        
ffc1eca0:	55 26 c2 3e 	rlwinm  r6,r9,24,8,31                          
ffc1eca4:	7c e7 53 78 	or      r7,r7,r10                              
                                                                      
        time_val = *MSDOS_DIR_WRITE_TIME(node_entry);                 
        date = *MSDOS_DIR_WRITE_DATE(node_entry);                     
ffc1eca8:	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);          
ffc1ecac:	55 28 44 2e 	rlwinm  r8,r9,8,16,23                          
                                                                      
        time_val = *MSDOS_DIR_WRITE_TIME(node_entry);                 
ffc1ecb0:	a1 21 00 1e 	lhz     r9,30(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);          
ffc1ecb4:	54 e7 80 1e 	rlwinm  r7,r7,16,0,15                          
ffc1ecb8:	7c c8 43 78 	or      r8,r6,r8                               
ffc1ecbc:	7c e8 43 78 	or      r8,r7,r8                               
                                                                      
        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));
ffc1ecc0:	55 43 c2 3e 	rlwinm  r3,r10,24,8,31                         
     * 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);          
ffc1ecc4:	91 1d 00 1c 	stw     r8,28(r29)                             
                                                                      
        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));
ffc1ecc8:	55 4a 44 2e 	rlwinm  r10,r10,8,16,23                        
ffc1eccc:	55 24 c2 3e 	rlwinm  r4,r9,24,8,31                          
ffc1ecd0:	55 29 44 2e 	rlwinm  r9,r9,8,16,23                          
ffc1ecd4:	7c 63 53 78 	or      r3,r3,r10                              
ffc1ecd8:	7c 84 4b 78 	or      r4,r4,r9                               
ffc1ecdc:	48 00 18 d5 	bl      ffc205b0 <msdos_date_dos2unix>         
                                                                      
        if ((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_DIRECTORY)     
ffc1ece0:	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));
ffc1ece4:	90 7d 00 40 	stw     r3,64(r29)                             
                                                                      
        if ((*MSDOS_DIR_ATTR(node_entry)) & MSDOS_ATTR_DIRECTORY)     
ffc1ece8:	55 29 06 f6 	rlwinm  r9,r9,0,27,27                          
ffc1ecec:	71 2a 00 ff 	andi.   r10,r9,255                             
ffc1ecf0:	40 82 00 78 	bne-    ffc1ed68 <msdos_find_name+0x218>       
ffc1ecf4:	81 01 00 24 	lwz     r8,36(r1)                              
                return rc;                                            
            }                                                         
        }                                                             
        else                                                          
        {                                                             
            fat_fd->fat_file_size = CF_LE_L(*MSDOS_DIR_FILE_SIZE(node_entry));
ffc1ecf8:	81 21 00 38 	lwz     r9,56(r1)                              
ffc1ecfc:	51 0a 46 3e 	rlwimi  r10,r8,8,24,31                         
ffc1ed00:	51 0a c4 2e 	rlwimi  r10,r8,24,16,23                        
ffc1ed04:	51 0a 42 1e 	rlwimi  r10,r8,8,8,15                          
ffc1ed08:	51 0a c0 0e 	rlwimi  r10,r8,24,0,7                          
            fat_fd->fat_file_type = FAT_FILE;                         
ffc1ed0c:	39 00 00 04 	li      r8,4                                   
                return rc;                                            
            }                                                         
        }                                                             
        else                                                          
        {                                                             
            fat_fd->fat_file_size = CF_LE_L(*MSDOS_DIR_FILE_SIZE(node_entry));
ffc1ed10:	91 49 00 18 	stw     r10,24(r9)                             
            fat_fd->fat_file_type = FAT_FILE;                         
ffc1ed14:	91 09 00 10 	stw     r8,16(r9)                              
            fat_fd->size_limit = MSDOS_MAX_FILE_SIZE;                 
ffc1ed18:	39 00 ff ff 	li      r8,-1                                  
ffc1ed1c:	91 09 00 14 	stw     r8,20(r9)                              
                                                                      
        /* 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) &&                           
ffc1ed20:	2f 8a 00 00 	cmpwi   cr7,r10,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;                           
ffc1ed24:	81 09 00 1c 	lwz     r8,28(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;                                     
ffc1ed28:	38 e0 00 00 	li      r7,0                                   
ffc1ed2c:	90 e9 00 34 	stw     r7,52(r9)                              
        fat_fd->map.disk_cln = fat_fd->cln;                           
ffc1ed30:	91 09 00 38 	stw     r8,56(r9)                              
                                                                      
        if ((fat_fd->fat_file_size != 0) &&                           
ffc1ed34:	41 9e 00 28 	beq-    cr7,ffc1ed5c <msdos_find_name+0x20c>   
            (fat_fd->fat_file_size <= fs_info->fat.vol.bpc))          
ffc1ed38:	a0 fc 00 06 	lhz     r7,6(r28)                              
                                                                      
        /* 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) &&                           
ffc1ed3c:	7f 87 50 40 	cmplw   cr7,r7,r10                             
ffc1ed40:	41 9c 00 1c 	blt-    cr7,ffc1ed5c <msdos_find_name+0x20c>   
            (fat_fd->fat_file_size <= fs_info->fat.vol.bpc))          
        {                                                             
            fat_fd->map.last_cln = fat_fd->cln;                       
ffc1ed44:	91 09 00 3c 	stw     r8,60(r9)                              
ffc1ed48:	4b ff ff 28 	b       ffc1ec70 <msdos_find_name+0x120>       
                                                                      
    /* close fat-file corresponded to the node we searched in */      
    rc = fat_file_close(&fs_info->fat, parent_loc->node_access);      
    if (rc != RC_OK)                                                  
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
ffc1ed4c:	80 81 00 38 	lwz     r4,56(r1)                              <== NOT EXECUTED
ffc1ed50:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc1ed54:	4b ff 78 c1 	bl      ffc16614 <fat_file_close>              <== NOT EXECUTED
ffc1ed58:	4b ff fe a0 	b       ffc1ebf8 <msdos_find_name+0xa8>        <== NOT EXECUTED
        {                                                             
            fat_fd->map.last_cln = fat_fd->cln;                       
        }                                                             
        else                                                          
        {                                                             
            fat_fd->map.last_cln = FAT_UNDEFINED_VALUE;               
ffc1ed5c:	39 40 ff ff 	li      r10,-1                                 
ffc1ed60:	91 49 00 3c 	stw     r10,60(r9)                             
ffc1ed64:	4b ff ff 0c 	b       ffc1ec70 <msdos_find_name+0x120>       
                                                                      
        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;                    
ffc1ed68:	80 81 00 38 	lwz     r4,56(r1)                              
            fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                
ffc1ed6c:	3d 20 00 20 	lis     r9,32                                  
                                                                      
            rc = fat_file_size(&fs_info->fat, fat_fd);                
ffc1ed70:	7f 83 e3 78 	mr      r3,r28                                 
                                                                      
        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;                    
ffc1ed74:	93 c4 00 10 	stw     r30,16(r4)                             
            fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                
ffc1ed78:	91 24 00 14 	stw     r9,20(r4)                              
                                                                      
            rc = fat_file_size(&fs_info->fat, fat_fd);                
ffc1ed7c:	4b ff 80 f5 	bl      ffc16e70 <fat_file_size>               
            if (rc != RC_OK)                                          
ffc1ed80:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1ed84:	40 a2 ff c8 	bne-    ffc1ed4c <msdos_find_name+0x1fc>       <== NEVER TAKEN
ffc1ed88:	81 21 00 38 	lwz     r9,56(r1)                              
ffc1ed8c:	81 49 00 18 	lwz     r10,24(r9)                             
ffc1ed90:	4b ff ff 90 	b       ffc1ed20 <msdos_find_name+0x1d0>       
                                                                      

ffc1da9c <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 ) {
ffc1da9c:	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);                                             
ffc1daa0:	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              
                                )                                     
{                                                                     
ffc1daa4:	94 21 ff 80 	stwu    r1,-128(r1)                            
ffc1daa8:	7c 08 02 a6 	mflr    r0                                     
ffc1daac:	90 01 00 84 	stw     r0,132(r1)                             
ffc1dab0:	92 21 00 44 	stw     r17,68(r1)                             
ffc1dab4:	91 c1 00 38 	stw     r14,56(r1)                             
ffc1dab8:	91 e1 00 3c 	stw     r15,60(r1)                             
ffc1dabc:	92 01 00 40 	stw     r16,64(r1)                             
ffc1dac0:	92 41 00 48 	stw     r18,72(r1)                             
ffc1dac4:	92 61 00 4c 	stw     r19,76(r1)                             
ffc1dac8:	92 81 00 50 	stw     r20,80(r1)                             
ffc1dacc:	92 a1 00 54 	stw     r21,84(r1)                             
ffc1dad0:	92 c1 00 58 	stw     r22,88(r1)                             
ffc1dad4:	92 e1 00 5c 	stw     r23,92(r1)                             
ffc1dad8:	93 01 00 60 	stw     r24,96(r1)                             
ffc1dadc:	93 21 00 64 	stw     r25,100(r1)                            
ffc1dae0:	93 41 00 68 	stw     r26,104(r1)                            
ffc1dae4:	93 61 00 6c 	stw     r27,108(r1)                            
ffc1dae8:	93 81 00 70 	stw     r28,112(r1)                            
ffc1daec:	93 a1 00 74 	stw     r29,116(r1)                            
ffc1daf0:	93 c1 00 78 	stw     r30,120(r1)                            
ffc1daf4:	93 e1 00 7c 	stw     r31,124(r1)                            
ffc1daf8:	91 81 00 34 	stw     r12,52(r1)                             
    uint32_t         empty_space_count = 0;                           
    bool             empty_space_found = false;                       
    uint32_t         entries_per_block;                               
    bool             read_cluster = false;                            
                                                                      
    assert(name_len > 0);                                             
ffc1dafc:	91 61 00 1c 	stw     r11,28(r1)                             
    int                                   name_len,                   
    msdos_name_type_t                     name_type,                  
    fat_dir_pos_t                        *dir_pos,                    
    char                                 *name_dir_entry              
                                )                                     
{                                                                     
ffc1db00:	90 c1 00 24 	stw     r6,36(r1)                              
ffc1db04:	91 01 00 20 	stw     r8,32(r1)                              
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
ffc1db08:	82 23 00 08 	lwz     r17,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);                                             
ffc1db0c:	40 81 09 7c 	ble-    ffc1e488 <msdos_find_name_in_fat_file+0x9ec><== NEVER TAKEN
     * 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))               
ffc1db10:	2e 05 00 00 	cmpwi   cr4,r5,0                               
ffc1db14:	7d 35 4b 78 	mr      r21,r9                                 
static inline void                                                    
fat_dir_pos_init(                                                     
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
ffc1db18:	39 00 00 00 	li      r8,0                                   
  dir_pos->sname.ofs = 0;                                             
  dir_pos->lname.cln = FAT_FILE_SHORT_NAME;                           
ffc1db1c:	39 20 ff ff 	li      r9,-1                                  
static inline void                                                    
fat_dir_pos_init(                                                     
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
ffc1db20:	91 15 00 00 	stw     r8,0(r21)                              
ffc1db24:	7c 98 23 78 	mr      r24,r4                                 
ffc1db28:	7d 56 53 78 	mr      r22,r10                                
  dir_pos->sname.ofs = 0;                                             
ffc1db2c:	91 15 00 04 	stw     r8,4(r21)                              
  dir_pos->lname.cln = FAT_FILE_SHORT_NAME;                           
ffc1db30:	91 35 00 08 	stw     r9,8(r21)                              
  dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;                           
ffc1db34:	91 35 00 0c 	stw     r9,12(r21)                             
                                                                      
    assert(name_len > 0);                                             
                                                                      
    fat_dir_pos_init(dir_pos);                                        
                                                                      
    lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;              
ffc1db38:	91 21 00 0c 	stw     r9,12(r1)                              
ffc1db3c:	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))               
ffc1db40:	41 92 00 18 	beq-    cr4,ffc1db58 <msdos_find_name_in_fat_file+0xbc>
ffc1db44:	81 61 00 20 	lwz     r11,32(r1)                             
      lfn_entries = 0;                                                
ffc1db48:	39 20 00 00 	li      r9,0                                   
ffc1db4c:	91 21 00 18 	stw     r9,24(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))               
ffc1db50:	2f 8b 00 01 	cmpwi   cr7,r11,1                              
ffc1db54:	41 9e 00 28 	beq-    cr7,ffc1db7c <msdos_find_name_in_fat_file+0xe0>
      lfn_entries = 0;                                                
    else                                                              
      lfn_entries =                                                   
        ((name_len - 1) + MSDOS_LFN_LEN_PER_ENTRY) / MSDOS_LFN_LEN_PER_ENTRY;
ffc1db58:	81 61 00 1c 	lwz     r11,28(r1)                             
     * test this make this test always fail, ie add "0 &&".           
     */                                                               
    if (create_node && (name_type == MSDOS_NAME_SHORT))               
      lfn_entries = 0;                                                
    else                                                              
      lfn_entries =                                                   
ffc1db5c:	3e 80 4e c4 	lis     r20,20164                              
ffc1db60:	62 94 ec 4f 	ori     r20,r20,60495                          
        ((name_len - 1) + MSDOS_LFN_LEN_PER_ENTRY) / MSDOS_LFN_LEN_PER_ENTRY;
ffc1db64:	39 2b 00 0c 	addi    r9,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 =                                                   
ffc1db68:	7e 89 a0 96 	mulhw   r20,r9,r20                             
ffc1db6c:	7d 29 fe 70 	srawi   r9,r9,31                               
ffc1db70:	7e 94 16 70 	srawi   r20,r20,2                              
ffc1db74:	7d 29 a0 50 	subf    r9,r9,r20                              
ffc1db78:	91 21 00 18 	stw     r9,24(r1)                              
        ((name_len - 1) + MSDOS_LFN_LEN_PER_ENTRY) / MSDOS_LFN_LEN_PER_ENTRY;
                                                                      
    if (FAT_FD_OF_ROOT_DIR(fat_fd) &&                                 
ffc1db7c:	81 38 00 20 	lwz     r9,32(r24)                             
ffc1db80:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc1db84:	41 9e 05 b0 	beq-    cr7,ffc1e134 <msdos_find_name_in_fat_file+0x698>
        (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))            
        bts2rd = fat_fd->fat_file_size;                               
    else                                                              
        bts2rd = fs_info->fat.vol.bpc;                                
ffc1db88:	a3 91 00 06 	lhz     r28,6(r17)                             
                     * 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 ||                                
ffc1db8c:	81 61 00 20 	lwz     r11,32(r1)                             
    /*                                                                
     * 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),
ffc1db90:	3a e0 00 00 	li      r23,0                                  
                  /*                                                  
                   * Remainder is not empty so is this entry empty ?  
                   */                                                 
                  empty_space_count++;                                
                                                                      
                  if (empty_space_count == (lfn_entries + 1))         
ffc1db94:	81 21 00 18 	lwz     r9,24(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;                       
ffc1db98:	3a 40 00 00 	li      r18,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 ||                                
ffc1db9c:	2d 8b 00 01 	cmpwi   cr3,r11,1                              
ffc1dba0:	80 f1 00 a0 	lwz     r7,160(r17)                            
    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;                           
ffc1dba4:	3b a0 00 00 	li      r29,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;                           
ffc1dba8:	3b 60 00 00 	li      r27,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;                          
ffc1dbac:	39 e0 00 00 	li      r15,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;                                   
ffc1dbb0:	39 c0 00 00 	li      r14,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;                                
ffc1dbb4:	3a 80 00 00 	li      r20,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;                             
ffc1dbb8:	3a 60 00 00 	li      r19,0                                  
    char                                 *name_dir_entry              
                                )                                     
{                                                                     
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    uint32_t         dir_offset = 0;                                  
ffc1dbbc:	3a 00 00 00 	li      r16,0                                  
                        memcpy(name_dir_entry, entry,                 
                               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);    
                        return RC_OK;                                 
                    }                                                 
                                                                      
                    lfn_start.cln = FAT_FILE_SHORT_NAME;              
ffc1dbc0:	3b 40 ff ff 	li      r26,-1                                 
                  /*                                                  
                   * Remainder is not empty so is this entry empty ?  
                   */                                                 
                  empty_space_count++;                                
                                                                      
                  if (empty_space_count == (lfn_entries + 1))         
ffc1dbc4:	3b 29 00 01 	addi    r25,r9,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),
ffc1dbc8:	7e 23 8b 78 	mr      r3,r17                                 
ffc1dbcc:	7f 04 c3 78 	mr      r4,r24                                 
ffc1dbd0:	7e e5 bb 78 	mr      r5,r23                                 
ffc1dbd4:	7f 86 e3 78 	mr      r6,r28                                 
ffc1dbd8:	4b ff 86 89 	bl      ffc16260 <fat_file_read>               
ffc1dbdc:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1dbe0:	41 82 08 f0 	beq-    ffc1e4d0 <msdos_find_name_in_fat_file+0xa34>
        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)                  
ffc1dbe4:	2f 83 00 1f 	cmpwi   cr7,r3,31                              
ffc1dbe8:	40 9d 07 50 	ble-    cr7,ffc1e338 <msdos_find_name_in_fat_file+0x89c><== NEVER TAKEN
            rtems_set_errno_and_return_minus_one(EIO);                
                                                                      
        assert(ret == bts2rd);                                        
ffc1dbec:	7f 83 e0 00 	cmpw    cr7,r3,r28                             
ffc1dbf0:	40 9e 08 bc 	bne-    cr7,ffc1e4ac <msdos_find_name_in_fat_file+0xa10><== NEVER TAKEN
ffc1dbf4:	80 f1 00 a0 	lwz     r7,160(r17)                            
ffc1dbf8:	3b c0 00 00 	li      r30,0                                  
ffc1dbfc:	7c ff 3b 78 	mr      r31,r7                                 
             * 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)                               
ffc1dc00:	2c 1d 00 00 	cmpwi   r29,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) ==       
ffc1dc04:	89 7f 00 00 	lbz     r11,0(r31)                             
             * 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)                               
ffc1dc08:	40 82 00 0c 	bne-    ffc1dc14 <msdos_find_name_in_fat_file+0x178>
ffc1dc0c:	7f db f3 78 	mr      r27,r30                                
ffc1dc10:	7e 0f 83 78 	mr      r15,r16                                
            {                                                         
                empty_space_entry = dir_entry;                        
                empty_space_offset = dir_offset;                      
            }                                                         
                                                                      
            if (remainder_empty)                                      
ffc1dc14:	2f 8b 00 00 	cmpwi   cr7,r11,0                              
ffc1dc18:	41 9e 03 68 	beq-    cr7,ffc1df80 <msdos_find_name_in_fat_file+0x4e4>
                  printf ("MSFS:[3.2] esf:%i esc%i\n", empty_space_found, empty_space_count);
#endif                                                                
                }                                                     
                break;                                                
            }                                                         
            else if (entry_empty)                                     
ffc1dc1c:	2f 8b 00 e5 	cmpwi   cr7,r11,229                            
ffc1dc20:	41 9e 00 b8 	beq-    cr7,ffc1dcd8 <msdos_find_name_in_fat_file+0x23c>
                 * 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)                
ffc1dc24:	41 92 00 14 	beq-    cr4,ffc1dc38 <msdos_find_name_in_fat_file+0x19c>
ffc1dc28:	2f 92 00 00 	cmpwi   cr7,r18,0                              
ffc1dc2c:	40 9e 00 0c 	bne-    cr7,ffc1dc38 <msdos_find_name_in_fat_file+0x19c><== NEVER TAKEN
                {                                                     
                    empty_space_entry = 0;                            
                    empty_space_count = 0;                            
ffc1dc30:	3b a0 00 00 	li      r29,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;                            
ffc1dc34:	3b 60 00 00 	li      r27,0                                  
                                                                      
                /*                                                    
                 * Check the attribute to see if the entry is for a long
                 * file name.                                         
                 */                                                   
                if ((*MSDOS_DIR_ATTR(entry) & MSDOS_ATTR_LFN_MASK) == 
ffc1dc38:	88 df 00 0b 	lbz     r6,11(r31)                             
ffc1dc3c:	54 c6 06 be 	clrlwi  r6,r6,26                               
ffc1dc40:	2f 86 00 0f 	cmpwi   cr7,r6,15                              
ffc1dc44:	41 9e 01 e4 	beq-    cr7,ffc1de28 <msdos_find_name_in_fat_file+0x38c>
                     * 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)                                  
ffc1dc48:	2f 93 00 00 	cmpwi   cr7,r19,0                              
ffc1dc4c:	41 9e 00 64 	beq-    cr7,ffc1dcb0 <msdos_find_name_in_fat_file+0x214>
                        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;
ffc1dc50:	39 20 00 0b 	li      r9,11                                  
ffc1dc54:	7d 29 03 a6 	mtctr   r9                                     
 *     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(                                      
ffc1dc58:	38 00 00 00 	li      r0,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;
ffc1dc5c:	38 c0 00 00 	li      r6,0                                   
ffc1dc60:	54 00 f8 7e 	rlwinm  r0,r0,31,1,31                          
ffc1dc64:	7d 66 5a 14 	add     r11,r6,r11                             
ffc1dc68:	7c 00 5a 14 	add     r0,r0,r11                              
 *     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(                                      
ffc1dc6c:	7f e5 fb 78 	mr      r5,r31                                 
                        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;
ffc1dc70:	54 00 06 3e 	clrlwi  r0,r0,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++)
ffc1dc74:	42 40 00 2c 	bdz-    ffc1dca0 <msdos_find_name_in_fat_file+0x204>
                            cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
ffc1dc78:	70 0a 00 01 	andi.   r10,r0,1                               
ffc1dc7c:	38 c0 00 00 	li      r6,0                                   
ffc1dc80:	41 82 00 08 	beq-    ffc1dc88 <msdos_find_name_in_fat_file+0x1ec>
ffc1dc84:	38 c0 00 80 	li      r6,128                                 
ffc1dc88:	8d 65 00 01 	lbzu    r11,1(r5)                              
ffc1dc8c:	54 00 f8 7e 	rlwinm  r0,r0,31,1,31                          
ffc1dc90:	7d 66 5a 14 	add     r11,r6,r11                             
ffc1dc94:	7c 00 5a 14 	add     r0,r0,r11                              
ffc1dc98:	54 00 06 3e 	clrlwi  r0,r0,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++)
ffc1dc9c:	42 00 ff dc 	bdnz+   ffc1dc78 <msdos_find_name_in_fat_file+0x1dc>
                            cs = ((cs & 1) ? 0x80 : 0) + (cs >> 1) + *p;
                                                                      
                        if (lfn_entry || (lfn_checksum != cs))        
ffc1dca0:	2f 8e 00 00 	cmpwi   cr7,r14,0                              
ffc1dca4:	40 9e 00 0c 	bne-    cr7,ffc1dcb0 <msdos_find_name_in_fat_file+0x214><== NEVER TAKEN
ffc1dca8:	7f 80 a0 00 	cmpw    cr7,r0,r20                             
ffc1dcac:	41 9e 00 70 	beq-    cr7,ffc1dd1c <msdos_find_name_in_fat_file+0x280><== ALWAYS TAKEN
                     * short and they match then we have the entry. We will not
                     * match a long file name against a short file name because
                     * a long file name that generates a matching short file
                     * name is not a long file name.                  
                     */                                               
                    if (lfn_matched ||                                
ffc1dcb0:	41 8e 00 40 	beq-    cr3,ffc1dcf0 <msdos_find_name_in_fat_file+0x254>
                        memcpy(name_dir_entry, entry,                 
                               MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);    
                        return RC_OK;                                 
                    }                                                 
                                                                      
                    lfn_start.cln = FAT_FILE_SHORT_NAME;              
ffc1dcb4:	93 41 00 08 	stw     r26,8(r1)                              
                    lfn_matched = false;                              
ffc1dcb8:	3a 60 00 00 	li      r19,0                                  
ffc1dcbc:	3b de 00 20 	addi    r30,r30,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;                                           
ffc1dcc0:	7f 9c f0 40 	cmplw   cr7,r28,r30                            
ffc1dcc4:	3b ff 00 20 	addi    r31,r31,32                             
ffc1dcc8:	41 9d ff 38 	bgt+    cr7,ffc1dc00 <msdos_find_name_in_fat_file+0x164>
        }                                                             
                                                                      
        if (remainder_empty)                                          
            break;                                                    
                                                                      
        dir_offset++;                                                 
ffc1dccc:	3a 10 00 01 	addi    r16,r16,1                              
ffc1dcd0:	7e f7 e2 14 	add     r23,r23,r28                            
ffc1dcd4:	4b ff fe f4 	b       ffc1dbc8 <msdos_find_name_in_fat_file+0x12c>
                }                                                     
                break;                                                
            }                                                         
            else if (entry_empty)                                     
            {                                                         
                if (create_node)                                      
ffc1dcd8:	41 b2 ff e4 	beq-    cr4,ffc1dcbc <msdos_find_name_in_fat_file+0x220>
                {                                                     
                  /*                                                  
                   * Remainder is not empty so is this entry empty ?  
                   */                                                 
                  empty_space_count++;                                
ffc1dcdc:	3b bd 00 01 	addi    r29,r29,1                              
                                                                      
                  if (empty_space_count == (lfn_entries + 1))         
ffc1dce0:	7f 99 e8 00 	cmpw    cr7,r25,r29                            
ffc1dce4:	40 9e ff d8 	bne+    cr7,ffc1dcbc <msdos_find_name_in_fat_file+0x220>
                    empty_space_found = true;                         
ffc1dce8:	3a 40 00 01 	li      r18,1                                  
ffc1dcec:	4b ff ff d0 	b       ffc1dcbc <msdos_find_name_in_fat_file+0x220>
                     * 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) &&           
ffc1dcf0:	80 c1 00 08 	lwz     r6,8(r1)                               
ffc1dcf4:	2f 86 ff ff 	cmpwi   cr7,r6,-1                              
ffc1dcf8:	40 9e ff bc 	bne+    cr7,ffc1dcb4 <msdos_find_name_in_fat_file+0x218><== NEVER TAKEN
                         (lfn_start.cln == FAT_FILE_SHORT_NAME) &&    
                         (memcmp(MSDOS_DIR_NAME(entry),               
ffc1dcfc:	7f e3 fb 78 	mr      r3,r31                                 
ffc1dd00:	90 e1 00 28 	stw     r7,40(r1)                              
ffc1dd04:	7e c4 b3 78 	mr      r4,r22                                 
ffc1dd08:	38 a0 00 0b 	li      r5,11                                  
ffc1dd0c:	48 00 45 ed 	bl      ffc222f8 <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) &&    
ffc1dd10:	80 e1 00 28 	lwz     r7,40(r1)                              
ffc1dd14:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1dd18:	40 9e ff 9c 	bne+    cr7,ffc1dcb4 <msdos_find_name_in_fat_file+0x218>
#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,
ffc1dd1c:	7e 23 8b 78 	mr      r3,r17                                 
ffc1dd20:	7f 04 c3 78 	mr      r4,r24                                 
ffc1dd24:	38 a0 00 01 	li      r5,1                                   
ffc1dd28:	7e e6 bb 78 	mr      r6,r23                                 
ffc1dd2c:	7e a7 ab 78 	mr      r7,r21                                 
ffc1dd30:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc1dd34:	4b ff 89 e5 	bl      ffc16718 <fat_file_ioctl>              
                                                dir_offset * bts2rd,  
                                                &dir_pos->sname.cln); 
                        if (rc != RC_OK)                              
ffc1dd38:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc1dd3c:	40 82 00 88 	bne-    ffc1ddc4 <msdos_find_name_in_fat_file+0x328><== NEVER TAKEN
                            return rc;                                
                                                                      
                        dir_pos->sname.ofs = dir_entry;               
                                                                      
                        if (lfn_start.cln != FAT_FILE_SHORT_NAME)     
ffc1dd40:	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;               
ffc1dd44:	93 d5 00 04 	stw     r30,4(r21)                             
                                                                      
                        if (lfn_start.cln != FAT_FILE_SHORT_NAME)     
ffc1dd48:	2f 86 ff ff 	cmpwi   cr7,r6,-1                              
ffc1dd4c:	41 9e 05 e4 	beq-    cr7,ffc1e330 <msdos_find_name_in_fat_file+0x894>
                        {                                             
                          rc = fat_file_ioctl(&fs_info->fat, fat_fd, F_CLU_NUM,
ffc1dd50:	7c dc 31 d6 	mullw   r6,r28,r6                              
ffc1dd54:	7e 23 8b 78 	mr      r3,r17                                 
ffc1dd58:	7f 04 c3 78 	mr      r4,r24                                 
ffc1dd5c:	38 a0 00 01 	li      r5,1                                   
ffc1dd60:	38 e1 00 08 	addi    r7,r1,8                                
ffc1dd64:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc1dd68:	4b ff 89 b1 	bl      ffc16718 <fat_file_ioctl>              
                                              lfn_start.cln * bts2rd, 
                                              &lfn_start.cln);        
                          if (rc != RC_OK)                            
ffc1dd6c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1dd70:	40 82 05 b8 	bne-    ffc1e328 <msdos_find_name_in_fat_file+0x88c><== NEVER TAKEN
ffc1dd74:	81 21 00 08 	lwz     r9,8(r1)                               
                            return rc;                                
                        }                                             
                                                                      
                        dir_pos->lname.cln = lfn_start.cln;           
ffc1dd78:	91 35 00 08 	stw     r9,8(r21)                              
                        dir_pos->lname.ofs = lfn_start.ofs;           
ffc1dd7c:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc1dd80:	91 35 00 0c 	stw     r9,12(r21)                             
                                                                      
                        memcpy(name_dir_entry, entry,                 
ffc1dd84:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc1dd88:	80 ff 00 04 	lwz     r7,4(r31)                              
ffc1dd8c:	81 1f 00 08 	lwz     r8,8(r31)                              
ffc1dd90:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc1dd94:	91 36 00 00 	stw     r9,0(r22)                              
ffc1dd98:	90 f6 00 04 	stw     r7,4(r22)                              
ffc1dd9c:	91 16 00 08 	stw     r8,8(r22)                              
ffc1dda0:	91 56 00 0c 	stw     r10,12(r22)                            
ffc1dda4:	80 ff 00 10 	lwz     r7,16(r31)                             
ffc1dda8:	81 1f 00 14 	lwz     r8,20(r31)                             
ffc1ddac:	81 5f 00 18 	lwz     r10,24(r31)                            
ffc1ddb0:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc1ddb4:	90 f6 00 10 	stw     r7,16(r22)                             
ffc1ddb8:	91 16 00 14 	stw     r8,20(r22)                             
ffc1ddbc:	91 56 00 18 	stw     r10,24(r22)                            
ffc1ddc0:	91 36 00 1c 	stw     r9,28(r22)                             
        empty_space_entry = 0;                                        
        read_cluster = true;                                          
    }                                                                 
                                                                      
    return 0;                                                         
}                                                                     
ffc1ddc4:	80 01 00 84 	lwz     r0,132(r1)                             
ffc1ddc8:	7f a3 eb 78 	mr      r3,r29                                 
ffc1ddcc:	81 81 00 34 	lwz     r12,52(r1)                             
ffc1ddd0:	7c 08 03 a6 	mtlr    r0                                     
ffc1ddd4:	81 c1 00 38 	lwz     r14,56(r1)                             
ffc1ddd8:	81 e1 00 3c 	lwz     r15,60(r1)                             
ffc1dddc:	7d 81 81 20 	mtcrf   24,r12                                 
ffc1dde0:	82 01 00 40 	lwz     r16,64(r1)                             
ffc1dde4:	82 21 00 44 	lwz     r17,68(r1)                             
ffc1dde8:	82 41 00 48 	lwz     r18,72(r1)                             
ffc1ddec:	82 61 00 4c 	lwz     r19,76(r1)                             
ffc1ddf0:	82 81 00 50 	lwz     r20,80(r1)                             
ffc1ddf4:	82 a1 00 54 	lwz     r21,84(r1)                             
ffc1ddf8:	82 c1 00 58 	lwz     r22,88(r1)                             
ffc1ddfc:	82 e1 00 5c 	lwz     r23,92(r1)                             
ffc1de00:	83 01 00 60 	lwz     r24,96(r1)                             
ffc1de04:	83 21 00 64 	lwz     r25,100(r1)                            
ffc1de08:	83 41 00 68 	lwz     r26,104(r1)                            
ffc1de0c:	83 61 00 6c 	lwz     r27,108(r1)                            
ffc1de10:	83 81 00 70 	lwz     r28,112(r1)                            
ffc1de14:	83 a1 00 74 	lwz     r29,116(r1)                            
ffc1de18:	83 c1 00 78 	lwz     r30,120(r1)                            
ffc1de1c:	83 e1 00 7c 	lwz     r31,124(r1)                            
ffc1de20:	38 21 00 80 	addi    r1,r1,128                              
ffc1de24:	4e 80 00 20 	blr                                            
#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)         
ffc1de28:	80 c1 00 08 	lwz     r6,8(r1)                               
ffc1de2c:	2f 86 ff ff 	cmpwi   cr7,r6,-1                              
ffc1de30:	41 9e 01 00 	beq-    cr7,ffc1df30 <msdos_find_name_in_fat_file+0x494>
                     * 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) & 
ffc1de34:	55 6b 06 be 	clrlwi  r11,r11,26                             
ffc1de38:	7f 8b 70 00 	cmpw    cr7,r11,r14                            
ffc1de3c:	41 9e 00 0c 	beq-    cr7,ffc1de48 <msdos_find_name_in_fat_file+0x3ac><== 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;          
ffc1de40:	93 41 00 08 	stw     r26,8(r1)                              <== NOT EXECUTED
                        continue;                                     
ffc1de44:	4b ff fe 78 	b       ffc1dcbc <msdos_find_name_in_fat_file+0x220><== NOT EXECUTED
                     * could be orphaned entries depending on the history
                     * of the disk.                                   
                     */                                               
                    if ((lfn_entry != (*MSDOS_DIR_ENTRY_TYPE(entry) & 
                                       MSDOS_LAST_LONG_ENTRY_MASK)) ||
                        (lfn_checksum != *MSDOS_DIR_LFN_CHECKSUM(entry)))
ffc1de48:	89 9f 00 0d 	lbz     r12,13(r31)                            
                     * 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) & 
                                       MSDOS_LAST_LONG_ENTRY_MASK)) ||
ffc1de4c:	7f 8c a0 00 	cmpw    cr7,r12,r20                            
ffc1de50:	40 9e ff f0 	bne+    cr7,ffc1de40 <msdos_find_name_in_fat_file+0x3a4><== NEVER TAKEN
#endif                                                                
                        lfn_start.cln = FAT_FILE_SHORT_NAME;          
                        continue;                                     
                    }                                                 
                                                                      
                    lfn_entry--;                                      
ffc1de54:	39 ce ff ff 	addi    r14,r14,-1                             
ffc1de58:	81 41 00 1c 	lwz     r10,28(r1)                             
                    o = lfn_entry * MSDOS_LFN_LEN_PER_ENTRY;          
ffc1de5c:	1d 2e 00 0d 	mulli   r9,r14,13                              
ffc1de60:	7f 89 50 00 	cmpw    cr7,r9,r10                             
 *     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(                                      
ffc1de64:	81 41 00 24 	lwz     r10,36(r1)                             
ffc1de68:	38 c9 ff ff 	addi    r6,r9,-1                               
ffc1de6c:	7c 6a 32 14 	add     r3,r10,r6                              
ffc1de70:	81 41 00 1c 	lwz     r10,28(r1)                             
ffc1de74:	38 bf 00 01 	addi    r5,r31,1                               
ffc1de78:	7d 46 50 50 	subf    r10,r6,r10                             
ffc1de7c:	39 00 00 01 	li      r8,1                                   
ffc1de80:	7d 49 03 a6 	mtctr   r10                                    
ffc1de84:	41 9d 05 d8 	bgt-    cr7,ffc1e45c <msdos_find_name_in_fat_file+0x9c0><== NEVER TAKEN
ffc1de88:	81 41 00 1c 	lwz     r10,28(r1)                             
ffc1de8c:	3c c0 80 00 	lis     r6,-32768                              
ffc1de90:	7f 8a 30 00 	cmpw    cr7,r10,r6                             
ffc1de94:	41 9e 05 c8 	beq-    cr7,ffc1e45c <msdos_find_name_in_fat_file+0x9c0><== NEVER TAKEN
                    {                                                 
#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')                               
ffc1de98:	88 c5 00 00 	lbz     r6,0(r5)                               
 *     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(                                      
ffc1de9c:	38 88 ff ff 	addi    r4,r8,-1                               
                    {                                                 
#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')                               
ffc1dea0:	2f 86 00 00 	cmpwi   cr7,r6,0                               
ffc1dea4:	41 9e 00 44 	beq-    cr7,ffc1dee8 <msdos_find_name_in_fat_file+0x44c><== NEVER TAKEN
                                ((o + i) != name_len))                
                                lfn_start.cln = FAT_FILE_SHORT_NAME;  
                            break;                                    
                        }                                             
                                                                      
                        if (((o + i) >= name_len) || (*p != name[o + i]))
ffc1dea8:	42 40 00 5c 	bdz-    ffc1df04 <msdos_find_name_in_fat_file+0x468>
ffc1deac:	8c 03 00 01 	lbzu    r0,1(r3)                               
ffc1deb0:	7f 80 30 00 	cmpw    cr7,r0,r6                              
ffc1deb4:	40 9e 00 50 	bne-    cr7,ffc1df04 <msdos_find_name_in_fat_file+0x468>
                        {                                             
                            lfn_start.cln = FAT_FILE_SHORT_NAME;      
                            break;                                    
                        }                                             
                                                                      
                        switch (i)                                    
ffc1deb8:	2f 84 00 04 	cmpwi   cr7,r4,4                               
ffc1debc:	41 9e 00 b8 	beq-    cr7,ffc1df74 <msdos_find_name_in_fat_file+0x4d8>
ffc1dec0:	2f 84 00 0a 	cmpwi   cr7,r4,10                              
ffc1dec4:	41 9e 00 a4 	beq-    cr7,ffc1df68 <msdos_find_name_in_fat_file+0x4cc>
                    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++)     
ffc1dec8:	2f 88 00 0d 	cmpwi   cr7,r8,13                              
                                break;                                
                            case 10:                                  
                                p += 4;                               
                                break;                                
                            default:                                  
                                p += 2;                               
ffc1decc:	38 a5 00 02 	addi    r5,r5,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++)     
ffc1ded0:	41 9e 00 38 	beq-    cr7,ffc1df08 <msdos_find_name_in_fat_file+0x46c>
ffc1ded4:	39 08 00 01 	addi    r8,r8,1                                
                    {                                                 
#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')                               
ffc1ded8:	88 c5 00 00 	lbz     r6,0(r5)                               
 *     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(                                      
ffc1dedc:	38 88 ff ff 	addi    r4,r8,-1                               
                    {                                                 
#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')                               
ffc1dee0:	2f 86 00 00 	cmpwi   cr7,r6,0                               
ffc1dee4:	40 9e ff c4 	bne+    cr7,ffc1dea8 <msdos_find_name_in_fat_file+0x40c>
                            /*                                        
                             * 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) &&   
ffc1dee8:	81 41 00 18 	lwz     r10,24(r1)                             
ffc1deec:	7f 8a 58 00 	cmpw    cr7,r10,r11                            
ffc1def0:	40 be 00 18 	bne+    cr7,ffc1df08 <msdos_find_name_in_fat_file+0x46c><== NEVER TAKEN
ffc1def4:	81 61 00 1c 	lwz     r11,28(r1)                             
                                ((o + i) != name_len))                
ffc1def8:	7c 89 22 14 	add     r4,r9,r4                               
                            /*                                        
                             * 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) &&   
ffc1defc:	7f 84 58 00 	cmpw    cr7,r4,r11                             
ffc1df00:	41 9e 00 08 	beq-    cr7,ffc1df08 <msdos_find_name_in_fat_file+0x46c><== ALWAYS TAKEN
                            break;                                    
                        }                                             
                                                                      
                        if (((o + i) >= name_len) || (*p != name[o + i]))
                        {                                             
                            lfn_start.cln = FAT_FILE_SHORT_NAME;      
ffc1df04:	93 41 00 08 	stw     r26,8(r1)                              
                                p += 2;                               
                                break;                                
                        }                                             
                    }                                                 
                                                                      
                    lfn_matched = ((lfn_entry == 0) &&                
ffc1df08:	2f 8e 00 00 	cmpwi   cr7,r14,0                              
ffc1df0c:	3a 60 00 00 	li      r19,0                                  
ffc1df10:	40 9e 00 18 	bne-    cr7,ffc1df28 <msdos_find_name_in_fat_file+0x48c>
ffc1df14:	81 01 00 08 	lwz     r8,8(r1)                               
ffc1df18:	38 08 00 01 	addi    r0,r8,1                                
ffc1df1c:	7c 00 00 34 	cntlzw  r0,r0                                  
ffc1df20:	54 00 d9 7e 	rlwinm  r0,r0,27,5,31                          
ffc1df24:	68 13 00 01 	xori    r19,r0,1                               
                     * 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;                          
ffc1df28:	7d 94 63 78 	mr      r20,r12                                
ffc1df2c:	4b ff fd 90 	b       ffc1dcbc <msdos_find_name_in_fat_file+0x220>
                                                                      
                        /*                                            
                         * The first entry must have the last long entry
                         * flag set.                                  
                         */                                           
                        if ((*MSDOS_DIR_ENTRY_TYPE(entry) &           
ffc1df30:	55 66 06 72 	rlwinm  r6,r11,0,25,25                         
ffc1df34:	70 c9 00 ff 	andi.   r9,r6,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;                          
ffc1df38:	3a 60 00 00 	li      r19,0                                  
                                                                      
                        /*                                            
                         * The first entry must have the last long entry
                         * flag set.                                  
                         */                                           
                        if ((*MSDOS_DIR_ENTRY_TYPE(entry) &           
ffc1df3c:	41 a2 fd 80 	beq-    ffc1dcbc <msdos_find_name_in_fat_file+0x220>
                         * 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) &
ffc1df40:	81 41 00 18 	lwz     r10,24(r1)                             
ffc1df44:	55 6b 06 be 	clrlwi  r11,r11,26                             
ffc1df48:	7f 8b 50 00 	cmpw    cr7,r11,r10                            
ffc1df4c:	40 9e fd 70 	bne+    cr7,ffc1dcbc <msdos_find_name_in_fat_file+0x220>
                            continue;                                 
                                                                      
                        /*                                            
                         * Get the checksum of the short entry.       
                         */                                           
                        lfn_start.cln = dir_offset;                   
ffc1df50:	92 01 00 08 	stw     r16,8(r1)                              
                        lfn_start.ofs = dir_entry;                    
                        lfn_entry = lfn_entries;                      
                        lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);
ffc1df54:	7d 4e 53 78 	mr      r14,r10                                
                                                                      
                        /*                                            
                         * Get the checksum of the short entry.       
                         */                                           
                        lfn_start.cln = dir_offset;                   
                        lfn_start.ofs = dir_entry;                    
ffc1df58:	93 c1 00 0c 	stw     r30,12(r1)                             
                        lfn_entry = lfn_entries;                      
                        lfn_checksum = *MSDOS_DIR_LFN_CHECKSUM(entry);
ffc1df5c:	8a 9f 00 0d 	lbz     r20,13(r31)                            
ffc1df60:	89 7f 00 00 	lbz     r11,0(r31)                             
ffc1df64:	4b ff fe d0 	b       ffc1de34 <msdos_find_name_in_fat_file+0x398>
                        {                                             
                            case 4:                                   
                                p += 5;                               
                                break;                                
                            case 10:                                  
                                p += 4;                               
ffc1df68:	38 a5 00 04 	addi    r5,r5,4                                
ffc1df6c:	39 08 00 01 	addi    r8,r8,1                                
ffc1df70:	4b ff ff 68 	b       ffc1ded8 <msdos_find_name_in_fat_file+0x43c>
                        }                                             
                                                                      
                        switch (i)                                    
                        {                                             
                            case 4:                                   
                                p += 5;                               
ffc1df74:	38 a5 00 05 	addi    r5,r5,5                                
ffc1df78:	39 08 00 01 	addi    r8,r8,1                                
ffc1df7c:	4b ff ff 5c 	b       ffc1ded8 <msdos_find_name_in_fat_file+0x43c>
#endif                                                                
                /*                                                    
                 * If just looking and there is no more entries in the
                 * directory - return name-not-found                  
                 */                                                   
                if (!create_node)                                     
ffc1df80:	41 92 04 28 	beq-    cr4,ffc1e3a8 <msdos_find_name_in_fat_file+0x90c>
                 * 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)                               
ffc1df84:	2f 92 00 00 	cmpwi   cr7,r18,0                              
ffc1df88:	40 9e 00 14 	bne-    cr7,ffc1df9c <msdos_find_name_in_fat_file+0x500>
        (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;   
ffc1df8c:	57 89 d9 7e 	rlwinm  r9,r28,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);
ffc1df90:	7f bd 4a 14 	add     r29,r29,r9                             
ffc1df94:	57 de d9 7e 	rlwinm  r30,r30,27,5,31                        
ffc1df98:	7d 5e e8 51 	subf.   r10,r30,r29                            
     * 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)                                 
ffc1df9c:	81 61 00 20 	lwz     r11,32(r1)                             
ffc1dfa0:	2f 8b 00 02 	cmpwi   cr7,r11,2                              
ffc1dfa4:	41 9e 04 34 	beq-    cr7,ffc1e3d8 <msdos_find_name_in_fat_file+0x93c>
        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)                                                  
ffc1dfa8:	81 21 00 18 	lwz     r9,24(r1)                              
     * 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;                                                 
ffc1dfac:	3b 40 00 00 	li      r26,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)                                                  
ffc1dfb0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1dfb4:	41 9e 00 58 	beq-    cr7,ffc1e00c <msdos_find_name_in_fat_file+0x570>
    {                                                                 
        uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);       
        int      i;                                                   
        for (i = 0; i < 11; i++, p++)                                 
            lfn_checksum =                                            
ffc1dfb8:	39 40 00 0b 	li      r10,11                                 
ffc1dfbc:	7d 49 03 a6 	mtctr   r10                                    
 *     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(                                      
ffc1dfc0:	39 16 ff ff 	addi    r8,r22,-1                              
    if (lfn_entries)                                                  
    {                                                                 
        uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);       
        int      i;                                                   
        for (i = 0; i < 11; i++, p++)                                 
            lfn_checksum =                                            
ffc1dfc4:	39 20 00 00 	li      r9,0                                   
ffc1dfc8:	8c e8 00 01 	lbzu    r7,1(r8)                               
ffc1dfcc:	57 5a f8 7e 	rlwinm  r26,r26,31,1,31                        
ffc1dfd0:	7c e7 d2 14 	add     r7,r7,r26                              
ffc1dfd4:	7d 27 4a 14 	add     r9,r7,r9                               
ffc1dfd8:	55 3a 06 3e 	clrlwi  r26,r9,24                              
                                                                      
    if (lfn_entries)                                                  
    {                                                                 
        uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);       
        int      i;                                                   
        for (i = 0; i < 11; i++, p++)                                 
ffc1dfdc:	42 40 00 30 	bdz-    ffc1e00c <msdos_find_name_in_fat_file+0x570>
            lfn_checksum =                                            
ffc1dfe0:	57 4b 07 fe 	clrlwi  r11,r26,31                             
ffc1dfe4:	2f 0b 00 00 	cmpwi   cr6,r11,0                              
ffc1dfe8:	39 20 00 00 	li      r9,0                                   
ffc1dfec:	41 ba ff dc 	beq-    cr6,ffc1dfc8 <msdos_find_name_in_fat_file+0x52c>
ffc1dff0:	8c e8 00 01 	lbzu    r7,1(r8)                               
ffc1dff4:	57 5a f8 7e 	rlwinm  r26,r26,31,1,31                        
ffc1dff8:	39 20 00 80 	li      r9,128                                 
ffc1dffc:	7c e7 d2 14 	add     r7,r7,r26                              
ffc1e000:	7d 27 4a 14 	add     r9,r7,r9                               
ffc1e004:	55 3a 06 3e 	clrlwi  r26,r9,24                              
                                                                      
    if (lfn_entries)                                                  
    {                                                                 
        uint8_t* p = (uint8_t*) MSDOS_DIR_NAME(name_dir_entry);       
        int      i;                                                   
        for (i = 0; i < 11; i++, p++)                                 
ffc1e008:	42 00 ff d8 	bdnz+   ffc1dfe0 <msdos_find_name_in_fat_file+0x544>
     * 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)                                       
ffc1e00c:	41 82 03 40 	beq-    ffc1e34c <msdos_find_name_in_fat_file+0x8b0>
    }                                                                 
                                                                      
    /*                                                                
     * Have we read past the empty block ? If so go back and read it again.
     */                                                               
    if (dir_offset != empty_space_offset)                             
ffc1e010:	7f 10 78 00 	cmpw    cr6,r16,r15                            
        read_cluster = true;                                          
ffc1e014:	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)                             
ffc1e018:	41 9a 03 b0 	beq-    cr6,ffc1e3c8 <msdos_find_name_in_fat_file+0x92c><== ALWAYS TAKEN
        read_cluster = true;                                          
                                                                      
    /*                                                                
     * Handle the entry writes.                                       
     */                                                               
    lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;              
ffc1e01c:	39 00 ff ff 	li      r8,-1                                  
ffc1e020:	91 01 00 0c 	stw     r8,12(r1)                              
ffc1e024:	91 01 00 08 	stw     r8,8(r1)                               
#endif                                                                
                                                                      
    /*                                                                
     * The one more is the short entry.                               
     */                                                               
    while (lfn_entry < (lfn_entries + 1))                             
ffc1e028:	41 9c 03 a8 	blt-    cr7,ffc1e3d0 <msdos_find_name_in_fat_file+0x934><== NEVER TAKEN
    {                                                                 
        int length = 0;                                               
                                                                      
        if (read_cluster)                                             
ffc1e02c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1e030:	7f ef e1 d6 	mullw   r31,r15,r28                            
                                                                      
    /*                                                                
     * Handle the entry writes.                                       
     */                                                               
    lfn_start.cln = lfn_start.ofs = FAT_FILE_SHORT_NAME;              
    lfn_entry = 0;                                                    
ffc1e034:	3b 20 00 00 	li      r25,0                                  
     */                                                               
    while (lfn_entry < (lfn_entries + 1))                             
    {                                                                 
        int length = 0;                                               
                                                                      
        if (read_cluster)                                             
ffc1e038:	40 9e 02 54 	bne-    cr7,ffc1e28c <msdos_find_name_in_fat_file+0x7f0>
                                                                      
#if MSDOS_FIND_PRINT                                                  
        printf ("MSFS:[10] eso:%li\n", empty_space_offset);           
#endif                                                                
                                                                      
        for (dir_entry = empty_space_entry;                           
ffc1e03c:	7f 9c d8 40 	cmplw   cr7,r28,r27                            
ffc1e040:	40 9d 03 7c 	ble-    cr7,ffc1e3bc <msdos_find_name_in_fat_file+0x920><== NEVER TAKEN
                    length, lfn_entry);                               
#endif                                                                
            /*                                                        
             * Time to write the short file name entry.               
             */                                                       
            if (lfn_entry == (lfn_entries + 1))                       
ffc1e044:	81 21 00 18 	lwz     r9,24(r1)                              
            const char* n;                                            
            int         i;                                            
            char        fill = 0;                                     
                                                                      
            length += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;              
            lfn_entry++;                                              
ffc1e048:	3b b9 00 01 	addi    r29,r25,1                              
                                                                      
        for (dir_entry = empty_space_entry;                           
             dir_entry < bts2rd;                                      
             dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)          
        {                                                             
            char*       entry = (char*) fs_info->cl_buf + dir_entry;  
ffc1e04c:	83 d1 00 a0 	lwz     r30,160(r17)                           
                    length, lfn_entry);                               
#endif                                                                
            /*                                                        
             * Time to write the short file name entry.               
             */                                                       
            if (lfn_entry == (lfn_entries + 1))                       
ffc1e050:	38 09 00 01 	addi    r0,r9,1                                
ffc1e054:	7f 80 e8 00 	cmpw    cr7,r0,r29                             
                                                                      
        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;  
ffc1e058:	7f de da 14 	add     r30,r30,r27                            
                    length, lfn_entry);                               
#endif                                                                
            /*                                                        
             * Time to write the short file name entry.               
             */                                                       
            if (lfn_entry == (lfn_entries + 1))                       
ffc1e05c:	41 9e 03 54 	beq-    cr7,ffc1e3b0 <msdos_find_name_in_fat_file+0x914>
 *     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(                                      
ffc1e060:	81 41 00 18 	lwz     r10,24(r1)                             
ffc1e064:	7f 25 c8 f8 	not     r5,r25                                 
ffc1e068:	81 61 00 24 	lwz     r11,36(r1)                             
ffc1e06c:	7f 79 db 78 	mr      r25,r27                                
ffc1e070:	7c a5 52 14 	add     r5,r5,r10                              
ffc1e074:	1c a5 00 0d 	mulli   r5,r5,13                               
ffc1e078:	3a 6a 00 01 	addi    r19,r10,1                              
ffc1e07c:	56 73 06 3e 	clrlwi  r19,r19,24                             
ffc1e080:	7c ab 2a 14 	add     r5,r11,r5                              
            char*       p;                                            
            const char* n;                                            
            int         i;                                            
            char        fill = 0;                                     
                                                                      
            length += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;              
ffc1e084:	3a e0 00 20 	li      r23,32                                 
            }                                                         
                                                                      
            /*                                                        
             * Clear the entry before loading the data.               
             */                                                       
            memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);     
ffc1e088:	38 c0 00 00 	li      r6,0                                   
             * 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)                 
ffc1e08c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1e090:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc1e094:	41 9e 02 d4 	beq-    cr7,ffc1e368 <msdos_find_name_in_fat_file+0x8cc>
            }                                                         
                                                                      
            /*                                                        
             * Clear the entry before loading the data.               
             */                                                       
            memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);     
ffc1e098:	90 de 00 0c 	stw     r6,12(r30)                             
                                                                      
            *MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;            
                                                                      
            p = entry + 1;                                            
            n = name + (lfn_entries - lfn_entry) * MSDOS_LFN_LEN_PER_ENTRY;
ffc1e09c:	7c a3 2b 78 	mr      r3,r5                                  
ffc1e0a0:	39 00 00 01 	li      r8,1                                   
            }                                                         
                                                                      
            /*                                                        
             * Clear the entry before loading the data.               
             */                                                       
            memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);     
ffc1e0a4:	90 de 00 00 	stw     r6,0(r30)                              
                                                                      
            *MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;            
                                                                      
            p = entry + 1;                                            
ffc1e0a8:	39 3e 00 01 	addi    r9,r30,1                               
        {                                                             
            char*       entry = (char*) fs_info->cl_buf + dir_entry;  
            char*       p;                                            
            const char* n;                                            
            int         i;                                            
            char        fill = 0;                                     
ffc1e0ac:	39 60 00 00 	li      r11,0                                  
            }                                                         
                                                                      
            /*                                                        
             * Clear the entry before loading the data.               
             */                                                       
            memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);     
ffc1e0b0:	90 de 00 04 	stw     r6,4(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(                                      
ffc1e0b4:	38 e8 ff ff 	addi    r7,r8,-1                               
            }                                                         
                                                                      
            /*                                                        
             * Clear the entry before loading the data.               
             */                                                       
            memset (entry, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);     
ffc1e0b8:	90 de 00 08 	stw     r6,8(r30)                              
ffc1e0bc:	90 de 00 10 	stw     r6,16(r30)                             
ffc1e0c0:	90 de 00 14 	stw     r6,20(r30)                             
ffc1e0c4:	90 de 00 18 	stw     r6,24(r30)                             
ffc1e0c8:	90 de 00 1c 	stw     r6,28(r30)                             
                                                                      
            *MSDOS_DIR_LFN_CHECKSUM(entry) = lfn_checksum;            
ffc1e0cc:	9b 5e 00 0d 	stb     r26,13(r30)                            
            p = entry + 1;                                            
            n = name + (lfn_entries - lfn_entry) * MSDOS_LFN_LEN_PER_ENTRY;
                                                                      
            for (i = 0; i < MSDOS_LFN_LEN_PER_ENTRY; i++)             
            {                                                         
                if (*n != 0)                                          
ffc1e0d0:	88 83 00 00 	lbz     r4,0(r3)                               
ffc1e0d4:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc1e0d8:	41 9e 00 3c 	beq-    cr7,ffc1e114 <msdos_find_name_in_fat_file+0x678><== NEVER TAKEN
                    p [0] = fill;                                     
                    p [1] = fill;                                     
                    fill = 0xff;                                      
                }                                                     
                                                                      
                switch (i)                                            
ffc1e0dc:	2f 87 00 04 	cmpwi   cr7,r7,4                               
                                                                      
            for (i = 0; i < MSDOS_LFN_LEN_PER_ENTRY; i++)             
            {                                                         
                if (*n != 0)                                          
                {                                                     
                    *p = *n;                                          
ffc1e0e0:	98 89 00 00 	stb     r4,0(r9)                               
                    n++;                                              
ffc1e0e4:	38 63 00 01 	addi    r3,r3,1                                
                    p [0] = fill;                                     
                    p [1] = fill;                                     
                    fill = 0xff;                                      
                }                                                     
                                                                      
                switch (i)                                            
ffc1e0e8:	41 9e 00 40 	beq-    cr7,ffc1e128 <msdos_find_name_in_fat_file+0x68c>
ffc1e0ec:	2f 87 00 0a 	cmpwi   cr7,r7,10                              
ffc1e0f0:	41 9e 02 6c 	beq-    cr7,ffc1e35c <msdos_find_name_in_fat_file+0x8c0>
            *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++)             
ffc1e0f4:	2f 88 00 0d 	cmpwi   cr7,r8,13                              
                        break;                                        
                    case 10:                                          
                        p += 4;                                       
                        break;                                        
                    default:                                          
                        p += 2;                                       
ffc1e0f8:	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++)             
ffc1e0fc:	41 9e 00 58 	beq-    cr7,ffc1e154 <msdos_find_name_in_fat_file+0x6b8>
ffc1e100:	39 08 00 01 	addi    r8,r8,1                                
            {                                                         
                if (*n != 0)                                          
ffc1e104:	88 83 00 00 	lbz     r4,0(r3)                               
 *     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(                                      
ffc1e108:	38 e8 ff ff 	addi    r7,r8,-1                               
            p = entry + 1;                                            
            n = name + (lfn_entries - lfn_entry) * MSDOS_LFN_LEN_PER_ENTRY;
                                                                      
            for (i = 0; i < MSDOS_LFN_LEN_PER_ENTRY; i++)             
            {                                                         
                if (*n != 0)                                          
ffc1e10c:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc1e110:	40 be ff cc 	bne-    cr7,ffc1e0dc <msdos_find_name_in_fat_file+0x640>
                    p [0] = fill;                                     
                    p [1] = fill;                                     
                    fill = 0xff;                                      
                }                                                     
                                                                      
                switch (i)                                            
ffc1e114:	2f 87 00 04 	cmpwi   cr7,r7,4                               
                    *p = *n;                                          
                    n++;                                              
                }                                                     
                else                                                  
                {                                                     
                    p [0] = fill;                                     
ffc1e118:	99 69 00 00 	stb     r11,0(r9)                              
                    p [1] = fill;                                     
ffc1e11c:	99 69 00 01 	stb     r11,1(r9)                              
                    fill = 0xff;                                      
ffc1e120:	39 60 00 ff 	li      r11,255                                
                }                                                     
                                                                      
                switch (i)                                            
ffc1e124:	40 9e ff c8 	bne+    cr7,ffc1e0ec <msdos_find_name_in_fat_file+0x650>
                {                                                     
                    case 4:                                           
                        p += 5;                                       
ffc1e128:	39 29 00 05 	addi    r9,r9,5                                
ffc1e12c:	39 08 00 01 	addi    r8,r8,1                                
ffc1e130:	4b ff ff d4 	b       ffc1e104 <msdos_find_name_in_fat_file+0x668>
      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) &&                                 
ffc1e134:	81 38 00 24 	lwz     r9,36(r24)                             
ffc1e138:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1e13c:	40 be fa 4c 	bne-    cr7,ffc1db88 <msdos_find_name_in_fat_file+0xec><== NEVER TAKEN
        (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))            
ffc1e140:	89 31 00 0e 	lbz     r9,14(r17)                             
      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) &&                                 
ffc1e144:	71 2a 00 03 	andi.   r10,r9,3                               
ffc1e148:	41 a2 fa 40 	beq-    ffc1db88 <msdos_find_name_in_fat_file+0xec>
        (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))            
        bts2rd = fat_fd->fat_file_size;                               
ffc1e14c:	83 98 00 18 	lwz     r28,24(r24)                            
ffc1e150:	4b ff fa 3c 	b       ffc1db8c <msdos_find_name_in_fat_file+0xf0>
                        break;                                        
                }                                                     
            }                                                         
                                                                      
            *MSDOS_DIR_ENTRY_TYPE(entry) = (lfn_entries - lfn_entry) + 1;
            if (lfn_entry == 1)                                       
ffc1e154:	2f 9d 00 01 	cmpwi   cr7,r29,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(                                      
ffc1e158:	7d 3d 98 50 	subf    r9,r29,r19                             
ffc1e15c:	55 29 06 3e 	clrlwi  r9,r9,24                               
                        p += 2;                                       
                        break;                                        
                }                                                     
            }                                                         
                                                                      
            *MSDOS_DIR_ENTRY_TYPE(entry) = (lfn_entries - lfn_entry) + 1;
ffc1e160:	99 3e 00 00 	stb     r9,0(r30)                              
            if (lfn_entry == 1)                                       
ffc1e164:	41 9e 02 10 	beq-    cr7,ffc1e374 <msdos_find_name_in_fat_file+0x8d8>
        printf ("MSFS:[10] eso:%li\n", empty_space_offset);           
#endif                                                                
                                                                      
        for (dir_entry = empty_space_entry;                           
             dir_entry < bts2rd;                                      
             dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)          
ffc1e168:	3b 39 00 20 	addi    r25,r25,32                             
            }                                                         
                                                                      
            *MSDOS_DIR_ENTRY_TYPE(entry) = (lfn_entries - lfn_entry) + 1;
            if (lfn_entry == 1)                                       
                *MSDOS_DIR_ENTRY_TYPE(entry) |= MSDOS_LAST_LONG_ENTRY;
            *MSDOS_DIR_ATTR(entry) |= MSDOS_ATTR_LFN;                 
ffc1e16c:	89 3e 00 0b 	lbz     r9,11(r30)                             
                                                                      
#if MSDOS_FIND_PRINT                                                  
        printf ("MSFS:[10] eso:%li\n", empty_space_offset);           
#endif                                                                
                                                                      
        for (dir_entry = empty_space_entry;                           
ffc1e170:	7f 9c c8 40 	cmplw   cr7,r28,r25                            
            }                                                         
                                                                      
            *MSDOS_DIR_ENTRY_TYPE(entry) = (lfn_entries - lfn_entry) + 1;
            if (lfn_entry == 1)                                       
                *MSDOS_DIR_ENTRY_TYPE(entry) |= MSDOS_LAST_LONG_ENTRY;
            *MSDOS_DIR_ATTR(entry) |= MSDOS_ATTR_LFN;                 
ffc1e174:	61 29 00 0f 	ori     r9,r9,15                               
ffc1e178:	99 3e 00 0b 	stb     r9,11(r30)                             
                                                                      
#if MSDOS_FIND_PRINT                                                  
        printf ("MSFS:[10] eso:%li\n", empty_space_offset);           
#endif                                                                
                                                                      
        for (dir_entry = empty_space_entry;                           
ffc1e17c:	40 9d 02 18 	ble-    cr7,ffc1e394 <msdos_find_name_in_fat_file+0x8f8><== NEVER TAKEN
            const char* n;                                            
            int         i;                                            
            char        fill = 0;                                     
                                                                      
            length += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;              
            lfn_entry++;                                              
ffc1e180:	3b bd 00 01 	addi    r29,r29,1                              
                                                                      
        for (dir_entry = empty_space_entry;                           
             dir_entry < bts2rd;                                      
             dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)          
        {                                                             
            char*       entry = (char*) fs_info->cl_buf + dir_entry;  
ffc1e184:	83 d1 00 a0 	lwz     r30,160(r17)                           
                    length, lfn_entry);                               
#endif                                                                
            /*                                                        
             * Time to write the short file name entry.               
             */                                                       
            if (lfn_entry == (lfn_entries + 1))                       
ffc1e188:	7f 80 e8 00 	cmpw    cr7,r0,r29                             
            char*       p;                                            
            const char* n;                                            
            int         i;                                            
            char        fill = 0;                                     
                                                                      
            length += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;              
ffc1e18c:	3a f7 00 20 	addi    r23,r23,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;  
ffc1e190:	7f de ca 14 	add     r30,r30,r25                            
ffc1e194:	38 a5 ff f3 	addi    r5,r5,-13                              
                    length, lfn_entry);                               
#endif                                                                
            /*                                                        
             * Time to write the short file name entry.               
             */                                                       
            if (lfn_entry == (lfn_entries + 1))                       
ffc1e198:	40 9e fe f4 	bne+    cr7,ffc1e08c <msdos_find_name_in_fat_file+0x5f0>
            {                                                         
                /* get current cluster number */                      
                int rc = fat_file_ioctl(&fs_info->fat, fat_fd, F_CLU_NUM,
ffc1e19c:	7e 23 8b 78 	mr      r3,r17                                 
ffc1e1a0:	7f 04 c3 78 	mr      r4,r24                                 
ffc1e1a4:	38 a0 00 01 	li      r5,1                                   
ffc1e1a8:	7f e6 fb 78 	mr      r6,r31                                 
ffc1e1ac:	7e a7 ab 78 	mr      r7,r21                                 
ffc1e1b0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc1e1b4:	4b ff 85 65 	bl      ffc16718 <fat_file_ioctl>              
                                        empty_space_offset * bts2rd,  
                                        &dir_pos->sname.cln);         
                if (rc != RC_OK)                                      
ffc1e1b8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1e1bc:	40 82 01 6c 	bne-    ffc1e328 <msdos_find_name_in_fat_file+0x88c><== NEVER TAKEN
                  return rc;                                          
                                                                      
                dir_pos->sname.ofs = dir_entry;                       
                                                                      
                if (lfn_start.cln != FAT_FILE_SHORT_NAME)             
ffc1e1c0:	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;                       
ffc1e1c4:	93 35 00 04 	stw     r25,4(r21)                             
                                                                      
                if (lfn_start.cln != FAT_FILE_SHORT_NAME)             
ffc1e1c8:	2f 86 ff ff 	cmpwi   cr7,r6,-1                              
ffc1e1cc:	41 9e 01 d4 	beq-    cr7,ffc1e3a0 <msdos_find_name_in_fat_file+0x904>
                {                                                     
                  rc = fat_file_ioctl(&fs_info->fat, fat_fd, F_CLU_NUM,
ffc1e1d0:	7c dc 31 d6 	mullw   r6,r28,r6                              
ffc1e1d4:	7e 23 8b 78 	mr      r3,r17                                 
ffc1e1d8:	7f 04 c3 78 	mr      r4,r24                                 
ffc1e1dc:	38 a0 00 01 	li      r5,1                                   
ffc1e1e0:	38 e1 00 08 	addi    r7,r1,8                                
ffc1e1e4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc1e1e8:	4b ff 85 31 	bl      ffc16718 <fat_file_ioctl>              
                                      lfn_start.cln * bts2rd,         
                                      &lfn_start.cln);                
                  if (rc != RC_OK)                                    
ffc1e1ec:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1e1f0:	40 82 01 38 	bne-    ffc1e328 <msdos_find_name_in_fat_file+0x88c><== NEVER TAKEN
ffc1e1f4:	81 21 00 08 	lwz     r9,8(r1)                               
                    return rc;                                        
                }                                                     
                                                                      
                dir_pos->lname.cln = lfn_start.cln;                   
ffc1e1f8:	91 35 00 08 	stw     r9,8(r21)                              
ffc1e1fc:	7e e6 bb 78 	mr      r6,r23                                 
            const char* n;                                            
            int         i;                                            
            char        fill = 0;                                     
                                                                      
            length += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;              
            lfn_entry++;                                              
ffc1e200:	7f b9 eb 78 	mr      r25,r29                                
                  if (rc != RC_OK)                                    
                    return rc;                                        
                }                                                     
                                                                      
                dir_pos->lname.cln = lfn_start.cln;                   
                dir_pos->lname.ofs = lfn_start.ofs;                   
ffc1e204:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc1e208:	91 35 00 0c 	stw     r9,12(r21)                             
                                                                      
                /* write new node entry */                            
                memcpy (entry, (uint8_t *) name_dir_entry,            
ffc1e20c:	81 36 00 00 	lwz     r9,0(r22)                              
ffc1e210:	80 b6 00 04 	lwz     r5,4(r22)                              
ffc1e214:	80 f6 00 08 	lwz     r7,8(r22)                              
ffc1e218:	81 16 00 0c 	lwz     r8,12(r22)                             
ffc1e21c:	91 3e 00 00 	stw     r9,0(r30)                              
ffc1e220:	90 be 00 04 	stw     r5,4(r30)                              
ffc1e224:	90 fe 00 08 	stw     r7,8(r30)                              
ffc1e228:	91 1e 00 0c 	stw     r8,12(r30)                             
ffc1e22c:	81 36 00 10 	lwz     r9,16(r22)                             
ffc1e230:	80 b6 00 14 	lwz     r5,20(r22)                             
ffc1e234:	80 f6 00 18 	lwz     r7,24(r22)                             
ffc1e238:	81 16 00 1c 	lwz     r8,28(r22)                             
ffc1e23c:	91 3e 00 10 	stw     r9,16(r30)                             
ffc1e240:	90 be 00 14 	stw     r5,20(r30)                             
ffc1e244:	90 fe 00 18 	stw     r7,24(r30)                             
ffc1e248:	91 1e 00 1c 	stw     r8,28(r30)                             
            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,                   
ffc1e24c:	80 f1 00 a0 	lwz     r7,160(r17)                            
ffc1e250:	7e 23 8b 78 	mr      r3,r17                                 
ffc1e254:	7f 04 c3 78 	mr      r4,r24                                 
ffc1e258:	7c bf da 14 	add     r5,r31,r27                             
ffc1e25c:	7c e7 da 14 	add     r7,r7,r27                              
ffc1e260:	4b ff 88 49 	bl      ffc16aa8 <fat_file_write>              
                             (empty_space_offset * bts2rd) + empty_space_entry,
                             length, fs_info->cl_buf + empty_space_entry);
        if (ret == -1)                                                
ffc1e264:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc1e268:	41 9e 02 18 	beq-    cr7,ffc1e480 <msdos_find_name_in_fat_file+0x9e4><== NEVER TAKEN
            return ret;                                               
        else if (ret != length)                                       
ffc1e26c:	7f 83 b8 00 	cmpw    cr7,r3,r23                             
ffc1e270:	40 9e 00 c8 	bne-    cr7,ffc1e338 <msdos_find_name_in_fat_file+0x89c><== NEVER TAKEN
#endif                                                                
                                                                      
    /*                                                                
     * The one more is the short entry.                               
     */                                                               
    while (lfn_entry < (lfn_entries + 1))                             
ffc1e274:	81 21 00 18 	lwz     r9,24(r1)                              
        if (ret == -1)                                                
            return ret;                                               
        else if (ret != length)                                       
            rtems_set_errno_and_return_minus_one(EIO);                
                                                                      
        empty_space_offset++;                                         
ffc1e278:	39 ef 00 01 	addi    r15,r15,1                              
ffc1e27c:	7f ff e2 14 	add     r31,r31,r28                            
#endif                                                                
                                                                      
    /*                                                                
     * The one more is the short entry.                               
     */                                                               
    while (lfn_entry < (lfn_entries + 1))                             
ffc1e280:	7f 89 c8 00 	cmpw    cr7,r9,r25                             
            return ret;                                               
        else if (ret != length)                                       
            rtems_set_errno_and_return_minus_one(EIO);                
                                                                      
        empty_space_offset++;                                         
        empty_space_entry = 0;                                        
ffc1e284:	3b 60 00 00 	li      r27,0                                  
#endif                                                                
                                                                      
    /*                                                                
     * The one more is the short entry.                               
     */                                                               
    while (lfn_entry < (lfn_entries + 1))                             
ffc1e288:	41 9c 01 48 	blt-    cr7,ffc1e3d0 <msdos_find_name_in_fat_file+0x934><== ALWAYS TAKEN
        {                                                             
          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,                  
ffc1e28c:	80 f1 00 a0 	lwz     r7,160(r17)                            
ffc1e290:	7e 23 8b 78 	mr      r3,r17                                 
ffc1e294:	7f 04 c3 78 	mr      r4,r24                                 
ffc1e298:	7f e5 fb 78 	mr      r5,r31                                 
ffc1e29c:	7f 86 e3 78 	mr      r6,r28                                 
ffc1e2a0:	4b ff 7f c1 	bl      ffc16260 <fat_file_read>               
                              (empty_space_offset * bts2rd), bts2rd,  
                              fs_info->cl_buf);                       
                                                                      
          if (ret != bts2rd)                                          
ffc1e2a4:	7f 83 e0 00 	cmpw    cr7,r3,r28                             
ffc1e2a8:	41 be fd 94 	beq-    cr7,ffc1e03c <msdos_find_name_in_fat_file+0x5a0><== NEVER TAKEN
          {                                                           
            if (ret != FAT_EOF)                                       
ffc1e2ac:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1e2b0:	40 9e 00 68 	bne-    cr7,ffc1e318 <msdos_find_name_in_fat_file+0x87c><== NEVER TAKEN
              rtems_set_errno_and_return_minus_one(EIO);              
                                                                      
#if MSDOS_FIND_PRINT                                                  
            printf ("MSFS:[9.2] extending file:%li\n", empty_space_offset);
#endif                                                                
            ret = fat_file_extend (&fs_info->fat, fat_fd, false,      
ffc1e2b4:	7e 23 8b 78 	mr      r3,r17                                 
ffc1e2b8:	7f 04 c3 78 	mr      r4,r24                                 
ffc1e2bc:	38 a0 00 00 	li      r5,0                                   
ffc1e2c0:	7f e6 fb 78 	mr      r6,r31                                 
ffc1e2c4:	38 e1 00 10 	addi    r7,r1,16                               
ffc1e2c8:	4b ff 85 51 	bl      ffc16818 <fat_file_extend>             
                                   empty_space_offset * bts2rd, &new_length);
                                                                      
            if (ret != RC_OK)                                         
ffc1e2cc:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1e2d0:	40 82 00 58 	bne-    ffc1e328 <msdos_find_name_in_fat_file+0x88c><== 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))          
ffc1e2d4:	81 21 00 10 	lwz     r9,16(r1)                              
ffc1e2d8:	7f 89 f8 00 	cmpw    cr7,r9,r31                             
ffc1e2dc:	40 9e 00 3c 	bne-    cr7,ffc1e318 <msdos_find_name_in_fat_file+0x87c><== NEVER TAKEN
              rtems_set_errno_and_return_minus_one(EIO);              
                                                                      
            memset(fs_info->cl_buf, 0, bts2rd);                       
ffc1e2e0:	80 71 00 a0 	lwz     r3,160(r17)                            
ffc1e2e4:	38 80 00 00 	li      r4,0                                   
ffc1e2e8:	7f 85 e3 78 	mr      r5,r28                                 
ffc1e2ec:	48 00 41 85 	bl      ffc22470 <memset>                      
                                                                      
            ret = fat_file_write(&fs_info->fat, fat_fd,               
ffc1e2f0:	80 f1 00 a0 	lwz     r7,160(r17)                            
ffc1e2f4:	7e 23 8b 78 	mr      r3,r17                                 
ffc1e2f8:	7f 04 c3 78 	mr      r4,r24                                 
ffc1e2fc:	7f e5 fb 78 	mr      r5,r31                                 
ffc1e300:	7f 86 e3 78 	mr      r6,r28                                 
ffc1e304:	4b ff 87 a5 	bl      ffc16aa8 <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)                                            
ffc1e308:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc1e30c:	41 9e 00 1c 	beq-    cr7,ffc1e328 <msdos_find_name_in_fat_file+0x88c><== ALWAYS TAKEN
              return ret;                                             
            else if (ret != bts2rd)                                   
ffc1e310:	7f 83 e0 00 	cmpw    cr7,r3,r28                             <== NOT EXECUTED
ffc1e314:	41 9e fd 28 	beq+    cr7,ffc1e03c <msdos_find_name_in_fat_file+0x5a0><== NOT EXECUTED
              rtems_set_errno_and_return_minus_one(EIO);              
ffc1e318:	48 00 33 85 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc1e31c:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc1e320:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1e324:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
                if (lfn_start.cln != FAT_FILE_SHORT_NAME)             
                {                                                     
                  rc = fat_file_ioctl(&fs_info->fat, fat_fd, F_CLU_NUM,
                                      lfn_start.cln * bts2rd,         
                                      &lfn_start.cln);                
                  if (rc != RC_OK)                                    
ffc1e328:	7c 7d 1b 78 	mr      r29,r3                                 
ffc1e32c:	4b ff fa 98 	b       ffc1ddc4 <msdos_find_name_in_fat_file+0x328>
                        if (rc != RC_OK)                              
                            return rc;                                
                                                                      
                        dir_pos->sname.ofs = dir_entry;               
                                                                      
                        if (lfn_start.cln != FAT_FILE_SHORT_NAME)     
ffc1e330:	39 20 ff ff 	li      r9,-1                                  
ffc1e334:	4b ff fa 44 	b       ffc1dd78 <msdos_find_name_in_fat_file+0x2dc>
                             (empty_space_offset * bts2rd) + empty_space_entry,
                             length, fs_info->cl_buf + empty_space_entry);
        if (ret == -1)                                                
            return ret;                                               
        else if (ret != length)                                       
            rtems_set_errno_and_return_minus_one(EIO);                
ffc1e338:	48 00 33 65 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc1e33c:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc1e340:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1e344:	3b a0 ff ff 	li      r29,-1                                 <== NOT EXECUTED
ffc1e348:	4b ff fa 7c 	b       ffc1ddc4 <msdos_find_name_in_fat_file+0x328><== NOT EXECUTED
     * 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)                                       
ffc1e34c:	7e 0f 83 78 	mr      r15,r16                                
    {                                                                 
        read_cluster = true;                                          
ffc1e350:	39 20 00 01 	li      r9,1                                   
        empty_space_offset = dir_offset;                              
        empty_space_entry = 0;                                        
ffc1e354:	3b 60 00 00 	li      r27,0                                  
ffc1e358:	4b ff fc c4 	b       ffc1e01c <msdos_find_name_in_fat_file+0x580>
                {                                                     
                    case 4:                                           
                        p += 5;                                       
                        break;                                        
                    case 10:                                          
                        p += 4;                                       
ffc1e35c:	39 29 00 04 	addi    r9,r9,4                                
ffc1e360:	39 08 00 01 	addi    r8,r8,1                                
ffc1e364:	4b ff fd a0 	b       ffc1e104 <msdos_find_name_in_fat_file+0x668>
             * first entry written and if so remember the             
             * the location of the long file name.                    
             */                                                       
            if (lfn_start.cln == FAT_FILE_SHORT_NAME)                 
            {                                                         
              lfn_start.cln = empty_space_offset;                     
ffc1e368:	91 e1 00 08 	stw     r15,8(r1)                              
              lfn_start.ofs = dir_entry;                              
ffc1e36c:	93 21 00 0c 	stw     r25,12(r1)                             
ffc1e370:	4b ff fd 28 	b       ffc1e098 <msdos_find_name_in_fat_file+0x5fc>
        printf ("MSFS:[10] eso:%li\n", empty_space_offset);           
#endif                                                                
                                                                      
        for (dir_entry = empty_space_entry;                           
             dir_entry < bts2rd;                                      
             dir_entry += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)          
ffc1e374:	3b 39 00 20 	addi    r25,r25,32                             
                                                                      
#if MSDOS_FIND_PRINT                                                  
        printf ("MSFS:[10] eso:%li\n", empty_space_offset);           
#endif                                                                
                                                                      
        for (dir_entry = empty_space_entry;                           
ffc1e378:	7f 9c c8 40 	cmplw   cr7,r28,r25                            
                }                                                     
            }                                                         
                                                                      
            *MSDOS_DIR_ENTRY_TYPE(entry) = (lfn_entries - lfn_entry) + 1;
            if (lfn_entry == 1)                                       
                *MSDOS_DIR_ENTRY_TYPE(entry) |= MSDOS_LAST_LONG_ENTRY;
ffc1e37c:	61 29 00 40 	ori     r9,r9,64                               
ffc1e380:	99 3e 00 00 	stb     r9,0(r30)                              
            *MSDOS_DIR_ATTR(entry) |= MSDOS_ATTR_LFN;                 
ffc1e384:	89 3e 00 0b 	lbz     r9,11(r30)                             
ffc1e388:	61 29 00 0f 	ori     r9,r9,15                               
ffc1e38c:	99 3e 00 0b 	stb     r9,11(r30)                             
                                                                      
#if MSDOS_FIND_PRINT                                                  
        printf ("MSFS:[10] eso:%li\n", empty_space_offset);           
#endif                                                                
                                                                      
        for (dir_entry = empty_space_entry;                           
ffc1e390:	41 9d fd f0 	bgt+    cr7,ffc1e180 <msdos_find_name_in_fat_file+0x6e4><== ALWAYS TAKEN
ffc1e394:	7e e6 bb 78 	mr      r6,r23                                 <== NOT EXECUTED
ffc1e398:	7f b9 eb 78 	mr      r25,r29                                <== NOT EXECUTED
ffc1e39c:	4b ff fe b0 	b       ffc1e24c <msdos_find_name_in_fat_file+0x7b0><== NOT EXECUTED
                if (rc != RC_OK)                                      
                  return rc;                                          
                                                                      
                dir_pos->sname.ofs = dir_entry;                       
                                                                      
                if (lfn_start.cln != FAT_FILE_SHORT_NAME)             
ffc1e3a0:	39 20 ff ff 	li      r9,-1                                  
ffc1e3a4:	4b ff fe 54 	b       ffc1e1f8 <msdos_find_name_in_fat_file+0x75c>
                                                                      
    /*                                                                
     * If we are not to create the entry return a not found error.    
     */                                                               
    if (!create_node)                                                 
      return MSDOS_NAME_NOT_FOUND_ERR;                                
ffc1e3a8:	3b a0 7d 01 	li      r29,32001                              
ffc1e3ac:	4b ff fa 18 	b       ffc1ddc4 <msdos_find_name_in_fat_file+0x328>
                    length, lfn_entry);                               
#endif                                                                
            /*                                                        
             * Time to write the short file name entry.               
             */                                                       
            if (lfn_entry == (lfn_entries + 1))                       
ffc1e3b0:	7f 79 db 78 	mr      r25,r27                                
            char*       p;                                            
            const char* n;                                            
            int         i;                                            
            char        fill = 0;                                     
                                                                      
            length += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;              
ffc1e3b4:	3a e0 00 20 	li      r23,32                                 
ffc1e3b8:	4b ff fd e4 	b       ffc1e19c <msdos_find_name_in_fat_file+0x700>
                                                                      
#if MSDOS_FIND_PRINT                                                  
        printf ("MSFS:[10] eso:%li\n", empty_space_offset);           
#endif                                                                
                                                                      
        for (dir_entry = empty_space_entry;                           
ffc1e3bc:	38 c0 00 00 	li      r6,0                                   <== NOT EXECUTED
ffc1e3c0:	3a e0 00 00 	li      r23,0                                  <== NOT EXECUTED
ffc1e3c4:	4b ff fe 88 	b       ffc1e24c <msdos_find_name_in_fat_file+0x7b0><== NOT EXECUTED
    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;                            
ffc1e3c8:	39 20 00 00 	li      r9,0                                   
ffc1e3cc:	4b ff fc 50 	b       ffc1e01c <msdos_find_name_in_fat_file+0x580>
        empty_space_offset++;                                         
        empty_space_entry = 0;                                        
        read_cluster = true;                                          
    }                                                                 
                                                                      
    return 0;                                                         
ffc1e3d0:	3b a0 00 00 	li      r29,0                                  
ffc1e3d4:	4b ff f9 f0 	b       ffc1ddc4 <msdos_find_name_in_fat_file+0x328>
{                                                                     
    static const char* hex = "0123456789ABCDEF";                      
    char* c = MSDOS_DIR_NAME(sfn);                                    
    int   i;                                                          
    for (i = 0; i < 2; i++, c++)                                      
      if ((*c == ' ') || (*c == '.'))                                 
ffc1e3d8:	89 36 00 00 	lbz     r9,0(r22)                              
     * in this directory.                                             
     */                                                               
    lfn_checksum = 0;                                                 
    if (name_type == MSDOS_NAME_LONG)                                 
    {                                                                 
        int      slot = (((empty_space_offset * bts2rd) + empty_space_entry) /
ffc1e3dc:	7d 0f e1 d6 	mullw   r8,r15,r28                             
                         MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE) + lfn_entries + 1;
ffc1e3e0:	81 41 00 18 	lwz     r10,24(r1)                             
{                                                                     
    static const char* hex = "0123456789ABCDEF";                      
    char* c = MSDOS_DIR_NAME(sfn);                                    
    int   i;                                                          
    for (i = 0; i < 2; i++, c++)                                      
      if ((*c == ' ') || (*c == '.'))                                 
ffc1e3e4:	2f 89 00 20 	cmpwi   cr7,r9,32                              
     * in this directory.                                             
     */                                                               
    lfn_checksum = 0;                                                 
    if (name_type == MSDOS_NAME_LONG)                                 
    {                                                                 
        int      slot = (((empty_space_offset * bts2rd) + empty_space_entry) /
ffc1e3e8:	7d 08 da 14 	add     r8,r8,r27                              
                         MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE) + lfn_entries + 1;
ffc1e3ec:	38 ca 00 01 	addi    r6,r10,1                               
     * in this directory.                                             
     */                                                               
    lfn_checksum = 0;                                                 
    if (name_type == MSDOS_NAME_LONG)                                 
    {                                                                 
        int      slot = (((empty_space_offset * bts2rd) + empty_space_entry) /
ffc1e3f0:	55 08 d9 7e 	rlwinm  r8,r8,27,5,31                          
                         MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE) + lfn_entries + 1;
ffc1e3f4:	7c c6 42 14 	add     r6,r6,r8                               
{                                                                     
    static const char* hex = "0123456789ABCDEF";                      
    char* c = MSDOS_DIR_NAME(sfn);                                    
    int   i;                                                          
    for (i = 0; i < 2; i++, c++)                                      
      if ((*c == ' ') || (*c == '.'))                                 
ffc1e3f8:	41 9e 00 7c 	beq-    cr7,ffc1e474 <msdos_find_name_in_fat_file+0x9d8>
ffc1e3fc:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
ffc1e400:	41 9e 00 74 	beq-    cr7,ffc1e474 <msdos_find_name_in_fat_file+0x9d8><== NEVER TAKEN
ffc1e404:	89 36 00 01 	lbz     r9,1(r22)                              
ffc1e408:	2f 89 00 20 	cmpwi   cr7,r9,32                              
ffc1e40c:	41 9e 00 5c 	beq-    cr7,ffc1e468 <msdos_find_name_in_fat_file+0x9cc>
ffc1e410:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
ffc1e414:	41 9e 00 54 	beq-    cr7,ffc1e468 <msdos_find_name_in_fat_file+0x9cc><== NEVER TAKEN
ffc1e418:	39 60 00 04 	li      r11,4                                  
ffc1e41c:	7d 69 03 a6 	mtctr   r11                                    
ffc1e420:	3c e0 ff c3 	lis     r7,-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(                                      
ffc1e424:	39 16 00 01 	addi    r8,r22,1                               
ffc1e428:	39 20 00 0c 	li      r9,12                                  
ffc1e42c:	38 e7 19 98 	addi    r7,r7,6552                             
    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];                         
ffc1e430:	7c c5 4e 30 	sraw    r5,r6,r9                               
ffc1e434:	54 a5 07 3e 	clrlwi  r5,r5,28                               
ffc1e438:	7c a7 28 ae 	lbzx    r5,r7,r5                               
ffc1e43c:	39 29 ff fc 	addi    r9,r9,-4                               
ffc1e440:	9c a8 00 01 	stbu    r5,1(r8)                               
    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++)                                      
ffc1e444:	42 00 ff ec 	bdnz+   ffc1e430 <msdos_find_name_in_fat_file+0x994>
      *c = hex[(num >> ((3 - i) * 4)) & 0xf];                         
    *c++ = '~';                                                       
ffc1e448:	39 20 00 7e 	li      r9,126                                 
ffc1e44c:	99 36 00 06 	stb     r9,6(r22)                              
    *c++ = '1';                                                       
ffc1e450:	39 20 00 31 	li      r9,49                                  
ffc1e454:	99 36 00 07 	stb     r9,7(r22)                              
ffc1e458:	4b ff fb 50 	b       ffc1dfa8 <msdos_find_name_in_fat_file+0x50c>
ffc1e45c:	39 40 00 01 	li      r10,1                                  <== NOT EXECUTED
ffc1e460:	7d 49 03 a6 	mtctr   r10                                    <== NOT EXECUTED
ffc1e464:	4b ff fa 34 	b       ffc1de98 <msdos_find_name_in_fat_file+0x3fc><== NOT EXECUTED
    static const char* hex = "0123456789ABCDEF";                      
    char* c = MSDOS_DIR_NAME(sfn);                                    
    int   i;                                                          
    for (i = 0; i < 2; i++, c++)                                      
      if ((*c == ' ') || (*c == '.'))                                 
        *c = '_';                                                     
ffc1e468:	39 20 00 5f 	li      r9,95                                  
ffc1e46c:	99 36 00 01 	stb     r9,1(r22)                              
ffc1e470:	4b ff ff a8 	b       ffc1e418 <msdos_find_name_in_fat_file+0x97c>
ffc1e474:	39 20 00 5f 	li      r9,95                                  
ffc1e478:	99 36 00 00 	stb     r9,0(r22)                              
ffc1e47c:	4b ff ff 88 	b       ffc1e404 <msdos_find_name_in_fat_file+0x968>
        }                                                             
                                                                      
        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)                                                
ffc1e480:	3b a0 ff ff 	li      r29,-1                                 <== NOT EXECUTED
ffc1e484:	4b ff f9 40 	b       ffc1ddc4 <msdos_find_name_in_fat_file+0x328><== NOT EXECUTED
    uint32_t         empty_space_count = 0;                           
    bool             empty_space_found = false;                       
    uint32_t         entries_per_block;                               
    bool             read_cluster = false;                            
                                                                      
    assert(name_len > 0);                                             
ffc1e488:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc1e48c:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1e490:	38 a5 20 e0 	addi    r5,r5,8416                             <== NOT EXECUTED
ffc1e494:	3c c0 ff c3 	lis     r6,-61                                 <== NOT EXECUTED
ffc1e498:	38 63 21 58 	addi    r3,r3,8536                             <== NOT EXECUTED
ffc1e49c:	38 80 03 c9 	li      r4,969                                 <== NOT EXECUTED
ffc1e4a0:	38 a5 00 14 	addi    r5,r5,20                               <== NOT EXECUTED
ffc1e4a4:	38 c6 21 d8 	addi    r6,r6,8664                             <== NOT EXECUTED
ffc1e4a8:	4b fe 80 85 	bl      ffc0652c <__assert_func>               <== NOT EXECUTED
#endif                                                                
                                                                      
        if (ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)                  
            rtems_set_errno_and_return_minus_one(EIO);                
                                                                      
        assert(ret == bts2rd);                                        
ffc1e4ac:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc1e4b0:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1e4b4:	38 a5 20 e0 	addi    r5,r5,8416                             <== NOT EXECUTED
ffc1e4b8:	3c c0 ff c3 	lis     r6,-61                                 <== NOT EXECUTED
ffc1e4bc:	38 63 21 58 	addi    r3,r3,8536                             <== NOT EXECUTED
ffc1e4c0:	38 80 03 f9 	li      r4,1017                                <== NOT EXECUTED
ffc1e4c4:	38 a5 00 14 	addi    r5,r5,20                               <== NOT EXECUTED
ffc1e4c8:	38 c6 21 e8 	addi    r6,r6,8680                             <== NOT EXECUTED
ffc1e4cc:	4b fe 80 61 	bl      ffc0652c <__assert_func>               <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * If we are not to create the entry return a not found error.    
     */                                                               
    if (!create_node)                                                 
ffc1e4d0:	41 92 fe d8 	beq+    cr4,ffc1e3a8 <msdos_find_name_in_fat_file+0x90c>
ffc1e4d4:	2c 1d 00 00 	cmpwi   r29,0                                  
ffc1e4d8:	4b ff fa c4 	b       ffc1df9c <msdos_find_name_in_fat_file+0x500>
                                                                      

ffc1e4dc <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 ) {
ffc1e4dc:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc1e4e0:	7c 08 02 a6 	mflr    r0                                     
ffc1e4e4:	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) &&                                 
ffc1e4e8:	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                   
    )                                                                 
{                                                                     
ffc1e4ec:	93 01 00 10 	stw     r24,16(r1)                             
ffc1e4f0:	7c 98 23 78 	mr      r24,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) &&                                 
ffc1e4f4:	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                   
    )                                                                 
{                                                                     
ffc1e4f8:	93 21 00 14 	stw     r25,20(r1)                             
ffc1e4fc:	93 41 00 18 	stw     r26,24(r1)                             
ffc1e500:	7c ba 2b 78 	mr      r26,r5                                 
ffc1e504:	93 81 00 20 	stw     r28,32(r1)                             
ffc1e508:	7c dc 33 78 	mr      r28,r6                                 
ffc1e50c:	93 a1 00 24 	stw     r29,36(r1)                             
ffc1e510:	7c fd 3b 78 	mr      r29,r7                                 
ffc1e514:	92 e1 00 0c 	stw     r23,12(r1)                             
ffc1e518:	93 61 00 1c 	stw     r27,28(r1)                             
ffc1e51c:	93 c1 00 28 	stw     r30,40(r1)                             
ffc1e520:	93 e1 00 2c 	stw     r31,44(r1)                             
    int              rc = RC_OK;                                      
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
ffc1e524:	83 23 00 08 	lwz     r25,8(r3)                              
    uint32_t         bts2rd = 0;                                      
    uint32_t         i = 0, j = 0;                                    
                                                                      
    if (FAT_FD_OF_ROOT_DIR(fat_fd) &&                                 
ffc1e528:	41 9e 00 dc 	beq-    cr7,ffc1e604 <msdos_find_node_by_cluster_num_in_fat_file+0x128><== NEVER TAKEN
       (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))             
        bts2rd = fat_fd->fat_file_size;                               
    else                                                              
        bts2rd = fs_info->fat.vol.bpc;                                
ffc1e52c:	a3 79 00 06 	lhz     r27,6(r25)                             
ffc1e530:	80 f9 00 a0 	lwz     r7,160(r25)                            
                                  fs_info->cl_buf)) != FAT_EOF)       
    {                                                                 
        if ( ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE )                
            rtems_set_errno_and_return_minus_one( EIO );              
                                                                      
        assert(ret == bts2rd);                                        
ffc1e534:	3a e0 00 00 	li      r23,0                                  
       (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,
ffc1e538:	7f 23 cb 78 	mr      r3,r25                                 
ffc1e53c:	7f 04 c3 78 	mr      r4,r24                                 
ffc1e540:	7e e5 bb 78 	mr      r5,r23                                 
ffc1e544:	7f 66 db 78 	mr      r6,r27                                 
ffc1e548:	4b ff 7d 19 	bl      ffc16260 <fat_file_read>               
ffc1e54c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1e550:	41 82 00 7c 	beq-    ffc1e5cc <msdos_find_node_by_cluster_num_in_fat_file+0xf0><== NEVER TAKEN
                                  fs_info->cl_buf)) != FAT_EOF)       
    {                                                                 
        if ( ret < MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE )                
ffc1e554:	2f 83 00 1f 	cmpwi   cr7,r3,31                              
ffc1e558:	40 9d 01 74 	ble-    cr7,ffc1e6cc <msdos_find_node_by_cluster_num_in_fat_file+0x1f0><== NEVER TAKEN
            rtems_set_errno_and_return_minus_one( EIO );              
                                                                      
        assert(ret == bts2rd);                                        
ffc1e55c:	7f 83 d8 00 	cmpw    cr7,r3,r27                             
ffc1e560:	40 9e 01 80 	bne-    cr7,ffc1e6e0 <msdos_find_node_by_cluster_num_in_fat_file+0x204><== NEVER TAKEN
ffc1e564:	80 f9 00 a0 	lwz     r7,160(r25)                            
ffc1e568:	3b c0 00 00 	li      r30,0                                  
ffc1e56c:	7c ff 3b 78 	mr      r31,r7                                 
        for (i = 0; i < bts2rd; i += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE)
        {                                                             
            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)) ==                     
ffc1e570:	89 3f 00 00 	lbz     r9,0(r31)                              
ffc1e574:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1e578:	41 9e 00 54 	beq-    cr7,ffc1e5cc <msdos_find_node_by_cluster_num_in_fat_file+0xf0><== 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)) ==                     
ffc1e57c:	2f 89 00 e5 	cmpwi   cr7,r9,229                             
ffc1e580:	41 9e 00 34 	beq-    cr7,ffc1e5b4 <msdos_find_node_by_cluster_num_in_fat_file+0xd8><== NEVER TAKEN
                MSDOS_THIS_DIR_ENTRY_EMPTY)                           
                continue;                                             
                                                                      
            /* if get a non-empty entry - compare clusters num */     
            if (MSDOS_EXTRACT_CLUSTER_NUM(entry) == cl4find)          
ffc1e584:	a1 5f 00 14 	lhz     r10,20(r31)                            
ffc1e588:	a1 3f 00 1a 	lhz     r9,26(r31)                             
ffc1e58c:	55 48 c2 3e 	rlwinm  r8,r10,24,8,31                         
ffc1e590:	55 4a 44 2e 	rlwinm  r10,r10,8,16,23                        
ffc1e594:	7d 0a 53 78 	or      r10,r8,r10                             
ffc1e598:	55 28 c2 3e 	rlwinm  r8,r9,24,8,31                          
ffc1e59c:	55 29 44 2e 	rlwinm  r9,r9,8,16,23                          
ffc1e5a0:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc1e5a4:	7d 09 4b 78 	or      r9,r8,r9                               
ffc1e5a8:	7d 49 4b 78 	or      r9,r10,r9                              
ffc1e5ac:	7f 89 d0 00 	cmpw    cr7,r9,r26                             
ffc1e5b0:	41 9e 00 74 	beq-    cr7,ffc1e624 <msdos_find_node_by_cluster_num_in_fat_file+0x148>
        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)
ffc1e5b4:	3b de 00 20 	addi    r30,r30,32                             
ffc1e5b8:	7f 9e d8 40 	cmplw   cr7,r30,r27                            
ffc1e5bc:	3b ff 00 20 	addi    r31,r31,32                             
ffc1e5c0:	41 9c ff b0 	blt+    cr7,ffc1e570 <msdos_find_node_by_cluster_num_in_fat_file+0x94><== ALWAYS TAKEN
ffc1e5c4:	7e f7 da 14 	add     r23,r23,r27                            <== NOT EXECUTED
ffc1e5c8:	4b ff ff 70 	b       ffc1e538 <msdos_find_node_by_cluster_num_in_fat_file+0x5c><== NOT EXECUTED
            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;                      
ffc1e5cc:	38 60 7d 01 	li      r3,32001                               <== NOT EXECUTED
            }                                                         
        }                                                             
        j++;                                                          
    }                                                                 
    return MSDOS_NAME_NOT_FOUND_ERR;                                  
}                                                                     
ffc1e5d0:	80 01 00 34 	lwz     r0,52(r1)                              <== NOT EXECUTED
ffc1e5d4:	82 e1 00 0c 	lwz     r23,12(r1)                             <== NOT EXECUTED
ffc1e5d8:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc1e5dc:	83 01 00 10 	lwz     r24,16(r1)                             <== NOT EXECUTED
ffc1e5e0:	83 21 00 14 	lwz     r25,20(r1)                             <== NOT EXECUTED
ffc1e5e4:	83 41 00 18 	lwz     r26,24(r1)                             <== NOT EXECUTED
ffc1e5e8:	83 61 00 1c 	lwz     r27,28(r1)                             <== NOT EXECUTED
ffc1e5ec:	83 81 00 20 	lwz     r28,32(r1)                             <== NOT EXECUTED
ffc1e5f0:	83 a1 00 24 	lwz     r29,36(r1)                             <== NOT EXECUTED
ffc1e5f4:	83 c1 00 28 	lwz     r30,40(r1)                             <== NOT EXECUTED
ffc1e5f8:	83 e1 00 2c 	lwz     r31,44(r1)                             <== NOT EXECUTED
ffc1e5fc:	38 21 00 30 	addi    r1,r1,48                               <== NOT EXECUTED
ffc1e600:	4e 80 00 20 	blr                                            <== 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) &&                                 
ffc1e604:	81 24 00 24 	lwz     r9,36(r4)                              <== NOT EXECUTED
ffc1e608:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc1e60c:	40 be ff 20 	bne-    cr7,ffc1e52c <msdos_find_node_by_cluster_num_in_fat_file+0x50><== NOT EXECUTED
       (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))             
ffc1e610:	89 39 00 0e 	lbz     r9,14(r25)                             <== 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) &&                                 
ffc1e614:	71 2a 00 03 	andi.   r10,r9,3                               <== NOT EXECUTED
ffc1e618:	41 a2 ff 14 	beq-    ffc1e52c <msdos_find_node_by_cluster_num_in_fat_file+0x50><== NOT EXECUTED
       (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))             
        bts2rd = fat_fd->fat_file_size;                               
ffc1e61c:	83 64 00 18 	lwz     r27,24(r4)                             <== NOT EXECUTED
ffc1e620:	4b ff ff 10 	b       ffc1e530 <msdos_find_node_by_cluster_num_in_fat_file+0x54><== NOT EXECUTED
                                                                      
            /* if get a non-empty entry - compare clusters num */     
            if (MSDOS_EXTRACT_CLUSTER_NUM(entry) == cl4find)          
            {                                                         
                /* on success fill aux structure and copy all 32 bytes */
                rc = fat_file_ioctl(&fs_info->fat, fat_fd, F_CLU_NUM, j * bts2rd,
ffc1e624:	7f 23 cb 78 	mr      r3,r25                                 
ffc1e628:	7f 04 c3 78 	mr      r4,r24                                 
ffc1e62c:	38 a0 00 01 	li      r5,1                                   
ffc1e630:	7e e6 bb 78 	mr      r6,r23                                 
ffc1e634:	7f 87 e3 78 	mr      r7,r28                                 
ffc1e638:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc1e63c:	4b ff 80 dd 	bl      ffc16718 <fat_file_ioctl>              
                                    &dir_pos->sname.cln);             
                if (rc != RC_OK)                                      
ffc1e640:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1e644:	40 82 ff 8c 	bne+    ffc1e5d0 <msdos_find_node_by_cluster_num_in_fat_file+0xf4><== NEVER TAKEN
                    return rc;                                        
                                                                      
                dir_pos->sname.ofs = i;                               
                dir_pos->lname.cln = FAT_FILE_SHORT_NAME;             
ffc1e648:	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;                               
ffc1e64c:	93 dc 00 04 	stw     r30,4(r28)                             
                dir_pos->lname.cln = FAT_FILE_SHORT_NAME;             
ffc1e650:	91 3c 00 08 	stw     r9,8(r28)                              
                dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;             
ffc1e654:	91 3c 00 0c 	stw     r9,12(r28)                             
                                                                      
                memcpy(dir_entry, entry,                              
ffc1e658:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc1e65c:	80 ff 00 04 	lwz     r7,4(r31)                              
ffc1e660:	81 1f 00 08 	lwz     r8,8(r31)                              
ffc1e664:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc1e668:	91 3d 00 00 	stw     r9,0(r29)                              
ffc1e66c:	90 fd 00 04 	stw     r7,4(r29)                              
ffc1e670:	91 1d 00 08 	stw     r8,8(r29)                              
ffc1e674:	91 5d 00 0c 	stw     r10,12(r29)                            
ffc1e678:	80 ff 00 10 	lwz     r7,16(r31)                             
ffc1e67c:	81 1f 00 14 	lwz     r8,20(r31)                             
ffc1e680:	81 5f 00 18 	lwz     r10,24(r31)                            
ffc1e684:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc1e688:	90 fd 00 10 	stw     r7,16(r29)                             
ffc1e68c:	91 1d 00 14 	stw     r8,20(r29)                             
ffc1e690:	91 5d 00 18 	stw     r10,24(r29)                            
ffc1e694:	91 3d 00 1c 	stw     r9,28(r29)                             
            }                                                         
        }                                                             
        j++;                                                          
    }                                                                 
    return MSDOS_NAME_NOT_FOUND_ERR;                                  
}                                                                     
ffc1e698:	80 01 00 34 	lwz     r0,52(r1)                              
ffc1e69c:	82 e1 00 0c 	lwz     r23,12(r1)                             
ffc1e6a0:	7c 08 03 a6 	mtlr    r0                                     
ffc1e6a4:	83 01 00 10 	lwz     r24,16(r1)                             
ffc1e6a8:	83 21 00 14 	lwz     r25,20(r1)                             
ffc1e6ac:	83 41 00 18 	lwz     r26,24(r1)                             
ffc1e6b0:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc1e6b4:	83 81 00 20 	lwz     r28,32(r1)                             
ffc1e6b8:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc1e6bc:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc1e6c0:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc1e6c4:	38 21 00 30 	addi    r1,r1,48                               
ffc1e6c8:	4e 80 00 20 	blr                                            
                                                                      
    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 )                
            rtems_set_errno_and_return_minus_one( EIO );              
ffc1e6cc:	48 00 2f d1 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc1e6d0:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc1e6d4:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1e6d8:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc1e6dc:	4b ff fe f4 	b       ffc1e5d0 <msdos_find_node_by_cluster_num_in_fat_file+0xf4><== NOT EXECUTED
                                                                      
        assert(ret == bts2rd);                                        
ffc1e6e0:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc1e6e4:	3c 60 ff c3 	lis     r3,-61                                 <== NOT EXECUTED
ffc1e6e8:	38 a5 20 e0 	addi    r5,r5,8416                             <== NOT EXECUTED
ffc1e6ec:	3c c0 ff c3 	lis     r6,-61                                 <== NOT EXECUTED
ffc1e6f0:	38 63 21 58 	addi    r3,r3,8536                             <== NOT EXECUTED
ffc1e6f4:	38 80 06 4e 	li      r4,1614                                <== NOT EXECUTED
ffc1e6f8:	38 a5 00 30 	addi    r5,r5,48                               <== NOT EXECUTED
ffc1e6fc:	38 c6 21 e8 	addi    r6,r6,8680                             <== NOT EXECUTED
ffc1e700:	4b fe 7e 2d 	bl      ffc0652c <__assert_func>               <== NOT EXECUTED
                                                                      

ffc105c4 <msdos_format>: ) /*-------------------------------------------------------------------------*\ | Return Value: | | 0, if success, -1 and errno if failed | \*=========================================================================*/ {
ffc105c4:	94 21 fd 10 	stwu    r1,-752(r1)                            
ffc105c8:	7d 80 00 26 	mfcr    r12                                    
ffc105cc:	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");
ffc105d0:	3c a0 ff c3 	lis     r5,-61                                 
 )                                                                    
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
ffc105d4:	93 a1 02 e4 	stw     r29,740(r1)                            
ffc105d8:	7c 9d 23 78 	mr      r29,r4                                 
  msdos_format_param_t fmt_params;                                    
                                                                      
  /*                                                                  
   * open device for writing                                          
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, "open device\n");
ffc105dc:	38 a5 1a 80 	addi    r5,r5,6784                             
 )                                                                    
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
ffc105e0:	93 e1 02 ec 	stw     r31,748(r1)                            
  msdos_format_param_t fmt_params;                                    
                                                                      
  /*                                                                  
   * open device for writing                                          
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, "open device\n");
ffc105e4:	38 80 00 02 	li      r4,2                                   
 )                                                                    
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
ffc105e8:	7c 7f 1b 78 	mr      r31,r3                                 
  msdos_format_param_t fmt_params;                                    
                                                                      
  /*                                                                  
   * open device for writing                                          
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, "open device\n");
ffc105ec:	7f a3 eb 78 	mr      r3,r29                                 
 )                                                                    
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
ffc105f0:	90 01 02 f4 	stw     r0,756(r1)                             
ffc105f4:	93 81 02 e0 	stw     r28,736(r1)                            
ffc105f8:	91 81 02 ac 	stw     r12,684(r1)                            
ffc105fc:	92 01 02 b0 	stw     r16,688(r1)                            
ffc10600:	92 21 02 b4 	stw     r17,692(r1)                            
ffc10604:	92 41 02 b8 	stw     r18,696(r1)                            
ffc10608:	92 61 02 bc 	stw     r19,700(r1)                            
ffc1060c:	92 81 02 c0 	stw     r20,704(r1)                            
ffc10610:	92 a1 02 c4 	stw     r21,708(r1)                            
ffc10614:	92 c1 02 c8 	stw     r22,712(r1)                            
ffc10618:	92 e1 02 cc 	stw     r23,716(r1)                            
ffc1061c:	93 01 02 d0 	stw     r24,720(r1)                            
ffc10620:	93 21 02 d4 	stw     r25,724(r1)                            
ffc10624:	93 41 02 d8 	stw     r26,728(r1)                            
ffc10628:	93 61 02 dc 	stw     r27,732(r1)                            
ffc1062c:	93 c1 02 e8 	stw     r30,744(r1)                            
  msdos_format_param_t fmt_params;                                    
                                                                      
  /*                                                                  
   * open device for writing                                          
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, "open device\n");
ffc10630:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc10634:	4b ff fb 81 	bl      ffc101b4 <msdos_format_printf>         
  fd = open(devname, O_RDWR);                                         
ffc10638:	7f e3 fb 78 	mr      r3,r31                                 
ffc1063c:	38 80 00 02 	li      r4,2                                   
ffc10640:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc10644:	4b ff 71 45 	bl      ffc07788 <open>                        
  if (fd == -1) {                                                     
ffc10648:	2e 03 ff ff 	cmpwi   cr4,r3,-1                              
                                                                      
  /*                                                                  
   * open device for writing                                          
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, "open device\n");
  fd = open(devname, O_RDWR);                                         
ffc1064c:	7c 7c 1b 78 	mr      r28,r3                                 
  if (fd == -1) {                                                     
ffc10650:	41 92 01 58 	beq-    cr4,ffc107a8 <msdos_format+0x1e4>      <== NEVER TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   * sanity check on device                                           
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
ffc10654:	3c a0 ff c3 	lis     r5,-61                                 
ffc10658:	38 a5 1b 4c 	addi    r5,r5,6988                             
ffc1065c:	7f e6 fb 78 	mr      r6,r31                                 
ffc10660:	38 80 00 02 	li      r4,2                                   
ffc10664:	7f a3 eb 78 	mr      r3,r29                                 
ffc10668:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc1066c:	4b ff fb 49 	bl      ffc101b4 <msdos_format_printf>         
                       "stat check: %s\n", devname);                  
  if (ret_val == 0) {                                                 
    ret_val = fstat(fd, &stat_buf);                                   
ffc10670:	38 81 02 60 	addi    r4,r1,608                              
ffc10674:	7f 83 e3 78 	mr      r3,r28                                 
ffc10678:	4b ff 61 85 	bl      ffc067fc <fstat>                       
  }                                                                   
                                                                      
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_INFO,             
ffc1067c:	3c a0 ff c3 	lis     r5,-61                                 
   * sanity check on device                                           
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
                       "stat check: %s\n", devname);                  
  if (ret_val == 0) {                                                 
    ret_val = fstat(fd, &stat_buf);                                   
ffc10680:	7c 7e 1b 78 	mr      r30,r3                                 
  }                                                                   
                                                                      
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_INFO,             
ffc10684:	38 80 00 01 	li      r4,1                                   
ffc10688:	7f a3 eb 78 	mr      r3,r29                                 
ffc1068c:	38 a5 1b 5c 	addi    r5,r5,7004                             
ffc10690:	7f e6 fb 78 	mr      r6,r31                                 
ffc10694:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc10698:	4b ff fb 1d 	bl      ffc101b4 <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))) {               
ffc1069c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc106a0:	40 9e 00 24 	bne-    cr7,ffc106c4 <msdos_format+0x100>      <== NEVER TAKEN
ffc106a4:	81 21 02 6c 	lwz     r9,620(r1)                             
ffc106a8:	55 29 04 26 	rlwinm  r9,r9,0,16,19                          
ffc106ac:	2f 89 60 00 	cmpwi   cr7,r9,24576                           
ffc106b0:	41 9e 00 b4 	beq-    cr7,ffc10764 <msdos_format+0x1a0>      <== ALWAYS TAKEN
    errno = ENOTTY;                                                   
ffc106b4:	48 01 0f e9 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc106b8:	39 20 00 19 	li      r9,25                                  <== NOT EXECUTED
ffc106bc:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    ret_val = -1;                                                     
ffc106c0:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
  /*                                                                  
   * cleanup:                                                         
   * sync and unlock disk                                             
   * free any data structures (not needed now)                        
   */                                                                 
  if (fd != -1) {                                                     
ffc106c4:	40 92 00 94 	bne-    cr4,ffc10758 <msdos_format+0x194>      <== ALWAYS TAKEN
    close(fd);                                                        
  }                                                                   
                                                                      
  return ret_val;                                                     
}                                                                     
ffc106c8:	80 01 02 f4 	lwz     r0,756(r1)                             
ffc106cc:	7f c3 f3 78 	mr      r3,r30                                 
ffc106d0:	81 81 02 ac 	lwz     r12,684(r1)                            
ffc106d4:	7c 08 03 a6 	mtlr    r0                                     
ffc106d8:	82 01 02 b0 	lwz     r16,688(r1)                            
ffc106dc:	82 21 02 b4 	lwz     r17,692(r1)                            
ffc106e0:	7d 83 81 20 	mtcrf   56,r12                                 
ffc106e4:	82 41 02 b8 	lwz     r18,696(r1)                            
ffc106e8:	82 61 02 bc 	lwz     r19,700(r1)                            
ffc106ec:	82 81 02 c0 	lwz     r20,704(r1)                            
ffc106f0:	82 a1 02 c4 	lwz     r21,708(r1)                            
ffc106f4:	82 c1 02 c8 	lwz     r22,712(r1)                            
ffc106f8:	82 e1 02 cc 	lwz     r23,716(r1)                            
ffc106fc:	83 01 02 d0 	lwz     r24,720(r1)                            
ffc10700:	83 21 02 d4 	lwz     r25,724(r1)                            
ffc10704:	83 41 02 d8 	lwz     r26,728(r1)                            
ffc10708:	83 61 02 dc 	lwz     r27,732(r1)                            
ffc1070c:	83 81 02 e0 	lwz     r28,736(r1)                            
ffc10710:	83 a1 02 e4 	lwz     r29,740(r1)                            
ffc10714:	83 c1 02 e8 	lwz     r30,744(r1)                            
ffc10718:	83 e1 02 ec 	lwz     r31,748(r1)                            
ffc1071c:	38 21 02 f0 	addi    r1,r1,752                              
ffc10720:	4e 80 00 20 	blr                                            
    }                                                                 
                                                                      
    start_sector = loc_align_object (fmt_params.rsvd_sector_cnt,      
                                     fmt_params.sectors_per_cluster,  
                                     fmt_params.skip_alignment);      
    for (i = 0;                                                       
ffc10724:	7f fe fb 78 	mr      r30,r31                                <== NOT EXECUTED
         fmt_params.bytes_per_sector,                                 
         tmp_sec);                                                    
    }                                                                 
  }                                                                   
                                                                      
  if (ret_val == 0 && rqdata != NULL && rqdata->sync_device) {        
ffc10728:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc1072c:	40 9e 00 2c 	bne-    cr7,ffc10758 <msdos_format+0x194>      <== NEVER TAKEN
ffc10730:	41 8e 00 28 	beq-    cr3,ffc10758 <msdos_format+0x194>      
ffc10734:	89 3d 00 17 	lbz     r9,23(r29)                             
ffc10738:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1073c:	41 be 00 1c 	beq+    cr7,ffc10758 <msdos_format+0x194>      
  return ioctl(fd, RTEMS_BLKIO_GETDISKDEV, dd_ptr);                   
}                                                                     
                                                                      
static inline int rtems_disk_fd_sync(int fd)                          
{                                                                     
  return ioctl(fd, RTEMS_BLKIO_SYNCDEV);                              
ffc10740:	3c 80 20 00 	lis     r4,8192                                
ffc10744:	7f 83 e3 78 	mr      r3,r28                                 
ffc10748:	60 84 42 06 	ori     r4,r4,16902                            
ffc1074c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc10750:	48 00 8c 39 	bl      ffc19388 <ioctl>                       
ffc10754:	7c 7e 1b 78 	mr      r30,r3                                 
   * cleanup:                                                         
   * sync and unlock disk                                             
   * free any data structures (not needed now)                        
   */                                                                 
  if (fd != -1) {                                                     
    close(fd);                                                        
ffc10758:	7f 83 e3 78 	mr      r3,r28                                 
ffc1075c:	4b ff 5f 1d 	bl      ffc06678 <close>                       
ffc10760:	4b ff ff 68 	b       ffc106c8 <msdos_format+0x104>          
  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));                           
ffc10764:	38 80 00 00 	li      r4,0                                   
ffc10768:	38 a0 00 54 	li      r5,84                                  
ffc1076c:	38 61 02 08 	addi    r3,r1,520                              
ffc10770:	48 01 1d 01 	bl      ffc22470 <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);    
ffc10774:	3c 80 40 04 	lis     r4,16388                               
ffc10778:	7f 83 e3 78 	mr      r3,r28                                 
ffc1077c:	60 84 42 02 	ori     r4,r4,16898                            
ffc10780:	38 a1 02 08 	addi    r5,r1,520                              
ffc10784:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc10788:	48 00 8c 01 	bl      ffc19388 <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) {                                                 
ffc1078c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc10790:	41 82 00 58 	beq-    ffc107e8 <msdos_format+0x224>          <== ALWAYS TAKEN
ffc10794:	80 a1 02 0c 	lwz     r5,524(r1)                             
      }                                                               
                                                                      
      ++iteration_cnt;                                                
    }                                                                 
  }                                                                   
  if ( fmt_params->totl_sector_cnt == 0 )                             
ffc10798:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc1079c:	41 9e 01 38 	beq-    cr7,ffc108d4 <msdos_format+0x310>      <== NEVER TAKEN
ffc107a0:	7c 7e 1b 78 	mr      r30,r3                                 
ffc107a4:	48 00 01 40 	b       ffc108e4 <msdos_format+0x320>          
  }                                                                   
                                                                      
  /*                                                                  
   * sanity check on device                                           
   */                                                                 
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
ffc107a8:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc107ac:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc107b0:	38 80 00 02 	li      r4,2                                   <== NOT EXECUTED
ffc107b4:	38 a5 1b 4c 	addi    r5,r5,6988                             <== NOT EXECUTED
ffc107b8:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
ffc107bc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc107c0:	4b ff f9 f5 	bl      ffc101b4 <msdos_format_printf>         <== NOT EXECUTED
                       "stat check: %s\n", devname);                  
  if (ret_val == 0) {                                                 
    ret_val = fstat(fd, &stat_buf);                                   
  }                                                                   
                                                                      
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_INFO,             
ffc107c4:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc107c8:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc107cc:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc107d0:	38 a5 1b 5c 	addi    r5,r5,7004                             <== NOT EXECUTED
ffc107d4:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
ffc107d8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc107dc:	4b ff f9 d9 	bl      ffc101b4 <msdos_format_printf>         <== NOT EXECUTED
ffc107e0:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc107e4:	4b ff fe e4 	b       ffc106c8 <msdos_format+0x104>          <== 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);                 
ffc107e8:	3c 80 40 04 	lis     r4,16388                               
ffc107ec:	7f 83 e3 78 	mr      r3,r28                                 
ffc107f0:	60 84 42 05 	ori     r4,r4,16901                            
ffc107f4:	38 a1 02 0c 	addi    r5,r1,524                              
ffc107f8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc107fc:	48 00 8b 8d 	bl      ffc19388 <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) {                                                 
ffc10800:	2c 03 00 00 	cmpwi   r3,0                                   
ffc10804:	40 a2 ff 90 	bne-    ffc10794 <msdos_format+0x1d0>          <== NEVER TAKEN
    total_size = fmt_params->bytes_per_sector * fmt_params->totl_sector_cnt;
ffc10808:	80 c1 02 08 	lwz     r6,520(r1)                             
                                                                      
  /*                                                                  
   * determine number of FATs                                         
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata == NULL) ||                                           
ffc1080c:	2d 9d 00 00 	cmpwi   cr3,r29,0                              
  }                                                                   
  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;
ffc10810:	80 e1 02 0c 	lwz     r7,524(r1)                             
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,         
ffc10814:	3c a0 ff c3 	lis     r5,-61                                 
ffc10818:	7f a3 eb 78 	mr      r3,r29                                 
  }                                                                   
  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;
ffc1081c:	7f e7 31 d6 	mullw   r31,r7,r6                              
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,         
ffc10820:	38 80 00 02 	li      r4,2                                   
ffc10824:	38 a5 1a 90 	addi    r5,r5,6800                             
ffc10828:	39 20 00 00 	li      r9,0                                   
ffc1082c:	7f ea fb 78 	mr      r10,r31                                
ffc10830:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc10834:	4b ff f9 81 	bl      ffc101b4 <msdos_format_printf>         
                                                                      
  /*                                                                  
   * determine number of FATs                                         
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata == NULL) ||                                           
ffc10838:	41 8e 0b f0 	beq-    cr3,ffc11428 <msdos_format+0xe64>      
	(rqdata->fat_num == 0)) {                                            
ffc1083c:	81 3d 00 0c 	lwz     r9,12(r29)                             
                                                                      
  /*                                                                  
   * determine number of FATs                                         
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata == NULL) ||                                           
ffc10840:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10844:	41 9e 05 64 	beq-    cr7,ffc10da8 <msdos_format+0x7e4>      
	(rqdata->fat_num == 0)) {                                            
      fmt_params->fat_num = 2;                                        
    }                                                                 
    else if (rqdata->fat_num <= 6) {                                  
ffc10848:	2b 89 00 06 	cmplwi  cr7,r9,6                               
ffc1084c:	41 9d 09 44 	bgt-    cr7,ffc11190 <msdos_format+0xbcc>      
      ret_val = -1;                                                   
    }                                                                 
  }                                                                   
                                                                      
  if (ret_val == 0)                                                   
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,         
ffc10850:	3c a0 ff c3 	lis     r5,-61                                 
    if ((rqdata == NULL) ||                                           
	(rqdata->fat_num == 0)) {                                            
      fmt_params->fat_num = 2;                                        
    }                                                                 
    else if (rqdata->fat_num <= 6) {                                  
      fmt_params->fat_num = rqdata->fat_num;                          
ffc10854:	99 21 02 38 	stb     r9,568(r1)                             
      ret_val = -1;                                                   
    }                                                                 
  }                                                                   
                                                                      
  if (ret_val == 0)                                                   
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,         
ffc10858:	7f a3 eb 78 	mr      r3,r29                                 
ffc1085c:	38 80 00 02 	li      r4,2                                   
ffc10860:	38 a5 1a cc 	addi    r5,r5,6860                             
ffc10864:	7d 26 4b 78 	mr      r6,r9                                  
ffc10868:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc1086c:	4b ff f9 49 	bl      ffc101b4 <msdos_format_printf>         
ffc10870:	48 00 05 5c 	b       ffc10dcc <msdos_format+0x808>          
  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-- ) {                                      
ffc10874:	39 40 00 01 	li      r10,1                                  <== NOT EXECUTED
      if ( (gigs & ( 1 << b) ) != 0 )                                 
        break;                                                        
    }                                                                 
    fmt_params->sectors_per_cluster = 1 << b;                         
ffc10878:	91 41 02 14 	stw     r10,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,
ffc1087c:	38 a1 02 14 	addi    r5,r1,532                              
ffc10880:	7f a3 eb 78 	mr      r3,r29                                 
ffc10884:	38 81 02 08 	addi    r4,r1,520                              
ffc10888:	4b ff fc a9 	bl      ffc10530 <msdos_set_sectors_per_cluster_from_request.isra.1>
                                                                  fmt_params );
          }                                                           
        }                                                             
        if (fat_type != fmt_params->fattype && 1 < iteration_cnt) {   
ffc1088c:	89 21 02 3a 	lbz     r9,570(r1)                             
          --fmt_params->totl_sector_cnt;                              
ffc10890:	80 a1 02 0c 	lwz     r5,524(r1)                             
                                                               total_size );
            ret_val = msdos_set_sectors_per_cluster_from_request( rqdata,
                                                                  fmt_params );
          }                                                           
        }                                                             
        if (fat_type != fmt_params->fattype && 1 < iteration_cnt) {   
ffc10894:	55 2a 06 3e 	clrlwi  r10,r9,24                              
ffc10898:	7f 8a 90 00 	cmpw    cr7,r10,r18                            
ffc1089c:	41 9e 00 14 	beq-    cr7,ffc108b0 <msdos_format+0x2ec>      <== NEVER TAKEN
ffc108a0:	2b 93 00 01 	cmplwi  cr7,r19,1                              
ffc108a4:	40 9d 00 0c 	ble-    cr7,ffc108b0 <msdos_format+0x2ec>      
          --fmt_params->totl_sector_cnt;                              
ffc108a8:	38 a5 ff ff 	addi    r5,r5,-1                               
ffc108ac:	90 a1 02 0c 	stw     r5,524(r1)                             
    if (ret_val == 0) {                                               
      data_clusters_cnt =                                             
        fmt_params->totl_sector_cnt / fmt_params->sectors_per_cluster;
    }                                                                 
                                                                      
    while(   ret_val == 0                                             
ffc108b0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
          --fmt_params->totl_sector_cnt;                              
        }                                                             
                                                                      
      }                                                               
                                                                      
      ++iteration_cnt;                                                
ffc108b4:	3a 73 00 01 	addi    r19,r19,1                              
ffc108b8:	56 73 06 3e 	clrlwi  r19,r19,24                             
    if (ret_val == 0) {                                               
      data_clusters_cnt =                                             
        fmt_params->totl_sector_cnt / fmt_params->sectors_per_cluster;
    }                                                                 
                                                                      
    while(   ret_val == 0                                             
ffc108bc:	40 be fe dc 	bne-    cr7,ffc10798 <msdos_format+0x1d4>      <== NEVER TAKEN
          && fmt_params->fattype != fat_type                          
ffc108c0:	55 29 06 3e 	clrlwi  r9,r9,24                               
ffc108c4:	7f 89 90 00 	cmpw    cr7,r9,r18                             
ffc108c8:	41 9e 0b 98 	beq-    cr7,ffc11460 <msdos_format+0xe9c>      <== NEVER TAKEN
          && fmt_params->totl_sector_cnt > 0 ) {                      
ffc108cc:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc108d0:	40 be 05 ac 	bne+    cr7,ffc10e7c <msdos_format+0x8b8>      <== ALWAYS TAKEN
      ++iteration_cnt;                                                
    }                                                                 
  }                                                                   
  if ( fmt_params->totl_sector_cnt == 0 )                             
  {                                                                   
    errno = EINVAL;                                                   
ffc108d4:	48 01 0d c9 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc108d8:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc108dc:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    ret_val = -1;                                                     
ffc108e0:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc108e4:	2d 1e 00 00 	cmpwi   cr2,r30,0                              
ffc108e8:	83 e1 02 10 	lwz     r31,528(r1)                            
  }                                                                   
  /*                                                                  
   * determine location and size of root directory                    
   * for formatting                                                   
   */                                                                 
  if (fmt_params->root_dir_sectors > 0) {                             
ffc108ec:	81 21 02 24 	lwz     r9,548(r1)                             
    fmt_params->root_dir_start_sec =                                  
      fmt_params->rsvd_sector_cnt                                     
      + (fmt_params-> fat_num*fmt_params->sectors_per_fat);           
ffc108f0:	89 41 02 38 	lbz     r10,568(r1)                            
  }                                                                   
  /*                                                                  
   * determine location and size of root directory                    
   * for formatting                                                   
   */                                                                 
  if (fmt_params->root_dir_sectors > 0) {                             
ffc108f4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc108f8:	41 9e 04 6c 	beq-    cr7,ffc10d64 <msdos_format+0x7a0>      
    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;  
ffc108fc:	91 21 02 2c 	stw     r9,556(r1)                             
   * for formatting                                                   
   */                                                                 
  if (fmt_params->root_dir_sectors > 0) {                             
    fmt_params->root_dir_start_sec =                                  
      fmt_params->rsvd_sector_cnt                                     
      + (fmt_params-> fat_num*fmt_params->sectors_per_fat);           
ffc10900:	81 21 02 18 	lwz     r9,536(r1)                             
ffc10904:	7d 2a 49 d6 	mullw   r9,r10,r9                              
ffc10908:	7f ff 4a 14 	add     r31,r31,r9                             
  /*                                                                  
   * determine location and size of root directory                    
   * for formatting                                                   
   */                                                                 
  if (fmt_params->root_dir_sectors > 0) {                             
    fmt_params->root_dir_start_sec =                                  
ffc1090c:	93 e1 02 28 	stw     r31,552(r1)                            
    fmt_params->root_dir_fmt_sec_cnt = fmt_params->sectors_per_cluster;
  }                                                                   
  /*                                                                  
   * determine usable OEMName                                         
   */                                                                 
  if (ret_val == 0) {                                                 
ffc10910:	40 aa fd b4 	bne-    cr2,ffc106c4 <msdos_format+0x100>      
      const char *from;                                               
      char        *to = fmt_params->OEMName;                          
      int          cnt;                                               
      from = "RTEMS"; /* default: make "from" point to OS Name */     
    if ((rqdata != NULL) &&                                           
ffc10914:	2d 9d 00 00 	cmpwi   cr3,r29,0                              
ffc10918:	41 8e 0a 68 	beq-    cr3,ffc11380 <msdos_format+0xdbc>      
	(rqdata->OEMName != NULL)) {                                         
ffc1091c:	81 1d 00 00 	lwz     r8,0(r29)                              
  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) &&                                           
ffc10920:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc10924:	41 9e 0a 5c 	beq-    cr7,ffc11380 <msdos_format+0xdbc>      
ffc10928:	3d 20 00 00 	lis     r9,0                                   
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
      }                                                               
      *to = '\0';                                                     
ffc1092c:	39 40 00 08 	li      r10,8                                  
ffc10930:	80 c9 27 e8 	lwz     r6,10216(r9)                           
      from = rqdata->OEMName;                                         
    }                                                                 
    for (cnt = 0;                                                     
	 cnt < (sizeof(fmt_params->OEMName)-1);                              
	 cnt++) {                                                            
      if (isprint((unsigned char)*from)) {                            
ffc10934:	38 80 ff 97 	li      r4,-105                                
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
      }                                                               
      *to = '\0';                                                     
ffc10938:	7d 49 03 a6 	mtctr   r10                                    
  /*                                                                  
   * determine usable OEMName                                         
   */                                                                 
  if (ret_val == 0) {                                                 
      const char *from;                                               
      char        *to = fmt_params->OEMName;                          
ffc1093c:	39 21 02 3b 	addi    r9,r1,571                              
	/*                                                                   
	 * non-printable character in given name, so keep stuck              
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
ffc10940:	38 60 00 20 	li      r3,32                                  
      }                                                               
      *to = '\0';                                                     
ffc10944:	38 a0 00 00 	li      r5,0                                   
ffc10948:	48 00 00 18 	b       ffc10960 <msdos_format+0x39c>          
    }                                                                 
    for (cnt = 0;                                                     
	 cnt < (sizeof(fmt_params->OEMName)-1);                              
	 cnt++) {                                                            
      if (isprint((unsigned char)*from)) {                            
	*to++ = *from++;                                                     
ffc1094c:	99 49 00 00 	stb     r10,0(r9)                              
ffc10950:	39 29 00 01 	addi    r9,r9,1                                
ffc10954:	39 08 00 01 	addi    r8,r8,1                                
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
      }                                                               
      *to = '\0';                                                     
ffc10958:	98 a9 00 00 	stb     r5,0(r9)                               
      from = "RTEMS"; /* default: make "from" point to OS Name */     
    if ((rqdata != NULL) &&                                           
	(rqdata->OEMName != NULL)) {                                         
      from = rqdata->OEMName;                                         
    }                                                                 
    for (cnt = 0;                                                     
ffc1095c:	42 40 00 28 	bdz-    ffc10984 <msdos_format+0x3c0>          
	 cnt < (sizeof(fmt_params->OEMName)-1);                              
	 cnt++) {                                                            
      if (isprint((unsigned char)*from)) {                            
ffc10960:	89 48 00 00 	lbz     r10,0(r8)                              
ffc10964:	7c e6 52 14 	add     r7,r6,r10                              
ffc10968:	88 e7 00 01 	lbz     r7,1(r7)                               
ffc1096c:	7c eb 20 39 	and.    r11,r7,r4                              
ffc10970:	40 a2 ff dc 	bne-    ffc1094c <msdos_format+0x388>          
	/*                                                                   
	 * non-printable character in given name, so keep stuck              
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
ffc10974:	98 69 00 00 	stb     r3,0(r9)                               
ffc10978:	39 29 00 01 	addi    r9,r9,1                                
      }                                                               
      *to = '\0';                                                     
ffc1097c:	98 a9 00 00 	stb     r5,0(r9)                               
      from = "RTEMS"; /* default: make "from" point to OS Name */     
    if ((rqdata != NULL) &&                                           
	(rqdata->OEMName != NULL)) {                                         
      from = rqdata->OEMName;                                         
    }                                                                 
    for (cnt = 0;                                                     
ffc10980:	42 00 ff e0 	bdnz+   ffc10960 <msdos_format+0x39c>          
  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) &&                                           
ffc10984:	41 8e 0a 08 	beq-    cr3,ffc1138c <msdos_format+0xdc8>      
	(rqdata->VolLabel != NULL)) {                                        
ffc10988:	81 1d 00 04 	lwz     r8,4(r29)                              
  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) &&                                           
ffc1098c:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc10990:	41 9e 09 fc 	beq-    cr7,ffc1138c <msdos_format+0xdc8>      
	(rqdata->VolLabel != NULL)) {                                        
      from = rqdata->VolLabel;                                        
      fmt_params->VolLabel_present = true;                            
ffc10994:	39 20 00 01 	li      r9,1                                   
ffc10998:	99 21 02 50 	stb     r9,592(r1)                             
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
      }                                                               
      *to = '\0';                                                     
ffc1099c:	39 60 00 0b 	li      r11,11                                 
  /*                                                                  
   * determine usable Volume Label                                    
   */                                                                 
  if (ret_val == 0) {                                                 
      const char *from;                                               
      char        *to = fmt_params->VolLabel;                         
ffc109a0:	39 21 02 44 	addi    r9,r1,580                              
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
      }                                                               
      *to = '\0';                                                     
ffc109a4:	7d 69 03 a6 	mtctr   r11                                    
      fmt_params->VolLabel_present = true;                            
    }                                                                 
    for (cnt = 0;                                                     
	 cnt < (sizeof(fmt_params->VolLabel)-1);                             
	 cnt++) {                                                            
      if (isprint((unsigned char)*from)) {                            
ffc109a8:	38 80 ff 97 	li      r4,-105                                
	/*                                                                   
	 * non-printable character in given name, so keep stuck              
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
ffc109ac:	38 60 00 20 	li      r3,32                                  
      }                                                               
      *to = '\0';                                                     
ffc109b0:	38 a0 00 00 	li      r5,0                                   
ffc109b4:	48 00 00 18 	b       ffc109cc <msdos_format+0x408>          
    }                                                                 
    for (cnt = 0;                                                     
	 cnt < (sizeof(fmt_params->VolLabel)-1);                             
	 cnt++) {                                                            
      if (isprint((unsigned char)*from)) {                            
	*to++ = *from++;                                                     
ffc109b8:	99 49 00 00 	stb     r10,0(r9)                              
ffc109bc:	39 29 00 01 	addi    r9,r9,1                                
ffc109c0:	39 08 00 01 	addi    r8,r8,1                                
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
      }                                                               
      *to = '\0';                                                     
ffc109c4:	98 a9 00 00 	stb     r5,0(r9)                               
    if ((rqdata != NULL) &&                                           
	(rqdata->VolLabel != NULL)) {                                        
      from = rqdata->VolLabel;                                        
      fmt_params->VolLabel_present = true;                            
    }                                                                 
    for (cnt = 0;                                                     
ffc109c8:	42 40 00 28 	bdz-    ffc109f0 <msdos_format+0x42c>          
	 cnt < (sizeof(fmt_params->VolLabel)-1);                             
	 cnt++) {                                                            
      if (isprint((unsigned char)*from)) {                            
ffc109cc:	89 48 00 00 	lbz     r10,0(r8)                              
ffc109d0:	7c e6 52 14 	add     r7,r6,r10                              
ffc109d4:	88 e7 00 01 	lbz     r7,1(r7)                               
ffc109d8:	7c eb 20 39 	and.    r11,r7,r4                              
ffc109dc:	40 a2 ff dc 	bne-    ffc109b8 <msdos_format+0x3f4>          
	/*                                                                   
	 * non-printable character in given name, so keep stuck              
	 * at that character and replace all following characters            
	 * with a ' '                                                        
	 */                                                                  
	*to++=' ';                                                           
ffc109e0:	98 69 00 00 	stb     r3,0(r9)                               
ffc109e4:	39 29 00 01 	addi    r9,r9,1                                
      }                                                               
      *to = '\0';                                                     
ffc109e8:	98 a9 00 00 	stb     r5,0(r9)                               
    if ((rqdata != NULL) &&                                           
	(rqdata->VolLabel != NULL)) {                                        
      from = rqdata->VolLabel;                                        
      fmt_params->VolLabel_present = true;                            
    }                                                                 
    for (cnt = 0;                                                     
ffc109ec:	42 00 ff e0 	bdnz+   ffc109cc <msdos_format+0x408>          
{                                                                     
  int ret_val = 0;                                                    
  int rc;                                                             
  struct timeval time_value;                                          
                                                                      
  rc = rtems_clock_get_tod_timeval(&time_value);                      
ffc109f0:	38 61 00 08 	addi    r3,r1,8                                
ffc109f4:	48 00 9e 6d 	bl      ffc1a860 <rtems_clock_get_tod_timeval> 
  if (rc == RTEMS_SUCCESSFUL) {                                       
ffc109f8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc109fc:	40 9e 09 34 	bne-    cr7,ffc11330 <msdos_format+0xd6c>      <== ALWAYS TAKEN
    *volid_ptr = time_value.tv_sec + time_value.tv_sec;               
ffc10a00:	81 21 00 08 	lwz     r9,8(r1)                               <== NOT EXECUTED
ffc10a04:	55 29 08 3c 	rlwinm  r9,r9,1,0,30                           <== NOT EXECUTED
ffc10a08:	91 21 02 54 	stw     r9,596(r1)                             <== NOT EXECUTED
    ret_val = msdos_format_determine_fmt_params(fd,rqdata,&fmt_params);
  }                                                                   
  /*                                                                  
   * if requested, write whole disk/partition with 0xe5               
   */                                                                 
  if ((ret_val == 0) &&                                               
ffc10a0c:	41 8e 00 10 	beq-    cr3,ffc10a1c <msdos_format+0x458>      
      (rqdata != NULL) &&                                             
ffc10a10:	89 3d 00 15 	lbz     r9,21(r29)                             
ffc10a14:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10a18:	41 9e 03 68 	beq-    cr7,ffc10d80 <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,         
ffc10a1c:	3c a0 ff c3 	lis     r5,-61                                 
ffc10a20:	7f a3 eb 78 	mr      r3,r29                                 
ffc10a24:	38 80 00 02 	li      r4,2                                   
ffc10a28:	38 a5 1a fc 	addi    r5,r5,6908                             
ffc10a2c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc10a30:	4b ff f7 85 	bl      ffc101b4 <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)) {     
ffc10a34:	7f 83 e3 78 	mr      r3,r28                                 
ffc10a38:	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,                               
ffc10a3c:	83 e1 02 08 	lwz     r31,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)) {     
ffc10a40:	38 c0 00 00 	li      r6,0                                   
ffc10a44:	38 e0 00 00 	li      r7,0                                   
ffc10a48:	48 00 89 cd 	bl      ffc19414 <lseek>                       
ffc10a4c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc10a50:	41 9c 03 0c 	blt-    cr7,ffc10d5c <msdos_format+0x798>      <== NEVER TAKEN
    ret_val = -1;                                                     
  }                                                                   
  if (ret_val == 0) {                                                 
    if (0 > read(fd,buffer,sector_size)) {                            
ffc10a54:	7f 83 e3 78 	mr      r3,r28                                 
ffc10a58:	38 81 00 08 	addi    r4,r1,8                                
ffc10a5c:	7f e5 fb 78 	mr      r5,r31                                 
ffc10a60:	48 00 8e 1d 	bl      ffc1987c <read>                        
ffc10a64:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc10a68:	41 9c 02 f4 	blt-    cr7,ffc10d5c <msdos_format+0x798>      <== NEVER TAKEN
    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,       
ffc10a6c:	3c a0 ff c3 	lis     r5,-61                                 
ffc10a70:	7f a3 eb 78 	mr      r3,r29                                 
ffc10a74:	38 80 00 02 	li      r4,2                                   
ffc10a78:	38 a5 1b 6c 	addi    r5,r5,7020                             
ffc10a7c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc10a80:	4b ff f7 35 	bl      ffc101b4 <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) {                        
ffc10a84:	81 21 02 0c 	lwz     r9,524(r1)                             
ffc10a88:	2b 89 ff ff 	cmplwi  cr7,r9,65535                           
ffc10a8c:	41 9d 06 d4 	bgt-    cr7,ffc11160 <msdos_format+0xb9c>      
ffc10a90:	55 3f 06 3e 	clrlwi  r31,r9,24                              
ffc10a94:	55 3e c6 3e 	rlwinm  r30,r9,24,24,31                        
ffc10a98:	3b 60 00 00 	li      r27,0                                  
ffc10a9c:	3b 40 00 00 	li      r26,0                                  
ffc10aa0:	3b 20 00 00 	li      r25,0                                  
ffc10aa4:	3b 00 00 00 	li      r24,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);                     
ffc10aa8:	38 80 00 00 	li      r4,0                                   
ffc10aac:	38 a0 01 be 	li      r5,446                                 
ffc10ab0:	38 61 00 08 	addi    r3,r1,8                                
ffc10ab4:	48 01 19 bd 	bl      ffc22470 <memset>                      
   * with 0xEB,....                                                   
   */                                                                 
  /*                                                                  
   * fill OEMName                                                     
   */                                                                 
  memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),                                
ffc10ab8:	81 21 02 3f 	lwz     r9,575(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) {                             
ffc10abc:	88 c1 02 3a 	lbz     r6,570(r1)                             
   * but first clear the MRB leaving the partition table.             
   */                                                                 
#define RTEMS_IDE_PARTITION_TABLE_OFFSET                  0x1be       
#define RTEMS_IDE_PARTITION_TABLE_SIZE                    (4 * 16)    
  memset(mbr,0,RTEMS_IDE_PARTITION_TABLE_OFFSET);                     
  memset(mbr + RTEMS_IDE_PARTITION_TABLE_OFFSET + RTEMS_IDE_PARTITION_TABLE_SIZE,
ffc10ac0:	38 a0 00 00 	li      r5,0                                   
   * with 0xEB,....                                                   
   */                                                                 
  /*                                                                  
   * fill OEMName                                                     
   */                                                                 
  memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),                                
ffc10ac4:	91 21 00 0f 	stw     r9,15(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 */
ffc10ac8:	38 60 00 02 	li      r3,2                                   
  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) {                             
ffc10acc:	2f 86 00 04 	cmpwi   cr7,r6,4                               
   */                                                                 
  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);
ffc10ad0:	81 21 02 14 	lwz     r9,532(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... */
ffc10ad4:	38 80 00 01 	li      r4,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); 
ffc10ad8:	80 e1 02 08 	lwz     r7,520(r1)                             
  FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
ffc10adc:	99 21 00 15 	stb     r9,21(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); 
ffc10ae0:	54 f6 c2 3e 	rlwinm  r22,r7,24,8,31                         
                                                                      
  /* number of FATs on medium */                                      
  FAT_SET_BR_FAT_NUM(mbr             , 2); /* standard/recommended value */
  FAT_SET_BR_FILES_PER_ROOT_DIR(mbr  , fmt_params->files_per_root_dir);
  FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);          
  FAT_SET_BR_MEDIA(mbr               , fmt_params->media_code);       
ffc10ae4:	89 21 02 39 	lbz     r9,569(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);  
ffc10ae8:	81 01 02 10 	lwz     r8,528(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);
ffc10aec:	81 41 02 20 	lwz     r10,544(r1)                            
   * with 0xEB,....                                                   
   */                                                                 
  /*                                                                  
   * fill OEMName                                                     
   */                                                                 
  memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),                                
ffc10af0:	81 61 02 3b 	lwz     r11,571(r1)                            
	 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);  
ffc10af4:	55 17 c2 3e 	rlwinm  r23,r8,24,8,31                         
                                                                      
  /* number of FATs on medium */                                      
  FAT_SET_BR_FAT_NUM(mbr             , 2); /* standard/recommended value */
  FAT_SET_BR_FILES_PER_ROOT_DIR(mbr  , fmt_params->files_per_root_dir);
  FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);          
  FAT_SET_BR_MEDIA(mbr               , fmt_params->media_code);       
ffc10af8:	99 21 00 1d 	stb     r9,29(r1)                              
                                                                      
  FAT_SET_BR_SECTORS_PER_TRACK(mbr   , 255); /* only needed for INT13... */
ffc10afc:	39 20 ff ff 	li      r9,-1                                  
  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 */
  FAT_SET_BR_FILES_PER_ROOT_DIR(mbr  , fmt_params->files_per_root_dir);
ffc10b00:	55 40 c2 3e 	rlwinm  r0,r10,24,8,31                         
  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... */
ffc10b04:	99 21 00 20 	stb     r9,32(r1)                              
  FAT_SET_BR_NUMBER_OF_HEADS(mbr     , 6);   /* only needed for INT13... */
ffc10b08:	39 20 00 06 	li      r9,6                                   
   * but first clear the MRB leaving the partition table.             
   */                                                                 
#define RTEMS_IDE_PARTITION_TABLE_OFFSET                  0x1be       
#define RTEMS_IDE_PARTITION_TABLE_SIZE                    (4 * 16)    
  memset(mbr,0,RTEMS_IDE_PARTITION_TABLE_OFFSET);                     
  memset(mbr + RTEMS_IDE_PARTITION_TABLE_OFFSET + RTEMS_IDE_PARTITION_TABLE_SIZE,
ffc10b0c:	b0 a1 02 06 	sth     r5,518(r1)                             
   * with 0xEB,....                                                   
   */                                                                 
  /*                                                                  
   * fill OEMName                                                     
   */                                                                 
  memcpy(FAT_GET_ADDR_BR_OEMNAME(mbr),                                
ffc10b10:	91 61 00 0b 	stw     r11,11(r1)                             
	 fmt_params->OEMName,                                                
	 FAT_BR_OEMNAME_SIZE);                                               
  FAT_SET_BR_BYTES_PER_SECTOR(mbr    , fmt_params->bytes_per_sector); 
ffc10b14:	98 e1 00 13 	stb     r7,19(r1)                              
ffc10b18:	9a c1 00 14 	stb     r22,20(r1)                             
  FAT_SET_BR_SECTORS_PER_CLUSTER(mbr , fmt_params->sectors_per_cluster);
  FAT_SET_BR_RESERVED_SECTORS_NUM(mbr, fmt_params->rsvd_sector_cnt);  
ffc10b1c:	99 01 00 16 	stb     r8,22(r1)                              
ffc10b20:	9a e1 00 17 	stb     r23,23(r1)                             
                                                                      
  /* number of FATs on medium */                                      
  FAT_SET_BR_FAT_NUM(mbr             , 2); /* standard/recommended value */
ffc10b24:	98 61 00 18 	stb     r3,24(r1)                              
  FAT_SET_BR_FILES_PER_ROOT_DIR(mbr  , fmt_params->files_per_root_dir);
ffc10b28:	99 41 00 19 	stb     r10,25(r1)                             
ffc10b2c:	98 01 00 1a 	stb     r0,26(r1)                              
  FAT_SET_BR_TOTAL_SECTORS_NUM16(mbr , total_sectors_num16);          
ffc10b30:	9b e1 00 1b 	stb     r31,27(r1)                             
ffc10b34:	9b c1 00 1c 	stb     r30,28(r1)                             
  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... */
ffc10b38:	99 21 00 22 	stb     r9,34(r1)                              
  FAT_SET_BR_HIDDEN_SECTORS(mbr      , 1);   /* only needed for INT13... */
ffc10b3c:	98 81 00 24 	stb     r4,36(r1)                              
                                                                      
  FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);          
ffc10b40:	9b 01 00 28 	stb     r24,40(r1)                             
ffc10b44:	9b 21 00 29 	stb     r25,41(r1)                             
ffc10b48:	9b 41 00 2a 	stb     r26,42(r1)                             
ffc10b4c:	9b 61 00 2b 	stb     r27,43(r1)                             
  if (fmt_params->fattype != FAT_FAT32) {                             
ffc10b50:	41 9e 08 48 	beq-    cr7,ffc11398 <msdos_format+0xdd4>      
    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),                           
ffc10b54:	2f 86 00 01 	cmpwi   cr7,r6,1                               
  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 */
ffc10b58:	81 21 02 54 	lwz     r9,596(r1)                             
  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);   
ffc10b5c:	81 41 02 18 	lwz     r10,536(r1)                            
    FAT_SET_BR_DRVNUM(mbr            , 0); /* only needed for INT13... */
    FAT_SET_BR_RSVD1(mbr             , 0); /* fill with zero */       
    FAT_SET_BR_BOOTSIG(mbr           , FAT_BR_BOOTSIG_VAL);           
    FAT_SET_BR_VOLID(mbr             , fmt_params->vol_id); /* volume id */
ffc10b60:	55 2b c6 3e 	rlwinm  r11,r9,24,24,31                        
  memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),                                 
ffc10b64:	80 a1 02 48 	lwz     r5,584(r1)                             
  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 */
ffc10b68:	55 23 84 3e 	rlwinm  r3,r9,16,16,31                         
  memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),                                 
ffc10b6c:	a0 e1 02 4c 	lhz     r7,588(r1)                             
  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 */
ffc10b70:	55 24 46 3e 	rlwinm  r4,r9,8,24,31                          
  memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),                                 
ffc10b74:	89 01 02 4e 	lbz     r8,590(r1)                             
  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 */
ffc10b78:	99 21 00 2f 	stb     r9,47(r1)                              
  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);   
ffc10b7c:	55 40 c2 3e 	rlwinm  r0,r10,24,8,31                         
    FAT_SET_BR_DRVNUM(mbr            , 0); /* only needed for INT13... */
    FAT_SET_BR_RSVD1(mbr             , 0); /* fill with zero */       
    FAT_SET_BR_BOOTSIG(mbr           , FAT_BR_BOOTSIG_VAL);           
    FAT_SET_BR_VOLID(mbr             , fmt_params->vol_id); /* volume id */
  memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),                                 
ffc10b80:	81 21 02 44 	lwz     r9,580(r1)                             
  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);   
ffc10b84:	99 41 00 1e 	stb     r10,30(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);           
ffc10b88:	39 40 00 29 	li      r10,41                                 
  FAT_SET_BR_NUMBER_OF_HEADS(mbr     , 6);   /* only needed for INT13... */
  FAT_SET_BR_HIDDEN_SECTORS(mbr      , 1);   /* only needed for INT13... */
                                                                      
  FAT_SET_BR_TOTAL_SECTORS_NUM32(mbr , total_sectors_num32);          
  if (fmt_params->fattype != FAT_FAT32) {                             
    FAT_SET_BR_SECTORS_PER_FAT(mbr   ,fmt_params->sectors_per_fat);   
ffc10b8c:	98 01 00 1f 	stb     r0,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);           
ffc10b90:	99 41 00 2e 	stb     r10,46(r1)                             
    FAT_SET_BR_VOLID(mbr             , fmt_params->vol_id); /* volume id */
ffc10b94:	99 61 00 30 	stb     r11,48(r1)                             
ffc10b98:	98 61 00 31 	stb     r3,49(r1)                              
ffc10b9c:	98 81 00 32 	stb     r4,50(r1)                              
  memcpy(FAT_GET_ADDR_BR_VOLLAB(mbr),                                 
ffc10ba0:	91 21 00 33 	stw     r9,51(r1)                              
ffc10ba4:	90 a1 00 37 	stw     r5,55(r1)                              
ffc10ba8:	b0 e1 00 3b 	sth     r7,59(r1)                              
ffc10bac:	99 01 00 3d 	stb     r8,61(r1)                              
	 fmt_params->VolLabel,                                               
	 FAT_BR_VOLLAB_SIZE);                                                
    memcpy(FAT_GET_ADDR_BR_FILSYSTYPE(mbr),                           
ffc10bb0:	41 9e 05 f4 	beq-    cr7,ffc111a4 <msdos_format+0xbe0>      
ffc10bb4:	3d 20 ff c3 	lis     r9,-61                                 
ffc10bb8:	39 29 1a 6c 	addi    r9,r9,6764                             
ffc10bbc:	81 49 00 00 	lwz     r10,0(r9)                              
ffc10bc0:	81 29 00 04 	lwz     r9,4(r9)                               
ffc10bc4:	91 41 00 3e 	stw     r10,62(r1)                             
ffc10bc8:	91 21 00 42 	stw     r9,66(r1)                              
	   FAT_BR_FILSYSTYPE_SIZE);                                          
  }                                                                   
  /*                                                                  
   * add boot record signature                                        
   */                                                                 
  FAT_SET_BR_SIGNATURE(mbr,      FAT_BR_SIGNATURE_VAL);               
ffc10bcc:	39 20 00 55 	li      r9,85                                  
ffc10bd0:	99 21 02 06 	stb     r9,518(r1)                             
ffc10bd4:	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,       
ffc10bd8:	3c a0 ff c3 	lis     r5,-61                                 
	   FAT_BR_FILSYSTYPE_SIZE);                                          
  }                                                                   
  /*                                                                  
   * add boot record signature                                        
   */                                                                 
  FAT_SET_BR_SIGNATURE(mbr,      FAT_BR_SIGNATURE_VAL);               
ffc10bdc:	99 21 02 07 	stb     r9,519(r1)                             
                                                                      
  /*                                                                  
   * add jump to boot loader at start of sector                       
   */                                                                 
  FAT_SET_VAL8(mbr,0,0xeb);                                           
ffc10be0:	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,       
ffc10be4:	38 80 00 02 	li      r4,2                                   
  FAT_SET_BR_SIGNATURE(mbr,      FAT_BR_SIGNATURE_VAL);               
                                                                      
  /*                                                                  
   * add jump to boot loader at start of sector                       
   */                                                                 
  FAT_SET_VAL8(mbr,0,0xeb);                                           
ffc10be8:	99 21 00 08 	stb     r9,8(r1)                               
  FAT_SET_VAL8(mbr,1,0x3c);                                           
ffc10bec:	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,       
ffc10bf0:	38 a5 1b 1c 	addi    r5,r5,6940                             
ffc10bf4:	7f a3 eb 78 	mr      r3,r29                                 
                                                                      
  /*                                                                  
   * add jump to boot loader at start of sector                       
   */                                                                 
  FAT_SET_VAL8(mbr,0,0xeb);                                           
  FAT_SET_VAL8(mbr,1,0x3c);                                           
ffc10bf8:	99 21 00 09 	stb     r9,9(r1)                               
  FAT_SET_VAL8(mbr,2,0x90);                                           
ffc10bfc:	39 20 ff 90 	li      r9,-112                                
ffc10c00:	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,       
ffc10c04:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc10c08:	4b ff f5 ad 	bl      ffc101b4 <msdos_format_printf>         
                           "write MRB sector\n");                     
      ret_val = msdos_format_write_sec(fd,                            
ffc10c0c:	7f 83 e3 78 	mr      r3,r28                                 
ffc10c10:	80 a1 02 08 	lwz     r5,520(r1)                             
ffc10c14:	38 80 00 00 	li      r4,0                                   
ffc10c18:	38 c1 00 08 	addi    r6,r1,8                                
ffc10c1c:	4b ff f6 4d 	bl      ffc10268 <msdos_format_write_sec>      
                                       0,                             
                                       fmt_params.bytes_per_sector,   
                                       tmp_sec);                      
    }                                                                 
    if ((ret_val == 0) &&                                             
ffc10c20:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc10c24:	40 a2 fa a0 	bne-    ffc106c4 <msdos_format+0x100>          <== NEVER TAKEN
ffc10c28:	81 21 02 30 	lwz     r9,560(r1)                             
ffc10c2c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10c30:	40 9e 07 18 	bne-    cr7,ffc11348 <msdos_format+0xd84>      
  }                                                                   
  /*                                                                  
   * for FAT32: initialize info sector on disk                        
   */                                                                 
  if ((ret_val == 0) &&                                               
      (fmt_params.fsinfo_sec != 0)) {                                 
ffc10c34:	83 e1 02 34 	lwz     r31,564(r1)                            
    }                                                                 
  }                                                                   
  /*                                                                  
   * for FAT32: initialize info sector on disk                        
   */                                                                 
  if ((ret_val == 0) &&                                               
ffc10c38:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc10c3c:	40 9e 05 74 	bne-    cr7,ffc111b0 <msdos_format+0xbec>      
   * write FAT as all empty                                           
   * -> write all FAT sectors as zero                                 
   */                                                                 
  if (ret_val == 0) {                                                 
    ret_val = msdos_format_fill_sectors                               
      (rqdata,                                                        
ffc10c40:	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                               
ffc10c44:	7f a3 eb 78 	mr      r3,r29                                 
ffc10c48:	81 21 02 18 	lwz     r9,536(r1)                             
ffc10c4c:	7f 84 e3 78 	mr      r4,r28                                 
ffc10c50:	80 a1 02 10 	lwz     r5,528(r1)                             
ffc10c54:	39 00 00 00 	li      r8,0                                   
ffc10c58:	7c c6 49 d6 	mullw   r6,r6,r9                               
ffc10c5c:	80 e1 02 08 	lwz     r7,520(r1)                             
ffc10c60:	4b ff f6 95 	bl      ffc102f4 <msdos_format_fill_sectors>   
  }                                                                   
  /*                                                                  
   * clear/init root directory                                        
   * -> write all directory sectors as 0x00                           
   */                                                                 
  if (ret_val == 0) {                                                 
ffc10c64:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc10c68:	40 a2 fa 5c 	bne-    ffc106c4 <msdos_format+0x100>          <== NEVER TAKEN
    ret_val = msdos_format_fill_sectors                               
ffc10c6c:	80 a1 02 28 	lwz     r5,552(r1)                             
ffc10c70:	7f a3 eb 78 	mr      r3,r29                                 
ffc10c74:	80 c1 02 2c 	lwz     r6,556(r1)                             
ffc10c78:	7f 84 e3 78 	mr      r4,r28                                 
ffc10c7c:	80 e1 02 08 	lwz     r7,520(r1)                             
ffc10c80:	39 00 00 00 	li      r8,0                                   
ffc10c84:	4b ff f6 71 	bl      ffc102f4 <msdos_format_fill_sectors>   
       0x00);                                                         
  }                                                                   
  /*                                                                  
   * write volume label to first entry of directory                   
   */                                                                 
  if ((ret_val == 0) && fmt_params.VolLabel_present) {                
ffc10c88:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc10c8c:	40 82 08 bc 	bne-    ffc11548 <msdos_format+0xf84>          <== NEVER TAKEN
ffc10c90:	89 21 02 50 	lbz     r9,592(r1)                             
ffc10c94:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10c98:	40 9e 05 ac 	bne-    cr7,ffc11244 <msdos_format+0xc80>      
    uint32_t start_sector;                                            
                                                                      
    /*                                                                
     * empty sector: all clusters are free/do not link further on     
     */                                                               
    memset(tmp_sec,0,sizeof(tmp_sec));                                
ffc10c9c:	38 61 00 08 	addi    r3,r1,8                                
ffc10ca0:	38 80 00 00 	li      r4,0                                   
ffc10ca4:	38 a0 02 00 	li      r5,512                                 
ffc10ca8:	48 01 17 c9 	bl      ffc22470 <memset>                      
                                                                      
    switch(fmt_params.fattype) {                                      
ffc10cac:	89 21 02 3a 	lbz     r9,570(r1)                             
ffc10cb0:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc10cb4:	41 9e 06 5c 	beq-    cr7,ffc11310 <msdos_format+0xd4c>      
ffc10cb8:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc10cbc:	41 9e 05 e8 	beq-    cr7,ffc112a4 <msdos_format+0xce0>      
ffc10cc0:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc10cc4:	41 9e 06 30 	beq-    cr7,ffc112f4 <msdos_format+0xd30>      <== ALWAYS TAKEN
      FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);                         
      break;                                                          
                                                                      
    default:                                                          
      ret_val = -1;                                                   
      errno = EINVAL;                                                 
ffc10cc8:	48 01 09 d5 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc10ccc:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc10cd0:	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;                                                   
ffc10cd4:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
      errno = EINVAL;                                                 
    }                                                                 
    if (fmt_params.fattype == FAT_FAT32) {                            
ffc10cd8:	89 21 02 3a 	lbz     r9,570(r1)                             <== NOT EXECUTED
ffc10cdc:	2f 89 00 04 	cmpwi   cr7,r9,4                               <== NOT EXECUTED
ffc10ce0:	41 9e 05 f4 	beq-    cr7,ffc112d4 <msdos_format+0xd10>      <== NOT EXECUTED
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc10ce4:	89 21 02 58 	lbz     r9,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,      
ffc10ce8:	83 61 02 10 	lwz     r27,528(r1)                            
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc10cec:	2f 89 00 00 	cmpwi   cr7,r9,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,      
ffc10cf0:	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)                                               
ffc10cf4:	40 9e 00 14 	bne-    cr7,ffc10d08 <msdos_format+0x744>      
    return (sectors + clustersize - 1) & ~(clustersize - 1);          
ffc10cf8:	7f 7b 52 14 	add     r27,r27,r10                            
ffc10cfc:	3b 7b ff ff 	addi    r27,r27,-1                             
ffc10d00:	7d 4a 00 d0 	neg     r10,r10                                
ffc10d04:	7f 7b 50 38 	and     r27,r27,r10                            
    }                                                                 
                                                                      
    start_sector = loc_align_object (fmt_params.rsvd_sector_cnt,      
                                     fmt_params.sectors_per_cluster,  
                                     fmt_params.skip_alignment);      
    for (i = 0;                                                       
ffc10d08:	89 21 02 38 	lbz     r9,568(r1)                             
ffc10d0c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10d10:	41 be fa 14 	beq-    cr7,ffc10724 <msdos_format+0x160>      <== NEVER TAKEN
	 (i < fmt_params.fat_num) && (ret_val == 0);                         
ffc10d14:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc10d18:	41 be 00 0c 	beq+    cr7,ffc10d24 <msdos_format+0x760>      <== ALWAYS TAKEN
ffc10d1c:	48 00 07 04 	b       ffc11420 <msdos_format+0xe5c>          <== NOT EXECUTED
ffc10d20:	40 be fa 38 	bne-    cr7,ffc10758 <msdos_format+0x194>      <== NEVER TAKEN
ffc10d24:	80 81 02 18 	lwz     r4,536(r1)                             
	 i++) {                                                              
      ret_val = msdos_format_write_sec                                
ffc10d28:	7f 83 e3 78 	mr      r3,r28                                 
ffc10d2c:	80 a1 02 08 	lwz     r5,520(r1)                             
ffc10d30:	38 c1 00 08 	addi    r6,r1,8                                
        (fd,                                                          
         start_sector                                                 
         + (i * fmt_params.sectors_per_fat),                          
ffc10d34:	7c 84 f9 d6 	mullw   r4,r4,r31                              
    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++) {                                                              
ffc10d38:	3b ff 00 01 	addi    r31,r31,1                              
      ret_val = msdos_format_write_sec                                
ffc10d3c:	7c 84 da 14 	add     r4,r4,r27                              
ffc10d40:	4b ff f5 29 	bl      ffc10268 <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);                         
ffc10d44:	89 21 02 38 	lbz     r9,568(r1)                             
	 i++) {                                                              
      ret_val = msdos_format_write_sec                                
ffc10d48:	7c 7e 1b 78 	mr      r30,r3                                 
    }                                                                 
                                                                      
    start_sector = loc_align_object (fmt_params.rsvd_sector_cnt,      
                                     fmt_params.sectors_per_cluster,  
                                     fmt_params.skip_alignment);      
    for (i = 0;                                                       
ffc10d4c:	7f 09 f8 00 	cmpw    cr6,r9,r31                             
	 (i < fmt_params.fat_num) && (ret_val == 0);                         
ffc10d50:	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;                                                       
ffc10d54:	41 99 ff cc 	bgt+    cr6,ffc10d20 <msdos_format+0x75c>      
ffc10d58:	4b ff f9 d0 	b       ffc10728 <msdos_format+0x164>          
      }                                                               
                                                                      
      ++iteration_cnt;                                                
    }                                                                 
  }                                                                   
  if ( fmt_params->totl_sector_cnt == 0 )                             
ffc10d5c:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc10d60:	4b ff f9 64 	b       ffc106c4 <msdos_format+0x100>          <== NOT EXECUTED
    /*                                                                
     * 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);           
ffc10d64:	81 21 02 18 	lwz     r9,536(r1)                             
ffc10d68:	7d 4a 49 d6 	mullw   r10,r10,r9                             
    fmt_params->root_dir_fmt_sec_cnt = fmt_params->sectors_per_cluster;
ffc10d6c:	81 21 02 14 	lwz     r9,532(r1)                             
ffc10d70:	91 21 02 2c 	stw     r9,556(r1)                             
    /*                                                                
     * 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);           
ffc10d74:	7f ff 52 14 	add     r31,r31,r10                            
  }                                                                   
  else {                                                              
    /*                                                                
     * for FAT32: root directory is in cluster 2                      
     */                                                               
    fmt_params->root_dir_start_sec =                                  
ffc10d78:	93 e1 02 28 	stw     r31,552(r1)                            
ffc10d7c:	4b ff fb 94 	b       ffc10910 <msdos_format+0x34c>          
   * if requested, write whole disk/partition with 0xe5               
   */                                                                 
  if ((ret_val == 0) &&                                               
      (rqdata != NULL) &&                                             
      !(rqdata->quick_format)) {                                      
    ret_val = msdos_format_fill_sectors                               
ffc10d80:	80 c1 02 0c 	lwz     r6,524(r1)                             
ffc10d84:	7f a3 eb 78 	mr      r3,r29                                 
ffc10d88:	80 e1 02 08 	lwz     r7,520(r1)                             
ffc10d8c:	7f 84 e3 78 	mr      r4,r28                                 
ffc10d90:	38 a0 00 00 	li      r5,0                                   
ffc10d94:	39 00 00 e5 	li      r8,229                                 
ffc10d98:	4b ff f5 5d 	bl      ffc102f4 <msdos_format_fill_sectors>   
  }                                                                   
                                                                      
  /*                                                                  
   * create master boot record                                        
   */                                                                 
  if (ret_val == 0) {                                                 
ffc10d9c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc10da0:	40 82 f9 24 	bne+    ffc106c4 <msdos_format+0x100>          <== NEVER TAKEN
ffc10da4:	4b ff fc 78 	b       ffc10a1c <msdos_format+0x458>          
      ret_val = -1;                                                   
    }                                                                 
  }                                                                   
                                                                      
  if (ret_val == 0)                                                   
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,         
ffc10da8:	3c a0 ff c3 	lis     r5,-61                                 
   * determine number of FATs                                         
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata == NULL) ||                                           
	(rqdata->fat_num == 0)) {                                            
      fmt_params->fat_num = 2;                                        
ffc10dac:	39 20 00 02 	li      r9,2                                   
      ret_val = -1;                                                   
    }                                                                 
  }                                                                   
                                                                      
  if (ret_val == 0)                                                   
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,         
ffc10db0:	7f a3 eb 78 	mr      r3,r29                                 
   * determine number of FATs                                         
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata == NULL) ||                                           
	(rqdata->fat_num == 0)) {                                            
      fmt_params->fat_num = 2;                                        
ffc10db4:	99 21 02 38 	stb     r9,568(r1)                             
      ret_val = -1;                                                   
    }                                                                 
  }                                                                   
                                                                      
  if (ret_val == 0)                                                   
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,         
ffc10db8:	38 80 00 02 	li      r4,2                                   
ffc10dbc:	38 a5 1a cc 	addi    r5,r5,6860                             
ffc10dc0:	38 c0 00 02 	li      r6,2                                   
ffc10dc4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc10dc8:	4b ff f3 ed 	bl      ffc101b4 <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) {         
ffc10dcc:	81 3d 00 08 	lwz     r9,8(r29)                              
ffc10dd0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10dd4:	41 9e 03 80 	beq-    cr7,ffc11154 <msdos_format+0xb90>      
ffc10dd8:	1d 09 0f f5 	mulli   r8,r9,4085                             
      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) {
ffc10ddc:	81 41 02 0c 	lwz     r10,524(r1)                            
ffc10de0:	7f 8a 40 40 	cmplw   cr7,r10,r8                             
ffc10de4:	40 9c 03 00 	bge-    cr7,ffc110e4 <msdos_format+0xb20>      
      fmt_params->fattype = FAT_FAT12;                                
ffc10de8:	39 20 00 01 	li      r9,1                                   
ffc10dec:	99 21 02 3a 	stb     r9,570(r1)                             
      /* start trying with small clusters */                          
      fmt_params->sectors_per_cluster = 2;                            
ffc10df0:	39 20 00 02 	li      r9,2                                   
ffc10df4:	91 21 02 14 	stw     r9,532(r1)                             
        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 );
ffc10df8:	7f a3 eb 78 	mr      r3,r29                                 
ffc10dfc:	38 81 02 08 	addi    r4,r1,520                              
ffc10e00:	38 a1 02 14 	addi    r5,r1,532                              
ffc10e04:	4b ff f7 2d 	bl      ffc10530 <msdos_set_sectors_per_cluster_from_request.isra.1>
    if (ret_val == 0) {                                               
      data_clusters_cnt =                                             
        fmt_params->totl_sector_cnt / fmt_params->sectors_per_cluster;
    }                                                                 
                                                                      
    while(   ret_val == 0                                             
ffc10e08:	2d 03 00 00 	cmpwi   cr2,r3,0                               
ffc10e0c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc10e10:	40 8a 06 48 	bne-    cr2,ffc11458 <msdos_format+0xe94>      <== NEVER TAKEN
          && fmt_params->fattype != fat_type                          
ffc10e14:	89 21 02 3a 	lbz     r9,570(r1)                             
ffc10e18:	80 a1 02 0c 	lwz     r5,524(r1)                             
ffc10e1c:	2f 89 00 ff 	cmpwi   cr7,r9,255                             
ffc10e20:	41 9e 06 40 	beq-    cr7,ffc11460 <msdos_format+0xe9c>      <== NEVER TAKEN
          && fmt_params->totl_sector_cnt > 0 ) {                      
ffc10e24:	81 21 02 0c 	lwz     r9,524(r1)                             
ffc10e28:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10e2c:	41 be fa a8 	beq-    cr7,ffc108d4 <msdos_format+0x310>      <== NEVER TAKEN
    /* 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;                 
ffc10e30:	3d 5f 40 00 	addis   r10,r31,16384                          
ffc10e34:	7d 3f 50 10 	subfc   r9,r31,r10                             
ffc10e38:	7d 29 49 10 	subfe   r9,r9,r9                               
ffc10e3c:	7d 29 00 d0 	neg     r9,r9                                  
ffc10e40:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc10e44:	55 4a 17 be 	rlwinm  r10,r10,2,30,31                        
ffc10e48:	3f 60 ff c3 	lis     r27,-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) {
ffc10e4c:	3b 20 00 00 	li      r25,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 =                       
ffc10e50:	3a 80 00 00 	li      r20,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;                 
ffc10e54:	7d 3a 53 78 	or      r26,r9,r10                             
ffc10e58:	3a 60 00 00 	li      r19,0                                  
ffc10e5c:	3b 7b 1a e0 	addi    r27,r27,6880                           
          fmt_params->fsinfo_sec = 1;                                 
                                                                      
        }                                                             
        else {                                                        
          /* recommended: for FAT12/FAT16, always set reserved sector count to 1 */
          fmt_params->rsvd_sector_cnt = 1;                            
ffc10e60:	3b e0 00 01 	li      r31,1                                  
        msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,     
                             "sectors per cluster: %d\n", fmt_params->sectors_per_cluster);
                                                                      
        if (fmt_params->fattype == FAT_FAT32) {                       
          /* recommended: for FAT32, always set reserved sector count to 32 */
          fmt_params->rsvd_sector_cnt = 32;                           
ffc10e64:	3a c0 00 20 	li      r22,32                                 
          /* for FAT32, always set files per root directory 0 */      
          fmt_params->files_per_root_dir = 0;                         
ffc10e68:	3a e0 00 00 	li      r23,0                                  
          /* location of copy of MBR */                               
          fmt_params->mbr_copy_sec = 6;                               
ffc10e6c:	3b 00 00 06 	li      r24,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) {
ffc10e70:	63 39 80 00 	ori     r25,r25,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 =                       
ffc10e74:	62 94 80 01 	ori     r20,r20,32769                          
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 =                       
ffc10e78:	3a a0 10 01 	li      r21,4097                               
          && fmt_params->fattype != fat_type                          
          && fmt_params->totl_sector_cnt > 0 ) {                      
      /*                                                              
       * Skip aligning structures or d align them                     
       */                                                             
      if (ret_val == 0 && rqdata != NULL)                             
ffc10e7c:	41 8e 00 0c 	beq-    cr3,ffc10e88 <msdos_format+0x8c4>      
        fmt_params->skip_alignment = rqdata->skip_alignment;          
ffc10e80:	89 3d 00 16 	lbz     r9,22(r29)                             
ffc10e84:	99 21 02 58 	stb     r9,600(r1)                             
                                                                      
      if (ret_val == 0) {                                             
        msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,     
ffc10e88:	80 c1 02 14 	lwz     r6,532(r1)                             
ffc10e8c:	7f a3 eb 78 	mr      r3,r29                                 
ffc10e90:	38 80 00 02 	li      r4,2                                   
ffc10e94:	7f 65 db 78 	mr      r5,r27                                 
ffc10e98:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc10e9c:	4b ff f3 19 	bl      ffc101b4 <msdos_format_printf>         
                             "sectors per cluster: %d\n", fmt_params->sectors_per_cluster);
                                                                      
        if (fmt_params->fattype == FAT_FAT32) {                       
ffc10ea0:	8a 41 02 3a 	lbz     r18,570(r1)                            
ffc10ea4:	2f 92 00 04 	cmpwi   cr7,r18,4                              
ffc10ea8:	41 9e 02 0c 	beq-    cr7,ffc110b4 <msdos_format+0xaf0>      
          fmt_params->fsinfo_sec = 1;                                 
                                                                      
        }                                                             
        else {                                                        
          /* recommended: for FAT12/FAT16, always set reserved sector count to 1 */
          fmt_params->rsvd_sector_cnt = 1;                            
ffc10eac:	93 e1 02 10 	stw     r31,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) &&                                     
ffc10eb0:	41 8e 01 ec 	beq-    cr3,ffc1109c <msdos_format+0xad8>      
              (rqdata->files_per_root_dir > 0)) {                     
ffc10eb4:	81 5d 00 10 	lwz     r10,16(r29)                            
          /* 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) &&                                     
ffc10eb8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc10ebc:	41 9e 01 e0 	beq-    cr7,ffc1109c <msdos_format+0xad8>      
ffc10ec0:	39 4a ff ff 	addi    r10,r10,-1                             
            else {                                                    
              fmt_params->files_per_root_dir = 64;                    
            }                                                         
          }                                                           
          fmt_params->files_per_root_dir = (fmt_params->files_per_root_dir +
                                           (2*fmt_params->bytes_per_sector/
ffc10ec4:	80 e1 02 08 	lwz     r7,520(r1)                             
                                           FAT_DIRENTRY_SIZE-1));     
          fmt_params->files_per_root_dir -= (fmt_params->files_per_root_dir %
ffc10ec8:	39 60 00 01 	li      r11,1                                  
            else {                                                    
              fmt_params->files_per_root_dir = 64;                    
            }                                                         
          }                                                           
          fmt_params->files_per_root_dir = (fmt_params->files_per_root_dir +
                                           (2*fmt_params->bytes_per_sector/
ffc10ecc:	54 e9 e1 7e 	rlwinm  r9,r7,28,5,31                          
            }                                                         
            else {                                                    
              fmt_params->files_per_root_dir = 64;                    
            }                                                         
          }                                                           
          fmt_params->files_per_root_dir = (fmt_params->files_per_root_dir +
ffc10ed0:	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 %
ffc10ed4:	7d 4a 4b 96 	divwu   r10,r10,r9                             
ffc10ed8:	7d 2a 49 d6 	mullw   r9,r10,r9                              
ffc10edc:	91 21 02 20 	stw     r9,544(r1)                             
ffc10ee0:	55 2c 28 34 	rlwinm  r12,r9,5,0,26                          
  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) {
ffc10ee4:	7d 59 3b 96 	divwu   r10,r25,r7                             
      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,
ffc10ee8:	81 21 02 14 	lwz     r9,532(r1)                             
ffc10eec:	80 a1 02 0c 	lwz     r5,524(r1)                             
ffc10ef0:	88 81 02 38 	lbz     r4,568(r1)                             
ffc10ef4:	89 01 02 58 	lbz     r8,600(r1)                             
                                            /FAT_DIRENTRY_SIZE));     
                                                                      
        }                                                             
        fmt_params->root_dir_sectors =                                
          (((fmt_params->files_per_root_dir * FAT_DIRENTRY_SIZE)      
            + fmt_params->bytes_per_sector - 1)                       
ffc10ef8:	38 67 ff ff 	addi    r3,r7,-1                               
ffc10efc:	7d 83 62 14 	add     r12,r3,r12                             
           / fmt_params->bytes_per_sector);                           
ffc10f00:	7d 8c 3b 96 	divwu   r12,r12,r7                             
  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) {
ffc10f04:	7f 89 50 40 	cmplw   cr7,r9,r10                             
          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 =                                
ffc10f08:	91 81 02 24 	stw     r12,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) {
ffc10f0c:	40 9d 00 10 	ble-    cr7,ffc10f1c <msdos_format+0x958>      <== ALWAYS TAKEN
    sectors_per_cluster /= 2;                                         
ffc10f10:	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) {
ffc10f14:	7f 89 50 40 	cmplw   cr7,r9,r10                             <== NOT EXECUTED
ffc10f18:	41 9d ff f8 	bgt+    cr7,ffc10f10 <msdos_format+0x94c>      <== NOT EXECUTED
ffc10f1c:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc10f20:	2f 12 00 01 	cmpwi   cr6,r18,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) {                                  
ffc10f24:	2c 92 00 02 	cmpwi   cr1,r18,2                              
     * 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                               
ffc10f28:	7e 2b 28 50 	subf    r17,r11,r5                             
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
    return (sectors + clustersize - 1) & ~(clustersize - 1);          
ffc10f2c:	38 0c ff ff 	addi    r0,r12,-1                              
ffc10f30:	39 6b ff ff 	addi    r11,r11,-1                             
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc10f34:	41 9e 00 18 	beq-    cr7,ffc10f4c <msdos_format+0x988>      
     * 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                               
ffc10f38:	7e 28 8b 78 	mr      r8,r17                                 
      - loc_align_object (rsvd_sector_cnt, sectors_per_cluster, skip_alignment);
    if (fattype == FAT_FAT12) {                                       
ffc10f3c:	41 9a 06 14 	beq-    cr6,ffc11550 <msdos_format+0xf8c>      
      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) {                                  
ffc10f40:	40 a6 00 24 	bne+    cr1,ffc10f64 <msdos_format+0x9a0>      <== NEVER TAKEN
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
    return (sectors + clustersize - 1) & ~(clustersize - 1);          
  else                                                                
    return sectors;                                                   
ffc10f44:	7d 8a 63 78 	mr      r10,r12                                
ffc10f48:	48 00 01 44 	b       ffc1108c <msdos_format+0xac8>          
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
    return (sectors + clustersize - 1) & ~(clustersize - 1);          
ffc10f4c:	7d 49 00 d0 	neg     r10,r9                                 
ffc10f50:	7d 0b 4a 14 	add     r8,r11,r9                              
ffc10f54:	7d 48 40 38 	and     r8,r10,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                               
ffc10f58:	7d 08 28 50 	subf    r8,r8,r5                               
      - loc_align_object (rsvd_sector_cnt, sectors_per_cluster, skip_alignment);
    if (fattype == FAT_FAT12) {                                       
ffc10f5c:	41 9a 01 0c 	beq-    cr6,ffc11068 <msdos_format+0xaa4>      
      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) {                                  
ffc10f60:	41 86 01 24 	beq-    cr1,ffc11084 <msdos_format+0xac0>      
        - 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 * 2;                  
    }                                                                 
    else { /* FAT32 */                                                
      fatdata_cluster_cnt = fatdata_sect_cnt/sectors_per_cluster;     
ffc10f64:	7d 08 4b 96 	divwu   r8,r8,r9                               
      fat_capacity        = fatdata_cluster_cnt * 4;                  
ffc10f68:	55 0a 10 3a 	rlwinm  r10,r8,2,0,29                          
    }                                                                 
                                                                      
    sectors_per_fat = ((fat_capacity                                  
			+ (bytes_per_sector - 1))                                          
ffc10f6c:	7d 4a 1a 14 	add     r10,r10,r3                             
    else { /* FAT32 */                                                
      fatdata_cluster_cnt = fatdata_sect_cnt/sectors_per_cluster;     
      fat_capacity        = fatdata_cluster_cnt * 4;                  
    }                                                                 
                                                                      
    sectors_per_fat = ((fat_capacity                                  
ffc10f70:	7d 4a 3b 96 	divwu   r10,r10,r7                             
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
    return (sectors + clustersize - 1) & ~(clustersize - 1);          
ffc10f74:	38 c9 ff ff 	addi    r6,r9,-1                               
                                                                      
    sectors_per_fat = ((fat_capacity                                  
			+ (bytes_per_sector - 1))                                          
		       / bytes_per_sector);                                         
                                                                      
    fat_sectors_cnt = loc_align_object (sectors_per_fat * fat_num,    
ffc10f78:	7d 4a 21 d6 	mullw   r10,r10,r4                             
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc10f7c:	40 9e 00 10 	bne-    cr7,ffc10f8c <msdos_format+0x9c8>      
    return (sectors + clustersize - 1) & ~(clustersize - 1);          
ffc10f80:	7d 4a 32 14 	add     r10,r10,r6                             
ffc10f84:	7e 09 00 d0 	neg     r16,r9                                 
ffc10f88:	7d 4a 80 38 	and     r10,r10,r16                            
                                        sectors_per_cluster,          
                                        skip_alignment);              
                                                                      
    *data_cluster_cnt = (fatdata_cluster_cnt -                        
			((fat_sectors_cnt                                                  
			  + (sectors_per_cluster - 1))                                     
ffc10f8c:	7c c6 52 14 	add     r6,r6,r10                              
			 / sectors_per_cluster));                                          
ffc10f90:	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 -                        
ffc10f94:	7c c6 40 50 	subf    r6,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)) ||
ffc10f98:	41 9a 00 90 	beq-    cr6,ffc11028 <msdos_format+0xa64>      
        ((fattype == FAT_FAT16) && (*data_cluster_cnt > FAT_FAT16_MAX_CLN))) {
      sectors_per_cluster *= 2;                                       
    }                                                                 
    else {                                                            
      finished = true;                                                
ffc10f9c:	39 00 00 01 	li      r8,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)) ||
ffc10fa0:	41 86 00 b4 	beq-    cr1,ffc11054 <msdos_format+0xa90>      
     */                                                               
    if (fattype == FAT_FAT12) {                                       
      if (MS_BYTES_PER_CLUSTER_LIMIT_FAT12 < (sectors_per_cluster * bytes_per_sector)) {
        finished = true;                                              
      }                                                               
    } else if ((sectors_per_cluster * bytes_per_sector)               
ffc10fa4:	7e 09 39 d6 	mullw   r16,r9,r7                              
ffc10fa8:	28 10 80 00 	cmplwi  r16,32768                              
ffc10fac:	40 81 00 9c 	ble-    ffc11048 <msdos_format+0xa84>          
      finished = true;                                                
    }                                                                 
  } while (!finished);                                                
                                                                      
  *sectors_per_cluster_adj = sectors_per_cluster;                     
  *sectors_per_fat_ptr     = fat_sectors_cnt / fat_num;               
ffc10fb0:	7d 4a 23 96 	divwu   r10,r10,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;    
ffc10fb4:	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                       
ffc10fb8:	2b 86 0f f4 	cmplwi  cr7,r6,4084                            
      finished = true;                                                
    }                                                                 
  } while (!finished);                                                
                                                                      
  *sectors_per_cluster_adj = sectors_per_cluster;                     
  *sectors_per_fat_ptr     = fat_sectors_cnt / fat_num;               
ffc10fbc:	91 41 02 18 	stw     r10,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                       
ffc10fc0:	41 9d 01 14 	bgt-    cr7,ffc110d4 <msdos_format+0xb10>      
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 =                       
ffc10fc4:	7d 55 3b 96 	divwu   r10,r21,r7                             
  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 ) {
ffc10fc8:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
    fattype = FAT_FAT12;                                              
ffc10fcc:	39 40 00 01 	li      r10,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 ) {
ffc10fd0:	40 9c 00 1c 	bge-    cr7,ffc10fec <msdos_format+0xa28>      
                    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 =                       
ffc10fd4:	7c f4 3b 96 	divwu   r7,r20,r7                              
    ( MS_BYTES_PER_CLUSTER_LIMIT +1 ) / bytes_per_sector;             
  uint8_t fattype = FAT_FAT32;                                        
ffc10fd8:	7d 29 38 10 	subfc   r9,r9,r7                               
ffc10fdc:	7d 29 49 10 	subfe   r9,r9,r9                               
ffc10fe0:	7d 29 4b b8 	nand    r9,r9,r9                               
ffc10fe4:	55 2a 00 3c 	rlwinm  r10,r9,0,0,30                          
ffc10fe8:	39 4a 00 04 	addi    r10,r10,4                              
          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) {                      
ffc10fec:	7f 92 50 00 	cmpw    cr7,r18,r10                            
        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(                   
ffc10ff0:	99 41 02 3a 	stb     r10,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) {                      
ffc10ff4:	41 9e 04 6c 	beq-    cr7,ffc11460 <msdos_format+0xe9c>      
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                             
ffc10ff8:	39 4a ff ff 	addi    r10,r10,-1                             
ffc10ffc:	2b 8a 00 01 	cmplwi  cr7,r10,1                              
ffc11000:	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 )                                 
ffc11004:	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                             
ffc11008:	41 bd 00 0c 	bgt+    cr7,ffc11014 <msdos_format+0xa50>      
ffc1100c:	48 00 03 30 	b       ffc1133c <msdos_format+0xd78>          
  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-- ) {                                      
ffc11010:	42 40 f8 64 	bdz+    ffc10874 <msdos_format+0x2b0>          
      if ( (gigs & ( 1 << b) ) != 0 )                                 
ffc11014:	7f ea 48 30 	slw     r10,r31,r9                             
ffc11018:	7d 4b d0 39 	and.    r11,r10,r26                            
  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-- ) {                                      
ffc1101c:	39 29 ff ff 	addi    r9,r9,-1                               
      if ( (gigs & ( 1 << b) ) != 0 )                                 
ffc11020:	41 82 ff f0 	beq+    ffc11010 <msdos_format+0xa4c>          
ffc11024:	4b ff f8 54 	b       ffc10878 <msdos_format+0x2b4>          
			  + (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)) ||
ffc11028:	28 06 0f f5 	cmplwi  r6,4085                                
        ((fattype == FAT_FAT16) && (*data_cluster_cnt > FAT_FAT16_MAX_CLN))) {
      sectors_per_cluster *= 2;                                       
    }                                                                 
    else {                                                            
      finished = true;                                                
ffc1102c:	39 00 00 01 	li      r8,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)) ||
ffc11030:	40 81 00 0c 	ble-    ffc1103c <msdos_format+0xa78>          
        ((fattype == FAT_FAT16) && (*data_cluster_cnt > FAT_FAT16_MAX_CLN))) {
      sectors_per_cluster *= 2;                                       
ffc11034:	55 29 08 3c 	rlwinm  r9,r9,1,0,30                           
ffc11038:	39 00 00 00 	li      r8,0                                   
    }                                                                 
    /*                                                                
     * when maximum cluster size is exceeded, we have invalid data, abort...
     */                                                               
    if (fattype == FAT_FAT12) {                                       
      if (MS_BYTES_PER_CLUSTER_LIMIT_FAT12 < (sectors_per_cluster * bytes_per_sector)) {
ffc1103c:	7e 09 39 d6 	mullw   r16,r9,r7                              
ffc11040:	28 10 10 00 	cmplwi  r16,4096                               
ffc11044:	41 a1 ff 6c 	bgt-    ffc10fb0 <msdos_format+0x9ec>          
      }                                                               
    } else if ((sectors_per_cluster * bytes_per_sector)               
	> MS_BYTES_PER_CLUSTER_LIMIT) {                                      
      finished = true;                                                
    }                                                                 
  } while (!finished);                                                
ffc11048:	2c 08 00 00 	cmpwi   r8,0                                   
ffc1104c:	41 82 fe e8 	beq+    ffc10f34 <msdos_format+0x970>          
ffc11050:	4b ff ff 60 	b       ffc10fb0 <msdos_format+0x9ec>          
			 / sectors_per_cluster));                                          
    /*                                                                
     * data cluster count too big? Then make clusters bigger          
     */                                                               
    if (((fattype == FAT_FAT12) && (*data_cluster_cnt > FAT_FAT12_MAX_CLN)) ||
        ((fattype == FAT_FAT16) && (*data_cluster_cnt > FAT_FAT16_MAX_CLN))) {
ffc11054:	28 06 ff f5 	cmplwi  r6,65525                               
ffc11058:	40 a1 ff 4c 	ble-    ffc10fa4 <msdos_format+0x9e0>          
      sectors_per_cluster *= 2;                                       
ffc1105c:	55 29 08 3c 	rlwinm  r9,r9,1,0,30                           
ffc11060:	39 00 00 00 	li      r8,0                                   
ffc11064:	4b ff ff 40 	b       ffc10fa4 <msdos_format+0x9e0>          
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
    return (sectors + clustersize - 1) & ~(clustersize - 1);          
ffc11068:	7c c0 4a 14 	add     r6,r0,r9                               
ffc1106c:	7c ca 50 38 	and     r10,r6,r10                             
     * - 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                          
ffc11070:	7d 0a 40 50 	subf    r8,r10,r8                              
        - loc_align_object (root_dir_sector_cnt, sectors_per_cluster, skip_alignment);
      fatdata_cluster_cnt = fatdata_sect_cnt/sectors_per_cluster;     
ffc11074:	7d 08 4b 96 	divwu   r8,r8,r9                               
      fat_capacity        = fatdata_cluster_cnt * 3 / 2;              
ffc11078:	1d 48 00 03 	mulli   r10,r8,3                               
ffc1107c:	55 4a f8 7e 	rlwinm  r10,r10,31,1,31                        
ffc11080:	4b ff fe ec 	b       ffc10f6c <msdos_format+0x9a8>          
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
    return (sectors + clustersize - 1) & ~(clustersize - 1);          
ffc11084:	7c c0 4a 14 	add     r6,r0,r9                               
ffc11088:	7d 4a 30 38 	and     r10,r10,r6                             
        - 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                          
ffc1108c:	7d 0a 40 50 	subf    r8,r10,r8                              
        - loc_align_object (root_dir_sector_cnt, sectors_per_cluster, skip_alignment);
      fatdata_cluster_cnt = fatdata_sect_cnt/sectors_per_cluster;     
ffc11090:	7d 08 4b 96 	divwu   r8,r8,r9                               
      fat_capacity        = fatdata_cluster_cnt * 2;                  
ffc11094:	55 0a 08 3c 	rlwinm  r10,r8,1,0,30                          
ffc11098:	4b ff fe d4 	b       ffc10f6c <msdos_format+0x9a8>          
          if ((rqdata != NULL) &&                                     
              (rqdata->files_per_root_dir > 0)) {                     
            fmt_params->files_per_root_dir = rqdata->files_per_root_dir;
          }                                                           
          else {                                                      
            if (fmt_params->fattype == FAT_FAT16) {                   
ffc1109c:	6a 4a 00 02 	xori    r10,r18,2                              
ffc110a0:	31 4a ff ff 	addic   r10,r10,-1                             
ffc110a4:	7d 4a 51 10 	subfe   r10,r10,r10                            
ffc110a8:	55 4a 05 f2 	rlwinm  r10,r10,0,23,25                        
ffc110ac:	39 4a 00 3f 	addi    r10,r10,63                             
ffc110b0:	4b ff fe 14 	b       ffc10ec4 <msdos_format+0x900>          
        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;                           
ffc110b4:	92 c1 02 10 	stw     r22,528(r1)                            
          /* for FAT32, always set files per root directory 0 */      
          fmt_params->files_per_root_dir = 0;                         
          /* location of copy of MBR */                               
          fmt_params->mbr_copy_sec = 6;                               
          /* location of fsinfo sector */                             
          fmt_params->fsinfo_sec = 1;                                 
ffc110b8:	39 60 00 20 	li      r11,32                                 
ffc110bc:	39 80 00 00 	li      r12,0                                  
                                                                      
        if (fmt_params->fattype == FAT_FAT32) {                       
          /* recommended: for FAT32, always set reserved sector count to 32 */
          fmt_params->rsvd_sector_cnt = 32;                           
          /* for FAT32, always set files per root directory 0 */      
          fmt_params->files_per_root_dir = 0;                         
ffc110c0:	92 e1 02 20 	stw     r23,544(r1)                            
          /* location of copy of MBR */                               
          fmt_params->mbr_copy_sec = 6;                               
ffc110c4:	93 01 02 30 	stw     r24,560(r1)                            
          /* location of fsinfo sector */                             
          fmt_params->fsinfo_sec = 1;                                 
ffc110c8:	93 e1 02 34 	stw     r31,564(r1)                            
ffc110cc:	80 e1 02 08 	lwz     r7,520(r1)                             
ffc110d0:	4b ff fe 14 	b       ffc10ee4 <msdos_format+0x920>          
                                                                      
  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                  
ffc110d4:	2b 86 ff f4 	cmplwi  cr7,r6,65524                           
{                                                                     
  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;                                        
ffc110d8:	39 40 00 04 	li      r10,4                                  
                                                                      
  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                  
ffc110dc:	41 9d ff 10 	bgt+    cr7,ffc10fec <msdos_format+0xa28>      
ffc110e0:	4b ff fe f4 	b       ffc10fd4 <msdos_format+0xa10>          
    if (fmt_params->totl_sector_cnt < FAT_FAT12_MAX_CLN * fat12_sect_per_clust) {
      fmt_params->fattype = FAT_FAT12;                                
      /* 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) {
ffc110e4:	55 28 10 3a 	rlwinm  r8,r9,2,0,29                           
ffc110e8:	55 27 70 22 	rlwinm  r7,r9,14,0,17                          
ffc110ec:	7d 08 38 50 	subf    r8,r8,r7                               
ffc110f0:	7d 08 4a 14 	add     r8,r8,r9                               
ffc110f4:	55 08 10 3a 	rlwinm  r8,r8,2,0,29                           
ffc110f8:	7d 28 4a 14 	add     r9,r8,r9                               
ffc110fc:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc11100:	41 9c 00 7c 	blt-    cr7,ffc1117c <msdos_format+0xbb8>      
      /* 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;                 
ffc11104:	3d 5f 40 00 	addis   r10,r31,16384                          
ffc11108:	7d 3f 50 10 	subfc   r9,r31,r10                             
ffc1110c:	7d 29 49 10 	subfe   r9,r9,r9                               
ffc11110:	7d 29 00 d0 	neg     r9,r9                                  
ffc11114:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc11118:	55 4a 17 be 	rlwinm  r10,r10,2,30,31                        
      int b;                                                          
      fmt_params->fattype = FAT_FAT32;                                
ffc1111c:	39 00 00 04 	li      r8,4                                   
      /* start trying with small clusters */                          
      fmt_params->sectors_per_cluster = 2;                            
    }                                                                 
    else {                                                            
      #define ONE_GB (1024L * 1024L * 1024L)                          
      uint32_t gigs = (total_size + ONE_GB) / ONE_GB;                 
ffc11120:	7d 26 53 78 	or      r6,r9,r10                              
      int b;                                                          
      fmt_params->fattype = FAT_FAT32;                                
ffc11124:	99 01 02 3a 	stb     r8,570(r1)                             
      /* scale with the size of disk... */                            
      for (b = 31; b > 0; b--)                                        
ffc11128:	39 20 00 1f 	li      r9,31                                  
        if ((gigs & (1 << b)) != 0)                                   
ffc1112c:	38 e0 00 01 	li      r7,1                                   
ffc11130:	7d 29 03 a6 	mtctr   r9                                     
ffc11134:	48 00 00 08 	b       ffc1113c <msdos_format+0xb78>          
      #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--)                                        
ffc11138:	42 40 02 dc 	bdz-    ffc11414 <msdos_format+0xe50>          
        if ((gigs & (1 << b)) != 0)                                   
ffc1113c:	7c e8 48 30 	slw     r8,r7,r9                               
ffc11140:	7d 0a 30 39 	and.    r10,r8,r6                              
      #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--)                                        
ffc11144:	39 29 ff ff 	addi    r9,r9,-1                               
        if ((gigs & (1 << b)) != 0)                                   
ffc11148:	41 82 ff f0 	beq+    ffc11138 <msdos_format+0xb74>          
          break;                                                      
      fmt_params->sectors_per_cluster = 1 << b;                       
ffc1114c:	91 01 02 14 	stw     r8,532(r1)                             
ffc11150:	4b ff fc a8 	b       ffc10df8 <msdos_format+0x834>          
     * 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) {         
ffc11154:	39 00 7f a8 	li      r8,32680                               
     * 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;                               
ffc11158:	39 20 00 20 	li      r9,32                                  
ffc1115c:	4b ff fc 80 	b       ffc10ddc <msdos_format+0x818>          
ffc11160:	55 38 06 3e 	clrlwi  r24,r9,24                              
ffc11164:	55 39 c6 3e 	rlwinm  r25,r9,24,24,31                        
ffc11168:	55 3a 86 3e 	rlwinm  r26,r9,16,24,31                        
ffc1116c:	55 3b 46 3e 	rlwinm  r27,r9,8,24,31                         
{                                                                     
  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) {                        
ffc11170:	3b c0 00 00 	li      r30,0                                  
ffc11174:	3b e0 00 00 	li      r31,0                                  
ffc11178:	4b ff f9 30 	b       ffc10aa8 <msdos_format+0x4e4>          
      fmt_params->fattype = FAT_FAT12;                                
      /* 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) {
      fmt_params->fattype = FAT_FAT16;                                
ffc1117c:	39 20 00 02 	li      r9,2                                   
ffc11180:	99 21 02 3a 	stb     r9,570(r1)                             
      /* start trying with small clusters */                          
      fmt_params->sectors_per_cluster = 2;                            
ffc11184:	39 20 00 02 	li      r9,2                                   
ffc11188:	91 21 02 14 	stw     r9,532(r1)                             
ffc1118c:	4b ff fc 6c 	b       ffc10df8 <msdos_format+0x834>          
    }                                                                 
    else if (rqdata->fat_num <= 6) {                                  
      fmt_params->fat_num = rqdata->fat_num;                          
    }                                                                 
    else {                                                            
      errno = EINVAL;                                                 
ffc11190:	48 01 05 0d 	bl      ffc2169c <__errno>                     
ffc11194:	39 20 00 16 	li      r9,22                                  
ffc11198:	91 23 00 00 	stw     r9,0(r3)                               
      ret_val = -1;                                                   
ffc1119c:	38 60 ff ff 	li      r3,-1                                  
ffc111a0:	4b ff f5 f4 	b       ffc10794 <msdos_format+0x1d0>          
    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),                           
ffc111a4:	3d 20 ff c3 	lis     r9,-61                                 
ffc111a8:	39 29 1a 60 	addi    r9,r9,6752                             
ffc111ac:	4b ff fa 10 	b       ffc10bbc <msdos_format+0x5f8>          
\*=========================================================================*/
{                                                                     
  /*                                                                  
   * clear fsinfo sector data                                         
   */                                                                 
  memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);                             
ffc111b0:	38 80 00 00 	li      r4,0                                   
ffc111b4:	38 a0 02 00 	li      r5,512                                 
ffc111b8:	38 61 00 08 	addi    r3,r1,8                                
ffc111bc:	48 01 12 b5 	bl      ffc22470 <memset>                      
  /*                                                                  
   * write LEADSIG, STRUCTSIG, TRAILSIG                               
   */                                                                 
  FAT_SET_FSINFO_LEAD_SIGNATURE (fsinfo,FAT_FSINFO_LEAD_SIGNATURE_VALUE );
ffc111c0:	39 40 00 61 	li      r10,97                                 
ffc111c4:	99 41 00 0a 	stb     r10,10(r1)                             
  FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
  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,              
ffc111c8:	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 );
ffc111cc:	39 60 00 52 	li      r11,82                                 
  FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
ffc111d0:	99 41 01 ef 	stb     r10,495(r1)                            
  FAT_SET_FSINFO_TRAIL_SIGNATURE(fsinfo,FAT_FSINFO_TRAIL_SIGNATURE_VALUE);
ffc111d4:	39 40 00 55 	li      r10,85                                 
   */                                                                 
  memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);                             
  /*                                                                  
   * write LEADSIG, STRUCTSIG, TRAILSIG                               
   */                                                                 
  FAT_SET_FSINFO_LEAD_SIGNATURE (fsinfo,FAT_FSINFO_LEAD_SIGNATURE_VALUE );
ffc111d8:	39 00 00 41 	li      r8,65                                  
  /*                                                                  
   * write fsinfo sector                                              
   */                                                                 
  if ((ret_val == 0) &&                                               
      (fmt_params.fsinfo_sec != 0)) {                                 
    ret_val = msdos_format_write_sec(fd,                              
ffc111dc:	80 a1 02 08 	lwz     r5,520(r1)                             
  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);
ffc111e0:	38 e0 00 72 	li      r7,114                                 
  FAT_SET_FSINFO_TRAIL_SIGNATURE(fsinfo,FAT_FSINFO_TRAIL_SIGNATURE_VALUE);
ffc111e4:	99 41 02 06 	stb     r10,518(r1)                            
  /*                                                                  
   * write fsinfo sector                                              
   */                                                                 
  if ((ret_val == 0) &&                                               
      (fmt_params.fsinfo_sec != 0)) {                                 
    ret_val = msdos_format_write_sec(fd,                              
ffc111e8:	7f 83 e3 78 	mr      r3,r28                                 
  /*                                                                  
   * 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);
ffc111ec:	39 40 ff aa 	li      r10,-86                                
  /*                                                                  
   * write fsinfo sector                                              
   */                                                                 
  if ((ret_val == 0) &&                                               
      (fmt_params.fsinfo_sec != 0)) {                                 
    ret_val = msdos_format_write_sec(fd,                              
ffc111f0:	7f e4 fb 78 	mr      r4,r31                                 
   */                                                                 
  memset(fsinfo,0,FAT_TOTAL_FSINFO_SIZE);                             
  /*                                                                  
   * write LEADSIG, STRUCTSIG, TRAILSIG                               
   */                                                                 
  FAT_SET_FSINFO_LEAD_SIGNATURE (fsinfo,FAT_FSINFO_LEAD_SIGNATURE_VALUE );
ffc111f4:	99 61 00 08 	stb     r11,8(r1)                              
  /*                                                                  
   * write fsinfo sector                                              
   */                                                                 
  if ((ret_val == 0) &&                                               
      (fmt_params.fsinfo_sec != 0)) {                                 
    ret_val = msdos_format_write_sec(fd,                              
ffc111f8:	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 );
ffc111fc:	99 61 00 09 	stb     r11,9(r1)                              
ffc11200:	99 01 00 0b 	stb     r8,11(r1)                              
  FAT_SET_FSINFO_STRUC_SIGNATURE(fsinfo,FAT_FSINFO_STRUC_SIGNATURE_VALUE);
ffc11204:	98 e1 01 ec 	stb     r7,492(r1)                             
ffc11208:	98 e1 01 ed 	stb     r7,493(r1)                             
ffc1120c:	99 01 01 ee 	stb     r8,494(r1)                             
  FAT_SET_FSINFO_TRAIL_SIGNATURE(fsinfo,FAT_FSINFO_TRAIL_SIGNATURE_VALUE);
ffc11210:	99 41 02 07 	stb     r10,519(r1)                            
  /*                                                                  
   * write "empty" values for free cluster count and next cluster number
   */                                                                 
  FAT_SET_FSINFO_FREE_CLUSTER_COUNT(fsinfo+FAT_FSI_INFO,              
ffc11214:	99 21 01 f0 	stb     r9,496(r1)                             
ffc11218:	99 21 01 f1 	stb     r9,497(r1)                             
ffc1121c:	99 21 01 f2 	stb     r9,498(r1)                             
ffc11220:	99 21 01 f3 	stb     r9,499(r1)                             
				    0xffffffff);                                                  
  FAT_SET_FSINFO_NEXT_FREE_CLUSTER (fsinfo+FAT_FSI_INFO,              
ffc11224:	99 21 01 f4 	stb     r9,500(r1)                             
ffc11228:	99 21 01 f5 	stb     r9,501(r1)                             
ffc1122c:	99 21 01 f6 	stb     r9,502(r1)                             
ffc11230:	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,                              
ffc11234:	4b ff f0 35 	bl      ffc10268 <msdos_format_write_sec>      
  }                                                                   
  /*                                                                  
   * write FAT as all empty                                           
   * -> write all FAT sectors as zero                                 
   */                                                                 
  if (ret_val == 0) {                                                 
ffc11238:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1123c:	40 82 f4 88 	bne+    ffc106c4 <msdos_format+0x100>          <== NEVER TAKEN
ffc11240:	4b ff fa 00 	b       ffc10c40 <msdos_format+0x67c>          
  }                                                                   
  /*                                                                  
   * write volume label to first entry of directory                   
   */                                                                 
  if ((ret_val == 0) && fmt_params.VolLabel_present) {                
    memset(tmp_sec,0,sizeof(tmp_sec));                                
ffc11244:	38 80 00 00 	li      r4,0                                   
ffc11248:	38 a0 02 00 	li      r5,512                                 
ffc1124c:	38 61 00 08 	addi    r3,r1,8                                
ffc11250:	48 01 12 21 	bl      ffc22470 <memset>                      
    memcpy(MSDOS_DIR_NAME(tmp_sec),fmt_params.VolLabel,MSDOS_SHORT_NAME_LEN);
ffc11254:	89 21 02 4e 	lbz     r9,590(r1)                             
ffc11258:	81 01 02 48 	lwz     r8,584(r1)                             
    *MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;                  
    ret_val = msdos_format_write_sec                                  
ffc1125c:	7f 83 e3 78 	mr      r3,r28                                 
  /*                                                                  
   * 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);
ffc11260:	a1 41 02 4c 	lhz     r10,588(r1)                            
    *MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;                  
    ret_val = msdos_format_write_sec                                  
ffc11264:	38 c1 00 08 	addi    r6,r1,8                                
  /*                                                                  
   * 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);
ffc11268:	80 e1 02 44 	lwz     r7,580(r1)                             
    *MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;                  
    ret_val = msdos_format_write_sec                                  
ffc1126c:	80 81 02 28 	lwz     r4,552(r1)                             
ffc11270:	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);
ffc11274:	99 21 00 12 	stb     r9,18(r1)                              
    *MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;                  
ffc11278:	39 20 00 08 	li      r9,8                                   
  /*                                                                  
   * 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);
ffc1127c:	90 e1 00 08 	stw     r7,8(r1)                               
ffc11280:	91 01 00 0c 	stw     r8,12(r1)                              
ffc11284:	b1 41 00 10 	sth     r10,16(r1)                             
    *MSDOS_DIR_ATTR(tmp_sec) = MSDOS_ATTR_VOLUME_ID;                  
ffc11288:	99 21 00 13 	stb     r9,19(r1)                              
    ret_val = msdos_format_write_sec                                  
ffc1128c:	4b ff ef dd 	bl      ffc10268 <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) {                                                 
ffc11290:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc11294:	41 a2 fa 08 	beq-    ffc10c9c <msdos_format+0x6d8>          <== ALWAYS TAKEN
   * cleanup:                                                         
   * sync and unlock disk                                             
   * free any data structures (not needed now)                        
   */                                                                 
  if (fd != -1) {                                                     
    close(fd);                                                        
ffc11298:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc1129c:	4b ff 53 dd 	bl      ffc06678 <close>                       <== NOT EXECUTED
ffc112a0:	4b ff f4 28 	b       ffc106c8 <msdos_format+0x104>          <== NOT EXECUTED
      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);      
ffc112a4:	89 41 02 39 	lbz     r10,569(r1)                            
ffc112a8:	39 20 ff ff 	li      r9,-1                                  
ffc112ac:	99 21 00 09 	stb     r9,9(r1)                               
ffc112b0:	99 41 00 08 	stb     r10,8(r1)                              
      /* FAT entry 1: EOC */                                          
      FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);                         
ffc112b4:	39 40 ff f8 	li      r10,-8                                 
      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);      
ffc112b8:	99 21 00 0a 	stb     r9,10(r1)                              
ffc112bc:	99 21 00 0b 	stb     r9,11(r1)                              
      /* FAT entry 1: EOC */                                          
      FAT_SET_VAL32(tmp_sec,4,FAT_FAT32_EOC);                         
ffc112c0:	99 21 00 0d 	stb     r9,13(r1)                              
ffc112c4:	99 21 00 0e 	stb     r9,14(r1)                              
ffc112c8:	39 20 00 0f 	li      r9,15                                  
ffc112cc:	99 41 00 0c 	stb     r10,12(r1)                             
ffc112d0:	99 21 00 0f 	stb     r9,15(r1)                              
      /*                                                              
       * 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);                         
ffc112d4:	39 20 ff ff 	li      r9,-1                                  
ffc112d8:	39 40 ff f8 	li      r10,-8                                 
ffc112dc:	99 21 00 11 	stb     r9,17(r1)                              
ffc112e0:	99 21 00 12 	stb     r9,18(r1)                              
ffc112e4:	39 20 00 0f 	li      r9,15                                  
ffc112e8:	99 41 00 10 	stb     r10,16(r1)                             
ffc112ec:	99 21 00 13 	stb     r9,19(r1)                              
ffc112f0:	4b ff f9 f4 	b       ffc10ce4 <msdos_format+0x720>          
    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));                
ffc112f4:	89 21 02 39 	lbz     r9,569(r1)                             
ffc112f8:	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)));          
ffc112fc:	39 20 ff 8f 	li      r9,-113                                
ffc11300:	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));                   
ffc11304:	39 20 ff ff 	li      r9,-1                                  
ffc11308:	99 21 00 0a 	stb     r9,10(r1)                              
      break;                                                          
ffc1130c:	4b ff f9 d8 	b       ffc10ce4 <msdos_format+0x720>          
                                                                      
    case FAT_FAT16:                                                   
      /* FAT entry 0: 0xff00|media_type */                            
      FAT_SET_VAL8(tmp_sec,0,fmt_params.media_code);                  
ffc11310:	89 41 02 39 	lbz     r10,569(r1)                            
      FAT_SET_VAL8(tmp_sec,1,0xff);                                   
ffc11314:	39 20 ff ff 	li      r9,-1                                  
ffc11318:	99 21 00 09 	stb     r9,9(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);                  
ffc1131c:	99 41 00 08 	stb     r10,8(r1)                              
      FAT_SET_VAL8(tmp_sec,1,0xff);                                   
      /* FAT entry 1: EOC */                                          
      FAT_SET_VAL16(tmp_sec,2,FAT_FAT16_EOC);                         
ffc11320:	39 40 ff f8 	li      r10,-8                                 
ffc11324:	99 41 00 0a 	stb     r10,10(r1)                             
ffc11328:	99 21 00 0b 	stb     r9,11(r1)                              
      break;                                                          
ffc1132c:	4b ff f9 b8 	b       ffc10ce4 <msdos_format+0x720>          
  rc = rtems_clock_get_tod_timeval(&time_value);                      
  if (rc == RTEMS_SUCCESSFUL) {                                       
    *volid_ptr = time_value.tv_sec + time_value.tv_sec;               
  }                                                                   
  else {                                                              
    *volid_ptr = rand();                                              
ffc11330:	48 01 1c 49 	bl      ffc22f78 <rand>                        
ffc11334:	90 61 02 54 	stw     r3,596(r1)                             
ffc11338:	4b ff f6 d4 	b       ffc10a0c <msdos_format+0x448>          
  const uint64_t        total_size )                                  
{                                                                     
  if (   fmt_params->fattype == FAT_FAT12                             
      || fmt_params->fattype == FAT_FAT16 ) {                         
    /* start trying with small clusters */                            
    fmt_params->sectors_per_cluster = 2;                              
ffc1133c:	39 20 00 02 	li      r9,2                                   
ffc11340:	91 21 02 14 	stw     r9,532(r1)                             
ffc11344:	4b ff f5 38 	b       ffc1087c <msdos_format+0x2b8>          
    if ((ret_val == 0) &&                                             
        (fmt_params.mbr_copy_sec != 0)) {                             
      /*                                                              
       * write copy of MBR                                            
       */                                                             
      msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,       
ffc11348:	3c a0 ff c3 	lis     r5,-61                                 
ffc1134c:	38 80 00 02 	li      r4,2                                   
ffc11350:	38 a5 1b 30 	addi    r5,r5,6960                             
ffc11354:	7f a3 eb 78 	mr      r3,r29                                 
ffc11358:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc1135c:	4b ff ee 59 	bl      ffc101b4 <msdos_format_printf>         
                           "write back up MRB sector\n");             
      ret_val = msdos_format_write_sec(fd,                            
ffc11360:	80 81 02 30 	lwz     r4,560(r1)                             
ffc11364:	80 a1 02 08 	lwz     r5,520(r1)                             
ffc11368:	7f 83 e3 78 	mr      r3,r28                                 
ffc1136c:	38 c1 00 08 	addi    r6,r1,8                                
ffc11370:	4b ff ee f9 	bl      ffc10268 <msdos_format_write_sec>      
    }                                                                 
  }                                                                   
  /*                                                                  
   * for FAT32: initialize info sector on disk                        
   */                                                                 
  if ((ret_val == 0) &&                                               
ffc11374:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc11378:	41 82 f8 bc 	beq+    ffc10c34 <msdos_format+0x670>          <== ALWAYS TAKEN
ffc1137c:	4b ff f3 48 	b       ffc106c4 <msdos_format+0x100>          <== NOT EXECUTED
   */                                                                 
  if (ret_val == 0) {                                                 
      const char *from;                                               
      char        *to = fmt_params->OEMName;                          
      int          cnt;                                               
      from = "RTEMS"; /* default: make "from" point to OS Name */     
ffc11380:	3d 00 ff c3 	lis     r8,-61                                 
ffc11384:	39 08 1a 78 	addi    r8,r8,6776                             
ffc11388:	4b ff f5 a0 	b       ffc10928 <msdos_format+0x364>          
   */                                                                 
  if (ret_val == 0) {                                                 
      const char *from;                                               
      char        *to = fmt_params->VolLabel;                         
      int          cnt;                                               
      from = ""; /* default: make "from" point to empty string */     
ffc1138c:	3d 00 ff c3 	lis     r8,-61                                 
ffc11390:	39 08 16 8c 	addi    r8,r8,5772                             
ffc11394:	4b ff f6 08 	b       ffc1099c <msdos_format+0x3d8>          
    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);
    memcpy(FAT_GET_ADDR_BR_FAT32_FILSYSTYPE(mbr),                     
ffc11398:	3d 20 ff c3 	lis     r9,-61                                 
	   ? "FAT12   "                                                      
	   : "FAT16   ",                                                     
	   FAT_BR_FILSYSTYPE_SIZE);                                          
  }                                                                   
  else {                                                              
    FAT_SET_BR_SECTORS_PER_FAT32(mbr   ,fmt_params->sectors_per_fat); 
ffc1139c:	81 41 02 18 	lwz     r10,536(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 */
ffc113a0:	81 01 02 30 	lwz     r8,560(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);
    memcpy(FAT_GET_ADDR_BR_FAT32_FILSYSTYPE(mbr),                     
ffc113a4:	38 e9 1b 10 	addi    r7,r9,6928                             
ffc113a8:	80 c9 1b 10 	lwz     r6,6928(r9)                            
	   ? "FAT12   "                                                      
	   : "FAT16   ",                                                     
	   FAT_BR_FILSYSTYPE_SIZE);                                          
  }                                                                   
  else {                                                              
    FAT_SET_BR_SECTORS_PER_FAT32(mbr   ,fmt_params->sectors_per_fat); 
ffc113ac:	55 5e c6 3e 	rlwinm  r30,r10,24,24,31                       
    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);
    memcpy(FAT_GET_ADDR_BR_FAT32_FILSYSTYPE(mbr),                     
ffc113b0:	80 e7 00 04 	lwz     r7,4(r7)                               
    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);
ffc113b4:	39 20 00 00 	li      r9,0                                   
	   ? "FAT12   "                                                      
	   : "FAT16   ",                                                     
	   FAT_BR_FILSYSTYPE_SIZE);                                          
  }                                                                   
  else {                                                              
    FAT_SET_BR_SECTORS_PER_FAT32(mbr   ,fmt_params->sectors_per_fat); 
ffc113b8:	55 5f 84 3e 	rlwinm  r31,r10,16,16,31                       
ffc113bc:	99 41 00 2c 	stb     r10,44(r1)                             
ffc113c0:	55 40 46 3e 	rlwinm  r0,r10,8,24,31                         
    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 */
ffc113c4:	55 0b c2 3e 	rlwinm  r11,r8,24,8,31                         
	   ? "FAT12   "                                                      
	   : "FAT16   ",                                                     
	   FAT_BR_FILSYSTYPE_SIZE);                                          
  }                                                                   
  else {                                                              
    FAT_SET_BR_SECTORS_PER_FAT32(mbr   ,fmt_params->sectors_per_fat); 
ffc113c8:	9b c1 00 2d 	stb     r30,45(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);      
ffc113cc:	39 40 00 29 	li      r10,41                                 
	   ? "FAT12   "                                                      
	   : "FAT16   ",                                                     
	   FAT_BR_FILSYSTYPE_SIZE);                                          
  }                                                                   
  else {                                                              
    FAT_SET_BR_SECTORS_PER_FAT32(mbr   ,fmt_params->sectors_per_fat); 
ffc113d0:	9b e1 00 2e 	stb     r31,46(r1)                             
ffc113d4:	98 01 00 2f 	stb     r0,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 */
ffc113d8:	98 61 00 34 	stb     r3,52(r1)                              
    FAT_SET_BR_FAT32_FS_INFO_SECTOR(mbr, 1); /* Put fsinfo  to rsrvd sec 1*/
ffc113dc:	98 81 00 38 	stb     r4,56(r1)                              
    FAT_SET_BR_FAT32_BK_BOOT_SECTOR(mbr, fmt_params->mbr_copy_sec ); /* Put MBR copy to rsrvd sec */
ffc113e0:	99 01 00 3a 	stb     r8,58(r1)                              
ffc113e4:	99 61 00 3b 	stb     r11,59(r1)                             
    memset(FAT_GET_ADDR_BR_FAT32_RESERVED(mbr),0,FAT_BR_FAT32_RESERVED_SIZE);
ffc113e8:	91 21 00 3c 	stw     r9,60(r1)                              
ffc113ec:	91 21 00 40 	stw     r9,64(r1)                              
ffc113f0:	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);      
ffc113f4:	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);
ffc113f8:	91 21 00 4f 	stw     r9,79(r1)                              
ffc113fc:	91 21 00 53 	stw     r9,83(r1)                              
ffc11400:	b1 21 00 57 	sth     r9,87(r1)                              
ffc11404:	98 a1 00 59 	stb     r5,89(r1)                              
    memcpy(FAT_GET_ADDR_BR_FAT32_FILSYSTYPE(mbr),                     
ffc11408:	90 c1 00 5a 	stw     r6,90(r1)                              
ffc1140c:	90 e1 00 5e 	stw     r7,94(r1)                              
ffc11410:	4b ff f7 bc 	b       ffc10bcc <msdos_format+0x608>          
      #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--)                                        
ffc11414:	39 00 00 01 	li      r8,1                                   
        if ((gigs & (1 << b)) != 0)                                   
          break;                                                      
      fmt_params->sectors_per_cluster = 1 << b;                       
ffc11418:	91 01 02 14 	stw     r8,532(r1)                             
ffc1141c:	4b ff f9 dc 	b       ffc10df8 <msdos_format+0x834>          
                                                                      
    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);                         
ffc11420:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc11424:	4b ff f3 34 	b       ffc10758 <msdos_format+0x194>          <== NOT EXECUTED
      ret_val = -1;                                                   
    }                                                                 
  }                                                                   
                                                                      
  if (ret_val == 0)                                                   
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,         
ffc11428:	3c a0 ff c3 	lis     r5,-61                                 
   * determine number of FATs                                         
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata == NULL) ||                                           
	(rqdata->fat_num == 0)) {                                            
      fmt_params->fat_num = 2;                                        
ffc1142c:	39 20 00 02 	li      r9,2                                   
      ret_val = -1;                                                   
    }                                                                 
  }                                                                   
                                                                      
  if (ret_val == 0)                                                   
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,         
ffc11430:	38 60 00 00 	li      r3,0                                   
   * determine number of FATs                                         
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata == NULL) ||                                           
	(rqdata->fat_num == 0)) {                                            
      fmt_params->fat_num = 2;                                        
ffc11434:	99 21 02 38 	stb     r9,568(r1)                             
      ret_val = -1;                                                   
    }                                                                 
  }                                                                   
                                                                      
  if (ret_val == 0)                                                   
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,         
ffc11438:	38 80 00 02 	li      r4,2                                   
ffc1143c:	38 a5 1a cc 	addi    r5,r5,6860                             
ffc11440:	38 c0 00 02 	li      r6,2                                   
ffc11444:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc11448:	4b ff ed 6d 	bl      ffc101b4 <msdos_format_printf>         
  /*                                                                  
   * determine FAT type and sectors per cluster                       
   * depends on                                                       
   */                                                                 
  if (ret_val == 0) {                                                 
    fmt_params->sectors_per_cluster = 1;                              
ffc1144c:	39 00 7f a8 	li      r8,32680                               
     * 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;                               
ffc11450:	39 20 00 20 	li      r9,32                                  
ffc11454:	4b ff f9 88 	b       ffc10ddc <msdos_format+0x818>          
ffc11458:	80 a1 02 0c 	lwz     r5,524(r1)                             <== NOT EXECUTED
ffc1145c:	4b ff f3 3c 	b       ffc10798 <msdos_format+0x1d4>          <== NOT EXECUTED
      }                                                               
                                                                      
      ++iteration_cnt;                                                
    }                                                                 
  }                                                                   
  if ( fmt_params->totl_sector_cnt == 0 )                             
ffc11460:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc11464:	41 be f4 70 	beq-    cr7,ffc108d4 <msdos_format+0x310>      <== NEVER TAKEN
    ret_val = -1;                                                     
  }                                                                   
                                                                      
  if (0 == ret_val)                                                   
  {                                                                   
    if (FAT_FAT32 != fmt_params->fattype)                             
ffc11468:	89 21 02 3a 	lbz     r9,570(r1)                             
    {                                                                 
      fmt_params->files_per_root_dir = loc_align_object (fmt_params->root_dir_sectors,
ffc1146c:	89 01 02 58 	lbz     r8,600(r1)                             
    ret_val = -1;                                                     
  }                                                                   
                                                                      
  if (0 == ret_val)                                                   
  {                                                                   
    if (FAT_FAT32 != fmt_params->fattype)                             
ffc11470:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc11474:	41 9e 00 ac 	beq-    cr7,ffc11520 <msdos_format+0xf5c>      
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc11478:	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,
ffc1147c:	81 41 02 24 	lwz     r10,548(r1)                            
ffc11480:	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)                                               
ffc11484:	40 9e 00 14 	bne-    cr7,ffc11498 <msdos_format+0xed4>      
    return (sectors + clustersize - 1) & ~(clustersize - 1);          
ffc11488:	7d 4a 4a 14 	add     r10,r10,r9                             
ffc1148c:	39 0a ff ff 	addi    r8,r10,-1                              
ffc11490:	7d 49 00 d0 	neg     r10,r9                                 
ffc11494:	7d 0a 50 38 	and     r10,r8,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);
ffc11498:	81 01 02 08 	lwz     r8,520(r1)                             
ffc1149c:	55 08 d9 7e 	rlwinm  r8,r8,27,5,31                          
ffc114a0:	7d 4a 41 d6 	mullw   r10,r10,r8                             
                                                                      
  if (0 == ret_val)                                                   
  {                                                                   
    if (FAT_FAT32 != fmt_params->fattype)                             
    {                                                                 
      fmt_params->files_per_root_dir = loc_align_object (fmt_params->root_dir_sectors,
ffc114a4:	91 41 02 20 	stw     r10,544(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,
ffc114a8:	83 e1 02 10 	lwz     r31,528(r1)                            
static uint32_t                                                       
 loc_align_object (const uint32_t sectors,                            
                   const uint32_t clustersize,                        
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
ffc114ac:	40 9e 00 14 	bne-    cr7,ffc114c0 <msdos_format+0xefc>      
    return (sectors + clustersize - 1) & ~(clustersize - 1);          
ffc114b0:	3b ff ff ff 	addi    r31,r31,-1                             
ffc114b4:	7f ff 4a 14 	add     r31,r31,r9                             
ffc114b8:	7d 29 00 d0 	neg     r9,r9                                  
ffc114bc:	7f ff 48 38 	and     r31,r31,r9                             
                                                         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,
ffc114c0:	93 e1 02 10 	stw     r31,528(r1)                            
                                                                      
  /*                                                                  
   * determine media code                                             
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata != NULL) &&                                           
ffc114c4:	41 8e 00 50 	beq-    cr3,ffc11514 <msdos_format+0xf50>      
	(rqdata->media != 0)) {                                              
ffc114c8:	8b 7d 00 14 	lbz     r27,20(r29)                            
                                                                      
  /*                                                                  
   * determine media code                                             
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata != NULL) &&                                           
ffc114cc:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc114d0:	41 9e 00 44 	beq-    cr7,ffc11514 <msdos_format+0xf50>      
	(rqdata->media != 0)) {                                              
      const char valid_media_codes[] =                                
ffc114d4:	3d 40 ff c3 	lis     r10,-61                                
ffc114d8:	39 2a 1a 28 	addi    r9,r10,6696                            
ffc114dc:	81 0a 1a 28 	lwz     r8,6696(r10)                           
ffc114e0:	81 49 00 04 	lwz     r10,4(r9)                              
	{0xF0,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF};                      
      if (NULL==memchr(valid_media_codes,                             
ffc114e4:	38 61 00 08 	addi    r3,r1,8                                
   * determine media code                                             
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata != NULL) &&                                           
	(rqdata->media != 0)) {                                              
      const char valid_media_codes[] =                                
ffc114e8:	89 29 00 08 	lbz     r9,8(r9)                               
	{0xF0,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF};                      
      if (NULL==memchr(valid_media_codes,                             
ffc114ec:	7f 64 db 78 	mr      r4,r27                                 
ffc114f0:	38 a0 00 09 	li      r5,9                                   
   * determine media code                                             
   */                                                                 
  if (ret_val == 0) {                                                 
    if ((rqdata != NULL) &&                                           
	(rqdata->media != 0)) {                                              
      const char valid_media_codes[] =                                
ffc114f4:	91 01 00 08 	stw     r8,8(r1)                               
ffc114f8:	91 41 00 0c 	stw     r10,12(r1)                             
ffc114fc:	99 21 00 10 	stb     r9,16(r1)                              
	{0xF0,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF};                      
      if (NULL==memchr(valid_media_codes,                             
ffc11500:	48 01 0d 0d 	bl      ffc2220c <memchr>                      
ffc11504:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11508:	41 9e 00 24 	beq-    cr7,ffc1152c <msdos_format+0xf68>      <== ALWAYS TAKEN
		       sizeof(valid_media_codes))) {                                
	ret_val = -1;                                                        
	errno = EINVAL;                                                      
      }                                                               
      else {                                                          
	fmt_params->media_code = rqdata->media;                              
ffc1150c:	9b 61 02 39 	stb     r27,569(r1)                            <== NOT EXECUTED
ffc11510:	4b ff f3 dc 	b       ffc108ec <msdos_format+0x328>          <== NOT EXECUTED
      }                                                               
    }                                                                 
    else {                                                            
      fmt_params->media_code = FAT_BR_MEDIA_FIXED;                    
ffc11514:	39 20 ff f8 	li      r9,-8                                  
ffc11518:	99 21 02 39 	stb     r9,569(r1)                             
ffc1151c:	4b ff f3 d0 	b       ffc108ec <msdos_format+0x328>          
ffc11520:	81 21 02 14 	lwz     r9,532(r1)                             
ffc11524:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc11528:	4b ff ff 80 	b       ffc114a8 <msdos_format+0xee4>          
	{0xF0,0xF8,0xF9,0xFA,0xFB,0xFC,0xFD,0xFE,0xFF};                      
      if (NULL==memchr(valid_media_codes,                             
		       rqdata->media,                                               
		       sizeof(valid_media_codes))) {                                
	ret_val = -1;                                                        
	errno = EINVAL;                                                      
ffc1152c:	48 01 01 71 	bl      ffc2169c <__errno>                     
      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;                                                        
ffc11530:	3b c0 ff ff 	li      r30,-1                                 
	errno = EINVAL;                                                      
ffc11534:	39 20 00 16 	li      r9,22                                  
ffc11538:	83 e1 02 10 	lwz     r31,528(r1)                            
ffc1153c:	91 23 00 00 	stw     r9,0(r3)                               
ffc11540:	2d 1e 00 00 	cmpwi   cr2,r30,0                              
ffc11544:	4b ff f3 a8 	b       ffc108ec <msdos_format+0x328>          
       0x00);                                                         
  }                                                                   
  /*                                                                  
   * write volume label to first entry of directory                   
   */                                                                 
  if ((ret_val == 0) && fmt_params.VolLabel_present) {                
ffc11548:	7f fe fb 78 	mr      r30,r31                                <== NOT EXECUTED
ffc1154c:	4b ff f1 78 	b       ffc106c4 <msdos_format+0x100>          <== NOT EXECUTED
                   const bool     skip_alignment)                     
{                                                                     
  if (! skip_alignment)                                               
    return (sectors + clustersize - 1) & ~(clustersize - 1);          
  else                                                                
    return sectors;                                                   
ffc11550:	7d 8a 63 78 	mr      r10,r12                                
ffc11554:	4b ff fb 1c 	b       ffc11070 <msdos_format+0xaac>          
                                                                      

ffc102f4 <msdos_format_fill_sectors>: ) /*-------------------------------------------------------------------------*\ | Return Value: | | 0, if success, -1 and errno if failed | \*=========================================================================*/ {
ffc102f4:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc102f8:	7d 80 00 26 	mfcr    r12                                    
ffc102fc:	7c 08 02 a6 	mflr    r0                                     
ffc10300:	92 c1 00 10 	stw     r22,16(r1)                             
ffc10304:	7c 76 1b 78 	mr      r22,r3                                 
                                                                      
  /*                                                                  
   * allocate and fill buffer                                         
   */                                                                 
  if (ret_val == 0) {                                                 
    fill_buffer = malloc(sector_size);                                
ffc10308:	7c e3 3b 78 	mr      r3,r7                                  
 )                                                                    
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
ffc1030c:	92 e1 00 14 	stw     r23,20(r1)                             
ffc10310:	7c 97 23 78 	mr      r23,r4                                 
ffc10314:	93 01 00 18 	stw     r24,24(r1)                             
ffc10318:	93 41 00 20 	stw     r26,32(r1)                             
ffc1031c:	7c fa 3b 78 	mr      r26,r7                                 
ffc10320:	93 61 00 24 	stw     r27,36(r1)                             
ffc10324:	7c db 33 78 	mr      r27,r6                                 
ffc10328:	93 c1 00 30 	stw     r30,48(r1)                             
ffc1032c:	7d 1e 43 78 	mr      r30,r8                                 
ffc10330:	93 e1 00 34 	stw     r31,52(r1)                             
ffc10334:	7c bf 2b 78 	mr      r31,r5                                 
ffc10338:	90 01 00 3c 	stw     r0,60(r1)                              
ffc1033c:	92 a1 00 0c 	stw     r21,12(r1)                             
ffc10340:	93 21 00 1c 	stw     r25,28(r1)                             
ffc10344:	93 81 00 28 	stw     r28,40(r1)                             
ffc10348:	93 a1 00 2c 	stw     r29,44(r1)                             
ffc1034c:	91 81 00 08 	stw     r12,8(r1)                              
                                                                      
  /*                                                                  
   * allocate and fill buffer                                         
   */                                                                 
  if (ret_val == 0) {                                                 
    fill_buffer = malloc(sector_size);                                
ffc10350:	4b ff 6a 4d 	bl      ffc06d9c <malloc>                      
    if (fill_buffer == NULL) {                                        
ffc10354:	2e 03 00 00 	cmpwi   cr4,r3,0                               
ffc10358:	7c 78 1b 78 	mr      r24,r3                                 
ffc1035c:	41 92 01 70 	beq-    cr4,ffc104cc <msdos_format_fill_sectors+0x1d8><== NEVER TAKEN
      errno = ENOMEM;                                                 
      ret_val = -1;                                                   
    }                                                                 
    else {                                                            
      memset(fill_buffer,fill_byte,sector_size);                      
ffc10360:	7f c4 f3 78 	mr      r4,r30                                 
ffc10364:	7f 45 d3 78 	mr      r5,r26                                 
ffc10368:	48 01 21 09 	bl      ffc22470 <memset>                      
    }                                                                 
  }                                                                   
                                                                      
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
ffc1036c:	3c a0 ff c3 	lis     r5,-61                                 
ffc10370:	7e c3 b3 78 	mr      r3,r22                                 
ffc10374:	38 80 00 02 	li      r4,2                                   
ffc10378:	38 a5 1a 34 	addi    r5,r5,6708                             
ffc1037c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc10380:	4b ff fe 35 	bl      ffc101b4 <msdos_format_printf>         
                       "Filling : ");                                 
  /*                                                                  
   * write to consecutive sectors                                     
   */                                                                 
  while ((ret_val == 0) &&                                            
ffc10384:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc10388:	41 9e 01 24 	beq-    cr7,ffc104ac <msdos_format_fill_sectors+0x1b8><== NEVER TAKEN
	 (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, ".");
ffc1038c:	3e a0 ff c3 	lis     r21,-61                                
ffc10390:	1f bb 00 64 	mulli   r29,r27,100                            
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
                       "Filling : ");                                 
  /*                                                                  
   * write to consecutive sectors                                     
   */                                                                 
  while ((ret_val == 0) &&                                            
ffc10394:	7f 7e db 78 	mr      r30,r27                                
\*=========================================================================*/
{                                                                     
  int ret_val = 0;                                                    
  char *fill_buffer = NULL;                                           
  uint32_t total_sectors = sector_cnt;                                
  int last_percent = -1;                                              
ffc10398:	3b 80 ff ff 	li      r28,-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, ".");
ffc1039c:	3a b5 18 fc 	addi    r21,r21,6396                           
ffc103a0:	48 00 00 2c 	b       ffc103cc <msdos_format_fill_sectors+0xd8>
      last_percent = percent;                                         
    }                                                                 
    ret_val = msdos_format_write_sec(fd,start_sector,sector_size,fill_buffer);
ffc103a4:	7f e4 fb 78 	mr      r4,r31                                 
ffc103a8:	7e e3 bb 78 	mr      r3,r23                                 
ffc103ac:	7f 45 d3 78 	mr      r5,r26                                 
ffc103b0:	7f 06 c3 78 	mr      r6,r24                                 
ffc103b4:	4b ff fe b5 	bl      ffc10268 <msdos_format_write_sec>      
    start_sector++;                                                   
ffc103b8:	3b ff 00 01 	addi    r31,r31,1                              
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
                       "Filling : ");                                 
  /*                                                                  
   * write to consecutive sectors                                     
   */                                                                 
  while ((ret_val == 0) &&                                            
ffc103bc:	7c 79 1b 79 	mr.     r25,r3                                 
ffc103c0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc103c4:	40 82 00 60 	bne-    ffc10424 <msdos_format_fill_sectors+0x130><== NEVER TAKEN
ffc103c8:	41 9e 00 e4 	beq-    cr7,ffc104ac <msdos_format_fill_sectors+0x1b8>
	 (sector_cnt > 0)) {                                                 
    int percent = (sector_cnt * 100) / total_sectors;                 
ffc103cc:	7d 3d db 96 	divwu   r9,r29,r27                             
    if (percent != last_percent) {                                    
ffc103d0:	7f 89 e0 00 	cmpw    cr7,r9,r28                             
        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);
    start_sector++;                                                   
    sector_cnt--;                                                     
ffc103d4:	3b de ff ff 	addi    r30,r30,-1                             
ffc103d8:	3b bd ff 9c 	addi    r29,r29,-100                           
   * write to consecutive sectors                                     
   */                                                                 
  while ((ret_val == 0) &&                                            
	 (sector_cnt > 0)) {                                                 
    int percent = (sector_cnt * 100) / total_sectors;                 
    if (percent != last_percent) {                                    
ffc103dc:	41 be ff c8 	beq-    cr7,ffc103a4 <msdos_format_fill_sectors+0xb0>
      if ((percent & 1) == 0)                                         
ffc103e0:	7d 3c 4b 78 	mr      r28,r9                                 
ffc103e4:	73 89 00 01 	andi.   r9,r28,1                               
ffc103e8:	40 82 ff bc 	bne+    ffc103a4 <msdos_format_fill_sectors+0xb0>
        msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, ".");
ffc103ec:	7e c3 b3 78 	mr      r3,r22                                 
ffc103f0:	38 80 00 02 	li      r4,2                                   
ffc103f4:	7e a5 ab 78 	mr      r5,r21                                 
ffc103f8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc103fc:	4b ff fd b9 	bl      ffc101b4 <msdos_format_printf>         
      last_percent = percent;                                         
    }                                                                 
    ret_val = msdos_format_write_sec(fd,start_sector,sector_size,fill_buffer);
ffc10400:	7f e4 fb 78 	mr      r4,r31                                 
ffc10404:	7e e3 bb 78 	mr      r3,r23                                 
ffc10408:	7f 45 d3 78 	mr      r5,r26                                 
ffc1040c:	7f 06 c3 78 	mr      r6,r24                                 
ffc10410:	4b ff fe 59 	bl      ffc10268 <msdos_format_write_sec>      
    start_sector++;                                                   
ffc10414:	3b ff 00 01 	addi    r31,r31,1                              
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
                       "Filling : ");                                 
  /*                                                                  
   * write to consecutive sectors                                     
   */                                                                 
  while ((ret_val == 0) &&                                            
ffc10418:	7c 79 1b 79 	mr.     r25,r3                                 
ffc1041c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc10420:	41 82 ff a8 	beq+    ffc103c8 <msdos_format_fill_sectors+0xd4><== ALWAYS TAKEN
    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");    
ffc10424:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc10428:	7e c3 b3 78 	mr      r3,r22                                 <== NOT EXECUTED
ffc1042c:	38 80 00 02 	li      r4,2                                   <== NOT EXECUTED
ffc10430:	38 a5 0e 20 	addi    r5,r5,3616                             <== NOT EXECUTED
ffc10434:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc10438:	4b ff fd 7d 	bl      ffc101b4 <msdos_format_printf>         <== NOT EXECUTED
                                                                      
  if (ret_val)                                                        
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_INFO,           
ffc1043c:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc10440:	7e c3 b3 78 	mr      r3,r22                                 <== NOT EXECUTED
ffc10444:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc10448:	38 a5 1a 40 	addi    r5,r5,6720                             <== NOT EXECUTED
ffc1044c:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
ffc10450:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc10454:	4b ff fd 61 	bl      ffc101b4 <msdos_format_printf>         <== NOT EXECUTED
                         "filling error on sector: %d\n", start_sector);
                                                                      
  /*                                                                  
   * cleanup                                                          
   */                                                                 
  if (fill_buffer != NULL) {                                          
ffc10458:	41 92 00 0c 	beq-    cr4,ffc10464 <msdos_format_fill_sectors+0x170><== NOT EXECUTED
    free(fill_buffer);                                                
ffc1045c:	7f 03 c3 78 	mr      r3,r24                                 
ffc10460:	4b ff 62 b1 	bl      ffc06710 <free>                        
    fill_buffer = NULL;                                               
  }                                                                   
  return ret_val;                                                     
}                                                                     
ffc10464:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc10468:	7f 23 cb 78 	mr      r3,r25                                 
ffc1046c:	81 81 00 08 	lwz     r12,8(r1)                              
ffc10470:	7c 08 03 a6 	mtlr    r0                                     
ffc10474:	82 a1 00 0c 	lwz     r21,12(r1)                             
ffc10478:	82 c1 00 10 	lwz     r22,16(r1)                             
ffc1047c:	7d 80 81 20 	mtcrf   8,r12                                  
ffc10480:	82 e1 00 14 	lwz     r23,20(r1)                             
ffc10484:	83 01 00 18 	lwz     r24,24(r1)                             
ffc10488:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc1048c:	83 41 00 20 	lwz     r26,32(r1)                             
ffc10490:	83 61 00 24 	lwz     r27,36(r1)                             
ffc10494:	83 81 00 28 	lwz     r28,40(r1)                             
ffc10498:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc1049c:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc104a0:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc104a4:	38 21 00 38 	addi    r1,r1,56                               
ffc104a8:	4e 80 00 20 	blr                                            
    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");    
ffc104ac:	3c a0 ff c3 	lis     r5,-61                                 
ffc104b0:	7e c3 b3 78 	mr      r3,r22                                 
ffc104b4:	38 80 00 02 	li      r4,2                                   
ffc104b8:	38 a5 0e 20 	addi    r5,r5,3616                             
ffc104bc:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc104c0:	4b ff fc f5 	bl      ffc101b4 <msdos_format_printf>         
ffc104c4:	3b 20 00 00 	li      r25,0                                  
ffc104c8:	4b ff ff 94 	b       ffc1045c <msdos_format_fill_sectors+0x168>
   * allocate and fill buffer                                         
   */                                                                 
  if (ret_val == 0) {                                                 
    fill_buffer = malloc(sector_size);                                
    if (fill_buffer == NULL) {                                        
      errno = ENOMEM;                                                 
ffc104cc:	48 01 11 d1 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc104d0:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc104d4:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    else {                                                            
      memset(fill_buffer,fill_byte,sector_size);                      
    }                                                                 
  }                                                                   
                                                                      
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL,           
ffc104d8:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc104dc:	7e c3 b3 78 	mr      r3,r22                                 <== NOT EXECUTED
ffc104e0:	38 80 00 02 	li      r4,2                                   <== NOT EXECUTED
ffc104e4:	38 a5 1a 34 	addi    r5,r5,6708                             <== NOT EXECUTED
ffc104e8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc104ec:	4b ff fc c9 	bl      ffc101b4 <msdos_format_printf>         <== NOT EXECUTED
    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");    
ffc104f0:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc104f4:	7e c3 b3 78 	mr      r3,r22                                 <== NOT EXECUTED
ffc104f8:	38 80 00 02 	li      r4,2                                   <== NOT EXECUTED
ffc104fc:	38 a5 0e 20 	addi    r5,r5,3616                             <== NOT EXECUTED
ffc10500:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc10504:	4b ff fc b1 	bl      ffc101b4 <msdos_format_printf>         <== NOT EXECUTED
                                                                      
  if (ret_val)                                                        
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_INFO,           
ffc10508:	3c a0 ff c3 	lis     r5,-61                                 <== NOT EXECUTED
ffc1050c:	7e c3 b3 78 	mr      r3,r22                                 <== NOT EXECUTED
ffc10510:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc10514:	38 a5 1a 40 	addi    r5,r5,6720                             <== NOT EXECUTED
ffc10518:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
   */                                                                 
  if (ret_val == 0) {                                                 
    fill_buffer = malloc(sector_size);                                
    if (fill_buffer == NULL) {                                        
      errno = ENOMEM;                                                 
      ret_val = -1;                                                   
ffc1051c:	3b 20 ff ff 	li      r25,-1                                 <== NOT EXECUTED
  }                                                                   
                                                                      
  msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_DETAIL, "\n");    
                                                                      
  if (ret_val)                                                        
    msdos_format_printf (rqdata, MSDOS_FMT_INFO_LEVEL_INFO,           
ffc10520:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc10524:	4b ff fc 91 	bl      ffc101b4 <msdos_format_printf>         <== NOT EXECUTED
                         "filling error on sector: %d\n", start_sector);
                                                                      
  /*                                                                  
   * cleanup                                                          
   */                                                                 
  if (fill_buffer != NULL) {                                          
ffc10528:	40 92 ff 34 	bne+    cr4,ffc1045c <msdos_format_fill_sectors+0x168><== NOT EXECUTED
ffc1052c:	4b ff ff 38 	b       ffc10464 <msdos_format_fill_sectors+0x170><== NOT EXECUTED
                                                                      

ffc101b4 <msdos_format_printf>: */ static void msdos_format_printf (const msdos_format_request_param_t *rqdata, int info_level, const char *format, ...) {
ffc101b4:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc101b8:	7c 08 02 a6 	mflr    r0                                     
ffc101bc:	93 e1 00 74 	stw     r31,116(r1)                            
ffc101c0:	90 01 00 7c 	stw     r0,124(r1)                             
ffc101c4:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc101c8:	90 e1 00 20 	stw     r7,32(r1)                              
ffc101cc:	91 01 00 24 	stw     r8,36(r1)                              
ffc101d0:	91 21 00 28 	stw     r9,40(r1)                              
ffc101d4:	91 41 00 2c 	stw     r10,44(r1)                             
ffc101d8:	40 86 00 24 	bne-    cr1,ffc101fc <msdos_format_printf+0x48><== ALWAYS TAKEN
ffc101dc:	d8 21 00 30 	stfd    f1,48(r1)                              <== NOT EXECUTED
ffc101e0:	d8 41 00 38 	stfd    f2,56(r1)                              <== NOT EXECUTED
ffc101e4:	d8 61 00 40 	stfd    f3,64(r1)                              <== NOT EXECUTED
ffc101e8:	d8 81 00 48 	stfd    f4,72(r1)                              <== NOT EXECUTED
ffc101ec:	d8 a1 00 50 	stfd    f5,80(r1)                              <== NOT EXECUTED
ffc101f0:	d8 c1 00 58 	stfd    f6,88(r1)                              <== NOT EXECUTED
ffc101f4:	d8 e1 00 60 	stfd    f7,96(r1)                              <== NOT EXECUTED
ffc101f8:	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)             
ffc101fc:	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);                                            
ffc10200:	39 20 00 03 	li      r9,3                                   
ffc10204:	99 21 00 08 	stb     r9,8(r1)                               
ffc10208:	39 20 00 00 	li      r9,0                                   
ffc1020c:	99 21 00 09 	stb     r9,9(r1)                               
ffc10210:	39 21 00 80 	addi    r9,r1,128                              
ffc10214:	91 21 00 0c 	stw     r9,12(r1)                              
ffc10218:	39 21 00 10 	addi    r9,r1,16                               
ffc1021c:	91 21 00 10 	stw     r9,16(r1)                              
  if (rqdata != NULL && rqdata->info_level >= info_level)             
ffc10220:	41 9e 00 34 	beq-    cr7,ffc10254 <msdos_format_printf+0xa0>
ffc10224:	81 23 00 18 	lwz     r9,24(r3)                              
ffc10228:	7f 89 20 00 	cmpw    cr7,r9,r4                              
ffc1022c:	41 bc 00 28 	blt+    cr7,ffc10254 <msdos_format_printf+0xa0><== ALWAYS TAKEN
  {                                                                   
    vfprintf (stdout, format, args);                                  
ffc10230:	3f e0 00 00 	lis     r31,0                                  <== NOT EXECUTED
ffc10234:	81 3f 27 f0 	lwz     r9,10224(r31)                          <== NOT EXECUTED
ffc10238:	7c a4 2b 78 	mr      r4,r5                                  <== NOT EXECUTED
ffc1023c:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc10240:	80 69 00 08 	lwz     r3,8(r9)                               <== NOT EXECUTED
ffc10244:	48 01 a2 05 	bl      ffc2a448 <vfprintf>                    <== NOT EXECUTED
    fflush (stdout);                                                  
ffc10248:	81 3f 27 f0 	lwz     r9,10224(r31)                          <== NOT EXECUTED
ffc1024c:	80 69 00 08 	lwz     r3,8(r9)                               <== NOT EXECUTED
ffc10250:	48 01 19 15 	bl      ffc21b64 <fflush>                      <== NOT EXECUTED
  }                                                                   
  va_end (args);                                                      
}                                                                     
ffc10254:	80 01 00 7c 	lwz     r0,124(r1)                             
ffc10258:	83 e1 00 74 	lwz     r31,116(r1)                            
ffc1025c:	7c 08 03 a6 	mtlr    r0                                     
ffc10260:	38 21 00 78 	addi    r1,r1,120                              
ffc10264:	4e 80 00 20 	blr                                            
                                                                      

ffc10268 <msdos_format_write_sec>: ) /*-------------------------------------------------------------------------*\ | Return Value: | | 0, if success, -1 and errno if failed | \*=========================================================================*/ {
ffc10268:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc1026c:	7c 08 02 a6 	mflr    r0                                     
  int ret_val = 0;                                                    
                                                                      
  if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {     
ffc10270:	38 e0 00 00 	li      r7,0                                   
 )                                                                    
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
ffc10274:	93 e1 00 14 	stw     r31,20(r1)                             
ffc10278:	7c bf 2b 78 	mr      r31,r5                                 
  int ret_val = 0;                                                    
                                                                      
  if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {     
ffc1027c:	7c a4 28 16 	mulhwu  r5,r4,r5                               
 )                                                                    
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
ffc10280:	93 c1 00 10 	stw     r30,16(r1)                             
ffc10284:	7c de 33 78 	mr      r30,r6                                 
  int ret_val = 0;                                                    
                                                                      
  if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {     
ffc10288:	7c c4 f9 d6 	mullw   r6,r4,r31                              
 )                                                                    
/*-------------------------------------------------------------------------*\
| Return Value:                                                             |
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
ffc1028c:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc10290:	90 01 00 1c 	stw     r0,28(r1)                              
ffc10294:	7c 7d 1b 78 	mr      r29,r3                                 
  int ret_val = 0;                                                    
                                                                      
  if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {     
ffc10298:	48 00 91 7d 	bl      ffc19414 <lseek>                       
ffc1029c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc102a0:	40 9c 00 24 	bge-    cr7,ffc102c4 <msdos_format_write_sec+0x5c><== ALWAYS TAKEN
      ret_val = -1;                                                   
    }                                                                 
  }                                                                   
                                                                      
  return ret_val;                                                     
}                                                                     
ffc102a4:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
|    0, if success, -1 and errno if failed                                  |
\*=========================================================================*/
{                                                                     
  int ret_val = 0;                                                    
                                                                      
  if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {     
ffc102a8:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
      ret_val = -1;                                                   
    }                                                                 
  }                                                                   
                                                                      
  return ret_val;                                                     
}                                                                     
ffc102ac:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc102b0:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc102b4:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc102b8:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc102bc:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc102c0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      
  if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {     
    ret_val = -1;                                                     
  }                                                                   
  if (ret_val == 0) {                                                 
    if (0 > write(fd,buffer,sector_size)) {                           
ffc102c4:	7f a3 eb 78 	mr      r3,r29                                 
ffc102c8:	7f c4 f3 78 	mr      r4,r30                                 
ffc102cc:	7f e5 fb 78 	mr      r5,r31                                 
ffc102d0:	4b ff b0 49 	bl      ffc0b318 <write>                       
      ret_val = -1;                                                   
    }                                                                 
  }                                                                   
                                                                      
  return ret_val;                                                     
}                                                                     
ffc102d4:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc102d8:	83 a1 00 0c 	lwz     r29,12(r1)                             
                                                                      
  if (0 > lseek(fd,((off_t)start_sector)*sector_size,SEEK_SET)) {     
    ret_val = -1;                                                     
  }                                                                   
  if (ret_val == 0) {                                                 
    if (0 > write(fd,buffer,sector_size)) {                           
ffc102dc:	7c 63 fe 70 	srawi   r3,r3,31                               
      ret_val = -1;                                                   
    }                                                                 
  }                                                                   
                                                                      
  return ret_val;                                                     
}                                                                     
ffc102e0:	7c 08 03 a6 	mtlr    r0                                     
ffc102e4:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc102e8:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc102ec:	38 21 00 18 	addi    r1,r1,24                               
ffc102f0:	4e 80 00 20 	blr                                            
                                                                      

ffc1e704 <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 ) {
ffc1e704:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc1e708:	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;                                   
ffc1e70c:	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                   
    )                                                                 
{                                                                     
ffc1e710:	90 01 00 7c 	stw     r0,124(r1)                             
ffc1e714:	93 c1 00 70 	stw     r30,112(r1)                            
    int              rc = RC_OK;                                      
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    fat_file_fd_t   *fat_fd = NULL;                                   
ffc1e718:	7c 3e 0b 78 	mr      r30,r1                                 
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    uint32_t                              cln,                        
    fat_dir_pos_t                        *dir_pos,                    
    char                                 *dir_entry                   
    )                                                                 
{                                                                     
ffc1e71c:	93 21 00 5c 	stw     r25,92(r1)                             
ffc1e720:	7c d9 33 78 	mr      r25,r6                                 
ffc1e724:	93 41 00 60 	stw     r26,96(r1)                             
ffc1e728:	7c 9a 23 78 	mr      r26,r4                                 
    uint32_t         cl4find = 0;                                     
                                                                      
    /*                                                                
     * open fat-file corresponded to ".."                             
     */                                                               
    rc = fat_file_open(&fs_info->fat, dir_pos, &fat_fd);              
ffc1e72c:	7c a4 2b 78 	mr      r4,r5                                  
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    uint32_t                              cln,                        
    fat_dir_pos_t                        *dir_pos,                    
    char                                 *dir_entry                   
    )                                                                 
{                                                                     
ffc1e730:	93 61 00 64 	stw     r27,100(r1)                            
ffc1e734:	7c 7b 1b 78 	mr      r27,r3                                 
ffc1e738:	93 81 00 68 	stw     r28,104(r1)                            
ffc1e73c:	7c bc 2b 78 	mr      r28,r5                                 
ffc1e740:	93 a1 00 6c 	stw     r29,108(r1)                            
ffc1e744:	93 e1 00 74 	stw     r31,116(r1)                            
ffc1e748:	93 01 00 58 	stw     r24,88(r1)                             
    int              rc = RC_OK;                                      
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
ffc1e74c:	83 a3 00 08 	lwz     r29,8(r3)                              
    fat_file_fd_t   *fat_fd = NULL;                                   
ffc1e750:	95 3e 00 48 	stwu    r9,72(r30)                             
    uint32_t         cl4find = 0;                                     
                                                                      
    /*                                                                
     * open fat-file corresponded to ".."                             
     */                                                               
    rc = fat_file_open(&fs_info->fat, dir_pos, &fat_fd);              
ffc1e754:	7f a3 eb 78 	mr      r3,r29                                 
ffc1e758:	7f c5 f3 78 	mr      r5,r30                                 
ffc1e75c:	4b ff 77 ed 	bl      ffc15f48 <fat_file_open>               
    if (rc != RC_OK)                                                  
ffc1e760:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1e764:	41 82 00 38 	beq-    ffc1e79c <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x98><== ALWAYS TAKEN
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
    rc = fat_file_close(&fs_info->fat, fat_fd);                       
    return rc;                                                        
}                                                                     
ffc1e768:	80 01 00 7c 	lwz     r0,124(r1)                             
ffc1e76c:	7f e3 fb 78 	mr      r3,r31                                 
ffc1e770:	83 01 00 58 	lwz     r24,88(r1)                             
ffc1e774:	7c 08 03 a6 	mtlr    r0                                     
ffc1e778:	83 21 00 5c 	lwz     r25,92(r1)                             
ffc1e77c:	83 41 00 60 	lwz     r26,96(r1)                             
ffc1e780:	83 61 00 64 	lwz     r27,100(r1)                            
ffc1e784:	83 81 00 68 	lwz     r28,104(r1)                            
ffc1e788:	83 a1 00 6c 	lwz     r29,108(r1)                            
ffc1e78c:	83 c1 00 70 	lwz     r30,112(r1)                            
ffc1e790:	83 e1 00 74 	lwz     r31,116(r1)                            
ffc1e794:	38 21 00 78 	addi    r1,r1,120                              
ffc1e798:	4e 80 00 20 	blr                                            
     */                                                               
    rc = fat_file_open(&fs_info->fat, dir_pos, &fat_fd);              
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    fat_fd->cln = cln;                                                
ffc1e79c:	81 41 00 48 	lwz     r10,72(r1)                             
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
ffc1e7a0:	3d 20 00 20 	lis     r9,32                                  
                                                                      
    fat_fd->map.file_cln = 0;                                         
    fat_fd->map.disk_cln = fat_fd->cln;                               
                                                                      
    rc = fat_file_size(&fs_info->fat, fat_fd);                        
ffc1e7a4:	7f a3 eb 78 	mr      r3,r29                                 
    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;                            
ffc1e7a8:	93 ea 00 10 	stw     r31,16(r10)                            
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
                                                                      
    fat_fd->map.file_cln = 0;                                         
    fat_fd->map.disk_cln = fat_fd->cln;                               
                                                                      
    rc = fat_file_size(&fs_info->fat, fat_fd);                        
ffc1e7ac:	7d 44 53 78 	mr      r4,r10                                 
                                                                      
    fat_fd->cln = cln;                                                
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
                                                                      
    fat_fd->map.file_cln = 0;                                         
ffc1e7b0:	93 ea 00 34 	stw     r31,52(r10)                            
     */                                                               
    rc = fat_file_open(&fs_info->fat, dir_pos, &fat_fd);              
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    fat_fd->cln = cln;                                                
ffc1e7b4:	93 4a 00 1c 	stw     r26,28(r10)                            
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
ffc1e7b8:	91 2a 00 14 	stw     r9,20(r10)                             
                                                                      
    fat_fd->map.file_cln = 0;                                         
    fat_fd->map.disk_cln = fat_fd->cln;                               
ffc1e7bc:	93 4a 00 38 	stw     r26,56(r10)                            
                                                                      
    rc = fat_file_size(&fs_info->fat, fat_fd);                        
ffc1e7c0:	4b ff 86 b1 	bl      ffc16e70 <fat_file_size>               
    if (rc != RC_OK)                                                  
ffc1e7c4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1e7c8:	40 82 02 04 	bne-    ffc1e9cc <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x2c8><== NEVER TAKEN
        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);      
ffc1e7cc:	3f 40 ff c3 	lis     r26,-61                                
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    /* find "." node in opened directory */                           
    memset(dot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);           
ffc1e7d0:	93 e1 00 28 	stw     r31,40(r1)                             
    msdos_long_to_short(".", 1, dot_node, MSDOS_SHORT_NAME_LEN);      
ffc1e7d4:	3b 5a 18 fc 	addi    r26,r26,6396                           
ffc1e7d8:	38 80 00 01 	li      r4,1                                   
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    /* find "." node in opened directory */                           
    memset(dot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);           
ffc1e7dc:	93 e1 00 2c 	stw     r31,44(r1)                             
    msdos_long_to_short(".", 1, dot_node, MSDOS_SHORT_NAME_LEN);      
ffc1e7e0:	38 a1 00 28 	addi    r5,r1,40                               
ffc1e7e4:	38 c0 00 0b 	li      r6,11                                  
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    /* find "." node in opened directory */                           
    memset(dot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);           
ffc1e7e8:	93 e1 00 30 	stw     r31,48(r1)                             
    msdos_long_to_short(".", 1, dot_node, MSDOS_SHORT_NAME_LEN);      
ffc1e7ec:	7f 43 d3 78 	mr      r3,r26                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    /* find "." node in opened directory */                           
    memset(dot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);           
ffc1e7f0:	93 e1 00 34 	stw     r31,52(r1)                             
ffc1e7f4:	93 e1 00 38 	stw     r31,56(r1)                             
ffc1e7f8:	93 e1 00 3c 	stw     r31,60(r1)                             
ffc1e7fc:	93 e1 00 40 	stw     r31,64(r1)                             
ffc1e800:	93 e1 00 44 	stw     r31,68(r1)                             
    msdos_long_to_short(".", 1, dot_node, MSDOS_SHORT_NAME_LEN);      
ffc1e804:	4b ff e9 d5 	bl      ffc1d1d8 <msdos_long_to_short>         
    rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, ".", 1, 
ffc1e808:	7f 63 db 78 	mr      r3,r27                                 
ffc1e80c:	80 81 00 48 	lwz     r4,72(r1)                              
ffc1e810:	38 a0 00 00 	li      r5,0                                   
ffc1e814:	7f 46 d3 78 	mr      r6,r26                                 
ffc1e818:	38 e0 00 01 	li      r7,1                                   
ffc1e81c:	39 00 00 01 	li      r8,1                                   
ffc1e820:	7f 89 e3 78 	mr      r9,r28                                 
ffc1e824:	39 41 00 28 	addi    r10,r1,40                              
ffc1e828:	4b ff f2 75 	bl      ffc1da9c <msdos_find_name_in_fat_file> 
                                     MSDOS_NAME_SHORT, dir_pos, dot_node);
                                                                      
    if (rc != RC_OK)                                                  
ffc1e82c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1e830:	40 82 01 9c 	bne-    ffc1e9cc <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x2c8><== NEVER TAKEN
        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);  
ffc1e834:	3f 40 ff c3 	lis     r26,-61                                
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    /* find ".." node in opened directory */                          
    memset(dotdot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);        
ffc1e838:	93 e1 00 08 	stw     r31,8(r1)                              
    msdos_long_to_short("..", 2, dotdot_node, MSDOS_SHORT_NAME_LEN);  
ffc1e83c:	3b 5a 1e b0 	addi    r26,r26,7856                           
ffc1e840:	38 80 00 02 	li      r4,2                                   
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    /* find ".." node in opened directory */                          
    memset(dotdot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);        
ffc1e844:	93 e1 00 0c 	stw     r31,12(r1)                             
    msdos_long_to_short("..", 2, dotdot_node, MSDOS_SHORT_NAME_LEN);  
ffc1e848:	38 a1 00 08 	addi    r5,r1,8                                
ffc1e84c:	38 c0 00 0b 	li      r6,11                                  
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    /* find ".." node in opened directory */                          
    memset(dotdot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);        
ffc1e850:	93 e1 00 10 	stw     r31,16(r1)                             
    msdos_long_to_short("..", 2, dotdot_node, MSDOS_SHORT_NAME_LEN);  
ffc1e854:	7f 43 d3 78 	mr      r3,r26                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    /* find ".." node in opened directory */                          
    memset(dotdot_node, 0, MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE);        
ffc1e858:	93 e1 00 14 	stw     r31,20(r1)                             
ffc1e85c:	93 e1 00 18 	stw     r31,24(r1)                             
ffc1e860:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc1e864:	93 e1 00 20 	stw     r31,32(r1)                             
ffc1e868:	93 e1 00 24 	stw     r31,36(r1)                             
    msdos_long_to_short("..", 2, dotdot_node, MSDOS_SHORT_NAME_LEN);  
ffc1e86c:	4b ff e9 6d 	bl      ffc1d1d8 <msdos_long_to_short>         
    rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, "..", 2,
ffc1e870:	7f 63 db 78 	mr      r3,r27                                 
ffc1e874:	80 81 00 48 	lwz     r4,72(r1)                              
ffc1e878:	38 a0 00 00 	li      r5,0                                   
ffc1e87c:	7f 46 d3 78 	mr      r6,r26                                 
ffc1e880:	38 e0 00 02 	li      r7,2                                   
ffc1e884:	39 00 00 01 	li      r8,1                                   
ffc1e888:	7f 89 e3 78 	mr      r9,r28                                 
ffc1e88c:	39 41 00 08 	addi    r10,r1,8                               
ffc1e890:	4b ff f2 0d 	bl      ffc1da9c <msdos_find_name_in_fat_file> 
                                     MSDOS_NAME_SHORT, dir_pos,       
                                     dotdot_node);                    
                                                                      
    if (rc != RC_OK)                                                  
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
ffc1e894:	80 81 00 48 	lwz     r4,72(r1)                              
    msdos_long_to_short("..", 2, dotdot_node, MSDOS_SHORT_NAME_LEN);  
    rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, "..", 2,
                                     MSDOS_NAME_SHORT, dir_pos,       
                                     dotdot_node);                    
                                                                      
    if (rc != RC_OK)                                                  
ffc1e898:	7c 7f 1b 79 	mr.     r31,r3                                 
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
ffc1e89c:	7f a3 eb 78 	mr      r3,r29                                 
    msdos_long_to_short("..", 2, dotdot_node, MSDOS_SHORT_NAME_LEN);  
    rc = msdos_find_name_in_fat_file(mt_entry, fat_fd, false, "..", 2,
                                     MSDOS_NAME_SHORT, dir_pos,       
                                     dotdot_node);                    
                                                                      
    if (rc != RC_OK)                                                  
ffc1e8a0:	40 82 01 6c 	bne-    ffc1ea0c <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x308><== NEVER TAKEN
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    cl4find = MSDOS_EXTRACT_CLUSTER_NUM(dot_node);                    
ffc1e8a4:	a3 41 00 42 	lhz     r26,66(r1)                             
ffc1e8a8:	a3 01 00 3c 	lhz     r24,60(r1)                             
                                                                      
    /* close fat-file corresponded to ".." directory */               
    rc = fat_file_close(&fs_info->fat, fat_fd);                       
ffc1e8ac:	4b ff 7d 69 	bl      ffc16614 <fat_file_close>              
    if ( rc != RC_OK )                                                
ffc1e8b0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1e8b4:	40 a2 fe b4 	bne-    ffc1e768 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x64><== NEVER TAKEN
        return rc;                                                    
                                                                      
    if ( (MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)               
ffc1e8b8:	a1 21 00 1c 	lhz     r9,28(r1)                              
ffc1e8bc:	a1 01 00 22 	lhz     r8,34(r1)                              
ffc1e8c0:	55 2a c2 3e 	rlwinm  r10,r9,24,8,31                         
ffc1e8c4:	55 29 44 2e 	rlwinm  r9,r9,8,16,23                          
ffc1e8c8:	7d 4a 4b 78 	or      r10,r10,r9                             
ffc1e8cc:	55 09 c2 3e 	rlwinm  r9,r8,24,8,31                          
ffc1e8d0:	55 08 44 2e 	rlwinm  r8,r8,8,16,23                          
ffc1e8d4:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc1e8d8:	7d 29 43 78 	or      r9,r9,r8                               
ffc1e8dc:	7d 4a 4b 79 	or.     r10,r10,r9                             
ffc1e8e0:	40 82 00 1c 	bne-    ffc1e8fc <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x1f8><== 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;                           
ffc1e8e4:	39 00 ff ff 	li      r8,-1                                  <== NOT EXECUTED
fat_dir_pos_init(                                                     
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
  dir_pos->sname.ofs = 0;                                             
ffc1e8e8:	91 5c 00 04 	stw     r10,4(r28)                             <== 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;                 
ffc1e8ec:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
  dir_pos->lname.cln = FAT_FILE_SHORT_NAME;                           
ffc1e8f0:	91 1c 00 08 	stw     r8,8(r28)                              <== NOT EXECUTED
  dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;                           
ffc1e8f4:	91 1c 00 0c 	stw     r8,12(r28)                             <== NOT EXECUTED
ffc1e8f8:	91 3c 00 00 	stw     r9,0(r28)                              <== NOT EXECUTED
    }                                                                 
                                                                      
    /* open fat-file corresponded to second ".." */                   
    rc = fat_file_open(&fs_info->fat, dir_pos, &fat_fd);              
ffc1e8fc:	7f a3 eb 78 	mr      r3,r29                                 
ffc1e900:	7f 84 e3 78 	mr      r4,r28                                 
ffc1e904:	7f c5 f3 78 	mr      r5,r30                                 
ffc1e908:	4b ff 76 41 	bl      ffc15f48 <fat_file_open>               
    if (rc != RC_OK)                                                  
ffc1e90c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1e910:	40 a2 fe 58 	bne-    ffc1e768 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x64><== NEVER TAKEN
        return rc;                                                    
                                                                      
    if ((MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)                
ffc1e914:	a1 21 00 1c 	lhz     r9,28(r1)                              
ffc1e918:	a1 01 00 22 	lhz     r8,34(r1)                              
ffc1e91c:	55 2a c2 3e 	rlwinm  r10,r9,24,8,31                         
ffc1e920:	55 29 44 2e 	rlwinm  r9,r9,8,16,23                          
ffc1e924:	7d 4a 4b 78 	or      r10,r10,r9                             
ffc1e928:	55 09 c2 3e 	rlwinm  r9,r8,24,8,31                          
ffc1e92c:	55 08 44 2e 	rlwinm  r8,r8,8,16,23                          
ffc1e930:	7d 29 43 78 	or      r9,r9,r8                               
ffc1e934:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc1e938:	7d 4a 4b 79 	or.     r10,r10,r9                             
        fat_fd->cln = fs_info->fat.vol.rdir_cl;                       
ffc1e93c:	81 21 00 48 	lwz     r9,72(r1)                              
    /* open fat-file corresponded to second ".." */                   
    rc = fat_file_open(&fs_info->fat, dir_pos, &fat_fd);              
    if (rc != RC_OK)                                                  
        return rc;                                                    
                                                                      
    if ((MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)                
ffc1e940:	40 82 00 d4 	bne-    ffc1ea14 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x310><== ALWAYS TAKEN
        fat_fd->cln = fs_info->fat.vol.rdir_cl;                       
ffc1e944:	81 5d 00 3c 	lwz     r10,60(r29)                            <== NOT EXECUTED
ffc1e948:	91 49 00 1c 	stw     r10,28(r9)                             <== NOT EXECUTED
                                                                      
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
                                                                      
    fat_fd->map.file_cln = 0;                                         
    fat_fd->map.disk_cln = fat_fd->cln;                               
ffc1e94c:	81 09 00 1c 	lwz     r8,28(r9)                              
    if ((MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)                
        fat_fd->cln = fs_info->fat.vol.rdir_cl;                       
    else                                                              
        fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node);         
                                                                      
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
ffc1e950:	39 40 00 00 	li      r10,0                                  
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
ffc1e954:	3c e0 00 20 	lis     r7,32                                  
    if ((MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)                
        fat_fd->cln = fs_info->fat.vol.rdir_cl;                       
    else                                                              
        fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node);         
                                                                      
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
ffc1e958:	91 49 00 10 	stw     r10,16(r9)                             
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
                                                                      
    fat_fd->map.file_cln = 0;                                         
    fat_fd->map.disk_cln = fat_fd->cln;                               
                                                                      
    rc = fat_file_size(&fs_info->fat, fat_fd);                        
ffc1e95c:	7f a3 eb 78 	mr      r3,r29                                 
        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;                        
ffc1e960:	90 e9 00 14 	stw     r7,20(r9)                              
                                                                      
    fat_fd->map.file_cln = 0;                                         
    fat_fd->map.disk_cln = fat_fd->cln;                               
                                                                      
    rc = fat_file_size(&fs_info->fat, fat_fd);                        
ffc1e964:	7d 24 4b 78 	mr      r4,r9                                  
        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;                                         
ffc1e968:	91 49 00 34 	stw     r10,52(r9)                             
    fat_fd->map.disk_cln = fat_fd->cln;                               
ffc1e96c:	91 09 00 38 	stw     r8,56(r9)                              
                                                                      
    rc = fat_file_size(&fs_info->fat, fat_fd);                        
ffc1e970:	4b ff 85 01 	bl      ffc16e70 <fat_file_size>               
    if (rc != RC_OK)                                                  
ffc1e974:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1e978:	40 82 00 54 	bne-    ffc1e9cc <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x2c8><== NEVER TAKEN
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    cl4find = MSDOS_EXTRACT_CLUSTER_NUM(dot_node);                    
ffc1e97c:	57 05 c2 3e 	rlwinm  r5,r24,24,8,31                         
        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,
ffc1e980:	80 81 00 48 	lwz     r4,72(r1)                              
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
                                                                      
    cl4find = MSDOS_EXTRACT_CLUSTER_NUM(dot_node);                    
ffc1e984:	57 18 44 2e 	rlwinm  r24,r24,8,16,23                        
ffc1e988:	57 49 c2 3e 	rlwinm  r9,r26,24,8,31                         
ffc1e98c:	7c a5 c3 78 	or      r5,r5,r24                              
ffc1e990:	57 5a 44 2e 	rlwinm  r26,r26,8,16,23                        
ffc1e994:	7d 3a d3 78 	or      r26,r9,r26                             
ffc1e998:	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,
ffc1e99c:	7f 63 db 78 	mr      r3,r27                                 
ffc1e9a0:	7c a5 d3 78 	or      r5,r5,r26                              
ffc1e9a4:	7f 86 e3 78 	mr      r6,r28                                 
ffc1e9a8:	7f 27 cb 78 	mr      r7,r25                                 
ffc1e9ac:	4b ff fb 31 	bl      ffc1e4dc <msdos_find_node_by_cluster_num_in_fat_file>
                                                    dir_pos, dir_entry);
    if (rc != RC_OK)                                                  
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
ffc1e9b0:	80 81 00 48 	lwz     r4,72(r1)                              
    }                                                                 
                                                                      
    /* 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)                                                  
ffc1e9b4:	7c 7f 1b 79 	mr.     r31,r3                                 
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
ffc1e9b8:	7f a3 eb 78 	mr      r3,r29                                 
    }                                                                 
                                                                      
    /* 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)                                                  
ffc1e9bc:	40 82 00 50 	bne-    ffc1ea0c <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x308><== NEVER TAKEN
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
    rc = fat_file_close(&fs_info->fat, fat_fd);                       
ffc1e9c0:	4b ff 7c 55 	bl      ffc16614 <fat_file_close>              
ffc1e9c4:	7c 7f 1b 78 	mr      r31,r3                                 
ffc1e9c8:	4b ff fd a0 	b       ffc1e768 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x64>
    fat_fd->map.disk_cln = fat_fd->cln;                               
                                                                      
    rc = fat_file_size(&fs_info->fat, fat_fd);                        
    if (rc != RC_OK)                                                  
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
ffc1e9cc:	80 81 00 48 	lwz     r4,72(r1)                              <== NOT EXECUTED
ffc1e9d0:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc1e9d4:	4b ff 7c 41 	bl      ffc16614 <fat_file_close>              <== NOT EXECUTED
        fat_file_close(&fs_info->fat, fat_fd);                        
        return rc;                                                    
    }                                                                 
    rc = fat_file_close(&fs_info->fat, fat_fd);                       
    return rc;                                                        
}                                                                     
ffc1e9d8:	80 01 00 7c 	lwz     r0,124(r1)                             <== NOT EXECUTED
ffc1e9dc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1e9e0:	83 01 00 58 	lwz     r24,88(r1)                             <== NOT EXECUTED
ffc1e9e4:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc1e9e8:	83 21 00 5c 	lwz     r25,92(r1)                             <== NOT EXECUTED
ffc1e9ec:	83 41 00 60 	lwz     r26,96(r1)                             <== NOT EXECUTED
ffc1e9f0:	83 61 00 64 	lwz     r27,100(r1)                            <== NOT EXECUTED
ffc1e9f4:	83 81 00 68 	lwz     r28,104(r1)                            <== NOT EXECUTED
ffc1e9f8:	83 a1 00 6c 	lwz     r29,108(r1)                            <== NOT EXECUTED
ffc1e9fc:	83 c1 00 70 	lwz     r30,112(r1)                            <== NOT EXECUTED
ffc1ea00:	83 e1 00 74 	lwz     r31,116(r1)                            <== NOT EXECUTED
ffc1ea04:	38 21 00 78 	addi    r1,r1,120                              <== NOT EXECUTED
ffc1ea08:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    /* 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)                                                  
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
ffc1ea0c:	4b ff 7c 09 	bl      ffc16614 <fat_file_close>              <== NOT EXECUTED
ffc1ea10:	4b ff fd 58 	b       ffc1e768 <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x64><== NOT EXECUTED
        return rc;                                                    
                                                                      
    if ((MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node)) == 0)                
        fat_fd->cln = fs_info->fat.vol.rdir_cl;                       
    else                                                              
        fat_fd->cln = MSDOS_EXTRACT_CLUSTER_NUM(dotdot_node);         
ffc1ea14:	91 49 00 1c 	stw     r10,28(r9)                             
ffc1ea18:	4b ff ff 34 	b       ffc1e94c <msdos_get_dotdot_dir_info_cluster_num_and_offset+0x248>
                                                                      

ffc115fc <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 ) {
ffc115fc:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc11600:	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;                                 
ffc11604:	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       
    )                                                                 
{                                                                     
ffc11608:	93 41 00 28 	stw     r26,40(r1)                             
ffc1160c:	7c 9a 23 78 	mr      r26,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));  
ffc11610:	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       
    )                                                                 
{                                                                     
ffc11614:	93 a1 00 34 	stw     r29,52(r1)                             
ffc11618:	7c 7d 1b 78 	mr      r29,r3                                 
    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));  
ffc1161c:	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       
    )                                                                 
{                                                                     
ffc11620:	93 61 00 2c 	stw     r27,44(r1)                             
ffc11624:	7c bb 2b 78 	mr      r27,r5                                 
ffc11628:	93 81 00 30 	stw     r28,48(r1)                             
ffc1162c:	7c dc 33 78 	mr      r28,r6                                 
ffc11630:	93 e1 00 3c 	stw     r31,60(r1)                             
ffc11634:	90 01 00 44 	stw     r0,68(r1)                              
ffc11638:	93 c1 00 38 	stw     r30,56(r1)                             
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = NULL;                                
    fat_file_fd_t     *fat_fd = NULL;                                 
ffc1163c:	91 21 00 18 	stw     r9,24(r1)                              
    fat_dir_pos_t      root_pos;                                      
    uint32_t           cl_buf_size;                                   
                                                                      
    fs_info = (msdos_fs_info_t *)calloc(1, sizeof(msdos_fs_info_t));  
ffc11640:	4b ff 4f c1 	bl      ffc06600 <calloc>                      
    if (!fs_info)                                                     
ffc11644:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc11648:	41 82 01 9c 	beq-    ffc117e4 <msdos_initialize_support+0x1e8><== NEVER TAKEN
        rtems_set_errno_and_return_minus_one(ENOMEM);                 
                                                                      
    temp_mt_entry->fs_info = fs_info;                                 
ffc1164c:	93 fd 00 08 	stw     r31,8(r29)                             
                                                                      
    rc = fat_init_volume_info(&fs_info->fat, temp_mt_entry->dev);     
ffc11650:	80 9d 00 38 	lwz     r4,56(r29)                             
ffc11654:	48 00 62 09 	bl      ffc1785c <fat_init_volume_info>        
    if (rc != RC_OK)                                                  
ffc11658:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1165c:	40 82 00 f4 	bne-    ffc11750 <msdos_initialize_support+0x154><== NEVER TAKEN
    fat_dir_pos_t *dir_pos                                            
    )                                                                 
{                                                                     
  dir_pos->sname.cln = 0;                                             
  dir_pos->sname.ofs = 0;                                             
  dir_pos->lname.cln = FAT_FILE_SHORT_NAME;                           
ffc11660:	39 20 ff ff 	li      r9,-1                                  
    {                                                                 
        free(fs_info);                                                
        return rc;                                                    
    }                                                                 
                                                                      
    fs_info->file_handlers      = file_handlers;                      
ffc11664:	93 7f 00 98 	stw     r27,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);            
ffc11668:	7f e3 fb 78 	mr      r3,r31                                 
        free(fs_info);                                                
        return rc;                                                    
    }                                                                 
                                                                      
    fs_info->file_handlers      = file_handlers;                      
    fs_info->directory_handlers = directory_handlers;                 
ffc1166c:	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);            
ffc11670:	38 81 00 08 	addi    r4,r1,8                                
ffc11674:	38 a1 00 18 	addi    r5,r1,24                               
ffc11678:	91 21 00 10 	stw     r9,16(r1)                              
  dir_pos->lname.ofs = FAT_FILE_SHORT_NAME;                           
ffc1167c:	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;                     
ffc11680:	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;                                             
ffc11684:	93 c1 00 0c 	stw     r30,12(r1)                             
ffc11688:	91 21 00 08 	stw     r9,8(r1)                               
    rc = fat_file_open(&fs_info->fat, &root_pos, &fat_fd);            
ffc1168c:	48 00 48 bd 	bl      ffc15f48 <fat_file_open>               
    if (rc != RC_OK)                                                  
ffc11690:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc11694:	40 82 00 b4 	bne-    ffc11748 <msdos_initialize_support+0x14c><== NEVER TAKEN
    }                                                                 
                                                                      
    /* 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;                           
ffc11698:	81 5f 00 3c 	lwz     r10,60(r31)                            
        return rc;                                                    
    }                                                                 
                                                                      
    /* again: unfortunately "fat-file" is just almost fat file :( */  
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
ffc1169c:	3d 00 00 20 	lis     r8,32                                  
        free(fs_info);                                                
        return rc;                                                    
    }                                                                 
                                                                      
    /* again: unfortunately "fat-file" is just almost fat file :( */  
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
ffc116a0:	80 81 00 18 	lwz     r4,24(r1)                              
                                                                      
    fat_fd->map.file_cln = 0;                                         
    fat_fd->map.disk_cln = fat_fd->cln;                               
                                                                      
    /* if we have FAT12/16 */                                         
    if ( fat_fd->cln == 0 )                                           
ffc116a4:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
        free(fs_info);                                                
        return rc;                                                    
    }                                                                 
                                                                      
    /* again: unfortunately "fat-file" is just almost fat file :( */  
    fat_fd->fat_file_type = FAT_DIRECTORY;                            
ffc116a8:	93 c4 00 10 	stw     r30,16(r4)                             
    fat_fd->size_limit = MSDOS_MAX_DIR_LENGHT;                        
ffc116ac:	91 04 00 14 	stw     r8,20(r4)                              
    fat_fd->cln = fs_info->fat.vol.rdir_cl;                           
ffc116b0:	91 44 00 1c 	stw     r10,28(r4)                             
                                                                      
    fat_fd->map.file_cln = 0;                                         
ffc116b4:	93 c4 00 34 	stw     r30,52(r4)                             
    fat_fd->map.disk_cln = fat_fd->cln;                               
ffc116b8:	91 44 00 38 	stw     r10,56(r4)                             
                                                                      
    /* if we have FAT12/16 */                                         
    if ( fat_fd->cln == 0 )                                           
ffc116bc:	40 9e 00 d0 	bne-    cr7,ffc1178c <msdos_initialize_support+0x190>
    {                                                                 
        fat_fd->fat_file_size = fs_info->fat.vol.rdir_size;           
ffc116c0:	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                                :
ffc116c4:	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;           
ffc116c8:	91 44 00 18 	stw     r10,24(r4)                             
        cl_buf_size = (fs_info->fat.vol.bpc > fs_info->fat.vol.rdir_size) ?
ffc116cc:	7f 83 50 40 	cmplw   cr7,r3,r10                             
ffc116d0:	41 9c 00 b4 	blt-    cr7,ffc11784 <msdos_initialize_support+0x188>
            return rc;                                                
        }                                                             
        cl_buf_size = fs_info->fat.vol.bpc;                           
    }                                                                 
                                                                      
    fs_info->cl_buf = (uint8_t *)calloc(cl_buf_size, sizeof(char));   
ffc116d4:	38 80 00 01 	li      r4,1                                   
ffc116d8:	4b ff 4f 29 	bl      ffc06600 <calloc>                      
    if (fs_info->cl_buf == NULL)                                      
ffc116dc:	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));   
ffc116e0:	90 7f 00 a0 	stw     r3,160(r31)                            
    if (fs_info->cl_buf == NULL)                                      
ffc116e4:	41 9e 00 e4 	beq-    cr7,ffc117c8 <msdos_initialize_support+0x1cc><== NEVER TAKEN
        fat_shutdown_drive(&fs_info->fat);                            
        free(fs_info);                                                
        rtems_set_errno_and_return_minus_one(ENOMEM);                 
    }                                                                 
                                                                      
    sc = rtems_semaphore_create(3,                                    
ffc116e8:	38 60 00 03 	li      r3,3                                   
ffc116ec:	38 80 00 01 	li      r4,1                                   
ffc116f0:	38 a0 00 10 	li      r5,16                                  
ffc116f4:	38 c0 00 00 	li      r6,0                                   
ffc116f8:	38 ff 00 9c 	addi    r7,r31,156                             
ffc116fc:	4b ff a1 c5 	bl      ffc0b8c0 <rtems_semaphore_create>      
                                1,                                    
                                RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,  
                                0,                                    
                                &fs_info->vol_sema);                  
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc11700:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11704:	40 9e 00 f4 	bne-    cr7,ffc117f8 <msdos_initialize_support+0x1fc><== NEVER TAKEN
    temp_mt_entry->mt_fs_root->location.node_access = fat_fd;         
    temp_mt_entry->mt_fs_root->location.handlers = directory_handlers;
    temp_mt_entry->ops = op_table;                                    
                                                                      
    return rc;                                                        
}                                                                     
ffc11708:	80 01 00 44 	lwz     r0,68(r1)                              
ffc1170c:	7f c3 f3 78 	mr      r3,r30                                 
        free(fs_info->cl_buf);                                        
        free(fs_info);                                                
        rtems_set_errno_and_return_minus_one( EIO );                  
    }                                                                 
                                                                      
    temp_mt_entry->mt_fs_root->location.node_access = fat_fd;         
ffc11710:	81 3d 00 24 	lwz     r9,36(r29)                             
    temp_mt_entry->mt_fs_root->location.handlers = directory_handlers;
    temp_mt_entry->ops = op_table;                                    
                                                                      
    return rc;                                                        
}                                                                     
ffc11714:	7c 08 03 a6 	mtlr    r0                                     
        free(fs_info->cl_buf);                                        
        free(fs_info);                                                
        rtems_set_errno_and_return_minus_one( EIO );                  
    }                                                                 
                                                                      
    temp_mt_entry->mt_fs_root->location.node_access = fat_fd;         
ffc11718:	81 41 00 18 	lwz     r10,24(r1)                             
    temp_mt_entry->mt_fs_root->location.handlers = directory_handlers;
ffc1171c:	93 89 00 10 	stw     r28,16(r9)                             
        free(fs_info->cl_buf);                                        
        free(fs_info);                                                
        rtems_set_errno_and_return_minus_one( EIO );                  
    }                                                                 
                                                                      
    temp_mt_entry->mt_fs_root->location.node_access = fat_fd;         
ffc11720:	91 49 00 08 	stw     r10,8(r9)                              
    temp_mt_entry->mt_fs_root->location.handlers = directory_handlers;
    temp_mt_entry->ops = op_table;                                    
                                                                      
    return rc;                                                        
}                                                                     
ffc11724:	83 61 00 2c 	lwz     r27,44(r1)                             
        rtems_set_errno_and_return_minus_one( EIO );                  
    }                                                                 
                                                                      
    temp_mt_entry->mt_fs_root->location.node_access = fat_fd;         
    temp_mt_entry->mt_fs_root->location.handlers = directory_handlers;
    temp_mt_entry->ops = op_table;                                    
ffc11728:	93 5d 00 0c 	stw     r26,12(r29)                            
                                                                      
    return rc;                                                        
}                                                                     
ffc1172c:	83 81 00 30 	lwz     r28,48(r1)                             
ffc11730:	83 41 00 28 	lwz     r26,40(r1)                             
ffc11734:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc11738:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc1173c:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc11740:	38 21 00 40 	addi    r1,r1,64                               
ffc11744:	4e 80 00 20 	blr                                            
    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);            
    if (rc != RC_OK)                                                  
    {                                                                 
        fat_shutdown_drive(&fs_info->fat);                            
ffc11748:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1174c:	48 00 6a 7d 	bl      ffc181c8 <fat_shutdown_drive>          <== NOT EXECUTED
        free(fs_info);                                                
ffc11750:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc11754:	4b ff 4f bd 	bl      ffc06710 <free>                        <== NOT EXECUTED
    temp_mt_entry->mt_fs_root->location.node_access = fat_fd;         
    temp_mt_entry->mt_fs_root->location.handlers = directory_handlers;
    temp_mt_entry->ops = op_table;                                    
                                                                      
    return rc;                                                        
}                                                                     
ffc11758:	80 01 00 44 	lwz     r0,68(r1)                              <== NOT EXECUTED
ffc1175c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc11760:	83 41 00 28 	lwz     r26,40(r1)                             <== NOT EXECUTED
ffc11764:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc11768:	83 61 00 2c 	lwz     r27,44(r1)                             <== NOT EXECUTED
ffc1176c:	83 81 00 30 	lwz     r28,48(r1)                             <== NOT EXECUTED
ffc11770:	83 a1 00 34 	lwz     r29,52(r1)                             <== NOT EXECUTED
ffc11774:	83 c1 00 38 	lwz     r30,56(r1)                             <== NOT EXECUTED
ffc11778:	83 e1 00 3c 	lwz     r31,60(r1)                             <== NOT EXECUTED
ffc1177c:	38 21 00 40 	addi    r1,r1,64                               <== NOT EXECUTED
ffc11780:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      
    /* if we have FAT12/16 */                                         
    if ( fat_fd->cln == 0 )                                           
    {                                                                 
        fat_fd->fat_file_size = fs_info->fat.vol.rdir_size;           
        cl_buf_size = (fs_info->fat.vol.bpc > fs_info->fat.vol.rdir_size) ?
ffc11784:	7d 43 53 78 	mr      r3,r10                                 
ffc11788:	4b ff ff 4c 	b       ffc116d4 <msdos_initialize_support+0xd8>
                      fs_info->fat.vol.bpc                                :
                      fs_info->fat.vol.rdir_size;                     
    }                                                                 
    else                                                              
    {                                                                 
        rc = fat_file_size(&fs_info->fat, fat_fd);                    
ffc1178c:	7f e3 fb 78 	mr      r3,r31                                 
ffc11790:	48 00 56 e1 	bl      ffc16e70 <fat_file_size>               
        if ( rc != RC_OK )                                            
ffc11794:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc11798:	40 82 00 0c 	bne-    ffc117a4 <msdos_initialize_support+0x1a8><== NEVER TAKEN
            fat_file_close(&fs_info->fat, fat_fd);                    
            fat_shutdown_drive(&fs_info->fat);                        
            free(fs_info);                                            
            return rc;                                                
        }                                                             
        cl_buf_size = fs_info->fat.vol.bpc;                           
ffc1179c:	a0 7f 00 06 	lhz     r3,6(r31)                              
ffc117a0:	4b ff ff 34 	b       ffc116d4 <msdos_initialize_support+0xd8>
    else                                                              
    {                                                                 
        rc = fat_file_size(&fs_info->fat, fat_fd);                    
        if ( rc != RC_OK )                                            
        {                                                             
            fat_file_close(&fs_info->fat, fat_fd);                    
ffc117a4:	80 81 00 18 	lwz     r4,24(r1)                              <== NOT EXECUTED
ffc117a8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
            fat_shutdown_drive(&fs_info->fat);                        
            free(fs_info);                                            
ffc117ac:	7f 7e db 78 	mr      r30,r27                                <== NOT EXECUTED
    else                                                              
    {                                                                 
        rc = fat_file_size(&fs_info->fat, fat_fd);                    
        if ( rc != RC_OK )                                            
        {                                                             
            fat_file_close(&fs_info->fat, fat_fd);                    
ffc117b0:	48 00 4e 65 	bl      ffc16614 <fat_file_close>              <== NOT EXECUTED
            fat_shutdown_drive(&fs_info->fat);                        
ffc117b4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc117b8:	48 00 6a 11 	bl      ffc181c8 <fat_shutdown_drive>          <== NOT EXECUTED
            free(fs_info);                                            
ffc117bc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc117c0:	4b ff 4f 51 	bl      ffc06710 <free>                        <== NOT EXECUTED
ffc117c4:	4b ff ff 94 	b       ffc11758 <msdos_initialize_support+0x15c><== NOT EXECUTED
    }                                                                 
                                                                      
    fs_info->cl_buf = (uint8_t *)calloc(cl_buf_size, sizeof(char));   
    if (fs_info->cl_buf == NULL)                                      
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
ffc117c8:	80 81 00 18 	lwz     r4,24(r1)                              <== NOT EXECUTED
ffc117cc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc117d0:	48 00 4e 45 	bl      ffc16614 <fat_file_close>              <== NOT EXECUTED
        fat_shutdown_drive(&fs_info->fat);                            
ffc117d4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc117d8:	48 00 69 f1 	bl      ffc181c8 <fat_shutdown_drive>          <== NOT EXECUTED
        free(fs_info);                                                
ffc117dc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc117e0:	4b ff 4f 31 	bl      ffc06710 <free>                        <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one(ENOMEM);                 
ffc117e4:	48 00 fe b9 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc117e8:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc117ec:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc117f0:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc117f4:	4b ff ff 64 	b       ffc11758 <msdos_initialize_support+0x15c><== NOT EXECUTED
                                RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,  
                                0,                                    
                                &fs_info->vol_sema);                  
    if (sc != RTEMS_SUCCESSFUL)                                       
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
ffc117f8:	80 81 00 18 	lwz     r4,24(r1)                              <== NOT EXECUTED
ffc117fc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
        fat_shutdown_drive(&fs_info->fat);                            
        free(fs_info->cl_buf);                                        
        free(fs_info);                                                
        rtems_set_errno_and_return_minus_one( EIO );                  
ffc11800:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
                                RTEMS_BINARY_SEMAPHORE | RTEMS_FIFO,  
                                0,                                    
                                &fs_info->vol_sema);                  
    if (sc != RTEMS_SUCCESSFUL)                                       
    {                                                                 
        fat_file_close(&fs_info->fat, fat_fd);                        
ffc11804:	48 00 4e 11 	bl      ffc16614 <fat_file_close>              <== NOT EXECUTED
        fat_shutdown_drive(&fs_info->fat);                            
ffc11808:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1180c:	48 00 69 bd 	bl      ffc181c8 <fat_shutdown_drive>          <== NOT EXECUTED
        free(fs_info->cl_buf);                                        
ffc11810:	80 7f 00 a0 	lwz     r3,160(r31)                            <== NOT EXECUTED
ffc11814:	4b ff 4e fd 	bl      ffc06710 <free>                        <== NOT EXECUTED
        free(fs_info);                                                
ffc11818:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1181c:	4b ff 4e f5 	bl      ffc06710 <free>                        <== NOT EXECUTED
        rtems_set_errno_and_return_minus_one( EIO );                  
ffc11820:	48 00 fe 7d 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc11824:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc11828:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1182c:	4b ff ff 2c 	b       ffc11758 <msdos_initialize_support+0x15c><== NOT EXECUTED
                                                                      

ffc115b8 <msdos_lock>: .rename_h = msdos_rename, .statvfs_h = rtems_filesystem_default_statvfs }; void msdos_lock(const rtems_filesystem_mount_table_entry_t *mt_entry) {
ffc115b8:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc115bc:	7c 08 02 a6 	mflr    r0                                     
  msdos_fs_info_t *fs_info = mt_entry->fs_info;                       
  rtems_status_code sc = rtems_semaphore_obtain(                      
ffc115c0:	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) 
{                                                                     
ffc115c4:	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(                      
ffc115c8:	38 a0 00 00 	li      r5,0                                   
    fs_info->vol_sema,                                                
ffc115cc:	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(                      
ffc115d0:	80 69 00 9c 	lwz     r3,156(r9)                             
ffc115d4:	4b ff a6 01 	bl      ffc0bbd4 <rtems_semaphore_obtain>      
    fs_info->vol_sema,                                                
    RTEMS_WAIT,                                                       
    RTEMS_NO_TIMEOUT                                                  
  );                                                                  
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc115d8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc115dc:	40 9e 00 14 	bne-    cr7,ffc115f0 <msdos_lock+0x38>         <== NEVER TAKEN
    rtems_fatal_error_occurred(0xdeadbeef);                           
  }                                                                   
}                                                                     
ffc115e0:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc115e4:	38 21 00 08 	addi    r1,r1,8                                
ffc115e8:	7c 08 03 a6 	mtlr    r0                                     
ffc115ec:	4e 80 00 20 	blr                                            
    fs_info->vol_sema,                                                
    RTEMS_WAIT,                                                       
    RTEMS_NO_TIMEOUT                                                  
  );                                                                  
  if (sc != RTEMS_SUCCESSFUL) {                                       
    rtems_fatal_error_occurred(0xdeadbeef);                           
ffc115f0:	3c 60 de ad 	lis     r3,-8531                               <== NOT EXECUTED
ffc115f4:	60 63 be ef 	ori     r3,r3,48879                            <== NOT EXECUTED
ffc115f8:	4b ff af 41 	bl      ffc0c538 <rtems_fatal_error_occurred>  <== NOT EXECUTED
                                                                      

ffc1d1d8 <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) {
ffc1d1d8:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc1d1dc:	7d 80 00 26 	mfcr    r12                                    
ffc1d1e0:	7c 08 02 a6 	mflr    r0                                     
ffc1d1e4:	93 21 00 1c 	stw     r25,28(r1)                             
ffc1d1e8:	7c b9 2b 78 	mr      r25,r5                                 
ffc1d1ec:	93 81 00 28 	stw     r28,40(r1)                             
ffc1d1f0:	7c 9c 23 78 	mr      r28,r4                                 
    int               i;                                              
                                                                      
    /*                                                                
     * Fill with spaces. This is how a short directory entry is padded.
     */                                                               
    memset (sfn, ' ', sfn_len);                                       
ffc1d1f4:	38 80 00 20 	li      r4,32                                  
 *                                                                    
 */                                                                   
#define MSDOS_L2S_PRINT 0                                             
msdos_name_type_t                                                     
msdos_long_to_short(const char *lfn, int lfn_len, char* sfn, int sfn_len)
{                                                                     
ffc1d1f8:	93 a1 00 2c 	stw     r29,44(r1)                             
ffc1d1fc:	7c 7d 1b 78 	mr      r29,r3                                 
    int               i;                                              
                                                                      
    /*                                                                
     * Fill with spaces. This is how a short directory entry is padded.
     */                                                               
    memset (sfn, ' ', sfn_len);                                       
ffc1d200:	7c a3 2b 78 	mr      r3,r5                                  
ffc1d204:	7c c5 33 78 	mr      r5,r6                                  
 *                                                                    
 */                                                                   
#define MSDOS_L2S_PRINT 0                                             
msdos_name_type_t                                                     
msdos_long_to_short(const char *lfn, int lfn_len, char* sfn, int sfn_len)
{                                                                     
ffc1d208:	93 c1 00 30 	stw     r30,48(r1)                             
ffc1d20c:	90 01 00 3c 	stw     r0,60(r1)                              
ffc1d210:	92 a1 00 0c 	stw     r21,12(r1)                             
ffc1d214:	92 c1 00 10 	stw     r22,16(r1)                             
ffc1d218:	92 e1 00 14 	stw     r23,20(r1)                             
ffc1d21c:	93 01 00 18 	stw     r24,24(r1)                             
ffc1d220:	93 41 00 20 	stw     r26,32(r1)                             
ffc1d224:	93 61 00 24 	stw     r27,36(r1)                             
ffc1d228:	93 e1 00 34 	stw     r31,52(r1)                             
ffc1d22c:	91 81 00 08 	stw     r12,8(r1)                              
    int               i;                                              
                                                                      
    /*                                                                
     * Fill with spaces. This is how a short directory entry is padded.
     */                                                               
    memset (sfn, ' ', sfn_len);                                       
ffc1d230:	48 00 52 41 	bl      ffc22470 <memset>                      
                                                                      
    /*                                                                
     * Handle '.' and '..' specially.                                 
     */                                                               
    if ((lfn[0] == '.') && (lfn_len == 1))                            
ffc1d234:	8b dd 00 00 	lbz     r30,0(r29)                             
ffc1d238:	2f 9e 00 2e 	cmpwi   cr7,r30,46                             
ffc1d23c:	41 9e 00 7c 	beq-    cr7,ffc1d2b8 <msdos_long_to_short+0xe0>
    }                                                                 
                                                                      
    /*                                                                
     * Filenames with only blanks and dots are not allowed!           
     */                                                               
    for (i = 0; i < lfn_len; i++)                                     
ffc1d240:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc1d244:	7f 89 03 a6 	mtctr   r28                                    
ffc1d248:	39 20 00 00 	li      r9,0                                   
ffc1d24c:	40 9d 01 d0 	ble-    cr7,ffc1d41c <msdos_long_to_short+0x244><== NEVER TAKEN
        if ((lfn[i] != ' ') && (lfn[i] != '.'))                       
ffc1d250:	7d 5d 48 ae 	lbzx    r10,r29,r9                             
    }                                                                 
                                                                      
    /*                                                                
     * Filenames with only blanks and dots are not allowed!           
     */                                                               
    for (i = 0; i < lfn_len; i++)                                     
ffc1d254:	39 29 00 01 	addi    r9,r9,1                                
        if ((lfn[i] != ' ') && (lfn[i] != '.'))                       
ffc1d258:	2f 8a 00 20 	cmpwi   cr7,r10,32                             
ffc1d25c:	2f 0a 00 2e 	cmpwi   cr6,r10,46                             
ffc1d260:	41 9e 00 08 	beq-    cr7,ffc1d268 <msdos_long_to_short+0x90>
ffc1d264:	40 9a 00 8c 	bne-    cr6,ffc1d2f0 <msdos_long_to_short+0x118><== ALWAYS TAKEN
    }                                                                 
                                                                      
    /*                                                                
     * Filenames with only blanks and dots are not allowed!           
     */                                                               
    for (i = 0; i < lfn_len; i++)                                     
ffc1d268:	42 00 ff e8 	bdnz+   ffc1d250 <msdos_long_to_short+0x78>    
    if (i == lfn_len)                                                 
    {                                                                 
#if MSDOS_L2S_PRINT                                                   
        printf ("MSDOS_L2S: INVALID[1]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif                                                                
        return MSDOS_NAME_INVALID;                                    
ffc1d26c:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
                                                                      
#if MSDOS_L2S_PRINT                                                   
    printf ("MSDOS_L2S: TYPE:%d lfn:'%s' SFN:'%s'\n", type, lfn, sfn);
#endif                                                                
    return type;                                                      
}                                                                     
ffc1d270:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc1d274:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d278:	81 81 00 08 	lwz     r12,8(r1)                              
ffc1d27c:	7c 08 03 a6 	mtlr    r0                                     
ffc1d280:	82 a1 00 0c 	lwz     r21,12(r1)                             
ffc1d284:	82 c1 00 10 	lwz     r22,16(r1)                             
ffc1d288:	7d 80 81 20 	mtcrf   8,r12                                  
ffc1d28c:	82 e1 00 14 	lwz     r23,20(r1)                             
ffc1d290:	83 01 00 18 	lwz     r24,24(r1)                             
ffc1d294:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc1d298:	83 41 00 20 	lwz     r26,32(r1)                             
ffc1d29c:	83 61 00 24 	lwz     r27,36(r1)                             
ffc1d2a0:	83 81 00 28 	lwz     r28,40(r1)                             
ffc1d2a4:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc1d2a8:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc1d2ac:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc1d2b0:	38 21 00 38 	addi    r1,r1,56                               
ffc1d2b4:	4e 80 00 20 	blr                                            
    memset (sfn, ' ', sfn_len);                                       
                                                                      
    /*                                                                
     * Handle '.' and '..' specially.                                 
     */                                                               
    if ((lfn[0] == '.') && (lfn_len == 1))                            
ffc1d2b8:	2f 9c 00 01 	cmpwi   cr7,r28,1                              
ffc1d2bc:	41 9e 00 28 	beq-    cr7,ffc1d2e4 <msdos_long_to_short+0x10c>
        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))         
ffc1d2c0:	89 3d 00 01 	lbz     r9,1(r29)                              
ffc1d2c4:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
ffc1d2c8:	40 9e ff 78 	bne+    cr7,ffc1d240 <msdos_long_to_short+0x68><== NEVER TAKEN
ffc1d2cc:	2f 9c 00 02 	cmpwi   cr7,r28,2                              
ffc1d2d0:	40 9e ff 70 	bne+    cr7,ffc1d240 <msdos_long_to_short+0x68><== NEVER TAKEN
    {                                                                 
        sfn[0] = sfn[1] = '.';                                        
ffc1d2d4:	99 39 00 01 	stb     r9,1(r25)                              
#if MSDOS_L2S_PRINT                                                   
        printf ("MSDOS_L2S: SHORT[2]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif                                                                
        return MSDOS_NAME_SHORT;                                      
ffc1d2d8:	3b e0 00 01 	li      r31,1                                  
        return MSDOS_NAME_SHORT;                                      
    }                                                                 
                                                                      
    if ((lfn[0] == '.') && (lfn[1] == '.') && (lfn_len == 2))         
    {                                                                 
        sfn[0] = sfn[1] = '.';                                        
ffc1d2dc:	99 39 00 00 	stb     r9,0(r25)                              
#if MSDOS_L2S_PRINT                                                   
        printf ("MSDOS_L2S: SHORT[2]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif                                                                
        return MSDOS_NAME_SHORT;                                      
ffc1d2e0:	4b ff ff 90 	b       ffc1d270 <msdos_long_to_short+0x98>    
    /*                                                                
     * Handle '.' and '..' specially.                                 
     */                                                               
    if ((lfn[0] == '.') && (lfn_len == 1))                            
    {                                                                 
        sfn[0] = '.';                                                 
ffc1d2e4:	9b d9 00 00 	stb     r30,0(r25)                             
#if MSDOS_L2S_PRINT                                                   
        printf ("MSDOS_L2S: SHORT[1]: lfn:'%s' SFN:'%s'\n", lfn, sfn);
#endif                                                                
        return MSDOS_NAME_SHORT;                                      
ffc1d2e8:	3b e0 00 01 	li      r31,1                                  
ffc1d2ec:	4b ff ff 84 	b       ffc1d270 <msdos_long_to_short+0x98>    
    bool lowercase = false;                                           
    bool uppercase = false;                                           
    int  dot_at = -1;                                                 
    int  count = 0;                                                   
                                                                      
    while (*name && (count < name_len))                               
ffc1d2f0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc1d2f4:	41 9e 00 f0 	beq-    cr7,ffc1d3e4 <msdos_long_to_short+0x20c><== NEVER TAKEN
msdos_is_valid_name_char(const char ch)                               
{                                                                     
    if (strchr(" +,;=[]", ch) != NULL)                                
        return MSDOS_NAME_LONG;                                       
                                                                      
    if ((ch == '.') || isalnum((unsigned char)ch) ||                  
ffc1d2f8:	3d 20 00 00 	lis     r9,0                                   
ffc1d2fc:	3f 60 ff c3 	lis     r27,-61                                
ffc1d300:	82 c9 27 e8 	lwz     r22,10216(r9)                          
        (strchr("$%'-_@~`!(){}^#&", ch) != NULL))                     
ffc1d304:	3e a0 ff c3 	lis     r21,-61                                
msdos_is_valid_name_char(const char ch)                               
{                                                                     
    if (strchr(" +,;=[]", ch) != NULL)                                
        return MSDOS_NAME_LONG;                                       
                                                                      
    if ((ch == '.') || isalnum((unsigned char)ch) ||                  
ffc1d308:	3b 00 00 00 	li      r24,0                                  
ffc1d30c:	3a e0 00 00 	li      r23,0                                  
ffc1d310:	3b e0 00 00 	li      r31,0                                  
ffc1d314:	3b 40 ff ff 	li      r26,-1                                 
ffc1d318:	3b 7b 21 3c 	addi    r27,r27,8508                           
        (strchr("$%'-_@~`!(){}^#&", ch) != NULL))                     
ffc1d31c:	3a b5 21 44 	addi    r21,r21,8516                           
 *                                                                    
 */                                                                   
static msdos_name_type_t                                              
msdos_is_valid_name_char(const char ch)                               
{                                                                     
    if (strchr(" +,;=[]", ch) != NULL)                                
ffc1d320:	7f 63 db 78 	mr      r3,r27                                 
ffc1d324:	7f c4 f3 78 	mr      r4,r30                                 
ffc1d328:	48 00 60 29 	bl      ffc23350 <strchr>                      
ffc1d32c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1d330:	41 9e 00 1c 	beq-    cr7,ffc1d34c <msdos_long_to_short+0x174>
            {                                                         
#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;                               
ffc1d334:	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);                      
ffc1d338:	7f a3 eb 78 	mr      r3,r29                                 
ffc1d33c:	7f 84 e3 78 	mr      r4,r28                                 
ffc1d340:	7f 25 cb 78 	mr      r5,r25                                 
ffc1d344:	48 00 33 89 	bl      ffc206cc <msdos_filename_unix2dos>     
                                                                      
#if MSDOS_L2S_PRINT                                                   
    printf ("MSDOS_L2S: TYPE:%d lfn:'%s' SFN:'%s'\n", type, lfn, sfn);
#endif                                                                
    return type;                                                      
ffc1d348:	4b ff ff 28 	b       ffc1d270 <msdos_long_to_short+0x98>    
    int  dot_at = -1;                                                 
    int  count = 0;                                                   
                                                                      
    while (*name && (count < name_len))                               
    {                                                                 
        bool is_dot = *name == '.';                                   
ffc1d34c:	6b c9 00 2e 	xori    r9,r30,46                              
ffc1d350:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc1d354:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
msdos_is_valid_name_char(const char ch)                               
{                                                                     
    if (strchr(" +,;=[]", ch) != NULL)                                
        return MSDOS_NAME_LONG;                                       
                                                                      
    if ((ch == '.') || isalnum((unsigned char)ch) ||                  
ffc1d358:	2e 09 00 00 	cmpwi   cr4,r9,0                               
ffc1d35c:	40 92 00 90 	bne-    cr4,ffc1d3ec <msdos_long_to_short+0x214>
ffc1d360:	7d 56 f2 14 	add     r10,r22,r30                            
ffc1d364:	89 4a 00 01 	lbz     r10,1(r10)                             
ffc1d368:	71 49 00 07 	andi.   r9,r10,7                               
ffc1d36c:	40 82 00 18 	bne-    ffc1d384 <msdos_long_to_short+0x1ac>   
        (strchr("$%'-_@~`!(){}^#&", ch) != NULL))                     
ffc1d370:	7e a3 ab 78 	mr      r3,r21                                 
ffc1d374:	7f c4 f3 78 	mr      r4,r30                                 
ffc1d378:	48 00 5f d9 	bl      ffc23350 <strchr>                      
msdos_is_valid_name_char(const char ch)                               
{                                                                     
    if (strchr(" +,;=[]", ch) != NULL)                                
        return MSDOS_NAME_LONG;                                       
                                                                      
    if ((ch == '.') || isalnum((unsigned char)ch) ||                  
ffc1d37c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1d380:	41 be fe ec 	beq-    cr7,ffc1d26c <msdos_long_to_short+0x94><== NEVER TAKEN
#endif                                                                
                                                                      
        if ((type == MSDOS_NAME_INVALID) || (type == MSDOS_NAME_LONG))
            return type;                                              
                                                                      
        if (dot_at >= 0)                                              
ffc1d384:	2f 9a ff ff 	cmpwi   cr7,r26,-1                             
ffc1d388:	41 9e 00 6c 	beq-    cr7,ffc1d3f4 <msdos_long_to_short+0x21c>
        {                                                             
            if (is_dot || ((count - dot_at) > 3))                     
ffc1d38c:	7d 3a f8 50 	subf    r9,r26,r31                             
ffc1d390:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc1d394:	41 bd ff a0 	bgt-    cr7,ffc1d334 <msdos_long_to_short+0x15c><== NEVER TAKEN
            }                                                         
        }                                                             
                                                                      
        if (is_dot)                                                   
            dot_at = count;                                           
        else if ((*name >= 'A') && (*name <= 'Z'))                    
ffc1d398:	39 3e ff bf 	addi    r9,r30,-65                             
ffc1d39c:	2b 89 00 19 	cmplwi  cr7,r9,25                              
ffc1d3a0:	40 9d 00 68 	ble-    cr7,ffc1d408 <msdos_long_to_short+0x230>
            uppercase = true;                                         
        else if ((*name >= 'a') && (*name <= 'z'))                    
ffc1d3a4:	3b de ff 9f 	addi    r30,r30,-97                            
ffc1d3a8:	2b 9e 00 19 	cmplwi  cr7,r30,25                             
ffc1d3ac:	41 9d 00 08 	bgt-    cr7,ffc1d3b4 <msdos_long_to_short+0x1dc>
            lowercase = true;                                         
ffc1d3b0:	3a e0 00 01 	li      r23,1                                  
                                                                      
        count++;                                                      
ffc1d3b4:	3b ff 00 01 	addi    r31,r31,1                              
    bool lowercase = false;                                           
    bool uppercase = false;                                           
    int  dot_at = -1;                                                 
    int  count = 0;                                                   
                                                                      
    while (*name && (count < name_len))                               
ffc1d3b8:	7f dd f8 ae 	lbzx    r30,r29,r31                            
ffc1d3bc:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc1d3c0:	41 9e 00 0c 	beq-    cr7,ffc1d3cc <msdos_long_to_short+0x1f4>
ffc1d3c4:	7f 9c f8 00 	cmpw    cr7,r28,r31                            
ffc1d3c8:	41 9d ff 58 	bgt+    cr7,ffc1d320 <msdos_long_to_short+0x148>
                                                                      
        count++;                                                      
        name++;                                                       
    }                                                                 
                                                                      
    if (lowercase && uppercase)                                       
ffc1d3cc:	2f 97 00 00 	cmpwi   cr7,r23,0                              
    }                                                                 
                                                                      
#if MSDOS_NAME_TYPE_PRINT                                             
    printf ("MSDOS_NAME_TYPE: SHORT[1]\n");                           
#endif                                                                
    return MSDOS_NAME_SHORT;                                          
ffc1d3d0:	3b e0 00 01 	li      r31,1                                  
                                                                      
        count++;                                                      
        name++;                                                       
    }                                                                 
                                                                      
    if (lowercase && uppercase)                                       
ffc1d3d4:	41 be ff 64 	beq-    cr7,ffc1d338 <msdos_long_to_short+0x160>
ffc1d3d8:	2f 98 00 00 	cmpwi   cr7,r24,0                              
    {                                                                 
#if MSDOS_NAME_TYPE_PRINT                                             
        printf ("MSDOS_NAME_TYPE: LONG[3]\n");                        
#endif                                                                
        return MSDOS_NAME_LONG;                                       
ffc1d3dc:	3b e0 00 02 	li      r31,2                                  
                                                                      
        count++;                                                      
        name++;                                                       
    }                                                                 
                                                                      
    if (lowercase && uppercase)                                       
ffc1d3e0:	40 9e ff 58 	bne+    cr7,ffc1d338 <msdos_long_to_short+0x160><== NEVER TAKEN
    }                                                                 
                                                                      
#if MSDOS_NAME_TYPE_PRINT                                             
    printf ("MSDOS_NAME_TYPE: SHORT[1]\n");                           
#endif                                                                
    return MSDOS_NAME_SHORT;                                          
ffc1d3e4:	3b e0 00 01 	li      r31,1                                  
ffc1d3e8:	4b ff ff 50 	b       ffc1d338 <msdos_long_to_short+0x160>   
#endif                                                                
                                                                      
        if ((type == MSDOS_NAME_INVALID) || (type == MSDOS_NAME_LONG))
            return type;                                              
                                                                      
        if (dot_at >= 0)                                              
ffc1d3ec:	2f 9a ff ff 	cmpwi   cr7,r26,-1                             
ffc1d3f0:	40 9e ff 44 	bne+    cr7,ffc1d334 <msdos_long_to_short+0x15c>
                return MSDOS_NAME_LONG;                               
            }                                                         
        }                                                             
        else                                                          
        {                                                             
            if (count == 8 && !is_dot)                                
ffc1d3f4:	2f 9f 00 08 	cmpwi   cr7,r31,8                              
ffc1d3f8:	41 9e 00 18 	beq-    cr7,ffc1d410 <msdos_long_to_short+0x238>
#endif                                                                
                return MSDOS_NAME_LONG;                               
            }                                                         
        }                                                             
                                                                      
        if (is_dot)                                                   
ffc1d3fc:	41 b2 ff 9c 	beq-    cr4,ffc1d398 <msdos_long_to_short+0x1c0>
ffc1d400:	7f fa fb 78 	mr      r26,r31                                
ffc1d404:	4b ff ff b0 	b       ffc1d3b4 <msdos_long_to_short+0x1dc>   
            dot_at = count;                                           
        else if ((*name >= 'A') && (*name <= 'Z'))                    
            uppercase = true;                                         
ffc1d408:	3b 00 00 01 	li      r24,1                                  
ffc1d40c:	4b ff ff a8 	b       ffc1d3b4 <msdos_long_to_short+0x1dc>   
                return MSDOS_NAME_LONG;                               
            }                                                         
        }                                                             
        else                                                          
        {                                                             
            if (count == 8 && !is_dot)                                
ffc1d410:	41 b2 ff 24 	beq-    cr4,ffc1d334 <msdos_long_to_short+0x15c><== ALWAYS TAKEN
ffc1d414:	3b 40 00 08 	li      r26,8                                  <== NOT EXECUTED
ffc1d418:	4b ff ff 9c 	b       ffc1d3b4 <msdos_long_to_short+0x1dc>   <== NOT EXECUTED
     */                                                               
    for (i = 0; i < lfn_len; i++)                                     
        if ((lfn[i] != ' ') && (lfn[i] != '.'))                       
            break;                                                    
                                                                      
    if (i == lfn_len)                                                 
ffc1d41c:	41 be fe 50 	beq-    cr7,ffc1d26c <msdos_long_to_short+0x94><== NOT EXECUTED
    }                                                                 
                                                                      
#if MSDOS_NAME_TYPE_PRINT                                             
    printf ("MSDOS_NAME_TYPE: SHORT[1]\n");                           
#endif                                                                
    return MSDOS_NAME_SHORT;                                          
ffc1d420:	3b e0 00 01 	li      r31,1                                  <== NOT EXECUTED
ffc1d424:	4b ff ff 14 	b       ffc1d338 <msdos_long_to_short+0x160>   <== NOT EXECUTED
                                                                      

ffc11830 <msdos_mknod>: msdos_node_type_t type = 0; /* * Figure out what type of msdos node this is. */ if (S_ISDIR(mode))
ffc11830:	54 c9 04 26 	rlwinm  r9,r6,0,16,19                          
ffc11834:	2f 89 40 00 	cmpwi   cr7,r9,16384                           
    const char *name,                                                 
    size_t namelen,                                                   
    mode_t mode,                                                      
    dev_t dev                                                         
)                                                                     
{                                                                     
ffc11838:	7c c7 33 78 	mr      r7,r6                                  
ffc1183c:	7c 8a 23 78 	mr      r10,r4                                 
ffc11840:	7c a6 2b 78 	mr      r6,r5                                  
    msdos_node_type_t    type = 0;                                    
                                                                      
    /*                                                                
     *  Figure out what type of msdos node this is.                   
     */                                                               
    if (S_ISDIR(mode))                                                
ffc11844:	41 9e 00 24 	beq-    cr7,ffc11868 <msdos_mknod+0x38>        
    {                                                                 
       type = MSDOS_DIRECTORY;                                        
    }                                                                 
    else if (S_ISREG(mode))                                           
ffc11848:	39 00 00 00 	li      r8,0                                   
ffc1184c:	61 08 80 00 	ori     r8,r8,32768                            
ffc11850:	7f 89 40 00 	cmpw    cr7,r9,r8                              
    {                                                                 
        type = MSDOS_REGULAR_FILE;                                    
ffc11854:	38 80 00 04 	li      r4,4                                   
     */                                                               
    if (S_ISDIR(mode))                                                
    {                                                                 
       type = MSDOS_DIRECTORY;                                        
    }                                                                 
    else if (S_ISREG(mode))                                           
ffc11858:	40 9e 00 20 	bne-    cr7,ffc11878 <msdos_mknod+0x48>        <== NEVER TAKEN
    }                                                                 
    else                                                              
        rtems_set_errno_and_return_minus_one(EINVAL);                 
                                                                      
    /* Create an MSDOS node */                                        
    rc = msdos_creat_node(parentloc, type, name, namelen, mode, NULL);
ffc1185c:	7d 45 53 78 	mr      r5,r10                                 
ffc11860:	39 00 00 00 	li      r8,0                                   
ffc11864:	48 00 b3 40 	b       ffc1cba4 <msdos_creat_node>            
    /*                                                                
     *  Figure out what type of msdos node this is.                   
     */                                                               
    if (S_ISDIR(mode))                                                
    {                                                                 
       type = MSDOS_DIRECTORY;                                        
ffc11868:	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);
ffc1186c:	7d 45 53 78 	mr      r5,r10                                 
ffc11870:	39 00 00 00 	li      r8,0                                   
ffc11874:	48 00 b3 30 	b       ffc1cba4 <msdos_creat_node>            
    const char *name,                                                 
    size_t namelen,                                                   
    mode_t mode,                                                      
    dev_t dev                                                         
)                                                                     
{                                                                     
ffc11878:	94 21 ff f8 	stwu    r1,-8(r1)                              <== NOT EXECUTED
ffc1187c:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc11880:	90 01 00 0c 	stw     r0,12(r1)                              <== NOT EXECUTED
    else if (S_ISREG(mode))                                           
    {                                                                 
        type = MSDOS_REGULAR_FILE;                                    
    }                                                                 
    else                                                              
        rtems_set_errno_and_return_minus_one(EINVAL);                 
ffc11884:	48 00 fe 19 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc11888:	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;                                                        
}                                                                     
ffc1188c:	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);                 
ffc11890:	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;                                                        
}                                                                     
ffc11894:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc11898:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc1189c:	38 21 00 08 	addi    r1,r1,8                                <== NOT EXECUTED
ffc118a0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc118b0 <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 ) {
ffc118b0:	94 21 ff f0 	stwu    r1,-16(r1)                             <== NOT EXECUTED
ffc118b4:	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,                             
ffc118b8:	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                                                
)                                                                     
{                                                                     
ffc118bc:	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,                             
ffc118c0:	7c c5 33 78 	mr      r5,r6                                  <== NOT EXECUTED
ffc118c4:	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                                                
)                                                                     
{                                                                     
ffc118c8:	93 c1 00 08 	stw     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,                             
ffc118cc:	38 e0 00 00 	li      r7,0                                   <== NOT EXECUTED
ffc118d0:	60 e7 80 00 	ori     r7,r7,32768                            <== NOT EXECUTED
    const char *new_name,                                             
    size_t new_namelen                                                
)                                                                     
{                                                                     
    int                rc = RC_OK;                                    
    fat_file_fd_t     *old_fat_fd  = old_loc->node_access;            
ffc118d4:	83 c4 00 08 	lwz     r30,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_namelen                                                
)                                                                     
{                                                                     
ffc118d8:	93 e1 00 0c 	stw     r31,12(r1)                             <== NOT EXECUTED
ffc118dc:	7c 9f 23 78 	mr      r31,r4                                 <== NOT EXECUTED
                                                                      
    /*                                                                
     * create new directory entry as "hard link", copying relevant info from
     * existing file                                                  
     */                                                               
    rc = msdos_creat_node(new_parent_loc,                             
ffc118e0:	7f c8 f3 78 	mr      r8,r30                                 <== NOT EXECUTED
ffc118e4:	38 80 00 02 	li      r4,2                                   <== NOT EXECUTED
ffc118e8:	48 00 b2 bd 	bl      ffc1cba4 <msdos_creat_node>            <== NOT EXECUTED
                          MSDOS_HARD_LINK,new_name,new_namelen,S_IFREG,
                          old_fat_fd);                                
    if (rc != RC_OK)                                                  
ffc118ec:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc118f0:	41 9e 00 1c 	beq-    cr7,ffc1190c <msdos_rename+0x5c>       <== NOT EXECUTED
    rc = msdos_set_first_char4file_name(old_loc->mt_entry,            
                                        &old_fat_fd->dir_pos,         
                                        MSDOS_THIS_DIR_ENTRY_EMPTY);  
                                                                      
    return rc;                                                        
}                                                                     
ffc118f4:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
ffc118f8:	83 c1 00 08 	lwz     r30,8(r1)                              <== NOT EXECUTED
ffc118fc:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc11900:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc11904:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc11908:	4e 80 00 20 	blr                                            <== NOT EXECUTED
ffc1190c:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * mark file removed                                              
     */                                                               
    rc = msdos_set_first_char4file_name(old_loc->mt_entry,            
ffc11910:	38 9e 00 20 	addi    r4,r30,32                              <== NOT EXECUTED
ffc11914:	80 7f 00 14 	lwz     r3,20(r31)                             <== NOT EXECUTED
ffc11918:	38 a0 00 e5 	li      r5,229                                 <== NOT EXECUTED
                                        &old_fat_fd->dir_pos,         
                                        MSDOS_THIS_DIR_ENTRY_EMPTY);  
                                                                      
    return rc;                                                        
}                                                                     
ffc1191c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc11920:	83 c1 00 08 	lwz     r30,8(r1)                              <== NOT EXECUTED
ffc11924:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc11928:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * mark file removed                                              
     */                                                               
    rc = msdos_set_first_char4file_name(old_loc->mt_entry,            
ffc1192c:	48 00 bd fc 	b       ffc1d728 <msdos_set_first_char4file_name><== NOT EXECUTED
                                                                      

ffc11930 <msdos_rmnod>: #include "msdos.h" int msdos_rmnod(const rtems_filesystem_location_info_t *parent_pathloc, const rtems_filesystem_location_info_t *pathloc) {
ffc11930:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc11934:	7c 08 02 a6 	mflr    r0                                     
ffc11938:	90 01 00 2c 	stw     r0,44(r1)                              
ffc1193c:	93 e1 00 24 	stw     r31,36(r1)                             
    int                rc = RC_OK;                                    
    msdos_fs_info_t   *fs_info = pathloc->mt_entry->fs_info;          
    fat_file_fd_t     *fat_fd = pathloc->node_access;                 
ffc11940:	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;          
ffc11944:	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)                     
ffc11948:	81 3f 00 10 	lwz     r9,16(r31)                             
#include "msdos.h"                                                    
                                                                      
int                                                                   
msdos_rmnod(const rtems_filesystem_location_info_t *parent_pathloc,   
            const rtems_filesystem_location_info_t *pathloc)          
{                                                                     
ffc1194c:	93 81 00 18 	stw     r28,24(r1)                             
    int                rc = RC_OK;                                    
    msdos_fs_info_t   *fs_info = pathloc->mt_entry->fs_info;          
    fat_file_fd_t     *fat_fd = pathloc->node_access;                 
                                                                      
    if (fat_fd->fat_file_type == MSDOS_DIRECTORY)                     
ffc11950:	2f 89 00 00 	cmpwi   cr7,r9,0                               
#include "msdos.h"                                                    
                                                                      
int                                                                   
msdos_rmnod(const rtems_filesystem_location_info_t *parent_pathloc,   
            const rtems_filesystem_location_info_t *pathloc)          
{                                                                     
ffc11954:	93 c1 00 20 	stw     r30,32(r1)                             
ffc11958:	7c 9e 23 78 	mr      r30,r4                                 
ffc1195c:	93 a1 00 1c 	stw     r29,28(r1)                             
    int                rc = RC_OK;                                    
    msdos_fs_info_t   *fs_info = pathloc->mt_entry->fs_info;          
ffc11960:	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)                     
ffc11964:	40 9e 00 6c 	bne-    cr7,ffc119d0 <msdos_rmnod+0xa0>        
    {                                                                 
        bool is_empty = false;                                        
ffc11968:	7c 25 0b 78 	mr      r5,r1                                  
ffc1196c:	9d 25 00 08 	stbu    r9,8(r5)                               
                                                                      
        /*                                                            
         * You cannot remove a node that still has children           
         */                                                           
        rc = msdos_dir_is_empty(pathloc->mt_entry, fat_fd, &is_empty);
ffc11970:	7f e4 fb 78 	mr      r4,r31                                 
ffc11974:	48 00 bf 85 	bl      ffc1d8f8 <msdos_dir_is_empty>          
        if (rc != RC_OK)                                              
ffc11978:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc1197c:	40 82 00 2c 	bne-    ffc119a8 <msdos_rmnod+0x78>            <== NEVER TAKEN
        {                                                             
            return rc;                                                
        }                                                             
                                                                      
        if (!is_empty)                                                
ffc11980:	89 21 00 08 	lbz     r9,8(r1)                               
ffc11984:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc11988:	41 9e 00 8c 	beq-    cr7,ffc11a14 <msdos_rmnod+0xe4>        
                                                                      
        /*                                                            
         * We deny attempts to delete open directory (if directory is current
         * directory we assume it is open one)                        
         */                                                           
        if (fat_fd->links_num > 1)                                    
ffc1198c:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc11990:	2b 89 00 01 	cmplwi  cr7,r9,1                               
ffc11994:	40 9d 00 38 	ble-    cr7,ffc119cc <msdos_rmnod+0x9c>        <== ALWAYS TAKEN
        {                                                             
            rtems_set_errno_and_return_minus_one(EBUSY);              
ffc11998:	48 00 fd 05 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc1199c:	39 20 00 10 	li      r9,16                                  <== NOT EXECUTED
ffc119a0:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc119a4:	3b a0 ff ff 	li      r29,-1                                 <== NOT EXECUTED
    }                                                                 
                                                                      
    fat_file_mark_removed(&fs_info->fat, fat_fd);                     
                                                                      
    return rc;                                                        
}                                                                     
ffc119a8:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc119ac:	7f a3 eb 78 	mr      r3,r29                                 
ffc119b0:	83 81 00 18 	lwz     r28,24(r1)                             
ffc119b4:	7c 08 03 a6 	mtlr    r0                                     
ffc119b8:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc119bc:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc119c0:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc119c4:	38 21 00 28 	addi    r1,r1,40                               
ffc119c8:	4e 80 00 20 	blr                                            
ffc119cc:	80 7e 00 14 	lwz     r3,20(r30)                             
         * not used - mount() not implemenetd yet.                    
         */                                                           
    }                                                                 
                                                                      
    /* mark file removed */                                           
    rc = msdos_set_first_char4file_name(pathloc->mt_entry, &fat_fd->dir_pos,
ffc119d0:	38 9f 00 20 	addi    r4,r31,32                              
ffc119d4:	38 a0 00 e5 	li      r5,229                                 
ffc119d8:	48 00 bd 51 	bl      ffc1d728 <msdos_set_first_char4file_name>
                                        MSDOS_THIS_DIR_ENTRY_EMPTY);  
    if (rc != RC_OK)                                                  
ffc119dc:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc119e0:	40 82 ff c8 	bne+    ffc119a8 <msdos_rmnod+0x78>            <== NEVER TAKEN
    {                                                                 
        return rc;                                                    
    }                                                                 
                                                                      
    fat_file_mark_removed(&fs_info->fat, fat_fd);                     
ffc119e4:	7f 83 e3 78 	mr      r3,r28                                 
ffc119e8:	7f e4 fb 78 	mr      r4,r31                                 
ffc119ec:	48 00 53 b9 	bl      ffc16da4 <fat_file_mark_removed>       
                                                                      
    return rc;                                                        
}                                                                     
ffc119f0:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc119f4:	7f a3 eb 78 	mr      r3,r29                                 
ffc119f8:	83 81 00 18 	lwz     r28,24(r1)                             
ffc119fc:	7c 08 03 a6 	mtlr    r0                                     
ffc11a00:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc11a04:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc11a08:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc11a0c:	38 21 00 28 	addi    r1,r1,40                               
ffc11a10:	4e 80 00 20 	blr                                            
            return rc;                                                
        }                                                             
                                                                      
        if (!is_empty)                                                
        {                                                             
            rtems_set_errno_and_return_minus_one(ENOTEMPTY);          
ffc11a14:	48 00 fc 89 	bl      ffc2169c <__errno>                     
ffc11a18:	39 20 00 5a 	li      r9,90                                  
ffc11a1c:	91 23 00 00 	stw     r9,0(r3)                               
ffc11a20:	3b a0 ff ff 	li      r29,-1                                 
ffc11a24:	4b ff ff 84 	b       ffc119a8 <msdos_rmnod+0x78>            
                                                                      

ffc1d428 <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 ) {
ffc1d428:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc1d42c:	7c 08 02 a6 	mflr    r0                                     
ffc1d430:	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);             
ffc1d434:	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                      
    )                                                                 
{                                                                     
ffc1d438:	93 e1 00 2c 	stw     r31,44(r1)                             
    ssize_t          ret1 = 0, ret2 = 0, ret3 = 0;                    
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
ffc1d43c:	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);             
ffc1d440:	80 64 00 40 	lwz     r3,64(r4)                              
int                                                                   
msdos_set_dir_wrt_time_and_date(                                      
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
ffc1d444:	93 c1 00 28 	stw     r30,40(r1)                             
ffc1d448:	7c 9e 23 78 	mr      r30,r4                                 
    uint16_t         time_val;                                        
    uint16_t         date;                                            
    uint32_t         sec = 0;                                         
    uint32_t         byte = 0;                                        
                                                                      
    msdos_date_unix2dos(fat_fd->mtime, &date, &time_val);             
ffc1d44c:	38 81 00 08 	addi    r4,r1,8                                
int                                                                   
msdos_set_dir_wrt_time_and_date(                                      
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
ffc1d450:	93 61 00 1c 	stw     r27,28(r1)                             
ffc1d454:	93 81 00 20 	stw     r28,32(r1)                             
ffc1d458:	93 a1 00 24 	stw     r29,36(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);             
ffc1d45c:	48 00 2f e1 	bl      ffc2043c <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);
ffc1d460:	81 3e 00 20 	lwz     r9,32(r30)                             
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)) )
ffc1d464:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1d468:	40 9e 00 10 	bne-    cr7,ffc1d478 <msdos_set_dir_wrt_time_and_date+0x50>
ffc1d46c:	89 5f 00 0e 	lbz     r10,14(r31)                            
ffc1d470:	71 48 00 03 	andi.   r8,r10,3                               
ffc1d474:	40 82 00 ec 	bne-    ffc1d560 <msdos_set_dir_wrt_time_and_date+0x138><== ALWAYS TAKEN
        return fs_info->vol.rdir_loc;                                 
                                                                      
    return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +        
ffc1d478:	89 1f 00 05 	lbz     r8,5(r31)                              
ffc1d47c:	3b a9 ff fe 	addi    r29,r9,-2                              
ffc1d480:	81 5f 00 34 	lwz     r10,52(r31)                            
ffc1d484:	7f bd 40 30 	slw     r29,r29,r8                             
ffc1d488:	7f bd 52 14 	add     r29,r29,r10                            
    sec += (fat_fd->dir_pos.sname.ofs >> fs_info->fat.vol.sec_log2);  
ffc1d48c:	81 5e 00 24 	lwz     r10,36(r30)                            
    /* 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,
ffc1d490:	38 c0 00 02 	li      r6,2                                   
     * (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);    
ffc1d494:	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,
ffc1d498:	38 e1 00 0a 	addi    r7,r1,10                               
    /*                                                                
     * 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);  
ffc1d49c:	89 1f 00 02 	lbz     r8,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,
ffc1d4a0:	7f e3 fb 78 	mr      r3,r31                                 
    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);                                     
ffc1d4a4:	a1 21 00 0a 	lhz     r9,10(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 points to start of 32bytes structure */                   
    byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);    
ffc1d4a8:	3b de ff ff 	addi    r30,r30,-1                             
    /*                                                                
     * 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);  
ffc1d4ac:	7d 48 44 30 	srw     r8,r10,r8                              
ffc1d4b0:	7f bd 42 14 	add     r29,r29,r8                             
    /* byte points to start of 32bytes structure */                   
    byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);    
ffc1d4b4:	7f de 50 38 	and     r30,r30,r10                            
                                                                      
    time_val = CT_LE_W(time_val);                                     
ffc1d4b8:	55 2a 40 2e 	rlwinm  r10,r9,8,0,23                          
ffc1d4bc:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc1d4c0:	7d 49 4b 78 	or      r9,r10,r9                              
    ret1 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WTIME_OFFSET,
ffc1d4c4:	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);                                     
ffc1d4c8:	b1 21 00 0a 	sth     r9,10(r1)                              
    ret1 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WTIME_OFFSET,
ffc1d4cc:	38 be 00 16 	addi    r5,r30,22                              
ffc1d4d0:	4b ff 9e 5d 	bl      ffc1732c <fat_sector_write>            
                            2, (char *)(&time_val));                  
    date = CT_LE_W(date);                                             
ffc1d4d4:	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,
ffc1d4d8:	7c 7c 1b 78 	mr      r28,r3                                 
                            2, (char *)(&time_val));                  
    date = CT_LE_W(date);                                             
ffc1d4dc:	55 2a 40 2e 	rlwinm  r10,r9,8,0,23                          
ffc1d4e0:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc1d4e4:	7d 49 4b 78 	or      r9,r10,r9                              
    ret2 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WDATE_OFFSET,
ffc1d4e8:	38 be 00 18 	addi    r5,r30,24                              
    byte = fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1);    
                                                                      
    time_val = CT_LE_W(time_val);                                     
    ret1 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WTIME_OFFSET,
                            2, (char *)(&time_val));                  
    date = CT_LE_W(date);                                             
ffc1d4ec:	b1 21 00 08 	sth     r9,8(r1)                               
    ret2 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_WDATE_OFFSET,
ffc1d4f0:	38 c0 00 02 	li      r6,2                                   
ffc1d4f4:	38 e1 00 08 	addi    r7,r1,8                                
ffc1d4f8:	7f a4 eb 78 	mr      r4,r29                                 
ffc1d4fc:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d500:	4b ff 9e 2d 	bl      ffc1732c <fat_sector_write>            
                            2, (char *)(&date));                      
    ret3 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_ADATE_OFFSET,
ffc1d504:	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,
ffc1d508:	7c 7b 1b 78 	mr      r27,r3                                 
                            2, (char *)(&date));                      
    ret3 = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_ADATE_OFFSET,
ffc1d50c:	38 be 00 12 	addi    r5,r30,18                              
ffc1d510:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d514:	38 c0 00 02 	li      r6,2                                   
ffc1d518:	38 e1 00 08 	addi    r7,r1,8                                
ffc1d51c:	4b ff 9e 11 	bl      ffc1732c <fat_sector_write>            
                            2, (char *)(&date));                      
                                                                      
    if ( (ret1 < 0) || (ret2 < 0) || (ret3 < 0) )                     
ffc1d520:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc1d524:	41 9c 00 44 	blt-    cr7,ffc1d568 <msdos_set_dir_wrt_time_and_date+0x140><== NEVER TAKEN
ffc1d528:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc1d52c:	41 9c 00 3c 	blt-    cr7,ffc1d568 <msdos_set_dir_wrt_time_and_date+0x140><== NEVER TAKEN
ffc1d530:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1d534:	41 9c 00 34 	blt-    cr7,ffc1d568 <msdos_set_dir_wrt_time_and_date+0x140><== NEVER TAKEN
        return -1;                                                    
                                                                      
    return RC_OK;                                                     
ffc1d538:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc1d53c:	80 01 00 34 	lwz     r0,52(r1)                              
ffc1d540:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc1d544:	7c 08 03 a6 	mtlr    r0                                     
ffc1d548:	83 81 00 20 	lwz     r28,32(r1)                             
ffc1d54c:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc1d550:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc1d554:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc1d558:	38 21 00 30 	addi    r1,r1,48                               
ffc1d55c:	4e 80 00 20 	blr                                            
    const fat_fs_info_t *fs_info,                                     
    uint32_t             cln                                          
    )                                                                 
{                                                                     
    if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
        return fs_info->vol.rdir_loc;                                 
ffc1d560:	83 bf 00 20 	lwz     r29,32(r31)                            
ffc1d564:	4b ff ff 28 	b       ffc1d48c <msdos_set_dir_wrt_time_and_date+0x64>
                            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) )                     
        return -1;                                                    
ffc1d568:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc1d56c:	4b ff ff d0 	b       ffc1d53c <msdos_set_dir_wrt_time_and_date+0x114><== NOT EXECUTED
                                                                      

ffc1d688 <msdos_set_file_size>: int msdos_set_file_size( rtems_filesystem_mount_table_entry_t *mt_entry, fat_file_fd_t *fat_fd ) {
ffc1d688:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc1d68c:	7c 08 02 a6 	mflr    r0                                     
ffc1d690:	7c 89 23 78 	mr      r9,r4                                  
ffc1d694:	90 01 00 1c 	stw     r0,28(r1)                              
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
    uint32_t         le_new_length = 0;                               
    uint32_t         sec = 0;                                         
    uint32_t         byte = 0;                                        
                                                                      
    sec = fat_cluster_num_to_sector_num(&fs_info->fat, fat_fd->dir_pos.sname.cln);
ffc1d698:	81 44 00 20 	lwz     r10,32(r4)                             
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
    ssize_t          ret = 0;                                         
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
ffc1d69c:	80 63 00 08 	lwz     r3,8(r3)                               
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)) )
ffc1d6a0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1d6a4:	40 9e 00 10 	bne-    cr7,ffc1d6b4 <msdos_set_file_size+0x2c>
ffc1d6a8:	89 03 00 0e 	lbz     r8,14(r3)                              
ffc1d6ac:	71 07 00 03 	andi.   r7,r8,3                                
ffc1d6b0:	40 82 00 70 	bne-    ffc1d720 <msdos_set_file_size+0x98>    <== ALWAYS TAKEN
        return fs_info->vol.rdir_loc;                                 
                                                                      
    return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +        
ffc1d6b4:	88 e3 00 05 	lbz     r7,5(r3)                               
ffc1d6b8:	38 8a ff fe 	addi    r4,r10,-2                              
ffc1d6bc:	81 03 00 34 	lwz     r8,52(r3)                              
ffc1d6c0:	7c 84 38 30 	slw     r4,r4,r7                               
ffc1d6c4:	7c 84 42 14 	add     r4,r4,r8                               
    uint32_t         le_new_length = 0;                               
    uint32_t         sec = 0;                                         
    uint32_t         byte = 0;                                        
                                                                      
    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);  
ffc1d6c8:	81 49 00 24 	lwz     r10,36(r9)                             
ffc1d6cc:	88 e3 00 02 	lbz     r7,2(r3)                               
    byte = (fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));  
ffc1d6d0:	a1 03 00 00 	lhz     r8,0(r3)                               
    uint32_t         le_new_length = 0;                               
    uint32_t         sec = 0;                                         
    uint32_t         byte = 0;                                        
                                                                      
    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);  
ffc1d6d4:	7d 47 3c 30 	srw     r7,r10,r7                              
    byte = (fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));  
ffc1d6d8:	39 08 ff ff 	addi    r8,r8,-1                               
ffc1d6dc:	7d 05 50 38 	and     r5,r8,r10                              
ffc1d6e0:	81 09 00 18 	lwz     r8,24(r9)                              
    uint32_t         le_new_length = 0;                               
    uint32_t         sec = 0;                                         
    uint32_t         byte = 0;                                        
                                                                      
    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);  
ffc1d6e4:	7c 84 3a 14 	add     r4,r4,r7                               
ffc1d6e8:	51 09 46 3e 	rlwimi  r9,r8,8,24,31                          
ffc1d6ec:	51 09 c4 2e 	rlwimi  r9,r8,24,16,23                         
ffc1d6f0:	51 09 42 1e 	rlwimi  r9,r8,8,8,15                           
ffc1d6f4:	51 09 c0 0e 	rlwimi  r9,r8,24,0,7                           
    byte = (fat_fd->dir_pos.sname.ofs & (fs_info->fat.vol.bps - 1));  
                                                                      
    le_new_length = CT_LE_L((fat_fd->fat_file_size));                 
ffc1d6f8:	7c 27 0b 78 	mr      r7,r1                                  
ffc1d6fc:	95 27 00 08 	stwu    r9,8(r7)                               
    ret = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_SIZE_OFFSET, 4,
ffc1d700:	38 a5 00 1c 	addi    r5,r5,28                               
ffc1d704:	38 c0 00 04 	li      r6,4                                   
ffc1d708:	4b ff 9c 25 	bl      ffc1732c <fat_sector_write>            
                           (char *)(&le_new_length));                 
    if ( ret < 0 )                                                    
        return -1;                                                    
                                                                      
    return RC_OK;                                                     
}                                                                     
ffc1d70c:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc1d710:	7c 63 fe 70 	srawi   r3,r3,31                               
ffc1d714:	7c 08 03 a6 	mtlr    r0                                     
ffc1d718:	38 21 00 18 	addi    r1,r1,24                               
ffc1d71c:	4e 80 00 20 	blr                                            
    const fat_fs_info_t *fs_info,                                     
    uint32_t             cln                                          
    )                                                                 
{                                                                     
    if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
        return fs_info->vol.rdir_loc;                                 
ffc1d720:	80 83 00 20 	lwz     r4,32(r3)                              
ffc1d724:	4b ff ff a4 	b       ffc1d6c8 <msdos_set_file_size+0x40>    
                                                                      

ffc1d728 <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 ) {
ffc1d728:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc1d72c:	7c 08 02 a6 	mflr    r0                                     
ffc1d730:	90 01 00 34 	stw     r0,52(r1)                              
ffc1d734:	93 e1 00 2c 	stw     r31,44(r1)                             
    ssize_t          ret;                                             
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
ffc1d738:	83 e3 00 08 	lwz     r31,8(r3)                              
msdos_set_first_char4file_name(                                       
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    fat_dir_pos_t                        *dir_pos,                    
    unsigned char                         fchar                       
    )                                                                 
{                                                                     
ffc1d73c:	93 c1 00 28 	stw     r30,40(r1)                             
    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) &&                      
ffc1d740:	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;                          
    fat_pos_t        end = dir_pos->sname;                            
ffc1d744:	83 c4 00 00 	lwz     r30,0(r4)                              
    )                                                                 
{                                                                     
    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;                          
ffc1d748:	81 44 00 0c 	lwz     r10,12(r4)                             
    fat_pos_t        end = dir_pos->sname;                            
                                                                      
    if ((end.cln == fs_info->fat.vol.rdir_cl) &&                      
ffc1d74c:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
    )                                                                 
{                                                                     
    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;                          
ffc1d750:	81 24 00 08 	lwz     r9,8(r4)                               
msdos_set_first_char4file_name(                                       
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    fat_dir_pos_t                        *dir_pos,                    
    unsigned char                         fchar                       
    )                                                                 
{                                                                     
ffc1d754:	93 81 00 20 	stw     r28,32(r1)                             
ffc1d758:	93 a1 00 24 	stw     r29,36(r1)                             
ffc1d75c:	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;                          
ffc1d760:	91 21 00 08 	stw     r9,8(r1)                               
ffc1d764:	91 41 00 0c 	stw     r10,12(r1)                             
    fat_pos_t        end = dir_pos->sname;                            
ffc1d768:	83 84 00 04 	lwz     r28,4(r4)                              
                                                                      
    if ((end.cln == fs_info->fat.vol.rdir_cl) &&                      
ffc1d76c:	41 9e 01 5c 	beq-    cr7,ffc1d8c8 <msdos_set_first_char4file_name+0x1a0><== ALWAYS TAKEN
        (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))            
      dir_block_size = fs_info->fat.vol.rdir_size;                    
    else                                                              
      dir_block_size = fs_info->fat.vol.bpc;                          
                                                                      
    if (dir_pos->lname.cln == FAT_FILE_SHORT_NAME)                    
ffc1d770:	81 24 00 08 	lwz     r9,8(r4)                               <== NOT EXECUTED
                                                                      
    if ((end.cln == fs_info->fat.vol.rdir_cl) &&                      
        (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))            
      dir_block_size = fs_info->fat.vol.rdir_size;                    
    else                                                              
      dir_block_size = fs_info->fat.vol.bpc;                          
ffc1d774:	a3 bf 00 06 	lhz     r29,6(r31)                             <== NOT EXECUTED
                                                                      
    if (dir_pos->lname.cln == FAT_FILE_SHORT_NAME)                    
ffc1d778:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              <== NOT EXECUTED
ffc1d77c:	41 9e 01 68 	beq-    cr7,ffc1d8e4 <msdos_set_first_char4file_name+0x1bc><== NOT EXECUTED
ffc1d780:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc1d784:	89 5f 00 02 	lbz     r10,2(r31)                             
ffc1d788:	a0 bf 00 00 	lhz     r5,0(r31)                              
ffc1d78c:	80 81 00 08 	lwz     r4,8(r1)                               
ffc1d790:	48 00 00 64 	b       ffc1d7f4 <msdos_set_first_char4file_name+0xcc>
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)) )
ffc1d794:	89 1f 00 0e 	lbz     r8,14(r31)                             
ffc1d798:	71 0b 00 03 	andi.   r11,r8,3                               
ffc1d79c:	41 82 00 64 	beq-    ffc1d800 <msdos_set_first_char4file_name+0xd8><== NEVER TAKEN
        return fs_info->vol.rdir_loc;                                 
ffc1d7a0:	80 9f 00 20 	lwz     r4,32(r31)                             
     * 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));      
ffc1d7a4:	7d 2a 54 30 	srw     r10,r9,r10                             
      uint32_t byte = (start.ofs & (fs_info->fat.vol.bps - 1));       
ffc1d7a8:	38 a5 ff ff 	addi    r5,r5,-1                               
                                                                      
      ret = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_NAME_OFFSET,
ffc1d7ac:	7d 25 28 38 	and     r5,r9,r5                               
ffc1d7b0:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d7b4:	7c 84 52 14 	add     r4,r4,r10                              
ffc1d7b8:	38 c0 00 01 	li      r6,1                                   
ffc1d7bc:	38 e1 00 18 	addi    r7,r1,24                               
ffc1d7c0:	4b ff 9b 6d 	bl      ffc1732c <fat_sector_write>            
                             1, &fchar);                              
      if (ret < 0)                                                    
ffc1d7c4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1d7c8:	41 9c 00 70 	blt-    cr7,ffc1d838 <msdos_set_first_char4file_name+0x110><== NEVER TAKEN
        return -1;                                                    
                                                                      
      if ((start.cln == end.cln) && (start.ofs == end.ofs))           
ffc1d7cc:	80 81 00 08 	lwz     r4,8(r1)                               
ffc1d7d0:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc1d7d4:	7f 84 f0 00 	cmpw    cr7,r4,r30                             
ffc1d7d8:	41 9e 00 84 	beq-    cr7,ffc1d85c <msdos_set_first_char4file_name+0x134><== ALWAYS TAKEN
        break;                                                        
                                                                      
      start.ofs += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;                 
ffc1d7dc:	39 29 00 20 	addi    r9,r9,32                               
      if (start.ofs >= dir_block_size)                                
ffc1d7e0:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
        return -1;                                                    
                                                                      
      if ((start.cln == end.cln) && (start.ofs == end.ofs))           
        break;                                                        
                                                                      
      start.ofs += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;                 
ffc1d7e4:	91 21 00 0c 	stw     r9,12(r1)                              
      if (start.ofs >= dir_block_size)                                
ffc1d7e8:	40 9d 00 a0 	ble-    cr7,ffc1d888 <msdos_set_first_char4file_name+0x160><== NEVER TAKEN
ffc1d7ec:	89 5f 00 02 	lbz     r10,2(r31)                             
ffc1d7f0:	a0 bf 00 00 	lhz     r5,0(r31)                              
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)) )
ffc1d7f4:	2f 84 00 00 	cmpwi   cr7,r4,0                               
        return fs_info->vol.rdir_loc;                                 
                                                                      
    return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +        
ffc1d7f8:	38 84 ff fe 	addi    r4,r4,-2                               
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)) )
ffc1d7fc:	41 be ff 98 	beq-    cr7,ffc1d794 <msdos_set_first_char4file_name+0x6c><== ALWAYS TAKEN
        return fs_info->vol.rdir_loc;                                 
                                                                      
    return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +        
ffc1d800:	88 ff 00 05 	lbz     r7,5(r31)                              <== NOT EXECUTED
     * 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));      
ffc1d804:	7d 2a 54 30 	srw     r10,r9,r10                             <== NOT EXECUTED
ffc1d808:	81 1f 00 34 	lwz     r8,52(r31)                             <== NOT EXECUTED
      uint32_t byte = (start.ofs & (fs_info->fat.vol.bps - 1));       
ffc1d80c:	38 a5 ff ff 	addi    r5,r5,-1                               <== NOT EXECUTED
ffc1d810:	7c 84 38 30 	slw     r4,r4,r7                               <== NOT EXECUTED
ffc1d814:	7c 84 42 14 	add     r4,r4,r8                               <== NOT EXECUTED
                                                                      
      ret = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_NAME_OFFSET,
ffc1d818:	7d 25 28 38 	and     r5,r9,r5                               <== NOT EXECUTED
ffc1d81c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1d820:	7c 84 52 14 	add     r4,r4,r10                              <== NOT EXECUTED
ffc1d824:	38 c0 00 01 	li      r6,1                                   <== NOT EXECUTED
ffc1d828:	38 e1 00 18 	addi    r7,r1,24                               <== NOT EXECUTED
ffc1d82c:	4b ff 9b 01 	bl      ffc1732c <fat_sector_write>            <== NOT EXECUTED
                             1, &fchar);                              
      if (ret < 0)                                                    
ffc1d830:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc1d834:	40 9c ff 98 	bge+    cr7,ffc1d7cc <msdos_set_first_char4file_name+0xa4><== NOT EXECUTED
        return -1;                                                    
ffc1d838:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
        start.ofs = 0;                                                
      }                                                               
    }                                                                 
                                                                      
    return  RC_OK;                                                    
}                                                                     
ffc1d83c:	80 01 00 34 	lwz     r0,52(r1)                              <== NOT EXECUTED
ffc1d840:	83 81 00 20 	lwz     r28,32(r1)                             <== NOT EXECUTED
ffc1d844:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc1d848:	83 a1 00 24 	lwz     r29,36(r1)                             <== NOT EXECUTED
ffc1d84c:	83 c1 00 28 	lwz     r30,40(r1)                             <== NOT EXECUTED
ffc1d850:	83 e1 00 2c 	lwz     r31,44(r1)                             <== NOT EXECUTED
ffc1d854:	38 21 00 30 	addi    r1,r1,48                               <== NOT EXECUTED
ffc1d858:	4e 80 00 20 	blr                                            <== NOT EXECUTED
      ret = fat_sector_write(&fs_info->fat, sec, byte + MSDOS_FILE_NAME_OFFSET,
                             1, &fchar);                              
      if (ret < 0)                                                    
        return -1;                                                    
                                                                      
      if ((start.cln == end.cln) && (start.ofs == end.ofs))           
ffc1d85c:	7f 9c 48 00 	cmpw    cr7,r28,r9                             
ffc1d860:	40 9e ff 7c 	bne+    cr7,ffc1d7dc <msdos_set_first_char4file_name+0xb4>
        start.ofs = 0;                                                
      }                                                               
    }                                                                 
                                                                      
    return  RC_OK;                                                    
}                                                                     
ffc1d864:	80 01 00 34 	lwz     r0,52(r1)                              
          return rc;                                                  
        start.ofs = 0;                                                
      }                                                               
    }                                                                 
                                                                      
    return  RC_OK;                                                    
ffc1d868:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc1d86c:	83 81 00 20 	lwz     r28,32(r1)                             
ffc1d870:	7c 08 03 a6 	mtlr    r0                                     
ffc1d874:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc1d878:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc1d87c:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc1d880:	38 21 00 30 	addi    r1,r1,48                               
ffc1d884:	4e 80 00 20 	blr                                            
                                                                      
      start.ofs += MSDOS_DIRECTORY_ENTRY_STRUCT_SIZE;                 
      if (start.ofs >= dir_block_size)                                
      {                                                               
        int rc;                                                       
        if ((end.cln == fs_info->fat.vol.rdir_cl) &&                  
ffc1d888:	81 3f 00 3c 	lwz     r9,60(r31)                             <== NOT EXECUTED
ffc1d88c:	7f 89 f0 00 	cmpw    cr7,r9,r30                             <== NOT EXECUTED
ffc1d890:	40 9e 00 10 	bne-    cr7,ffc1d8a0 <msdos_set_first_char4file_name+0x178><== NOT EXECUTED
            (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))        
ffc1d894:	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) &&                  
ffc1d898:	71 27 00 03 	andi.   r7,r9,3                                <== NOT EXECUTED
ffc1d89c:	40 a2 ff c8 	bne-    ffc1d864 <msdos_set_first_char4file_name+0x13c><== NOT EXECUTED
            (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))        
          break;                                                      
        rc = fat_get_fat_cluster(&fs_info->fat, start.cln, &start.cln);
ffc1d8a0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1d8a4:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc1d8a8:	48 00 16 5d 	bl      ffc1ef04 <fat_get_fat_cluster>         <== NOT EXECUTED
        if ( rc != RC_OK )                                            
ffc1d8ac:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc1d8b0:	40 a2 ff 8c 	bne-    ffc1d83c <msdos_set_first_char4file_name+0x114><== NOT EXECUTED
          return rc;                                                  
        start.ofs = 0;                                                
ffc1d8b4:	90 61 00 0c 	stw     r3,12(r1)                              <== NOT EXECUTED
ffc1d8b8:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc1d8bc:	89 5f 00 02 	lbz     r10,2(r31)                             <== NOT EXECUTED
ffc1d8c0:	a0 bf 00 00 	lhz     r5,0(r31)                              <== NOT EXECUTED
ffc1d8c4:	4b ff fe c8 	b       ffc1d78c <msdos_set_first_char4file_name+0x64><== NOT EXECUTED
    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) &&                      
        (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))            
ffc1d8c8:	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) &&                      
ffc1d8cc:	71 2a 00 03 	andi.   r10,r9,3                               
ffc1d8d0:	41 a2 fe a0 	beq-    ffc1d770 <msdos_set_first_char4file_name+0x48><== NEVER TAKEN
        (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))            
      dir_block_size = fs_info->fat.vol.rdir_size;                    
    else                                                              
      dir_block_size = fs_info->fat.vol.bpc;                          
                                                                      
    if (dir_pos->lname.cln == FAT_FILE_SHORT_NAME)                    
ffc1d8d4:	81 24 00 08 	lwz     r9,8(r4)                               
    fat_pos_t        start = dir_pos->lname;                          
    fat_pos_t        end = dir_pos->sname;                            
                                                                      
    if ((end.cln == fs_info->fat.vol.rdir_cl) &&                      
        (fs_info->fat.vol.type & (FAT_FAT12 | FAT_FAT16)))            
      dir_block_size = fs_info->fat.vol.rdir_size;                    
ffc1d8d8:	83 bf 00 2c 	lwz     r29,44(r31)                            
    else                                                              
      dir_block_size = fs_info->fat.vol.bpc;                          
                                                                      
    if (dir_pos->lname.cln == FAT_FILE_SHORT_NAME)                    
ffc1d8dc:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc1d8e0:	40 9e fe a0 	bne+    cr7,ffc1d780 <msdos_set_first_char4file_name+0x58>
      start = dir_pos->sname;                                         
ffc1d8e4:	81 24 00 00 	lwz     r9,0(r4)                               
ffc1d8e8:	81 44 00 04 	lwz     r10,4(r4)                              
ffc1d8ec:	91 21 00 08 	stw     r9,8(r1)                               
ffc1d8f0:	91 41 00 0c 	stw     r10,12(r1)                             
ffc1d8f4:	4b ff fe 8c 	b       ffc1d780 <msdos_set_first_char4file_name+0x58>
                                                                      

ffc1d570 <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 ) {
ffc1d570:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc1d574:	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;                                   
    uint16_t         le_cl_hi = 0;                                    
ffc1d578:	39 40 00 00 	li      r10,0                                  
int                                                                   
msdos_set_first_cluster_num(                                          
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
ffc1d57c:	90 01 00 34 	stw     r0,52(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);
ffc1d580:	81 24 00 20 	lwz     r9,32(r4)                              
int                                                                   
msdos_set_first_cluster_num(                                          
    rtems_filesystem_mount_table_entry_t *mt_entry,                   
    fat_file_fd_t                        *fat_fd                      
    )                                                                 
{                                                                     
ffc1d584:	93 c1 00 28 	stw     r30,40(r1)                             
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)) )
ffc1d588:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1d58c:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc1d590:	93 61 00 1c 	stw     r27,28(r1)                             
ffc1d594:	93 81 00 20 	stw     r28,32(r1)                             
ffc1d598:	93 a1 00 24 	stw     r29,36(r1)                             
    ssize_t          ret1 = 0, ret2 = 0;                              
    msdos_fs_info_t *fs_info = mt_entry->fs_info;                     
ffc1d59c:	83 e3 00 08 	lwz     r31,8(r3)                              
    uint32_t         new_cln = fat_fd->cln;                           
ffc1d5a0:	83 c4 00 1c 	lwz     r30,28(r4)                             
    uint16_t         le_cl_low = 0;                                   
    uint16_t         le_cl_hi = 0;                                    
ffc1d5a4:	b1 41 00 08 	sth     r10,8(r1)                              
ffc1d5a8:	40 9e 00 10 	bne-    cr7,ffc1d5b8 <msdos_set_first_cluster_num+0x48>
ffc1d5ac:	89 5f 00 0e 	lbz     r10,14(r31)                            
ffc1d5b0:	71 48 00 03 	andi.   r8,r10,3                               
ffc1d5b4:	40 82 00 c4 	bne-    ffc1d678 <msdos_set_first_cluster_num+0x108><== ALWAYS TAKEN
        return fs_info->vol.rdir_loc;                                 
                                                                      
    return (((cln - FAT_RSRVD_CLN) << fs_info->vol.spc_log2) +        
ffc1d5b8:	89 1f 00 05 	lbz     r8,5(r31)                              
ffc1d5bc:	3b 89 ff fe 	addi    r28,r9,-2                              
ffc1d5c0:	81 5f 00 34 	lwz     r10,52(r31)                            
ffc1d5c4:	7f 9c 40 30 	slw     r28,r28,r8                             
ffc1d5c8:	7f 9c 52 14 	add     r28,r28,r10                            
    /*                                                                
     * 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);  
ffc1d5cc:	81 24 00 24 	lwz     r9,36(r4)                              
    /* 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));          
ffc1d5d0:	57 c6 42 2e 	rlwinm  r6,r30,8,8,23                          
     * (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);    
ffc1d5d4:	a3 bf 00 00 	lhz     r29,0(r31)                             
                                                                      
    le_cl_low = CT_LE_W((uint16_t  )(new_cln & 0x0000FFFF));          
ffc1d5d8:	57 c8 c6 3e 	rlwinm  r8,r30,24,24,31                        
    /*                                                                
     * 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);  
ffc1d5dc:	89 5f 00 02 	lbz     r10,2(r31)                             
    /* 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));          
ffc1d5e0:	7c c8 43 78 	or      r8,r6,r8                               
ffc1d5e4:	7c 27 0b 78 	mr      r7,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);  
ffc1d5e8:	7d 2a 54 30 	srw     r10,r9,r10                             
    /* 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));          
ffc1d5ec:	b5 07 00 0a 	sthu    r8,10(r7)                              
     * (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);    
ffc1d5f0:	3b bd ff ff 	addi    r29,r29,-1                             
ffc1d5f4:	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);  
ffc1d5f8:	7f 9c 52 14 	add     r28,r28,r10                            
    /* 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,                       
ffc1d5fc:	7f 84 e3 78 	mr      r4,r28                                 
ffc1d600:	38 bd 00 1a 	addi    r5,r29,26                              
ffc1d604:	38 c0 00 02 	li      r6,2                                   
                            byte + MSDOS_FIRST_CLUSTER_LOW_OFFSET, 2, 
                            (char *)(&le_cl_low));                    
    le_cl_hi = CT_LE_W((uint16_t  )((new_cln & 0xFFFF0000) >> 16));   
ffc1d608:	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,                       
ffc1d60c:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d610:	4b ff 9d 1d 	bl      ffc1732c <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));   
ffc1d614:	57 c9 40 2e 	rlwinm  r9,r30,8,0,23                          
ffc1d618:	57 de c2 3e 	rlwinm  r30,r30,24,8,31                        
ffc1d61c:	7c 27 0b 78 	mr      r7,r1                                  
ffc1d620:	7d 3e f3 78 	or      r30,r9,r30                             
ffc1d624:	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,                       
ffc1d628:	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,                       
ffc1d62c:	7f 84 e3 78 	mr      r4,r28                                 
ffc1d630:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d634:	38 bd 00 14 	addi    r5,r29,20                              
ffc1d638:	38 c0 00 02 	li      r6,2                                   
ffc1d63c:	4b ff 9c f1 	bl      ffc1732c <fat_sector_write>            
                            byte + MSDOS_FIRST_CLUSTER_HI_OFFSET, 2,  
                            (char *)(&le_cl_hi));                     
    if ( (ret1 < 0) || (ret2 < 0) )                                   
ffc1d640:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc1d644:	41 9c 00 3c 	blt-    cr7,ffc1d680 <msdos_set_first_cluster_num+0x110><== NEVER TAKEN
ffc1d648:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1d64c:	41 9c 00 34 	blt-    cr7,ffc1d680 <msdos_set_first_cluster_num+0x110><== NEVER TAKEN
        return -1;                                                    
                                                                      
    return RC_OK;                                                     
ffc1d650:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc1d654:	80 01 00 34 	lwz     r0,52(r1)                              
ffc1d658:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc1d65c:	7c 08 03 a6 	mtlr    r0                                     
ffc1d660:	83 81 00 20 	lwz     r28,32(r1)                             
ffc1d664:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc1d668:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc1d66c:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc1d670:	38 21 00 30 	addi    r1,r1,48                               
ffc1d674:	4e 80 00 20 	blr                                            
    const fat_fs_info_t *fs_info,                                     
    uint32_t             cln                                          
    )                                                                 
{                                                                     
    if ( (cln == 0) && (fs_info->vol.type & (FAT_FAT12 | FAT_FAT16)) )
        return fs_info->vol.rdir_loc;                                 
ffc1d678:	83 9f 00 20 	lwz     r28,32(r31)                            
ffc1d67c:	4b ff ff 50 	b       ffc1d5cc <msdos_set_first_cluster_num+0x5c>
    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) )                                   
        return -1;                                                    
ffc1d680:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc1d684:	4b ff ff d0 	b       ffc1d654 <msdos_set_first_cluster_num+0xe4><== NOT EXECUTED
                                                                      

ffc10530 <msdos_set_sectors_per_cluster_from_request.isra.1>: msdos_format_param_t *fmt_params ) { int ret_val = -1; uint32_t onebit; if ( rqdata != NULL && rqdata->sectors_per_cluster > 0 ) {
ffc10530:	2c 03 00 00 	cmpwi   r3,0                                   
ffc10534:	41 82 00 10 	beq-    ffc10544 <msdos_set_sectors_per_cluster_from_request.isra.1+0x14>
ffc10538:	81 43 00 08 	lwz     r10,8(r3)                              
ffc1053c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc10540:	40 9e 00 50 	bne-    cr7,ffc10590 <msdos_set_sectors_per_cluster_from_request.isra.1+0x60>
ffc10544:	81 45 00 00 	lwz     r10,0(r5)                              
   */                                                                 
  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 ) {                
ffc10548:	38 e0 00 08 	li      r7,8                                   
ffc1054c:	7c e9 03 a6 	mtctr   r7                                     
ffc10550:	39 00 00 00 	li      r8,0                                   
                                                                      
  return fattype;                                                     
}                                                                     
                                                                      
static int                                                            
msdos_set_sectors_per_cluster_from_request(                           
ffc10554:	39 20 00 80 	li      r9,128                                 
   */                                                                 
  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 ) {                
ffc10558:	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 ) {                
ffc1055c:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc10560:	41 9c 00 20 	blt-    cr7,ffc10580 <msdos_set_sectors_per_cluster_from_request.isra.1+0x50>
      fmt_params->sectors_per_cluster = onebit;                       
ffc10564:	91 25 00 00 	stw     r9,0(r5)                               
      if (   fmt_params->sectors_per_cluster                          
          <= 32768L / fmt_params->bytes_per_sector ) {                
ffc10568:	81 44 00 00 	lwz     r10,0(r4)                              
ffc1056c:	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                          
ffc10570:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc10574:	41 9c 00 0c 	blt-    cr7,ffc10580 <msdos_set_sectors_per_cluster_from_request.isra.1+0x50><== NEVER TAKEN
          <= 32768L / fmt_params->bytes_per_sector ) {                
        /* value is small enough so this value is ok */               
        onebit = 1;                                                   
        ret_val = 0;                                                  
ffc10578:	38 60 00 00 	li      r3,0                                   
  if (ret_val != 0) {                                                 
    errno = EINVAL;                                                   
  }                                                                   
                                                                      
  return ret_val;                                                     
}                                                                     
ffc1057c:	4e 80 00 20 	blr                                            
   * 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 ) {           
ffc10580:	55 29 f8 7e 	rlwinm  r9,r9,31,1,31                          
ffc10584:	42 40 00 14 	bdz-    ffc10598 <msdos_set_sectors_per_cluster_from_request.isra.1+0x68>
ffc10588:	81 45 00 00 	lwz     r10,0(r5)                              
ffc1058c:	4b ff ff d0 	b       ffc1055c <msdos_set_sectors_per_cluster_from_request.isra.1+0x2c>
{                                                                     
  int      ret_val = -1;                                              
  uint32_t onebit;                                                    
                                                                      
  if ( rqdata != NULL && rqdata->sectors_per_cluster > 0 ) {          
    fmt_params->sectors_per_cluster = rqdata->sectors_per_cluster;    
ffc10590:	91 45 00 00 	stw     r10,0(r5)                              
ffc10594:	4b ff ff b4 	b       ffc10548 <msdos_set_sectors_per_cluster_from_request.isra.1+0x18>
                                                                      
  return fattype;                                                     
}                                                                     
                                                                      
static int                                                            
msdos_set_sectors_per_cluster_from_request(                           
ffc10598:	94 21 ff f8 	stwu    r1,-8(r1)                              <== NOT EXECUTED
ffc1059c:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc105a0:	90 01 00 0c 	stw     r0,12(r1)                              <== NOT EXECUTED
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if (ret_val != 0) {                                                 
    errno = EINVAL;                                                   
ffc105a4:	48 01 10 f9 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc105a8:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return ret_val;                                                     
}                                                                     
ffc105ac:	80 01 00 0c 	lwz     r0,12(r1)                              <== NOT EXECUTED
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if (ret_val != 0) {                                                 
    errno = EINVAL;                                                   
ffc105b0:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc105b4:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return ret_val;                                                     
}                                                                     
ffc105b8:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc105bc:	38 21 00 08 	addi    r1,r1,8                                <== NOT EXECUTED
ffc105c0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc1ed94 <msdos_sync>: return MSDOS_NAME_NOT_FOUND_ERR; } int msdos_sync(rtems_libio_t *iop) {
ffc1ed94:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1ed98:	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,        
ffc1ed9c:	38 80 00 00 	li      r4,0                                   
    return MSDOS_NAME_NOT_FOUND_ERR;                                  
}                                                                     
                                                                      
int                                                                   
msdos_sync(rtems_libio_t *iop)                                        
{                                                                     
ffc1eda0:	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,        
ffc1eda4:	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;     
ffc1eda8:	81 23 00 28 	lwz     r9,40(r3)                              
    return MSDOS_NAME_NOT_FOUND_ERR;                                  
}                                                                     
                                                                      
int                                                                   
msdos_sync(rtems_libio_t *iop)                                        
{                                                                     
ffc1edac:	93 e1 00 0c 	stw     r31,12(r1)                             
    int                rc = RC_OK;                                    
    rtems_status_code  sc = RTEMS_SUCCESSFUL;                         
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
ffc1edb0:	83 e9 00 08 	lwz     r31,8(r9)                              
    return MSDOS_NAME_NOT_FOUND_ERR;                                  
}                                                                     
                                                                      
int                                                                   
msdos_sync(rtems_libio_t *iop)                                        
{                                                                     
ffc1edb4:	93 c1 00 08 	stw     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;     
                                                                      
    sc = rtems_semaphore_obtain(fs_info->vol_sema, RTEMS_WAIT,        
ffc1edb8:	80 7f 00 9c 	lwz     r3,156(r31)                            
ffc1edbc:	4b fe ce 19 	bl      ffc0bbd4 <rtems_semaphore_obtain>      
                                MSDOS_VOLUME_SEMAPHORE_TIMEOUT);      
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc1edc0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1edc4:	40 9e 00 34 	bne-    cr7,ffc1edf8 <msdos_sync+0x64>         <== NEVER TAKEN
        rtems_set_errno_and_return_minus_one(EIO);                    
                                                                      
    rc = fat_sync(&fs_info->fat);                                     
ffc1edc8:	7f e3 fb 78 	mr      r3,r31                                 
ffc1edcc:	4b ff 92 c9 	bl      ffc18094 <fat_sync>                    
ffc1edd0:	7c 7e 1b 78 	mr      r30,r3                                 
                                                                      
    rtems_semaphore_release(fs_info->vol_sema);                       
ffc1edd4:	80 7f 00 9c 	lwz     r3,156(r31)                            
ffc1edd8:	4b fe cf 9d 	bl      ffc0bd74 <rtems_semaphore_release>     
    return rc;                                                        
}                                                                     
ffc1eddc:	80 01 00 14 	lwz     r0,20(r1)                              
ffc1ede0:	7f c3 f3 78 	mr      r3,r30                                 
ffc1ede4:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc1ede8:	7c 08 03 a6 	mtlr    r0                                     
ffc1edec:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc1edf0:	38 21 00 10 	addi    r1,r1,16                               
ffc1edf4:	4e 80 00 20 	blr                                            
    msdos_fs_info_t   *fs_info = iop->pathinfo.mt_entry->fs_info;     
                                                                      
    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);                    
ffc1edf8:	48 00 28 a5 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc1edfc:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc1ee00:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1ee04:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc1ee08:	4b ff ff d4 	b       ffc1eddc <msdos_sync+0x48>             <== NOT EXECUTED
                                                                      

ffc1157c <msdos_unlock>: rtems_fatal_error_occurred(0xdeadbeef); } } void msdos_unlock(const rtems_filesystem_mount_table_entry_t *mt_entry) {
ffc1157c:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc11580:	7c 08 02 a6 	mflr    r0                                     
ffc11584:	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);  
ffc11588:	81 23 00 08 	lwz     r9,8(r3)                               
ffc1158c:	80 69 00 9c 	lwz     r3,156(r9)                             
ffc11590:	4b ff a7 e5 	bl      ffc0bd74 <rtems_semaphore_release>     
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc11594:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11598:	40 9e 00 14 	bne-    cr7,ffc115ac <msdos_unlock+0x30>       <== NEVER TAKEN
    rtems_fatal_error_occurred(0xdeadbeef);                           
  }                                                                   
}                                                                     
ffc1159c:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc115a0:	38 21 00 08 	addi    r1,r1,8                                
ffc115a4:	7c 08 03 a6 	mtlr    r0                                     
ffc115a8:	4e 80 00 20 	blr                                            
void msdos_unlock(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_release(fs_info->vol_sema);  
  if (sc != RTEMS_SUCCESSFUL) {                                       
    rtems_fatal_error_occurred(0xdeadbeef);                           
ffc115ac:	3c 60 de ad 	lis     r3,-8531                               <== NOT EXECUTED
ffc115b0:	60 63 be ef 	ori     r3,r3,48879                            <== NOT EXECUTED
ffc115b4:	4b ff af 85 	bl      ffc0c538 <rtems_fatal_error_occurred>  <== NOT EXECUTED
                                                                      

ffc058c8 <newlib_delete_hook>: void newlib_delete_hook( rtems_tcb *current_task, rtems_tcb *deleted_task ) {
ffc058c8:	7d 80 00 26 	mfcr    r12                                    
                                                                      
  /*                                                                  
   * The reentrancy structure was allocated by newlib using malloc()  
   */                                                                 
                                                                      
  if (current_task == deleted_task) {                                 
ffc058cc:	7e 03 20 00 	cmpw    cr4,r3,r4                              
                                                                      
void newlib_delete_hook(                                              
  rtems_tcb *current_task,                                            
  rtems_tcb *deleted_task                                             
)                                                                     
{                                                                     
ffc058d0:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc058d4:	7c 08 02 a6 	mflr    r0                                     
ffc058d8:	93 c1 00 10 	stw     r30,16(r1)                             
ffc058dc:	7c 9e 23 78 	mr      r30,r4                                 
ffc058e0:	90 01 00 1c 	stw     r0,28(r1)                              
ffc058e4:	93 e1 00 14 	stw     r31,20(r1)                             
ffc058e8:	91 81 00 0c 	stw     r12,12(r1)                             
                                                                      
  /*                                                                  
   * The reentrancy structure was allocated by newlib using malloc()  
   */                                                                 
                                                                      
  if (current_task == deleted_task) {                                 
ffc058ec:	41 92 00 8c 	beq-    cr4,ffc05978 <newlib_delete_hook+0xb0> 
    ptr = _REENT;                                                     
  } else {                                                            
    ptr = deleted_task->libc_reent;                                   
ffc058f0:	83 e4 01 48 	lwz     r31,328(r4)                            
  }                                                                   
                                                                      
  if (ptr && ptr != _global_impure_ptr) {                             
ffc058f4:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc058f8:	41 9e 00 2c 	beq-    cr7,ffc05924 <newlib_delete_hook+0x5c> <== NEVER TAKEN
ffc058fc:	3d 20 00 00 	lis     r9,0                                   
ffc05900:	81 29 27 e4 	lwz     r9,10212(r9)                           
ffc05904:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
ffc05908:	41 9e 00 1c 	beq-    cr7,ffc05924 <newlib_delete_hook+0x5c> 
    _reclaim_reent(ptr);                                              
*/                                                                    
    /*                                                                
     *  Just in case there are some buffers lying around.             
     */                                                               
    _fwalk(ptr, newlib_free_buffers);                                 
ffc0590c:	3c 80 ff c0 	lis     r4,-64                                 
ffc05910:	7f e3 fb 78 	mr      r3,r31                                 
ffc05914:	38 84 56 5c 	addi    r4,r4,22108                            
ffc05918:	48 00 e2 05 	bl      ffc13b1c <_fwalk>                      
#if REENT_MALLOCED                                                    
    free(ptr);                                                        
#else                                                                 
    _Workspace_Free(ptr);                                             
ffc0591c:	7f e3 fb 78 	mr      r3,r31                                 
ffc05920:	48 00 86 65 	bl      ffc0df84 <_Workspace_Free>             
#endif                                                                
  }                                                                   
                                                                      
  deleted_task->libc_reent = NULL;                                    
ffc05924:	39 20 00 00 	li      r9,0                                   
ffc05928:	91 3e 01 48 	stw     r9,328(r30)                            
                                                                      
  /*                                                                  
   * Require the switch back to another task to install its own       
   */                                                                 
                                                                      
  if ( current_task == deleted_task ) {                               
ffc0592c:	41 92 00 24 	beq-    cr4,ffc05950 <newlib_delete_hook+0x88> 
    _REENT = 0;                                                       
  }                                                                   
}                                                                     
ffc05930:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc05934:	81 81 00 0c 	lwz     r12,12(r1)                             
ffc05938:	7c 08 03 a6 	mtlr    r0                                     
ffc0593c:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc05940:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc05944:	7d 80 81 20 	mtcrf   8,r12                                  
ffc05948:	38 21 00 18 	addi    r1,r1,24                               
ffc0594c:	4e 80 00 20 	blr                                            
ffc05950:	80 01 00 1c 	lwz     r0,28(r1)                              
  /*                                                                  
   * Require the switch back to another task to install its own       
   */                                                                 
                                                                      
  if ( current_task == deleted_task ) {                               
    _REENT = 0;                                                       
ffc05954:	3d 40 00 00 	lis     r10,0                                  
  }                                                                   
}                                                                     
ffc05958:	81 81 00 0c 	lwz     r12,12(r1)                             
ffc0595c:	7c 08 03 a6 	mtlr    r0                                     
ffc05960:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc05964:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc05968:	7d 80 81 20 	mtcrf   8,r12                                  
  /*                                                                  
   * Require the switch back to another task to install its own       
   */                                                                 
                                                                      
  if ( current_task == deleted_task ) {                               
    _REENT = 0;                                                       
ffc0596c:	91 2a 27 e8 	stw     r9,10216(r10)                          
  }                                                                   
}                                                                     
ffc05970:	38 21 00 18 	addi    r1,r1,24                               
ffc05974:	4e 80 00 20 	blr                                            
  /*                                                                  
   * The reentrancy structure was allocated by newlib using malloc()  
   */                                                                 
                                                                      
  if (current_task == deleted_task) {                                 
    ptr = _REENT;                                                     
ffc05978:	3d 20 00 00 	lis     r9,0                                   
ffc0597c:	83 e9 27 e8 	lwz     r31,10216(r9)                          
ffc05980:	4b ff ff 74 	b       ffc058f4 <newlib_delete_hook+0x2c>     
                                                                      

ffc0565c <newlib_free_buffers>: * task. */ int newlib_free_buffers( FILE *fp ) {
ffc0565c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc05660:	7c 08 02 a6 	mflr    r0                                     
ffc05664:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc05668:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0566c:	90 01 00 14 	stw     r0,20(r1)                              
  switch ( fileno(fp) ) {                                             
ffc05670:	48 00 de f9 	bl      ffc13568 <fileno>                      
ffc05674:	2b 83 00 02 	cmplwi  cr7,r3,2                               
ffc05678:	40 9d 00 24 	ble-    cr7,ffc0569c <newlib_free_buffers+0x40><== ALWAYS TAKEN
        fp->_flags &= ~__SMBF;                                        
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
      }                                                               
      break;                                                          
    default:                                                          
     fclose(fp);                                                      
ffc0567c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc05680:	48 00 db 85 	bl      ffc13204 <fclose>                      <== NOT EXECUTED
  }                                                                   
  return 0;                                                           
}                                                                     
ffc05684:	80 01 00 14 	lwz     r0,20(r1)                              
ffc05688:	38 60 00 00 	li      r3,0                                   
ffc0568c:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc05690:	7c 08 03 a6 	mtlr    r0                                     
ffc05694:	38 21 00 10 	addi    r1,r1,16                               
ffc05698:	4e 80 00 20 	blr                                            
{                                                                     
  switch ( fileno(fp) ) {                                             
    case 0:                                                           
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
ffc0569c:	a1 3f 00 0c 	lhz     r9,12(r31)                             
ffc056a0:	55 29 06 30 	rlwinm  r9,r9,0,24,24                          
ffc056a4:	7d 2a 07 35 	extsh.  r10,r9                                 
ffc056a8:	41 82 ff dc 	beq+    ffc05684 <newlib_free_buffers+0x28>    <== ALWAYS TAKEN
        free( fp->_bf._base );                                        
ffc056ac:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc056b0:	4b ff f4 b9 	bl      ffc04b68 <free>                        <== NOT EXECUTED
      break;                                                          
    default:                                                          
     fclose(fp);                                                      
  }                                                                   
  return 0;                                                           
}                                                                     
ffc056b4:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
    case 0:                                                           
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
        free( fp->_bf._base );                                        
        fp->_flags &= ~__SMBF;                                        
ffc056b8:	a1 5f 00 0c 	lhz     r10,12(r31)                            <== NOT EXECUTED
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
ffc056bc:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
      break;                                                          
    default:                                                          
     fclose(fp);                                                      
  }                                                                   
  return 0;                                                           
}                                                                     
ffc056c0:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
        free( fp->_bf._base );                                        
        fp->_flags &= ~__SMBF;                                        
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
ffc056c4:	91 3f 00 00 	stw     r9,0(r31)                              <== NOT EXECUTED
    case 0:                                                           
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
        free( fp->_bf._base );                                        
        fp->_flags &= ~__SMBF;                                        
ffc056c8:	55 4a 06 6e 	rlwinm  r10,r10,0,25,23                        <== NOT EXECUTED
ffc056cc:	b1 5f 00 0c 	sth     r10,12(r31)                            <== NOT EXECUTED
      break;                                                          
    default:                                                          
     fclose(fp);                                                      
  }                                                                   
  return 0;                                                           
}                                                                     
ffc056d0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
    case 1:                                                           
    case 2:                                                           
      if (fp->_flags & __SMBF) {                                      
        free( fp->_bf._base );                                        
        fp->_flags &= ~__SMBF;                                        
        fp->_bf._base = fp->_p = (unsigned char *) NULL;              
ffc056d4:	91 3f 00 10 	stw     r9,16(r31)                             <== NOT EXECUTED
      break;                                                          
    default:                                                          
     fclose(fp);                                                      
  }                                                                   
  return 0;                                                           
}                                                                     
ffc056d8:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc056dc:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc056e0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc00ca0 <notify>: } void notify (s) char *s; {
ffc00ca0:	94 21 ff f8 	stwu    r1,-8(r1)                              <== NOT EXECUTED
ffc00ca4:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc00ca8:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
    printf ("%s test appears to be inconsistent...\n", s);            
ffc00cac:	3c 60 ff c2 	lis     r3,-62                                 <== NOT EXECUTED
}                                                                     
                                                                      
void                                                                  
notify (s)                                                            
     char   *s;                                                       
{                                                                     
ffc00cb0:	90 01 00 0c 	stw     r0,12(r1)                              <== NOT EXECUTED
    printf ("%s test appears to be inconsistent...\n", s);            
ffc00cb4:	38 63 58 10 	addi    r3,r3,22544                            <== NOT EXECUTED
ffc00cb8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc00cbc:	48 01 9f e9 	bl      ffc1aca4 <printf>                      <== NOT EXECUTED
    printf ("   PLEASE NOTIFY KARPINKSI!\n");                         
}                                                                     
ffc00cc0:	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");                         
ffc00cc4:	3c 60 ff c2 	lis     r3,-62                                 <== NOT EXECUTED
}                                                                     
ffc00cc8:	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");                         
ffc00ccc:	38 63 58 38 	addi    r3,r3,22584                            <== NOT EXECUTED
}                                                                     
ffc00cd0:	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");                         
ffc00cd4:	48 01 a1 4c 	b       ffc1ae20 <puts>                        <== NOT EXECUTED
                                                                      

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

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

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

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

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

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

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

ffc07be4 <oproc>: /* * Handle output processing */ static void oproc (unsigned char c, struct rtems_termios_tty *tty) {
ffc07be4:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc07be8:	7c 08 02 a6 	mflr    r0                                     
ffc07bec:	90 01 00 1c 	stw     r0,28(r1)                              
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
ffc07bf0:	81 24 00 34 	lwz     r9,52(r4)                              
/*                                                                    
 * Handle output processing                                           
 */                                                                   
static void                                                           
oproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
ffc07bf4:	93 e1 00 14 	stw     r31,20(r1)                             
ffc07bf8:	7c 9f 23 78 	mr      r31,r4                                 
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
ffc07bfc:	71 2a 00 01 	andi.   r10,r9,1                               
/*                                                                    
 * Handle output processing                                           
 */                                                                   
static void                                                           
oproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
ffc07c00:	98 61 00 08 	stb     r3,8(r1)                               
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
ffc07c04:	41 82 00 74 	beq-    ffc07c78 <oproc+0x94>                  <== NEVER TAKEN
    switch (c) {                                                      
ffc07c08:	2f 83 00 09 	cmpwi   cr7,r3,9                               
ffc07c0c:	41 9e 00 e8 	beq-    cr7,ffc07cf4 <oproc+0x110>             
ffc07c10:	2b 83 00 09 	cmplwi  cr7,r3,9                               
ffc07c14:	40 9d 00 88 	ble-    cr7,ffc07c9c <oproc+0xb8>              <== NEVER TAKEN
ffc07c18:	2f 83 00 0a 	cmpwi   cr7,r3,10                              
ffc07c1c:	41 9e 00 a0 	beq-    cr7,ffc07cbc <oproc+0xd8>              
ffc07c20:	2f 83 00 0d 	cmpwi   cr7,r3,13                              
ffc07c24:	41 9e 01 04 	beq-    cr7,ffc07d28 <oproc+0x144>             <== NEVER TAKEN
      if (tty->column > 0)                                            
        tty->column--;                                                
      break;                                                          
                                                                      
    default:                                                          
      if (tty->termios.c_oflag & OLCUC)                               
ffc07c28:	71 2a 00 02 	andi.   r10,r9,2                               
        c = toupper(c);                                               
ffc07c2c:	3d 20 00 00 	lis     r9,0                                   
ffc07c30:	81 29 27 e0 	lwz     r9,10208(r9)                           
      if (tty->column > 0)                                            
        tty->column--;                                                
      break;                                                          
                                                                      
    default:                                                          
      if (tty->termios.c_oflag & OLCUC)                               
ffc07c34:	41 82 00 24 	beq-    ffc07c58 <oproc+0x74>                  <== ALWAYS TAKEN
        c = toupper(c);                                               
ffc07c38:	7c 6a 1b 78 	mr      r10,r3                                 <== NOT EXECUTED
ffc07c3c:	7c 69 1a 14 	add     r3,r9,r3                               <== NOT EXECUTED
ffc07c40:	89 03 00 01 	lbz     r8,1(r3)                               <== NOT EXECUTED
ffc07c44:	55 08 07 be 	clrlwi  r8,r8,30                               <== NOT EXECUTED
ffc07c48:	2f 88 00 02 	cmpwi   cr7,r8,2                               <== NOT EXECUTED
ffc07c4c:	41 9e 01 1c 	beq-    cr7,ffc07d68 <oproc+0x184>             <== NOT EXECUTED
ffc07c50:	55 43 06 3e 	clrlwi  r3,r10,24                              <== NOT EXECUTED
ffc07c54:	98 61 00 08 	stb     r3,8(r1)                               <== NOT EXECUTED
      if (!iscntrl(c))                                                
ffc07c58:	7c 69 1a 14 	add     r3,r9,r3                               
ffc07c5c:	89 23 00 01 	lbz     r9,1(r3)                               
ffc07c60:	55 29 06 b4 	rlwinm  r9,r9,0,26,26                          
ffc07c64:	71 2a 00 ff 	andi.   r10,r9,255                             
ffc07c68:	40 82 00 10 	bne-    ffc07c78 <oproc+0x94>                  <== NEVER TAKEN
        tty->column++;                                                
ffc07c6c:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc07c70:	39 29 00 01 	addi    r9,r9,1                                
ffc07c74:	91 3f 00 28 	stw     r9,40(r31)                             
      break;                                                          
    }                                                                 
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
ffc07c78:	38 61 00 08 	addi    r3,r1,8                                
ffc07c7c:	38 80 00 01 	li      r4,1                                   
ffc07c80:	7f e5 fb 78 	mr      r5,r31                                 
ffc07c84:	4b ff fd b5 	bl      ffc07a38 <rtems_termios_puts>          
}                                                                     
ffc07c88:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc07c8c:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc07c90:	7c 08 03 a6 	mtlr    r0                                     
ffc07c94:	38 21 00 18 	addi    r1,r1,24                               
ffc07c98:	4e 80 00 20 	blr                                            
oproc (unsigned char c, struct rtems_termios_tty *tty)                
{                                                                     
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
    switch (c) {                                                      
ffc07c9c:	2f 83 00 08 	cmpwi   cr7,r3,8                               <== NOT EXECUTED
ffc07ca0:	40 9e ff 88 	bne+    cr7,ffc07c28 <oproc+0x44>              <== NOT EXECUTED
      }                                                               
      tty->column += i;                                               
      break;                                                          
                                                                      
    case '\b':                                                        
      if (tty->column > 0)                                            
ffc07ca4:	81 24 00 28 	lwz     r9,40(r4)                              <== NOT EXECUTED
ffc07ca8:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc07cac:	40 bd ff cc 	ble-    cr7,ffc07c78 <oproc+0x94>              <== NOT EXECUTED
        tty->column--;                                                
ffc07cb0:	39 29 ff ff 	addi    r9,r9,-1                               <== NOT EXECUTED
ffc07cb4:	91 24 00 28 	stw     r9,40(r4)                              <== NOT EXECUTED
ffc07cb8:	4b ff ff c0 	b       ffc07c78 <oproc+0x94>                  <== NOT EXECUTED
  int  i;                                                             
                                                                      
  if (tty->termios.c_oflag & OPOST) {                                 
    switch (c) {                                                      
    case '\n':                                                        
      if (tty->termios.c_oflag & ONLRET)                              
ffc07cbc:	71 2a 00 20 	andi.   r10,r9,32                              
ffc07cc0:	41 82 00 0c 	beq-    ffc07ccc <oproc+0xe8>                  <== ALWAYS TAKEN
        tty->column = 0;                                              
ffc07cc4:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
ffc07cc8:	91 44 00 28 	stw     r10,40(r4)                             <== NOT EXECUTED
      if (tty->termios.c_oflag & ONLCR) {                             
ffc07ccc:	71 2a 00 04 	andi.   r10,r9,4                               
ffc07cd0:	41 82 ff a8 	beq+    ffc07c78 <oproc+0x94>                  <== NEVER TAKEN
        rtems_termios_puts ("\r", 1, tty);                            
ffc07cd4:	3c 60 ff c2 	lis     r3,-62                                 
ffc07cd8:	38 63 fd 2c 	addi    r3,r3,-724                             
ffc07cdc:	38 80 00 01 	li      r4,1                                   
ffc07ce0:	7f e5 fb 78 	mr      r5,r31                                 
ffc07ce4:	4b ff fd 55 	bl      ffc07a38 <rtems_termios_puts>          
        tty->column = 0;                                              
ffc07ce8:	39 20 00 00 	li      r9,0                                   
ffc07cec:	91 3f 00 28 	stw     r9,40(r31)                             
ffc07cf0:	4b ff ff 88 	b       ffc07c78 <oproc+0x94>                  
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
ffc07cf4:	55 29 04 e8 	rlwinm  r9,r9,0,19,20                          
      }                                                               
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
ffc07cf8:	81 44 00 28 	lwz     r10,40(r4)                             
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
ffc07cfc:	2f 89 18 00 	cmpwi   cr7,r9,6144                            
      }                                                               
      tty->column = 0;                                                
      break;                                                          
                                                                      
    case '\t':                                                        
      i = 8 - (tty->column & 7);                                      
ffc07d00:	55 44 07 7e 	clrlwi  r4,r10,29                              
ffc07d04:	20 84 00 08 	subfic  r4,r4,8                                
      if ((tty->termios.c_oflag & TABDLY) == XTABS) {                 
        tty->column += i;                                             
ffc07d08:	7d 4a 22 14 	add     r10,r10,r4                             
ffc07d0c:	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) {                 
ffc07d10:	40 9e ff 68 	bne+    cr7,ffc07c78 <oproc+0x94>              <== NEVER TAKEN
        tty->column += i;                                             
        rtems_termios_puts ( "        ",  i, tty);                    
ffc07d14:	3c 60 ff c2 	lis     r3,-62                                 
ffc07d18:	38 63 fd 30 	addi    r3,r3,-720                             
ffc07d1c:	7f e5 fb 78 	mr      r5,r31                                 
ffc07d20:	4b ff fd 19 	bl      ffc07a38 <rtems_termios_puts>          
        return;                                                       
ffc07d24:	4b ff ff 64 	b       ffc07c88 <oproc+0xa4>                  
        tty->column = 0;                                              
      }                                                               
      break;                                                          
                                                                      
    case '\r':                                                        
      if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))       
ffc07d28:	71 2a 00 10 	andi.   r10,r9,16                              <== NOT EXECUTED
ffc07d2c:	41 82 00 10 	beq-    ffc07d3c <oproc+0x158>                 <== NOT EXECUTED
ffc07d30:	81 44 00 28 	lwz     r10,40(r4)                             <== NOT EXECUTED
ffc07d34:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
ffc07d38:	41 be ff 50 	beq-    cr7,ffc07c88 <oproc+0xa4>              <== NOT EXECUTED
        return;                                                       
      if (tty->termios.c_oflag & OCRNL) {                             
ffc07d3c:	71 2a 00 08 	andi.   r10,r9,8                               <== NOT EXECUTED
ffc07d40:	41 82 00 20 	beq-    ffc07d60 <oproc+0x17c>                 <== NOT EXECUTED
        c = '\n';                                                     
        if (tty->termios.c_oflag & ONLRET)                            
ffc07d44:	71 2a 00 20 	andi.   r10,r9,32                              <== NOT EXECUTED
                                                                      
    case '\r':                                                        
      if ((tty->termios.c_oflag & ONOCR) && (tty->column == 0))       
        return;                                                       
      if (tty->termios.c_oflag & OCRNL) {                             
        c = '\n';                                                     
ffc07d48:	39 40 00 0a 	li      r10,10                                 <== NOT EXECUTED
ffc07d4c:	99 41 00 08 	stb     r10,8(r1)                              <== NOT EXECUTED
        if (tty->termios.c_oflag & ONLRET)                            
ffc07d50:	41 a2 ff 28 	beq-    ffc07c78 <oproc+0x94>                  <== NOT EXECUTED
          tty->column = 0;                                            
ffc07d54:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc07d58:	91 3f 00 28 	stw     r9,40(r31)                             <== NOT EXECUTED
ffc07d5c:	4b ff ff 1c 	b       ffc07c78 <oproc+0x94>                  <== NOT EXECUTED
        break;                                                        
      }                                                               
      tty->column = 0;                                                
ffc07d60:	91 5f 00 28 	stw     r10,40(r31)                            <== NOT EXECUTED
      break;                                                          
ffc07d64:	4b ff ff 14 	b       ffc07c78 <oproc+0x94>                  <== NOT EXECUTED
        tty->column--;                                                
      break;                                                          
                                                                      
    default:                                                          
      if (tty->termios.c_oflag & OLCUC)                               
        c = toupper(c);                                               
ffc07d68:	39 4a ff e0 	addi    r10,r10,-32                            <== NOT EXECUTED
ffc07d6c:	4b ff fe e4 	b       ffc07c50 <oproc+0x6c>                  <== NOT EXECUTED
                                                                      

ffc066d8 <partition_free>: * RETURNS: * N/A */ static void partition_free(rtems_part_desc_t *part_desc) {
ffc066d8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc066dc:	7c 08 02 a6 	mflr    r0                                     
ffc066e0:	93 c1 00 08 	stw     r30,8(r1)                              
    int part_num;                                                     
                                                                      
    if (part_desc == NULL)                                            
ffc066e4:	7c 7e 1b 79 	mr.     r30,r3                                 
 * RETURNS:                                                           
 *      N/A                                                           
 */                                                                   
static void                                                           
partition_free(rtems_part_desc_t *part_desc)                          
{                                                                     
ffc066e8:	90 01 00 14 	stw     r0,20(r1)                              
ffc066ec:	93 e1 00 0c 	stw     r31,12(r1)                             
    int part_num;                                                     
                                                                      
    if (part_desc == NULL)                                            
ffc066f0:	41 82 00 6c 	beq-    ffc0675c <partition_free+0x84>         
        return;                                                       
                                                                      
    if (is_extended(part_desc->sys_type))                             
ffc066f4:	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));
ffc066f8:	2f 89 00 05 	cmpwi   cr7,r9,5                               
ffc066fc:	41 9e 00 28 	beq-    cr7,ffc06724 <partition_free+0x4c>     <== NEVER TAKEN
ffc06700:	2f 89 00 85 	cmpwi   cr7,r9,133                             
ffc06704:	41 9e 00 20 	beq-    cr7,ffc06724 <partition_free+0x4c>     <== NEVER TAKEN
            partition_free(part_desc->sub_part[part_num]);            
        }                                                             
    }                                                                 
                                                                      
    free(part_desc);                                                  
}                                                                     
ffc06708:	80 01 00 14 	lwz     r0,20(r1)                              
        {                                                             
            partition_free(part_desc->sub_part[part_num]);            
        }                                                             
    }                                                                 
                                                                      
    free(part_desc);                                                  
ffc0670c:	7f c3 f3 78 	mr      r3,r30                                 
}                                                                     
ffc06710:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc06714:	7c 08 03 a6 	mtlr    r0                                     
ffc06718:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0671c:	38 21 00 10 	addi    r1,r1,16                               
        {                                                             
            partition_free(part_desc->sub_part[part_num]);            
        }                                                             
    }                                                                 
                                                                      
    free(part_desc);                                                  
ffc06720:	48 00 12 b4 	b       ffc079d4 <free>                        
 *      true if partition type is extended, false otherwise           
 */                                                                   
static bool                                                           
is_extended(uint8_t type)                                             
{                                                                     
    return ((type == EXTENDED_PARTITION) || (type == LINUX_EXTENDED));
ffc06724:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
 *                                                                    
 * RETURNS:                                                           
 *      N/A                                                           
 */                                                                   
static void                                                           
partition_free(rtems_part_desc_t *part_desc)                          
ffc06728:	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]);            
ffc0672c:	80 69 00 18 	lwz     r3,24(r9)                              <== NOT EXECUTED
ffc06730:	4b ff ff a9 	bl      ffc066d8 <partition_free>              <== NOT EXECUTED
    if (part_desc == NULL)                                            
        return;                                                       
                                                                      
    if (is_extended(part_desc->sys_type))                             
    {                                                                 
        for (part_num = 0;                                            
ffc06734:	2f 9f 00 0c 	cmpwi   cr7,r31,12                             <== NOT EXECUTED
ffc06738:	3b ff 00 04 	addi    r31,r31,4                              <== NOT EXECUTED
ffc0673c:	40 9e ff ec 	bne+    cr7,ffc06728 <partition_free+0x50>     <== NOT EXECUTED
            partition_free(part_desc->sub_part[part_num]);            
        }                                                             
    }                                                                 
                                                                      
    free(part_desc);                                                  
}                                                                     
ffc06740:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
        {                                                             
            partition_free(part_desc->sub_part[part_num]);            
        }                                                             
    }                                                                 
                                                                      
    free(part_desc);                                                  
ffc06744:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
}                                                                     
ffc06748:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc0674c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc06750:	83 c1 00 08 	lwz     r30,8(r1)                              <== NOT EXECUTED
ffc06754:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
        {                                                             
            partition_free(part_desc->sub_part[part_num]);            
        }                                                             
    }                                                                 
                                                                      
    free(part_desc);                                                  
ffc06758:	48 00 12 7c 	b       ffc079d4 <free>                        <== NOT EXECUTED
}                                                                     
ffc0675c:	80 01 00 14 	lwz     r0,20(r1)                              
ffc06760:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc06764:	7c 08 03 a6 	mtlr    r0                                     
ffc06768:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0676c:	38 21 00 10 	addi    r1,r1,16                               
ffc06770:	4e 80 00 20 	blr                                            
                                                                      

ffc06bb4 <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) {
ffc06bb4:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc06bb8:	7c 08 02 a6 	mflr    r0                                     
ffc06bbc:	93 a1 00 6c 	stw     r29,108(r1)                            
ffc06bc0:	7c 9d 23 78 	mr      r29,r4                                 
    struct stat         dev_stat;                                     
    rtems_status_code   rc;                                           
    int                 fd;                                           
                                                                      
    fd = open(dev_name, O_RDONLY);                                    
ffc06bc4:	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)
{                                                                     
ffc06bc8:	93 c1 00 70 	stw     r30,112(r1)                            
ffc06bcc:	93 e1 00 74 	stw     r31,116(r1)                            
ffc06bd0:	7c 7f 1b 78 	mr      r31,r3                                 
ffc06bd4:	90 01 00 7c 	stw     r0,124(r1)                             
ffc06bd8:	93 21 00 5c 	stw     r25,92(r1)                             
ffc06bdc:	93 41 00 60 	stw     r26,96(r1)                             
ffc06be0:	93 61 00 64 	stw     r27,100(r1)                            
ffc06be4:	93 81 00 68 	stw     r28,104(r1)                            
    struct stat         dev_stat;                                     
    rtems_status_code   rc;                                           
    int                 fd;                                           
                                                                      
    fd = open(dev_name, O_RDONLY);                                    
ffc06be8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc06bec:	48 00 1f 6d 	bl      ffc08b58 <open>                        
    if (fd < 0)                                                       
ffc06bf0:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc06bf4:	40 80 00 38 	bge-    ffc06c2c <partition_table_get+0x78>    <== ALWAYS TAKEN
    rc = read_mbr(fd, disk_desc);                                     
                                                                      
    close(fd);                                                        
                                                                      
    return rc;                                                        
}                                                                     
ffc06bf8:	80 01 00 7c 	lwz     r0,124(r1)                             <== NOT EXECUTED
    int                 fd;                                           
                                                                      
    fd = open(dev_name, O_RDONLY);                                    
    if (fd < 0)                                                       
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
ffc06bfc:	3b e0 00 19 	li      r31,25                                 <== NOT EXECUTED
    rc = read_mbr(fd, disk_desc);                                     
                                                                      
    close(fd);                                                        
                                                                      
    return rc;                                                        
}                                                                     
ffc06c00:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc06c04:	83 21 00 5c 	lwz     r25,92(r1)                             <== NOT EXECUTED
ffc06c08:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc06c0c:	83 41 00 60 	lwz     r26,96(r1)                             <== NOT EXECUTED
ffc06c10:	83 61 00 64 	lwz     r27,100(r1)                            <== NOT EXECUTED
ffc06c14:	83 81 00 68 	lwz     r28,104(r1)                            <== NOT EXECUTED
ffc06c18:	83 a1 00 6c 	lwz     r29,108(r1)                            <== NOT EXECUTED
ffc06c1c:	83 c1 00 70 	lwz     r30,112(r1)                            <== NOT EXECUTED
ffc06c20:	83 e1 00 74 	lwz     r31,116(r1)                            <== NOT EXECUTED
ffc06c24:	38 21 00 78 	addi    r1,r1,120                              <== NOT EXECUTED
ffc06c28:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    if (fd < 0)                                                       
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    rc = fstat(fd, &dev_stat);                                        
ffc06c2c:	38 81 00 08 	addi    r4,r1,8                                
ffc06c30:	48 00 0e 91 	bl      ffc07ac0 <fstat>                       
    if (rc != RTEMS_SUCCESSFUL)                                       
ffc06c34:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06c38:	41 9e 00 40 	beq-    cr7,ffc06c78 <partition_table_get+0xc4><== ALWAYS TAKEN
    {                                                                 
        close(fd);                                                    
ffc06c3c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc06c40:	48 00 0c fd 	bl      ffc0793c <close>                       <== NOT EXECUTED
    rc = read_mbr(fd, disk_desc);                                     
                                                                      
    close(fd);                                                        
                                                                      
    return rc;                                                        
}                                                                     
ffc06c44:	80 01 00 7c 	lwz     r0,124(r1)                             <== NOT EXECUTED
                                                                      
    rc = fstat(fd, &dev_stat);                                        
    if (rc != RTEMS_SUCCESSFUL)                                       
    {                                                                 
        close(fd);                                                    
        return RTEMS_INTERNAL_ERROR;                                  
ffc06c48:	3b e0 00 19 	li      r31,25                                 <== NOT EXECUTED
    rc = read_mbr(fd, disk_desc);                                     
                                                                      
    close(fd);                                                        
                                                                      
    return rc;                                                        
}                                                                     
ffc06c4c:	83 21 00 5c 	lwz     r25,92(r1)                             <== NOT EXECUTED
ffc06c50:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc06c54:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc06c58:	83 41 00 60 	lwz     r26,96(r1)                             <== NOT EXECUTED
ffc06c5c:	83 61 00 64 	lwz     r27,100(r1)                            <== NOT EXECUTED
ffc06c60:	83 81 00 68 	lwz     r28,104(r1)                            <== NOT EXECUTED
ffc06c64:	83 a1 00 6c 	lwz     r29,108(r1)                            <== NOT EXECUTED
ffc06c68:	83 c1 00 70 	lwz     r30,112(r1)                            <== NOT EXECUTED
ffc06c6c:	83 e1 00 74 	lwz     r31,116(r1)                            <== NOT EXECUTED
ffc06c70:	38 21 00 78 	addi    r1,r1,120                              <== NOT EXECUTED
ffc06c74:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    {                                                                 
        close(fd);                                                    
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    strncpy (disk_desc->dev_name, dev_name, 15);                      
ffc06c78:	38 7d 00 08 	addi    r3,r29,8                               
ffc06c7c:	7f e4 fb 78 	mr      r4,r31                                 
ffc06c80:	38 a0 00 0f 	li      r5,15                                  
ffc06c84:	48 01 4d 45 	bl      ffc1b9c8 <strncpy>                     
    disk_desc->dev = dev_stat.st_rdev;                                
    disk_desc->sector_size = (dev_stat.st_blksize) ? dev_stat.st_blksize :
ffc06c88:	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;                                
ffc06c8c:	81 21 00 24 	lwz     r9,36(r1)                              
    disk_desc->sector_size = (dev_stat.st_blksize) ? dev_stat.st_blksize :
ffc06c90:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
        close(fd);                                                    
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    strncpy (disk_desc->dev_name, dev_name, 15);                      
    disk_desc->dev = dev_stat.st_rdev;                                
ffc06c94:	81 01 00 20 	lwz     r8,32(r1)                              
ffc06c98:	91 3d 00 04 	stw     r9,4(r29)                              
    disk_desc->sector_size = (dev_stat.st_blksize) ? dev_stat.st_blksize :
ffc06c9c:	39 20 02 00 	li      r9,512                                 
        close(fd);                                                    
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    strncpy (disk_desc->dev_name, dev_name, 15);                      
    disk_desc->dev = dev_stat.st_rdev;                                
ffc06ca0:	91 1d 00 00 	stw     r8,0(r29)                              
    disk_desc->sector_size = (dev_stat.st_blksize) ? dev_stat.st_blksize :
ffc06ca4:	41 9e 00 08 	beq-    cr7,ffc06cac <partition_table_get+0xf8><== ALWAYS TAKEN
ffc06ca8:	7d 49 53 78 	mr      r9,r10                                 <== NOT EXECUTED
ffc06cac:	91 3d 00 18 	stw     r9,24(r29)                             
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    off = sector_num * RTEMS_IDE_SECTOR_SIZE;                         
    new_off = lseek(fd, off, SEEK_SET);                               
ffc06cb0:	7f c3 f3 78 	mr      r3,r30                                 
 */                                                                   
static rtems_status_code                                              
read_mbr(int fd, rtems_disk_desc_t *disk_desc)                        
{                                                                     
    int                  part_num;                                    
    rtems_sector_data_t *sector = NULL;                               
ffc06cb4:	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);                               
ffc06cb8:	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;                               
ffc06cbc:	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);                               
ffc06cc0:	38 c0 00 00 	li      r6,0                                   
ffc06cc4:	38 e0 00 00 	li      r7,0                                   
ffc06cc8:	48 00 12 95 	bl      ffc07f5c <lseek>                       
    if (new_off != off) {                                             
        return RTEMS_IO_ERROR;                                        
ffc06ccc:	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) {                                             
ffc06cd0:	7c 69 23 79 	or.     r9,r3,r4                               
ffc06cd4:	41 82 00 4c 	beq-    ffc06d20 <partition_table_get+0x16c>   <== ALWAYS TAKEN
                                                                      
    /* get MBR sector */                                              
    rc = get_sector(fd, 0, §or);                                  
    if (rc != RTEMS_SUCCESSFUL)                                       
    {                                                                 
        if (sector)                                                   
ffc06cd8:	80 61 00 54 	lwz     r3,84(r1)                              <== NOT EXECUTED
ffc06cdc:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc06ce0:	41 9e 00 08 	beq-    cr7,ffc06ce8 <partition_table_get+0x134><== NOT EXECUTED
         part_num++)                                                  
    {                                                                 
        rc = data_to_part_desc(data, &part_desc);                     
        if (rc != RTEMS_SUCCESSFUL)                                   
        {                                                             
            free(sector);                                             
ffc06ce4:	48 00 0c f1 	bl      ffc079d4 <free>                        <== NOT EXECUTED
    disk_desc->sector_size = (dev_stat.st_blksize) ? dev_stat.st_blksize :
                                              RTEMS_IDE_SECTOR_SIZE;  
                                                                      
    rc = read_mbr(fd, disk_desc);                                     
                                                                      
    close(fd);                                                        
ffc06ce8:	7f c3 f3 78 	mr      r3,r30                                 
ffc06cec:	48 00 0c 51 	bl      ffc0793c <close>                       
                                                                      
    return rc;                                                        
}                                                                     
ffc06cf0:	80 01 00 7c 	lwz     r0,124(r1)                             
ffc06cf4:	7f e3 fb 78 	mr      r3,r31                                 
ffc06cf8:	83 21 00 5c 	lwz     r25,92(r1)                             
ffc06cfc:	7c 08 03 a6 	mtlr    r0                                     
ffc06d00:	83 41 00 60 	lwz     r26,96(r1)                             
ffc06d04:	83 61 00 64 	lwz     r27,100(r1)                            
ffc06d08:	83 81 00 68 	lwz     r28,104(r1)                            
ffc06d0c:	83 a1 00 6c 	lwz     r29,108(r1)                            
ffc06d10:	83 c1 00 70 	lwz     r30,112(r1)                            
ffc06d14:	83 e1 00 74 	lwz     r31,116(r1)                            
ffc06d18:	38 21 00 78 	addi    r1,r1,120                              
ffc06d1c:	4e 80 00 20 	blr                                            
ffc06d20:	7f c3 f3 78 	mr      r3,r30                                 
ffc06d24:	38 80 00 00 	li      r4,0                                   
ffc06d28:	38 a1 00 54 	addi    r5,r1,84                               
ffc06d2c:	4b ff fa 99 	bl      ffc067c4 <get_sector.part.0>           
    uint8_t             *data;                                        
    rtems_status_code    rc;                                          
                                                                      
    /* get MBR sector */                                              
    rc = get_sector(fd, 0, §or);                                  
    if (rc != RTEMS_SUCCESSFUL)                                       
ffc06d30:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc06d34:	40 a2 ff a4 	bne-    ffc06cd8 <partition_table_get+0x124>   <== NEVER TAKEN
            free(sector);                                             
        return rc;                                                    
    }                                                                 
                                                                      
    /* check if the partition table structure is MS-DOS style */      
    if (!msdos_signature_check(sector))                               
ffc06d38:	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) &&    
ffc06d3c:	89 23 02 02 	lbz     r9,514(r3)                             
ffc06d40:	2f 89 00 55 	cmpwi   cr7,r9,85                              
ffc06d44:	41 9e 00 10 	beq-    cr7,ffc06d54 <partition_table_get+0x1a0><== ALWAYS TAKEN
    }                                                                 
                                                                      
    /* check if the partition table structure is MS-DOS style */      
    if (!msdos_signature_check(sector))                               
    {                                                                 
        free(sector);                                                 
ffc06d48:	48 00 0c 8d 	bl      ffc079d4 <free>                        <== NOT EXECUTED
        return RTEMS_INTERNAL_ERROR;                                  
ffc06d4c:	3b e0 00 19 	li      r31,25                                 <== NOT EXECUTED
ffc06d50:	4b ff ff 98 	b       ffc06ce8 <partition_table_get+0x134>   <== NOT EXECUTED
static bool                                                           
msdos_signature_check (rtems_sector_data_t *sector)                   
{                                                                     
    uint8_t *p = sector->data + RTEMS_IDE_PARTITION_MSDOS_SIGNATURE_OFFSET;
                                                                      
    return ((p[0] == RTEMS_IDE_PARTITION_MSDOS_SIGNATURE_DATA1) &&    
ffc06d54:	89 23 02 03 	lbz     r9,515(r3)                             
ffc06d58:	2f 89 00 aa 	cmpwi   cr7,r9,170                             
ffc06d5c:	40 9e ff ec 	bne+    cr7,ffc06d48 <partition_table_get+0x194><== NEVER TAKEN
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    /* read and process 4 primary partition descriptors */            
                                                                      
    data = sector->data + RTEMS_IDE_PARTITION_TABLE_OFFSET;           
ffc06d60:	3b 43 01 c2 	addi    r26,r3,450                             
ffc06d64:	7f bb eb 78 	mr      r27,r29                                
ffc06d68:	7f b9 eb 78 	mr      r25,r29                                
ffc06d6c:	3b 80 00 01 	li      r28,1                                  
ffc06d70:	7f 43 d3 78 	mr      r3,r26                                 
ffc06d74:	38 81 00 50 	addi    r4,r1,80                               
ffc06d78:	4b ff fb 19 	bl      ffc06890 <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)                                   
ffc06d7c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc06d80:	40 82 00 bc 	bne-    ffc06e3c <partition_table_get+0x288>   <== NEVER TAKEN
        {                                                             
            free(sector);                                             
            return rc;                                                
        }                                                             
                                                                      
        if (part_desc != NULL)                                        
ffc06d84:	81 21 00 50 	lwz     r9,80(r1)                              
ffc06d88:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06d8c:	41 9e 00 a8 	beq-    cr7,ffc06e34 <partition_table_get+0x280><== NEVER TAKEN
        {                                                             
            part_desc->log_id = part_num + 1;                         
            part_desc->disk_desc = disk_desc;                         
            part_desc->end = part_desc->start + part_desc->size - 1;  
ffc06d90:	81 09 00 04 	lwz     r8,4(r9)                               
ffc06d94:	81 49 00 08 	lwz     r10,8(r9)                              
            return rc;                                                
        }                                                             
                                                                      
        if (part_desc != NULL)                                        
        {                                                             
            part_desc->log_id = part_num + 1;                         
ffc06d98:	9b 89 00 02 	stb     r28,2(r9)                              
            part_desc->disk_desc = disk_desc;                         
            part_desc->end = part_desc->start + part_desc->size - 1;  
ffc06d9c:	7d 48 52 14 	add     r10,r8,r10                             
ffc06da0:	39 4a ff ff 	addi    r10,r10,-1                             
        }                                                             
                                                                      
        if (part_desc != NULL)                                        
        {                                                             
            part_desc->log_id = part_num + 1;                         
            part_desc->disk_desc = disk_desc;                         
ffc06da4:	93 a9 00 10 	stw     r29,16(r9)                             
            part_desc->end = part_desc->start + part_desc->size - 1;  
ffc06da8:	91 49 00 0c 	stw     r10,12(r9)                             
            disk_desc->partitions[part_num] = part_desc;              
ffc06dac:	91 39 00 28 	stw     r9,40(r25)                             
ffc06db0:	3b 9c 00 01 	addi    r28,r28,1                              
ffc06db4:	57 9c 06 3e 	clrlwi  r28,r28,24                             
                                                                      
    /* read and process 4 primary partition descriptors */            
                                                                      
    data = sector->data + RTEMS_IDE_PARTITION_TABLE_OFFSET;           
                                                                      
    for (part_num = 0;                                                
ffc06db8:	2f 9c 00 05 	cmpwi   cr7,r28,5                              
        else                                                          
        {                                                             
            disk_desc->partitions[part_num] = NULL;                   
        }                                                             
                                                                      
        data += RTEMS_IDE_PARTITION_DESCRIPTOR_SIZE;                  
ffc06dbc:	3b 5a 00 10 	addi    r26,r26,16                             
ffc06dc0:	3b 39 00 04 	addi    r25,r25,4                              
                                                                      
    /* read and process 4 primary partition descriptors */            
                                                                      
    data = sector->data + RTEMS_IDE_PARTITION_TABLE_OFFSET;           
                                                                      
    for (part_num = 0;                                                
ffc06dc4:	40 9e ff ac 	bne+    cr7,ffc06d70 <partition_table_get+0x1bc>
        }                                                             
                                                                      
        data += RTEMS_IDE_PARTITION_DESCRIPTOR_SIZE;                  
    }                                                                 
                                                                      
    free(sector);                                                     
ffc06dc8:	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;                   
ffc06dcc:	3b 80 00 00 	li      r28,0                                  
        }                                                             
                                                                      
        data += RTEMS_IDE_PARTITION_DESCRIPTOR_SIZE;                  
    }                                                                 
                                                                      
    free(sector);                                                     
ffc06dd0:	48 00 0c 05 	bl      ffc079d4 <free>                        
                                                                      
    disk_desc->last_log_id = RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER;
ffc06dd4:	39 20 00 04 	li      r9,4                                   
ffc06dd8:	91 3d 00 24 	stw     r9,36(r29)                             
ffc06ddc:	3b a0 00 04 	li      r29,4                                  
       but we are to process each primary partition */                
    for (part_num = 0;                                                
         part_num < RTEMS_IDE_PARTITION_MAX_SUB_PARTITION_NUMBER;     
         part_num++)                                                  
    {                                                                 
        part_desc = disk_desc->partitions[part_num];                  
ffc06de0:	81 3b 00 28 	lwz     r9,40(r27)                             
        if (part_desc != NULL && is_extended(part_desc->sys_type))    
        {                                                             
            read_extended_partition(fd, part_desc->start, part_desc); 
ffc06de4:	7f c3 f3 78 	mr      r3,r30                                 
    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))    
ffc06de8:	2f 89 00 00 	cmpwi   cr7,r9,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];                  
ffc06dec:	91 21 00 50 	stw     r9,80(r1)                              
        if (part_desc != NULL && is_extended(part_desc->sys_type))    
        {                                                             
            read_extended_partition(fd, part_desc->start, part_desc); 
ffc06df0:	7d 25 4b 78 	mr      r5,r9                                  
    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))    
ffc06df4:	41 9e 00 18 	beq-    cr7,ffc06e0c <partition_table_get+0x258><== NEVER TAKEN
ffc06df8:	89 49 00 01 	lbz     r10,1(r9)                              
 *      true if partition type is extended, false otherwise           
 */                                                                   
static bool                                                           
is_extended(uint8_t type)                                             
{                                                                     
    return ((type == EXTENDED_PARTITION) || (type == LINUX_EXTENDED));
ffc06dfc:	2f 8a 00 05 	cmpwi   cr7,r10,5                              
ffc06e00:	2f 0a 00 85 	cmpwi   cr6,r10,133                            
ffc06e04:	41 9e 00 18 	beq-    cr7,ffc06e1c <partition_table_get+0x268>
ffc06e08:	41 9a 00 14 	beq-    cr6,ffc06e1c <partition_table_get+0x268><== NEVER TAKEN
                                                                      
    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;                                                
ffc06e0c:	37 bd ff ff 	addic.  r29,r29,-1                             
ffc06e10:	3b 7b 00 04 	addi    r27,r27,4                              
ffc06e14:	40 82 ff cc 	bne+    ffc06de0 <partition_table_get+0x22c>   
ffc06e18:	4b ff fe d0 	b       ffc06ce8 <partition_table_get+0x134>   
         part_num++)                                                  
    {                                                                 
        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); 
ffc06e1c:	80 89 00 04 	lwz     r4,4(r9)                               
ffc06e20:	4b ff fb 89 	bl      ffc069a8 <read_extended_partition>     
            free(part_desc);                                          
ffc06e24:	80 61 00 50 	lwz     r3,80(r1)                              
ffc06e28:	48 00 0b ad 	bl      ffc079d4 <free>                        
            disk_desc->partitions[part_num] = NULL;                   
ffc06e2c:	93 9b 00 28 	stw     r28,40(r27)                            
ffc06e30:	4b ff ff dc 	b       ffc06e0c <partition_table_get+0x258>   
            part_desc->end = part_desc->start + part_desc->size - 1;  
            disk_desc->partitions[part_num] = part_desc;              
        }                                                             
        else                                                          
        {                                                             
            disk_desc->partitions[part_num] = NULL;                   
ffc06e34:	93 f9 00 28 	stw     r31,40(r25)                            <== NOT EXECUTED
ffc06e38:	4b ff ff 78 	b       ffc06db0 <partition_table_get+0x1fc>   <== NOT EXECUTED
         part_num++)                                                  
    {                                                                 
        rc = data_to_part_desc(data, &part_desc);                     
        if (rc != RTEMS_SUCCESSFUL)                                   
        {                                                             
            free(sector);                                             
ffc06e3c:	80 61 00 54 	lwz     r3,84(r1)                              <== NOT EXECUTED
ffc06e40:	4b ff fe a4 	b       ffc06ce4 <partition_table_get+0x130>   <== NOT EXECUTED
                                                                      

ffc063c4 <pathconf>: */ long pathconf( const char *path, int name ) {
ffc063c4:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc063c8:	7c 08 02 a6 	mflr    r0                                     
ffc063cc:	93 c1 00 08 	stw     r30,8(r1)                              
ffc063d0:	7c 9e 23 78 	mr      r30,r4                                 
  int status;                                                         
  int fd;                                                             
                                                                      
  fd = open( path, O_RDONLY );                                        
ffc063d4:	38 80 00 00 	li      r4,0                                   
 */                                                                   
long pathconf(                                                        
  const char *path,                                                   
  int         name                                                    
)                                                                     
{                                                                     
ffc063d8:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc063dc:	90 01 00 14 	stw     r0,20(r1)                              
  int status;                                                         
  int fd;                                                             
                                                                      
  fd = open( path, O_RDONLY );                                        
ffc063e0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc063e4:	4b ff fd 35 	bl      ffc06118 <open>                        
  if ( fd == -1 )                                                     
ffc063e8:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
)                                                                     
{                                                                     
  int status;                                                         
  int fd;                                                             
                                                                      
  fd = open( path, O_RDONLY );                                        
ffc063ec:	7c 7f 1b 78 	mr      r31,r3                                 
  if ( fd == -1 )                                                     
ffc063f0:	41 9e 00 34 	beq-    cr7,ffc06424 <pathconf+0x60>           <== ALWAYS TAKEN
    return -1;                                                        
                                                                      
  status = fpathconf( fd, name );                                     
ffc063f4:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc063f8:	48 00 60 65 	bl      ffc0c45c <fpathconf>                   <== NOT EXECUTED
ffc063fc:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
                                                                      
  (void) close( fd );                                                 
ffc06400:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc06404:	48 00 5f c1 	bl      ffc0c3c4 <close>                       <== NOT EXECUTED
                                                                      
  return status;                                                      
}                                                                     
ffc06408:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0640c:	7f c3 f3 78 	mr      r3,r30                                 
ffc06410:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc06414:	7c 08 03 a6 	mtlr    r0                                     
ffc06418:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0641c:	38 21 00 10 	addi    r1,r1,16                               
ffc06420:	4e 80 00 20 	blr                                            
  int status;                                                         
  int fd;                                                             
                                                                      
  fd = open( path, O_RDONLY );                                        
  if ( fd == -1 )                                                     
    return -1;                                                        
ffc06424:	3b c0 ff ff 	li      r30,-1                                 
ffc06428:	4b ff ff e0 	b       ffc06408 <pathconf+0x44>               
                                                                      

ffc100f0 <pipe_create>: static uint16_t rtems_pipe_no = 0; int pipe_create( int filsdes[2] ) {
ffc100f0:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc100f4:	7c 08 02 a6 	mflr    r0                                     
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
                                                                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
ffc100f8:	38 80 01 ff 	li      r4,511                                 
static uint16_t rtems_pipe_no = 0;                                    
                                                                      
int pipe_create(                                                      
  int filsdes[2]                                                      
)                                                                     
{                                                                     
ffc100fc:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc10100:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
                                                                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
ffc10104:	3c 60 ff c2 	lis     r3,-62                                 
ffc10108:	38 63 21 f4 	addi    r3,r3,8692                             
static uint16_t rtems_pipe_no = 0;                                    
                                                                      
int pipe_create(                                                      
  int filsdes[2]                                                      
)                                                                     
{                                                                     
ffc1010c:	90 01 00 24 	stw     r0,36(r1)                              
ffc10110:	93 c1 00 18 	stw     r30,24(r1)                             
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
                                                                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
ffc10114:	48 00 1a e9 	bl      ffc11bfc <rtems_mkdir>                 
ffc10118:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1011c:	40 9e 01 20 	bne-    cr7,ffc1023c <pipe_create+0x14c>       
    return -1;                                                        
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
ffc10120:	3d 20 00 00 	lis     r9,0                                   
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
    return -1;                                                        
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
ffc10124:	3d 00 ff c2 	lis     r8,-62                                 
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
ffc10128:	a0 a9 2a 20 	lhz     r5,10784(r9)                           
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
    return -1;                                                        
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
ffc1012c:	39 48 21 fc 	addi    r10,r8,8700                            
ffc10130:	80 e8 21 fc 	lwz     r7,8700(r8)                            
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
ffc10134:	3c 80 ff c2 	lis     r4,-62                                 
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
    return -1;                                                        
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
ffc10138:	81 0a 00 04 	lwz     r8,4(r10)                              
ffc1013c:	a1 4a 00 08 	lhz     r10,8(r10)                             
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
ffc10140:	38 c5 00 01 	addi    r6,r5,1                                
ffc10144:	38 84 22 08 	addi    r4,r4,8712                             
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
    return -1;                                                        
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
ffc10148:	90 e1 00 08 	stw     r7,8(r1)                               
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
ffc1014c:	38 61 00 12 	addi    r3,r1,18                               
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
    return -1;                                                        
                                                                      
  /* /tmp/.fifoXXXX */                                                
  char fifopath[15];                                                  
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
ffc10150:	91 01 00 0c 	stw     r8,12(r1)                              
ffc10154:	b1 41 00 10 	sth     r10,16(r1)                             
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
ffc10158:	b0 c9 2a 20 	sth     r6,10784(r9)                           
ffc1015c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc10160:	48 00 57 79 	bl      ffc158d8 <sprintf>                     
                                                                      
  /* Try creating FIFO file until find an available file name */      
  while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {                    
ffc10164:	38 61 00 08 	addi    r3,r1,8                                
ffc10168:	38 80 01 80 	li      r4,384                                 
ffc1016c:	48 00 16 99 	bl      ffc11804 <mkfifo>                      
ffc10170:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc10174:	40 9e 00 d0 	bne-    cr7,ffc10244 <pipe_create+0x154>       <== NEVER TAKEN
    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);                 
ffc10178:	38 61 00 08 	addi    r3,r1,8                                
ffc1017c:	38 80 40 00 	li      r4,16384                               
ffc10180:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc10184:	4b ff 62 69 	bl      ffc063ec <open>                        
  if (filsdes[0] < 0) {                                               
ffc10188:	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);                 
ffc1018c:	90 7f 00 00 	stw     r3,0(r31)                              
  if (filsdes[0] < 0) {                                               
ffc10190:	41 9c 00 84 	blt-    cr7,ffc10214 <pipe_create+0x124>       
     the file node will be deleted after it is closed by all. */      
    unlink(fifopath);                                                 
  }                                                                   
  else {                                                              
  /* Reset open file to blocking mode */                              
    iop = rtems_libio_iop(filsdes[0]);                                
ffc10194:	3d 40 00 00 	lis     r10,0                                  
ffc10198:	81 0a 27 78 	lwz     r8,10104(r10)                          
ffc1019c:	39 40 00 00 	li      r10,0                                  
ffc101a0:	7f 83 40 40 	cmplw   cr7,r3,r8                              
ffc101a4:	41 9c 00 5c 	blt-    cr7,ffc10200 <pipe_create+0x110>       <== ALWAYS TAKEN
    iop->flags &= ~LIBIO_FLAGS_NO_DELAY;                              
ffc101a8:	81 2a 00 10 	lwz     r9,16(r10)                             
                                                                      
    filsdes[1] = open(fifopath, O_WRONLY);                            
ffc101ac:	38 61 00 08 	addi    r3,r1,8                                
ffc101b0:	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;                              
ffc101b4:	55 29 00 3c 	rlwinm  r9,r9,0,0,30                           
ffc101b8:	91 2a 00 10 	stw     r9,16(r10)                             
int pipe_create(                                                      
  int filsdes[2]                                                      
)                                                                     
{                                                                     
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
ffc101bc:	3b c0 00 00 	li      r30,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);                            
ffc101c0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc101c4:	4b ff 62 29 	bl      ffc063ec <open>                        
                                                                      
    if (filsdes[1] < 0) {                                             
ffc101c8:	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);                            
ffc101cc:	90 7f 00 04 	stw     r3,4(r31)                              
                                                                      
    if (filsdes[1] < 0) {                                             
ffc101d0:	41 9c 00 58 	blt-    cr7,ffc10228 <pipe_create+0x138>       
    err = errno;                                                      
    close(filsdes[0]);                                                
    }                                                                 
  unlink(fifopath);                                                   
ffc101d4:	38 61 00 08 	addi    r3,r1,8                                
ffc101d8:	4b ff 9c 25 	bl      ffc09dfc <unlink>                      
  }                                                                   
  if(err != 0)                                                        
ffc101dc:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    rtems_set_errno_and_return_minus_one(err);                        
  return 0;                                                           
ffc101e0:	38 60 00 00 	li      r3,0                                   
    err = errno;                                                      
    close(filsdes[0]);                                                
    }                                                                 
  unlink(fifopath);                                                   
  }                                                                   
  if(err != 0)                                                        
ffc101e4:	40 9e 00 6c 	bne-    cr7,ffc10250 <pipe_create+0x160>       
    rtems_set_errno_and_return_minus_one(err);                        
  return 0;                                                           
}                                                                     
ffc101e8:	80 01 00 24 	lwz     r0,36(r1)                              
ffc101ec:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc101f0:	7c 08 03 a6 	mtlr    r0                                     
ffc101f4:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc101f8:	38 21 00 20 	addi    r1,r1,32                               
ffc101fc:	4e 80 00 20 	blr                                            
     the file node will be deleted after it is closed by all. */      
    unlink(fifopath);                                                 
  }                                                                   
  else {                                                              
  /* Reset open file to blocking mode */                              
    iop = rtems_libio_iop(filsdes[0]);                                
ffc10200:	3d 40 00 00 	lis     r10,0                                  
ffc10204:	1d 23 00 38 	mulli   r9,r3,56                               
ffc10208:	81 4a 28 28 	lwz     r10,10280(r10)                         
ffc1020c:	7d 4a 4a 14 	add     r10,r10,r9                             
ffc10210:	4b ff ff 98 	b       ffc101a8 <pipe_create+0xb8>            
  }                                                                   
                                                                      
  /* Non-blocking open to avoid waiting for writers */                
  filsdes[0] = open(fifopath, O_RDONLY | O_NONBLOCK);                 
  if (filsdes[0] < 0) {                                               
    err = errno;                                                      
ffc10214:	48 00 48 09 	bl      ffc14a1c <__errno>                     
ffc10218:	83 c3 00 00 	lwz     r30,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);                                                 
ffc1021c:	38 61 00 08 	addi    r3,r1,8                                
ffc10220:	4b ff 9b dd 	bl      ffc09dfc <unlink>                      
ffc10224:	4b ff ff b8 	b       ffc101dc <pipe_create+0xec>            
    iop->flags &= ~LIBIO_FLAGS_NO_DELAY;                              
                                                                      
    filsdes[1] = open(fifopath, O_WRONLY);                            
                                                                      
    if (filsdes[1] < 0) {                                             
    err = errno;                                                      
ffc10228:	48 00 47 f5 	bl      ffc14a1c <__errno>                     
ffc1022c:	83 c3 00 00 	lwz     r30,0(r3)                              
    close(filsdes[0]);                                                
ffc10230:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc10234:	4b ff 51 61 	bl      ffc05394 <close>                       
ffc10238:	4b ff ff 9c 	b       ffc101d4 <pipe_create+0xe4>            
{                                                                     
  rtems_libio_t *iop;                                                 
  int err = 0;                                                        
                                                                      
  if (rtems_mkdir("/tmp", S_IRWXU | S_IRWXG | S_IRWXO) != 0)          
    return -1;                                                        
ffc1023c:	38 60 ff ff 	li      r3,-1                                  
ffc10240:	4b ff ff a8 	b       ffc101e8 <pipe_create+0xf8>            
  memcpy(fifopath, "/tmp/.fifo", 10);                                 
  sprintf(fifopath + 10, "%04x", rtems_pipe_no ++);                   
                                                                      
  /* Try creating FIFO file until find an available file name */      
  while (mkfifo(fifopath, S_IRUSR|S_IWUSR) != 0) {                    
    if (errno != EEXIST){                                             
ffc10244:	48 00 47 d9 	bl      ffc14a1c <__errno>                     <== NOT EXECUTED
      return -1;                                                      
ffc10248:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc1024c:	4b ff ff 9c 	b       ffc101e8 <pipe_create+0xf8>            <== NOT EXECUTED
    close(filsdes[0]);                                                
    }                                                                 
  unlink(fifopath);                                                   
  }                                                                   
  if(err != 0)                                                        
    rtems_set_errno_and_return_minus_one(err);                        
ffc10250:	48 00 47 cd 	bl      ffc14a1c <__errno>                     
ffc10254:	93 c3 00 00 	stw     r30,0(r3)                              
ffc10258:	38 60 ff ff 	li      r3,-1                                  
ffc1025c:	4b ff ff 8c 	b       ffc101e8 <pipe_create+0xf8>            
                                                                      

ffc11a14 <pipe_ioctl>: ioctl_command_t cmd, void *buffer, rtems_libio_t *iop ) { if (cmd == FIONREAD) {
ffc11a14:	6c 89 40 04 	xoris   r9,r4,16388                            
ffc11a18:	2f 89 66 7f 	cmpwi   cr7,r9,26239                           
ffc11a1c:	40 9e 00 6c 	bne-    cr7,ffc11a88 <pipe_ioctl+0x74>         
    if (buffer == NULL)                                               
ffc11a20:	2f 85 00 00 	cmpwi   cr7,r5,0                               
  pipe_control_t  *pipe,                                              
  ioctl_command_t  cmd,                                               
  void            *buffer,                                            
  rtems_libio_t   *iop                                                
)                                                                     
{                                                                     
ffc11a24:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc11a28:	7c 08 02 a6 	mflr    r0                                     
ffc11a2c:	93 c1 00 08 	stw     r30,8(r1)                              
ffc11a30:	7c be 2b 78 	mr      r30,r5                                 
ffc11a34:	90 01 00 14 	stw     r0,20(r1)                              
ffc11a38:	93 e1 00 0c 	stw     r31,12(r1)                             
  if (cmd == FIONREAD) {                                              
    if (buffer == NULL)                                               
ffc11a3c:	41 9e 00 5c 	beq-    cr7,ffc11a98 <pipe_ioctl+0x84>         
ffc11a40:	7c 7f 1b 78 	mr      r31,r3                                 
      return -EFAULT;                                                 
                                                                      
    if (! PIPE_LOCK(pipe))                                            
ffc11a44:	80 63 00 28 	lwz     r3,40(r3)                              
ffc11a48:	38 80 00 00 	li      r4,0                                   
ffc11a4c:	38 a0 00 00 	li      r5,0                                   
ffc11a50:	4b ff 9b 99 	bl      ffc0b5e8 <rtems_semaphore_obtain>      
ffc11a54:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11a58:	40 9e 00 38 	bne-    cr7,ffc11a90 <pipe_ioctl+0x7c>         <== NEVER TAKEN
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(unsigned int *)buffer = pipe->Length;                           
ffc11a5c:	81 3f 00 0c 	lwz     r9,12(r31)                             
    PIPE_UNLOCK(pipe);                                                
ffc11a60:	80 7f 00 28 	lwz     r3,40(r31)                             
                                                                      
    if (! PIPE_LOCK(pipe))                                            
      return -EINTR;                                                  
                                                                      
    /* Return length of pipe */                                       
    *(unsigned int *)buffer = pipe->Length;                           
ffc11a64:	91 3e 00 00 	stw     r9,0(r30)                              
    PIPE_UNLOCK(pipe);                                                
ffc11a68:	4b ff 9d 21 	bl      ffc0b788 <rtems_semaphore_release>     
    return 0;                                                         
ffc11a6c:	38 60 00 00 	li      r3,0                                   
  }                                                                   
                                                                      
  return -EINVAL;                                                     
}                                                                     
ffc11a70:	80 01 00 14 	lwz     r0,20(r1)                              
ffc11a74:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc11a78:	7c 08 03 a6 	mtlr    r0                                     
ffc11a7c:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc11a80:	38 21 00 10 	addi    r1,r1,16                               
ffc11a84:	4e 80 00 20 	blr                                            
    *(unsigned int *)buffer = pipe->Length;                           
    PIPE_UNLOCK(pipe);                                                
    return 0;                                                         
  }                                                                   
                                                                      
  return -EINVAL;                                                     
ffc11a88:	38 60 ff ea 	li      r3,-22                                 
}                                                                     
ffc11a8c:	4e 80 00 20 	blr                                            
  if (cmd == FIONREAD) {                                              
    if (buffer == NULL)                                               
      return -EFAULT;                                                 
                                                                      
    if (! PIPE_LOCK(pipe))                                            
      return -EINTR;                                                  
ffc11a90:	38 60 ff fc 	li      r3,-4                                  <== NOT EXECUTED
ffc11a94:	4b ff ff dc 	b       ffc11a70 <pipe_ioctl+0x5c>             <== NOT EXECUTED
  rtems_libio_t   *iop                                                
)                                                                     
{                                                                     
  if (cmd == FIONREAD) {                                              
    if (buffer == NULL)                                               
      return -EFAULT;                                                 
ffc11a98:	38 60 ff f2 	li      r3,-14                                 
ffc11a9c:	4b ff ff d4 	b       ffc11a70 <pipe_ioctl+0x5c>             
                                                                      

ffc1157c <pipe_read>: pipe_control_t *pipe, void *buffer, size_t count, rtems_libio_t *iop ) {
ffc1157c:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc11580:	7c 08 02 a6 	mflr    r0                                     
ffc11584:	90 01 00 3c 	stw     r0,60(r1)                              
ffc11588:	93 e1 00 34 	stw     r31,52(r1)                             
ffc1158c:	7c 7f 1b 78 	mr      r31,r3                                 
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc11590:	80 63 00 28 	lwz     r3,40(r3)                              
  pipe_control_t *pipe,                                               
  void           *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
ffc11594:	93 21 00 1c 	stw     r25,28(r1)                             
ffc11598:	7c 99 23 78 	mr      r25,r4                                 
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc1159c:	38 80 00 00 	li      r4,0                                   
  pipe_control_t *pipe,                                               
  void           *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
ffc115a0:	93 61 00 24 	stw     r27,36(r1)                             
ffc115a4:	7c bb 2b 78 	mr      r27,r5                                 
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc115a8:	38 a0 00 00 	li      r5,0                                   
  pipe_control_t *pipe,                                               
  void           *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
ffc115ac:	93 a1 00 2c 	stw     r29,44(r1)                             
ffc115b0:	7c dd 33 78 	mr      r29,r6                                 
ffc115b4:	93 01 00 18 	stw     r24,24(r1)                             
ffc115b8:	93 41 00 20 	stw     r26,32(r1)                             
ffc115bc:	93 81 00 28 	stw     r28,40(r1)                             
ffc115c0:	93 c1 00 30 	stw     r30,48(r1)                             
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc115c4:	4b ff a0 25 	bl      ffc0b5e8 <rtems_semaphore_obtain>      
ffc115c8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc115cc:	40 9e 01 a8 	bne-    cr7,ffc11774 <pipe_read+0x1f8>         <== NEVER TAKEN
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
ffc115d0:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc115d4:	3b 40 00 00 	li      r26,0                                  
ffc115d8:	3b 80 00 00 	li      r28,0                                  
ffc115dc:	41 9e 01 6c 	beq-    cr7,ffc11748 <pipe_read+0x1cc>         <== NEVER TAKEN
    while (PIPE_EMPTY(pipe)) {                                        
ffc115e0:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc115e4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc115e8:	40 9e 00 c0 	bne-    cr7,ffc116a8 <pipe_read+0x12c>         
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
ffc115ec:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc115f0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc115f4:	41 9e 01 54 	beq-    cr7,ffc11748 <pipe_read+0x1cc>         
        goto out_locked;                                              
                                                                      
      if (LIBIO_NODELAY(iop)) {                                       
ffc115f8:	81 3d 00 10 	lwz     r9,16(r29)                             
ffc115fc:	71 2a 00 01 	andi.   r10,r9,1                               
ffc11600:	40 82 01 50 	bne-    ffc11750 <pipe_read+0x1d4>             
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
ffc11604:	81 3f 00 18 	lwz     r9,24(r31)                             
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
        ret = -EINTR;                                                 
ffc11608:	3b c0 ff fc 	li      r30,-4                                 
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until pipe is no more empty or no writer exists */      
      pipe->waitingReaders ++;                                        
      PIPE_UNLOCK(pipe);                                              
ffc1160c:	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 ++;                                        
ffc11610:	39 29 00 01 	addi    r9,r9,1                                
ffc11614:	91 3f 00 18 	stw     r9,24(r31)                             
      PIPE_UNLOCK(pipe);                                              
ffc11618:	4b ff a1 71 	bl      ffc0b788 <rtems_semaphore_release>     
      if (! PIPE_READWAIT(pipe))                                      
ffc1161c:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc11620:	38 80 00 00 	li      r4,0                                   
ffc11624:	48 00 1b d5 	bl      ffc131f8 <rtems_barrier_wait>          
ffc11628:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1162c:	40 9e 00 08 	bne-    cr7,ffc11634 <pipe_read+0xb8>          <== NEVER TAKEN
ffc11630:	3b c0 00 00 	li      r30,0                                  
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
ffc11634:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc11638:	38 80 00 00 	li      r4,0                                   
ffc1163c:	38 a0 00 00 	li      r5,0                                   
ffc11640:	4b ff 9f a9 	bl      ffc0b5e8 <rtems_semaphore_obtain>      
ffc11644:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11648:	40 9e 01 10 	bne-    cr7,ffc11758 <pipe_read+0x1dc>         <== NEVER TAKEN
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingReaders --;                                        
      if (ret != 0)                                                   
ffc1164c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingReaders --;                                        
ffc11650:	81 3f 00 18 	lwz     r9,24(r31)                             
ffc11654:	39 29 ff ff 	addi    r9,r9,-1                               
ffc11658:	91 3f 00 18 	stw     r9,24(r31)                             
      if (ret != 0)                                                   
ffc1165c:	41 9e ff 84 	beq+    cr7,ffc115e0 <pipe_read+0x64>          <== ALWAYS TAKEN
      PIPE_WAKEUPWRITERS(pipe);                                       
    read += chunk;                                                    
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
ffc11660:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc11664:	4b ff a1 25 	bl      ffc0b788 <rtems_semaphore_release>     
                                                                      
out_nolock:                                                           
  if (read > 0)                                                       
ffc11668:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc1166c:	41 bd 00 08 	bgt+    cr7,ffc11674 <pipe_read+0xf8>          
    return read;                                                      
  return ret;                                                         
ffc11670:	7f dc f3 78 	mr      r28,r30                                
}                                                                     
ffc11674:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc11678:	7f 83 e3 78 	mr      r3,r28                                 
ffc1167c:	83 01 00 18 	lwz     r24,24(r1)                             
ffc11680:	7c 08 03 a6 	mtlr    r0                                     
ffc11684:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc11688:	83 41 00 20 	lwz     r26,32(r1)                             
ffc1168c:	83 61 00 24 	lwz     r27,36(r1)                             
ffc11690:	83 81 00 28 	lwz     r28,40(r1)                             
ffc11694:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc11698:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc1169c:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc116a0:	38 21 00 38 	addi    r1,r1,56                               
ffc116a4:	4e 80 00 20 	blr                                            
      if (ret != 0)                                                   
        goto out_locked;                                              
    }                                                                 
                                                                      
    /* Read chunk bytes */                                            
    chunk = MIN(count - read,  pipe->Length);                         
ffc116a8:	7d 5a d8 50 	subf    r10,r26,r27                            
ffc116ac:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc116b0:	7d 3e 4b 78 	mr      r30,r9                                 
ffc116b4:	40 9d 00 08 	ble-    cr7,ffc116bc <pipe_read+0x140>         
ffc116b8:	7d 5e 53 78 	mr      r30,r10                                
    chunk1 = pipe->Size - pipe->Start;                                
ffc116bc:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc116c0:	83 1f 00 04 	lwz     r24,4(r31)                             
    if (chunk > chunk1) {                                             
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);      
ffc116c4:	80 9f 00 00 	lwz     r4,0(r31)                              
        goto out_locked;                                              
    }                                                                 
                                                                      
    /* Read chunk bytes */                                            
    chunk = MIN(count - read,  pipe->Length);                         
    chunk1 = pipe->Size - pipe->Start;                                
ffc116c8:	7f 09 c0 50 	subf    r24,r9,r24                             
    if (chunk > chunk1) {                                             
ffc116cc:	7f 9e c0 00 	cmpw    cr7,r30,r24                            
ffc116d0:	40 9d 00 90 	ble-    cr7,ffc11760 <pipe_read+0x1e4>         
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);      
ffc116d4:	7f 05 c3 78 	mr      r5,r24                                 
ffc116d8:	7c 84 4a 14 	add     r4,r4,r9                               
ffc116dc:	7c 79 d2 14 	add     r3,r25,r26                             
ffc116e0:	48 00 51 55 	bl      ffc16834 <memcpy>                      
      memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);   
ffc116e4:	7c 7a c2 14 	add     r3,r26,r24                             
ffc116e8:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc116ec:	7c 79 1a 14 	add     r3,r25,r3                              
ffc116f0:	7c b8 f0 50 	subf    r5,r24,r30                             
ffc116f4:	48 00 51 41 	bl      ffc16834 <memcpy>                      
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
                                                                      
    pipe->Start += chunk;                                             
ffc116f8:	81 1f 00 08 	lwz     r8,8(r31)                              
    pipe->Start %= pipe->Size;                                        
ffc116fc:	81 5f 00 04 	lwz     r10,4(r31)                             
      memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);   
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
                                                                      
    pipe->Start += chunk;                                             
ffc11700:	7d 1e 42 14 	add     r8,r30,r8                              
    pipe->Start %= pipe->Size;                                        
    pipe->Length -= chunk;                                            
ffc11704:	81 3f 00 0c 	lwz     r9,12(r31)                             
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
                                                                      
    pipe->Start += chunk;                                             
    pipe->Start %= pipe->Size;                                        
ffc11708:	7c e8 53 96 	divwu   r7,r8,r10                              
    pipe->Length -= chunk;                                            
ffc1170c:	7d 3e 48 50 	subf    r9,r30,r9                              
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
ffc11710:	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;                                            
ffc11714:	91 3f 00 0c 	stw     r9,12(r31)                             
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
                                                                      
    pipe->Start += chunk;                                             
    pipe->Start %= pipe->Size;                                        
ffc11718:	7d 47 51 d6 	mullw   r10,r7,r10                             
ffc1171c:	7d 0a 40 50 	subf    r8,r10,r8                              
ffc11720:	91 1f 00 08 	stw     r8,8(r31)                              
    pipe->Length -= chunk;                                            
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
ffc11724:	40 9e 00 08 	bne-    cr7,ffc1172c <pipe_read+0x1b0>         
      pipe->Start = 0;                                                
ffc11728:	91 3f 00 08 	stw     r9,8(r31)                              
                                                                      
    if (pipe->waitingWriters > 0)                                     
ffc1172c:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc11730:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc11734:	40 9e 00 48 	bne-    cr7,ffc1177c <pipe_read+0x200>         
      PIPE_WAKEUPWRITERS(pipe);                                       
    read += chunk;                                                    
ffc11738:	7f 9c f2 14 	add     r28,r28,r30                            
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
                                                                      
  while (read < count) {                                              
ffc1173c:	7f 9c d8 40 	cmplw   cr7,r28,r27                            
ffc11740:	7f 9a e3 78 	mr      r26,r28                                
ffc11744:	41 9c fe 9c 	blt+    cr7,ffc115e0 <pipe_read+0x64>          <== NEVER TAKEN
    while (PIPE_EMPTY(pipe)) {                                        
      /* Not an error */                                              
      if (pipe->Writers == 0)                                         
ffc11748:	3b c0 00 00 	li      r30,0                                  
ffc1174c:	4b ff ff 14 	b       ffc11660 <pipe_read+0xe4>              
        goto out_locked;                                              
                                                                      
      if (LIBIO_NODELAY(iop)) {                                       
        ret = -EAGAIN;                                                
ffc11750:	3b c0 ff f5 	li      r30,-11                                
ffc11754:	4b ff ff 0c 	b       ffc11660 <pipe_read+0xe4>              
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_READWAIT(pipe))                                      
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingReaders not restored! */                       
        ret = -EINTR;                                                 
ffc11758:	3b c0 ff fc 	li      r30,-4                                 <== NOT EXECUTED
ffc1175c:	4b ff ff 0c 	b       ffc11668 <pipe_read+0xec>              <== NOT EXECUTED
    if (chunk > chunk1) {                                             
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk1);      
      memcpy(buffer + read + chunk1, pipe->Buffer, chunk - chunk1);   
    }                                                                 
    else                                                              
      memcpy(buffer + read, pipe->Buffer + pipe->Start, chunk);       
ffc11760:	7c 79 d2 14 	add     r3,r25,r26                             
ffc11764:	7c 84 4a 14 	add     r4,r4,r9                               
ffc11768:	7f c5 f3 78 	mr      r5,r30                                 
ffc1176c:	48 00 50 c9 	bl      ffc16834 <memcpy>                      
ffc11770:	4b ff ff 88 	b       ffc116f8 <pipe_read+0x17c>             
)                                                                     
{                                                                     
  int chunk, chunk1, read = 0, ret = 0;                               
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
ffc11774:	3b 80 ff fc 	li      r28,-4                                 <== NOT EXECUTED
ffc11778:	4b ff fe fc 	b       ffc11674 <pipe_read+0xf8>              <== NOT EXECUTED
    /* For buffering optimization */                                  
    if (PIPE_EMPTY(pipe))                                             
      pipe->Start = 0;                                                
                                                                      
    if (pipe->waitingWriters > 0)                                     
      PIPE_WAKEUPWRITERS(pipe);                                       
ffc1177c:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc11780:	38 81 00 08 	addi    r4,r1,8                                
ffc11784:	48 00 19 dd 	bl      ffc13160 <rtems_barrier_release>       
ffc11788:	4b ff ff b0 	b       ffc11738 <pipe_read+0x1bc>             
                                                                      

ffc10f68 <pipe_release>: void pipe_release( pipe_control_t **pipep, rtems_libio_t *iop ) {
ffc10f68:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc10f6c:	7c 08 02 a6 	mflr    r0                                     
ffc10f70:	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);                                          
ffc10f74:	81 24 00 10 	lwz     r9,16(r4)                              
                                                                      
void pipe_release(                                                    
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
ffc10f78:	93 a1 00 1c 	stw     r29,28(r1)                             
    if (!PIPE_LOCK(pipe))                                             
      rtems_fatal_error_occurred(0xdeadbeef);                         
  #endif                                                              
                                                                      
  mode = LIBIO_ACCMODE(iop);                                          
  if (mode & LIBIO_FLAGS_READ)                                        
ffc10f7c:	71 2a 00 02 	andi.   r10,r9,2                               
                                                                      
void pipe_release(                                                    
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
ffc10f80:	93 c1 00 20 	stw     r30,32(r1)                             
    /* WARN pipe not released! */                                     
    if (!PIPE_LOCK(pipe))                                             
      rtems_fatal_error_occurred(0xdeadbeef);                         
  #endif                                                              
                                                                      
  mode = LIBIO_ACCMODE(iop);                                          
ffc10f84:	55 3d 07 7c 	rlwinm  r29,r9,0,29,30                         
                                                                      
void pipe_release(                                                    
  pipe_control_t **pipep,                                             
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
ffc10f88:	7c 7e 1b 78 	mr      r30,r3                                 
ffc10f8c:	93 e1 00 24 	stw     r31,36(r1)                             
ffc10f90:	93 81 00 18 	stw     r28,24(r1)                             
  pipe_control_t *pipe = *pipep;                                      
ffc10f94:	83 e3 00 00 	lwz     r31,0(r3)                              
    if (!PIPE_LOCK(pipe))                                             
      rtems_fatal_error_occurred(0xdeadbeef);                         
  #endif                                                              
                                                                      
  mode = LIBIO_ACCMODE(iop);                                          
  if (mode & LIBIO_FLAGS_READ)                                        
ffc10f98:	41 82 00 10 	beq-    ffc10fa8 <pipe_release+0x40>           
     pipe->Readers --;                                                
ffc10f9c:	81 5f 00 10 	lwz     r10,16(r31)                            
ffc10fa0:	39 4a ff ff 	addi    r10,r10,-1                             
ffc10fa4:	91 5f 00 10 	stw     r10,16(r31)                            
  if (mode & LIBIO_FLAGS_WRITE)                                       
ffc10fa8:	71 2a 00 04 	andi.   r10,r9,4                               
ffc10fac:	41 82 00 10 	beq-    ffc10fbc <pipe_release+0x54>           
     pipe->Writers --;                                                
ffc10fb0:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc10fb4:	39 29 ff ff 	addi    r9,r9,-1                               
ffc10fb8:	91 3f 00 14 	stw     r9,20(r31)                             
                                                                      
  PIPE_UNLOCK(pipe);                                                  
ffc10fbc:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc10fc0:	4b ff a7 c9 	bl      ffc0b788 <rtems_semaphore_release>     
                                                                      
  if (pipe->Readers == 0 && pipe->Writers == 0) {                     
ffc10fc4:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc10fc8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10fcc:	41 9e 00 50 	beq-    cr7,ffc1101c <pipe_release+0xb4>       
    *pipep = NULL;                                                    
  }                                                                   
  else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)           
    /* Notify waiting Writers that all their partners left */         
    PIPE_WAKEUPWRITERS(pipe);                                         
  else if (pipe->Writers == 0 && mode != LIBIO_FLAGS_READ)            
ffc10fd0:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc10fd4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10fd8:	40 9e 00 18 	bne-    cr7,ffc10ff0 <pipe_release+0x88>       <== NEVER TAKEN
ffc10fdc:	2f 9d 00 02 	cmpwi   cr7,r29,2                              
ffc10fe0:	41 9e 00 10 	beq-    cr7,ffc10ff0 <pipe_release+0x88>       <== NEVER TAKEN
    PIPE_WAKEUPREADERS(pipe);                                         
ffc10fe4:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc10fe8:	38 81 00 08 	addi    r4,r1,8                                
ffc10fec:	48 00 21 75 	bl      ffc13160 <rtems_barrier_release>       
#ifdef RTEMS_DEBUG                                                    
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc =                                                                
#endif                                                                
   rtems_semaphore_release(pipe_semaphore);                           
ffc10ff0:	3d 20 00 00 	lis     r9,0                                   
ffc10ff4:	80 69 2a 20 	lwz     r3,10784(r9)                           
ffc10ff8:	4b ff a7 91 	bl      ffc0b788 <rtems_semaphore_release>     
  iop->flags &= ~LIBIO_FLAGS_OPEN;                                    
  if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))                     
    return;                                                           
#endif                                                                
                                                                      
}                                                                     
ffc10ffc:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc11000:	83 81 00 18 	lwz     r28,24(r1)                             
ffc11004:	7c 08 03 a6 	mtlr    r0                                     
ffc11008:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc1100c:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc11010:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc11014:	38 21 00 28 	addi    r1,r1,40                               
ffc11018:	4e 80 00 20 	blr                                            
  if (mode & LIBIO_FLAGS_WRITE)                                       
     pipe->Writers --;                                                
                                                                      
  PIPE_UNLOCK(pipe);                                                  
                                                                      
  if (pipe->Readers == 0 && pipe->Writers == 0) {                     
ffc1101c:	83 9f 00 14 	lwz     r28,20(r31)                            
ffc11020:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc11024:	41 9e 00 44 	beq-    cr7,ffc11068 <pipe_release+0x100>      
      delfile = TRUE;                                                 
#endif                                                                
    pipe_free(pipe);                                                  
    *pipep = NULL;                                                    
  }                                                                   
  else if (pipe->Readers == 0 && mode != LIBIO_FLAGS_WRITE)           
ffc11028:	2f 9d 00 04 	cmpwi   cr7,r29,4                              
ffc1102c:	41 9e ff c4 	beq+    cr7,ffc10ff0 <pipe_release+0x88>       <== NEVER TAKEN
    /* Notify waiting Writers that all their partners left */         
    PIPE_WAKEUPWRITERS(pipe);                                         
ffc11030:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc11034:	38 81 00 08 	addi    r4,r1,8                                
ffc11038:	48 00 21 29 	bl      ffc13160 <rtems_barrier_release>       
#ifdef RTEMS_DEBUG                                                    
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc =                                                                
#endif                                                                
   rtems_semaphore_release(pipe_semaphore);                           
ffc1103c:	3d 20 00 00 	lis     r9,0                                   
ffc11040:	80 69 2a 20 	lwz     r3,10784(r9)                           
ffc11044:	4b ff a7 45 	bl      ffc0b788 <rtems_semaphore_release>     
  iop->flags &= ~LIBIO_FLAGS_OPEN;                                    
  if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))                     
    return;                                                           
#endif                                                                
                                                                      
}                                                                     
ffc11048:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc1104c:	83 81 00 18 	lwz     r28,24(r1)                             
ffc11050:	7c 08 03 a6 	mtlr    r0                                     
ffc11054:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc11058:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc1105c:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc11060:	38 21 00 28 	addi    r1,r1,40                               
ffc11064:	4e 80 00 20 	blr                                            
/* Called with pipe_semaphore held. */                                
static inline void pipe_free(                                         
  pipe_control_t *pipe                                                
)                                                                     
{                                                                     
  rtems_barrier_delete(pipe->readBarrier);                            
ffc11068:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc1106c:	48 00 20 2d 	bl      ffc13098 <rtems_barrier_delete>        
  rtems_barrier_delete(pipe->writeBarrier);                           
ffc11070:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc11074:	48 00 20 25 	bl      ffc13098 <rtems_barrier_delete>        
  rtems_semaphore_delete(pipe->Semaphore);                            
ffc11078:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc1107c:	4b ff a4 79 	bl      ffc0b4f4 <rtems_semaphore_delete>      
  free(pipe->Buffer);                                                 
ffc11080:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc11084:	4b ff 4e 01 	bl      ffc05e84 <free>                        
  free(pipe);                                                         
ffc11088:	7f e3 fb 78 	mr      r3,r31                                 
ffc1108c:	4b ff 4d f9 	bl      ffc05e84 <free>                        
#ifdef RTEMS_DEBUG                                                    
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc =                                                                
#endif                                                                
   rtems_semaphore_release(pipe_semaphore);                           
ffc11090:	3d 20 00 00 	lis     r9,0                                   
    /* To delete an anonymous pipe file when all users closed it */   
    if (pipe->Anonymous)                                              
      delfile = TRUE;                                                 
#endif                                                                
    pipe_free(pipe);                                                  
    *pipep = NULL;                                                    
ffc11094:	93 9e 00 00 	stw     r28,0(r30)                             
#ifdef RTEMS_DEBUG                                                    
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc =                                                                
#endif                                                                
   rtems_semaphore_release(pipe_semaphore);                           
ffc11098:	80 69 2a 20 	lwz     r3,10784(r9)                           
ffc1109c:	4b ff a6 ed 	bl      ffc0b788 <rtems_semaphore_release>     
  iop->flags &= ~LIBIO_FLAGS_OPEN;                                    
  if(iop->pathinfo.ops->unlink_h(&iop->pathinfo))                     
    return;                                                           
#endif                                                                
                                                                      
}                                                                     
ffc110a0:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc110a4:	83 81 00 18 	lwz     r28,24(r1)                             
ffc110a8:	7c 08 03 a6 	mtlr    r0                                     
ffc110ac:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc110b0:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc110b4:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc110b8:	38 21 00 28 	addi    r1,r1,40                               
ffc110bc:	4e 80 00 20 	blr                                            
                                                                      

ffc1178c <pipe_write>: pipe_control_t *pipe, const void *buffer, size_t count, rtems_libio_t *iop ) {
ffc1178c:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc11790:	7c 08 02 a6 	mflr    r0                                     
ffc11794:	93 41 00 20 	stw     r26,32(r1)                             
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
ffc11798:	7c ba 2b 79 	mr.     r26,r5                                 
  pipe_control_t *pipe,                                               
  const void     *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
ffc1179c:	93 a1 00 2c 	stw     r29,44(r1)                             
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    return 0;                                                         
ffc117a0:	3b a0 00 00 	li      r29,0                                  
  pipe_control_t *pipe,                                               
  const void     *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
ffc117a4:	90 01 00 3c 	stw     r0,60(r1)                              
ffc117a8:	93 01 00 18 	stw     r24,24(r1)                             
ffc117ac:	93 21 00 1c 	stw     r25,28(r1)                             
ffc117b0:	93 61 00 24 	stw     r27,36(r1)                             
ffc117b4:	93 81 00 28 	stw     r28,40(r1)                             
ffc117b8:	93 c1 00 30 	stw     r30,48(r1)                             
ffc117bc:	93 e1 00 34 	stw     r31,52(r1)                             
  int chunk, chunk1, written = 0, ret = 0;                            
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
ffc117c0:	40 82 00 38 	bne-    ffc117f8 <pipe_write+0x6c>             <== ALWAYS TAKEN
#endif                                                                
                                                                      
  if (written > 0)                                                    
    return written;                                                   
  return ret;                                                         
}                                                                     
ffc117c4:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc117c8:	7f a3 eb 78 	mr      r3,r29                                 
ffc117cc:	83 01 00 18 	lwz     r24,24(r1)                             
ffc117d0:	7c 08 03 a6 	mtlr    r0                                     
ffc117d4:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc117d8:	83 41 00 20 	lwz     r26,32(r1)                             
ffc117dc:	83 61 00 24 	lwz     r27,36(r1)                             
ffc117e0:	83 81 00 28 	lwz     r28,40(r1)                             
ffc117e4:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc117e8:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc117ec:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc117f0:	38 21 00 38 	addi    r1,r1,56                               
ffc117f4:	4e 80 00 20 	blr                                            
ffc117f8:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
  /* Write nothing */                                                 
  if (count == 0)                                                     
    return 0;                                                         
                                                                      
  if (! PIPE_LOCK(pipe))                                              
ffc117fc:	80 63 00 28 	lwz     r3,40(r3)                              
ffc11800:	7c 99 23 78 	mr      r25,r4                                 
ffc11804:	38 a0 00 00 	li      r5,0                                   
ffc11808:	38 80 00 00 	li      r4,0                                   
ffc1180c:	7c dc 33 78 	mr      r28,r6                                 
ffc11810:	4b ff 9d d9 	bl      ffc0b5e8 <rtems_semaphore_obtain>      
ffc11814:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11818:	40 9e 01 d4 	bne-    cr7,ffc119ec <pipe_write+0x260>        <== NEVER TAKEN
    return -EINTR;                                                    
                                                                      
  if (pipe->Readers == 0) {                                           
ffc1181c:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc11820:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc11824:	41 9e 01 44 	beq-    cr7,ffc11968 <pipe_write+0x1dc>        
    ret = -EPIPE;                                                     
    goto out_locked;                                                  
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
ffc11828:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc1182c:	3b 60 00 01 	li      r27,1                                  
ffc11830:	7f 9a 48 40 	cmplw   cr7,r26,r9                             
ffc11834:	40 9d 01 90 	ble-    cr7,ffc119c4 <pipe_write+0x238>        <== ALWAYS TAKEN
ffc11838:	3b 00 00 00 	li      r24,0                                  
ffc1183c:	3b a0 00 00 	li      r29,0                                  
                                                                      
  while (written < count) {                                           
    while (PIPE_SPACE(pipe) < chunk) {                                
ffc11840:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc11844:	7d 0a 48 50 	subf    r8,r10,r9                              
ffc11848:	7f 88 d8 40 	cmplw   cr7,r8,r27                             
ffc1184c:	40 9c 00 8c 	bge-    cr7,ffc118d8 <pipe_write+0x14c>        
      if (LIBIO_NODELAY(iop)) {                                       
ffc11850:	81 3c 00 10 	lwz     r9,16(r28)                             
ffc11854:	71 2a 00 01 	andi.   r10,r9,1                               
ffc11858:	40 82 01 84 	bne-    ffc119dc <pipe_write+0x250>            
        ret = -EAGAIN;                                                
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
ffc1185c:	81 3f 00 1c 	lwz     r9,28(r31)                             
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
        ret = -EINTR;                                                 
ffc11860:	3b c0 ff fc 	li      r30,-4                                 
        goto out_locked;                                              
      }                                                               
                                                                      
      /* Wait until there is chunk bytes space or no reader exists */ 
      pipe->waitingWriters ++;                                        
      PIPE_UNLOCK(pipe);                                              
ffc11864:	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 ++;                                        
ffc11868:	39 29 00 01 	addi    r9,r9,1                                
ffc1186c:	91 3f 00 1c 	stw     r9,28(r31)                             
      PIPE_UNLOCK(pipe);                                              
ffc11870:	4b ff 9f 19 	bl      ffc0b788 <rtems_semaphore_release>     
      if (! PIPE_WRITEWAIT(pipe))                                     
ffc11874:	80 7f 00 30 	lwz     r3,48(r31)                             
ffc11878:	38 80 00 00 	li      r4,0                                   
ffc1187c:	48 00 19 7d 	bl      ffc131f8 <rtems_barrier_wait>          
ffc11880:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11884:	40 9e 00 08 	bne-    cr7,ffc1188c <pipe_write+0x100>        <== NEVER TAKEN
ffc11888:	3b c0 00 00 	li      r30,0                                  
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
ffc1188c:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc11890:	38 80 00 00 	li      r4,0                                   
ffc11894:	38 a0 00 00 	li      r5,0                                   
ffc11898:	4b ff 9d 51 	bl      ffc0b5e8 <rtems_semaphore_obtain>      
ffc1189c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc118a0:	40 9e 01 44 	bne-    cr7,ffc119e4 <pipe_write+0x258>        <== NEVER TAKEN
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingWriters --;                                        
      if (ret != 0)                                                   
ffc118a4:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
        goto out_nolock;                                              
      }                                                               
      pipe->waitingWriters --;                                        
ffc118a8:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc118ac:	39 29 ff ff 	addi    r9,r9,-1                               
ffc118b0:	91 3f 00 1c 	stw     r9,28(r31)                             
      if (ret != 0)                                                   
ffc118b4:	40 9e 01 1c 	bne-    cr7,ffc119d0 <pipe_write+0x244>        <== NEVER TAKEN
        goto out_locked;                                              
                                                                      
      if (pipe->Readers == 0) {                                       
ffc118b8:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc118bc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc118c0:	41 9e 00 ac 	beq-    cr7,ffc1196c <pipe_write+0x1e0>        <== NEVER TAKEN
ffc118c4:	81 3f 00 04 	lwz     r9,4(r31)                              
                                                                      
  /* 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) {                                
ffc118c8:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc118cc:	7d 0a 48 50 	subf    r8,r10,r9                              
ffc118d0:	7f 88 d8 40 	cmplw   cr7,r8,r27                             
ffc118d4:	41 9c ff 7c 	blt+    cr7,ffc11850 <pipe_write+0xc4>         <== NEVER TAKEN
        ret = -EPIPE;                                                 
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
ffc118d8:	7c f8 d0 50 	subf    r7,r24,r26                             
ffc118dc:	7f 88 38 40 	cmplw   cr7,r8,r7                              
ffc118e0:	7d 1e 43 78 	mr      r30,r8                                 
ffc118e4:	40 9d 00 08 	ble-    cr7,ffc118ec <pipe_write+0x160>        
ffc118e8:	7c fe 3b 78 	mr      r30,r7                                 
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
ffc118ec:	81 1f 00 08 	lwz     r8,8(r31)                              
    if (chunk > chunk1) {                                             
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
ffc118f0:	7c 99 c2 14 	add     r4,r25,r24                             
ffc118f4:	80 7f 00 00 	lwz     r3,0(r31)                              
        goto out_locked;                                              
      }                                                               
    }                                                                 
                                                                      
    chunk = MIN(count - written, PIPE_SPACE(pipe));                   
    chunk1 = pipe->Size - PIPE_WSTART(pipe);                          
ffc118f8:	7d 4a 42 14 	add     r10,r10,r8                             
ffc118fc:	7d 0a 4b 96 	divwu   r8,r10,r9                              
ffc11900:	7d 08 49 d6 	mullw   r8,r8,r9                               
ffc11904:	7d 48 50 50 	subf    r10,r8,r10                             
ffc11908:	7f 6a 48 50 	subf    r27,r10,r9                             
    if (chunk > chunk1) {                                             
ffc1190c:	7f 9e d8 00 	cmpw    cr7,r30,r27                            
ffc11910:	40 9d 00 e4 	ble-    cr7,ffc119f4 <pipe_write+0x268>        
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
ffc11914:	7f 65 db 78 	mr      r5,r27                                 
ffc11918:	7c 63 52 14 	add     r3,r3,r10                              
ffc1191c:	48 00 4f 19 	bl      ffc16834 <memcpy>                      
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
ffc11920:	7c 9b c2 14 	add     r4,r27,r24                             
ffc11924:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc11928:	7c 99 22 14 	add     r4,r25,r4                              
ffc1192c:	7c bb f0 50 	subf    r5,r27,r30                             
ffc11930:	48 00 4f 05 	bl      ffc16834 <memcpy>                      
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
                                                                      
    pipe->Length += chunk;                                            
    if (pipe->waitingReaders > 0)                                     
ffc11934:	81 5f 00 18 	lwz     r10,24(r31)                            
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
                                                                      
    pipe->Length += chunk;                                            
ffc11938:	81 3f 00 0c 	lwz     r9,12(r31)                             
    if (pipe->waitingReaders > 0)                                     
ffc1193c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
                                                                      
    pipe->Length += chunk;                                            
ffc11940:	7d 29 f2 14 	add     r9,r9,r30                              
ffc11944:	91 3f 00 0c 	stw     r9,12(r31)                             
    if (pipe->waitingReaders > 0)                                     
ffc11948:	40 9e 00 bc 	bne-    cr7,ffc11a04 <pipe_write+0x278>        
      PIPE_WAKEUPREADERS(pipe);                                       
    written += chunk;                                                 
ffc1194c:	7f bd f2 14 	add     r29,r29,r30                            
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
ffc11950:	7f 9a e8 40 	cmplw   cr7,r26,r29                            
ffc11954:	7f b8 eb 78 	mr      r24,r29                                
ffc11958:	40 9d 00 74 	ble-    cr7,ffc119cc <pipe_write+0x240>        <== ALWAYS TAKEN
ffc1195c:	81 3f 00 04 	lwz     r9,4(r31)                              <== NOT EXECUTED
    pipe->Length += chunk;                                            
    if (pipe->waitingReaders > 0)                                     
      PIPE_WAKEUPREADERS(pipe);                                       
    written += chunk;                                                 
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
ffc11960:	3b 60 00 01 	li      r27,1                                  <== NOT EXECUTED
ffc11964:	4b ff fe dc 	b       ffc11840 <pipe_write+0xb4>             <== NOT EXECUTED
  const void     *buffer,                                             
  size_t          count,                                              
  rtems_libio_t  *iop                                                 
)                                                                     
{                                                                     
  int chunk, chunk1, written = 0, ret = 0;                            
ffc11968:	3b a0 00 00 	li      r29,0                                  
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
ffc1196c:	80 7f 00 28 	lwz     r3,40(r31)                             
                                                                      
out_nolock:                                                           
#ifdef RTEMS_POSIX_API                                                
  /* Signal SIGPIPE */                                                
  if (ret == -EPIPE)                                                  
    kill(getpid(), SIGPIPE);                                          
ffc11970:	3b c0 ff e0 	li      r30,-32                                
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
ffc11974:	4b ff 9e 15 	bl      ffc0b788 <rtems_semaphore_release>     
                                                                      
out_nolock:                                                           
#ifdef RTEMS_POSIX_API                                                
  /* Signal SIGPIPE */                                                
  if (ret == -EPIPE)                                                  
    kill(getpid(), SIGPIPE);                                          
ffc11978:	48 00 05 f1 	bl      ffc11f68 <getpid>                      
ffc1197c:	38 80 00 0d 	li      r4,13                                  
ffc11980:	48 00 0e 05 	bl      ffc12784 <kill>                        
#endif                                                                
                                                                      
  if (written > 0)                                                    
ffc11984:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc11988:	41 9d fe 3c 	bgt+    cr7,ffc117c4 <pipe_write+0x38>         
    return written;                                                   
  return ret;                                                         
}                                                                     
ffc1198c:	80 01 00 3c 	lwz     r0,60(r1)                              
  /* Signal SIGPIPE */                                                
  if (ret == -EPIPE)                                                  
    kill(getpid(), SIGPIPE);                                          
#endif                                                                
                                                                      
  if (written > 0)                                                    
ffc11990:	7f dd f3 78 	mr      r29,r30                                
    return written;                                                   
  return ret;                                                         
}                                                                     
ffc11994:	7f a3 eb 78 	mr      r3,r29                                 
ffc11998:	83 01 00 18 	lwz     r24,24(r1)                             
ffc1199c:	7c 08 03 a6 	mtlr    r0                                     
ffc119a0:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc119a4:	83 41 00 20 	lwz     r26,32(r1)                             
ffc119a8:	83 61 00 24 	lwz     r27,36(r1)                             
ffc119ac:	83 81 00 28 	lwz     r28,40(r1)                             
ffc119b0:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc119b4:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc119b8:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc119bc:	38 21 00 38 	addi    r1,r1,56                               
ffc119c0:	4e 80 00 20 	blr                                            
    ret = -EPIPE;                                                     
    goto out_locked;                                                  
  }                                                                   
                                                                      
  /* Write of PIPE_BUF bytes or less shall not be interleaved */      
  chunk = count <= pipe->Size ? count : 1;                            
ffc119c4:	7f 5b d3 78 	mr      r27,r26                                
ffc119c8:	4b ff fe 70 	b       ffc11838 <pipe_write+0xac>             
                                                                      
  while (written < count) {                                           
ffc119cc:	3b c0 00 00 	li      r30,0                                  
    /* Write of more than PIPE_BUF bytes can be interleaved */        
    chunk = 1;                                                        
  }                                                                   
                                                                      
out_locked:                                                           
  PIPE_UNLOCK(pipe);                                                  
ffc119d0:	80 7f 00 28 	lwz     r3,40(r31)                             
ffc119d4:	4b ff 9d b5 	bl      ffc0b788 <rtems_semaphore_release>     
ffc119d8:	4b ff ff ac 	b       ffc11984 <pipe_write+0x1f8>            
  chunk = count <= pipe->Size ? count : 1;                            
                                                                      
  while (written < count) {                                           
    while (PIPE_SPACE(pipe) < chunk) {                                
      if (LIBIO_NODELAY(iop)) {                                       
        ret = -EAGAIN;                                                
ffc119dc:	3b c0 ff f5 	li      r30,-11                                
ffc119e0:	4b ff ff f0 	b       ffc119d0 <pipe_write+0x244>            
      PIPE_UNLOCK(pipe);                                              
      if (! PIPE_WRITEWAIT(pipe))                                     
        ret = -EINTR;                                                 
      if (! PIPE_LOCK(pipe)) {                                        
        /* WARN waitingWriters not restored! */                       
        ret = -EINTR;                                                 
ffc119e4:	3b c0 ff fc 	li      r30,-4                                 <== NOT EXECUTED
ffc119e8:	4b ff ff 9c 	b       ffc11984 <pipe_write+0x1f8>            <== NOT EXECUTED
  /* Write nothing */                                                 
  if (count == 0)                                                     
    return 0;                                                         
                                                                      
  if (! PIPE_LOCK(pipe))                                              
    return -EINTR;                                                    
ffc119ec:	3b a0 ff fc 	li      r29,-4                                 <== NOT EXECUTED
ffc119f0:	4b ff fd d4 	b       ffc117c4 <pipe_write+0x38>             <== NOT EXECUTED
    if (chunk > chunk1) {                                             
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk1);
      memcpy(pipe->Buffer, buffer + written + chunk1, chunk - chunk1);
    }                                                                 
    else                                                              
      memcpy(pipe->Buffer + PIPE_WSTART(pipe), buffer + written, chunk);
ffc119f4:	7c 63 52 14 	add     r3,r3,r10                              
ffc119f8:	7f c5 f3 78 	mr      r5,r30                                 
ffc119fc:	48 00 4e 39 	bl      ffc16834 <memcpy>                      
ffc11a00:	4b ff ff 34 	b       ffc11934 <pipe_write+0x1a8>            
                                                                      
    pipe->Length += chunk;                                            
    if (pipe->waitingReaders > 0)                                     
      PIPE_WAKEUPREADERS(pipe);                                       
ffc11a04:	80 7f 00 2c 	lwz     r3,44(r31)                             
ffc11a08:	38 81 00 08 	addi    r4,r1,8                                
ffc11a0c:	48 00 17 55 	bl      ffc13160 <rtems_barrier_release>       
ffc11a10:	4b ff ff 3c 	b       ffc1194c <pipe_write+0x1c0>            
                                                                      

ffc09424 <posix_memalign>: ) { /* * Update call statistics */ MSBUMP(memalign_calls, 1);
ffc09424:	3d 40 00 00 	lis     r10,0                                  
ffc09428:	39 4a 34 a8 	addi    r10,r10,13480                          
                                                                      
  if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
ffc0942c:	38 e4 ff ff 	addi    r7,r4,-1                               
)                                                                     
{                                                                     
  /*                                                                  
   *  Update call statistics                                          
   */                                                                 
  MSBUMP(memalign_calls, 1);                                          
ffc09430:	81 0a 00 08 	lwz     r8,8(r10)                              
                                                                      
  if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
ffc09434:	7c e6 20 39 	and.    r6,r7,r4                               
)                                                                     
{                                                                     
  /*                                                                  
   *  Update call statistics                                          
   */                                                                 
  MSBUMP(memalign_calls, 1);                                          
ffc09438:	39 08 00 01 	addi    r8,r8,1                                
ffc0943c:	91 0a 00 08 	stw     r8,8(r10)                              
                                                                      
  if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
ffc09440:	41 82 00 0c 	beq-    ffc0944c <posix_memalign+0x28>         <== ALWAYS TAKEN
  /*                                                                  
   *  rtems_memalign does all of the error checking work EXCEPT       
   *  for adding restrictionso on the alignment.                      
   */                                                                 
  return rtems_memalign( pointer, alignment, size );                  
}                                                                     
ffc09444:	38 60 00 16 	li      r3,22                                  
ffc09448:	4e 80 00 20 	blr                                            
  /*                                                                  
   *  Update call statistics                                          
   */                                                                 
  MSBUMP(memalign_calls, 1);                                          
                                                                      
  if (((alignment - 1) & alignment) != 0 || (alignment < sizeof(void *)))
ffc0944c:	2b 84 00 03 	cmplwi  cr7,r4,3                               
ffc09450:	40 9d ff f4 	ble+    cr7,ffc09444 <posix_memalign+0x20>     
                                                                      
  /*                                                                  
   *  rtems_memalign does all of the error checking work EXCEPT       
   *  for adding restrictionso on the alignment.                      
   */                                                                 
  return rtems_memalign( pointer, alignment, size );                  
ffc09454:	48 00 03 7c 	b       ffc097d0 <rtems_memalign>              
                                                                      

ffc05cc8 <printk>: /** * Kernel printf function requiring minimal infrastructure. */ void printk(const char *fmt, ...) {
ffc05cc8:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc05ccc:	7c 08 02 a6 	mflr    r0                                     
ffc05cd0:	90 81 00 1c 	stw     r4,28(r1)                              
ffc05cd4:	90 01 00 7c 	stw     r0,124(r1)                             
ffc05cd8:	90 a1 00 20 	stw     r5,32(r1)                              
ffc05cdc:	90 c1 00 24 	stw     r6,36(r1)                              
ffc05ce0:	90 e1 00 28 	stw     r7,40(r1)                              
ffc05ce4:	91 01 00 2c 	stw     r8,44(r1)                              
ffc05ce8:	91 21 00 30 	stw     r9,48(r1)                              
ffc05cec:	91 41 00 34 	stw     r10,52(r1)                             
ffc05cf0:	40 86 00 24 	bne-    cr1,ffc05d14 <printk+0x4c>             <== ALWAYS TAKEN
ffc05cf4:	d8 21 00 38 	stfd    f1,56(r1)                              <== NOT EXECUTED
ffc05cf8:	d8 41 00 40 	stfd    f2,64(r1)                              <== NOT EXECUTED
ffc05cfc:	d8 61 00 48 	stfd    f3,72(r1)                              <== NOT EXECUTED
ffc05d00:	d8 81 00 50 	stfd    f4,80(r1)                              <== NOT EXECUTED
ffc05d04:	d8 a1 00 58 	stfd    f5,88(r1)                              <== NOT EXECUTED
ffc05d08:	d8 c1 00 60 	stfd    f6,96(r1)                              <== NOT EXECUTED
ffc05d0c:	d8 e1 00 68 	stfd    f7,104(r1)                             <== NOT EXECUTED
ffc05d10:	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 */           
ffc05d14:	39 20 00 01 	li      r9,1                                   
ffc05d18:	99 21 00 08 	stb     r9,8(r1)                               
ffc05d1c:	39 20 00 00 	li      r9,0                                   
  vprintk(fmt, ap);                                                   
ffc05d20:	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 */           
ffc05d24:	99 21 00 09 	stb     r9,9(r1)                               
ffc05d28:	39 21 00 80 	addi    r9,r1,128                              
ffc05d2c:	91 21 00 0c 	stw     r9,12(r1)                              
ffc05d30:	39 21 00 18 	addi    r9,r1,24                               
ffc05d34:	91 21 00 10 	stw     r9,16(r1)                              
  vprintk(fmt, ap);                                                   
ffc05d38:	48 00 30 b9 	bl      ffc08df0 <vprintk>                     
  va_end(ap);        /* clean up when done */                         
}                                                                     
ffc05d3c:	80 01 00 7c 	lwz     r0,124(r1)                             
ffc05d40:	38 21 00 78 	addi    r1,r1,120                              
ffc05d44:	7c 08 03 a6 	mtlr    r0                                     
ffc05d48:	4e 80 00 20 	blr                                            
                                                                      

ffc07030 <printk_plugin>: int printk_plugin( void *ignored __attribute__((unused)), const char *format, ... ) {
ffc07030:	94 21 ff 90 	stwu    r1,-112(r1)                            
ffc07034:	7c 08 02 a6 	mflr    r0                                     
ffc07038:	90 a1 00 18 	stw     r5,24(r1)                              
ffc0703c:	90 01 00 74 	stw     r0,116(r1)                             
ffc07040:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc07044:	90 e1 00 20 	stw     r7,32(r1)                              
ffc07048:	91 01 00 24 	stw     r8,36(r1)                              
ffc0704c:	91 21 00 28 	stw     r9,40(r1)                              
ffc07050:	91 41 00 2c 	stw     r10,44(r1)                             
ffc07054:	40 86 00 24 	bne-    cr1,ffc07078 <printk_plugin+0x48>      <== ALWAYS TAKEN
ffc07058:	d8 21 00 30 	stfd    f1,48(r1)                              <== NOT EXECUTED
ffc0705c:	d8 41 00 38 	stfd    f2,56(r1)                              <== NOT EXECUTED
ffc07060:	d8 61 00 40 	stfd    f3,64(r1)                              <== NOT EXECUTED
ffc07064:	d8 81 00 48 	stfd    f4,72(r1)                              <== NOT EXECUTED
ffc07068:	d8 a1 00 50 	stfd    f5,80(r1)                              <== NOT EXECUTED
ffc0706c:	d8 c1 00 58 	stfd    f6,88(r1)                              <== NOT EXECUTED
ffc07070:	d8 e1 00 60 	stfd    f7,96(r1)                              <== NOT EXECUTED
ffc07074:	d9 01 00 68 	stfd    f8,104(r1)                             <== NOT EXECUTED
  va_list arg_pointer;                                                
                                                                      
  va_start (arg_pointer, format);                                     
ffc07078:	39 20 00 02 	li      r9,2                                   
ffc0707c:	99 21 00 08 	stb     r9,8(r1)                               
ffc07080:	39 20 00 00 	li      r9,0                                   
                                                                      
  vprintk( format, arg_pointer );                                     
ffc07084:	7c 83 23 78 	mr      r3,r4                                  
  ...                                                                 
)                                                                     
{                                                                     
  va_list arg_pointer;                                                
                                                                      
  va_start (arg_pointer, format);                                     
ffc07088:	99 21 00 09 	stb     r9,9(r1)                               
ffc0708c:	39 21 00 78 	addi    r9,r1,120                              
                                                                      
  vprintk( format, arg_pointer );                                     
ffc07090:	38 81 00 08 	addi    r4,r1,8                                
  ...                                                                 
)                                                                     
{                                                                     
  va_list arg_pointer;                                                
                                                                      
  va_start (arg_pointer, format);                                     
ffc07094:	91 21 00 0c 	stw     r9,12(r1)                              
ffc07098:	39 21 00 10 	addi    r9,r1,16                               
ffc0709c:	91 21 00 10 	stw     r9,16(r1)                              
                                                                      
  vprintk( format, arg_pointer );                                     
ffc070a0:	48 00 30 bd 	bl      ffc0a15c <vprintk>                     
                                                                      
  va_end(arg_pointer); /* clean up when done */                       
                                                                      
  return 0;                                                           
}                                                                     
ffc070a4:	38 60 00 00 	li      r3,0                                   
ffc070a8:	80 01 00 74 	lwz     r0,116(r1)                             
ffc070ac:	38 21 00 70 	addi    r1,r1,112                              
ffc070b0:	7c 08 03 a6 	mtlr    r0                                     
ffc070b4:	4e 80 00 20 	blr                                            
                                                                      

ffc0e97c <pthread_attr_setschedpolicy>: int pthread_attr_setschedpolicy( pthread_attr_t *attr, int policy ) { if ( !attr || !attr->is_initialized )
ffc0e97c:	7c 69 1b 79 	mr.     r9,r3                                  
ffc0e980:	41 82 00 38 	beq-    ffc0e9b8 <pthread_attr_setschedpolicy+0x3c>
ffc0e984:	81 49 00 00 	lwz     r10,0(r9)                              
    return EINVAL;                                                    
ffc0e988:	38 60 00 16 	li      r3,22                                  
int pthread_attr_setschedpolicy(                                      
  pthread_attr_t  *attr,                                              
  int              policy                                             
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
ffc0e98c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0e990:	4d be 00 20 	beqlr+  cr7                                    
    return EINVAL;                                                    
                                                                      
  switch ( policy ) {                                                 
ffc0e994:	2b 84 00 04 	cmplwi  cr7,r4,4                               
ffc0e998:	41 9d 00 28 	bgt-    cr7,ffc0e9c0 <pthread_attr_setschedpolicy+0x44>
ffc0e99c:	39 40 00 01 	li      r10,1                                  
ffc0e9a0:	7d 4a 20 30 	slw     r10,r10,r4                             
ffc0e9a4:	71 48 00 17 	andi.   r8,r10,23                              
ffc0e9a8:	41 82 00 18 	beq-    ffc0e9c0 <pthread_attr_setschedpolicy+0x44><== NEVER TAKEN
    case SCHED_OTHER:                                                 
    case SCHED_FIFO:                                                  
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      attr->schedpolicy = policy;                                     
ffc0e9ac:	90 89 00 14 	stw     r4,20(r9)                              
      return 0;                                                       
ffc0e9b0:	38 60 00 00 	li      r3,0                                   
ffc0e9b4:	4e 80 00 20 	blr                                            
  pthread_attr_t  *attr,                                              
  int              policy                                             
)                                                                     
{                                                                     
  if ( !attr || !attr->is_initialized )                               
    return EINVAL;                                                    
ffc0e9b8:	38 60 00 16 	li      r3,22                                  
ffc0e9bc:	4e 80 00 20 	blr                                            
    case SCHED_SPORADIC:                                              
      attr->schedpolicy = policy;                                     
      return 0;                                                       
                                                                      
    default:                                                          
      return ENOTSUP;                                                 
ffc0e9c0:	38 60 00 86 	li      r3,134                                 
  }                                                                   
}                                                                     
ffc0e9c4:	4e 80 00 20 	blr                                            
                                                                      

ffc098c8 <pthread_barrier_init>: int pthread_barrier_init( pthread_barrier_t *barrier, const pthread_barrierattr_t *attr, unsigned int count ) {
ffc098c8:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc098cc:	7c 08 02 a6 	mflr    r0                                     
ffc098d0:	93 e1 00 2c 	stw     r31,44(r1)                             
  const pthread_barrierattr_t   *the_attr;                            
                                                                      
  /*                                                                  
   *  Error check parameters                                          
   */                                                                 
  if ( !barrier )                                                     
ffc098d4:	7c 7f 1b 79 	mr.     r31,r3                                 
int pthread_barrier_init(                                             
  pthread_barrier_t           *barrier,                               
  const pthread_barrierattr_t *attr,                                  
  unsigned int                 count                                  
)                                                                     
{                                                                     
ffc098d8:	90 01 00 34 	stw     r0,52(r1)                              
ffc098dc:	93 81 00 20 	stw     r28,32(r1)                             
ffc098e0:	93 a1 00 24 	stw     r29,36(r1)                             
ffc098e4:	93 c1 00 28 	stw     r30,40(r1)                             
  const pthread_barrierattr_t   *the_attr;                            
                                                                      
  /*                                                                  
   *  Error check parameters                                          
   */                                                                 
  if ( !barrier )                                                     
ffc098e8:	41 82 00 0c 	beq-    ffc098f4 <pthread_barrier_init+0x2c>   
    return EINVAL;                                                    
                                                                      
  if ( count == 0 )                                                   
ffc098ec:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc098f0:	40 9e 00 28 	bne-    cr7,ffc09918 <pthread_barrier_init+0x50>
  switch ( the_attr->process_shared ) {                               
    case PTHREAD_PROCESS_PRIVATE:    /* only supported values */      
      break;                                                          
    case PTHREAD_PROCESS_SHARED:                                      
    default:                                                          
      return EINVAL;                                                  
ffc098f4:	38 60 00 16 	li      r3,22                                  
   * Exit the critical section and return the user an operational barrier
   */                                                                 
  *barrier = the_barrier->Object.id;                                  
  _Thread_Enable_dispatch();                                          
  return 0;                                                           
}                                                                     
ffc098f8:	80 01 00 34 	lwz     r0,52(r1)                              
ffc098fc:	83 81 00 20 	lwz     r28,32(r1)                             
ffc09900:	7c 08 03 a6 	mtlr    r0                                     
ffc09904:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc09908:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc0990c:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc09910:	38 21 00 30 	addi    r1,r1,48                               
ffc09914:	4e 80 00 20 	blr                                            
    return EINVAL;                                                    
                                                                      
  /*                                                                  
   * If the user passed in NULL, use the default attributes           
   */                                                                 
  if ( attr ) {                                                       
ffc09918:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc0991c:	7c 89 23 78 	mr      r9,r4                                  
ffc09920:	41 9e 00 7c 	beq-    cr7,ffc0999c <pthread_barrier_init+0xd4>
  }                                                                   
                                                                      
  /*                                                                  
   * Now start error checking the attributes that we are going to use 
   */                                                                 
  if ( !the_attr->is_initialized )                                    
ffc09924:	81 49 00 00 	lwz     r10,0(r9)                              
ffc09928:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0992c:	41 9e ff c8 	beq+    cr7,ffc098f4 <pthread_barrier_init+0x2c>
    return EINVAL;                                                    
                                                                      
  switch ( the_attr->process_shared ) {                               
ffc09930:	83 c9 00 04 	lwz     r30,4(r9)                              
ffc09934:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc09938:	40 be ff bc 	bne-    cr7,ffc098f4 <pthread_barrier_init+0x2c><== 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;                  
ffc0993c:	3d 20 00 00 	lis     r9,0                                   
  }                                                                   
                                                                      
  /*                                                                  
   * Convert from POSIX attributes to Core Barrier attributes         
   */                                                                 
  the_attributes.discipline    = CORE_BARRIER_AUTOMATIC_RELEASE;      
ffc09940:	93 c1 00 10 	stw     r30,16(r1)                             
ffc09944:	81 49 28 90 	lwz     r10,10384(r9)                          
  the_attributes.maximum_count = count;                               
ffc09948:	90 a1 00 14 	stw     r5,20(r1)                              
                                                                      
    ++level;                                                          
ffc0994c:	39 4a 00 01 	addi    r10,r10,1                              
    _Thread_Dispatch_disable_level = level;                           
ffc09950:	91 49 28 90 	stw     r10,10384(r9)                          
 *  This function allocates a barrier control block from              
 *  the inactive chain of free barrier control blocks.                
 */                                                                   
RTEMS_INLINE_ROUTINE POSIX_Barrier_Control *_POSIX_Barrier_Allocate( void )
{                                                                     
  return (POSIX_Barrier_Control *)                                    
ffc09954:	3f 80 00 00 	lis     r28,0                                  
ffc09958:	3b 9c 30 00 	addi    r28,r28,12288                          
ffc0995c:	7f 83 e3 78 	mr      r3,r28                                 
ffc09960:	48 00 29 71 	bl      ffc0c2d0 <_Objects_Allocate>           
   */                                                                 
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_barrier = _POSIX_Barrier_Allocate();                            
                                                                      
  if ( !the_barrier ) {                                               
ffc09964:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc09968:	41 82 00 4c 	beq-    ffc099b4 <pthread_barrier_init+0xec>   
    _Thread_Enable_dispatch();                                        
    return EAGAIN;                                                    
  }                                                                   
                                                                      
  _CORE_barrier_Initialize( &the_barrier->Barrier, &the_attributes ); 
ffc0996c:	38 7d 00 10 	addi    r3,r29,16                              
ffc09970:	38 81 00 10 	addi    r4,r1,16                               
ffc09974:	48 00 1d 59 	bl      ffc0b6cc <_CORE_barrier_Initialize>    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
ffc09978:	81 3d 00 08 	lwz     r9,8(r29)                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc0997c:	81 1c 00 1c 	lwz     r8,28(r28)                             
ffc09980:	55 2a 13 ba 	rlwinm  r10,r9,2,14,29                         
ffc09984:	7f a8 51 2e 	stwx    r29,r8,r10                             
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
ffc09988:	93 dd 00 0c 	stw     r30,12(r29)                            
  );                                                                  
                                                                      
  /*                                                                  
   * Exit the critical section and return the user an operational barrier
   */                                                                 
  *barrier = the_barrier->Object.id;                                  
ffc0998c:	91 3f 00 00 	stw     r9,0(r31)                              
  _Thread_Enable_dispatch();                                          
ffc09990:	48 00 3f 79 	bl      ffc0d908 <_Thread_Enable_dispatch>     
  return 0;                                                           
ffc09994:	38 60 00 00 	li      r3,0                                   
ffc09998:	4b ff ff 60 	b       ffc098f8 <pthread_barrier_init+0x30>   
   * If the user passed in NULL, use the default attributes           
   */                                                                 
  if ( attr ) {                                                       
    the_attr = attr;                                                  
  } else {                                                            
    (void) pthread_barrierattr_init( &my_attr );                      
ffc0999c:	38 61 00 08 	addi    r3,r1,8                                
ffc099a0:	90 a1 00 18 	stw     r5,24(r1)                              
ffc099a4:	4b ff fe 29 	bl      ffc097cc <pthread_barrierattr_init>    
    the_attr = &my_attr;                                              
ffc099a8:	39 21 00 08 	addi    r9,r1,8                                
ffc099ac:	80 a1 00 18 	lwz     r5,24(r1)                              
ffc099b0:	4b ff ff 74 	b       ffc09924 <pthread_barrier_init+0x5c>   
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_barrier = _POSIX_Barrier_Allocate();                            
                                                                      
  if ( !the_barrier ) {                                               
    _Thread_Enable_dispatch();                                        
ffc099b4:	48 00 3f 55 	bl      ffc0d908 <_Thread_Enable_dispatch>     
    return EAGAIN;                                                    
ffc099b8:	38 60 00 0b 	li      r3,11                                  
ffc099bc:	4b ff ff 3c 	b       ffc098f8 <pthread_barrier_init+0x30>   
                                                                      

ffc09078 <pthread_cleanup_push>: void pthread_cleanup_push( void (*routine)( void * ), void *arg ) {
ffc09078:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0907c:	7c 08 02 a6 	mflr    r0                                     
ffc09080:	93 c1 00 08 	stw     r30,8(r1)                              
  /*                                                                  
   *  The POSIX standard does not address what to do when the routine 
   *  is NULL.  It also does not address what happens when we cannot  
   *  allocate memory or anything else bad happens.                   
   */                                                                 
  if ( !routine )                                                     
ffc09084:	7c 7e 1b 79 	mr.     r30,r3                                 
                                                                      
void pthread_cleanup_push(                                            
  void   (*routine)( void * ),                                        
  void    *arg                                                        
)                                                                     
{                                                                     
ffc09088:	90 01 00 14 	stw     r0,20(r1)                              
ffc0908c:	93 e1 00 0c 	stw     r31,12(r1)                             
  /*                                                                  
   *  The POSIX standard does not address what to do when the routine 
   *  is NULL.  It also does not address what happens when we cannot  
   *  allocate memory or anything else bad happens.                   
   */                                                                 
  if ( !routine )                                                     
ffc09090:	41 82 00 60 	beq-    ffc090f0 <pthread_cleanup_push+0x78>   
   *                                                                  
   * 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;                  
ffc09094:	3d 20 00 00 	lis     r9,0                                   
ffc09098:	81 49 28 68 	lwz     r10,10344(r9)                          
ffc0909c:	7c 9f 23 78 	mr      r31,r4                                 
                                                                      
    ++level;                                                          
ffc090a0:	39 4a 00 01 	addi    r10,r10,1                              
    _Thread_Dispatch_disable_level = level;                           
ffc090a4:	91 49 28 68 	stw     r10,10344(r9)                          
    return;                                                           
                                                                      
  _Thread_Disable_dispatch();                                         
  handler = _Workspace_Allocate( sizeof( POSIX_Cancel_Handler_control ) );
ffc090a8:	38 60 00 10 	li      r3,16                                  
ffc090ac:	48 00 57 49 	bl      ffc0e7f4 <_Workspace_Allocate>         
                                                                      
  if ( handler ) {                                                    
ffc090b0:	7c 69 1b 79 	mr.     r9,r3                                  
ffc090b4:	41 82 00 24 	beq-    ffc090d8 <pthread_cleanup_push+0x60>   <== NEVER TAKEN
    thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
ffc090b8:	3d 40 00 00 	lis     r10,0                                  
ffc090bc:	81 4a 31 70 	lwz     r10,12656(r10)                         
    handler_stack = &thread_support->Cancellation_Handlers;           
                                                                      
    handler->routine = routine;                                       
    handler->arg = arg;                                               
                                                                      
    _Chain_Append( handler_stack, &handler->Node );                   
ffc090c0:	7d 24 4b 78 	mr      r4,r9                                  
  handler = _Workspace_Allocate( sizeof( POSIX_Cancel_Handler_control ) );
                                                                      
  if ( handler ) {                                                    
    thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
                                                                      
    handler_stack = &thread_support->Cancellation_Handlers;           
ffc090c4:	80 6a 01 50 	lwz     r3,336(r10)                            
                                                                      
    handler->routine = routine;                                       
ffc090c8:	93 c9 00 08 	stw     r30,8(r9)                              
    handler->arg = arg;                                               
                                                                      
    _Chain_Append( handler_stack, &handler->Node );                   
ffc090cc:	38 63 00 e4 	addi    r3,r3,228                              
    thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
                                                                      
    handler_stack = &thread_support->Cancellation_Handlers;           
                                                                      
    handler->routine = routine;                                       
    handler->arg = arg;                                               
ffc090d0:	93 e9 00 0c 	stw     r31,12(r9)                             
                                                                      
    _Chain_Append( handler_stack, &handler->Node );                   
ffc090d4:	48 00 1f 39 	bl      ffc0b00c <_Chain_Append>               
  }                                                                   
  _Thread_Enable_dispatch();                                          
}                                                                     
ffc090d8:	80 01 00 14 	lwz     r0,20(r1)                              
ffc090dc:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc090e0:	7c 08 03 a6 	mtlr    r0                                     
ffc090e4:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc090e8:	38 21 00 10 	addi    r1,r1,16                               
    handler->routine = routine;                                       
    handler->arg = arg;                                               
                                                                      
    _Chain_Append( handler_stack, &handler->Node );                   
  }                                                                   
  _Thread_Enable_dispatch();                                          
ffc090ec:	48 00 41 7c 	b       ffc0d268 <_Thread_Enable_dispatch>     
}                                                                     
ffc090f0:	80 01 00 14 	lwz     r0,20(r1)                              
ffc090f4:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc090f8:	7c 08 03 a6 	mtlr    r0                                     
ffc090fc:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc09100:	38 21 00 10 	addi    r1,r1,16                               
ffc09104:	4e 80 00 20 	blr                                            
                                                                      

ffc0a304 <pthread_cond_init>: */ int pthread_cond_init( pthread_cond_t *cond, const pthread_condattr_t *attr ) {
ffc0a304:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0a308:	7c 08 02 a6 	mflr    r0                                     
ffc0a30c:	93 e1 00 14 	stw     r31,20(r1)                             
  POSIX_Condition_variables_Control   *the_cond;                      
  const pthread_condattr_t            *the_attr;                      
                                                                      
  if ( attr ) the_attr = attr;                                        
ffc0a310:	7c 9f 23 79 	mr.     r31,r4                                 
 */                                                                   
int pthread_cond_init(                                                
  pthread_cond_t           *cond,                                     
  const pthread_condattr_t *attr                                      
)                                                                     
{                                                                     
ffc0a314:	93 c1 00 10 	stw     r30,16(r1)                             
ffc0a318:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0a31c:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0a320:	93 81 00 08 	stw     r28,8(r1)                              
ffc0a324:	93 a1 00 0c 	stw     r29,12(r1)                             
  POSIX_Condition_variables_Control   *the_cond;                      
  const pthread_condattr_t            *the_attr;                      
                                                                      
  if ( attr ) the_attr = attr;                                        
ffc0a328:	41 82 00 b4 	beq-    ffc0a3dc <pthread_cond_init+0xd8>      
  else        the_attr = &_POSIX_Condition_variables_Default_attributes;
                                                                      
  /*                                                                  
   *  Be careful about attributes when global!!!                      
   */                                                                 
  if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )           
ffc0a32c:	81 5f 00 04 	lwz     r10,4(r31)                             
    return EINVAL;                                                    
ffc0a330:	38 60 00 16 	li      r3,22                                  
  else        the_attr = &_POSIX_Condition_variables_Default_attributes;
                                                                      
  /*                                                                  
   *  Be careful about attributes when global!!!                      
   */                                                                 
  if ( the_attr->process_shared == PTHREAD_PROCESS_SHARED )           
ffc0a334:	2f 8a 00 01 	cmpwi   cr7,r10,1                              
ffc0a338:	41 9e 00 10 	beq-    cr7,ffc0a348 <pthread_cond_init+0x44>  <== NEVER TAKEN
    return EINVAL;                                                    
                                                                      
  if ( !the_attr->is_initialized )                                    
ffc0a33c:	81 5f 00 00 	lwz     r10,0(r31)                             
ffc0a340:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0a344:	40 9e 00 24 	bne-    cr7,ffc0a368 <pthread_cond_init+0x64>  
  *cond = the_cond->Object.id;                                        
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return 0;                                                           
}                                                                     
ffc0a348:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0a34c:	83 81 00 08 	lwz     r28,8(r1)                              
ffc0a350:	7c 08 03 a6 	mtlr    r0                                     
ffc0a354:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0a358:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0a35c:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0a360:	38 21 00 18 	addi    r1,r1,24                               
ffc0a364:	4e 80 00 20 	blr                                            
   *                                                                  
   * 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;                  
ffc0a368:	3d 20 00 00 	lis     r9,0                                   
ffc0a36c:	81 49 28 9c 	lwz     r10,10396(r9)                          
                                                                      
    ++level;                                                          
ffc0a370:	39 4a 00 01 	addi    r10,r10,1                              
    _Thread_Dispatch_disable_level = level;                           
ffc0a374:	91 49 28 9c 	stw     r10,10396(r9)                          
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE POSIX_Condition_variables_Control                
  *_POSIX_Condition_variables_Allocate( void )                        
{                                                                     
  return (POSIX_Condition_variables_Control *)                        
ffc0a378:	3f 80 00 00 	lis     r28,0                                  
ffc0a37c:	3b 9c 30 98 	addi    r28,r28,12440                          
ffc0a380:	7f 83 e3 78 	mr      r3,r28                                 
ffc0a384:	48 00 32 89 	bl      ffc0d60c <_Objects_Allocate>           
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  the_cond = _POSIX_Condition_variables_Allocate();                   
                                                                      
  if ( !the_cond ) {                                                  
ffc0a388:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc0a38c:	41 82 00 5c 	beq-    ffc0a3e8 <pthread_cond_init+0xe4>      
    _Thread_Enable_dispatch();                                        
    return ENOMEM;                                                    
  }                                                                   
                                                                      
  the_cond->process_shared  = the_attr->process_shared;               
ffc0a390:	81 3f 00 04 	lwz     r9,4(r31)                              
                                                                      
  the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;               
ffc0a394:	3b e0 00 00 	li      r31,0                                  
ffc0a398:	93 fd 00 14 	stw     r31,20(r29)                            
                                                                      
  _Thread_queue_Initialize(                                           
ffc0a39c:	3c a0 10 00 	lis     r5,4096                                
ffc0a3a0:	38 7d 00 18 	addi    r3,r29,24                              
  if ( !the_cond ) {                                                  
    _Thread_Enable_dispatch();                                        
    return ENOMEM;                                                    
  }                                                                   
                                                                      
  the_cond->process_shared  = the_attr->process_shared;               
ffc0a3a4:	91 3d 00 10 	stw     r9,16(r29)                             
                                                                      
  the_cond->Mutex = POSIX_CONDITION_VARIABLES_NO_MUTEX;               
                                                                      
  _Thread_queue_Initialize(                                           
ffc0a3a8:	38 80 00 00 	li      r4,0                                   
ffc0a3ac:	60 a5 08 00 	ori     r5,r5,2048                             
ffc0a3b0:	38 c0 00 74 	li      r6,116                                 
ffc0a3b4:	48 00 52 6d 	bl      ffc0f620 <_Thread_queue_Initialize>    
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
ffc0a3b8:	81 3d 00 08 	lwz     r9,8(r29)                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc0a3bc:	81 1c 00 1c 	lwz     r8,28(r28)                             
ffc0a3c0:	55 2a 13 ba 	rlwinm  r10,r9,2,14,29                         
ffc0a3c4:	7f a8 51 2e 	stwx    r29,r8,r10                             
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
ffc0a3c8:	93 fd 00 0c 	stw     r31,12(r29)                            
    &_POSIX_Condition_variables_Information,                          
    &the_cond->Object,                                                
    0                                                                 
  );                                                                  
                                                                      
  *cond = the_cond->Object.id;                                        
ffc0a3cc:	91 3e 00 00 	stw     r9,0(r30)                              
                                                                      
  _Thread_Enable_dispatch();                                          
ffc0a3d0:	48 00 48 75 	bl      ffc0ec44 <_Thread_Enable_dispatch>     
                                                                      
  return 0;                                                           
ffc0a3d4:	38 60 00 00 	li      r3,0                                   
ffc0a3d8:	4b ff ff 70 	b       ffc0a348 <pthread_cond_init+0x44>      
{                                                                     
  POSIX_Condition_variables_Control   *the_cond;                      
  const pthread_condattr_t            *the_attr;                      
                                                                      
  if ( attr ) the_attr = attr;                                        
  else        the_attr = &_POSIX_Condition_variables_Default_attributes;
ffc0a3dc:	3f e0 00 00 	lis     r31,0                                  
ffc0a3e0:	3b ff 27 e4 	addi    r31,r31,10212                          
ffc0a3e4:	4b ff ff 48 	b       ffc0a32c <pthread_cond_init+0x28>      
  _Thread_Disable_dispatch();                                         
                                                                      
  the_cond = _POSIX_Condition_variables_Allocate();                   
                                                                      
  if ( !the_cond ) {                                                  
    _Thread_Enable_dispatch();                                        
ffc0a3e8:	48 00 48 5d 	bl      ffc0ec44 <_Thread_Enable_dispatch>     
    return ENOMEM;                                                    
ffc0a3ec:	38 60 00 0c 	li      r3,12                                  
ffc0a3f0:	4b ff ff 58 	b       ffc0a348 <pthread_cond_init+0x44>      
                                                                      

ffc0954c <pthread_create>: pthread_t *thread, const pthread_attr_t *attr, void *(*start_routine)( void * ), void *arg ) {
ffc0954c:	94 21 ff 80 	stwu    r1,-128(r1)                            
ffc09550:	7c 08 02 a6 	mflr    r0                                     
ffc09554:	93 61 00 6c 	stw     r27,108(r1)                            
  int                                 schedpolicy = SCHED_RR;         
  struct sched_param                  schedparam;                     
  Objects_Name                        name;                           
  int                                 rc;                             
                                                                      
  if ( !start_routine )                                               
ffc09558:	7c bb 2b 79 	mr.     r27,r5                                 
  pthread_t              *thread,                                     
  const pthread_attr_t   *attr,                                       
  void                 *(*start_routine)( void * ),                   
  void                   *arg                                         
)                                                                     
{                                                                     
ffc0955c:	93 c1 00 78 	stw     r30,120(r1)                            
  struct sched_param                  schedparam;                     
  Objects_Name                        name;                           
  int                                 rc;                             
                                                                      
  if ( !start_routine )                                               
    return EFAULT;                                                    
ffc09560:	3b c0 00 0e 	li      r30,14                                 
  pthread_t              *thread,                                     
  const pthread_attr_t   *attr,                                       
  void                 *(*start_routine)( void * ),                   
  void                   *arg                                         
)                                                                     
{                                                                     
ffc09564:	90 01 00 84 	stw     r0,132(r1)                             
ffc09568:	92 81 00 50 	stw     r20,80(r1)                             
ffc0956c:	92 a1 00 54 	stw     r21,84(r1)                             
ffc09570:	92 c1 00 58 	stw     r22,88(r1)                             
ffc09574:	92 e1 00 5c 	stw     r23,92(r1)                             
ffc09578:	93 01 00 60 	stw     r24,96(r1)                             
ffc0957c:	93 21 00 64 	stw     r25,100(r1)                            
ffc09580:	93 41 00 68 	stw     r26,104(r1)                            
ffc09584:	93 81 00 70 	stw     r28,112(r1)                            
ffc09588:	93 a1 00 74 	stw     r29,116(r1)                            
ffc0958c:	93 e1 00 7c 	stw     r31,124(r1)                            
  int                                 schedpolicy = SCHED_RR;         
  struct sched_param                  schedparam;                     
  Objects_Name                        name;                           
  int                                 rc;                             
                                                                      
  if ( !start_routine )                                               
ffc09590:	41 82 00 28 	beq-    ffc095b8 <pthread_create+0x6c>         
    return EFAULT;                                                    
                                                                      
  the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes;      
ffc09594:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc09598:	7c 7d 1b 78 	mr      r29,r3                                 
ffc0959c:	7c dc 33 78 	mr      r28,r6                                 
ffc095a0:	7c 9f 23 78 	mr      r31,r4                                 
ffc095a4:	41 9e 01 b4 	beq-    cr7,ffc09758 <pthread_create+0x20c>    
                                                                      
  if ( !the_attr->is_initialized )                                    
ffc095a8:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc095ac:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc095b0:	40 9e 00 4c 	bne-    cr7,ffc095fc <pthread_create+0xb0>     
      schedpolicy = the_attr->schedpolicy;                            
      schedparam  = the_attr->schedparam;                             
      break;                                                          
                                                                      
    default:                                                          
      return EINVAL;                                                  
ffc095b4:	3b c0 00 16 	li      r30,22                                 
   */                                                                 
  *thread = the_thread->Object.id;                                    
                                                                      
  _RTEMS_Unlock_allocator();                                          
  return 0;                                                           
}                                                                     
ffc095b8:	80 01 00 84 	lwz     r0,132(r1)                             
ffc095bc:	7f c3 f3 78 	mr      r3,r30                                 
ffc095c0:	82 81 00 50 	lwz     r20,80(r1)                             
ffc095c4:	7c 08 03 a6 	mtlr    r0                                     
ffc095c8:	82 a1 00 54 	lwz     r21,84(r1)                             
ffc095cc:	82 c1 00 58 	lwz     r22,88(r1)                             
ffc095d0:	82 e1 00 5c 	lwz     r23,92(r1)                             
ffc095d4:	83 01 00 60 	lwz     r24,96(r1)                             
ffc095d8:	83 21 00 64 	lwz     r25,100(r1)                            
ffc095dc:	83 41 00 68 	lwz     r26,104(r1)                            
ffc095e0:	83 61 00 6c 	lwz     r27,108(r1)                            
ffc095e4:	83 81 00 70 	lwz     r28,112(r1)                            
ffc095e8:	83 a1 00 74 	lwz     r29,116(r1)                            
ffc095ec:	83 c1 00 78 	lwz     r30,120(r1)                            
ffc095f0:	83 e1 00 7c 	lwz     r31,124(r1)                            
ffc095f4:	38 21 00 80 	addi    r1,r1,128                              
ffc095f8:	4e 80 00 20 	blr                                            
   *  stack space if it is allowed to allocate it itself.             
   *                                                                  
   *  NOTE: If the user provides the stack we will let it drop below  
   *        twice the minimum.                                        
   */                                                                 
  if ( the_attr->stackaddr && !_Stack_Is_enough(the_attr->stacksize) )
ffc095fc:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc09600:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09604:	41 9e 00 18 	beq-    cr7,ffc0961c <pthread_create+0xd0>     
ffc09608:	3d 40 00 00 	lis     r10,0                                  
ffc0960c:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc09610:	81 4a 27 88 	lwz     r10,10120(r10)                         
ffc09614:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc09618:	41 9c ff 9c 	blt+    cr7,ffc095b4 <pthread_create+0x68>     
   *  If inheritsched is set to PTHREAD_INHERIT_SCHED, then this thread
   *  inherits scheduling attributes from the creating thread.   If it is
   *  PTHREAD_EXPLICIT_SCHED, then scheduling parameters come from the
   *  attributes structure.                                           
   */                                                                 
  switch ( the_attr->inheritsched ) {                                 
ffc0961c:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc09620:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc09624:	41 9e 01 40 	beq-    cr7,ffc09764 <pthread_create+0x218>    
ffc09628:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc0962c:	40 9e ff 88 	bne+    cr7,ffc095b4 <pthread_create+0x68>     
      schedparam  = api->schedparam;                                  
      break;                                                          
                                                                      
    case PTHREAD_EXPLICIT_SCHED:                                      
      schedpolicy = the_attr->schedpolicy;                            
      schedparam  = the_attr->schedparam;                             
ffc09630:	80 9f 00 18 	lwz     r4,24(r31)                             
ffc09634:	80 bf 00 1c 	lwz     r5,28(r31)                             
ffc09638:	80 df 00 20 	lwz     r6,32(r31)                             
ffc0963c:	80 ff 00 24 	lwz     r7,36(r31)                             
ffc09640:	81 1f 00 28 	lwz     r8,40(r31)                             
ffc09644:	81 5f 00 2c 	lwz     r10,44(r31)                            
ffc09648:	81 3f 00 30 	lwz     r9,48(r31)                             
      schedpolicy = api->schedpolicy;                                 
      schedparam  = api->schedparam;                                  
      break;                                                          
                                                                      
    case PTHREAD_EXPLICIT_SCHED:                                      
      schedpolicy = the_attr->schedpolicy;                            
ffc0964c:	83 5f 00 14 	lwz     r26,20(r31)                            
      schedparam  = the_attr->schedparam;                             
ffc09650:	90 81 00 18 	stw     r4,24(r1)                              
ffc09654:	90 a1 00 1c 	stw     r5,28(r1)                              
ffc09658:	90 c1 00 20 	stw     r6,32(r1)                              
ffc0965c:	90 e1 00 24 	stw     r7,36(r1)                              
ffc09660:	91 01 00 28 	stw     r8,40(r1)                              
ffc09664:	91 41 00 2c 	stw     r10,44(r1)                             
ffc09668:	91 21 00 30 	stw     r9,48(r1)                              
                                                                      
  /*                                                                  
   *  Check the contentionscope since rtems only supports PROCESS wide
   *  contention (i.e. no system wide contention).                    
   */                                                                 
  if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS )           
ffc0966c:	81 3f 00 0c 	lwz     r9,12(r31)                             
    return ENOTSUP;                                                   
ffc09670:	3b c0 00 86 	li      r30,134                                
                                                                      
  /*                                                                  
   *  Check the contentionscope since rtems only supports PROCESS wide
   *  contention (i.e. no system wide contention).                    
   */                                                                 
  if ( the_attr->contentionscope != PTHREAD_SCOPE_PROCESS )           
ffc09674:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09678:	40 9e ff 40 	bne+    cr7,ffc095b8 <pthread_create+0x6c>     
    return ENOTSUP;                                                   
                                                                      
  /*                                                                  
   *  Interpret the scheduling parameters.                            
   */                                                                 
  if ( !_POSIX_Priority_Is_valid( schedparam.sched_priority ) )       
ffc0967c:	80 61 00 18 	lwz     r3,24(r1)                              
ffc09680:	48 00 76 49 	bl      ffc10cc8 <_POSIX_Priority_Is_valid>    
ffc09684:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc09688:	41 9e ff 2c 	beq+    cr7,ffc095b4 <pthread_create+0x68>     <== NEVER TAKEN
                                                                      
RTEMS_INLINE_ROUTINE Priority_Control _POSIX_Priority_To_core(        
  int priority                                                        
)                                                                     
{                                                                     
  return (Priority_Control) (POSIX_SCHEDULER_MAXIMUM_PRIORITY - priority + 1);
ffc0968c:	3d 20 00 00 	lis     r9,0                                   
    return EINVAL;                                                    
                                                                      
  core_priority = _POSIX_Priority_To_core( schedparam.sched_priority );
ffc09690:	82 c1 00 18 	lwz     r22,24(r1)                             
                                                                      
  /*                                                                  
   *  Set the core scheduling policy information.                     
   */                                                                 
  rc = _POSIX_Thread_Translate_sched_param(                           
ffc09694:	7f 43 d3 78 	mr      r3,r26                                 
ffc09698:	8a a9 27 84 	lbz     r21,10116(r9)                          
ffc0969c:	38 81 00 18 	addi    r4,r1,24                               
ffc096a0:	38 a1 00 38 	addi    r5,r1,56                               
ffc096a4:	38 c1 00 34 	addi    r6,r1,52                               
ffc096a8:	48 00 76 49 	bl      ffc10cf0 <_POSIX_Thread_Translate_sched_param>
    schedpolicy,                                                      
    &schedparam,                                                      
    &budget_algorithm,                                                
    &budget_callout                                                   
  );                                                                  
  if ( rc )                                                           
ffc096ac:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc096b0:	40 82 ff 08 	bne+    ffc095b8 <pthread_create+0x6c>         
  #endif                                                              
                                                                      
  /*                                                                  
   *  Lock the allocator mutex for protection                         
   */                                                                 
  _RTEMS_Lock_allocator();                                            
ffc096b4:	3e e0 00 00 	lis     r23,0                                  
ffc096b8:	80 77 28 7c 	lwz     r3,10364(r23)                          
 *  _POSIX_Threads_Allocate                                           
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE Thread_Control *_POSIX_Threads_Allocate( void )  
{                                                                     
  return (Thread_Control *) _Objects_Allocate( &_POSIX_Threads_Information );
ffc096bc:	3f 20 00 00 	lis     r25,0                                  
ffc096c0:	3b 39 2e 60 	addi    r25,r25,11872                          
ffc096c4:	48 00 1f 59 	bl      ffc0b61c <_API_Mutex_Lock>             
ffc096c8:	7f 23 cb 78 	mr      r3,r25                                 
ffc096cc:	48 00 2b f9 	bl      ffc0c2c4 <_Objects_Allocate>           
ffc096d0:	7f 34 cb 78 	mr      r20,r25                                
   *  Allocate the thread control block.                              
   *                                                                  
   *  NOTE:  Global threads are not currently supported.              
   */                                                                 
  the_thread = _POSIX_Threads_Allocate();                             
  if ( !the_thread ) {                                                
ffc096d4:	7c 78 1b 79 	mr.     r24,r3                                 
ffc096d8:	41 82 00 70 	beq-    ffc09748 <pthread_create+0x1fc>        
                                                                      
static inline size_t _POSIX_Threads_Ensure_minimum_stack (            
  size_t size                                                         
)                                                                     
{                                                                     
  if ( size >= PTHREAD_MINIMUM_STACK_SIZE )                           
ffc096dc:	3d 20 00 00 	lis     r9,0                                   
ffc096e0:	80 c9 27 88 	lwz     r6,10120(r9)                           
                                                                      
  /*                                                                  
   *  Initialize the core thread for this task.                       
   */                                                                 
  name.name_p = NULL;   /* posix threads don't have a name by default */
  status = _Thread_Initialize(                                        
ffc096e4:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc096e8:	54 c6 08 3c 	rlwinm  r6,r6,1,0,30                           
ffc096ec:	93 c1 00 48 	stw     r30,72(r1)                             
ffc096f0:	7f 86 48 40 	cmplw   cr7,r6,r9                              
ffc096f4:	80 bf 00 04 	lwz     r5,4(r31)                              
ffc096f8:	40 9c 00 08 	bge-    cr7,ffc09700 <pthread_create+0x1b4>    
ffc096fc:	7d 26 4b 78 	mr      r6,r9                                  
ffc09700:	81 21 00 34 	lwz     r9,52(r1)                              
ffc09704:	7e 83 a3 78 	mr      r3,r20                                 
ffc09708:	81 41 00 38 	lwz     r10,56(r1)                             
ffc0970c:	7f 04 c3 78 	mr      r4,r24                                 
ffc09710:	91 21 00 08 	stw     r9,8(r1)                               
ffc09714:	39 20 00 00 	li      r9,0                                   
ffc09718:	38 e0 00 01 	li      r7,1                                   
ffc0971c:	91 21 00 0c 	stw     r9,12(r1)                              
ffc09720:	39 21 00 48 	addi    r9,r1,72                               
ffc09724:	7d 16 a8 50 	subf    r8,r22,r21                             
ffc09728:	91 21 00 10 	stw     r9,16(r1)                              
ffc0972c:	39 20 00 01 	li      r9,1                                   
ffc09730:	48 00 42 81 	bl      ffc0d9b0 <_Thread_Initialize>          
    budget_callout,                                                   
    0,                    /* isr level */                             
    name                  /* posix threads don't have a name */       
  );                                                                  
                                                                      
  if ( !status ) {                                                    
ffc09734:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc09738:	40 9e 00 78 	bne-    cr7,ffc097b0 <pthread_create+0x264>    
                                                                      
RTEMS_INLINE_ROUTINE void _POSIX_Threads_Free (                       
  Thread_Control *the_pthread                                         
)                                                                     
{                                                                     
  _Objects_Free( &_POSIX_Threads_Information, &the_pthread->Object ); 
ffc0973c:	7f 23 cb 78 	mr      r3,r25                                 
ffc09740:	7f 04 c3 78 	mr      r4,r24                                 
ffc09744:	48 00 2f 91 	bl      ffc0c6d4 <_Objects_Free>               
    _POSIX_Threads_Free( the_thread );                                
    _RTEMS_Unlock_allocator();                                        
ffc09748:	80 77 28 7c 	lwz     r3,10364(r23)                          
    return EAGAIN;                                                    
ffc0974c:	3b c0 00 0b 	li      r30,11                                 
    name                  /* posix threads don't have a name */       
  );                                                                  
                                                                      
  if ( !status ) {                                                    
    _POSIX_Threads_Free( the_thread );                                
    _RTEMS_Unlock_allocator();                                        
ffc09750:	48 00 1f 15 	bl      ffc0b664 <_API_Mutex_Unlock>           
ffc09754:	4b ff fe 64 	b       ffc095b8 <pthread_create+0x6c>         
  int                                 rc;                             
                                                                      
  if ( !start_routine )                                               
    return EFAULT;                                                    
                                                                      
  the_attr = (attr) ? attr : &_POSIX_Threads_Default_attributes;      
ffc09758:	3f e0 ff c2 	lis     r31,-62                                
ffc0975c:	3b ff 16 1c 	addi    r31,r31,5660                           
ffc09760:	4b ff fe 48 	b       ffc095a8 <pthread_create+0x5c>         
   *  PTHREAD_EXPLICIT_SCHED, then scheduling parameters come from the
   *  attributes structure.                                           
   */                                                                 
  switch ( the_attr->inheritsched ) {                                 
    case PTHREAD_INHERIT_SCHED:                                       
      api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];    
ffc09764:	3d 20 00 00 	lis     r9,0                                   
ffc09768:	81 29 31 90 	lwz     r9,12688(r9)                           
ffc0976c:	81 29 01 50 	lwz     r9,336(r9)                             
      schedpolicy = api->schedpolicy;                                 
      schedparam  = api->schedparam;                                  
ffc09770:	80 69 00 88 	lwz     r3,136(r9)                             
ffc09774:	80 89 00 8c 	lwz     r4,140(r9)                             
ffc09778:	80 a9 00 90 	lwz     r5,144(r9)                             
ffc0977c:	80 c9 00 94 	lwz     r6,148(r9)                             
ffc09780:	80 e9 00 98 	lwz     r7,152(r9)                             
ffc09784:	81 09 00 9c 	lwz     r8,156(r9)                             
ffc09788:	81 49 00 a0 	lwz     r10,160(r9)                            
   *  attributes structure.                                           
   */                                                                 
  switch ( the_attr->inheritsched ) {                                 
    case PTHREAD_INHERIT_SCHED:                                       
      api = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];    
      schedpolicy = api->schedpolicy;                                 
ffc0978c:	83 49 00 84 	lwz     r26,132(r9)                            
      schedparam  = api->schedparam;                                  
ffc09790:	90 61 00 18 	stw     r3,24(r1)                              
ffc09794:	90 81 00 1c 	stw     r4,28(r1)                              
ffc09798:	90 a1 00 20 	stw     r5,32(r1)                              
ffc0979c:	90 c1 00 24 	stw     r6,36(r1)                              
ffc097a0:	90 e1 00 28 	stw     r7,40(r1)                              
ffc097a4:	91 01 00 2c 	stw     r8,44(r1)                              
ffc097a8:	91 41 00 30 	stw     r10,48(r1)                             
      break;                                                          
ffc097ac:	4b ff fe c0 	b       ffc0966c <pthread_create+0x120>        
  }                                                                   
                                                                      
  /*                                                                  
   *  finish initializing the per API structure                       
   */                                                                 
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
ffc097b0:	83 38 01 50 	lwz     r25,336(r24)                           
                                                                      
  api->Attributes  = *the_attr;                                       
ffc097b4:	7f e4 fb 78 	mr      r4,r31                                 
ffc097b8:	38 a0 00 40 	li      r5,64                                  
ffc097bc:	7f 23 cb 78 	mr      r3,r25                                 
ffc097c0:	48 00 af 41 	bl      ffc14700 <memcpy>                      
  api->detachstate = the_attr->detachstate;                           
ffc097c4:	81 3f 00 3c 	lwz     r9,60(r31)                             
  api->schedpolicy = schedpolicy;                                     
ffc097c8:	93 59 00 84 	stw     r26,132(r25)                           
  api->schedparam  = schedparam;                                      
                                                                      
  /*                                                                  
   *  POSIX threads are allocated and started in one operation.       
   */                                                                 
  status = _Thread_Start(                                             
ffc097cc:	7f 03 c3 78 	mr      r3,r24                                 
ffc097d0:	38 80 00 01 	li      r4,1                                   
   *  finish initializing the per API structure                       
   */                                                                 
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
                                                                      
  api->Attributes  = *the_attr;                                       
  api->detachstate = the_attr->detachstate;                           
ffc097d4:	91 39 00 40 	stw     r9,64(r25)                             
  api->schedparam  = schedparam;                                      
                                                                      
  /*                                                                  
   *  POSIX threads are allocated and started in one operation.       
   */                                                                 
  status = _Thread_Start(                                             
ffc097d8:	7f 65 db 78 	mr      r5,r27                                 
ffc097dc:	7f 86 e3 78 	mr      r6,r28                                 
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
                                                                      
  api->Attributes  = *the_attr;                                       
  api->detachstate = the_attr->detachstate;                           
  api->schedpolicy = schedpolicy;                                     
  api->schedparam  = schedparam;                                      
ffc097e0:	81 21 00 18 	lwz     r9,24(r1)                              
                                                                      
  /*                                                                  
   *  POSIX threads are allocated and started in one operation.       
   */                                                                 
  status = _Thread_Start(                                             
ffc097e4:	38 e0 00 00 	li      r7,0                                   
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
                                                                      
  api->Attributes  = *the_attr;                                       
  api->detachstate = the_attr->detachstate;                           
  api->schedpolicy = schedpolicy;                                     
  api->schedparam  = schedparam;                                      
ffc097e8:	91 39 00 88 	stw     r9,136(r25)                            
ffc097ec:	81 21 00 1c 	lwz     r9,28(r1)                              
ffc097f0:	91 39 00 8c 	stw     r9,140(r25)                            
ffc097f4:	81 21 00 20 	lwz     r9,32(r1)                              
ffc097f8:	91 39 00 90 	stw     r9,144(r25)                            
ffc097fc:	81 21 00 24 	lwz     r9,36(r1)                              
ffc09800:	91 39 00 94 	stw     r9,148(r25)                            
ffc09804:	81 21 00 28 	lwz     r9,40(r1)                              
ffc09808:	91 39 00 98 	stw     r9,152(r25)                            
ffc0980c:	81 21 00 2c 	lwz     r9,44(r1)                              
ffc09810:	91 39 00 9c 	stw     r9,156(r25)                            
ffc09814:	81 21 00 30 	lwz     r9,48(r1)                              
ffc09818:	91 39 00 a0 	stw     r9,160(r25)                            
                                                                      
  /*                                                                  
   *  POSIX threads are allocated and started in one operation.       
   */                                                                 
  status = _Thread_Start(                                             
ffc0981c:	48 00 4d b9 	bl      ffc0e5d4 <_Thread_Start>               
      _RTEMS_Unlock_allocator();                                      
      return EINVAL;                                                  
    }                                                                 
  #endif                                                              
                                                                      
  if ( schedpolicy == SCHED_SPORADIC ) {                              
ffc09820:	2f 9a 00 04 	cmpwi   cr7,r26,4                              
ffc09824:	41 9e 00 18 	beq-    cr7,ffc0983c <pthread_create+0x2f0>    
  }                                                                   
                                                                      
  /*                                                                  
   *  Return the id and indicate we successfully created the thread   
   */                                                                 
  *thread = the_thread->Object.id;                                    
ffc09828:	81 38 00 08 	lwz     r9,8(r24)                              
                                                                      
  _RTEMS_Unlock_allocator();                                          
ffc0982c:	80 77 28 7c 	lwz     r3,10364(r23)                          
  }                                                                   
                                                                      
  /*                                                                  
   *  Return the id and indicate we successfully created the thread   
   */                                                                 
  *thread = the_thread->Object.id;                                    
ffc09830:	91 3d 00 00 	stw     r9,0(r29)                              
                                                                      
  _RTEMS_Unlock_allocator();                                          
ffc09834:	48 00 1e 31 	bl      ffc0b664 <_API_Mutex_Unlock>           
ffc09838:	4b ff fd 80 	b       ffc095b8 <pthread_create+0x6c>         
      return EINVAL;                                                  
    }                                                                 
  #endif                                                              
                                                                      
  if ( schedpolicy == SCHED_SPORADIC ) {                              
    _Watchdog_Insert_ticks(                                           
ffc0983c:	38 79 00 90 	addi    r3,r25,144                             
ffc09840:	48 00 4e 5d 	bl      ffc0e69c <_Timespec_To_ticks>          
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc09844:	38 99 00 a8 	addi    r4,r25,168                             
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
ffc09848:	90 79 00 b4 	stw     r3,180(r25)                            
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc0984c:	3c 60 00 00 	lis     r3,0                                   
ffc09850:	38 63 2d 88 	addi    r3,r3,11656                            
ffc09854:	48 00 51 79 	bl      ffc0e9cc <_Watchdog_Insert>            
ffc09858:	4b ff ff d0 	b       ffc09828 <pthread_create+0x2dc>        
                                                                      

ffc1e50c <pthread_kill>: int pthread_kill( pthread_t thread, int sig ) {
ffc1e50c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc1e510:	7c 08 02 a6 	mflr    r0                                     
ffc1e514:	93 e1 00 24 	stw     r31,36(r1)                             
  POSIX_API_Control  *api;                                            
  Thread_Control     *the_thread;                                     
  Objects_Locations  location;                                        
                                                                      
  if ( !sig )                                                         
ffc1e518:	7c 9f 23 79 	mr.     r31,r4                                 
                                                                      
int pthread_kill(                                                     
  pthread_t   thread,                                                 
  int         sig                                                     
)                                                                     
{                                                                     
ffc1e51c:	90 01 00 2c 	stw     r0,44(r1)                              
ffc1e520:	93 81 00 18 	stw     r28,24(r1)                             
ffc1e524:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc1e528:	93 c1 00 20 	stw     r30,32(r1)                             
  POSIX_API_Control  *api;                                            
  Thread_Control     *the_thread;                                     
  Objects_Locations  location;                                        
                                                                      
  if ( !sig )                                                         
ffc1e52c:	41 82 00 c8 	beq-    ffc1e5f4 <pthread_kill+0xe8>           
                                                                      
static inline bool is_valid_signo(                                    
  int signo                                                           
)                                                                     
{                                                                     
  return ((signo) >= 1 && (signo) <= 32 );                            
ffc1e530:	3b bf ff ff 	addi    r29,r31,-1                             
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
ffc1e534:	2b 9d 00 1f 	cmplwi  cr7,r29,31                             
ffc1e538:	41 9d 00 bc 	bgt-    cr7,ffc1e5f4 <pthread_kill+0xe8>       
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  the_thread = _Thread_Get( thread, &location );                      
ffc1e53c:	38 81 00 08 	addi    r4,r1,8                                
ffc1e540:	4b fe e5 9d 	bl      ffc0cadc <_Thread_Get>                 
  switch ( location ) {                                               
ffc1e544:	81 21 00 08 	lwz     r9,8(r1)                               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  the_thread = _Thread_Get( thread, &location );                      
ffc1e548:	7c 7e 1b 78 	mr      r30,r3                                 
  switch ( location ) {                                               
ffc1e54c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1e550:	40 9e 00 b8 	bne-    cr7,ffc1e608 <pthread_kill+0xfc>       <== NEVER TAKEN
ffc1e554:	3c 60 00 00 	lis     r3,0                                   
ffc1e558:	38 63 22 20 	addi    r3,r3,8736                             
ffc1e55c:	4b fe c0 c5 	bl      ffc0a620 <_API_extensions_Add_post_switch>
                                                                      
      api = the_thread->API_Extensions[ THREAD_API_POSIX ];           
                                                                      
      if ( sig ) {                                                    
                                                                      
        if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) {  
ffc1e560:	1d 1f 00 0c 	mulli   r8,r31,12                              
       *  If sig == 0 then just validate arguments                    
       */                                                             
                                                                      
      _POSIX_signals_Add_post_switch_extension();                     
                                                                      
      api = the_thread->API_Extensions[ THREAD_API_POSIX ];           
ffc1e564:	81 3e 01 50 	lwz     r9,336(r30)                            
                                                                      
      if ( sig ) {                                                    
                                                                      
        if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) {  
ffc1e568:	3d 40 00 00 	lis     r10,0                                  
ffc1e56c:	39 4a 32 20 	addi    r10,r10,12832                          
ffc1e570:	7d 4a 42 14 	add     r10,r10,r8                             
ffc1e574:	81 4a 00 08 	lwz     r10,8(r10)                             
ffc1e578:	2f 8a 00 01 	cmpwi   cr7,r10,1                              
ffc1e57c:	41 9e 00 48 	beq-    cr7,ffc1e5c4 <pthread_kill+0xb8>       
          return 0;                                                   
        }                                                             
                                                                      
        /* XXX critical section */                                    
                                                                      
        api->signals_pending |= signo_to_mask( sig );                 
ffc1e580:	81 49 00 d4 	lwz     r10,212(r9)                            
                                                                      
static inline sigset_t signo_to_mask(                                 
  uint32_t sig                                                        
)                                                                     
{                                                                     
  return 1u << (sig - 1);                                             
ffc1e584:	3b 80 00 01 	li      r28,1                                  
ffc1e588:	7f 9d e8 30 	slw     r29,r28,r29                            
ffc1e58c:	7d 4a eb 78 	or      r10,r10,r29                            
ffc1e590:	91 49 00 d4 	stw     r10,212(r9)                            
                                                                      
        (void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL );
ffc1e594:	7f c3 f3 78 	mr      r3,r30                                 
ffc1e598:	7f e4 fb 78 	mr      r4,r31                                 
ffc1e59c:	38 a0 00 00 	li      r5,0                                   
ffc1e5a0:	4b ff fe 11 	bl      ffc1e3b0 <_POSIX_signals_Unblock_thread>
                                                                      
        if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
ffc1e5a4:	3d 20 00 00 	lis     r9,0                                   
ffc1e5a8:	39 29 31 a0 	addi    r9,r9,12704                            
ffc1e5ac:	81 49 00 08 	lwz     r10,8(r9)                              
ffc1e5b0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1e5b4:	41 9e 00 10 	beq-    cr7,ffc1e5c4 <pthread_kill+0xb8>       
ffc1e5b8:	81 49 00 10 	lwz     r10,16(r9)                             
ffc1e5bc:	7f 9e 50 00 	cmpw    cr7,r30,r10                            
ffc1e5c0:	41 9e 00 2c 	beq-    cr7,ffc1e5ec <pthread_kill+0xe0>       
      api = the_thread->API_Extensions[ THREAD_API_POSIX ];           
                                                                      
      if ( sig ) {                                                    
                                                                      
        if ( _POSIX_signals_Vectors[ sig ].sa_handler == SIG_IGN ) {  
          _Thread_Enable_dispatch();                                  
ffc1e5c4:	4b fe e4 fd 	bl      ffc0cac0 <_Thread_Enable_dispatch>     
          return 0;                                                   
ffc1e5c8:	38 60 00 00 	li      r3,0                                   
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( ESRCH );                      
}                                                                     
ffc1e5cc:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc1e5d0:	83 81 00 18 	lwz     r28,24(r1)                             
ffc1e5d4:	7c 08 03 a6 	mtlr    r0                                     
ffc1e5d8:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc1e5dc:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc1e5e0:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc1e5e4:	38 21 00 28 	addi    r1,r1,40                               
ffc1e5e8:	4e 80 00 20 	blr                                            
        api->signals_pending |= signo_to_mask( sig );                 
                                                                      
        (void) _POSIX_signals_Unblock_thread( the_thread, sig, NULL );
                                                                      
        if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
	  _Thread_Dispatch_necessary = true;                                 
ffc1e5ec:	9b 89 00 0c 	stb     r28,12(r9)                             
ffc1e5f0:	4b ff ff d4 	b       ffc1e5c4 <pthread_kill+0xb8>           
                                                                      
  if ( !sig )                                                         
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc1e5f4:	4b ff 4a 85 	bl      ffc13078 <__errno>                     
ffc1e5f8:	39 20 00 16 	li      r9,22                                  
ffc1e5fc:	91 23 00 00 	stw     r9,0(r3)                               
ffc1e600:	38 60 ff ff 	li      r3,-1                                  
ffc1e604:	4b ff ff c8 	b       ffc1e5cc <pthread_kill+0xc0>           
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( ESRCH );                      
ffc1e608:	4b ff 4a 71 	bl      ffc13078 <__errno>                     <== NOT EXECUTED
ffc1e60c:	39 20 00 03 	li      r9,3                                   <== NOT EXECUTED
ffc1e610:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1e614:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc1e618:	4b ff ff b4 	b       ffc1e5cc <pthread_kill+0xc0>           <== NOT EXECUTED
                                                                      

ffc0ba9c <pthread_mutex_timedlock>: */ int pthread_mutex_timedlock( pthread_mutex_t *mutex, const struct timespec *abstime ) {
ffc0ba9c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0baa0:	7c 08 02 a6 	mflr    r0                                     
ffc0baa4:	93 c1 00 18 	stw     r30,24(r1)                             
ffc0baa8:	7c 7e 1b 78 	mr      r30,r3                                 
   *                                                                  
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
ffc0baac:	7c 83 23 78 	mr      r3,r4                                  
ffc0bab0:	38 81 00 08 	addi    r4,r1,8                                
 */                                                                   
int pthread_mutex_timedlock(                                          
  pthread_mutex_t       *mutex,                                       
  const struct timespec *abstime                                      
)                                                                     
{                                                                     
ffc0bab4:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc0bab8:	90 01 00 24 	stw     r0,36(r1)                              
   *                                                                  
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
ffc0babc:	48 00 01 11 	bl      ffc0bbcc <_POSIX_Absolute_timeout_to_ticks>
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
ffc0bac0:	2f 83 00 03 	cmpwi   cr7,r3,3                               
   *                                                                  
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
ffc0bac4:	7c 7f 1b 78 	mr      r31,r3                                 
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
ffc0bac8:	41 9e 00 34 	beq-    cr7,ffc0bafc <pthread_mutex_timedlock+0x60>
    do_wait = false;                                                  
                                                                      
  lock_status = _POSIX_Mutex_Lock_support( mutex, do_wait, ticks );   
ffc0bacc:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc0bad0:	7f c3 f3 78 	mr      r3,r30                                 
ffc0bad4:	38 80 00 00 	li      r4,0                                   
ffc0bad8:	4b ff fe 71 	bl      ffc0b948 <_POSIX_Mutex_Lock_support>   
   *  This service only gives us the option to block.  We used a polling
   *  attempt to lock if the abstime was not in the future.  If we did
   *  not obtain the mutex, then not look at the status immediately,  
   *  make sure the right reason is returned.                         
   */                                                                 
  if ( !do_wait && (lock_status == EBUSY) ) {                         
ffc0badc:	2f 83 00 10 	cmpwi   cr7,r3,16                              
ffc0bae0:	41 9e 00 44 	beq-    cr7,ffc0bb24 <pthread_mutex_timedlock+0x88>
         status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                    
      return ETIMEDOUT;                                               
  }                                                                   
                                                                      
  return lock_status;                                                 
}                                                                     
ffc0bae4:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0bae8:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0baec:	7c 08 03 a6 	mtlr    r0                                     
ffc0baf0:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0baf4:	38 21 00 20 	addi    r1,r1,32                               
ffc0baf8:	4e 80 00 20 	blr                                            
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  lock_status = _POSIX_Mutex_Lock_support( mutex, do_wait, ticks );   
ffc0bafc:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc0bb00:	7f c3 f3 78 	mr      r3,r30                                 
ffc0bb04:	38 80 00 01 	li      r4,1                                   
ffc0bb08:	4b ff fe 41 	bl      ffc0b948 <_POSIX_Mutex_Lock_support>   
         status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                    
      return ETIMEDOUT;                                               
  }                                                                   
                                                                      
  return lock_status;                                                 
}                                                                     
ffc0bb0c:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0bb10:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0bb14:	7c 08 03 a6 	mtlr    r0                                     
ffc0bb18:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0bb1c:	38 21 00 20 	addi    r1,r1,32                               
ffc0bb20:	4e 80 00 20 	blr                                            
   *  attempt to lock if the abstime was not in the future.  If we did
   *  not obtain the mutex, then not look at the status immediately,  
   *  make sure the right reason is returned.                         
   */                                                                 
  if ( !do_wait && (lock_status == EBUSY) ) {                         
    if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )                   
ffc0bb24:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0bb28:	40 9e 00 0c 	bne-    cr7,ffc0bb34 <pthread_mutex_timedlock+0x98><== ALWAYS TAKEN
      return EINVAL;                                                  
ffc0bb2c:	38 60 00 16 	li      r3,22                                  <== NOT EXECUTED
ffc0bb30:	4b ff ff b4 	b       ffc0bae4 <pthread_mutex_timedlock+0x48><== NOT EXECUTED
    if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||               
ffc0bb34:	3b ff ff ff 	addi    r31,r31,-1                             
ffc0bb38:	2b 9f 00 01 	cmplwi  cr7,r31,1                              
ffc0bb3c:	41 9d ff a8 	bgt+    cr7,ffc0bae4 <pthread_mutex_timedlock+0x48><== NEVER TAKEN
         status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                    
      return ETIMEDOUT;                                               
ffc0bb40:	38 60 00 74 	li      r3,116                                 
ffc0bb44:	4b ff ff a0 	b       ffc0bae4 <pthread_mutex_timedlock+0x48>
                                                                      

ffc09df8 <pthread_once>: int pthread_once( pthread_once_t *once_control, void (*init_routine)(void) ) {
ffc09df8:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc09dfc:	7c 08 02 a6 	mflr    r0                                     
ffc09e00:	93 e1 00 1c 	stw     r31,28(r1)                             
  if ( !once_control || !init_routine )                               
ffc09e04:	7c 7f 1b 79 	mr.     r31,r3                                 
                                                                      
int pthread_once(                                                     
  pthread_once_t  *once_control,                                      
  void           (*init_routine)(void)                                
)                                                                     
{                                                                     
ffc09e08:	90 01 00 24 	stw     r0,36(r1)                              
ffc09e0c:	93 c1 00 18 	stw     r30,24(r1)                             
  if ( !once_control || !init_routine )                               
ffc09e10:	41 82 00 84 	beq-    ffc09e94 <pthread_once+0x9c>           
ffc09e14:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc09e18:	7c 9e 23 78 	mr      r30,r4                                 
    return EINVAL;                                                    
ffc09e1c:	38 60 00 16 	li      r3,22                                  
int pthread_once(                                                     
  pthread_once_t  *once_control,                                      
  void           (*init_routine)(void)                                
)                                                                     
{                                                                     
  if ( !once_control || !init_routine )                               
ffc09e20:	41 9e 00 14 	beq-    cr7,ffc09e34 <pthread_once+0x3c>       
    return EINVAL;                                                    
                                                                      
  if ( !once_control->init_executed ) {                               
ffc09e24:	81 3f 00 04 	lwz     r9,4(r31)                              
      once_control->init_executed = true;                             
      (*init_routine)();                                              
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
  }                                                                   
  return 0;                                                           
ffc09e28:	38 60 00 00 	li      r3,0                                   
)                                                                     
{                                                                     
  if ( !once_control || !init_routine )                               
    return EINVAL;                                                    
                                                                      
  if ( !once_control->init_executed ) {                               
ffc09e2c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09e30:	41 9e 00 1c 	beq-    cr7,ffc09e4c <pthread_once+0x54>       
      (*init_routine)();                                              
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
  }                                                                   
  return 0;                                                           
}                                                                     
ffc09e34:	80 01 00 24 	lwz     r0,36(r1)                              
ffc09e38:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc09e3c:	7c 08 03 a6 	mtlr    r0                                     
ffc09e40:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc09e44:	38 21 00 20 	addi    r1,r1,32                               
ffc09e48:	4e 80 00 20 	blr                                            
  if ( !once_control || !init_routine )                               
    return EINVAL;                                                    
                                                                      
  if ( !once_control->init_executed ) {                               
    rtems_mode saveMode;                                              
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
ffc09e4c:	38 60 01 00 	li      r3,256                                 
ffc09e50:	38 80 01 00 	li      r4,256                                 
ffc09e54:	38 a1 00 08 	addi    r5,r1,8                                
ffc09e58:	48 00 0f 5d 	bl      ffc0adb4 <rtems_task_mode>             
    if ( !once_control->init_executed ) {                             
ffc09e5c:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc09e60:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09e64:	41 9e 00 4c 	beq-    cr7,ffc09eb0 <pthread_once+0xb8>       <== ALWAYS TAKEN
      once_control->is_initialized = true;                            
      once_control->init_executed = true;                             
      (*init_routine)();                                              
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
ffc09e68:	80 61 00 08 	lwz     r3,8(r1)                               
ffc09e6c:	38 a1 00 08 	addi    r5,r1,8                                
ffc09e70:	38 80 01 00 	li      r4,256                                 
ffc09e74:	48 00 0f 41 	bl      ffc0adb4 <rtems_task_mode>             
  }                                                                   
  return 0;                                                           
}                                                                     
ffc09e78:	80 01 00 24 	lwz     r0,36(r1)                              
ffc09e7c:	83 c1 00 18 	lwz     r30,24(r1)                             
      once_control->init_executed = true;                             
      (*init_routine)();                                              
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
  }                                                                   
  return 0;                                                           
ffc09e80:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc09e84:	7c 08 03 a6 	mtlr    r0                                     
ffc09e88:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc09e8c:	38 21 00 20 	addi    r1,r1,32                               
ffc09e90:	4e 80 00 20 	blr                                            
ffc09e94:	80 01 00 24 	lwz     r0,36(r1)                              
  pthread_once_t  *once_control,                                      
  void           (*init_routine)(void)                                
)                                                                     
{                                                                     
  if ( !once_control || !init_routine )                               
    return EINVAL;                                                    
ffc09e98:	38 60 00 16 	li      r3,22                                  
      (*init_routine)();                                              
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
  }                                                                   
  return 0;                                                           
}                                                                     
ffc09e9c:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc09ea0:	7c 08 03 a6 	mtlr    r0                                     
ffc09ea4:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc09ea8:	38 21 00 20 	addi    r1,r1,32                               
ffc09eac:	4e 80 00 20 	blr                                            
                                                                      
  if ( !once_control->init_executed ) {                               
    rtems_mode saveMode;                                              
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
    if ( !once_control->init_executed ) {                             
      once_control->is_initialized = true;                            
ffc09eb0:	39 20 00 01 	li      r9,1                                   
      once_control->init_executed = true;                             
      (*init_routine)();                                              
ffc09eb4:	7f c9 03 a6 	mtctr   r30                                    
                                                                      
  if ( !once_control->init_executed ) {                               
    rtems_mode saveMode;                                              
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
    if ( !once_control->init_executed ) {                             
      once_control->is_initialized = true;                            
ffc09eb8:	91 3f 00 00 	stw     r9,0(r31)                              
      once_control->init_executed = true;                             
ffc09ebc:	91 3f 00 04 	stw     r9,4(r31)                              
      (*init_routine)();                                              
ffc09ec0:	4e 80 04 21 	bctrl                                          
ffc09ec4:	4b ff ff a4 	b       ffc09e68 <pthread_once+0x70>           
                                                                      

ffc0a1dc <pthread_rwlock_init>: int pthread_rwlock_init( pthread_rwlock_t *rwlock, const pthread_rwlockattr_t *attr ) {
ffc0a1dc:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0a1e0:	7c 08 02 a6 	mflr    r0                                     
ffc0a1e4:	93 e1 00 24 	stw     r31,36(r1)                             
  const pthread_rwlockattr_t  *the_attr;                              
                                                                      
  /*                                                                  
   *  Error check parameters                                          
   */                                                                 
  if ( !rwlock )                                                      
ffc0a1e8:	7c 7f 1b 79 	mr.     r31,r3                                 
                                                                      
int pthread_rwlock_init(                                              
  pthread_rwlock_t           *rwlock,                                 
  const pthread_rwlockattr_t *attr                                    
)                                                                     
{                                                                     
ffc0a1ec:	90 01 00 2c 	stw     r0,44(r1)                              
ffc0a1f0:	93 81 00 18 	stw     r28,24(r1)                             
ffc0a1f4:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc0a1f8:	93 c1 00 20 	stw     r30,32(r1)                             
  const pthread_rwlockattr_t  *the_attr;                              
                                                                      
  /*                                                                  
   *  Error check parameters                                          
   */                                                                 
  if ( !rwlock )                                                      
ffc0a1fc:	41 82 00 1c 	beq-    ffc0a218 <pthread_rwlock_init+0x3c>    
    return EINVAL;                                                    
                                                                      
  /*                                                                  
   * If the user passed in NULL, use the default attributes           
   */                                                                 
  if ( attr ) {                                                       
ffc0a200:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc0a204:	7c 89 23 78 	mr      r9,r4                                  
ffc0a208:	41 9e 00 9c 	beq-    cr7,ffc0a2a4 <pthread_rwlock_init+0xc8>
  }                                                                   
                                                                      
  /*                                                                  
   * Now start error checking the attributes that we are going to use 
   */                                                                 
  if ( !the_attr->is_initialized )                                    
ffc0a20c:	81 49 00 00 	lwz     r10,0(r9)                              
ffc0a210:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0a214:	40 9e 00 28 	bne-    cr7,ffc0a23c <pthread_rwlock_init+0x60><== ALWAYS TAKEN
  switch ( the_attr->process_shared ) {                               
    case PTHREAD_PROCESS_PRIVATE:    /* only supported values */      
      break;                                                          
    case PTHREAD_PROCESS_SHARED:                                      
    default:                                                          
      return EINVAL;                                                  
ffc0a218:	38 60 00 16 	li      r3,22                                  
                                                                      
  *rwlock = the_rwlock->Object.id;                                    
                                                                      
  _Thread_Enable_dispatch();                                          
  return 0;                                                           
}                                                                     
ffc0a21c:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc0a220:	83 81 00 18 	lwz     r28,24(r1)                             
ffc0a224:	7c 08 03 a6 	mtlr    r0                                     
ffc0a228:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0a22c:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0a230:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0a234:	38 21 00 28 	addi    r1,r1,40                               
ffc0a238:	4e 80 00 20 	blr                                            
   * Now start error checking the attributes that we are going to use 
   */                                                                 
  if ( !the_attr->is_initialized )                                    
    return EINVAL;                                                    
                                                                      
  switch ( the_attr->process_shared ) {                               
ffc0a23c:	83 c9 00 04 	lwz     r30,4(r9)                              
ffc0a240:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0a244:	40 be ff d4 	bne-    cr7,ffc0a218 <pthread_rwlock_init+0x3c><== 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;                  
ffc0a248:	3d 20 00 00 	lis     r9,0                                   
 */                                                                   
RTEMS_INLINE_ROUTINE void _CORE_RWLock_Initialize_attributes(         
  CORE_RWLock_Attributes *the_attributes                              
)                                                                     
{                                                                     
  the_attributes->XXX = 0;                                            
ffc0a24c:	93 c1 00 10 	stw     r30,16(r1)                             
ffc0a250:	81 49 28 a8 	lwz     r10,10408(r9)                          
                                                                      
    ++level;                                                          
ffc0a254:	39 4a 00 01 	addi    r10,r10,1                              
    _Thread_Dispatch_disable_level = level;                           
ffc0a258:	91 49 28 a8 	stw     r10,10408(r9)                          
 *  This function allocates a RWLock control block from               
 *  the inactive chain of free RWLock control blocks.                 
 */                                                                   
RTEMS_INLINE_ROUTINE POSIX_RWLock_Control *_POSIX_RWLock_Allocate( void )
{                                                                     
  return (POSIX_RWLock_Control *)                                     
ffc0a25c:	3f 80 00 00 	lis     r28,0                                  
ffc0a260:	3b 9c 58 40 	addi    r28,r28,22592                          
ffc0a264:	7f 83 e3 78 	mr      r3,r28                                 
ffc0a268:	48 00 35 41 	bl      ffc0d7a8 <_Objects_Allocate>           
   */                                                                 
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_rwlock = _POSIX_RWLock_Allocate();                              
                                                                      
  if ( !the_rwlock ) {                                                
ffc0a26c:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc0a270:	41 82 00 44 	beq-    ffc0a2b4 <pthread_rwlock_init+0xd8>    
    _Thread_Enable_dispatch();                                        
    return EAGAIN;                                                    
  }                                                                   
                                                                      
  _CORE_RWLock_Initialize( &the_rwlock->RWLock, &the_attributes );    
ffc0a274:	38 7d 00 10 	addi    r3,r29,16                              
ffc0a278:	38 81 00 10 	addi    r4,r1,16                               
ffc0a27c:	48 00 2d dd 	bl      ffc0d058 <_CORE_RWLock_Initialize>     
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
ffc0a280:	81 3d 00 08 	lwz     r9,8(r29)                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc0a284:	81 1c 00 1c 	lwz     r8,28(r28)                             
ffc0a288:	55 2a 13 ba 	rlwinm  r10,r9,2,14,29                         
ffc0a28c:	7f a8 51 2e 	stwx    r29,r8,r10                             
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
ffc0a290:	93 dd 00 0c 	stw     r30,12(r29)                            
    &_POSIX_RWLock_Information,                                       
    &the_rwlock->Object,                                              
    0                                                                 
  );                                                                  
                                                                      
  *rwlock = the_rwlock->Object.id;                                    
ffc0a294:	91 3f 00 00 	stw     r9,0(r31)                              
                                                                      
  _Thread_Enable_dispatch();                                          
ffc0a298:	48 00 4c f5 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
  return 0;                                                           
ffc0a29c:	38 60 00 00 	li      r3,0                                   
ffc0a2a0:	4b ff ff 7c 	b       ffc0a21c <pthread_rwlock_init+0x40>    
   * If the user passed in NULL, use the default attributes           
   */                                                                 
  if ( attr ) {                                                       
    the_attr = attr;                                                  
  } else {                                                            
    (void) pthread_rwlockattr_init( &default_attr );                  
ffc0a2a4:	38 61 00 08 	addi    r3,r1,8                                
ffc0a2a8:	48 00 08 95 	bl      ffc0ab3c <pthread_rwlockattr_init>     
    the_attr = &default_attr;                                         
ffc0a2ac:	39 21 00 08 	addi    r9,r1,8                                
ffc0a2b0:	4b ff ff 5c 	b       ffc0a20c <pthread_rwlock_init+0x30>    
  _Thread_Disable_dispatch();             /* prevents deletion */     
                                                                      
  the_rwlock = _POSIX_RWLock_Allocate();                              
                                                                      
  if ( !the_rwlock ) {                                                
    _Thread_Enable_dispatch();                                        
ffc0a2b4:	48 00 4c d9 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
    return EAGAIN;                                                    
ffc0a2b8:	38 60 00 0b 	li      r3,11                                  
ffc0a2bc:	4b ff ff 60 	b       ffc0a21c <pthread_rwlock_init+0x40>    
                                                                      

ffc0a80c <pthread_rwlock_timedrdlock>: int pthread_rwlock_timedrdlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) {
ffc0a80c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0a810:	7c 08 02 a6 	mflr    r0                                     
ffc0a814:	93 e1 00 24 	stw     r31,36(r1)                             
  Objects_Locations                            location;              
  Watchdog_Interval                            ticks;                 
  bool                                         do_wait = true;        
  POSIX_Absolute_timeout_conversion_results_t  status;                
                                                                      
  if ( !rwlock )                                                      
ffc0a818:	7c 7f 1b 79 	mr.     r31,r3                                 
                                                                      
int pthread_rwlock_timedrdlock(                                       
  pthread_rwlock_t      *rwlock,                                      
  const struct timespec *abstime                                      
)                                                                     
{                                                                     
ffc0a81c:	90 01 00 2c 	stw     r0,44(r1)                              
ffc0a820:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc0a824:	93 c1 00 20 	stw     r30,32(r1)                             
  Objects_Locations                            location;              
  Watchdog_Interval                            ticks;                 
  bool                                         do_wait = true;        
  POSIX_Absolute_timeout_conversion_results_t  status;                
                                                                      
  if ( !rwlock )                                                      
ffc0a828:	41 82 00 84 	beq-    ffc0a8ac <pthread_rwlock_timedrdlock+0xa0>
ffc0a82c:	7c 83 23 78 	mr      r3,r4                                  
   *                                                                  
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
ffc0a830:	38 81 00 08 	addi    r4,r1,8                                
ffc0a834:	48 00 79 45 	bl      ffc12178 <_POSIX_Absolute_timeout_to_ticks>
ffc0a838:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc0a83c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0a840:	3c 60 00 00 	lis     r3,0                                   
ffc0a844:	38 63 2e 40 	addi    r3,r3,11840                            
ffc0a848:	38 a1 00 0c 	addi    r5,r1,12                               
ffc0a84c:	48 00 36 41 	bl      ffc0de8c <_Objects_Get>                
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
ffc0a850:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc0a854:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0a858:	40 9e 00 54 	bne-    cr7,ffc0a8ac <pthread_rwlock_timedrdlock+0xa0>
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
ffc0a85c:	6b dd 00 03 	xori    r29,r30,3                              
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      _CORE_RWLock_Obtain_for_reading(                                
ffc0a860:	80 9f 00 00 	lwz     r4,0(r31)                              
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
ffc0a864:	7f bd 00 34 	cntlzw  r29,r29                                
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      _CORE_RWLock_Obtain_for_reading(                                
ffc0a868:	80 c1 00 08 	lwz     r6,8(r1)                               
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
ffc0a86c:	57 bd d9 7e 	rlwinm  r29,r29,27,5,31                        
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      _CORE_RWLock_Obtain_for_reading(                                
ffc0a870:	38 63 00 10 	addi    r3,r3,16                               
ffc0a874:	7f a5 eb 78 	mr      r5,r29                                 
ffc0a878:	38 e0 00 00 	li      r7,0                                   
ffc0a87c:	48 00 25 69 	bl      ffc0cde4 <_CORE_RWLock_Obtain_for_reading>
	do_wait,                                                             
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
ffc0a880:	48 00 46 5d 	bl      ffc0eedc <_Thread_Enable_dispatch>     
      if ( !do_wait ) {                                               
ffc0a884:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
        if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
ffc0a888:	3d 20 00 00 	lis     r9,0                                   
ffc0a88c:	81 29 31 b0 	lwz     r9,12720(r9)                           
ffc0a890:	81 29 00 34 	lwz     r9,52(r9)                              
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait ) {                                               
ffc0a894:	40 9e 00 0c 	bne-    cr7,ffc0a8a0 <pthread_rwlock_timedrdlock+0x94>
        if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
ffc0a898:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc0a89c:	41 9e 00 30 	beq-    cr7,ffc0a8cc <pthread_rwlock_timedrdlock+0xc0>
	       status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                     
	    return ETIMEDOUT;                                                
        }                                                             
      }                                                               
                                                                      
      return _POSIX_RWLock_Translate_core_RWLock_return_code(         
ffc0a8a0:	7d 23 4b 78 	mr      r3,r9                                  
ffc0a8a4:	48 00 01 21 	bl      ffc0a9c4 <_POSIX_RWLock_Translate_core_RWLock_return_code>
ffc0a8a8:	48 00 00 08 	b       ffc0a8b0 <pthread_rwlock_timedrdlock+0xa4>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return EINVAL;                                                      
ffc0a8ac:	38 60 00 16 	li      r3,22                                  
}                                                                     
ffc0a8b0:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc0a8b4:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0a8b8:	7c 08 03 a6 	mtlr    r0                                     
ffc0a8bc:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0a8c0:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0a8c4:	38 21 00 28 	addi    r1,r1,40                               
ffc0a8c8:	4e 80 00 20 	blr                                            
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait ) {                                               
        if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
	  if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )                    
ffc0a8cc:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0a8d0:	41 9e ff dc 	beq+    cr7,ffc0a8ac <pthread_rwlock_timedrdlock+0xa0><== NEVER TAKEN
	    return EINVAL;                                                   
	  if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||                
ffc0a8d4:	3b de ff ff 	addi    r30,r30,-1                             
ffc0a8d8:	2b 9e 00 01 	cmplwi  cr7,r30,1                              
	       status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                     
	    return ETIMEDOUT;                                                
ffc0a8dc:	38 60 00 74 	li      r3,116                                 
      _Thread_Enable_dispatch();                                      
      if ( !do_wait ) {                                               
        if ( _Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE ) {
	  if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )                    
	    return EINVAL;                                                   
	  if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||                
ffc0a8e0:	41 9d ff c0 	bgt+    cr7,ffc0a8a0 <pthread_rwlock_timedrdlock+0x94><== NEVER TAKEN
ffc0a8e4:	4b ff ff cc 	b       ffc0a8b0 <pthread_rwlock_timedrdlock+0xa4>
                                                                      

ffc0a8e8 <pthread_rwlock_timedwrlock>: int pthread_rwlock_timedwrlock( pthread_rwlock_t *rwlock, const struct timespec *abstime ) {
ffc0a8e8:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0a8ec:	7c 08 02 a6 	mflr    r0                                     
ffc0a8f0:	93 e1 00 24 	stw     r31,36(r1)                             
  Objects_Locations                            location;              
  Watchdog_Interval                            ticks;                 
  bool                                         do_wait = true;        
  POSIX_Absolute_timeout_conversion_results_t  status;                
                                                                      
  if ( !rwlock )                                                      
ffc0a8f4:	7c 7f 1b 79 	mr.     r31,r3                                 
                                                                      
int pthread_rwlock_timedwrlock(                                       
  pthread_rwlock_t      *rwlock,                                      
  const struct timespec *abstime                                      
)                                                                     
{                                                                     
ffc0a8f8:	90 01 00 2c 	stw     r0,44(r1)                              
ffc0a8fc:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc0a900:	93 c1 00 20 	stw     r30,32(r1)                             
  Objects_Locations                            location;              
  Watchdog_Interval                            ticks;                 
  bool                                         do_wait = true;        
  POSIX_Absolute_timeout_conversion_results_t  status;                
                                                                      
  if ( !rwlock )                                                      
ffc0a904:	41 82 00 84 	beq-    ffc0a988 <pthread_rwlock_timedwrlock+0xa0>
ffc0a908:	7c 83 23 78 	mr      r3,r4                                  
   *                                                                  
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
ffc0a90c:	38 81 00 08 	addi    r4,r1,8                                
ffc0a910:	48 00 78 69 	bl      ffc12178 <_POSIX_Absolute_timeout_to_ticks>
ffc0a914:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc0a918:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0a91c:	3c 60 00 00 	lis     r3,0                                   
ffc0a920:	38 63 2e 40 	addi    r3,r3,11840                            
ffc0a924:	38 a1 00 0c 	addi    r5,r1,12                               
ffc0a928:	48 00 35 65 	bl      ffc0de8c <_Objects_Get>                
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
ffc0a92c:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc0a930:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0a934:	40 9e 00 54 	bne-    cr7,ffc0a988 <pthread_rwlock_timedwrlock+0xa0>
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
ffc0a938:	6b dd 00 03 	xori    r29,r30,3                              
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      _CORE_RWLock_Obtain_for_writing(                                
ffc0a93c:	80 9f 00 00 	lwz     r4,0(r31)                              
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
ffc0a940:	7f bd 00 34 	cntlzw  r29,r29                                
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      _CORE_RWLock_Obtain_for_writing(                                
ffc0a944:	80 c1 00 08 	lwz     r6,8(r1)                               
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
ffc0a948:	57 bd d9 7e 	rlwinm  r29,r29,27,5,31                        
  the_rwlock = _POSIX_RWLock_Get( rwlock, &location );                
  switch ( location ) {                                               
                                                                      
    case OBJECTS_LOCAL:                                               
                                                                      
      _CORE_RWLock_Obtain_for_writing(                                
ffc0a94c:	38 63 00 10 	addi    r3,r3,16                               
ffc0a950:	7f a5 eb 78 	mr      r5,r29                                 
ffc0a954:	38 e0 00 00 	li      r7,0                                   
ffc0a958:	48 00 25 bd 	bl      ffc0cf14 <_CORE_RWLock_Obtain_for_writing>
	do_wait,                                                             
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
ffc0a95c:	48 00 45 81 	bl      ffc0eedc <_Thread_Enable_dispatch>     
      if ( !do_wait &&                                                
ffc0a960:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
           (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
ffc0a964:	3d 20 00 00 	lis     r9,0                                   
ffc0a968:	81 29 31 b0 	lwz     r9,12720(r9)                           
ffc0a96c:	81 29 00 34 	lwz     r9,52(r9)                              
	ticks,                                                               
	NULL                                                                 
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait &&                                                
ffc0a970:	40 9e 00 0c 	bne-    cr7,ffc0a97c <pthread_rwlock_timedwrlock+0x94>
ffc0a974:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc0a978:	41 9e 00 30 	beq-    cr7,ffc0a9a8 <pthread_rwlock_timedwrlock+0xc0>
	if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||                  
	     status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                       
	  return ETIMEDOUT;                                                  
      }                                                               
                                                                      
      return _POSIX_RWLock_Translate_core_RWLock_return_code(         
ffc0a97c:	7d 23 4b 78 	mr      r3,r9                                  
ffc0a980:	48 00 00 45 	bl      ffc0a9c4 <_POSIX_RWLock_Translate_core_RWLock_return_code>
ffc0a984:	48 00 00 08 	b       ffc0a98c <pthread_rwlock_timedwrlock+0xa4>
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return EINVAL;                                                      
ffc0a988:	38 60 00 16 	li      r3,22                                  
}                                                                     
ffc0a98c:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc0a990:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0a994:	7c 08 03 a6 	mtlr    r0                                     
ffc0a998:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0a99c:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0a9a0:	38 21 00 28 	addi    r1,r1,40                               
ffc0a9a4:	4e 80 00 20 	blr                                            
      );                                                              
                                                                      
      _Thread_Enable_dispatch();                                      
      if ( !do_wait &&                                                
           (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
	if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )                      
ffc0a9a8:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0a9ac:	41 9e ff dc 	beq+    cr7,ffc0a988 <pthread_rwlock_timedwrlock+0xa0><== NEVER TAKEN
	  return EINVAL;                                                     
	if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||                  
ffc0a9b0:	3b de ff ff 	addi    r30,r30,-1                             
ffc0a9b4:	2b 9e 00 01 	cmplwi  cr7,r30,1                              
	     status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )                       
	  return ETIMEDOUT;                                                  
ffc0a9b8:	38 60 00 74 	li      r3,116                                 
      _Thread_Enable_dispatch();                                      
      if ( !do_wait &&                                                
           (_Thread_Executing->Wait.return_code == CORE_RWLOCK_UNAVAILABLE) ) {
	if ( status == POSIX_ABSOLUTE_TIMEOUT_INVALID )                      
	  return EINVAL;                                                     
	if ( status == POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST ||                  
ffc0a9bc:	41 9d ff c0 	bgt+    cr7,ffc0a97c <pthread_rwlock_timedwrlock+0x94><== NEVER TAKEN
ffc0a9c0:	4b ff ff cc 	b       ffc0a98c <pthread_rwlock_timedwrlock+0xa4>
                                                                      

ffc0c66c <pthread_setschedparam>: int pthread_setschedparam( pthread_t thread, int policy, struct sched_param *param ) {
ffc0c66c:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0c670:	7c 08 02 a6 	mflr    r0                                     
ffc0c674:	93 c1 00 28 	stw     r30,40(r1)                             
  int                                  rc;                            
                                                                      
  /*                                                                  
   *  Check all the parameters                                        
   */                                                                 
  if ( !param )                                                       
ffc0c678:	7c be 2b 79 	mr.     r30,r5                                 
int pthread_setschedparam(                                            
  pthread_t           thread,                                         
  int                 policy,                                         
  struct sched_param *param                                           
)                                                                     
{                                                                     
ffc0c67c:	93 e1 00 2c 	stw     r31,44(r1)                             
                                                                      
  /*                                                                  
   *  Check all the parameters                                        
   */                                                                 
  if ( !param )                                                       
    return EINVAL;                                                    
ffc0c680:	3b e0 00 16 	li      r31,22                                 
int pthread_setschedparam(                                            
  pthread_t           thread,                                         
  int                 policy,                                         
  struct sched_param *param                                           
)                                                                     
{                                                                     
ffc0c684:	90 01 00 34 	stw     r0,52(r1)                              
ffc0c688:	93 61 00 1c 	stw     r27,28(r1)                             
ffc0c68c:	93 81 00 20 	stw     r28,32(r1)                             
ffc0c690:	93 a1 00 24 	stw     r29,36(r1)                             
  int                                  rc;                            
                                                                      
  /*                                                                  
   *  Check all the parameters                                        
   */                                                                 
  if ( !param )                                                       
ffc0c694:	41 82 00 28 	beq-    ffc0c6bc <pthread_setschedparam+0x50>  
ffc0c698:	7c 7c 1b 78 	mr      r28,r3                                 
ffc0c69c:	7c 9d 23 78 	mr      r29,r4                                 
    return EINVAL;                                                    
                                                                      
  rc = _POSIX_Thread_Translate_sched_param(                           
ffc0c6a0:	7c 83 23 78 	mr      r3,r4                                  
ffc0c6a4:	38 a1 00 10 	addi    r5,r1,16                               
ffc0c6a8:	7f c4 f3 78 	mr      r4,r30                                 
ffc0c6ac:	38 c1 00 0c 	addi    r6,r1,12                               
ffc0c6b0:	48 00 6e e9 	bl      ffc13598 <_POSIX_Thread_Translate_sched_param>
    policy,                                                           
    param,                                                            
    &budget_algorithm,                                                
    &budget_callout                                                   
  );                                                                  
  if ( rc )                                                           
ffc0c6b4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc0c6b8:	41 82 00 2c 	beq-    ffc0c6e4 <pthread_setschedparam+0x78>  
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return ESRCH;                                                       
}                                                                     
ffc0c6bc:	80 01 00 34 	lwz     r0,52(r1)                              
ffc0c6c0:	7f e3 fb 78 	mr      r3,r31                                 
ffc0c6c4:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc0c6c8:	7c 08 03 a6 	mtlr    r0                                     
ffc0c6cc:	83 81 00 20 	lwz     r28,32(r1)                             
ffc0c6d0:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc0c6d4:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc0c6d8:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc0c6dc:	38 21 00 30 	addi    r1,r1,48                               
ffc0c6e0:	4e 80 00 20 	blr                                            
    return rc;                                                        
                                                                      
  /*                                                                  
   *  Actually change the scheduling policy and parameters            
   */                                                                 
  the_thread = _Thread_Get( thread, &location );                      
ffc0c6e4:	7f 83 e3 78 	mr      r3,r28                                 
ffc0c6e8:	38 81 00 08 	addi    r4,r1,8                                
ffc0c6ec:	48 00 39 6d 	bl      ffc10058 <_Thread_Get>                 
  switch ( location ) {                                               
ffc0c6f0:	81 21 00 08 	lwz     r9,8(r1)                               
    return rc;                                                        
                                                                      
  /*                                                                  
   *  Actually change the scheduling policy and parameters            
   */                                                                 
  the_thread = _Thread_Get( thread, &location );                      
ffc0c6f4:	7c 7b 1b 78 	mr      r27,r3                                 
  switch ( location ) {                                               
ffc0c6f8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0c6fc:	40 9e 00 98 	bne-    cr7,ffc0c794 <pthread_setschedparam+0x128>
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_POSIX ];           
ffc0c700:	83 83 01 50 	lwz     r28,336(r3)                            
                                                                      
      if ( api->schedpolicy == SCHED_SPORADIC )                       
ffc0c704:	81 3c 00 84 	lwz     r9,132(r28)                            
ffc0c708:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc0c70c:	41 9e 00 e4 	beq-    cr7,ffc0c7f0 <pthread_setschedparam+0x184>
        (void) _Watchdog_Remove( &api->Sporadic_timer );              
                                                                      
      api->schedpolicy = policy;                                      
      api->schedparam  = *param;                                      
ffc0c710:	80 fe 00 04 	lwz     r7,4(r30)                              
      the_thread->budget_algorithm = budget_algorithm;                
      the_thread->budget_callout   = budget_callout;                  
                                                                      
      switch ( api->schedpolicy ) {                                   
ffc0c714:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
                                                                      
      if ( api->schedpolicy == SCHED_SPORADIC )                       
        (void) _Watchdog_Remove( &api->Sporadic_timer );              
                                                                      
      api->schedpolicy = policy;                                      
      api->schedparam  = *param;                                      
ffc0c718:	81 1e 00 08 	lwz     r8,8(r30)                              
ffc0c71c:	81 5e 00 0c 	lwz     r10,12(r30)                            
ffc0c720:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc0c724:	90 fc 00 8c 	stw     r7,140(r28)                            
ffc0c728:	91 3c 00 88 	stw     r9,136(r28)                            
ffc0c72c:	91 1c 00 90 	stw     r8,144(r28)                            
ffc0c730:	91 5c 00 94 	stw     r10,148(r28)                           
ffc0c734:	81 5e 00 18 	lwz     r10,24(r30)                            
ffc0c738:	80 fe 00 10 	lwz     r7,16(r30)                             
ffc0c73c:	81 1e 00 14 	lwz     r8,20(r30)                             
ffc0c740:	91 5c 00 a0 	stw     r10,160(r28)                           
      the_thread->budget_algorithm = budget_algorithm;                
ffc0c744:	81 41 00 10 	lwz     r10,16(r1)                             
      api = the_thread->API_Extensions[ THREAD_API_POSIX ];           
                                                                      
      if ( api->schedpolicy == SCHED_SPORADIC )                       
        (void) _Watchdog_Remove( &api->Sporadic_timer );              
                                                                      
      api->schedpolicy = policy;                                      
ffc0c748:	93 bc 00 84 	stw     r29,132(r28)                           
      api->schedparam  = *param;                                      
ffc0c74c:	90 fc 00 98 	stw     r7,152(r28)                            
ffc0c750:	91 1c 00 9c 	stw     r8,156(r28)                            
      the_thread->budget_algorithm = budget_algorithm;                
ffc0c754:	91 5b 00 78 	stw     r10,120(r27)                           
      the_thread->budget_callout   = budget_callout;                  
ffc0c758:	81 41 00 0c 	lwz     r10,12(r1)                             
ffc0c75c:	91 5b 00 7c 	stw     r10,124(r27)                           
                                                                      
      switch ( api->schedpolicy ) {                                   
ffc0c760:	41 9c 00 2c 	blt-    cr7,ffc0c78c <pthread_setschedparam+0x120><== NEVER TAKEN
ffc0c764:	2f 9d 00 02 	cmpwi   cr7,r29,2                              
ffc0c768:	40 9d 00 58 	ble-    cr7,ffc0c7c0 <pthread_setschedparam+0x154>
ffc0c76c:	2f 9d 00 04 	cmpwi   cr7,r29,4                              
ffc0c770:	40 be 00 1c 	bne+    cr7,ffc0c78c <pthread_setschedparam+0x120><== NEVER TAKEN
             true                                                     
          );                                                          
          break;                                                      
                                                                      
        case SCHED_SPORADIC:                                          
          api->ss_high_priority = api->schedparam.sched_priority;     
ffc0c774:	91 3c 00 a4 	stw     r9,164(r28)                            
          _Watchdog_Remove( &api->Sporadic_timer );                   
ffc0c778:	38 7c 00 a8 	addi    r3,r28,168                             
ffc0c77c:	48 00 4c e9 	bl      ffc11464 <_Watchdog_Remove>            
          _POSIX_Threads_Sporadic_budget_TSR( 0, the_thread );        
ffc0c780:	38 60 00 00 	li      r3,0                                   
ffc0c784:	7f 64 db 78 	mr      r4,r27                                 
ffc0c788:	4b ff fd 75 	bl      ffc0c4fc <_POSIX_Threads_Sporadic_budget_TSR>
          break;                                                      
      }                                                               
                                                                      
      _Thread_Enable_dispatch();                                      
ffc0c78c:	48 00 38 b1 	bl      ffc1003c <_Thread_Enable_dispatch>     
ffc0c790:	4b ff ff 2c 	b       ffc0c6bc <pthread_setschedparam+0x50>  
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return ESRCH;                                                       
}                                                                     
ffc0c794:	80 01 00 34 	lwz     r0,52(r1)                              
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return ESRCH;                                                       
ffc0c798:	3b e0 00 03 	li      r31,3                                  
}                                                                     
ffc0c79c:	7f e3 fb 78 	mr      r3,r31                                 
ffc0c7a0:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc0c7a4:	7c 08 03 a6 	mtlr    r0                                     
ffc0c7a8:	83 81 00 20 	lwz     r28,32(r1)                             
ffc0c7ac:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc0c7b0:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc0c7b4:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc0c7b8:	38 21 00 30 	addi    r1,r1,48                               
ffc0c7bc:	4e 80 00 20 	blr                                            
ffc0c7c0:	3d 40 00 00 	lis     r10,0                                  
ffc0c7c4:	88 8a 27 c4 	lbz     r4,10180(r10)                          
                                                                      
      switch ( api->schedpolicy ) {                                   
        case SCHED_OTHER:                                             
        case SCHED_FIFO:                                              
        case SCHED_RR:                                                
          the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;  
ffc0c7c8:	3d 40 00 00 	lis     r10,0                                  
ffc0c7cc:	81 4a 28 e0 	lwz     r10,10464(r10)                         
                                                                      
          the_thread->real_priority =                                 
            _POSIX_Priority_To_core( api->schedparam.sched_priority );
                                                                      
          _Thread_Change_priority(                                    
ffc0c7d0:	7f 63 db 78 	mr      r3,r27                                 
ffc0c7d4:	7c 89 20 50 	subf    r4,r9,r4                               
                                                                      
      switch ( api->schedpolicy ) {                                   
        case SCHED_OTHER:                                             
        case SCHED_FIFO:                                              
        case SCHED_RR:                                                
          the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;  
ffc0c7d8:	91 5b 00 74 	stw     r10,116(r27)                           
                                                                      
          the_thread->real_priority =                                 
            _POSIX_Priority_To_core( api->schedparam.sched_priority );
                                                                      
          _Thread_Change_priority(                                    
ffc0c7dc:	38 a0 00 01 	li      r5,1                                   
        case SCHED_OTHER:                                             
        case SCHED_FIFO:                                              
        case SCHED_RR:                                                
          the_thread->cpu_time_budget = _Thread_Ticks_per_timeslice;  
                                                                      
          the_thread->real_priority =                                 
ffc0c7e0:	90 9b 00 18 	stw     r4,24(r27)                             
            _POSIX_Priority_To_core( api->schedparam.sched_priority );
                                                                      
          _Thread_Change_priority(                                    
ffc0c7e4:	48 00 31 cd 	bl      ffc0f9b0 <_Thread_Change_priority>     
          _Watchdog_Remove( &api->Sporadic_timer );                   
          _POSIX_Threads_Sporadic_budget_TSR( 0, the_thread );        
          break;                                                      
      }                                                               
                                                                      
      _Thread_Enable_dispatch();                                      
ffc0c7e8:	48 00 38 55 	bl      ffc1003c <_Thread_Enable_dispatch>     
ffc0c7ec:	4b ff fe d0 	b       ffc0c6bc <pthread_setschedparam+0x50>  
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_POSIX ];           
                                                                      
      if ( api->schedpolicy == SCHED_SPORADIC )                       
        (void) _Watchdog_Remove( &api->Sporadic_timer );              
ffc0c7f0:	38 7c 00 a8 	addi    r3,r28,168                             
ffc0c7f4:	48 00 4c 71 	bl      ffc11464 <_Watchdog_Remove>            
ffc0c7f8:	4b ff ff 18 	b       ffc0c710 <pthread_setschedparam+0xa4>  
                                                                      

ffc09b20 <pthread_testcancel>: /* * 18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183 */ void pthread_testcancel( void ) {
ffc09b20:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc09b24:	7c 08 02 a6 	mflr    r0                                     
ffc09b28:	93 e1 00 0c 	stw     r31,12(r1)                             
   *  Don't even think about deleting a resource from an ISR.         
   *  Besides this request is supposed to be for _Thread_Executing    
   *  and the ISR context is not a thread.                            
   */                                                                 
                                                                      
  if ( _ISR_Is_in_progress() )                                        
ffc09b2c:	3f e0 00 00 	lis     r31,0                                  
ffc09b30:	3b ff 31 60 	addi    r31,r31,12640                          
/*                                                                    
 *  18.2.2 Setting Cancelability State, P1003.1c/Draft 10, p. 183     
 */                                                                   
                                                                      
void pthread_testcancel( void )                                       
{                                                                     
ffc09b34:	90 01 00 14 	stw     r0,20(r1)                              
   *  Don't even think about deleting a resource from an ISR.         
   *  Besides this request is supposed to be for _Thread_Executing    
   *  and the ISR context is not a thread.                            
   */                                                                 
                                                                      
  if ( _ISR_Is_in_progress() )                                        
ffc09b38:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc09b3c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09b40:	40 9e 00 68 	bne-    cr7,ffc09ba8 <pthread_testcancel+0x88> <== 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;                  
ffc09b44:	3d 20 00 00 	lis     r9,0                                   
    return;                                                           
                                                                      
  thread_support = _Thread_Executing->API_Extensions[ THREAD_API_POSIX ];
ffc09b48:	81 5f 00 10 	lwz     r10,16(r31)                            
ffc09b4c:	81 09 28 68 	lwz     r8,10344(r9)                           
ffc09b50:	81 4a 01 50 	lwz     r10,336(r10)                           
                                                                      
    ++level;                                                          
ffc09b54:	39 08 00 01 	addi    r8,r8,1                                
    _Thread_Dispatch_disable_level = level;                           
ffc09b58:	91 09 28 68 	stw     r8,10344(r9)                           
                                                                      
  _Thread_Disable_dispatch();                                         
    if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
ffc09b5c:	81 2a 00 d8 	lwz     r9,216(r10)                            
ffc09b60:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09b64:	40 9e 00 30 	bne-    cr7,ffc09b94 <pthread_testcancel+0x74> <== NEVER TAKEN
ffc09b68:	81 2a 00 e0 	lwz     r9,224(r10)                            
ffc09b6c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09b70:	41 9e 00 24 	beq-    cr7,ffc09b94 <pthread_testcancel+0x74> 
         thread_support->cancelation_requested )                      
      cancel = true;                                                  
  _Thread_Enable_dispatch();                                          
ffc09b74:	48 00 36 f5 	bl      ffc0d268 <_Thread_Enable_dispatch>     
                                                                      
  if ( cancel )                                                       
    _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED );        
}                                                                     
ffc09b78:	80 01 00 14 	lwz     r0,20(r1)                              
         thread_support->cancelation_requested )                      
      cancel = true;                                                  
  _Thread_Enable_dispatch();                                          
                                                                      
  if ( cancel )                                                       
    _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED );        
ffc09b7c:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc09b80:	38 80 ff ff 	li      r4,-1                                  
}                                                                     
ffc09b84:	7c 08 03 a6 	mtlr    r0                                     
ffc09b88:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc09b8c:	38 21 00 10 	addi    r1,r1,16                               
         thread_support->cancelation_requested )                      
      cancel = true;                                                  
  _Thread_Enable_dispatch();                                          
                                                                      
  if ( cancel )                                                       
    _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED );        
ffc09b90:	48 00 6c d0 	b       ffc10860 <_POSIX_Thread_Exit>          
}                                                                     
ffc09b94:	80 01 00 14 	lwz     r0,20(r1)                              
ffc09b98:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc09b9c:	7c 08 03 a6 	mtlr    r0                                     
ffc09ba0:	38 21 00 10 	addi    r1,r1,16                               
                                                                      
  _Thread_Disable_dispatch();                                         
    if ( thread_support->cancelability_state == PTHREAD_CANCEL_ENABLE &&
         thread_support->cancelation_requested )                      
      cancel = true;                                                  
  _Thread_Enable_dispatch();                                          
ffc09ba4:	48 00 36 c4 	b       ffc0d268 <_Thread_Enable_dispatch>     
                                                                      
  if ( cancel )                                                       
    _POSIX_Thread_Exit( _Thread_Executing, PTHREAD_CANCELED );        
}                                                                     
ffc09ba8:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
ffc09bac:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc09bb0:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc09bb4:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc09bb8:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc0f6fc <ramdisk_allocate>: void *area_begin, uint32_t media_block_size, rtems_blkdev_bnum media_block_count, bool trace ) {
ffc0f6fc:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0f700:	7c 08 02 a6 	mflr    r0                                     
ffc0f704:	93 c1 00 18 	stw     r30,24(r1)                             
ffc0f708:	7c 7e 1b 78 	mr      r30,r3                                 
  struct ramdisk *rd = malloc(sizeof(struct ramdisk));                
ffc0f70c:	38 60 00 10 	li      r3,16                                  
  void *area_begin,                                                   
  uint32_t media_block_size,                                          
  rtems_blkdev_bnum media_block_count,                                
  bool trace                                                          
)                                                                     
{                                                                     
ffc0f710:	93 61 00 0c 	stw     r27,12(r1)                             
ffc0f714:	7c db 33 78 	mr      r27,r6                                 
ffc0f718:	93 81 00 10 	stw     r28,16(r1)                             
ffc0f71c:	7c bc 2b 78 	mr      r28,r5                                 
ffc0f720:	93 a1 00 14 	stw     r29,20(r1)                             
ffc0f724:	7c 9d 23 78 	mr      r29,r4                                 
ffc0f728:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc0f72c:	90 01 00 24 	stw     r0,36(r1)                              
  struct ramdisk *rd = malloc(sizeof(struct ramdisk));                
ffc0f730:	4b ff 6c 39 	bl      ffc06368 <malloc>                      
                                                                      
  if (rd == NULL) {                                                   
ffc0f734:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc0f738:	41 82 00 2c 	beq-    ffc0f764 <ramdisk_allocate+0x68>       <== NEVER TAKEN
    return NULL;                                                      
  }                                                                   
                                                                      
  if (area_begin == NULL) {                                           
ffc0f73c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0f740:	41 9e 00 4c 	beq-    cr7,ffc0f78c <ramdisk_allocate+0x90>   
                                                                      
      return NULL;                                                    
    }                                                                 
    rd->malloced = true;                                              
  } else {                                                            
    rd->malloced = false;                                             
ffc0f744:	39 20 00 00 	li      r9,0                                   
ffc0f748:	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;                                             
ffc0f74c:	39 20 00 01 	li      r9,1                                   
    }                                                                 
    rd->malloced = true;                                              
  } else {                                                            
    rd->malloced = false;                                             
  }                                                                   
  rd->block_size = media_block_size;                                  
ffc0f750:	93 bf 00 00 	stw     r29,0(r31)                             
  rd->block_num = media_block_count;                                  
ffc0f754:	93 9f 00 04 	stw     r28,4(r31)                             
  rd->area = area_begin;                                              
ffc0f758:	93 df 00 08 	stw     r30,8(r31)                             
  rd->trace = trace;                                                  
ffc0f75c:	9b 7f 00 0e 	stb     r27,14(r31)                            
  rd->initialized = true;                                             
ffc0f760:	99 3f 00 0c 	stb     r9,12(r31)                             
                                                                      
  return rd;                                                          
}                                                                     
ffc0f764:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0f768:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f76c:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0f770:	7c 08 03 a6 	mtlr    r0                                     
ffc0f774:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0f778:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0f77c:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0f780:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0f784:	38 21 00 20 	addi    r1,r1,32                               
ffc0f788:	4e 80 00 20 	blr                                            
  if (rd == NULL) {                                                   
    return NULL;                                                      
  }                                                                   
                                                                      
  if (area_begin == NULL) {                                           
    area_begin = calloc(media_block_count, media_block_size);         
ffc0f78c:	7f 83 e3 78 	mr      r3,r28                                 
ffc0f790:	7f a4 eb 78 	mr      r4,r29                                 
ffc0f794:	4b ff 64 75 	bl      ffc05c08 <calloc>                      
    if (area_begin == NULL) {                                         
ffc0f798:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc0f79c:	41 82 00 10 	beq-    ffc0f7ac <ramdisk_allocate+0xb0>       <== NEVER TAKEN
      free(rd);                                                       
                                                                      
      return NULL;                                                    
    }                                                                 
    rd->malloced = true;                                              
ffc0f7a0:	39 20 00 01 	li      r9,1                                   
ffc0f7a4:	99 3f 00 0d 	stb     r9,13(r31)                             
ffc0f7a8:	4b ff ff a4 	b       ffc0f74c <ramdisk_allocate+0x50>       
  }                                                                   
                                                                      
  if (area_begin == NULL) {                                           
    area_begin = calloc(media_block_count, media_block_size);         
    if (area_begin == NULL) {                                         
      free(rd);                                                       
ffc0f7ac:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0f7b0:	4b ff 65 69 	bl      ffc05d18 <free>                        <== NOT EXECUTED
                                                                      
      return NULL;                                                    
ffc0f7b4:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
ffc0f7b8:	4b ff ff ac 	b       ffc0f764 <ramdisk_allocate+0x68>       <== NOT EXECUTED
                                                                      

ffc0f7bc <ramdisk_free>: return rd; } void ramdisk_free(ramdisk *rd) {
ffc0f7bc:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0f7c0:	7c 08 02 a6 	mflr    r0                                     
ffc0f7c4:	93 e1 00 0c 	stw     r31,12(r1)                             
  if (rd != NULL) {                                                   
ffc0f7c8:	7c 7f 1b 79 	mr.     r31,r3                                 
                                                                      
  return rd;                                                          
}                                                                     
                                                                      
void ramdisk_free(ramdisk *rd)                                        
{                                                                     
ffc0f7cc:	90 01 00 14 	stw     r0,20(r1)                              
  if (rd != NULL) {                                                   
ffc0f7d0:	41 82 00 48 	beq-    ffc0f818 <ramdisk_free+0x5c>           <== NEVER TAKEN
    if (rd->malloced) {                                               
ffc0f7d4:	89 3f 00 0d 	lbz     r9,13(r31)                             
ffc0f7d8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f7dc:	40 9e 00 1c 	bne-    cr7,ffc0f7f8 <ramdisk_free+0x3c>       
      free(rd->area);                                                 
    }                                                                 
    free(rd);                                                         
  }                                                                   
}                                                                     
ffc0f7e0:	80 01 00 14 	lwz     r0,20(r1)                              
{                                                                     
  if (rd != NULL) {                                                   
    if (rd->malloced) {                                               
      free(rd->area);                                                 
    }                                                                 
    free(rd);                                                         
ffc0f7e4:	7f e3 fb 78 	mr      r3,r31                                 
  }                                                                   
}                                                                     
ffc0f7e8:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0f7ec:	7c 08 03 a6 	mtlr    r0                                     
ffc0f7f0:	38 21 00 10 	addi    r1,r1,16                               
{                                                                     
  if (rd != NULL) {                                                   
    if (rd->malloced) {                                               
      free(rd->area);                                                 
    }                                                                 
    free(rd);                                                         
ffc0f7f4:	4b ff 65 24 	b       ffc05d18 <free>                        
                                                                      
void ramdisk_free(ramdisk *rd)                                        
{                                                                     
  if (rd != NULL) {                                                   
    if (rd->malloced) {                                               
      free(rd->area);                                                 
ffc0f7f8:	80 7f 00 08 	lwz     r3,8(r31)                              
ffc0f7fc:	4b ff 65 1d 	bl      ffc05d18 <free>                        
    }                                                                 
    free(rd);                                                         
  }                                                                   
}                                                                     
ffc0f800:	80 01 00 14 	lwz     r0,20(r1)                              
{                                                                     
  if (rd != NULL) {                                                   
    if (rd->malloced) {                                               
      free(rd->area);                                                 
    }                                                                 
    free(rd);                                                         
ffc0f804:	7f e3 fb 78 	mr      r3,r31                                 
  }                                                                   
}                                                                     
ffc0f808:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0f80c:	7c 08 03 a6 	mtlr    r0                                     
ffc0f810:	38 21 00 10 	addi    r1,r1,16                               
{                                                                     
  if (rd != NULL) {                                                   
    if (rd->malloced) {                                               
      free(rd->area);                                                 
    }                                                                 
    free(rd);                                                         
ffc0f814:	4b ff 65 04 	b       ffc05d18 <free>                        
  }                                                                   
}                                                                     
ffc0f818:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
ffc0f81c:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc0f820:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0f824:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc0f828:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc113c0 <ramdisk_initialize>: rtems_device_driver ramdisk_initialize( rtems_device_major_number major, rtems_device_minor_number minor __attribute__((unused)), void *arg __attribute__((unused))) {
ffc113c0:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc113c4:	7c 08 02 a6 	mflr    r0                                     
ffc113c8:	93 61 00 34 	stw     r27,52(r1)                             
ffc113cc:	7c 7b 1b 78 	mr      r27,r3                                 
ffc113d0:	93 c1 00 40 	stw     r30,64(r1)                             
ffc113d4:	90 01 00 4c 	stw     r0,76(r1)                              
ffc113d8:	92 c1 00 20 	stw     r22,32(r1)                             
ffc113dc:	92 e1 00 24 	stw     r23,36(r1)                             
ffc113e0:	93 01 00 28 	stw     r24,40(r1)                             
ffc113e4:	93 21 00 2c 	stw     r25,44(r1)                             
ffc113e8:	93 41 00 30 	stw     r26,48(r1)                             
ffc113ec:	93 81 00 38 	stw     r28,56(r1)                             
ffc113f0:	93 a1 00 3c 	stw     r29,60(r1)                             
ffc113f4:	93 e1 00 44 	stw     r31,68(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();                                  
ffc113f8:	4b ff 51 01 	bl      ffc064f8 <rtems_disk_io_initialize>    
    if (rc != RTEMS_SUCCESSFUL)                                       
ffc113fc:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc11400:	41 82 00 40 	beq-    ffc11440 <ramdisk_initialize+0x80>     <== ALWAYS TAKEN
            }                                                         
            r->initialized = false;                                   
        }                                                             
    }                                                                 
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc11404:	80 01 00 4c 	lwz     r0,76(r1)                              <== NOT EXECUTED
    rtems_ramdisk_config *c = rtems_ramdisk_configuration;            
    struct ramdisk *r;                                                
    rtems_status_code rc;                                             
                                                                      
    rc = rtems_disk_io_initialize();                                  
    if (rc != RTEMS_SUCCESSFUL)                                       
ffc11408:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
            }                                                         
            r->initialized = false;                                   
        }                                                             
    }                                                                 
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc1140c:	82 c1 00 20 	lwz     r22,32(r1)                             <== NOT EXECUTED
ffc11410:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc11414:	82 e1 00 24 	lwz     r23,36(r1)                             <== NOT EXECUTED
ffc11418:	83 01 00 28 	lwz     r24,40(r1)                             <== NOT EXECUTED
ffc1141c:	83 21 00 2c 	lwz     r25,44(r1)                             <== NOT EXECUTED
ffc11420:	83 41 00 30 	lwz     r26,48(r1)                             <== NOT EXECUTED
ffc11424:	83 61 00 34 	lwz     r27,52(r1)                             <== NOT EXECUTED
ffc11428:	83 81 00 38 	lwz     r28,56(r1)                             <== NOT EXECUTED
ffc1142c:	83 a1 00 3c 	lwz     r29,60(r1)                             <== NOT EXECUTED
ffc11430:	83 c1 00 40 	lwz     r30,64(r1)                             <== NOT EXECUTED
ffc11434:	83 e1 00 44 	lwz     r31,68(r1)                             <== NOT EXECUTED
ffc11438:	38 21 00 48 	addi    r1,r1,72                               <== NOT EXECUTED
ffc1143c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
     * 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));
ffc11440:	3f 20 00 00 	lis     r25,0                                  
ffc11444:	83 b9 27 a8 	lwz     r29,10152(r25)                         
ffc11448:	38 80 00 10 	li      r4,16                                  
ffc1144c:	7f a3 eb 78 	mr      r3,r29                                 
ffc11450:	4b ff 64 75 	bl      ffc078c4 <calloc>                      
    r->trace = false;                                                 
    for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)  
ffc11454:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
     * 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));
ffc11458:	7c 7f 1b 78 	mr      r31,r3                                 
    r->trace = false;                                                 
ffc1145c:	9b c3 00 0e 	stb     r30,14(r3)                             
    for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)  
ffc11460:	41 9e 00 b0 	beq-    cr7,ffc11510 <ramdisk_initialize+0x150><== NEVER TAKEN
ffc11464:	3d 20 ff c3 	lis     r9,-61                                 
ffc11468:	39 29 a2 f8 	addi    r9,r9,-23816                           
ffc1146c:	3f c0 00 00 	lis     r30,0                                  
    {                                                                 
        dev_t dev = rtems_filesystem_make_dev_t(major, i);            
        char name [] = RAMDISK_DEVICE_BASE_NAME "a";                  
ffc11470:	82 e9 00 00 	lwz     r23,0(r9)                              
        {                                                             
            r->malloced = false;                                      
            r->initialized = true;                                    
            r->area = c->location;                                    
        }                                                             
        rc = rtems_disk_create_phys(dev, c->block_size, c->block_num, 
ffc11474:	3e c0 ff c1 	lis     r22,-63                                
    r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
    r->trace = false;                                                 
    for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)  
    {                                                                 
        dev_t dev = rtems_filesystem_make_dev_t(major, i);            
        char name [] = RAMDISK_DEVICE_BASE_NAME "a";                  
ffc11478:	83 09 00 04 	lwz     r24,4(r9)                              
     * 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++)  
ffc1147c:	3b de 20 d4 	addi    r30,r30,8404                           
ffc11480:	3b a0 00 00 	li      r29,0                                  
ffc11484:	3b 39 27 a8 	addi    r25,r25,10152                          
        {                                                             
            r->malloced = false;                                      
            r->initialized = true;                                    
            r->area = c->location;                                    
        }                                                             
        rc = rtems_disk_create_phys(dev, c->block_size, c->block_num, 
ffc11488:	3a d6 15 90 	addi    r22,r22,5520                           
        {                                                             
            if (r->malloced)                                          
            {                                                         
                free(r->area);                                        
            }                                                         
            r->initialized = false;                                   
ffc1148c:	3b 80 00 00 	li      r28,0                                  
            }                                                         
        }                                                             
        else                                                          
        {                                                             
            r->malloced = false;                                      
            r->initialized = true;                                    
ffc11490:	3b 40 00 01 	li      r26,1                                  
        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;                                  
        if (c->location == NULL)                                      
ffc11494:	81 3e 00 08 	lwz     r9,8(r30)                              
    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;                                
ffc11498:	80 be 00 00 	lwz     r5,0(r30)                              
        r->block_num = c->block_num;                                  
        if (c->location == NULL)                                      
ffc1149c:	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;                                  
ffc114a0:	80 de 00 04 	lwz     r6,4(r30)                              
    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;                 
ffc114a4:	9b a1 00 10 	stb     r29,16(r1)                             
        r->block_size = c->block_size;                                
ffc114a8:	90 bf 00 00 	stw     r5,0(r31)                              
        r->block_num = c->block_num;                                  
ffc114ac:	90 df 00 04 	stw     r6,4(r31)                              
    r = calloc(rtems_ramdisk_configuration_size, sizeof(struct ramdisk));
    r->trace = false;                                                 
    for (i = 0; i < rtems_ramdisk_configuration_size; i++, c++, r++)  
    {                                                                 
        dev_t dev = rtems_filesystem_make_dev_t(major, i);            
        char name [] = RAMDISK_DEVICE_BASE_NAME "a";                  
ffc114b0:	92 e1 00 08 	stw     r23,8(r1)                              
ffc114b4:	93 01 00 0c 	stw     r24,12(r1)                             
        name [sizeof(RAMDISK_DEVICE_BASE_NAME)] += i;                 
        r->block_size = c->block_size;                                
        r->block_num = c->block_num;                                  
        if (c->location == NULL)                                      
ffc114b8:	41 9e 00 a0 	beq-    cr7,ffc11558 <ramdisk_initialize+0x198><== ALWAYS TAKEN
                r->initialized = true;                                
            }                                                         
        }                                                             
        else                                                          
        {                                                             
            r->malloced = false;                                      
ffc114bc:	9b 9f 00 0d 	stb     r28,13(r31)                            <== NOT EXECUTED
            r->initialized = true;                                    
ffc114c0:	9b 5f 00 0c 	stb     r26,12(r31)                            <== NOT EXECUTED
            r->area = c->location;                                    
ffc114c4:	91 3f 00 08 	stw     r9,8(r31)                              <== NOT EXECUTED
        }                                                             
        rc = rtems_disk_create_phys(dev, c->block_size, c->block_num, 
ffc114c8:	7f a4 eb 78 	mr      r4,r29                                 
ffc114cc:	7f e8 fb 78 	mr      r8,r31                                 
ffc114d0:	7e c7 b3 78 	mr      r7,r22                                 
ffc114d4:	39 21 00 08 	addi    r9,r1,8                                
ffc114d8:	7f 63 db 78 	mr      r3,r27                                 
ffc114dc:	4b ff 4c 79 	bl      ffc06154 <rtems_disk_create_phys>      
                                    ramdisk_ioctl, r, name);          
        if (rc != RTEMS_SUCCESSFUL)                                   
ffc114e0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc114e4:	41 9e 00 14 	beq-    cr7,ffc114f8 <ramdisk_initialize+0x138><== ALWAYS TAKEN
        {                                                             
            if (r->malloced)                                          
ffc114e8:	89 3f 00 0d 	lbz     r9,13(r31)                             <== NOT EXECUTED
ffc114ec:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc114f0:	40 9e 00 5c 	bne-    cr7,ffc1154c <ramdisk_initialize+0x18c><== NOT EXECUTED
            {                                                         
                free(r->area);                                        
            }                                                         
            r->initialized = false;                                   
ffc114f4:	9b 9f 00 0c 	stb     r28,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++)  
ffc114f8:	81 39 00 00 	lwz     r9,0(r25)                              
ffc114fc:	3b bd 00 01 	addi    r29,r29,1                              
ffc11500:	3b de 00 0c 	addi    r30,r30,12                             
ffc11504:	7f 89 e8 40 	cmplw   cr7,r9,r29                             
ffc11508:	3b ff 00 10 	addi    r31,r31,16                             
ffc1150c:	41 9d ff 88 	bgt+    cr7,ffc11494 <ramdisk_initialize+0xd4> <== NEVER TAKEN
            }                                                         
            r->initialized = false;                                   
        }                                                             
    }                                                                 
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc11510:	80 01 00 4c 	lwz     r0,76(r1)                              
                free(r->area);                                        
            }                                                         
            r->initialized = false;                                   
        }                                                             
    }                                                                 
    return RTEMS_SUCCESSFUL;                                          
ffc11514:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc11518:	82 c1 00 20 	lwz     r22,32(r1)                             
ffc1151c:	7c 08 03 a6 	mtlr    r0                                     
ffc11520:	82 e1 00 24 	lwz     r23,36(r1)                             
ffc11524:	83 01 00 28 	lwz     r24,40(r1)                             
ffc11528:	83 21 00 2c 	lwz     r25,44(r1)                             
ffc1152c:	83 41 00 30 	lwz     r26,48(r1)                             
ffc11530:	83 61 00 34 	lwz     r27,52(r1)                             
ffc11534:	83 81 00 38 	lwz     r28,56(r1)                             
ffc11538:	83 a1 00 3c 	lwz     r29,60(r1)                             
ffc1153c:	83 c1 00 40 	lwz     r30,64(r1)                             
ffc11540:	83 e1 00 44 	lwz     r31,68(r1)                             
ffc11544:	38 21 00 48 	addi    r1,r1,72                               
ffc11548:	4e 80 00 20 	blr                                            
                                    ramdisk_ioctl, r, name);          
        if (rc != RTEMS_SUCCESSFUL)                                   
        {                                                             
            if (r->malloced)                                          
            {                                                         
                free(r->area);                                        
ffc1154c:	80 7f 00 08 	lwz     r3,8(r31)                              <== NOT EXECUTED
ffc11550:	4b ff 64 85 	bl      ffc079d4 <free>                        <== NOT EXECUTED
ffc11554:	4b ff ff a0 	b       ffc114f4 <ramdisk_initialize+0x134>    <== NOT EXECUTED
        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);           
ffc11558:	7c 66 29 d6 	mullw   r3,r6,r5                               
ffc1155c:	90 a1 00 18 	stw     r5,24(r1)                              
ffc11560:	90 c1 00 1c 	stw     r6,28(r1)                              
        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;                                       
ffc11564:	9b 5f 00 0d 	stb     r26,13(r31)                            
            r->area = malloc(r->block_size * r->block_num);           
ffc11568:	4b ff 6c 05 	bl      ffc0816c <malloc>                      
            if (r->area == NULL) /* No enough memory for this disk */ 
ffc1156c:	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);           
ffc11570:	90 7f 00 08 	stw     r3,8(r31)                              
            if (r->area == NULL) /* No enough memory for this disk */ 
ffc11574:	80 a1 00 18 	lwz     r5,24(r1)                              
ffc11578:	80 c1 00 1c 	lwz     r6,28(r1)                              
ffc1157c:	41 9e 00 0c 	beq-    cr7,ffc11588 <ramdisk_initialize+0x1c8><== NEVER TAKEN
                r->initialized = false;                               
                continue;                                             
            }                                                         
            else                                                      
            {                                                         
                r->initialized = true;                                
ffc11580:	9b 5f 00 0c 	stb     r26,12(r31)                            
ffc11584:	4b ff ff 44 	b       ffc114c8 <ramdisk_initialize+0x108>    
        {                                                             
            r->malloced = true;                                       
            r->area = malloc(r->block_size * r->block_num);           
            if (r->area == NULL) /* No enough memory for this disk */ 
            {                                                         
                r->initialized = false;                               
ffc11588:	98 7f 00 0c 	stb     r3,12(r31)                             <== NOT EXECUTED
ffc1158c:	4b ff ff 6c 	b       ffc114f8 <ramdisk_initialize+0x138>    <== NOT EXECUTED
                                                                      

ffc0f54c <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)
ffc0f54c:	3d 40 20 00 	lis     r10,8192                               
    return 0;                                                         
}                                                                     
                                                                      
int                                                                   
ramdisk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)        
{                                                                     
ffc0f550:	94 21 ff e0 	stwu    r1,-32(r1)                             
    struct ramdisk *rd = rtems_disk_get_driver_data(dd);              
                                                                      
    switch (req)                                                      
ffc0f554:	61 4a 42 07 	ori     r10,r10,16903                          
    return 0;                                                         
}                                                                     
                                                                      
int                                                                   
ramdisk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)        
{                                                                     
ffc0f558:	7c 08 02 a6 	mflr    r0                                     
    struct ramdisk *rd = rtems_disk_get_driver_data(dd);              
                                                                      
    switch (req)                                                      
ffc0f55c:	7f 84 50 00 	cmpw    cr7,r4,r10                             
    return 0;                                                         
}                                                                     
                                                                      
int                                                                   
ramdisk_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)        
{                                                                     
ffc0f560:	93 a1 00 14 	stw     r29,20(r1)                             
ffc0f564:	90 01 00 24 	stw     r0,36(r1)                              
ffc0f568:	93 61 00 0c 	stw     r27,12(r1)                             
ffc0f56c:	93 81 00 10 	stw     r28,16(r1)                             
ffc0f570:	93 c1 00 18 	stw     r30,24(r1)                             
ffc0f574:	93 e1 00 1c 	stw     r31,28(r1)                             
            break;                                                    
    }                                                                 
                                                                      
    errno = EINVAL;                                                   
    return -1;                                                        
}                                                                     
ffc0f578:	83 a3 00 3c 	lwz     r29,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)                                                      
ffc0f57c:	41 9e 00 34 	beq-    cr7,ffc0f5b0 <ramdisk_ioctl+0x64>      
ffc0f580:	6c 8a c0 18 	xoris   r10,r4,49176                           
ffc0f584:	2f 8a 42 01 	cmpwi   cr7,r10,16897                          
ffc0f588:	41 9e 00 68 	beq-    cr7,ffc0f5f0 <ramdisk_ioctl+0xa4>      
            break;                                                    
    }                                                                 
                                                                      
    errno = EINVAL;                                                   
    return -1;                                                        
}                                                                     
ffc0f58c:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0f590:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0f594:	7c 08 03 a6 	mtlr    r0                                     
ffc0f598:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0f59c:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0f5a0:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0f5a4:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0f5a8:	38 21 00 20 	addi    r1,r1,32                               
              ramdisk_free(rd);                                       
            }                                                         
            break;                                                    
                                                                      
        default:                                                      
            return rtems_blkdev_ioctl (dd, req, argp);                
ffc0f5ac:	48 00 32 e4 	b       ffc12890 <rtems_blkdev_ioctl>          
            }                                                         
            break;                                                    
        }                                                             
                                                                      
        case RTEMS_BLKIO_DELETED:                                     
            if (rd->free_at_delete_request) {                         
ffc0f5b0:	89 3d 00 0f 	lbz     r9,15(r29)                             
ffc0f5b4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f5b8:	40 9e 01 38 	bne-    cr7,ffc0f6f0 <ramdisk_ioctl+0x1a4>     
        default:                                                      
            return rtems_blkdev_ioctl (dd, req, argp);                
            break;                                                    
    }                                                                 
                                                                      
    errno = EINVAL;                                                   
ffc0f5bc:	48 00 8d ad 	bl      ffc18368 <__errno>                     
    return -1;                                                        
}                                                                     
ffc0f5c0:	80 01 00 24 	lwz     r0,36(r1)                              
        default:                                                      
            return rtems_blkdev_ioctl (dd, req, argp);                
            break;                                                    
    }                                                                 
                                                                      
    errno = EINVAL;                                                   
ffc0f5c4:	39 20 00 16 	li      r9,22                                  
    return -1;                                                        
}                                                                     
ffc0f5c8:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0f5cc:	7c 08 03 a6 	mtlr    r0                                     
        default:                                                      
            return rtems_blkdev_ioctl (dd, req, argp);                
            break;                                                    
    }                                                                 
                                                                      
    errno = EINVAL;                                                   
ffc0f5d0:	91 23 00 00 	stw     r9,0(r3)                               
    return -1;                                                        
ffc0f5d4:	38 60 ff ff 	li      r3,-1                                  
}                                                                     
ffc0f5d8:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0f5dc:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0f5e0:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0f5e4:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0f5e8:	38 21 00 20 	addi    r1,r1,32                               
ffc0f5ec:	4e 80 00 20 	blr                                            
    {                                                                 
        case RTEMS_BLKIO_REQUEST:                                     
        {                                                             
            rtems_blkdev_request *r = argp;                           
                                                                      
            switch (r->req)                                           
ffc0f5f0:	81 25 00 00 	lwz     r9,0(r5)                               
ffc0f5f4:	7c be 2b 78 	mr      r30,r5                                 
ffc0f5f8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f5fc:	40 9e 00 88 	bne-    cr7,ffc0f684 <ramdisk_ioctl+0x138>     
#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++)           
ffc0f600:	81 25 00 10 	lwz     r9,16(r5)                              
ffc0f604:	3b e5 00 18 	addi    r31,r5,24                              
            break;                                                    
    }                                                                 
                                                                      
    errno = EINVAL;                                                   
    return -1;                                                        
}                                                                     
ffc0f608:	83 7d 00 08 	lwz     r27,8(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++)           
ffc0f60c:	3b 80 00 00 	li      r28,0                                  
ffc0f610:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f614:	41 9e 00 34 	beq-    cr7,ffc0f648 <ramdisk_ioctl+0xfc>      <== NEVER TAKEN
#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);
ffc0f618:	80 9f 00 00 	lwz     r4,0(r31)                              
#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++)           
ffc0f61c:	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);
ffc0f620:	81 3d 00 00 	lwz     r9,0(r29)                              
ffc0f624:	80 7f 00 08 	lwz     r3,8(r31)                              
ffc0f628:	7c 84 49 d6 	mullw   r4,r4,r9                               
ffc0f62c:	80 bf 00 04 	lwz     r5,4(r31)                              
#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++)           
ffc0f630:	3b ff 00 10 	addi    r31,r31,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);
ffc0f634:	7c 9b 22 14 	add     r4,r27,r4                              
ffc0f638:	48 00 99 25 	bl      ffc18f5c <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++)           
ffc0f63c:	81 3e 00 10 	lwz     r9,16(r30)                             
ffc0f640:	7f 9c 48 40 	cmplw   cr7,r28,r9                             
ffc0f644:	41 9c ff d4 	blt+    cr7,ffc0f618 <ramdisk_ioctl+0xcc>      <== NEVER TAKEN
static inline void rtems_blkdev_request_done(                         
  rtems_blkdev_request *req,                                          
  rtems_status_code status                                            
)                                                                     
{                                                                     
  (*req->done)(req, status);                                          
ffc0f648:	81 3e 00 04 	lwz     r9,4(r30)                              
ffc0f64c:	7f c3 f3 78 	mr      r3,r30                                 
ffc0f650:	38 80 00 00 	li      r4,0                                   
ffc0f654:	7d 29 03 a6 	mtctr   r9                                     
ffc0f658:	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);                      
ffc0f65c:	38 60 00 00 	li      r3,0                                   
            break;                                                    
    }                                                                 
                                                                      
    errno = EINVAL;                                                   
    return -1;                                                        
}                                                                     
ffc0f660:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0f664:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0f668:	7c 08 03 a6 	mtlr    r0                                     
ffc0f66c:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0f670:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0f674:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0f678:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0f67c:	38 21 00 20 	addi    r1,r1,32                               
ffc0f680:	4e 80 00 20 	blr                                            
    {                                                                 
        case RTEMS_BLKIO_REQUEST:                                     
        {                                                             
            rtems_blkdev_request *r = argp;                           
                                                                      
            switch (r->req)                                           
ffc0f684:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc0f688:	40 9e ff 34 	bne+    cr7,ffc0f5bc <ramdisk_ioctl+0x70>      <== NEVER TAKEN
                                                                      
#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++)           
ffc0f68c:	81 25 00 10 	lwz     r9,16(r5)                              
ffc0f690:	3b e5 00 18 	addi    r31,r5,24                              
            break;                                                    
    }                                                                 
                                                                      
    errno = EINVAL;                                                   
    return -1;                                                        
}                                                                     
ffc0f694:	83 7d 00 08 	lwz     r27,8(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++)           
ffc0f698:	3b 80 00 00 	li      r28,0                                  
ffc0f69c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f6a0:	41 be ff a8 	beq-    cr7,ffc0f648 <ramdisk_ioctl+0xfc>      <== NEVER TAKEN
#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);
ffc0f6a4:	80 7f 00 00 	lwz     r3,0(r31)                              
                                                                      
#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++)           
ffc0f6a8:	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);
ffc0f6ac:	81 3d 00 00 	lwz     r9,0(r29)                              
ffc0f6b0:	80 9f 00 08 	lwz     r4,8(r31)                              
ffc0f6b4:	7c 63 49 d6 	mullw   r3,r3,r9                               
ffc0f6b8:	80 bf 00 04 	lwz     r5,4(r31)                              
                                                                      
#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++)           
ffc0f6bc:	3b ff 00 10 	addi    r31,r31,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);
ffc0f6c0:	7c 7b 1a 14 	add     r3,r27,r3                              
ffc0f6c4:	48 00 98 99 	bl      ffc18f5c <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++)           
ffc0f6c8:	81 3e 00 10 	lwz     r9,16(r30)                             
ffc0f6cc:	7f 9c 48 40 	cmplw   cr7,r28,r9                             
ffc0f6d0:	41 9c ff d4 	blt+    cr7,ffc0f6a4 <ramdisk_ioctl+0x158>     
ffc0f6d4:	81 3e 00 04 	lwz     r9,4(r30)                              
ffc0f6d8:	7f c3 f3 78 	mr      r3,r30                                 
ffc0f6dc:	38 80 00 00 	li      r4,0                                   
ffc0f6e0:	7d 29 03 a6 	mtctr   r9                                     
ffc0f6e4:	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);                      
ffc0f6e8:	38 60 00 00 	li      r3,0                                   
ffc0f6ec:	4b ff ff 74 	b       ffc0f660 <ramdisk_ioctl+0x114>         
            break;                                                    
        }                                                             
                                                                      
        case RTEMS_BLKIO_DELETED:                                     
            if (rd->free_at_delete_request) {                         
              ramdisk_free(rd);                                       
ffc0f6f0:	7f a3 eb 78 	mr      r3,r29                                 
ffc0f6f4:	48 00 00 c9 	bl      ffc0f7bc <ramdisk_free>                
ffc0f6f8:	4b ff fe c4 	b       ffc0f5bc <ramdisk_ioctl+0x70>          
                                                                      

ffc0f82c <ramdisk_register>: rtems_blkdev_bnum media_block_count, bool trace, const char *disk, dev_t *dev_ptr ) {
ffc0f82c:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0f830:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number major = 0;                                
ffc0f834:	39 40 00 00 	li      r10,0                                  
ffc0f838:	7c 29 0b 78 	mr      r9,r1                                  
  rtems_blkdev_bnum media_block_count,                                
  bool trace,                                                         
  const char *disk,                                                   
  dev_t *dev_ptr                                                      
)                                                                     
{                                                                     
ffc0f83c:	93 61 00 1c 	stw     r27,28(r1)                             
ffc0f840:	7c db 33 78 	mr      r27,r6                                 
ffc0f844:	93 81 00 20 	stw     r28,32(r1)                             
ffc0f848:	7c fc 3b 78 	mr      r28,r7                                 
ffc0f84c:	93 a1 00 24 	stw     r29,36(r1)                             
ffc0f850:	7c bd 2b 78 	mr      r29,r5                                 
ffc0f854:	93 c1 00 28 	stw     r30,40(r1)                             
ffc0f858:	7c 7e 1b 78 	mr      r30,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);             
ffc0f85c:	38 60 00 00 	li      r3,0                                   
  rtems_blkdev_bnum media_block_count,                                
  bool trace,                                                         
  const char *disk,                                                   
  dev_t *dev_ptr                                                      
)                                                                     
{                                                                     
ffc0f860:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc0f864:	7c 9f 23 78 	mr      r31,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);             
ffc0f868:	3c 80 ff c2 	lis     r4,-62                                 
  rtems_blkdev_bnum media_block_count,                                
  bool trace,                                                         
  const char *disk,                                                   
  dev_t *dev_ptr                                                      
)                                                                     
{                                                                     
ffc0f86c:	90 01 00 34 	stw     r0,52(r1)                              
  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);             
ffc0f870:	38 84 eb 70 	addi    r4,r4,-5264                            
  rtems_blkdev_bnum media_block_count,                                
  bool trace,                                                         
  const char *disk,                                                   
  dev_t *dev_ptr                                                      
)                                                                     
{                                                                     
ffc0f874:	93 41 00 18 	stw     r26,24(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number major = 0;                                
ffc0f878:	95 49 00 08 	stwu    r10,8(r9)                              
  ramdisk *rd = NULL;                                                 
  dev_t dev = 0;                                                      
                                                                      
  sc = rtems_io_register_driver(0, &ramdisk_ops, &major);             
ffc0f87c:	7d 25 4b 78 	mr      r5,r9                                  
ffc0f880:	4b ff c1 19 	bl      ffc0b998 <rtems_io_register_driver>    
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc0f884:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f888:	41 9e 00 30 	beq-    cr7,ffc0f8b8 <ramdisk_register+0x8c>   <== ALWAYS TAKEN
    return RTEMS_UNSATISFIED;                                         
ffc0f88c:	38 60 00 0d 	li      r3,13                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  *dev_ptr = dev;                                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0f890:	80 01 00 34 	lwz     r0,52(r1)                              
ffc0f894:	83 41 00 18 	lwz     r26,24(r1)                             
ffc0f898:	7c 08 03 a6 	mtlr    r0                                     
ffc0f89c:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc0f8a0:	83 81 00 20 	lwz     r28,32(r1)                             
ffc0f8a4:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc0f8a8:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc0f8ac:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc0f8b0:	38 21 00 30 	addi    r1,r1,48                               
ffc0f8b4:	4e 80 00 20 	blr                                            
  sc = rtems_io_register_driver(0, &ramdisk_ops, &major);             
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  rd = ramdisk_allocate(NULL, media_block_size, media_block_count, trace);
ffc0f8b8:	7f a6 eb 78 	mr      r6,r29                                 
ffc0f8bc:	7f c4 f3 78 	mr      r4,r30                                 
ffc0f8c0:	7f e5 fb 78 	mr      r5,r31                                 
ffc0f8c4:	4b ff fe 39 	bl      ffc0f6fc <ramdisk_allocate>            
  if (rd == NULL) {                                                   
ffc0f8c8:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc0f8cc:	41 82 00 4c 	beq-    ffc0f918 <ramdisk_register+0xec>       <== NEVER TAKEN
  rtems_device_minor_number _minor                                    
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.__overlay.major = _major;                                      
ffc0f8d0:	83 41 00 08 	lwz     r26,8(r1)                              
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  dev = rtems_filesystem_make_dev_t(major, 0);                        
                                                                      
  sc = rtems_disk_create_phys(                                        
ffc0f8d4:	3c e0 ff c1 	lis     r7,-63                                 
ffc0f8d8:	7f 69 db 78 	mr      r9,r27                                 
ffc0f8dc:	7f 43 d3 78 	mr      r3,r26                                 
ffc0f8e0:	38 80 00 00 	li      r4,0                                   
ffc0f8e4:	7f c5 f3 78 	mr      r5,r30                                 
ffc0f8e8:	7f e6 fb 78 	mr      r6,r31                                 
ffc0f8ec:	38 e7 f5 4c 	addi    r7,r7,-2740                            
ffc0f8f0:	7f a8 eb 78 	mr      r8,r29                                 
ffc0f8f4:	4b ff 54 bd 	bl      ffc04db0 <rtems_disk_create_phys>      
    media_block_count,                                                
    ramdisk_ioctl,                                                    
    rd,                                                               
    disk                                                              
  );                                                                  
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc0f8f8:	7c 69 1b 79 	mr.     r9,r3                                  
ffc0f8fc:	40 82 00 14 	bne-    ffc0f910 <ramdisk_register+0xe4>       <== NEVER TAKEN
    rtems_io_unregister_driver(major);                                
                                                                      
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  *dev_ptr = dev;                                                     
ffc0f900:	93 5c 00 00 	stw     r26,0(r28)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc0f904:	38 60 00 00 	li      r3,0                                   
    rtems_io_unregister_driver(major);                                
                                                                      
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  *dev_ptr = dev;                                                     
ffc0f908:	91 3c 00 04 	stw     r9,4(r28)                              
ffc0f90c:	4b ff ff 84 	b       ffc0f890 <ramdisk_register+0x64>       
    ramdisk_ioctl,                                                    
    rd,                                                               
    disk                                                              
  );                                                                  
  if (sc != RTEMS_SUCCESSFUL) {                                       
    ramdisk_free(rd);                                                 
ffc0f910:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc0f914:	4b ff fe a9 	bl      ffc0f7bc <ramdisk_free>                <== NOT EXECUTED
    rtems_io_unregister_driver(major);                                
ffc0f918:	80 61 00 08 	lwz     r3,8(r1)                               <== NOT EXECUTED
ffc0f91c:	4b ff c2 1d 	bl      ffc0bb38 <rtems_io_unregister_driver>  <== NOT EXECUTED
  }                                                                   
                                                                      
  *dev_ptr = dev;                                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0f920:	80 01 00 34 	lwz     r0,52(r1)                              <== NOT EXECUTED
ffc0f924:	83 41 00 18 	lwz     r26,24(r1)                             <== NOT EXECUTED
  );                                                                  
  if (sc != RTEMS_SUCCESSFUL) {                                       
    ramdisk_free(rd);                                                 
    rtems_io_unregister_driver(major);                                
                                                                      
    return RTEMS_UNSATISFIED;                                         
ffc0f928:	38 60 00 0d 	li      r3,13                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  *dev_ptr = dev;                                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0f92c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0f930:	83 61 00 1c 	lwz     r27,28(r1)                             <== NOT EXECUTED
ffc0f934:	83 81 00 20 	lwz     r28,32(r1)                             <== NOT EXECUTED
ffc0f938:	83 a1 00 24 	lwz     r29,36(r1)                             <== NOT EXECUTED
ffc0f93c:	83 c1 00 28 	lwz     r30,40(r1)                             <== NOT EXECUTED
ffc0f940:	83 e1 00 2c 	lwz     r31,44(r1)                             <== NOT EXECUTED
ffc0f944:	38 21 00 30 	addi    r1,r1,48                               <== NOT EXECUTED
ffc0f948:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc1dd10 <read>: size_t count ) { rtems_libio_t *iop; rtems_libio_check_fd( fd );
ffc1dd10:	3d 20 00 00 	lis     r9,0                                   
ssize_t read(                                                         
  int         fd,                                                     
  void       *buffer,                                                 
  size_t      count                                                   
)                                                                     
{                                                                     
ffc1dd14:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc1dd18:	7c 08 02 a6 	mflr    r0                                     
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc1dd1c:	81 29 27 98 	lwz     r9,10136(r9)                           
ssize_t read(                                                         
  int         fd,                                                     
  void       *buffer,                                                 
  size_t      count                                                   
)                                                                     
{                                                                     
ffc1dd20:	90 01 00 0c 	stw     r0,12(r1)                              
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc1dd24:	7f 83 48 40 	cmplw   cr7,r3,r9                              
ffc1dd28:	40 9c 00 68 	bge-    cr7,ffc1dd90 <read+0x80>               
  iop = rtems_libio_iop( fd );                                        
ffc1dd2c:	3d 20 00 00 	lis     r9,0                                   
ffc1dd30:	81 29 28 4c 	lwz     r9,10316(r9)                           
ffc1dd34:	1c 63 00 38 	mulli   r3,r3,56                               
ffc1dd38:	7c 69 1a 14 	add     r3,r9,r3                               
  rtems_libio_check_is_open( iop );                                   
ffc1dd3c:	81 23 00 10 	lwz     r9,16(r3)                              
ffc1dd40:	71 27 01 00 	andi.   r7,r9,256                              
ffc1dd44:	41 82 00 4c 	beq-    ffc1dd90 <read+0x80>                   
  rtems_libio_check_buffer( buffer );                                 
ffc1dd48:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc1dd4c:	41 9e 00 58 	beq-    cr7,ffc1dda4 <read+0x94>               <== NEVER TAKEN
  rtems_libio_check_count( count );                                   
ffc1dd50:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc1dd54:	41 9e 00 28 	beq-    cr7,ffc1dd7c <read+0x6c>               
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
ffc1dd58:	71 2a 00 02 	andi.   r10,r9,2                               
ffc1dd5c:	41 82 00 34 	beq-    ffc1dd90 <read+0x80>                   
                                                                      
  /*                                                                  
   *  Now process the read().                                         
   */                                                                 
  return (*iop->pathinfo.handlers->read_h)( iop, buffer, count );     
ffc1dd60:	81 23 00 24 	lwz     r9,36(r3)                              
}                                                                     
ffc1dd64:	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 );     
ffc1dd68:	81 29 00 08 	lwz     r9,8(r9)                               
}                                                                     
ffc1dd6c:	7c 08 03 a6 	mtlr    r0                                     
ffc1dd70:	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 );     
ffc1dd74:	7d 29 03 a6 	mtctr   r9                                     
ffc1dd78:	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 );                                   
ffc1dd7c:	38 60 00 00 	li      r3,0                                   
                                                                      
  /*                                                                  
   *  Now process the read().                                         
   */                                                                 
  return (*iop->pathinfo.handlers->read_h)( iop, buffer, count );     
}                                                                     
ffc1dd80:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc1dd84:	38 21 00 08 	addi    r1,r1,8                                
ffc1dd88:	7c 08 03 a6 	mtlr    r0                                     
ffc1dd8c:	4e 80 00 20 	blr                                            
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
  rtems_libio_check_buffer( buffer );                                 
  rtems_libio_check_count( count );                                   
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
ffc1dd90:	4b ff 52 e9 	bl      ffc13078 <__errno>                     
ffc1dd94:	39 20 00 09 	li      r9,9                                   
ffc1dd98:	91 23 00 00 	stw     r9,0(r3)                               
ffc1dd9c:	38 60 ff ff 	li      r3,-1                                  
ffc1dda0:	4b ff ff e0 	b       ffc1dd80 <read+0x70>                   
  rtems_libio_t *iop;                                                 
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
  rtems_libio_check_buffer( buffer );                                 
ffc1dda4:	4b ff 52 d5 	bl      ffc13078 <__errno>                     <== NOT EXECUTED
ffc1dda8:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc1ddac:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1ddb0:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc1ddb4:	4b ff ff cc 	b       ffc1dd80 <read+0x70>                   <== NOT EXECUTED
                                                                      

ffc069a8 <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) {
ffc069a8:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc069ac:	7c 08 02 a6 	mflr    r0                                     
ffc069b0:	93 c1 00 38 	stw     r30,56(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))          
ffc069b4:	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)
{                                                                     
ffc069b8:	93 a1 00 34 	stw     r29,52(r1)                             
    int                  i;                                           
    rtems_sector_data_t *sector = NULL;                               
ffc069bc:	3b a0 00 00 	li      r29,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)
{                                                                     
ffc069c0:	90 01 00 44 	stw     r0,68(r1)                              
ffc069c4:	92 e1 00 1c 	stw     r23,28(r1)                             
ffc069c8:	93 01 00 20 	stw     r24,32(r1)                             
ffc069cc:	93 21 00 24 	stw     r25,36(r1)                             
ffc069d0:	93 41 00 28 	stw     r26,40(r1)                             
ffc069d4:	93 61 00 2c 	stw     r27,44(r1)                             
ffc069d8:	93 81 00 30 	stw     r28,48(r1)                             
ffc069dc:	93 e1 00 3c 	stw     r31,60(r1)                             
    int                  i;                                           
    rtems_sector_data_t *sector = NULL;                               
ffc069e0:	93 a1 00 0c 	stw     r29,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))          
ffc069e4:	41 82 00 bc 	beq-    ffc06aa0 <read_extended_partition+0xf8><== NEVER TAKEN
ffc069e8:	81 3e 00 10 	lwz     r9,16(r30)                             
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
ffc069ec:	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))          
ffc069f0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc069f4:	41 9e 00 40 	beq-    cr7,ffc06a34 <read_extended_partition+0x8c><== NEVER TAKEN
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    /* get start sector of current extended partition */              
    here = ext_part->start;                                           
ffc069f8:	83 3e 00 04 	lwz     r25,4(r30)                             
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    off = sector_num * RTEMS_IDE_SECTOR_SIZE;                         
    new_off = lseek(fd, off, SEEK_SET);                               
ffc069fc:	38 a0 00 00 	li      r5,0                                   
ffc06a00:	38 e0 00 00 	li      r7,0                                   
    if (sector == NULL)                                               
    {                                                                 
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    off = sector_num * RTEMS_IDE_SECTOR_SIZE;                         
ffc06a04:	57 3f 48 2c 	rlwinm  r31,r25,9,0,22                         
    new_off = lseek(fd, off, SEEK_SET);                               
ffc06a08:	7f e6 fb 78 	mr      r6,r31                                 
ffc06a0c:	7c 7b 1b 78 	mr      r27,r3                                 
ffc06a10:	7c 9c 23 78 	mr      r28,r4                                 
ffc06a14:	48 00 15 49 	bl      ffc07f5c <lseek>                       
    if (new_off != off) {                                             
ffc06a18:	7f 9d 18 00 	cmpw    cr7,r29,r3                             
ffc06a1c:	41 9e 00 50 	beq-    cr7,ffc06a6c <read_extended_partition+0xc4><== ALWAYS TAKEN
        return RTEMS_IO_ERROR;                                        
ffc06a20:	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)                                                   
ffc06a24:	80 61 00 0c 	lwz     r3,12(r1)                              <== NOT EXECUTED
ffc06a28:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc06a2c:	41 9e 00 08 	beq-    cr7,ffc06a34 <read_extended_partition+0x8c><== NOT EXECUTED
         * and parse the next one                                     
         */                                                           
        rc = data_to_part_desc(data, &new_part_desc);                 
        if (rc != RTEMS_SUCCESSFUL)                                   
        {                                                             
            free(sector);                                             
ffc06a30:	48 00 0f a5 	bl      ffc079d4 <free>                        <== NOT EXECUTED
    }                                                                 
                                                                      
    free(sector);                                                     
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc06a34:	80 01 00 44 	lwz     r0,68(r1)                              
ffc06a38:	7f e3 fb 78 	mr      r3,r31                                 
ffc06a3c:	82 e1 00 1c 	lwz     r23,28(r1)                             
ffc06a40:	7c 08 03 a6 	mtlr    r0                                     
ffc06a44:	83 01 00 20 	lwz     r24,32(r1)                             
ffc06a48:	83 21 00 24 	lwz     r25,36(r1)                             
ffc06a4c:	83 41 00 28 	lwz     r26,40(r1)                             
ffc06a50:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc06a54:	83 81 00 30 	lwz     r28,48(r1)                             
ffc06a58:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc06a5c:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc06a60:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc06a64:	38 21 00 40 	addi    r1,r1,64                               
ffc06a68:	4e 80 00 20 	blr                                            
        return RTEMS_INTERNAL_ERROR;                                  
    }                                                                 
                                                                      
    off = sector_num * RTEMS_IDE_SECTOR_SIZE;                         
    new_off = lseek(fd, off, SEEK_SET);                               
    if (new_off != off) {                                             
ffc06a6c:	7f 9f 20 00 	cmpw    cr7,r31,r4                             
ffc06a70:	40 9e ff b0 	bne+    cr7,ffc06a20 <read_extended_partition+0x78><== NEVER TAKEN
ffc06a74:	7f 63 db 78 	mr      r3,r27                                 
ffc06a78:	7f 24 cb 78 	mr      r4,r25                                 
ffc06a7c:	38 a1 00 0c 	addi    r5,r1,12                               
ffc06a80:	4b ff fd 45 	bl      ffc067c4 <get_sector.part.0>           
    here = ext_part->start;                                           
                                                                      
    /* get first extended partition sector */                         
                                                                      
    rc = get_sector(fd, here, §or);                               
    if (rc != RTEMS_SUCCESSFUL)                                       
ffc06a84:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc06a88:	40 a2 ff 9c 	bne-    ffc06a24 <read_extended_partition+0x7c><== NEVER TAKEN
        if (sector)                                                   
            free(sector);                                             
        return rc;                                                    
    }                                                                 
                                                                      
    if (!msdos_signature_check(sector))                               
ffc06a8c:	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) &&    
ffc06a90:	89 23 02 02 	lbz     r9,514(r3)                             
ffc06a94:	2f 89 00 55 	cmpwi   cr7,r9,85                              
ffc06a98:	41 9e 00 44 	beq-    cr7,ffc06adc <read_extended_partition+0x134><== ALWAYS TAKEN
        return rc;                                                    
    }                                                                 
                                                                      
    if (!msdos_signature_check(sector))                               
    {                                                                 
        free(sector);                                                 
ffc06a9c:	48 00 0f 39 	bl      ffc079d4 <free>                        <== NOT EXECUTED
    }                                                                 
                                                                      
    free(sector);                                                     
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc06aa0:	80 01 00 44 	lwz     r0,68(r1)                              <== NOT EXECUTED
    }                                                                 
                                                                      
    if (!msdos_signature_check(sector))                               
    {                                                                 
        free(sector);                                                 
        return RTEMS_INTERNAL_ERROR;                                  
ffc06aa4:	3b e0 00 19 	li      r31,25                                 <== NOT EXECUTED
    }                                                                 
                                                                      
    free(sector);                                                     
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc06aa8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc06aac:	82 e1 00 1c 	lwz     r23,28(r1)                             <== NOT EXECUTED
ffc06ab0:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc06ab4:	83 01 00 20 	lwz     r24,32(r1)                             <== NOT EXECUTED
ffc06ab8:	83 21 00 24 	lwz     r25,36(r1)                             <== NOT EXECUTED
ffc06abc:	83 41 00 28 	lwz     r26,40(r1)                             <== NOT EXECUTED
ffc06ac0:	83 61 00 2c 	lwz     r27,44(r1)                             <== NOT EXECUTED
ffc06ac4:	83 81 00 30 	lwz     r28,48(r1)                             <== NOT EXECUTED
ffc06ac8:	83 a1 00 34 	lwz     r29,52(r1)                             <== NOT EXECUTED
ffc06acc:	83 c1 00 38 	lwz     r30,56(r1)                             <== NOT EXECUTED
ffc06ad0:	83 e1 00 3c 	lwz     r31,60(r1)                             <== NOT EXECUTED
ffc06ad4:	38 21 00 40 	addi    r1,r1,64                               <== NOT EXECUTED
ffc06ad8:	4e 80 00 20 	blr                                            <== NOT EXECUTED
static bool                                                           
msdos_signature_check (rtems_sector_data_t *sector)                   
{                                                                     
    uint8_t *p = sector->data + RTEMS_IDE_PARTITION_MSDOS_SIGNATURE_OFFSET;
                                                                      
    return ((p[0] == RTEMS_IDE_PARTITION_MSDOS_SIGNATURE_DATA1) &&    
ffc06adc:	89 23 02 03 	lbz     r9,515(r3)                             
ffc06ae0:	2f 89 00 aa 	cmpwi   cr7,r9,170                             
ffc06ae4:	40 9e ff b8 	bne+    cr7,ffc06a9c <read_extended_partition+0xf4><== NEVER TAKEN
 *      RTEMS_SUCCESSFUL if success,                                  
 *      RTEMS_NO_MEMOTY if cannot allocate memory for part_desc_t strucure,
 *      RTEMS_INTERNAL_ERROR if other error occurs.                   
 */                                                                   
static rtems_status_code                                              
read_extended_partition(int fd, uint32_t start, rtems_part_desc_t *ext_part)
ffc06ae8:	3b 43 01 d2 	addi    r26,r3,466                             
ffc06aec:	7f dd f3 78 	mr      r29,r30                                
ffc06af0:	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;                  
ffc06af4:	3a e0 00 00 	li      r23,0                                  
ffc06af8:	38 7a ff f0 	addi    r3,r26,-16                             
ffc06afc:	38 81 00 08 	addi    r4,r1,8                                
ffc06b00:	4b ff fd 91 	bl      ffc06890 <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)                                   
ffc06b04:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc06b08:	40 82 00 80 	bne-    ffc06b88 <read_extended_partition+0x1e0><== NEVER TAKEN
        {                                                             
            free(sector);                                             
            return rc;                                                
        }                                                             
                                                                      
        if (new_part_desc == NULL)                                    
ffc06b0c:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc06b10:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc06b14:	41 9e 00 64 	beq-    cr7,ffc06b78 <read_extended_partition+0x1d0>
        {                                                             
            data += RTEMS_IDE_PARTITION_DESCRIPTOR_SIZE;              
            continue;                                                 
        }                                                             
                                                                      
        ext_part->sub_part[i] = new_part_desc;                        
ffc06b18:	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))                     
ffc06b1c:	89 45 00 01 	lbz     r10,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;               
ffc06b20:	81 3e 00 10 	lwz     r9,16(r30)                             
 *      true if partition type is extended, false otherwise           
 */                                                                   
static bool                                                           
is_extended(uint8_t type)                                             
{                                                                     
    return ((type == EXTENDED_PARTITION) || (type == LINUX_EXTENDED));
ffc06b24:	2f 8a 00 05 	cmpwi   cr7,r10,5                              
            data += RTEMS_IDE_PARTITION_DESCRIPTOR_SIZE;              
            continue;                                                 
        }                                                             
                                                                      
        ext_part->sub_part[i] = new_part_desc;                        
        new_part_desc->ext_part = ext_part;                           
ffc06b28:	93 c5 00 14 	stw     r30,20(r5)                             
 *      true if partition type is extended, false otherwise           
 */                                                                   
static bool                                                           
is_extended(uint8_t type)                                             
{                                                                     
    return ((type == EXTENDED_PARTITION) || (type == LINUX_EXTENDED));
ffc06b2c:	2f 0a 00 85 	cmpwi   cr6,r10,133                            
            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;               
ffc06b30:	91 25 00 10 	stw     r9,16(r5)                              
 *      true if partition type is extended, false otherwise           
 */                                                                   
static bool                                                           
is_extended(uint8_t type)                                             
{                                                                     
    return ((type == EXTENDED_PARTITION) || (type == LINUX_EXTENDED));
ffc06b34:	41 9e 00 60 	beq-    cr7,ffc06b94 <read_extended_partition+0x1ec>
ffc06b38:	41 9a 00 5c 	beq-    cr6,ffc06b94 <read_extended_partition+0x1ec><== NEVER TAKEN
            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;
ffc06b3c:	81 49 00 24 	lwz     r10,36(r9)                             
            new_part_desc->log_id = ++disk_desc->last_log_id;         
            new_part_desc->start += here;                             
ffc06b40:	81 05 00 04 	lwz     r8,4(r5)                               
            new_part_desc->end = new_part_desc->start + new_part_desc->size - 1;
ffc06b44:	80 e5 00 08 	lwz     r7,8(r5)                               
            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;
ffc06b48:	38 ca 00 08 	addi    r6,r10,8                               
            new_part_desc->log_id = ++disk_desc->last_log_id;         
            new_part_desc->start += here;                             
ffc06b4c:	7d 19 42 14 	add     r8,r25,r8                              
            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;
ffc06b50:	54 c6 10 3a 	rlwinm  r6,r6,2,0,29                           
            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;
ffc06b54:	38 e7 ff ff 	addi    r7,r7,-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;         
ffc06b58:	39 4a 00 01 	addi    r10,r10,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;
ffc06b5c:	7c c9 32 14 	add     r6,r9,r6                               
            new_part_desc->log_id = ++disk_desc->last_log_id;         
ffc06b60:	91 49 00 24 	stw     r10,36(r9)                             
            new_part_desc->start += here;                             
            new_part_desc->end = new_part_desc->start + new_part_desc->size - 1;
ffc06b64:	7c e7 42 14 	add     r7,r7,r8                               
            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;
ffc06b68:	90 a6 00 08 	stw     r5,8(r6)                               
            new_part_desc->log_id = ++disk_desc->last_log_id;         
ffc06b6c:	99 45 00 02 	stb     r10,2(r5)                              
            new_part_desc->start += here;                             
ffc06b70:	91 05 00 04 	stw     r8,4(r5)                               
            new_part_desc->end = new_part_desc->start + new_part_desc->size - 1;
ffc06b74:	90 e5 00 0c 	stw     r7,12(r5)                              
ffc06b78:	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++)
ffc06b7c:	7f 9d c0 00 	cmpw    cr7,r29,r24                            
ffc06b80:	3b 5a 00 10 	addi    r26,r26,16                             
ffc06b84:	40 9e ff 74 	bne+    cr7,ffc06af8 <read_extended_partition+0x150>
         * and parse the next one                                     
         */                                                           
        rc = data_to_part_desc(data, &new_part_desc);                 
        if (rc != RTEMS_SUCCESSFUL)                                   
        {                                                             
            free(sector);                                             
ffc06b88:	80 61 00 0c 	lwz     r3,12(r1)                              
ffc06b8c:	48 00 0e 49 	bl      ffc079d4 <free>                        
ffc06b90:	4b ff fe a4 	b       ffc06a34 <read_extended_partition+0x8c>
        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;                            
ffc06b94:	81 25 00 04 	lwz     r9,4(r5)                               
            read_extended_partition(fd, start, new_part_desc);        
ffc06b98:	7f 63 db 78 	mr      r3,r27                                 
        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;                  
ffc06b9c:	9a e5 00 02 	stb     r23,2(r5)                              
            new_part_desc->start += start;                            
            read_extended_partition(fd, start, new_part_desc);        
ffc06ba0:	7f 84 e3 78 	mr      r4,r28                                 
        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;                            
ffc06ba4:	7d 29 e2 14 	add     r9,r9,r28                              
ffc06ba8:	91 25 00 04 	stw     r9,4(r5)                               
            read_extended_partition(fd, start, new_part_desc);        
ffc06bac:	4b ff fd fd 	bl      ffc069a8 <read_extended_partition>     
ffc06bb0:	4b ff ff c8 	b       ffc06b78 <read_extended_partition+0x1d0>
                                                                      

ffc06858 <readv>: int v; int bytes; rtems_libio_t *iop; bool all_zeros; rtems_libio_check_fd( fd );
ffc06858:	3d 20 00 00 	lis     r9,0                                   
ssize_t readv(                                                        
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
ffc0685c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc06860:	7c 08 02 a6 	mflr    r0                                     
  int            v;                                                   
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc06864:	81 29 27 78 	lwz     r9,10104(r9)                           
ssize_t readv(                                                        
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
ffc06868:	90 01 00 1c 	stw     r0,28(r1)                              
  int            v;                                                   
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc0686c:	7f 83 48 40 	cmplw   cr7,r3,r9                              
ssize_t readv(                                                        
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
ffc06870:	93 81 00 08 	stw     r28,8(r1)                              
ffc06874:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc06878:	93 c1 00 10 	stw     r30,16(r1)                             
ffc0687c:	93 e1 00 14 	stw     r31,20(r1)                             
  int            v;                                                   
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc06880:	40 9c 01 4c 	bge-    cr7,ffc069cc <readv+0x174>             
  iop = rtems_libio_iop( fd );                                        
ffc06884:	3d 20 00 00 	lis     r9,0                                   
ffc06888:	83 c9 28 28 	lwz     r30,10280(r9)                          
ffc0688c:	1c 63 00 38 	mulli   r3,r3,56                               
ffc06890:	7f de 1a 14 	add     r30,r30,r3                             
  rtems_libio_check_is_open( iop );                                   
ffc06894:	81 3e 00 10 	lwz     r9,16(r30)                             
ffc06898:	71 2a 01 00 	andi.   r10,r9,256                             
ffc0689c:	41 82 01 30 	beq-    ffc069cc <readv+0x174>                 
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
ffc068a0:	71 2a 00 02 	andi.   r10,r9,2                               
ffc068a4:	41 82 01 28 	beq-    ffc069cc <readv+0x174>                 <== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Argument validation on IO vector                                
   */                                                                 
  if ( !iov )                                                         
ffc068a8:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc068ac:	41 9e 00 ec 	beq-    cr7,ffc06998 <readv+0x140>             
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
ffc068b0:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc068b4:	40 9d 00 e4 	ble-    cr7,ffc06998 <readv+0x140>             
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
ffc068b8:	2f 85 04 00 	cmpwi   cr7,r5,1024                            
ffc068bc:	41 9d 00 dc 	bgt-    cr7,ffc06998 <readv+0x140>             <== NEVER TAKEN
 *                                                                    
 *  OpenGroup URL:                                                    
 *                                                                    
 *  http://www.opengroup.org/onlinepubs/009695399/functions/readv.html
 */                                                                   
ssize_t readv(                                                        
ffc068c0:	54 bc 18 38 	rlwinm  r28,r5,3,0,28                          
ffc068c4:	39 1c ff f8 	addi    r8,r28,-8                              
ffc068c8:	55 08 e8 fe 	rlwinm  r8,r8,29,3,31                          
ffc068cc:	39 08 00 01 	addi    r8,r8,1                                
ffc068d0:	7d 09 03 a6 	mtctr   r8                                     
ffc068d4:	7c 9f 23 78 	mr      r31,r4                                 
ffc068d8:	7c 89 23 78 	mr      r9,r4                                  
ffc068dc:	38 c0 00 01 	li      r6,1                                   
ffc068e0:	39 40 00 00 	li      r10,0                                  
ffc068e4:	7f 84 e2 14 	add     r28,r4,r28                             
                                                                      
    /*                                                                
     *  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 )                                       
ffc068e8:	81 09 00 00 	lwz     r8,0(r9)                               
ffc068ec:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc068f0:	41 9e 00 a8 	beq-    cr7,ffc06998 <readv+0x140>             
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
ffc068f4:	80 e9 00 04 	lwz     r7,4(r9)                               
ffc068f8:	39 29 00 08 	addi    r9,r9,8                                
ffc068fc:	7d 07 52 14 	add     r8,r7,r10                              
    if ( total < old )                                                
ffc06900:	7f 88 50 00 	cmpw    cr7,r8,r10                             
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
ffc06904:	30 e7 ff ff 	addic   r7,r7,-1                               
ffc06908:	7c e7 39 10 	subfe   r7,r7,r7                               
ffc0690c:	7c c6 38 38 	and     r6,r6,r7                               
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
ffc06910:	7d 0a 43 78 	mr      r10,r8                                 
    if ( total < old )                                                
ffc06914:	41 9c 00 84 	blt-    cr7,ffc06998 <readv+0x140>             
   *  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++ ) {                           
ffc06918:	42 00 ff d0 	bdnz+   ffc068e8 <readv+0x90>                  
  /*                                                                  
   *  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 ) {                                          
ffc0691c:	2f 86 00 00 	cmpwi   cr7,r6,0                               
    return 0;                                                         
ffc06920:	3b a0 00 00 	li      r29,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 ) {                                          
ffc06924:	40 9e 00 84 	bne-    cr7,ffc069a8 <readv+0x150>             
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    bytes = (*iop->pathinfo.handlers->read_h)(                        
ffc06928:	81 3e 00 24 	lwz     r9,36(r30)                             
ffc0692c:	7f c3 f3 78 	mr      r3,r30                                 
ffc06930:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc06934:	81 29 00 08 	lwz     r9,8(r9)                               
ffc06938:	80 bf 00 04 	lwz     r5,4(r31)                              
ffc0693c:	7d 29 03 a6 	mtctr   r9                                     
ffc06940:	4e 80 04 21 	bctrl                                          
      iop,                                                            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
ffc06944:	2c 03 00 00 	cmpwi   r3,0                                   
ffc06948:	41 80 00 48 	blt-    ffc06990 <readv+0x138>                 <== NEVER TAKEN
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
ffc0694c:	41 82 00 08 	beq-    ffc06954 <readv+0xfc>                  <== NEVER TAKEN
      total       += bytes;                                           
ffc06950:	7f bd 1a 14 	add     r29,r29,r3                             
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
ffc06954:	81 5f 00 04 	lwz     r10,4(r31)                             
ffc06958:	3b ff 00 08 	addi    r31,r31,8                              
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
ffc0695c:	7f 9f e0 00 	cmpw    cr7,r31,r28                            
                                                                      
    if ( bytes > 0 ) {                                                
      total       += bytes;                                           
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
ffc06960:	7f 03 50 00 	cmpw    cr6,r3,r10                             
ffc06964:	40 9a 00 44 	bne-    cr6,ffc069a8 <readv+0x150>             <== NEVER TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the readv().                                        
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
ffc06968:	41 9e 00 40 	beq-    cr7,ffc069a8 <readv+0x150>             
    bytes = (*iop->pathinfo.handlers->read_h)(                        
ffc0696c:	81 3e 00 24 	lwz     r9,36(r30)                             
ffc06970:	7f c3 f3 78 	mr      r3,r30                                 
ffc06974:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc06978:	81 29 00 08 	lwz     r9,8(r9)                               
ffc0697c:	80 bf 00 04 	lwz     r5,4(r31)                              
ffc06980:	7d 29 03 a6 	mtctr   r9                                     
ffc06984:	4e 80 04 21 	bctrl                                          
      iop,                                                            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
ffc06988:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0698c:	40 80 ff c0 	bge+    ffc0694c <readv+0xf4>                  <== ALWAYS TAKEN
      return -1;                                                      
ffc06990:	3b a0 ff ff 	li      r29,-1                                 <== NOT EXECUTED
ffc06994:	48 00 00 14 	b       ffc069a8 <readv+0x150>                 <== NOT EXECUTED
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old )                                                
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc06998:	48 00 d0 c9 	bl      ffc13a60 <__errno>                     
ffc0699c:	39 20 00 16 	li      r9,22                                  
ffc069a0:	91 23 00 00 	stw     r9,0(r3)                               
ffc069a4:	3b a0 ff ff 	li      r29,-1                                 
    if (bytes != iov[ v ].iov_len)                                    
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
ffc069a8:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc069ac:	7f a3 eb 78 	mr      r3,r29                                 
ffc069b0:	83 81 00 08 	lwz     r28,8(r1)                              
ffc069b4:	7c 08 03 a6 	mtlr    r0                                     
ffc069b8:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc069bc:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc069c0:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc069c4:	38 21 00 18 	addi    r1,r1,24                               
ffc069c8:	4e 80 00 20 	blr                                            
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_READ, EBADF );
ffc069cc:	48 00 d0 95 	bl      ffc13a60 <__errno>                     
ffc069d0:	39 20 00 09 	li      r9,9                                   
ffc069d4:	91 23 00 00 	stw     r9,0(r3)                               
ffc069d8:	3b a0 ff ff 	li      r29,-1                                 
ffc069dc:	4b ff ff cc 	b       ffc069a8 <readv+0x150>                 
                                                                      

ffc1ddf4 <realloc>: /* * Do not attempt to allocate memory if in a critical section or ISR. */ if (_System_state_Is_up(_System_state_Get())) {
ffc1ddf4:	3d 20 00 00 	lis     r9,0                                   
                                                                      
void *realloc(                                                        
  void *ptr,                                                          
  size_t size                                                         
)                                                                     
{                                                                     
ffc1ddf8:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc1ddfc:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
ffc1de00:	81 29 28 90 	lwz     r9,10384(r9)                           
                                                                      
void *realloc(                                                        
  void *ptr,                                                          
  size_t size                                                         
)                                                                     
{                                                                     
ffc1de04:	93 c1 00 20 	stw     r30,32(r1)                             
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
ffc1de08:	3f c0 00 00 	lis     r30,0                                  
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
ffc1de0c:	2f 89 00 03 	cmpwi   cr7,r9,3                               
)                                                                     
{                                                                     
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
ffc1de10:	3b de 2b a0 	addi    r30,r30,11168                          
                                                                      
void *realloc(                                                        
  void *ptr,                                                          
  size_t size                                                         
)                                                                     
{                                                                     
ffc1de14:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc1de18:	7c 9d 23 78 	mr      r29,r4                                 
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
ffc1de1c:	81 3e 00 10 	lwz     r9,16(r30)                             
                                                                      
void *realloc(                                                        
  void *ptr,                                                          
  size_t size                                                         
)                                                                     
{                                                                     
ffc1de20:	93 e1 00 24 	stw     r31,36(r1)                             
ffc1de24:	7c 7f 1b 78 	mr      r31,r3                                 
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
ffc1de28:	39 49 00 01 	addi    r10,r9,1                               
                                                                      
void *realloc(                                                        
  void *ptr,                                                          
  size_t size                                                         
)                                                                     
{                                                                     
ffc1de2c:	90 01 00 2c 	stw     r0,44(r1)                              
ffc1de30:	93 81 00 18 	stw     r28,24(r1)                             
  uintptr_t old_size;                                                 
  char    *new_area;                                                  
                                                                      
  MSBUMP(realloc_calls, 1);                                           
ffc1de34:	91 5e 00 10 	stw     r10,16(r30)                            
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if in a critical section or ISR.
   */                                                                 
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
ffc1de38:	41 9e 00 d4 	beq-    cr7,ffc1df0c <realloc+0x118>           
  }                                                                   
                                                                      
  /*                                                                  
   * Continue with realloc().                                         
   */                                                                 
  if ( !ptr )                                                         
ffc1de3c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc1de40:	41 9e 01 58 	beq-    cr7,ffc1df98 <realloc+0x1a4>           
    return malloc( size );                                            
                                                                      
  if ( !size ) {                                                      
ffc1de44:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc1de48:	41 9e 01 2c 	beq-    cr7,ffc1df74 <realloc+0x180>           <== NEVER TAKEN
    free( ptr );                                                      
    return (void *) 0;                                                
  }                                                                   
                                                                      
  if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
ffc1de4c:	3f 80 00 00 	lis     r28,0                                  
ffc1de50:	80 7c 27 90 	lwz     r3,10128(r28)                          
ffc1de54:	7f e4 fb 78 	mr      r4,r31                                 
ffc1de58:	38 a1 00 08 	addi    r5,r1,8                                
ffc1de5c:	48 00 07 d1 	bl      ffc1e62c <_Protected_heap_Get_block_size>
ffc1de60:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1de64:	41 9e 01 20 	beq-    cr7,ffc1df84 <realloc+0x190>           
  }                                                                   
                                                                      
  /*                                                                  
   *  Now resize it.                                                  
   */                                                                 
  if ( _Protected_heap_Resize_block( RTEMS_Malloc_Heap, ptr, size ) ) {
ffc1de68:	80 7c 27 90 	lwz     r3,10128(r28)                          
ffc1de6c:	7f e4 fb 78 	mr      r4,r31                                 
ffc1de70:	7f a5 eb 78 	mr      r5,r29                                 
ffc1de74:	48 00 08 1d 	bl      ffc1e690 <_Protected_heap_Resize_block>
ffc1de78:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1de7c:	41 9e 00 28 	beq-    cr7,ffc1dea4 <realloc+0xb0>            
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
  free( ptr );                                                        
                                                                      
  return new_area;                                                    
                                                                      
}                                                                     
ffc1de80:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc1de84:	7f e3 fb 78 	mr      r3,r31                                 
ffc1de88:	83 81 00 18 	lwz     r28,24(r1)                             
ffc1de8c:	7c 08 03 a6 	mtlr    r0                                     
ffc1de90:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc1de94:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc1de98:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc1de9c:	38 21 00 28 	addi    r1,r1,40                               
ffc1dea0:	4e 80 00 20 	blr                                            
   *  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 );                                          
ffc1dea4:	7f a3 eb 78 	mr      r3,r29                                 
ffc1dea8:	4b fe 70 ed 	bl      ffc04f94 <malloc>                      
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
ffc1deac:	81 3e 00 04 	lwz     r9,4(r30)                              
                                                                      
  if ( !new_area ) {                                                  
ffc1deb0:	7c 7c 1b 79 	mr.     r28,r3                                 
   *  and the C Standard.                                             
   */                                                                 
                                                                      
  new_area = malloc( size );                                          
                                                                      
  MSBUMP(malloc_calls, (uint32_t) -1);   /* subtract off the malloc */
ffc1deb4:	39 29 ff ff 	addi    r9,r9,-1                               
ffc1deb8:	91 3e 00 04 	stw     r9,4(r30)                              
                                                                      
  if ( !new_area ) {                                                  
ffc1debc:	41 82 00 70 	beq-    ffc1df2c <realloc+0x138>               
    return (void *) 0;                                                
  }                                                                   
                                                                      
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
ffc1dec0:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1dec4:	7f a5 eb 78 	mr      r5,r29                                 
ffc1dec8:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
ffc1decc:	41 9d 00 88 	bgt-    cr7,ffc1df54 <realloc+0x160>           <== ALWAYS TAKEN
ffc1ded0:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1ded4:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc1ded8:	4b ff 5e a5 	bl      ffc13d7c <memcpy>                      <== NOT EXECUTED
  free( ptr );                                                        
ffc1dedc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1dee0:	4b fe 6c 89 	bl      ffc04b68 <free>                        <== NOT EXECUTED
ffc1dee4:	7f 9f e3 78 	mr      r31,r28                                <== NOT EXECUTED
                                                                      
  return new_area;                                                    
                                                                      
}                                                                     
ffc1dee8:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc1deec:	7f e3 fb 78 	mr      r3,r31                                 
ffc1def0:	83 81 00 18 	lwz     r28,24(r1)                             
ffc1def4:	7c 08 03 a6 	mtlr    r0                                     
ffc1def8:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc1defc:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc1df00:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc1df04:	38 21 00 28 	addi    r1,r1,40                               
ffc1df08:	4e 80 00 20 	blr                                            
   * 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 )                      
ffc1df0c:	3d 20 00 00 	lis     r9,0                                   
ffc1df10:	81 29 28 68 	lwz     r9,10344(r9)                           
ffc1df14:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1df18:	40 9e 00 14 	bne-    cr7,ffc1df2c <realloc+0x138>           <== NEVER TAKEN
                                                                      
  if (_System_state_Is_up(_System_state_Get())) {                     
    if (_Thread_Dispatch_in_critical_section())                       
      return (void *) 0;                                              
                                                                      
    if (_ISR_Nest_level > 0)                                          
ffc1df1c:	3d 20 00 00 	lis     r9,0                                   
ffc1df20:	81 29 31 a8 	lwz     r9,12712(r9)                           
ffc1df24:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1df28:	41 9e ff 14 	beq+    cr7,ffc1de3c <realloc+0x48>            <== ALWAYS TAKEN
    return (void *) 0;                                                
  }                                                                   
                                                                      
  if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
    errno = EINVAL;                                                   
    return (void *) 0;                                                
ffc1df2c:	3b e0 00 00 	li      r31,0                                  
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
  free( ptr );                                                        
                                                                      
  return new_area;                                                    
                                                                      
}                                                                     
ffc1df30:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc1df34:	7f e3 fb 78 	mr      r3,r31                                 
ffc1df38:	83 81 00 18 	lwz     r28,24(r1)                             
ffc1df3c:	7c 08 03 a6 	mtlr    r0                                     
ffc1df40:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc1df44:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc1df48:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc1df4c:	38 21 00 28 	addi    r1,r1,40                               
ffc1df50:	4e 80 00 20 	blr                                            
                                                                      
  if ( !new_area ) {                                                  
    return (void *) 0;                                                
  }                                                                   
                                                                      
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
ffc1df54:	7f e4 fb 78 	mr      r4,r31                                 
ffc1df58:	7d 25 4b 78 	mr      r5,r9                                  
ffc1df5c:	7f 83 e3 78 	mr      r3,r28                                 
ffc1df60:	4b ff 5e 1d 	bl      ffc13d7c <memcpy>                      
  free( ptr );                                                        
ffc1df64:	7f e3 fb 78 	mr      r3,r31                                 
ffc1df68:	4b fe 6c 01 	bl      ffc04b68 <free>                        
ffc1df6c:	7f 9f e3 78 	mr      r31,r28                                
ffc1df70:	4b ff ff 78 	b       ffc1dee8 <realloc+0xf4>                
   */                                                                 
  if ( !ptr )                                                         
    return malloc( size );                                            
                                                                      
  if ( !size ) {                                                      
    free( ptr );                                                      
ffc1df74:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1df78:	4b fe 6b f1 	bl      ffc04b68 <free>                        <== NOT EXECUTED
    return (void *) 0;                                                
ffc1df7c:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
ffc1df80:	4b ff ff 00 	b       ffc1de80 <realloc+0x8c>                <== NOT EXECUTED
  }                                                                   
                                                                      
  if ( !_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, ptr, &old_size) ) {
    errno = EINVAL;                                                   
ffc1df84:	4b ff 50 f5 	bl      ffc13078 <__errno>                     
ffc1df88:	39 20 00 16 	li      r9,22                                  
ffc1df8c:	91 23 00 00 	stw     r9,0(r3)                               
    return (void *) 0;                                                
ffc1df90:	3b e0 00 00 	li      r31,0                                  
ffc1df94:	4b ff ff 9c 	b       ffc1df30 <realloc+0x13c>               
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
  free( ptr );                                                        
                                                                      
  return new_area;                                                    
                                                                      
}                                                                     
ffc1df98:	80 01 00 2c 	lwz     r0,44(r1)                              
                                                                      
  /*                                                                  
   * Continue with realloc().                                         
   */                                                                 
  if ( !ptr )                                                         
    return malloc( size );                                            
ffc1df9c:	7f a3 eb 78 	mr      r3,r29                                 
  memcpy( new_area, ptr, (size < old_size) ? size : old_size );       
  free( ptr );                                                        
                                                                      
  return new_area;                                                    
                                                                      
}                                                                     
ffc1dfa0:	83 81 00 18 	lwz     r28,24(r1)                             
ffc1dfa4:	7c 08 03 a6 	mtlr    r0                                     
ffc1dfa8:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc1dfac:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc1dfb0:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc1dfb4:	38 21 00 28 	addi    r1,r1,40                               
                                                                      
  /*                                                                  
   * Continue with realloc().                                         
   */                                                                 
  if ( !ptr )                                                         
    return malloc( size );                                            
ffc1dfb8:	4b fe 6f dc 	b       ffc04f94 <malloc>                      
                                                                      

ffc0a0a4 <rtems_aio_enqueue>: * errno - otherwise */ int rtems_aio_enqueue (rtems_aio_request *req) {
ffc0a0a4:	94 21 ff b0 	stwu    r1,-80(r1)                             
ffc0a0a8:	7c 08 02 a6 	mflr    r0                                     
ffc0a0ac:	93 c1 00 48 	stw     r30,72(r1)                             
  struct sched_param param;                                           
                                                                      
  /* The queue should be initialized */                               
  AIO_assert (aio_request_queue.initialized == AIO_QUEUE_INITIALIZED);
                                                                      
  result = pthread_mutex_lock (&aio_request_queue.mutex);             
ffc0a0b0:	3f c0 00 00 	lis     r30,0                                  
ffc0a0b4:	3b de 2b b8 	addi    r30,r30,11192                          
 *         errno     - otherwise                                      
 */                                                                   
                                                                      
int                                                                   
rtems_aio_enqueue (rtems_aio_request *req)                            
{                                                                     
ffc0a0b8:	93 e1 00 4c 	stw     r31,76(r1)                             
ffc0a0bc:	7c 7f 1b 78 	mr      r31,r3                                 
  struct sched_param param;                                           
                                                                      
  /* The queue should be initialized */                               
  AIO_assert (aio_request_queue.initialized == AIO_QUEUE_INITIALIZED);
                                                                      
  result = pthread_mutex_lock (&aio_request_queue.mutex);             
ffc0a0c0:	7f c3 f3 78 	mr      r3,r30                                 
 *         errno     - otherwise                                      
 */                                                                   
                                                                      
int                                                                   
rtems_aio_enqueue (rtems_aio_request *req)                            
{                                                                     
ffc0a0c4:	93 a1 00 44 	stw     r29,68(r1)                             
ffc0a0c8:	90 01 00 54 	stw     r0,84(r1)                              
ffc0a0cc:	93 61 00 3c 	stw     r27,60(r1)                             
ffc0a0d0:	93 81 00 40 	stw     r28,64(r1)                             
  struct sched_param param;                                           
                                                                      
  /* The queue should be initialized */                               
  AIO_assert (aio_request_queue.initialized == AIO_QUEUE_INITIALIZED);
                                                                      
  result = pthread_mutex_lock (&aio_request_queue.mutex);             
ffc0a0d4:	48 00 0d 0d 	bl      ffc0ade0 <pthread_mutex_lock>          
  if (result != 0) {                                                  
ffc0a0d8:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc0a0dc:	40 82 00 d4 	bne-    ffc0a1b0 <rtems_aio_enqueue+0x10c>     <== NEVER TAKEN
    return result;                                                    
  }                                                                   
                                                                      
  /* _POSIX_PRIORITIZED_IO and _POSIX_PRIORITY_SCHEDULING are defined,
     we can use aio_reqprio to lower the priority of the request */   
  pthread_getschedparam (pthread_self(), &policy, ¶m);            
ffc0a0e0:	48 00 18 25 	bl      ffc0b904 <pthread_self>                
ffc0a0e4:	38 81 00 24 	addi    r4,r1,36                               
ffc0a0e8:	38 a1 00 08 	addi    r5,r1,8                                
ffc0a0ec:	48 00 12 d9 	bl      ffc0b3c4 <pthread_getschedparam>       
                                                                      
  req->caller_thread = pthread_self ();                               
ffc0a0f0:	48 00 18 15 	bl      ffc0b904 <pthread_self>                
  req->priority = param.sched_priority - req->aiocbp->aio_reqprio;    
  req->policy = policy;                                               
  req->aiocbp->error_code = EINPROGRESS;                              
  req->aiocbp->return_value = 0;                                      
                                                                      
  if ((aio_request_queue.idle_threads == 0) &&                        
ffc0a0f4:	81 5e 00 68 	lwz     r10,104(r30)                           
  /* _POSIX_PRIORITIZED_IO and _POSIX_PRIORITY_SCHEDULING are defined,
     we can use aio_reqprio to lower the priority of the request */   
  pthread_getschedparam (pthread_self(), &policy, ¶m);            
                                                                      
  req->caller_thread = pthread_self ();                               
  req->priority = param.sched_priority - req->aiocbp->aio_reqprio;    
ffc0a0f8:	81 3f 00 14 	lwz     r9,20(r31)                             
  req->policy = policy;                                               
  req->aiocbp->error_code = EINPROGRESS;                              
  req->aiocbp->return_value = 0;                                      
                                                                      
  if ((aio_request_queue.idle_threads == 0) &&                        
ffc0a0fc:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
  /* _POSIX_PRIORITIZED_IO and _POSIX_PRIORITY_SCHEDULING are defined,
     we can use aio_reqprio to lower the priority of the request */   
  pthread_getschedparam (pthread_self(), &policy, ¶m);            
                                                                      
  req->caller_thread = pthread_self ();                               
  req->priority = param.sched_priority - req->aiocbp->aio_reqprio;    
ffc0a100:	81 01 00 08 	lwz     r8,8(r1)                               
ffc0a104:	81 49 00 18 	lwz     r10,24(r9)                             
                                                                      
  /* _POSIX_PRIORITIZED_IO and _POSIX_PRIORITY_SCHEDULING are defined,
     we can use aio_reqprio to lower the priority of the request */   
  pthread_getschedparam (pthread_self(), &policy, ¶m);            
                                                                      
  req->caller_thread = pthread_self ();                               
ffc0a108:	90 7f 00 10 	stw     r3,16(r31)                             
  req->priority = param.sched_priority - req->aiocbp->aio_reqprio;    
ffc0a10c:	7d 0a 40 50 	subf    r8,r10,r8                              
ffc0a110:	91 1f 00 0c 	stw     r8,12(r31)                             
  req->policy = policy;                                               
ffc0a114:	81 01 00 24 	lwz     r8,36(r1)                              
ffc0a118:	91 1f 00 08 	stw     r8,8(r31)                              
  req->aiocbp->error_code = EINPROGRESS;                              
ffc0a11c:	39 00 00 77 	li      r8,119                                 
ffc0a120:	91 09 00 34 	stw     r8,52(r9)                              
  req->aiocbp->return_value = 0;                                      
ffc0a124:	93 a9 00 38 	stw     r29,56(r9)                             
                                                                      
  if ((aio_request_queue.idle_threads == 0) &&                        
ffc0a128:	40 9e 00 10 	bne-    cr7,ffc0a138 <rtems_aio_enqueue+0x94>  <== NEVER TAKEN
ffc0a12c:	81 5e 00 64 	lwz     r10,100(r30)                           
ffc0a130:	2f 8a 00 04 	cmpwi   cr7,r10,4                              
ffc0a134:	40 9d 00 ac 	ble-    cr7,ffc0a1e0 <rtems_aio_enqueue+0x13c> 
  else                                                                
    {                                                                 
      /* the maximum number of threads has been already created       
	 even though some of them might be idle.                             
	 The request belongs to one of the active fd chain */                
      r_chain = rtems_aio_search_fd (&aio_request_queue.work_req,     
ffc0a138:	3f 60 00 00 	lis     r27,0                                  
ffc0a13c:	80 89 00 00 	lwz     r4,0(r9)                               
ffc0a140:	3b 7b 2c 00 	addi    r27,r27,11264                          
ffc0a144:	7f 63 db 78 	mr      r3,r27                                 
ffc0a148:	38 a0 00 00 	li      r5,0                                   
ffc0a14c:	4b ff fc f9 	bl      ffc09e44 <rtems_aio_search_fd>         
				     req->aiocbp->aio_fildes, 0);                                 
      if (r_chain != NULL)                                            
ffc0a150:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc0a154:	41 82 01 04 	beq-    ffc0a258 <rtems_aio_enqueue+0x1b4>     
	{                                                                    
	  pthread_mutex_lock (&r_chain->mutex);                              
ffc0a158:	3b 7c 00 1c 	addi    r27,r28,28                             
ffc0a15c:	7f 63 db 78 	mr      r3,r27                                 
ffc0a160:	48 00 0c 81 	bl      ffc0ade0 <pthread_mutex_lock>          
	  rtems_aio_insert_prio (&r_chain->perfd, req);                      
ffc0a164:	38 7c 00 08 	addi    r3,r28,8                               
ffc0a168:	7f e4 fb 78 	mr      r4,r31                                 
ffc0a16c:	4b ff fb 35 	bl      ffc09ca0 <rtems_aio_insert_prio>       
	  pthread_cond_signal (&r_chain->cond);                              
ffc0a170:	38 7c 00 20 	addi    r3,r28,32                              
ffc0a174:	48 00 06 39 	bl      ffc0a7ac <pthread_cond_signal>         
	  pthread_mutex_unlock (&r_chain->mutex);                            
ffc0a178:	7f 63 db 78 	mr      r3,r27                                 
ffc0a17c:	48 00 0d 15 	bl      ffc0ae90 <pthread_mutex_unlock>        
	if (aio_request_queue.idle_threads > 0)                              
	  pthread_cond_signal (&aio_request_queue.new_req);                  
      }                                                               
    }                                                                 
                                                                      
  pthread_mutex_unlock (&aio_request_queue.mutex);                    
ffc0a180:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a184:	48 00 0d 0d 	bl      ffc0ae90 <pthread_mutex_unlock>        
  return 0;                                                           
}                                                                     
ffc0a188:	80 01 00 54 	lwz     r0,84(r1)                              
ffc0a18c:	7f a3 eb 78 	mr      r3,r29                                 
ffc0a190:	83 61 00 3c 	lwz     r27,60(r1)                             
ffc0a194:	7c 08 03 a6 	mtlr    r0                                     
ffc0a198:	83 81 00 40 	lwz     r28,64(r1)                             
ffc0a19c:	83 a1 00 44 	lwz     r29,68(r1)                             
ffc0a1a0:	83 c1 00 48 	lwz     r30,72(r1)                             
ffc0a1a4:	83 e1 00 4c 	lwz     r31,76(r1)                             
ffc0a1a8:	38 21 00 50 	addi    r1,r1,80                               
ffc0a1ac:	4e 80 00 20 	blr                                            
  /* The queue should be initialized */                               
  AIO_assert (aio_request_queue.initialized == AIO_QUEUE_INITIALIZED);
                                                                      
  result = pthread_mutex_lock (&aio_request_queue.mutex);             
  if (result != 0) {                                                  
    free (req);                                                       
ffc0a1b0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0a1b4:	4b ff ac 91 	bl      ffc04e44 <free>                        <== NOT EXECUTED
      }                                                               
    }                                                                 
                                                                      
  pthread_mutex_unlock (&aio_request_queue.mutex);                    
  return 0;                                                           
}                                                                     
ffc0a1b8:	80 01 00 54 	lwz     r0,84(r1)                              <== NOT EXECUTED
ffc0a1bc:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc0a1c0:	83 61 00 3c 	lwz     r27,60(r1)                             <== NOT EXECUTED
ffc0a1c4:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0a1c8:	83 81 00 40 	lwz     r28,64(r1)                             <== NOT EXECUTED
ffc0a1cc:	83 a1 00 44 	lwz     r29,68(r1)                             <== NOT EXECUTED
ffc0a1d0:	83 c1 00 48 	lwz     r30,72(r1)                             <== NOT EXECUTED
ffc0a1d4:	83 e1 00 4c 	lwz     r31,76(r1)                             <== NOT EXECUTED
ffc0a1d8:	38 21 00 50 	addi    r1,r1,80                               <== NOT EXECUTED
ffc0a1dc:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  if ((aio_request_queue.idle_threads == 0) &&                        
      aio_request_queue.active_threads < AIO_MAX_THREADS)             
    /* we still have empty places on the active_threads chain */      
    {                                                                 
      chain = &aio_request_queue.work_req;                            
      r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);
ffc0a1e0:	80 89 00 00 	lwz     r4,0(r9)                               
ffc0a1e4:	38 7e 00 48 	addi    r3,r30,72                              
ffc0a1e8:	38 a0 00 01 	li      r5,1                                   
ffc0a1ec:	4b ff fc 59 	bl      ffc09e44 <rtems_aio_search_fd>         
                                                                      
      if (r_chain->new_fd == 1) {                                     
ffc0a1f0:	81 23 00 18 	lwz     r9,24(r3)                              
  if ((aio_request_queue.idle_threads == 0) &&                        
      aio_request_queue.active_threads < AIO_MAX_THREADS)             
    /* we still have empty places on the active_threads chain */      
    {                                                                 
      chain = &aio_request_queue.work_req;                            
      r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);
ffc0a1f4:	7c 7c 1b 78 	mr      r28,r3                                 
                                                                      
      if (r_chain->new_fd == 1) {                                     
ffc0a1f8:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc0a1fc:	40 9e ff 5c 	bne+    cr7,ffc0a158 <rtems_aio_enqueue+0xb4>  
RTEMS_INLINE_ROUTINE void _Chain_Prepend(                             
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  _Chain_Insert(_Chain_Head(the_chain), the_node);                    
ffc0a200:	7f e4 fb 78 	mr      r4,r31                                 
ffc0a204:	38 63 00 08 	addi    r3,r3,8                                
ffc0a208:	48 00 2d 85 	bl      ffc0cf8c <_Chain_Insert>               
	rtems_chain_prepend (&r_chain->perfd, &req->next_prio);              
	r_chain->new_fd = 0;                                                 
ffc0a20c:	93 bc 00 18 	stw     r29,24(r28)                            
	pthread_mutex_init (&r_chain->mutex, NULL);                          
ffc0a210:	38 80 00 00 	li      r4,0                                   
ffc0a214:	38 7c 00 1c 	addi    r3,r28,28                              
ffc0a218:	48 00 0a 39 	bl      ffc0ac50 <pthread_mutex_init>          
	pthread_cond_init (&r_chain->cond, NULL);                            
ffc0a21c:	38 80 00 00 	li      r4,0                                   
ffc0a220:	38 7c 00 20 	addi    r3,r28,32                              
ffc0a224:	48 00 04 99 	bl      ffc0a6bc <pthread_cond_init>           
	                                                                     
	AIO_printf ("New thread \n");                                        
	result = pthread_create (&thid, &aio_request_queue.attr,             
ffc0a228:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a22c:	38 61 00 28 	addi    r3,r1,40                               
ffc0a230:	38 9e 00 08 	addi    r4,r30,8                               
ffc0a234:	38 a5 99 ac 	addi    r5,r5,-26196                           
ffc0a238:	7f 86 e3 78 	mr      r6,r28                                 
ffc0a23c:	48 00 0e 79 	bl      ffc0b0b4 <pthread_create>              
				 rtems_aio_handle, (void *) r_chain);                             
	if (result != 0) {                                                   
ffc0a240:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc0a244:	40 82 00 80 	bne-    ffc0a2c4 <rtems_aio_enqueue+0x220>     <== NEVER TAKEN
	  pthread_mutex_unlock (&aio_request_queue.mutex);                   
	  return result;                                                     
	}                                                                    
	++aio_request_queue.active_threads;                                  
ffc0a248:	81 3e 00 64 	lwz     r9,100(r30)                            
ffc0a24c:	39 29 00 01 	addi    r9,r9,1                                
ffc0a250:	91 3e 00 64 	stw     r9,100(r30)                            
ffc0a254:	4b ff ff 2c 	b       ffc0a180 <rtems_aio_enqueue+0xdc>      
	                                                                     
	} else {                                                             
                                                                      
	/* or to the idle chain */                                           
	chain = &aio_request_queue.idle_req;                                 
	r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);   
ffc0a258:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0a25c:	38 7b 00 0c 	addi    r3,r27,12                              
ffc0a260:	38 a0 00 01 	li      r5,1                                   
ffc0a264:	80 89 00 00 	lwz     r4,0(r9)                               
ffc0a268:	4b ff fb dd 	bl      ffc09e44 <rtems_aio_search_fd>         
ffc0a26c:	7f e4 fb 78 	mr      r4,r31                                 
                                                                      
	if (r_chain->new_fd == 1) {                                          
ffc0a270:	81 23 00 18 	lwz     r9,24(r3)                              
	                                                                     
	} else {                                                             
                                                                      
	/* or to the idle chain */                                           
	chain = &aio_request_queue.idle_req;                                 
	r_chain = rtems_aio_search_fd (chain, req->aiocbp->aio_fildes, 1);   
ffc0a274:	7c 7b 1b 78 	mr      r27,r3                                 
ffc0a278:	38 63 00 08 	addi    r3,r3,8                                
                                                                      
	if (r_chain->new_fd == 1) {                                          
ffc0a27c:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc0a280:	41 9e 00 20 	beq-    cr7,ffc0a2a0 <rtems_aio_enqueue+0x1fc> 
	  r_chain->new_fd = 0;                                               
	  pthread_mutex_init (&r_chain->mutex, NULL);                        
	  pthread_cond_init (&r_chain->cond, NULL);                          
	} else                                                               
	  /* just insert the request in the existing fd chain */             
	  rtems_aio_insert_prio (&r_chain->perfd, req);                      
ffc0a284:	4b ff fa 1d 	bl      ffc09ca0 <rtems_aio_insert_prio>       
	if (aio_request_queue.idle_threads > 0)                              
ffc0a288:	81 3e 00 68 	lwz     r9,104(r30)                            
ffc0a28c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0a290:	40 bd fe f0 	ble-    cr7,ffc0a180 <rtems_aio_enqueue+0xdc>  <== ALWAYS TAKEN
	  pthread_cond_signal (&aio_request_queue.new_req);                  
ffc0a294:	38 7e 00 04 	addi    r3,r30,4                               <== NOT EXECUTED
ffc0a298:	48 00 05 15 	bl      ffc0a7ac <pthread_cond_signal>         <== NOT EXECUTED
ffc0a29c:	4b ff fe e4 	b       ffc0a180 <rtems_aio_enqueue+0xdc>      <== NOT EXECUTED
ffc0a2a0:	48 00 2c ed 	bl      ffc0cf8c <_Chain_Insert>               
	if (r_chain->new_fd == 1) {                                          
	  /* If this is a new fd chain we signal the idle threads that       
	     might be waiting for requests */                                
	  AIO_printf (" New chain on waiting queue \n ");                    
	  rtems_chain_prepend (&r_chain->perfd, &req->next_prio);            
	  r_chain->new_fd = 0;                                               
ffc0a2a4:	93 9b 00 18 	stw     r28,24(r27)                            
	  pthread_mutex_init (&r_chain->mutex, NULL);                        
ffc0a2a8:	38 7b 00 1c 	addi    r3,r27,28                              
ffc0a2ac:	38 80 00 00 	li      r4,0                                   
ffc0a2b0:	48 00 09 a1 	bl      ffc0ac50 <pthread_mutex_init>          
	  pthread_cond_init (&r_chain->cond, NULL);                          
ffc0a2b4:	38 7b 00 20 	addi    r3,r27,32                              
ffc0a2b8:	38 80 00 00 	li      r4,0                                   
ffc0a2bc:	48 00 04 01 	bl      ffc0a6bc <pthread_cond_init>           
ffc0a2c0:	4b ff ff c8 	b       ffc0a288 <rtems_aio_enqueue+0x1e4>     
	                                                                     
	AIO_printf ("New thread \n");                                        
	result = pthread_create (&thid, &aio_request_queue.attr,             
				 rtems_aio_handle, (void *) r_chain);                             
	if (result != 0) {                                                   
	  pthread_mutex_unlock (&aio_request_queue.mutex);                   
ffc0a2c4:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc0a2c8:	48 00 0b c9 	bl      ffc0ae90 <pthread_mutex_unlock>        <== NOT EXECUTED
ffc0a2cc:	7f fd fb 78 	mr      r29,r31                                <== NOT EXECUTED
ffc0a2d0:	4b ff fe b8 	b       ffc0a188 <rtems_aio_enqueue+0xe4>      <== NOT EXECUTED
                                                                      

ffc099ac <rtems_aio_handle>: * NULL - if error */ static void * rtems_aio_handle (void *arg) {
ffc099ac:	94 21 ff 98 	stwu    r1,-104(r1)                            
ffc099b0:	7c 08 02 a6 	mflr    r0                                     
ffc099b4:	93 21 00 4c 	stw     r25,76(r1)                             
      struct timespec timeout;                                        
                                                                      
      AIO_printf ("Chain is empty [WQ], wait for work\n");            
                                                                      
      pthread_mutex_unlock (&r_chain->mutex);                         
      pthread_mutex_lock (&aio_request_queue.mutex);                  
ffc099b8:	3f 20 00 00 	lis     r25,0                                  
ffc099bc:	3b 39 2b b8 	addi    r25,r25,11192                          
 *        NULL       - if error                                       
 */                                                                   
                                                                      
static void *                                                         
rtems_aio_handle (void *arg)                                          
{                                                                     
ffc099c0:	90 01 00 6c 	stw     r0,108(r1)                             
ffc099c4:	93 c1 00 60 	stw     r30,96(r1)                             
ffc099c8:	93 e1 00 64 	stw     r31,100(r1)                            
ffc099cc:	92 a1 00 3c 	stw     r21,60(r1)                             
	      --aio_request_queue.active_threads;                            
	      clock_gettime (CLOCK_REALTIME, &timeout);                      
	      timeout.tv_sec += 3;                                           
	      timeout.tv_nsec = 0;                                           
                                                                      
	      result = pthread_cond_timedwait (&aio_request_queue.new_req,   
ffc099d0:	3a b9 00 04 	addi    r21,r25,4                              
 *        NULL       - if error                                       
 */                                                                   
                                                                      
static void *                                                         
rtems_aio_handle (void *arg)                                          
{                                                                     
ffc099d4:	92 c1 00 40 	stw     r22,64(r1)                             
	    pthread_cond_destroy (&r_chain->cond);                           
	    free (r_chain);                                                  
	                                                                     
	    /* If the idle chain is empty sleep for 3 seconds and wait for a 
	       signal. The thread now becomes idle. */                       
	    if (rtems_chain_is_empty (&aio_request_queue.idle_req)) {        
ffc099d8:	3a d9 00 58 	addi    r22,r25,88                             
 *        NULL       - if error                                       
 */                                                                   
                                                                      
static void *                                                         
rtems_aio_handle (void *arg)                                          
{                                                                     
ffc099dc:	92 e1 00 44 	stw     r23,68(r1)                             
  rtems_chain_node *node;                                             
                                                                      
  node = rtems_chain_first (&aio_request_queue.work_req);             
  temp = (rtems_aio_request_chain *) node;                            
                                                                      
  while (temp->fildes < r_chain->fildes &&                            
ffc099e0:	3a f9 00 4c 	addi    r23,r25,76                             
 *        NULL       - if error                                       
 */                                                                   
                                                                      
static void *                                                         
rtems_aio_handle (void *arg)                                          
{                                                                     
ffc099e4:	93 01 00 48 	stw     r24,72(r1)                             
                                                                      
      default:                                                        
        result = -1;                                                  
      }                                                               
      if (result == -1) {                                             
        req->aiocbp->return_value = -1;                               
ffc099e8:	3b 00 ff ff 	li      r24,-1                                 
 *        NULL       - if error                                       
 */                                                                   
                                                                      
static void *                                                         
rtems_aio_handle (void *arg)                                          
{                                                                     
ffc099ec:	93 41 00 50 	stw     r26,80(r1)                             
      struct timespec timeout;                                        
                                                                      
      AIO_printf ("Chain is empty [WQ], wait for work\n");            
                                                                      
      pthread_mutex_unlock (&r_chain->mutex);                         
      pthread_mutex_lock (&aio_request_queue.mutex);                  
ffc099f0:	7f 3a cb 78 	mr      r26,r25                                
 *        NULL       - if error                                       
 */                                                                   
                                                                      
static void *                                                         
rtems_aio_handle (void *arg)                                          
{                                                                     
ffc099f4:	93 61 00 54 	stw     r27,84(r1)                             
      if (result == -1) {                                             
        req->aiocbp->return_value = -1;                               
	req->aiocbp->error_code = errno;                                     
      } else {                                                        
        req->aiocbp->return_value = result;                           
        req->aiocbp->error_code = 0;                                  
ffc099f8:	3b 60 00 00 	li      r27,0                                  
 *        NULL       - if error                                       
 */                                                                   
                                                                      
static void *                                                         
rtems_aio_handle (void *arg)                                          
{                                                                     
ffc099fc:	93 81 00 58 	stw     r28,88(r1)                             
ffc09a00:	3b 83 00 1c 	addi    r28,r3,28                              
ffc09a04:	93 a1 00 5c 	stw     r29,92(r1)                             
ffc09a08:	7c 7d 1b 78 	mr      r29,r3                                 
    /* acquire the mutex of the current fd chain.                     
       we don't need to lock the queue mutex since we can             
       add requests to idle fd chains or even active ones             
       if the working request has been extracted from the             
       chain */                                                       
    result = pthread_mutex_lock (&r_chain->mutex);                    
ffc09a0c:	7f 83 e3 78 	mr      r3,r28                                 
ffc09a10:	48 00 13 d1 	bl      ffc0ade0 <pthread_mutex_lock>          
    if (result != 0)                                                  
ffc09a14:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc09a18:	40 82 00 8c 	bne-    ffc09aa4 <rtems_aio_handle+0xf8>       <== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc09a1c:	83 fd 00 08 	lwz     r31,8(r29)                             
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc09a20:	39 3d 00 0c 	addi    r9,r29,12                              
                                                                      
    /* If the locked chain is not empty, take the first               
       request extract it, unlock the chain and process               
       the request, in this way the user can supply more              
       requests to this fd chain */                                   
    if (!rtems_chain_is_empty (chain)) {                              
ffc09a24:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
ffc09a28:	41 9e 01 14 	beq-    cr7,ffc09b3c <rtems_aio_handle+0x190>  
      node = rtems_chain_first (chain);                               
      req = (rtems_aio_request *) node;                               
                                                                      
      /* See _POSIX_PRIORITIZE_IO and _POSIX_PRIORITY_SCHEDULING      
	 discussion in rtems_aio_enqueue () */                               
      pthread_getschedparam (pthread_self(), &policy, ¶m);        
ffc09a2c:	48 00 1e d9 	bl      ffc0b904 <pthread_self>                
ffc09a30:	38 81 00 2c 	addi    r4,r1,44                               
ffc09a34:	38 a1 00 08 	addi    r5,r1,8                                
ffc09a38:	48 00 19 8d 	bl      ffc0b3c4 <pthread_getschedparam>       
      param.sched_priority = req->priority;                           
ffc09a3c:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc09a40:	91 21 00 08 	stw     r9,8(r1)                               
      pthread_setschedparam (pthread_self(), req->policy, ¶m);    
ffc09a44:	48 00 1e c1 	bl      ffc0b904 <pthread_self>                
ffc09a48:	38 a1 00 08 	addi    r5,r1,8                                
ffc09a4c:	80 9f 00 08 	lwz     r4,8(r31)                              
ffc09a50:	48 00 1e c5 	bl      ffc0b914 <pthread_setschedparam>       
ffc09a54:	7f e3 fb 78 	mr      r3,r31                                 
ffc09a58:	48 00 34 cd 	bl      ffc0cf24 <_Chain_Extract>              
                                                                      
      rtems_chain_extract (node);                                     
                                                                      
      pthread_mutex_unlock (&r_chain->mutex);                         
ffc09a5c:	7f 83 e3 78 	mr      r3,r28                                 
ffc09a60:	48 00 14 31 	bl      ffc0ae90 <pthread_mutex_unlock>        
                                                                      
      switch (req->aiocbp->aio_lio_opcode) {                          
ffc09a64:	83 df 00 14 	lwz     r30,20(r31)                            
ffc09a68:	81 3e 00 30 	lwz     r9,48(r30)                             
ffc09a6c:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc09a70:	41 9e 00 b0 	beq-    cr7,ffc09b20 <rtems_aio_handle+0x174>  
ffc09a74:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc09a78:	41 9e 00 9c 	beq-    cr7,ffc09b14 <rtems_aio_handle+0x168>  <== NEVER TAKEN
ffc09a7c:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc09a80:	41 9e 00 64 	beq-    cr7,ffc09ae4 <rtems_aio_handle+0x138>  <== ALWAYS TAKEN
                                                                      
      default:                                                        
        result = -1;                                                  
      }                                                               
      if (result == -1) {                                             
        req->aiocbp->return_value = -1;                               
ffc09a84:	93 1e 00 38 	stw     r24,56(r30)                            <== NOT EXECUTED
	req->aiocbp->error_code = errno;                                     
ffc09a88:	48 00 be 29 	bl      ffc158b0 <__errno>                     <== NOT EXECUTED
ffc09a8c:	81 23 00 00 	lwz     r9,0(r3)                               <== NOT EXECUTED
    /* acquire the mutex of the current fd chain.                     
       we don't need to lock the queue mutex since we can             
       add requests to idle fd chains or even active ones             
       if the working request has been extracted from the             
       chain */                                                       
    result = pthread_mutex_lock (&r_chain->mutex);                    
ffc09a90:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
      default:                                                        
        result = -1;                                                  
      }                                                               
      if (result == -1) {                                             
        req->aiocbp->return_value = -1;                               
	req->aiocbp->error_code = errno;                                     
ffc09a94:	91 3e 00 34 	stw     r9,52(r30)                             <== NOT EXECUTED
    /* acquire the mutex of the current fd chain.                     
       we don't need to lock the queue mutex since we can             
       add requests to idle fd chains or even active ones             
       if the working request has been extracted from the             
       chain */                                                       
    result = pthread_mutex_lock (&r_chain->mutex);                    
ffc09a98:	48 00 13 49 	bl      ffc0ade0 <pthread_mutex_lock>          <== NOT EXECUTED
    if (result != 0)                                                  
ffc09a9c:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
ffc09aa0:	41 82 ff 7c 	beq+    ffc09a1c <rtems_aio_handle+0x70>       <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
ffc09aa4:	80 01 00 6c 	lwz     r0,108(r1)                             
ffc09aa8:	38 60 00 00 	li      r3,0                                   
ffc09aac:	82 a1 00 3c 	lwz     r21,60(r1)                             
ffc09ab0:	7c 08 03 a6 	mtlr    r0                                     
ffc09ab4:	82 c1 00 40 	lwz     r22,64(r1)                             
ffc09ab8:	82 e1 00 44 	lwz     r23,68(r1)                             
ffc09abc:	83 01 00 48 	lwz     r24,72(r1)                             
ffc09ac0:	83 21 00 4c 	lwz     r25,76(r1)                             
ffc09ac4:	83 41 00 50 	lwz     r26,80(r1)                             
ffc09ac8:	83 61 00 54 	lwz     r27,84(r1)                             
ffc09acc:	83 81 00 58 	lwz     r28,88(r1)                             
ffc09ad0:	83 a1 00 5c 	lwz     r29,92(r1)                             
ffc09ad4:	83 c1 00 60 	lwz     r30,96(r1)                             
ffc09ad8:	83 e1 00 64 	lwz     r31,100(r1)                            
ffc09adc:	38 21 00 68 	addi    r1,r1,104                              
ffc09ae0:	4e 80 00 20 	blr                                            
      pthread_mutex_unlock (&r_chain->mutex);                         
                                                                      
      switch (req->aiocbp->aio_lio_opcode) {                          
      case LIO_READ:                                                  
	AIO_printf ("read\n");                                               
        result = pread (req->aiocbp->aio_fildes,                      
ffc09ae4:	80 7e 00 00 	lwz     r3,0(r30)                              
ffc09ae8:	80 9e 00 10 	lwz     r4,16(r30)                             
ffc09aec:	80 be 00 14 	lwz     r5,20(r30)                             
ffc09af0:	80 fe 00 08 	lwz     r7,8(r30)                              
ffc09af4:	81 1e 00 0c 	lwz     r8,12(r30)                             
ffc09af8:	48 00 cc d5 	bl      ffc167cc <pread>                       
      	break;                                                         
                                                                      
      default:                                                        
        result = -1;                                                  
      }                                                               
      if (result == -1) {                                             
ffc09afc:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc09b00:	41 9e 01 80 	beq-    cr7,ffc09c80 <rtems_aio_handle+0x2d4>  <== NEVER TAKEN
        req->aiocbp->return_value = -1;                               
	req->aiocbp->error_code = errno;                                     
      } else {                                                        
        req->aiocbp->return_value = result;                           
ffc09b04:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc09b08:	90 69 00 38 	stw     r3,56(r9)                              
        req->aiocbp->error_code = 0;                                  
ffc09b0c:	93 69 00 34 	stw     r27,52(r9)                             
ffc09b10:	4b ff fe fc 	b       ffc09a0c <rtems_aio_handle+0x60>       
                         req->aiocbp->aio_nbytes, req->aiocbp->aio_offset);
        break;                                                        
                                                                      
      case LIO_SYNC:                                                  
	AIO_printf ("sync\n");                                               
      	result = fsync (req->aiocbp->aio_fildes);                      
ffc09b14:	80 7e 00 00 	lwz     r3,0(r30)                              <== NOT EXECUTED
ffc09b18:	48 00 7f 65 	bl      ffc11a7c <fsync>                       <== NOT EXECUTED
      	break;                                                         
ffc09b1c:	4b ff ff e0 	b       ffc09afc <rtems_aio_handle+0x150>      <== NOT EXECUTED
                        req->aiocbp->aio_nbytes, req->aiocbp->aio_offset);
        break;                                                        
                                                                      
      case LIO_WRITE:                                                 
	AIO_printf ("write\n");                                              
        result = pwrite (req->aiocbp->aio_fildes,                     
ffc09b20:	80 7e 00 00 	lwz     r3,0(r30)                              
ffc09b24:	80 9e 00 10 	lwz     r4,16(r30)                             
ffc09b28:	80 be 00 14 	lwz     r5,20(r30)                             
ffc09b2c:	80 fe 00 08 	lwz     r7,8(r30)                              
ffc09b30:	81 1e 00 0c 	lwz     r8,12(r30)                             
ffc09b34:	48 00 cd d5 	bl      ffc16908 <pwrite>                      
                         (void *) req->aiocbp->aio_buf,               
                         req->aiocbp->aio_nbytes, req->aiocbp->aio_offset);
        break;                                                        
ffc09b38:	4b ff ff c4 	b       ffc09afc <rtems_aio_handle+0x150>      
                                                                      
      struct timespec timeout;                                        
                                                                      
      AIO_printf ("Chain is empty [WQ], wait for work\n");            
                                                                      
      pthread_mutex_unlock (&r_chain->mutex);                         
ffc09b3c:	7f 83 e3 78 	mr      r3,r28                                 
ffc09b40:	48 00 13 51 	bl      ffc0ae90 <pthread_mutex_unlock>        
      pthread_mutex_lock (&aio_request_queue.mutex);                  
ffc09b44:	7f 43 d3 78 	mr      r3,r26                                 
ffc09b48:	48 00 12 99 	bl      ffc0ade0 <pthread_mutex_lock>          
                                                                      
      if (rtems_chain_is_empty (chain))                               
ffc09b4c:	81 3d 00 08 	lwz     r9,8(r29)                              
ffc09b50:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
ffc09b54:	41 9e 00 10 	beq-    cr7,ffc09b64 <rtems_aio_handle+0x1b8>  <== ALWAYS TAKEN
	                                                                     
	  }                                                                  
	}                                                                    
      /* If there was a request added in the initial fd chain then release
	 the mutex and process it */                                         
      pthread_mutex_unlock (&aio_request_queue.mutex);                
ffc09b58:	7f 43 d3 78 	mr      r3,r26                                 
ffc09b5c:	48 00 13 35 	bl      ffc0ae90 <pthread_mutex_unlock>        
ffc09b60:	4b ff fe ac 	b       ffc09a0c <rtems_aio_handle+0x60>       
      pthread_mutex_unlock (&r_chain->mutex);                         
      pthread_mutex_lock (&aio_request_queue.mutex);                  
                                                                      
      if (rtems_chain_is_empty (chain))                               
	{                                                                    
	  clock_gettime (CLOCK_REALTIME, &timeout);                          
ffc09b64:	38 81 00 24 	addi    r4,r1,36                               
ffc09b68:	38 60 00 01 	li      r3,1                                   
ffc09b6c:	48 00 08 f9 	bl      ffc0a464 <clock_gettime>               
	  timeout.tv_sec += 3;                                               
ffc09b70:	81 21 00 24 	lwz     r9,36(r1)                              
	  timeout.tv_nsec = 0;                                               
	  result = pthread_cond_timedwait (&r_chain->cond,                   
ffc09b74:	3b fd 00 20 	addi    r31,r29,32                             
                                                                      
      if (rtems_chain_is_empty (chain))                               
	{                                                                    
	  clock_gettime (CLOCK_REALTIME, &timeout);                          
	  timeout.tv_sec += 3;                                               
	  timeout.tv_nsec = 0;                                               
ffc09b78:	93 c1 00 28 	stw     r30,40(r1)                             
      pthread_mutex_lock (&aio_request_queue.mutex);                  
                                                                      
      if (rtems_chain_is_empty (chain))                               
	{                                                                    
	  clock_gettime (CLOCK_REALTIME, &timeout);                          
	  timeout.tv_sec += 3;                                               
ffc09b7c:	39 29 00 03 	addi    r9,r9,3                                
	  timeout.tv_nsec = 0;                                               
	  result = pthread_cond_timedwait (&r_chain->cond,                   
ffc09b80:	7f e3 fb 78 	mr      r3,r31                                 
      pthread_mutex_lock (&aio_request_queue.mutex);                  
                                                                      
      if (rtems_chain_is_empty (chain))                               
	{                                                                    
	  clock_gettime (CLOCK_REALTIME, &timeout);                          
	  timeout.tv_sec += 3;                                               
ffc09b84:	91 21 00 24 	stw     r9,36(r1)                              
	  timeout.tv_nsec = 0;                                               
	  result = pthread_cond_timedwait (&r_chain->cond,                   
ffc09b88:	7f 44 d3 78 	mr      r4,r26                                 
ffc09b8c:	38 a1 00 24 	addi    r5,r1,36                               
ffc09b90:	48 00 0c d5 	bl      ffc0a864 <pthread_cond_timedwait>      
					   &aio_request_queue.mutex,                                     
					   &timeout);                                                    
                                                                      
	  /* If no requests were added to the chain we delete the fd chain from
	     the queue and start working with idle fd chains */              
	  if (result == ETIMEDOUT) {                                         
ffc09b94:	2f 83 00 74 	cmpwi   cr7,r3,116                             
ffc09b98:	40 9e ff c0 	bne+    cr7,ffc09b58 <rtems_aio_handle+0x1ac>  <== NEVER TAKEN
ffc09b9c:	7f a3 eb 78 	mr      r3,r29                                 
ffc09ba0:	48 00 33 85 	bl      ffc0cf24 <_Chain_Extract>              
	    rtems_chain_extract (&r_chain->next_fd);                         
	    pthread_mutex_destroy (&r_chain->mutex);                         
ffc09ba4:	7f 83 e3 78 	mr      r3,r28                                 
ffc09ba8:	48 00 0e 91 	bl      ffc0aa38 <pthread_mutex_destroy>       
	    pthread_cond_destroy (&r_chain->cond);                           
ffc09bac:	7f e3 fb 78 	mr      r3,r31                                 
ffc09bb0:	48 00 09 cd 	bl      ffc0a57c <pthread_cond_destroy>        
	    free (r_chain);                                                  
ffc09bb4:	7f a3 eb 78 	mr      r3,r29                                 
ffc09bb8:	4b ff b2 8d 	bl      ffc04e44 <free>                        
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc09bbc:	83 ba 00 54 	lwz     r29,84(r26)                            
	                                                                     
	    /* If the idle chain is empty sleep for 3 seconds and wait for a 
	       signal. The thread now becomes idle. */                       
	    if (rtems_chain_is_empty (&aio_request_queue.idle_req)) {        
ffc09bc0:	7f 9d b0 00 	cmpw    cr7,r29,r22                            
ffc09bc4:	41 9e 00 68 	beq-    cr7,ffc09c2c <rtems_aio_handle+0x280>  
	      }                                                              
	    }                                                                
	    /* Otherwise move this chain to the working chain and            
	       start the loop all over again */                              
	    AIO_printf ("Work on idle\n");                                   
	    --aio_request_queue.idle_threads;                                
ffc09bc8:	81 59 00 68 	lwz     r10,104(r25)                           
ffc09bcc:	7f a3 eb 78 	mr      r3,r29                                 
	    ++aio_request_queue.active_threads;                              
ffc09bd0:	81 39 00 64 	lwz     r9,100(r25)                            
	      }                                                              
	    }                                                                
	    /* Otherwise move this chain to the working chain and            
	       start the loop all over again */                              
	    AIO_printf ("Work on idle\n");                                   
	    --aio_request_queue.idle_threads;                                
ffc09bd4:	39 4a ff ff 	addi    r10,r10,-1                             
	    ++aio_request_queue.active_threads;                              
ffc09bd8:	39 29 00 01 	addi    r9,r9,1                                
	      }                                                              
	    }                                                                
	    /* Otherwise move this chain to the working chain and            
	       start the loop all over again */                              
	    AIO_printf ("Work on idle\n");                                   
	    --aio_request_queue.idle_threads;                                
ffc09bdc:	91 59 00 68 	stw     r10,104(r25)                           
	    ++aio_request_queue.active_threads;                              
ffc09be0:	91 39 00 64 	stw     r9,100(r25)                            
ffc09be4:	48 00 33 41 	bl      ffc0cf24 <_Chain_Extract>              
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc09be8:	81 39 00 48 	lwz     r9,72(r25)                             
  rtems_chain_node *node;                                             
                                                                      
  node = rtems_chain_first (&aio_request_queue.work_req);             
  temp = (rtems_aio_request_chain *) node;                            
                                                                      
  while (temp->fildes < r_chain->fildes &&                            
ffc09bec:	81 1d 00 14 	lwz     r8,20(r29)                             
ffc09bf0:	81 49 00 14 	lwz     r10,20(r9)                             
ffc09bf4:	7f 88 50 00 	cmpw    cr7,r8,r10                             
ffc09bf8:	40 9d 00 20 	ble-    cr7,ffc09c18 <rtems_aio_handle+0x26c>  <== NEVER TAKEN
ffc09bfc:	7f 89 b8 00 	cmpw    cr7,r9,r23                             
ffc09c00:	41 9e 00 18 	beq-    cr7,ffc09c18 <rtems_aio_handle+0x26c>  <== NEVER TAKEN
    }                                                                 
  }                                                                   
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
ffc09c04:	81 29 00 00 	lwz     r9,0(r9)                               
  rtems_chain_node *node;                                             
                                                                      
  node = rtems_chain_first (&aio_request_queue.work_req);             
  temp = (rtems_aio_request_chain *) node;                            
                                                                      
  while (temp->fildes < r_chain->fildes &&                            
ffc09c08:	81 49 00 14 	lwz     r10,20(r9)                             
ffc09c0c:	7f 89 b8 00 	cmpw    cr7,r9,r23                             
ffc09c10:	7f 0a 40 00 	cmpw    cr6,r10,r8                             
ffc09c14:	41 98 ff ec 	blt+    cr6,ffc09c00 <rtems_aio_handle+0x254>  
RTEMS_INLINE_ROUTINE void rtems_chain_insert(                         
  rtems_chain_node *after_node,                                       
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Insert( after_node, the_node );                              
ffc09c18:	80 69 00 04 	lwz     r3,4(r9)                               
ffc09c1c:	7f a4 eb 78 	mr      r4,r29                                 
ffc09c20:	3b 9d 00 1c 	addi    r28,r29,28                             
ffc09c24:	48 00 33 69 	bl      ffc0cf8c <_Chain_Insert>               
ffc09c28:	4b ff ff 30 	b       ffc09b58 <rtems_aio_handle+0x1ac>      
	    /* If the idle chain is empty sleep for 3 seconds and wait for a 
	       signal. The thread now becomes idle. */                       
	    if (rtems_chain_is_empty (&aio_request_queue.idle_req)) {        
	      AIO_printf ("Chain is empty [IQ], wait for work\n");	          
                                                                      
	      ++aio_request_queue.idle_threads;                              
ffc09c2c:	81 5a 00 68 	lwz     r10,104(r26)                           
	      --aio_request_queue.active_threads;                            
	      clock_gettime (CLOCK_REALTIME, &timeout);                      
ffc09c30:	38 81 00 24 	addi    r4,r1,36                               
	       signal. The thread now becomes idle. */                       
	    if (rtems_chain_is_empty (&aio_request_queue.idle_req)) {        
	      AIO_printf ("Chain is empty [IQ], wait for work\n");	          
                                                                      
	      ++aio_request_queue.idle_threads;                              
	      --aio_request_queue.active_threads;                            
ffc09c34:	81 3a 00 64 	lwz     r9,100(r26)                            
	      clock_gettime (CLOCK_REALTIME, &timeout);                      
ffc09c38:	38 60 00 01 	li      r3,1                                   
	    /* If the idle chain is empty sleep for 3 seconds and wait for a 
	       signal. The thread now becomes idle. */                       
	    if (rtems_chain_is_empty (&aio_request_queue.idle_req)) {        
	      AIO_printf ("Chain is empty [IQ], wait for work\n");	          
                                                                      
	      ++aio_request_queue.idle_threads;                              
ffc09c3c:	39 4a 00 01 	addi    r10,r10,1                              
	      --aio_request_queue.active_threads;                            
ffc09c40:	39 29 ff ff 	addi    r9,r9,-1                               
	    /* If the idle chain is empty sleep for 3 seconds and wait for a 
	       signal. The thread now becomes idle. */                       
	    if (rtems_chain_is_empty (&aio_request_queue.idle_req)) {        
	      AIO_printf ("Chain is empty [IQ], wait for work\n");	          
                                                                      
	      ++aio_request_queue.idle_threads;                              
ffc09c44:	91 5a 00 68 	stw     r10,104(r26)                           
	      --aio_request_queue.active_threads;                            
ffc09c48:	91 3a 00 64 	stw     r9,100(r26)                            
	      clock_gettime (CLOCK_REALTIME, &timeout);                      
ffc09c4c:	48 00 08 19 	bl      ffc0a464 <clock_gettime>               
	      timeout.tv_sec += 3;                                           
	      timeout.tv_nsec = 0;                                           
                                                                      
	      result = pthread_cond_timedwait (&aio_request_queue.new_req,   
ffc09c50:	7e a3 ab 78 	mr      r3,r21                                 
	      AIO_printf ("Chain is empty [IQ], wait for work\n");	          
                                                                      
	      ++aio_request_queue.idle_threads;                              
	      --aio_request_queue.active_threads;                            
	      clock_gettime (CLOCK_REALTIME, &timeout);                      
	      timeout.tv_sec += 3;                                           
ffc09c54:	81 21 00 24 	lwz     r9,36(r1)                              
	      timeout.tv_nsec = 0;                                           
                                                                      
	      result = pthread_cond_timedwait (&aio_request_queue.new_req,   
ffc09c58:	7f 44 d3 78 	mr      r4,r26                                 
ffc09c5c:	38 a1 00 24 	addi    r5,r1,36                               
                                                                      
	      ++aio_request_queue.idle_threads;                              
	      --aio_request_queue.active_threads;                            
	      clock_gettime (CLOCK_REALTIME, &timeout);                      
	      timeout.tv_sec += 3;                                           
	      timeout.tv_nsec = 0;                                           
ffc09c60:	93 c1 00 28 	stw     r30,40(r1)                             
	      AIO_printf ("Chain is empty [IQ], wait for work\n");	          
                                                                      
	      ++aio_request_queue.idle_threads;                              
	      --aio_request_queue.active_threads;                            
	      clock_gettime (CLOCK_REALTIME, &timeout);                      
	      timeout.tv_sec += 3;                                           
ffc09c64:	39 29 00 03 	addi    r9,r9,3                                
ffc09c68:	91 21 00 24 	stw     r9,36(r1)                              
	      timeout.tv_nsec = 0;                                           
                                                                      
	      result = pthread_cond_timedwait (&aio_request_queue.new_req,   
ffc09c6c:	48 00 0b f9 	bl      ffc0a864 <pthread_cond_timedwait>      
					       &aio_request_queue.mutex,                                 
					       &timeout);                                                
	                                                                     
	      /* If no new fd chain was added in the idle requests           
		 then this thread is finished */                                    
	      if (result == ETIMEDOUT) {                                     
ffc09c70:	2f 83 00 74 	cmpwi   cr7,r3,116                             
ffc09c74:	41 9e 00 14 	beq-    cr7,ffc09c88 <rtems_aio_handle+0x2dc>  <== ALWAYS TAKEN
ffc09c78:	83 ba 00 54 	lwz     r29,84(r26)                            <== NOT EXECUTED
ffc09c7c:	4b ff ff 4c 	b       ffc09bc8 <rtems_aio_handle+0x21c>      <== NOT EXECUTED
ffc09c80:	83 df 00 14 	lwz     r30,20(r31)                            <== NOT EXECUTED
ffc09c84:	4b ff fe 00 	b       ffc09a84 <rtems_aio_handle+0xd8>       <== NOT EXECUTED
		AIO_printf ("Etimeout\n");                                          
		--aio_request_queue.idle_threads;                                   
ffc09c88:	81 3a 00 68 	lwz     r9,104(r26)                            
		pthread_mutex_unlock (&aio_request_queue.mutex);                    
ffc09c8c:	7f 43 d3 78 	mr      r3,r26                                 
	                                                                     
	      /* If no new fd chain was added in the idle requests           
		 then this thread is finished */                                    
	      if (result == ETIMEDOUT) {                                     
		AIO_printf ("Etimeout\n");                                          
		--aio_request_queue.idle_threads;                                   
ffc09c90:	39 29 ff ff 	addi    r9,r9,-1                               
ffc09c94:	91 3a 00 68 	stw     r9,104(r26)                            
		pthread_mutex_unlock (&aio_request_queue.mutex);                    
ffc09c98:	48 00 11 f9 	bl      ffc0ae90 <pthread_mutex_unlock>        
ffc09c9c:	4b ff fe 08 	b       ffc09aa4 <rtems_aio_handle+0xf8>       
                                                                      

ffc09cf8 <rtems_aio_init>: * 0 - if initialization succeeded */ int rtems_aio_init (void) {
ffc09cf8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc09cfc:	7c 08 02 a6 	mflr    r0                                     
ffc09d00:	93 c1 00 10 	stw     r30,16(r1)                             
  int result = 0;                                                     
                                                                      
  result = pthread_attr_init (&aio_request_queue.attr);               
ffc09d04:	3f c0 00 00 	lis     r30,0                                  
ffc09d08:	3b de 2b c0 	addi    r30,r30,11200                          
ffc09d0c:	7f c3 f3 78 	mr      r3,r30                                 
 *        0    -    if initialization succeeded                       
 */                                                                   
                                                                      
int                                                                   
rtems_aio_init (void)                                                 
{                                                                     
ffc09d10:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc09d14:	90 01 00 1c 	stw     r0,28(r1)                              
ffc09d18:	93 e1 00 14 	stw     r31,20(r1)                             
  int result = 0;                                                     
                                                                      
  result = pthread_attr_init (&aio_request_queue.attr);               
ffc09d1c:	48 00 13 25 	bl      ffc0b040 <pthread_attr_init>           
  if (result != 0)                                                    
ffc09d20:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc09d24:	41 82 00 24 	beq-    ffc09d48 <rtems_aio_init+0x50>         <== ALWAYS TAKEN
  aio_request_queue.active_threads = 0;                               
  aio_request_queue.idle_threads = 0;                                 
  aio_request_queue.initialized = AIO_QUEUE_INITIALIZED;              
                                                                      
  return result;                                                      
}                                                                     
ffc09d28:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
ffc09d2c:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc09d30:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc09d34:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc09d38:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc09d3c:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc09d40:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc09d44:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      
  result = pthread_attr_init (&aio_request_queue.attr);               
  if (result != 0)                                                    
    return result;                                                    
                                                                      
  result =                                                            
ffc09d48:	7f c3 f3 78 	mr      r3,r30                                 
ffc09d4c:	38 80 00 00 	li      r4,0                                   
ffc09d50:	48 00 13 31 	bl      ffc0b080 <pthread_attr_setdetachstate> 
    pthread_attr_setdetachstate (&aio_request_queue.attr,             
                                 PTHREAD_CREATE_DETACHED);            
  if (result != 0)                                                    
ffc09d54:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc09d58:	40 9e 00 94 	bne-    cr7,ffc09dec <rtems_aio_init+0xf4>     <== NEVER TAKEN
    pthread_attr_destroy (&aio_request_queue.attr);                   
                                                                      
                                                                      
  result = pthread_mutex_init (&aio_request_queue.mutex, NULL);       
ffc09d5c:	3f e0 00 00 	lis     r31,0                                  
ffc09d60:	3b ff 2b b8 	addi    r31,r31,11192                          
ffc09d64:	7f e3 fb 78 	mr      r3,r31                                 
ffc09d68:	38 80 00 00 	li      r4,0                                   
ffc09d6c:	48 00 0e e5 	bl      ffc0ac50 <pthread_mutex_init>          
  if (result != 0)                                                    
ffc09d70:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc09d74:	40 9e 00 9c 	bne-    cr7,ffc09e10 <rtems_aio_init+0x118>    <== NEVER TAKEN
    pthread_attr_destroy (&aio_request_queue.attr);                   
                                                                      
                                                                      
  result = pthread_cond_init (&aio_request_queue.new_req, NULL);      
ffc09d78:	3c 60 00 00 	lis     r3,0                                   
ffc09d7c:	38 63 2b bc 	addi    r3,r3,11196                            
ffc09d80:	38 80 00 00 	li      r4,0                                   
ffc09d84:	48 00 09 39 	bl      ffc0a6bc <pthread_cond_init>           
  if (result != 0) {                                                  
ffc09d88:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc09d8c:	40 82 00 a4 	bne-    ffc09e30 <rtems_aio_init+0x138>        <== NEVER TAKEN
  aio_request_queue.active_threads = 0;                               
  aio_request_queue.idle_threads = 0;                                 
  aio_request_queue.initialized = AIO_QUEUE_INITIALIZED;              
                                                                      
  return result;                                                      
}                                                                     
ffc09d90:	80 01 00 1c 	lwz     r0,28(r1)                              
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc09d94:	39 20 00 00 	li      r9,0                                   
ffc09d98:	91 3f 00 4c 	stw     r9,76(r31)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc09d9c:	38 df 00 4c 	addi    r6,r31,76                              
ffc09da0:	7c 08 03 a6 	mtlr    r0                                     
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc09da4:	38 ff 00 48 	addi    r7,r31,72                              
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc09da8:	91 3f 00 58 	stw     r9,88(r31)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc09dac:	39 1f 00 58 	addi    r8,r31,88                              
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc09db0:	39 5f 00 54 	addi    r10,r31,84                             
  }                                                                   
                                                                      
  rtems_chain_initialize_empty (&aio_request_queue.work_req);         
  rtems_chain_initialize_empty (&aio_request_queue.idle_req);         
                                                                      
  aio_request_queue.active_threads = 0;                               
ffc09db4:	91 3f 00 64 	stw     r9,100(r31)                            
  aio_request_queue.idle_threads = 0;                                 
  aio_request_queue.initialized = AIO_QUEUE_INITIALIZED;              
                                                                      
  return result;                                                      
}                                                                     
ffc09db8:	7f a3 eb 78 	mr      r3,r29                                 
                                                                      
  rtems_chain_initialize_empty (&aio_request_queue.work_req);         
  rtems_chain_initialize_empty (&aio_request_queue.idle_req);         
                                                                      
  aio_request_queue.active_threads = 0;                               
  aio_request_queue.idle_threads = 0;                                 
ffc09dbc:	91 3f 00 68 	stw     r9,104(r31)                            
  aio_request_queue.initialized = AIO_QUEUE_INITIALIZED;              
ffc09dc0:	61 29 b0 0b 	ori     r9,r9,45067                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc09dc4:	90 df 00 48 	stw     r6,72(r31)                             
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc09dc8:	90 ff 00 50 	stw     r7,80(r31)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc09dcc:	91 1f 00 54 	stw     r8,84(r31)                             
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc09dd0:	91 5f 00 5c 	stw     r10,92(r31)                            
ffc09dd4:	91 3f 00 60 	stw     r9,96(r31)                             
                                                                      
  return result;                                                      
}                                                                     
ffc09dd8:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc09ddc:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc09de0:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc09de4:	38 21 00 18 	addi    r1,r1,24                               
ffc09de8:	4e 80 00 20 	blr                                            
                                 PTHREAD_CREATE_DETACHED);            
  if (result != 0)                                                    
    pthread_attr_destroy (&aio_request_queue.attr);                   
                                                                      
                                                                      
  result = pthread_mutex_init (&aio_request_queue.mutex, NULL);       
ffc09dec:	3f e0 00 00 	lis     r31,0                                  <== NOT EXECUTED
                                                                      
  result =                                                            
    pthread_attr_setdetachstate (&aio_request_queue.attr,             
                                 PTHREAD_CREATE_DETACHED);            
  if (result != 0)                                                    
    pthread_attr_destroy (&aio_request_queue.attr);                   
ffc09df0:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
                                                                      
                                                                      
  result = pthread_mutex_init (&aio_request_queue.mutex, NULL);       
ffc09df4:	3b ff 2b b8 	addi    r31,r31,11192                          <== NOT EXECUTED
                                                                      
  result =                                                            
    pthread_attr_setdetachstate (&aio_request_queue.attr,             
                                 PTHREAD_CREATE_DETACHED);            
  if (result != 0)                                                    
    pthread_attr_destroy (&aio_request_queue.attr);                   
ffc09df8:	48 00 12 19 	bl      ffc0b010 <pthread_attr_destroy>        <== NOT EXECUTED
                                                                      
                                                                      
  result = pthread_mutex_init (&aio_request_queue.mutex, NULL);       
ffc09dfc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc09e00:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc09e04:	48 00 0e 4d 	bl      ffc0ac50 <pthread_mutex_init>          <== NOT EXECUTED
  if (result != 0)                                                    
ffc09e08:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc09e0c:	41 9e ff 6c 	beq+    cr7,ffc09d78 <rtems_aio_init+0x80>     <== NOT EXECUTED
    pthread_attr_destroy (&aio_request_queue.attr);                   
ffc09e10:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc09e14:	48 00 11 fd 	bl      ffc0b010 <pthread_attr_destroy>        <== NOT EXECUTED
                                                                      
                                                                      
  result = pthread_cond_init (&aio_request_queue.new_req, NULL);      
ffc09e18:	3c 60 00 00 	lis     r3,0                                   <== NOT EXECUTED
ffc09e1c:	38 63 2b bc 	addi    r3,r3,11196                            <== NOT EXECUTED
ffc09e20:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc09e24:	48 00 08 99 	bl      ffc0a6bc <pthread_cond_init>           <== NOT EXECUTED
  if (result != 0) {                                                  
ffc09e28:	7c 7d 1b 79 	mr.     r29,r3                                 <== NOT EXECUTED
ffc09e2c:	41 82 ff 64 	beq+    ffc09d90 <rtems_aio_init+0x98>         <== NOT EXECUTED
    pthread_mutex_destroy (&aio_request_queue.mutex);                 
ffc09e30:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc09e34:	48 00 0c 05 	bl      ffc0aa38 <pthread_mutex_destroy>       <== NOT EXECUTED
    pthread_attr_destroy (&aio_request_queue.attr);                   
ffc09e38:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc09e3c:	48 00 11 d5 	bl      ffc0b010 <pthread_attr_destroy>        <== NOT EXECUTED
ffc09e40:	4b ff ff 50 	b       ffc09d90 <rtems_aio_init+0x98>         <== NOT EXECUTED
                                                                      

ffc09ca0 <rtems_aio_insert_prio>:
ffc09ca0:	81 23 00 00 	lwz     r9,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 );                            
ffc09ca4:	39 03 00 04 	addi    r8,r3,4                                
 *        NONE                                                        
 */                                                                   
                                                                      
static void                                                           
rtems_aio_insert_prio (rtems_chain_control *chain, rtems_aio_request *req)
{                                                                     
ffc09ca8:	7c 86 23 78 	mr      r6,r4                                  
  rtems_chain_node *node;                                             
                                                                      
  AIO_printf ("FD exists \n");                                        
  node = rtems_chain_first (chain);                                   
                                                                      
  if (rtems_chain_is_empty (chain)) {                                 
ffc09cac:	7f 89 40 00 	cmpw    cr7,r9,r8                              
ffc09cb0:	41 9e 00 44 	beq-    cr7,ffc09cf4 <rtems_aio_insert_prio+0x54><== NEVER TAKEN
    rtems_chain_prepend (chain, &req->next_prio);                     
  } else {                                                            
    AIO_printf ("Add by priority \n");                                
    int prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;     
                                                                      
    while (req->aiocbp->aio_reqprio > prio &&                         
ffc09cb4:	80 e4 00 14 	lwz     r7,20(r4)                              
  if (rtems_chain_is_empty (chain)) {                                 
    AIO_printf ("First in chain \n");                                 
    rtems_chain_prepend (chain, &req->next_prio);                     
  } else {                                                            
    AIO_printf ("Add by priority \n");                                
    int prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;     
ffc09cb8:	81 49 00 14 	lwz     r10,20(r9)                             
                                                                      
    while (req->aiocbp->aio_reqprio > prio &&                         
ffc09cbc:	80 e7 00 18 	lwz     r7,24(r7)                              
ffc09cc0:	81 4a 00 18 	lwz     r10,24(r10)                            
ffc09cc4:	7f 8a 38 00 	cmpw    cr7,r10,r7                             
ffc09cc8:	41 bc 00 0c 	blt+    cr7,ffc09cd4 <rtems_aio_insert_prio+0x34><== NEVER TAKEN
ffc09ccc:	48 00 00 20 	b       ffc09cec <rtems_aio_insert_prio+0x4c>  
ffc09cd0:	41 9e 00 1c 	beq-    cr7,ffc09cec <rtems_aio_insert_prio+0x4c><== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
ffc09cd4:	81 29 00 00 	lwz     r9,0(r9)                               <== NOT EXECUTED
    int prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;     
                                                                      
    while (req->aiocbp->aio_reqprio > prio &&                         
           !rtems_chain_is_tail (chain, node)) {                      
      node = rtems_chain_next (node);                                 
      prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;       
ffc09cd8:	81 49 00 14 	lwz     r10,20(r9)                             <== NOT EXECUTED
    rtems_chain_prepend (chain, &req->next_prio);                     
  } else {                                                            
    AIO_printf ("Add by priority \n");                                
    int prio = ((rtems_aio_request *) node)->aiocbp->aio_reqprio;     
                                                                      
    while (req->aiocbp->aio_reqprio > prio &&                         
ffc09cdc:	7f 88 48 00 	cmpw    cr7,r8,r9                              <== NOT EXECUTED
ffc09ce0:	81 4a 00 18 	lwz     r10,24(r10)                            <== NOT EXECUTED
ffc09ce4:	7f 0a 38 00 	cmpw    cr6,r10,r7                             <== NOT EXECUTED
ffc09ce8:	41 98 ff e8 	blt+    cr6,ffc09cd0 <rtems_aio_insert_prio+0x30><== NOT EXECUTED
ffc09cec:	80 69 00 04 	lwz     r3,4(r9)                               
ffc09cf0:	7c c4 33 78 	mr      r4,r6                                  
ffc09cf4:	48 00 32 98 	b       ffc0cf8c <_Chain_Insert>               
                                                                      

ffc09f74 <rtems_aio_remove_fd>: * Output parameters: * NONE */ void rtems_aio_remove_fd (rtems_aio_request_chain *r_chain) {
ffc09f74:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc09f78:	7c 08 02 a6 	mflr    r0                                     
ffc09f7c:	90 01 00 24 	stw     r0,36(r1)                              
ffc09f80:	93 e1 00 1c 	stw     r31,28(r1)                             
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc09f84:	83 e3 00 08 	lwz     r31,8(r3)                              
ffc09f88:	93 a1 00 14 	stw     r29,20(r1)                             
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 ));            
ffc09f8c:	3b a3 00 0c 	addi    r29,r3,12                              
  rtems_chain_control *chain;                                         
  rtems_chain_node *node;                                             
  chain = &r_chain->perfd;                                            
  node = rtems_chain_first (chain);                                   
                                                                      
  while (!rtems_chain_is_tail (chain, node))                          
ffc09f90:	7f 9f e8 00 	cmpw    cr7,r31,r29                            
 *  Output parameters:                                                
 *        NONE                                                        
 */                                                                   
                                                                      
void rtems_aio_remove_fd (rtems_aio_request_chain *r_chain)           
{                                                                     
ffc09f94:	93 61 00 0c 	stw     r27,12(r1)                             
  while (!rtems_chain_is_tail (chain, node))                          
    {                                                                 
      rtems_chain_extract (node);                                     
      rtems_aio_request *req = (rtems_aio_request *) node;            
      node = rtems_chain_next (node);                                 
      req->aiocbp->error_code = ECANCELED;                            
ffc09f98:	3b 60 00 8c 	li      r27,140                                
 *  Output parameters:                                                
 *        NONE                                                        
 */                                                                   
                                                                      
void rtems_aio_remove_fd (rtems_aio_request_chain *r_chain)           
{                                                                     
ffc09f9c:	93 81 00 10 	stw     r28,16(r1)                             
    {                                                                 
      rtems_chain_extract (node);                                     
      rtems_aio_request *req = (rtems_aio_request *) node;            
      node = rtems_chain_next (node);                                 
      req->aiocbp->error_code = ECANCELED;                            
      req->aiocbp->return_value = -1;                                 
ffc09fa0:	3b 80 ff ff 	li      r28,-1                                 
 *  Output parameters:                                                
 *        NONE                                                        
 */                                                                   
                                                                      
void rtems_aio_remove_fd (rtems_aio_request_chain *r_chain)           
{                                                                     
ffc09fa4:	93 c1 00 18 	stw     r30,24(r1)                             
  rtems_chain_control *chain;                                         
  rtems_chain_node *node;                                             
  chain = &r_chain->perfd;                                            
  node = rtems_chain_first (chain);                                   
                                                                      
  while (!rtems_chain_is_tail (chain, node))                          
ffc09fa8:	41 9e 00 30 	beq-    cr7,ffc09fd8 <rtems_aio_remove_fd+0x64><== NEVER TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
ffc09fac:	7f e3 fb 78 	mr      r3,r31                                 
ffc09fb0:	48 00 2f 75 	bl      ffc0cf24 <_Chain_Extract>              
    {                                                                 
      rtems_chain_extract (node);                                     
      rtems_aio_request *req = (rtems_aio_request *) node;            
      node = rtems_chain_next (node);                                 
      req->aiocbp->error_code = ECANCELED;                            
ffc09fb4:	81 3f 00 14 	lwz     r9,20(r31)                             
    }                                                                 
  }                                                                   
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
ffc09fb8:	83 df 00 00 	lwz     r30,0(r31)                             
      rtems_chain_extract (node);                                     
      rtems_aio_request *req = (rtems_aio_request *) node;            
      node = rtems_chain_next (node);                                 
      req->aiocbp->error_code = ECANCELED;                            
      req->aiocbp->return_value = -1;                                 
      free (req);                                                     
ffc09fbc:	7f e3 fb 78 	mr      r3,r31                                 
  while (!rtems_chain_is_tail (chain, node))                          
    {                                                                 
      rtems_chain_extract (node);                                     
      rtems_aio_request *req = (rtems_aio_request *) node;            
      node = rtems_chain_next (node);                                 
      req->aiocbp->error_code = ECANCELED;                            
ffc09fc0:	93 69 00 34 	stw     r27,52(r9)                             
                                                                      
  while (!rtems_chain_is_tail (chain, node))                          
    {                                                                 
      rtems_chain_extract (node);                                     
      rtems_aio_request *req = (rtems_aio_request *) node;            
      node = rtems_chain_next (node);                                 
ffc09fc4:	7f df f3 78 	mr      r31,r30                                
      req->aiocbp->error_code = ECANCELED;                            
      req->aiocbp->return_value = -1;                                 
ffc09fc8:	93 89 00 38 	stw     r28,56(r9)                             
      free (req);                                                     
ffc09fcc:	4b ff ae 79 	bl      ffc04e44 <free>                        
  rtems_chain_control *chain;                                         
  rtems_chain_node *node;                                             
  chain = &r_chain->perfd;                                            
  node = rtems_chain_first (chain);                                   
                                                                      
  while (!rtems_chain_is_tail (chain, node))                          
ffc09fd0:	7f 9e e8 00 	cmpw    cr7,r30,r29                            
ffc09fd4:	40 9e ff d8 	bne+    cr7,ffc09fac <rtems_aio_remove_fd+0x38>
      node = rtems_chain_next (node);                                 
      req->aiocbp->error_code = ECANCELED;                            
      req->aiocbp->return_value = -1;                                 
      free (req);                                                     
    }                                                                 
}                                                                     
ffc09fd8:	80 01 00 24 	lwz     r0,36(r1)                              
ffc09fdc:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc09fe0:	7c 08 03 a6 	mtlr    r0                                     
ffc09fe4:	83 81 00 10 	lwz     r28,16(r1)                             
ffc09fe8:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc09fec:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc09ff0:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc09ff4:	38 21 00 20 	addi    r1,r1,32                               
ffc09ff8:	4e 80 00 20 	blr                                            
                                                                      

ffc09ffc <rtems_aio_remove_req>: * AIO_NOTCANCELED - if request was not canceled * AIO_CANCELED - if request was canceled */ int rtems_aio_remove_req (rtems_chain_control *chain, struct aiocb *aiocbp) {
ffc09ffc:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0a000:	7c 08 02 a6 	mflr    r0                                     
ffc0a004:	90 01 00 14 	stw     r0,20(r1)                              
ffc0a008:	93 e1 00 0c 	stw     r31,12(r1)                             
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc0a00c:	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 );                            
ffc0a010:	38 63 00 04 	addi    r3,r3,4                                
  if (rtems_chain_is_empty (chain))                                   
ffc0a014:	7f 9f 18 00 	cmpw    cr7,r31,r3                             
ffc0a018:	40 be 00 14 	bne+    cr7,ffc0a02c <rtems_aio_remove_req+0x30>
ffc0a01c:	48 00 00 70 	b       ffc0a08c <rtems_aio_remove_req+0x90>   
    }                                                                 
  }                                                                   
                                                                      
  AIO_printf ("Thread finished\n");                                   
  return NULL;                                                        
}                                                                     
ffc0a020:	83 ff 00 00 	lwz     r31,0(r31)                             <== NOT EXECUTED
  rtems_chain_node *node = rtems_chain_first (chain);                 
  rtems_aio_request *current;                                         
                                                                      
  current = (rtems_aio_request *) node;                               
                                                                      
  while (!rtems_chain_is_tail (chain, node) && current->aiocbp != aiocbp) {
ffc0a024:	7f 83 f8 00 	cmpw    cr7,r3,r31                             <== NOT EXECUTED
ffc0a028:	41 9e 00 4c 	beq-    cr7,ffc0a074 <rtems_aio_remove_req+0x78><== NOT EXECUTED
ffc0a02c:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0a030:	7f 89 20 00 	cmpw    cr7,r9,r4                              
ffc0a034:	40 9e ff ec 	bne+    cr7,ffc0a020 <rtems_aio_remove_req+0x24><== NEVER TAKEN
ffc0a038:	7f e3 fb 78 	mr      r3,r31                                 
ffc0a03c:	48 00 2e e9 	bl      ffc0cf24 <_Chain_Extract>              
  if (rtems_chain_is_tail (chain, node))                              
    return AIO_NOTCANCELED;                                           
  else                                                                
    {                                                                 
      rtems_chain_extract (node);                                     
      current->aiocbp->error_code = ECANCELED;                        
ffc0a040:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc0a044:	39 40 00 8c 	li      r10,140                                
ffc0a048:	91 49 00 34 	stw     r10,52(r9)                             
      current->aiocbp->return_value = -1;                             
ffc0a04c:	39 40 ff ff 	li      r10,-1                                 
      free (current);                                                 
ffc0a050:	7f e3 fb 78 	mr      r3,r31                                 
    return AIO_NOTCANCELED;                                           
  else                                                                
    {                                                                 
      rtems_chain_extract (node);                                     
      current->aiocbp->error_code = ECANCELED;                        
      current->aiocbp->return_value = -1;                             
ffc0a054:	91 49 00 38 	stw     r10,56(r9)                             
      free (current);                                                 
ffc0a058:	4b ff ad ed 	bl      ffc04e44 <free>                        
    }                                                                 
                                                                      
  return AIO_CANCELED;                                                
}                                                                     
ffc0a05c:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0a060:	83 e1 00 0c 	lwz     r31,12(r1)                             
      current->aiocbp->error_code = ECANCELED;                        
      current->aiocbp->return_value = -1;                             
      free (current);                                                 
    }                                                                 
                                                                      
  return AIO_CANCELED;                                                
ffc0a064:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc0a068:	7c 08 03 a6 	mtlr    r0                                     
ffc0a06c:	38 21 00 10 	addi    r1,r1,16                               
ffc0a070:	4e 80 00 20 	blr                                            
ffc0a074:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
    node = rtems_chain_next (node);                                   
    current = (rtems_aio_request *) node;                             
  }                                                                   
                                                                      
  if (rtems_chain_is_tail (chain, node))                              
    return AIO_NOTCANCELED;                                           
ffc0a078:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
      current->aiocbp->return_value = -1;                             
      free (current);                                                 
    }                                                                 
                                                                      
  return AIO_CANCELED;                                                
}                                                                     
ffc0a07c:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc0a080:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0a084:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc0a088:	4e 80 00 20 	blr                                            <== NOT EXECUTED
ffc0a08c:	80 01 00 14 	lwz     r0,20(r1)                              
 */                                                                   
                                                                      
int rtems_aio_remove_req (rtems_chain_control *chain, struct aiocb *aiocbp)
{                                                                     
  if (rtems_chain_is_empty (chain))                                   
    return AIO_ALLDONE;                                               
ffc0a090:	38 60 00 02 	li      r3,2                                   
      current->aiocbp->return_value = -1;                             
      free (current);                                                 
    }                                                                 
                                                                      
  return AIO_CANCELED;                                                
}                                                                     
ffc0a094:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0a098:	7c 08 03 a6 	mtlr    r0                                     
ffc0a09c:	38 21 00 10 	addi    r1,r1,16                               
ffc0a0a0:	4e 80 00 20 	blr                                            
                                                                      

ffc1237c <rtems_assoc_local_by_remote_bitfield>: uint32_t rtems_assoc_local_by_remote_bitfield( const rtems_assoc_t *ap, uint32_t remote_value ) {
ffc1237c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc12380:	7c 08 02 a6 	mflr    r0                                     
ffc12384:	93 61 00 0c 	stw     r27,12(r1)                             
ffc12388:	7c 7b 1b 78 	mr      r27,r3                                 
ffc1238c:	93 81 00 10 	stw     r28,16(r1)                             
  uint32_t   b;                                                       
  uint32_t   local_value = 0;                                         
ffc12390:	3b 80 00 00 	li      r28,0                                  
                                                                      
uint32_t   rtems_assoc_local_by_remote_bitfield(                      
    const rtems_assoc_t *ap,                                          
    uint32_t       remote_value                                       
)                                                                     
{                                                                     
ffc12394:	93 a1 00 14 	stw     r29,20(r1)                             
ffc12398:	7c 9d 23 78 	mr      r29,r4                                 
ffc1239c:	93 c1 00 18 	stw     r30,24(r1)                             
ffc123a0:	3b c0 00 20 	li      r30,32                                 
ffc123a4:	93 e1 00 1c 	stw     r31,28(r1)                             
  uint32_t   b;                                                       
  uint32_t   local_value = 0;                                         
                                                                      
  for (b = 1; b; b <<= 1) {                                           
ffc123a8:	3b e0 00 01 	li      r31,1                                  
                                                                      
uint32_t   rtems_assoc_local_by_remote_bitfield(                      
    const rtems_assoc_t *ap,                                          
    uint32_t       remote_value                                       
)                                                                     
{                                                                     
ffc123ac:	90 01 00 24 	stw     r0,36(r1)                              
ffc123b0:	48 00 00 10 	b       ffc123c0 <rtems_assoc_local_by_remote_bitfield+0x44>
  uint32_t   b;                                                       
  uint32_t   local_value = 0;                                         
                                                                      
  for (b = 1; b; b <<= 1) {                                           
ffc123b4:	37 de ff ff 	addic.  r30,r30,-1                             
ffc123b8:	57 ff 08 3c 	rlwinm  r31,r31,1,0,30                         
ffc123bc:	41 82 00 28 	beq-    ffc123e4 <rtems_assoc_local_by_remote_bitfield+0x68>
    if (b & remote_value)                                             
ffc123c0:	7f e9 e8 39 	and.    r9,r31,r29                             
ffc123c4:	41 82 ff f0 	beq+    ffc123b4 <rtems_assoc_local_by_remote_bitfield+0x38>
      local_value |= rtems_assoc_local_by_remote(ap, b);              
ffc123c8:	7f e4 fb 78 	mr      r4,r31                                 
ffc123cc:	7f 63 db 78 	mr      r3,r27                                 
ffc123d0:	48 00 00 3d 	bl      ffc1240c <rtems_assoc_local_by_remote> 
)                                                                     
{                                                                     
  uint32_t   b;                                                       
  uint32_t   local_value = 0;                                         
                                                                      
  for (b = 1; b; b <<= 1) {                                           
ffc123d4:	37 de ff ff 	addic.  r30,r30,-1                             
    if (b & remote_value)                                             
      local_value |= rtems_assoc_local_by_remote(ap, b);              
ffc123d8:	7f 9c 1b 78 	or      r28,r28,r3                             
)                                                                     
{                                                                     
  uint32_t   b;                                                       
  uint32_t   local_value = 0;                                         
                                                                      
  for (b = 1; b; b <<= 1) {                                           
ffc123dc:	57 ff 08 3c 	rlwinm  r31,r31,1,0,30                         
ffc123e0:	40 82 ff e0 	bne+    ffc123c0 <rtems_assoc_local_by_remote_bitfield+0x44><== ALWAYS TAKEN
    if (b & remote_value)                                             
      local_value |= rtems_assoc_local_by_remote(ap, b);              
  }                                                                   
                                                                      
  return local_value;                                                 
}                                                                     
ffc123e4:	80 01 00 24 	lwz     r0,36(r1)                              
ffc123e8:	7f 83 e3 78 	mr      r3,r28                                 
ffc123ec:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc123f0:	7c 08 03 a6 	mtlr    r0                                     
ffc123f4:	83 81 00 10 	lwz     r28,16(r1)                             
ffc123f8:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc123fc:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc12400:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc12404:	38 21 00 20 	addi    r1,r1,32                               
ffc12408:	4e 80 00 20 	blr                                            
                                                                      

ffc0eb44 <rtems_assoc_ptr_by_local>: const rtems_assoc_t *rtems_assoc_ptr_by_local( const rtems_assoc_t *ap, uint32_t local_value ) {
ffc0eb44:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0eb48:	7c 08 02 a6 	mflr    r0                                     
ffc0eb4c:	90 01 00 14 	stw     r0,20(r1)                              
ffc0eb50:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0eb54:	7c 7f 1b 78 	mr      r31,r3                                 
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
ffc0eb58:	80 63 00 00 	lwz     r3,0(r3)                               
                                                                      
const rtems_assoc_t *rtems_assoc_ptr_by_local(                        
  const rtems_assoc_t *ap,                                            
  uint32_t             local_value                                    
)                                                                     
{                                                                     
ffc0eb5c:	93 c1 00 08 	stw     r30,8(r1)                              
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
ffc0eb60:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0eb64:	41 9e 00 94 	beq-    cr7,ffc0ebf8 <rtems_assoc_ptr_by_local+0xb4>
ffc0eb68:	7c 9e 23 78 	mr      r30,r4                                 
ffc0eb6c:	3c 80 ff c2 	lis     r4,-62                                 
ffc0eb70:	38 84 ff e0 	addi    r4,r4,-32                              
ffc0eb74:	48 00 58 31 	bl      ffc143a4 <strcmp>                      
ffc0eb78:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0eb7c:	41 9e 00 40 	beq-    cr7,ffc0ebbc <rtems_assoc_ptr_by_local+0x78>
const rtems_assoc_t *rtems_assoc_ptr_by_local(                        
  const rtems_assoc_t *ap,                                            
  uint32_t             local_value                                    
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
ffc0eb80:	39 40 00 00 	li      r10,0                                  
ffc0eb84:	48 00 00 10 	b       ffc0eb94 <rtems_assoc_ptr_by_local+0x50>
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
ffc0eb88:	85 3f 00 0c 	lwzu    r9,12(r31)                             
ffc0eb8c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0eb90:	41 9e 00 48 	beq-    cr7,ffc0ebd8 <rtems_assoc_ptr_by_local+0x94>
    if (ap->local_value == local_value)                               
ffc0eb94:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc0eb98:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc0eb9c:	40 9e ff ec 	bne+    cr7,ffc0eb88 <rtems_assoc_ptr_by_local+0x44>
      return ap;                                                      
                                                                      
  return default_ap;                                                  
}                                                                     
ffc0eba0:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0eba4:	7f e3 fb 78 	mr      r3,r31                                 
ffc0eba8:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0ebac:	7c 08 03 a6 	mtlr    r0                                     
ffc0ebb0:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0ebb4:	38 21 00 10 	addi    r1,r1,16                               
ffc0ebb8:	4e 80 00 20 	blr                                            
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
ffc0ebbc:	81 3f 00 0c 	lwz     r9,12(r31)                             
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
ffc0ebc0:	39 1f 00 0c 	addi    r8,r31,12                              
                                                                      
  for ( ; ap->name; ap++)                                             
ffc0ebc4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ebc8:	41 be ff d8 	beq-    cr7,ffc0eba0 <rtems_assoc_ptr_by_local+0x5c><== NEVER TAKEN
ffc0ebcc:	7f ea fb 78 	mr      r10,r31                                
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
ffc0ebd0:	7d 1f 43 78 	mr      r31,r8                                 
ffc0ebd4:	4b ff ff c0 	b       ffc0eb94 <rtems_assoc_ptr_by_local+0x50>
  for ( ; ap->name; ap++)                                             
    if (ap->local_value == local_value)                               
      return ap;                                                      
                                                                      
  return default_ap;                                                  
}                                                                     
ffc0ebd8:	80 01 00 14 	lwz     r0,20(r1)                              
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
ffc0ebdc:	7d 5f 53 78 	mr      r31,r10                                
    if (ap->local_value == local_value)                               
      return ap;                                                      
                                                                      
  return default_ap;                                                  
}                                                                     
ffc0ebe0:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ebe4:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0ebe8:	7c 08 03 a6 	mtlr    r0                                     
ffc0ebec:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0ebf0:	38 21 00 10 	addi    r1,r1,16                               
ffc0ebf4:	4e 80 00 20 	blr                                            
ffc0ebf8:	80 01 00 14 	lwz     r0,20(r1)                              
const rtems_assoc_t *rtems_assoc_ptr_by_local(                        
  const rtems_assoc_t *ap,                                            
  uint32_t             local_value                                    
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
ffc0ebfc:	3b e0 00 00 	li      r31,0                                  
  for ( ; ap->name; ap++)                                             
    if (ap->local_value == local_value)                               
      return ap;                                                      
                                                                      
  return default_ap;                                                  
}                                                                     
ffc0ec00:	7f e3 fb 78 	mr      r3,r31                                 
ffc0ec04:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0ec08:	7c 08 03 a6 	mtlr    r0                                     
ffc0ec0c:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0ec10:	38 21 00 10 	addi    r1,r1,16                               
ffc0ec14:	4e 80 00 20 	blr                                            
                                                                      

ffc054c8 <rtems_assoc_ptr_by_name>: const rtems_assoc_t *rtems_assoc_ptr_by_name( const rtems_assoc_t *ap, const char *name ) {
ffc054c8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc054cc:	7c 08 02 a6 	mflr    r0                                     
ffc054d0:	90 01 00 1c 	stw     r0,28(r1)                              
ffc054d4:	93 e1 00 14 	stw     r31,20(r1)                             
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
ffc054d8:	83 e3 00 00 	lwz     r31,0(r3)                              
                                                                      
const rtems_assoc_t *rtems_assoc_ptr_by_name(                         
  const rtems_assoc_t *ap,                                            
  const char          *name                                           
)                                                                     
{                                                                     
ffc054dc:	93 c1 00 10 	stw     r30,16(r1)                             
ffc054e0:	7c 7e 1b 78 	mr      r30,r3                                 
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
ffc054e4:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
                                                                      
const rtems_assoc_t *rtems_assoc_ptr_by_name(                         
  const rtems_assoc_t *ap,                                            
  const char          *name                                           
)                                                                     
{                                                                     
ffc054e8:	93 81 00 08 	stw     r28,8(r1)                              
ffc054ec:	93 a1 00 0c 	stw     r29,12(r1)                             
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
ffc054f0:	41 9e 00 b0 	beq-    cr7,ffc055a0 <rtems_assoc_ptr_by_name+0xd8>
ffc054f4:	7c 9d 23 78 	mr      r29,r4                                 
ffc054f8:	3c 80 ff c2 	lis     r4,-62                                 
ffc054fc:	7f e3 fb 78 	mr      r3,r31                                 
ffc05500:	38 84 9f fc 	addi    r4,r4,-24580                           
ffc05504:	48 00 f3 c9 	bl      ffc148cc <strcmp>                      
ffc05508:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0550c:	41 9e 00 50 	beq-    cr7,ffc0555c <rtems_assoc_ptr_by_name+0x94>
const rtems_assoc_t *rtems_assoc_ptr_by_name(                         
  const rtems_assoc_t *ap,                                            
  const char          *name                                           
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
ffc05510:	3b 80 00 00 	li      r28,0                                  
ffc05514:	48 00 00 10 	b       ffc05524 <rtems_assoc_ptr_by_name+0x5c>
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
ffc05518:	87 fe 00 0c 	lwzu    r31,12(r30)                            
ffc0551c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc05520:	41 9e 00 58 	beq-    cr7,ffc05578 <rtems_assoc_ptr_by_name+0xb0>
    if (strcmp(ap->name, name) == 0)                                  
ffc05524:	7f e3 fb 78 	mr      r3,r31                                 
ffc05528:	7f a4 eb 78 	mr      r4,r29                                 
ffc0552c:	48 00 f3 a1 	bl      ffc148cc <strcmp>                      
ffc05530:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05534:	40 9e ff e4 	bne+    cr7,ffc05518 <rtems_assoc_ptr_by_name+0x50>
	return ap;                                                           
                                                                      
  return default_ap;                                                  
}                                                                     
ffc05538:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0553c:	7f c3 f3 78 	mr      r3,r30                                 
ffc05540:	83 81 00 08 	lwz     r28,8(r1)                              
ffc05544:	7c 08 03 a6 	mtlr    r0                                     
ffc05548:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0554c:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc05550:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc05554:	38 21 00 18 	addi    r1,r1,24                               
ffc05558:	4e 80 00 20 	blr                                            
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
ffc0555c:	83 fe 00 0c 	lwz     r31,12(r30)                            
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
ffc05560:	39 3e 00 0c 	addi    r9,r30,12                              
                                                                      
  for ( ; ap->name; ap++)                                             
ffc05564:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc05568:	41 be ff d0 	beq-    cr7,ffc05538 <rtems_assoc_ptr_by_name+0x70><== NEVER TAKEN
ffc0556c:	7f dc f3 78 	mr      r28,r30                                
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
ffc05570:	7d 3e 4b 78 	mr      r30,r9                                 
ffc05574:	4b ff ff b0 	b       ffc05524 <rtems_assoc_ptr_by_name+0x5c>
  for ( ; ap->name; ap++)                                             
    if (strcmp(ap->name, name) == 0)                                  
	return ap;                                                           
                                                                      
  return default_ap;                                                  
}                                                                     
ffc05578:	80 01 00 1c 	lwz     r0,28(r1)                              
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
ffc0557c:	7f 9e e3 78 	mr      r30,r28                                
    if (strcmp(ap->name, name) == 0)                                  
	return ap;                                                           
                                                                      
  return default_ap;                                                  
}                                                                     
ffc05580:	7f c3 f3 78 	mr      r3,r30                                 
ffc05584:	83 81 00 08 	lwz     r28,8(r1)                              
ffc05588:	7c 08 03 a6 	mtlr    r0                                     
ffc0558c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc05590:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc05594:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc05598:	38 21 00 18 	addi    r1,r1,24                               
ffc0559c:	4e 80 00 20 	blr                                            
ffc055a0:	80 01 00 1c 	lwz     r0,28(r1)                              
const rtems_assoc_t *rtems_assoc_ptr_by_name(                         
  const rtems_assoc_t *ap,                                            
  const char          *name                                           
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
ffc055a4:	3b c0 00 00 	li      r30,0                                  
  for ( ; ap->name; ap++)                                             
    if (strcmp(ap->name, name) == 0)                                  
	return ap;                                                           
                                                                      
  return default_ap;                                                  
}                                                                     
ffc055a8:	7f c3 f3 78 	mr      r3,r30                                 
ffc055ac:	83 81 00 08 	lwz     r28,8(r1)                              
ffc055b0:	7c 08 03 a6 	mtlr    r0                                     
ffc055b4:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc055b8:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc055bc:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc055c0:	38 21 00 18 	addi    r1,r1,24                               
ffc055c4:	4e 80 00 20 	blr                                            
                                                                      

ffc12458 <rtems_assoc_ptr_by_remote>: const rtems_assoc_t *rtems_assoc_ptr_by_remote( const rtems_assoc_t *ap, uint32_t remote_value ) {
ffc12458:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1245c:	7c 08 02 a6 	mflr    r0                                     
ffc12460:	90 01 00 14 	stw     r0,20(r1)                              
ffc12464:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc12468:	7c 7f 1b 78 	mr      r31,r3                                 
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
ffc1246c:	80 63 00 00 	lwz     r3,0(r3)                               
                                                                      
const rtems_assoc_t *rtems_assoc_ptr_by_remote(                       
  const rtems_assoc_t *ap,                                            
  uint32_t       remote_value                                         
)                                                                     
{                                                                     
ffc12470:	93 c1 00 08 	stw     r30,8(r1)                              
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
ffc12474:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc12478:	41 9e 00 94 	beq-    cr7,ffc1250c <rtems_assoc_ptr_by_remote+0xb4>
ffc1247c:	7c 9e 23 78 	mr      r30,r4                                 
ffc12480:	3c 80 ff c2 	lis     r4,-62                                 
ffc12484:	38 84 ff e0 	addi    r4,r4,-32                              
ffc12488:	48 00 1f 1d 	bl      ffc143a4 <strcmp>                      
ffc1248c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc12490:	41 9e 00 40 	beq-    cr7,ffc124d0 <rtems_assoc_ptr_by_remote+0x78>
const rtems_assoc_t *rtems_assoc_ptr_by_remote(                       
  const rtems_assoc_t *ap,                                            
  uint32_t       remote_value                                         
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
ffc12494:	39 40 00 00 	li      r10,0                                  
ffc12498:	48 00 00 10 	b       ffc124a8 <rtems_assoc_ptr_by_remote+0x50>
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
ffc1249c:	85 3f 00 0c 	lwzu    r9,12(r31)                             
ffc124a0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc124a4:	41 9e 00 48 	beq-    cr7,ffc124ec <rtems_assoc_ptr_by_remote+0x94>
    if (ap->remote_value == remote_value)                             
ffc124a8:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc124ac:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc124b0:	40 9e ff ec 	bne+    cr7,ffc1249c <rtems_assoc_ptr_by_remote+0x44>
      return ap;                                                      
                                                                      
  return default_ap;                                                  
}                                                                     
ffc124b4:	80 01 00 14 	lwz     r0,20(r1)                              
ffc124b8:	7f e3 fb 78 	mr      r3,r31                                 
ffc124bc:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc124c0:	7c 08 03 a6 	mtlr    r0                                     
ffc124c4:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc124c8:	38 21 00 10 	addi    r1,r1,16                               
ffc124cc:	4e 80 00 20 	blr                                            
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
ffc124d0:	81 3f 00 0c 	lwz     r9,12(r31)                             
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
ffc124d4:	39 1f 00 0c 	addi    r8,r31,12                              
                                                                      
  for ( ; ap->name; ap++)                                             
ffc124d8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc124dc:	41 be ff d8 	beq-    cr7,ffc124b4 <rtems_assoc_ptr_by_remote+0x5c><== NEVER TAKEN
ffc124e0:	7f ea fb 78 	mr      r10,r31                                
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
ffc124e4:	7d 1f 43 78 	mr      r31,r8                                 
ffc124e8:	4b ff ff c0 	b       ffc124a8 <rtems_assoc_ptr_by_remote+0x50>
  for ( ; ap->name; ap++)                                             
    if (ap->remote_value == remote_value)                             
      return ap;                                                      
                                                                      
  return default_ap;                                                  
}                                                                     
ffc124ec:	80 01 00 14 	lwz     r0,20(r1)                              
  const rtems_assoc_t *default_ap = 0;                                
                                                                      
  if (rtems_assoc_is_default(ap))                                     
    default_ap = ap++;                                                
                                                                      
  for ( ; ap->name; ap++)                                             
ffc124f0:	7d 5f 53 78 	mr      r31,r10                                
    if (ap->remote_value == remote_value)                             
      return ap;                                                      
                                                                      
  return default_ap;                                                  
}                                                                     
ffc124f4:	7f e3 fb 78 	mr      r3,r31                                 
ffc124f8:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc124fc:	7c 08 03 a6 	mtlr    r0                                     
ffc12500:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc12504:	38 21 00 10 	addi    r1,r1,16                               
ffc12508:	4e 80 00 20 	blr                                            
ffc1250c:	80 01 00 14 	lwz     r0,20(r1)                              
const rtems_assoc_t *rtems_assoc_ptr_by_remote(                       
  const rtems_assoc_t *ap,                                            
  uint32_t       remote_value                                         
)                                                                     
{                                                                     
  const rtems_assoc_t *default_ap = 0;                                
ffc12510:	3b e0 00 00 	li      r31,0                                  
  for ( ; ap->name; ap++)                                             
    if (ap->remote_value == remote_value)                             
      return ap;                                                      
                                                                      
  return default_ap;                                                  
}                                                                     
ffc12514:	7f e3 fb 78 	mr      r3,r31                                 
ffc12518:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc1251c:	7c 08 03 a6 	mtlr    r0                                     
ffc12520:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc12524:	38 21 00 10 	addi    r1,r1,16                               
ffc12528:	4e 80 00 20 	blr                                            
                                                                      

ffc0569c <rtems_assoc_remote_by_local_bitfield>: uint32_t rtems_assoc_remote_by_local_bitfield( const rtems_assoc_t *ap, uint32_t local_value ) {
ffc0569c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc056a0:	7c 08 02 a6 	mflr    r0                                     
ffc056a4:	93 61 00 0c 	stw     r27,12(r1)                             
ffc056a8:	7c 7b 1b 78 	mr      r27,r3                                 
ffc056ac:	93 81 00 10 	stw     r28,16(r1)                             
  uint32_t   b;                                                       
  uint32_t   remote_value = 0;                                        
ffc056b0:	3b 80 00 00 	li      r28,0                                  
                                                                      
uint32_t   rtems_assoc_remote_by_local_bitfield(                      
    const rtems_assoc_t *ap,                                          
    uint32_t             local_value                                  
)                                                                     
{                                                                     
ffc056b4:	93 a1 00 14 	stw     r29,20(r1)                             
ffc056b8:	7c 9d 23 78 	mr      r29,r4                                 
ffc056bc:	93 c1 00 18 	stw     r30,24(r1)                             
ffc056c0:	3b c0 00 20 	li      r30,32                                 
ffc056c4:	93 e1 00 1c 	stw     r31,28(r1)                             
  uint32_t   b;                                                       
  uint32_t   remote_value = 0;                                        
                                                                      
  for (b = 1; b; b <<= 1)                                             
ffc056c8:	3b e0 00 01 	li      r31,1                                  
                                                                      
uint32_t   rtems_assoc_remote_by_local_bitfield(                      
    const rtems_assoc_t *ap,                                          
    uint32_t             local_value                                  
)                                                                     
{                                                                     
ffc056cc:	90 01 00 24 	stw     r0,36(r1)                              
ffc056d0:	48 00 00 10 	b       ffc056e0 <rtems_assoc_remote_by_local_bitfield+0x44>
  uint32_t   b;                                                       
  uint32_t   remote_value = 0;                                        
                                                                      
  for (b = 1; b; b <<= 1)                                             
ffc056d4:	37 de ff ff 	addic.  r30,r30,-1                             
ffc056d8:	57 ff 08 3c 	rlwinm  r31,r31,1,0,30                         
ffc056dc:	41 82 00 28 	beq-    ffc05704 <rtems_assoc_remote_by_local_bitfield+0x68>
    if (b & local_value)                                              
ffc056e0:	7f e9 e8 39 	and.    r9,r31,r29                             
ffc056e4:	41 82 ff f0 	beq+    ffc056d4 <rtems_assoc_remote_by_local_bitfield+0x38>
      remote_value |= rtems_assoc_remote_by_local(ap, b);             
ffc056e8:	7f e4 fb 78 	mr      r4,r31                                 
ffc056ec:	7f 63 db 78 	mr      r3,r27                                 
ffc056f0:	48 00 00 3d 	bl      ffc0572c <rtems_assoc_remote_by_local> 
)                                                                     
{                                                                     
  uint32_t   b;                                                       
  uint32_t   remote_value = 0;                                        
                                                                      
  for (b = 1; b; b <<= 1)                                             
ffc056f4:	37 de ff ff 	addic.  r30,r30,-1                             
    if (b & local_value)                                              
      remote_value |= rtems_assoc_remote_by_local(ap, b);             
ffc056f8:	7f 9c 1b 78 	or      r28,r28,r3                             
)                                                                     
{                                                                     
  uint32_t   b;                                                       
  uint32_t   remote_value = 0;                                        
                                                                      
  for (b = 1; b; b <<= 1)                                             
ffc056fc:	57 ff 08 3c 	rlwinm  r31,r31,1,0,30                         
ffc05700:	40 82 ff e0 	bne+    ffc056e0 <rtems_assoc_remote_by_local_bitfield+0x44><== ALWAYS TAKEN
    if (b & local_value)                                              
      remote_value |= rtems_assoc_remote_by_local(ap, b);             
                                                                      
  return remote_value;                                                
}                                                                     
ffc05704:	80 01 00 24 	lwz     r0,36(r1)                              
ffc05708:	7f 83 e3 78 	mr      r3,r28                                 
ffc0570c:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc05710:	7c 08 03 a6 	mtlr    r0                                     
ffc05714:	83 81 00 10 	lwz     r28,16(r1)                             
ffc05718:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0571c:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc05720:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc05724:	38 21 00 20 	addi    r1,r1,32                               
ffc05728:	4e 80 00 20 	blr                                            
                                                                      

ffc0febc <rtems_bdbuf_add_to_modified_list_after_access>: } } static void rtems_bdbuf_add_to_modified_list_after_access (rtems_bdbuf_buffer *bd) {
ffc0febc:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0fec0:	7c 08 02 a6 	mflr    r0                                     
ffc0fec4:	93 c1 00 08 	stw     r30,8(r1)                              
  if (bdbuf_cache.sync_active && bdbuf_cache.sync_device == bd->dd)   
ffc0fec8:	3f c0 00 00 	lis     r30,0                                  
ffc0fecc:	3b de 2a 00 	addi    r30,r30,10752                          
ffc0fed0:	89 3e 00 30 	lbz     r9,48(r30)                             
  }                                                                   
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_add_to_modified_list_after_access (rtems_bdbuf_buffer *bd)
{                                                                     
ffc0fed4:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0fed8:	7c 7f 1b 78 	mr      r31,r3                                 
  if (bdbuf_cache.sync_active && bdbuf_cache.sync_device == bd->dd)   
ffc0fedc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
  }                                                                   
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_add_to_modified_list_after_access (rtems_bdbuf_buffer *bd)
{                                                                     
ffc0fee0:	90 01 00 14 	stw     r0,20(r1)                              
  if (bdbuf_cache.sync_active && bdbuf_cache.sync_device == bd->dd)   
ffc0fee4:	41 9e 00 14 	beq-    cr7,ffc0fef8 <rtems_bdbuf_add_to_modified_list_after_access+0x3c><== ALWAYS TAKEN
ffc0fee8:	81 5e 00 38 	lwz     r10,56(r30)                            <== NOT EXECUTED
ffc0feec:	81 23 00 14 	lwz     r9,20(r3)                              <== NOT EXECUTED
ffc0fef0:	7f 8a 48 00 	cmpw    cr7,r10,r9                             <== NOT EXECUTED
ffc0fef4:	41 9e 00 d4 	beq-    cr7,ffc0ffc8 <rtems_bdbuf_add_to_modified_list_after_access+0x10c><== 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                    
ffc0fef8:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc0fefc:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc0ff00:	41 9e 00 74 	beq-    cr7,ffc0ff74 <rtems_bdbuf_add_to_modified_list_after_access+0xb8>
        || bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)               
ffc0ff04:	2f 89 00 05 	cmpwi   cr7,r9,5                               
ffc0ff08:	41 9e 00 6c 	beq-    cr7,ffc0ff74 <rtems_bdbuf_add_to_modified_list_after_access+0xb8>
    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)                                                    
ffc0ff0c:	81 5f 00 24 	lwz     r10,36(r31)                            
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
ffc0ff10:	39 1e 00 50 	addi    r8,r30,80                              
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc0ff14:	81 3e 00 54 	lwz     r9,84(r30)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0ff18:	38 e0 00 07 	li      r7,7                                   
    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)                                                    
ffc0ff1c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0ff20:	90 ff 00 20 	stw     r7,32(r31)                             
                                                                      
  the_node->next = tail;                                              
ffc0ff24:	91 1f 00 00 	stw     r8,0(r31)                              
  tail->previous = the_node;                                          
ffc0ff28:	93 fe 00 54 	stw     r31,84(r30)                            
  old_last->next = the_node;                                          
ffc0ff2c:	93 e9 00 00 	stw     r31,0(r9)                              
  the_node->previous = old_last;                                      
ffc0ff30:	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)                                                    
ffc0ff34:	40 9e 00 78 	bne-    cr7,ffc0ffac <rtems_bdbuf_add_to_modified_list_after_access+0xf0>
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
  else if (rtems_bdbuf_has_buffer_waiters ())                         
ffc0ff38:	81 3e 00 74 	lwz     r9,116(r30)                            
ffc0ff3c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ff40:	40 9e 00 1c 	bne-    cr7,ffc0ff5c <rtems_bdbuf_add_to_modified_list_after_access+0xa0>
    rtems_bdbuf_wake_swapper ();                                      
}                                                                     
ffc0ff44:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0ff48:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0ff4c:	7c 08 03 a6 	mtlr    r0                                     
ffc0ff50:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0ff54:	38 21 00 10 	addi    r1,r1,16                               
ffc0ff58:	4e 80 00 20 	blr                                            
ffc0ff5c:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0ff60:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0ff64:	7c 08 03 a6 	mtlr    r0                                     
ffc0ff68:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0ff6c:	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 ();                                      
ffc0ff70:	4b ff fc 2c 	b       ffc0fb9c <rtems_bdbuf_wake_swapper>    
    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)                                                    
ffc0ff74:	81 5f 00 24 	lwz     r10,36(r31)                            
   * only a specific period of time even if still changing and get onto disk
   * and letting the file system try and recover this position if it can.
   */                                                                 
  if (bd->state == RTEMS_BDBUF_STATE_ACCESS_CACHED                    
        || bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)               
    bd->hold_timer = bdbuf_config.swap_block_hold;                    
ffc0ff78:	3d 20 ff c2 	lis     r9,-62                                 
ffc0ff7c:	81 29 dc 6c 	lwz     r9,-9108(r9)                           
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
ffc0ff80:	39 1e 00 50 	addi    r8,r30,80                              
                                                                      
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_MODIFIED);             
  rtems_chain_append_unprotected (&bdbuf_cache.modified, &bd->link);  
                                                                      
  if (bd->waiters)                                                    
ffc0ff84:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0ff88:	91 1f 00 00 	stw     r8,0(r31)                              
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0ff8c:	38 e0 00 07 	li      r7,7                                   
   * only a specific period of time even if still changing and get onto disk
   * and letting the file system try and recover this position if it can.
   */                                                                 
  if (bd->state == RTEMS_BDBUF_STATE_ACCESS_CACHED                    
        || bd->state == RTEMS_BDBUF_STATE_ACCESS_EMPTY)               
    bd->hold_timer = bdbuf_config.swap_block_hold;                    
ffc0ff90:	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;                              
ffc0ff94:	81 3e 00 54 	lwz     r9,84(r30)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0ff98:	90 ff 00 20 	stw     r7,32(r31)                             
                                                                      
  the_node->next = tail;                                              
  tail->previous = the_node;                                          
ffc0ff9c:	93 fe 00 54 	stw     r31,84(r30)                            
  old_last->next = the_node;                                          
ffc0ffa0:	93 e9 00 00 	stw     r31,0(r9)                              
  the_node->previous = old_last;                                      
ffc0ffa4:	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)                                                    
ffc0ffa8:	41 9e ff 90 	beq+    cr7,ffc0ff38 <rtems_bdbuf_add_to_modified_list_after_access+0x7c>
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
  else if (rtems_bdbuf_has_buffer_waiters ())                         
    rtems_bdbuf_wake_swapper ();                                      
}                                                                     
ffc0ffac:	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);                   
ffc0ffb0:	38 7e 00 64 	addi    r3,r30,100                             
  else if (rtems_bdbuf_has_buffer_waiters ())                         
    rtems_bdbuf_wake_swapper ();                                      
}                                                                     
ffc0ffb4:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0ffb8:	7c 08 03 a6 	mtlr    r0                                     
ffc0ffbc:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc0ffc0:	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);                   
ffc0ffc4:	4b ff fe b8 	b       ffc0fe7c <rtems_bdbuf_wake>            
static void                                                           
rtems_bdbuf_add_to_modified_list_after_access (rtems_bdbuf_buffer *bd)
{                                                                     
  if (bdbuf_cache.sync_active && bdbuf_cache.sync_device == bd->dd)   
  {                                                                   
    rtems_bdbuf_unlock_cache ();                                      
ffc0ffc8:	4b ff fb c5 	bl      ffc0fb8c <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);
ffc0ffcc:	80 7e 00 2c 	lwz     r3,44(r30)                             <== NOT EXECUTED
ffc0ffd0:	38 80 00 19 	li      r4,25                                  <== NOT EXECUTED
ffc0ffd4:	4b ff fb 11 	bl      ffc0fae4 <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,                          
ffc0ffd8:	80 7e 00 2c 	lwz     r3,44(r30)                             <== NOT EXECUTED
ffc0ffdc:	38 80 00 1a 	li      r4,26                                  <== NOT EXECUTED
ffc0ffe0:	4b ff fb 71 	bl      ffc0fb50 <rtems_bdbuf_unlock>          <== NOT EXECUTED
     * Wait for the sync lock.                                        
     */                                                               
    rtems_bdbuf_lock_sync ();                                         
                                                                      
    rtems_bdbuf_unlock_sync ();                                       
    rtems_bdbuf_lock_cache ();                                        
ffc0ffe4:	4b ff fb 45 	bl      ffc0fb28 <rtems_bdbuf_lock_cache>      <== NOT EXECUTED
ffc0ffe8:	4b ff ff 10 	b       ffc0fef8 <rtems_bdbuf_add_to_modified_list_after_access+0x3c><== NOT EXECUTED
                                                                      

ffc0fc60 <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) {
ffc0fc60:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0fc64:	7c 08 02 a6 	mflr    r0                                     
ffc0fc68:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_mode        prev_mode;                                        
                                                                      
  /*                                                                  
   * Indicate we are waiting.                                         
   */                                                                 
  ++waiters->count;                                                   
ffc0fc6c:	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)             
{                                                                     
ffc0fc70:	93 c1 00 08 	stw     r30,8(r1)                              
  rtems_mode        prev_mode;                                        
                                                                      
  /*                                                                  
   * Indicate we are waiting.                                         
   */                                                                 
  ++waiters->count;                                                   
ffc0fc74:	39 29 00 01 	addi    r9,r9,1                                
 * 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)             
{                                                                     
ffc0fc78:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0fc7c:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_mode        prev_mode;                                        
                                                                      
  /*                                                                  
   * Indicate we are waiting.                                         
   */                                                                 
  ++waiters->count;                                                   
ffc0fc80:	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 ();                      
ffc0fc84:	4b ff ff 55 	bl      ffc0fbd8 <rtems_bdbuf_disable_preemption>
ffc0fc88:	7c 7e 1b 78 	mr      r30,r3                                 
                                                                      
  /*                                                                  
   * Unlock the cache, wait, and lock the cache when we return.       
   */                                                                 
  rtems_bdbuf_unlock_cache ();                                        
ffc0fc8c:	4b ff ff 01 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    
                                                                      
  sc = rtems_semaphore_obtain (waiters->sema, RTEMS_WAIT, RTEMS_BDBUF_WAIT_TIMEOUT);
ffc0fc90:	80 7f 00 04 	lwz     r3,4(r31)                              
ffc0fc94:	38 80 00 00 	li      r4,0                                   
ffc0fc98:	38 a0 00 00 	li      r5,0                                   
ffc0fc9c:	4b ff b2 ad 	bl      ffc0af48 <rtems_semaphore_obtain>      
                                                                      
  if (sc == RTEMS_TIMEOUT)                                            
ffc0fca0:	2f 83 00 06 	cmpwi   cr7,r3,6                               
ffc0fca4:	41 9e 00 3c 	beq-    cr7,ffc0fce0 <rtems_bdbuf_anonymous_wait+0x80><== NEVER TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_CACHE_WAIT_TO);              
                                                                      
  if (sc != RTEMS_UNSATISFIED)                                        
ffc0fca8:	2f 83 00 0d 	cmpwi   cr7,r3,13                              
ffc0fcac:	40 9e 00 3c 	bne-    cr7,ffc0fce8 <rtems_bdbuf_anonymous_wait+0x88><== NEVER TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_CACHE_WAIT_2);               
                                                                      
  rtems_bdbuf_lock_cache ();                                          
ffc0fcb0:	4b ff fe 79 	bl      ffc0fb28 <rtems_bdbuf_lock_cache>      
                                                                      
  rtems_bdbuf_restore_preemption (prev_mode);                         
ffc0fcb4:	7f c3 f3 78 	mr      r3,r30                                 
ffc0fcb8:	4b ff ff 69 	bl      ffc0fc20 <rtems_bdbuf_restore_preemption>
                                                                      
  --waiters->count;                                                   
}                                                                     
ffc0fcbc:	80 01 00 14 	lwz     r0,20(r1)                              
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  rtems_bdbuf_restore_preemption (prev_mode);                         
                                                                      
  --waiters->count;                                                   
ffc0fcc0:	81 3f 00 00 	lwz     r9,0(r31)                              
}                                                                     
ffc0fcc4:	7c 08 03 a6 	mtlr    r0                                     
ffc0fcc8:	83 c1 00 08 	lwz     r30,8(r1)                              
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  rtems_bdbuf_restore_preemption (prev_mode);                         
                                                                      
  --waiters->count;                                                   
ffc0fccc:	39 29 ff ff 	addi    r9,r9,-1                               
ffc0fcd0:	91 3f 00 00 	stw     r9,0(r31)                              
}                                                                     
ffc0fcd4:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0fcd8:	38 21 00 10 	addi    r1,r1,16                               
ffc0fcdc:	4e 80 00 20 	blr                                            
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  sc = rtems_semaphore_obtain (waiters->sema, RTEMS_WAIT, RTEMS_BDBUF_WAIT_TIMEOUT);
                                                                      
  if (sc == RTEMS_TIMEOUT)                                            
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_CACHE_WAIT_TO);              
ffc0fce0:	38 60 00 03 	li      r3,3                                   <== NOT EXECUTED
ffc0fce4:	4b ff fd e9 	bl      ffc0facc <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                                                      
  if (sc != RTEMS_UNSATISFIED)                                        
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_CACHE_WAIT_2);               
ffc0fce8:	38 60 00 02 	li      r3,2                                   <== NOT EXECUTED
ffc0fcec:	4b ff fd e1 	bl      ffc0facc <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                                                      

ffc0ffec <rtems_bdbuf_create_task.constprop.15>: rtems_task_argument arg, rtems_id *id ) { rtems_status_code sc; size_t stack_size = bdbuf_config.task_stack_size ?
ffc0ffec:	3d 20 ff c2 	lis     r9,-62                                 
                                                                      
  return NULL;                                                        
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_create_task(                                              
ffc0fff0:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0fff4:	7c 08 02 a6 	mflr    r0                                     
  rtems_task_argument arg,                                            
  rtems_id *id                                                        
)                                                                     
{                                                                     
  rtems_status_code sc;                                               
  size_t stack_size = bdbuf_config.task_stack_size ?                  
ffc0fff8:	81 29 dc 78 	lwz     r9,-9096(r9)                           
                                                                      
  return NULL;                                                        
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_create_task(                                              
ffc0fffc:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc10000:	7c bd 2b 78 	mr      r29,r5                                 
  rtems_id *id                                                        
)                                                                     
{                                                                     
  rtems_status_code sc;                                               
  size_t stack_size = bdbuf_config.task_stack_size ?                  
    bdbuf_config.task_stack_size : RTEMS_BDBUF_TASK_STACK_SIZE_DEFAULT;
ffc10004:	2f 89 00 00 	cmpwi   cr7,r9,0                               
                                                                      
  return NULL;                                                        
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_create_task(                                              
ffc10008:	93 c1 00 10 	stw     r30,16(r1)                             
ffc1000c:	7c de 33 78 	mr      r30,r6                                 
ffc10010:	93 e1 00 14 	stw     r31,20(r1)                             
ffc10014:	7c ff 3b 78 	mr      r31,r7                                 
ffc10018:	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;
ffc1001c:	40 9e 00 08 	bne-    cr7,ffc10024 <rtems_bdbuf_create_task.constprop.15+0x38><== ALWAYS TAKEN
ffc10020:	39 20 20 00 	li      r9,8192                                <== NOT EXECUTED
                                                                      
  priority = priority != 0 ? priority : default_priority;             
ffc10024:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc10028:	40 9e 00 08 	bne-    cr7,ffc10030 <rtems_bdbuf_create_task.constprop.15+0x44><== ALWAYS TAKEN
ffc1002c:	38 80 00 0f 	li      r4,15                                  <== NOT EXECUTED
                                                                      
  sc = rtems_task_create (name,                                       
ffc10030:	7d 25 4b 78 	mr      r5,r9                                  
ffc10034:	38 c0 04 00 	li      r6,1024                                
ffc10038:	38 e0 00 00 	li      r7,0                                   
ffc1003c:	7f e8 fb 78 	mr      r8,r31                                 
ffc10040:	4b ff b2 01 	bl      ffc0b240 <rtems_task_create>           
                          stack_size,                                 
                          RTEMS_PREEMPT | RTEMS_NO_TIMESLICE | RTEMS_NO_ASR,
                          RTEMS_LOCAL | RTEMS_NO_FLOATING_POINT,      
                          id);                                        
                                                                      
  if (sc == RTEMS_SUCCESSFUL)                                         
ffc10044:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc10048:	41 9e 00 20 	beq-    cr7,ffc10068 <rtems_bdbuf_create_task.constprop.15+0x7c><== ALWAYS TAKEN
    sc = rtems_task_start (*id, entry, arg);                          
                                                                      
  return sc;                                                          
}                                                                     
ffc1004c:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
ffc10050:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc10054:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc10058:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc1005c:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc10060:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc10064:	4e 80 00 20 	blr                                            <== NOT EXECUTED
ffc10068:	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);                          
ffc1006c:	7f a4 eb 78 	mr      r4,r29                                 
ffc10070:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc10074:	7f c5 f3 78 	mr      r5,r30                                 
                                                                      
  return sc;                                                          
}                                                                     
ffc10078:	7c 08 03 a6 	mtlr    r0                                     
ffc1007c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc10080:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc10084:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc10088:	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);                          
ffc1008c:	4b ff b4 b0 	b       ffc0b53c <rtems_task_start>            
                                                                      

ffc0fbd8 <rtems_bdbuf_disable_preemption>: --bd->group->users; } static rtems_mode rtems_bdbuf_disable_preemption (void) {
ffc0fbd8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0fbdc:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_mode prev_mode = 0;                                           
ffc0fbe0:	39 20 00 00 	li      r9,0                                   
ffc0fbe4:	7c 25 0b 78 	mr      r5,r1                                  
  --bd->group->users;                                                 
}                                                                     
                                                                      
static rtems_mode                                                     
rtems_bdbuf_disable_preemption (void)                                 
{                                                                     
ffc0fbe8:	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);
ffc0fbec:	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;                                           
ffc0fbf0:	95 25 00 08 	stwu    r9,8(r5)                               
                                                                      
  sc = rtems_task_mode (RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &prev_mode);
ffc0fbf4:	38 80 01 00 	li      r4,256                                 
ffc0fbf8:	48 00 57 c1 	bl      ffc153b8 <rtems_task_mode>             
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc0fbfc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0fc00:	40 9e 00 18 	bne-    cr7,ffc0fc18 <rtems_bdbuf_disable_preemption+0x40><== NEVER TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_PREEMPT_DIS);                
                                                                      
  return prev_mode;                                                   
}                                                                     
ffc0fc04:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0fc08:	80 61 00 08 	lwz     r3,8(r1)                               
ffc0fc0c:	7c 08 03 a6 	mtlr    r0                                     
ffc0fc10:	38 21 00 18 	addi    r1,r1,24                               
ffc0fc14:	4e 80 00 20 	blr                                            
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_mode prev_mode = 0;                                           
                                                                      
  sc = rtems_task_mode (RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &prev_mode);
  if (sc != RTEMS_SUCCESSFUL)                                         
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_PREEMPT_DIS);                
ffc0fc18:	38 60 00 05 	li      r3,5                                   <== NOT EXECUTED
ffc0fc1c:	4b ff fe b1 	bl      ffc0facc <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                                                      

ffc10510 <rtems_bdbuf_discard_buffer_after_access>: return bdbuf_cache.max_bds_per_group / bds_per_size; } static void rtems_bdbuf_discard_buffer_after_access (rtems_bdbuf_buffer *bd) {
ffc10510:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc10514:	7c 08 02 a6 	mflr    r0                                     
ffc10518:	90 01 00 14 	stw     r0,20(r1)                              
ffc1051c:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc10520:	7c 7f 1b 78 	mr      r31,r3                                 
static void                                                           
rtems_bdbuf_discard_buffer (rtems_bdbuf_buffer *bd)                   
{                                                                     
  rtems_bdbuf_make_empty (bd);                                        
                                                                      
  if (bd->waiters == 0)                                               
ffc10524:	81 43 00 24 	lwz     r10,36(r3)                             
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 ();                                        
}                                                                     
ffc10528:	81 23 00 28 	lwz     r9,40(r3)                              
static void                                                           
rtems_bdbuf_discard_buffer (rtems_bdbuf_buffer *bd)                   
{                                                                     
  rtems_bdbuf_make_empty (bd);                                        
                                                                      
  if (bd->waiters == 0)                                               
ffc1052c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)                    
{                                                                     
  --bd->group->users;                                                 
ffc10530:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc10534:	39 0a ff ff 	addi    r8,r10,-1                              
ffc10538:	91 09 00 0c 	stw     r8,12(r9)                              
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc1053c:	39 20 00 01 	li      r9,1                                   
ffc10540:	91 23 00 20 	stw     r9,32(r3)                              
static void                                                           
rtems_bdbuf_discard_buffer (rtems_bdbuf_buffer *bd)                   
{                                                                     
  rtems_bdbuf_make_empty (bd);                                        
                                                                      
  if (bd->waiters == 0)                                               
ffc10544:	41 9e 00 24 	beq-    cr7,ffc10568 <rtems_bdbuf_discard_buffer_after_access+0x58>
                                                                      
  if (bd->waiters)                                                    
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
  else                                                                
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
}                                                                     
ffc10548:	80 01 00 14 	lwz     r0,20(r1)                              
{                                                                     
  rtems_bdbuf_group_release (bd);                                     
  rtems_bdbuf_discard_buffer (bd);                                    
                                                                      
  if (bd->waiters)                                                    
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
ffc1054c:	3c 60 00 00 	lis     r3,0                                   
  else                                                                
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
}                                                                     
ffc10550:	83 e1 00 0c 	lwz     r31,12(r1)                             
{                                                                     
  rtems_bdbuf_group_release (bd);                                     
  rtems_bdbuf_discard_buffer (bd);                                    
                                                                      
  if (bd->waiters)                                                    
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
ffc10554:	38 63 2a 00 	addi    r3,r3,10752                            
  else                                                                
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
}                                                                     
ffc10558:	7c 08 03 a6 	mtlr    r0                                     
{                                                                     
  rtems_bdbuf_group_release (bd);                                     
  rtems_bdbuf_discard_buffer (bd);                                    
                                                                      
  if (bd->waiters)                                                    
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
ffc1055c:	38 63 00 64 	addi    r3,r3,100                              
  else                                                                
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
}                                                                     
ffc10560:	38 21 00 10 	addi    r1,r1,16                               
  rtems_bdbuf_discard_buffer (bd);                                    
                                                                      
  if (bd->waiters)                                                    
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
  else                                                                
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
ffc10564:	4b ff f9 18 	b       ffc0fe7c <rtems_bdbuf_wake>            
ffc10568:	4b ff ff 55 	bl      ffc104bc <rtems_bdbuf_discard_buffer.part.9>
rtems_bdbuf_discard_buffer_after_access (rtems_bdbuf_buffer *bd)      
{                                                                     
  rtems_bdbuf_group_release (bd);                                     
  rtems_bdbuf_discard_buffer (bd);                                    
                                                                      
  if (bd->waiters)                                                    
ffc1056c:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc10570:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10574:	40 be ff d4 	bne-    cr7,ffc10548 <rtems_bdbuf_discard_buffer_after_access+0x38><== NEVER TAKEN
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
  else                                                                
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
}                                                                     
ffc10578:	80 01 00 14 	lwz     r0,20(r1)                              
  rtems_bdbuf_discard_buffer (bd);                                    
                                                                      
  if (bd->waiters)                                                    
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
  else                                                                
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
ffc1057c:	3c 60 00 00 	lis     r3,0                                   
}                                                                     
ffc10580:	83 e1 00 0c 	lwz     r31,12(r1)                             
  rtems_bdbuf_discard_buffer (bd);                                    
                                                                      
  if (bd->waiters)                                                    
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
  else                                                                
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
ffc10584:	38 63 2a 00 	addi    r3,r3,10752                            
}                                                                     
ffc10588:	7c 08 03 a6 	mtlr    r0                                     
  rtems_bdbuf_discard_buffer (bd);                                    
                                                                      
  if (bd->waiters)                                                    
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
  else                                                                
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
ffc1058c:	38 63 00 74 	addi    r3,r3,116                              
}                                                                     
ffc10590:	38 21 00 10 	addi    r1,r1,16                               
  rtems_bdbuf_discard_buffer (bd);                                    
                                                                      
  if (bd->waiters)                                                    
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
  else                                                                
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
ffc10594:	4b ff f8 e8 	b       ffc0fe7c <rtems_bdbuf_wake>            
                                                                      

ffc11628 <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) {
ffc11628:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc1162c:	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) +                  
ffc11630:	54 a9 20 36 	rlwinm  r9,r5,4,0,27                           
ffc11634:	81 41 00 00 	lwz     r10,0(r1)                              
ffc11638:	21 29 ff d0 	subfic  r9,r9,-48                              
                                                                      
static rtems_status_code                                              
rtems_bdbuf_execute_read_request (rtems_disk_device  *dd,             
                                  rtems_bdbuf_buffer *bd,             
                                  uint32_t            transfer_count) 
{                                                                     
ffc1163c:	90 01 00 34 	stw     r0,52(r1)                              
ffc11640:	92 e1 00 0c 	stw     r23,12(r1)                             
ffc11644:	93 01 00 10 	stw     r24,16(r1)                             
ffc11648:	93 21 00 14 	stw     r25,20(r1)                             
ffc1164c:	93 41 00 18 	stw     r26,24(r1)                             
ffc11650:	7c ba 2b 78 	mr      r26,r5                                 
ffc11654:	93 61 00 1c 	stw     r27,28(r1)                             
ffc11658:	7c 7b 1b 78 	mr      r27,r3                                 
ffc1165c:	93 81 00 20 	stw     r28,32(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;                                   
ffc11660:	3b 80 00 00 	li      r28,0                                  
                                                                      
static rtems_status_code                                              
rtems_bdbuf_execute_read_request (rtems_disk_device  *dd,             
                                  rtems_bdbuf_buffer *bd,             
                                  uint32_t            transfer_count) 
{                                                                     
ffc11664:	93 a1 00 24 	stw     r29,36(r1)                             
ffc11668:	93 c1 00 28 	stw     r30,40(r1)                             
ffc1166c:	7c 9e 23 78 	mr      r30,r4                                 
ffc11670:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc11674:	7c 3f 0b 78 	mr      r31,r1                                 
ffc11678:	92 c1 00 08 	stw     r22,8(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) +                  
ffc1167c:	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;                              
ffc11680:	3d 20 ff c1 	lis     r9,-63                                 
ffc11684:	39 29 17 7c 	addi    r9,r9,6012                             
  /*                                                                  
   * 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) +                  
ffc11688:	3b 01 00 17 	addi    r24,r1,23                              
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;                          
ffc1168c:	83 a4 00 18 	lwz     r29,24(r4)                             
  /*                                                                  
   * 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) +                  
ffc11690:	57 18 00 36 	rlwinm  r24,r24,0,0,27                         
                                  uint32_t            transfer_count) 
{                                                                     
  rtems_blkdev_request *req = NULL;                                   
  rtems_blkdev_bnum media_block = bd->block;                          
  uint32_t media_blocks_per_block = dd->media_blocks_per_block;       
  uint32_t block_size = dd->block_size;                               
ffc11694:	83 23 00 24 	lwz     r25,36(r3)                             
                                  rtems_bdbuf_buffer *bd,             
                                  uint32_t            transfer_count) 
{                                                                     
  rtems_blkdev_request *req = NULL;                                   
  rtems_blkdev_bnum media_block = bd->block;                          
  uint32_t media_blocks_per_block = dd->media_blocks_per_block;       
ffc11698:	82 e3 00 2c 	lwz     r23,44(r3)                             
                                                                      
  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;                              
ffc1169c:	91 38 00 04 	stw     r9,4(r24)                              
#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;                                   
ffc116a0:	93 98 00 00 	stw     r28,0(r24)                             
  req->done = rtems_bdbuf_transfer_done;                              
  req->io_task = rtems_task_self ();                                  
ffc116a4:	48 00 3f 09 	bl      ffc155ac <rtems_task_self>             
  req->bufs [0].buffer = bd->buffer;                                  
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_users ("read", bd);                              
                                                                      
  while (transfer_index < transfer_count)                             
ffc116a8:	2b 9a 00 01 	cmplwi  cr7,r26,1                              
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);             
                                                                      
  req->bufs [0].user   = bd;                                          
  req->bufs [0].block  = media_block;                                 
  req->bufs [0].length = block_size;                                  
  req->bufs [0].buffer = bd->buffer;                                  
ffc116ac:	81 3e 00 1c 	lwz     r9,28(r30)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc116b0:	39 40 00 09 	li      r10,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;                              
  req->io_task = rtems_task_self ();                                  
ffc116b4:	90 78 00 14 	stw     r3,20(r24)                             
  req->bufnum = 0;                                                    
ffc116b8:	93 98 00 10 	stw     r28,16(r24)                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc116bc:	91 5e 00 20 	stw     r10,32(r30)                            
  req->io_task = rtems_task_self ();                                  
  req->bufnum = 0;                                                    
                                                                      
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);             
                                                                      
  req->bufs [0].user   = bd;                                          
ffc116c0:	93 d8 00 24 	stw     r30,36(r24)                            
  req->bufs [0].block  = media_block;                                 
ffc116c4:	93 b8 00 18 	stw     r29,24(r24)                            
  req->bufs [0].length = block_size;                                  
ffc116c8:	93 38 00 1c 	stw     r25,28(r24)                            
  req->bufs [0].buffer = bd->buffer;                                  
ffc116cc:	91 38 00 20 	stw     r9,32(r24)                             
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_users ("read", bd);                              
                                                                      
  while (transfer_index < transfer_count)                             
ffc116d0:	40 9d 00 a4 	ble-    cr7,ffc11774 <rtems_bdbuf_execute_read_request+0x14c>
ffc116d4:	7f 1e c3 78 	mr      r30,r24                                
{                                                                     
  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;                                        
ffc116d8:	3b 80 00 01 	li      r28,1                                  
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc116dc:	3a c0 00 09 	li      r22,9                                  
ffc116e0:	48 00 00 2c 	b       ffc1170c <rtems_bdbuf_execute_read_request+0xe4>
    req->bufs [transfer_index].buffer = bd->buffer;                   
                                                                      
    if (rtems_bdbuf_tracer)                                           
      rtems_bdbuf_show_users ("read", bd);                            
                                                                      
    ++transfer_index;                                                 
ffc116e4:	3b 9c 00 01 	addi    r28,r28,1                              
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc116e8:	92 c3 00 20 	stw     r22,32(r3)                             
  req->bufs [0].buffer = bd->buffer;                                  
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_users ("read", bd);                              
                                                                      
  while (transfer_index < transfer_count)                             
ffc116ec:	7f 9c d0 00 	cmpw    cr7,r28,r26                            
    if (bd == NULL)                                                   
      break;                                                          
                                                                      
    rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);           
                                                                      
    req->bufs [transfer_index].user   = bd;                           
ffc116f0:	90 7e 00 34 	stw     r3,52(r30)                             
    req->bufs [transfer_index].block  = media_block;                  
ffc116f4:	93 be 00 28 	stw     r29,40(r30)                            
    req->bufs [transfer_index].length = block_size;                   
ffc116f8:	93 3e 00 2c 	stw     r25,44(r30)                            
    req->bufs [transfer_index].buffer = bd->buffer;                   
ffc116fc:	81 23 00 1c 	lwz     r9,28(r3)                              
ffc11700:	91 3e 00 30 	stw     r9,48(r30)                             
ffc11704:	3b de 00 10 	addi    r30,r30,16                             
  req->bufs [0].buffer = bd->buffer;                                  
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_users ("read", bd);                              
                                                                      
  while (transfer_index < transfer_count)                             
ffc11708:	41 9e 00 1c 	beq-    cr7,ffc11724 <rtems_bdbuf_execute_read_request+0xfc>
  {                                                                   
    media_block += media_blocks_per_block;                            
ffc1170c:	7f bd ba 14 	add     r29,r29,r23                            
                                                                      
    bd = rtems_bdbuf_get_buffer_for_read_ahead (dd, media_block);     
ffc11710:	7f 63 db 78 	mr      r3,r27                                 
ffc11714:	7f a4 eb 78 	mr      r4,r29                                 
ffc11718:	4b ff f3 11 	bl      ffc10a28 <rtems_bdbuf_get_buffer_for_read_ahead>
                                                                      
    if (bd == NULL)                                                   
ffc1171c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc11720:	40 82 ff c4 	bne+    ffc116e4 <rtems_bdbuf_execute_read_request+0xbc><== ALWAYS TAKEN
      rtems_bdbuf_show_users ("read", bd);                            
                                                                      
    ++transfer_index;                                                 
  }                                                                   
                                                                      
  req->bufnum = transfer_index;                                       
ffc11724:	93 98 00 10 	stw     r28,16(r24)                            
                                                                      
  return rtems_bdbuf_execute_transfer_request (dd, req, true);        
ffc11728:	7f 63 db 78 	mr      r3,r27                                 
ffc1172c:	7f 04 c3 78 	mr      r4,r24                                 
ffc11730:	38 a0 00 01 	li      r5,1                                   
ffc11734:	4b ff f6 35 	bl      ffc10d68 <rtems_bdbuf_execute_transfer_request>
}                                                                     
ffc11738:	39 7f 00 30 	addi    r11,r31,48                             
ffc1173c:	80 0b 00 04 	lwz     r0,4(r11)                              
ffc11740:	82 cb ff d8 	lwz     r22,-40(r11)                           
ffc11744:	7c 08 03 a6 	mtlr    r0                                     
ffc11748:	82 eb ff dc 	lwz     r23,-36(r11)                           
ffc1174c:	83 0b ff e0 	lwz     r24,-32(r11)                           
ffc11750:	83 2b ff e4 	lwz     r25,-28(r11)                           
ffc11754:	83 4b ff e8 	lwz     r26,-24(r11)                           
ffc11758:	83 6b ff ec 	lwz     r27,-20(r11)                           
ffc1175c:	83 8b ff f0 	lwz     r28,-16(r11)                           
ffc11760:	83 ab ff f4 	lwz     r29,-12(r11)                           
ffc11764:	83 cb ff f8 	lwz     r30,-8(r11)                            
ffc11768:	83 eb ff fc 	lwz     r31,-4(r11)                            
ffc1176c:	7d 61 5b 78 	mr      r1,r11                                 
ffc11770:	4e 80 00 20 	blr                                            
{                                                                     
  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;                                        
ffc11774:	3b 80 00 01 	li      r28,1                                  
ffc11778:	4b ff ff ac 	b       ffc11724 <rtems_bdbuf_execute_read_request+0xfc>
                                                                      

ffc10d68 <rtems_bdbuf_execute_transfer_request>: static rtems_status_code rtems_bdbuf_execute_transfer_request (rtems_disk_device *dd, rtems_blkdev_request *req, bool cache_locked) {
ffc10d68:	7d 80 00 26 	mfcr    r12                                    
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  uint32_t transfer_index = 0;                                        
  bool wake_transfer_waiters = false;                                 
  bool wake_buffer_waiters = false;                                   
                                                                      
  if (cache_locked)                                                   
ffc10d6c:	2d 85 00 00 	cmpwi   cr3,r5,0                               
                                                                      
static rtems_status_code                                              
rtems_bdbuf_execute_transfer_request (rtems_disk_device    *dd,       
                                      rtems_blkdev_request *req,      
                                      bool                  cache_locked)
{                                                                     
ffc10d70:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc10d74:	7c 08 02 a6 	mflr    r0                                     
ffc10d78:	93 c1 00 28 	stw     r30,40(r1)                             
ffc10d7c:	7c 9e 23 78 	mr      r30,r4                                 
ffc10d80:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc10d84:	7c 7f 1b 78 	mr      r31,r3                                 
ffc10d88:	90 01 00 34 	stw     r0,52(r1)                              
ffc10d8c:	92 e1 00 0c 	stw     r23,12(r1)                             
ffc10d90:	93 01 00 10 	stw     r24,16(r1)                             
ffc10d94:	93 21 00 14 	stw     r25,20(r1)                             
ffc10d98:	93 41 00 18 	stw     r26,24(r1)                             
ffc10d9c:	93 61 00 1c 	stw     r27,28(r1)                             
ffc10da0:	93 81 00 20 	stw     r28,32(r1)                             
ffc10da4:	93 a1 00 24 	stw     r29,36(r1)                             
ffc10da8:	91 81 00 08 	stw     r12,8(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  uint32_t transfer_index = 0;                                        
  bool wake_transfer_waiters = false;                                 
  bool wake_buffer_waiters = false;                                   
                                                                      
  if (cache_locked)                                                   
ffc10dac:	40 8e 01 dc 	bne-    cr3,ffc10f88 <rtems_bdbuf_execute_transfer_request+0x220>
    rtems_bdbuf_unlock_cache ();                                      
                                                                      
  /* The return value will be ignored for transfer requests */        
  dd->ioctl (dd->phys_dev, RTEMS_BLKIO_REQUEST, req);                 
ffc10db0:	81 3f 00 38 	lwz     r9,56(r31)                             
ffc10db4:	3c 80 c0 18 	lis     r4,-16360                              
ffc10db8:	60 84 42 01 	ori     r4,r4,16897                            
ffc10dbc:	80 7f 00 08 	lwz     r3,8(r31)                              
ffc10dc0:	7d 29 03 a6 	mtctr   r9                                     
ffc10dc4:	7f c5 f3 78 	mr      r5,r30                                 
ffc10dc8:	4e 80 04 21 	bctrl                                          
                                                                      
  /* Wait for transfer request completion */                          
  rtems_bdbuf_wait_for_transient_event ();                            
ffc10dcc:	4b ff ff 5d 	bl      ffc10d28 <rtems_bdbuf_wait_for_transient_event>
  sc = req->status;                                                   
ffc10dd0:	83 9e 00 0c 	lwz     r28,12(r30)                            
                                                                      
  rtems_bdbuf_lock_cache ();                                          
ffc10dd4:	4b ff ed 55 	bl      ffc0fb28 <rtems_bdbuf_lock_cache>      
                                                                      
  /* Statistics */                                                    
  if (req->req == RTEMS_BLKDEV_REQ_READ)                              
ffc10dd8:	81 3e 00 00 	lwz     r9,0(r30)                              
  {                                                                   
    dd->stats.read_blocks += req->bufnum;                             
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc10ddc:	2e 1c 00 00 	cmpwi   cr4,r28,0                              
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  /* Statistics */                                                    
  if (req->req == RTEMS_BLKDEV_REQ_READ)                              
  {                                                                   
    dd->stats.read_blocks += req->bufnum;                             
ffc10de0:	81 1e 00 10 	lwz     r8,16(r30)                             
  sc = req->status;                                                   
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  /* Statistics */                                                    
  if (req->req == RTEMS_BLKDEV_REQ_READ)                              
ffc10de4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10de8:	40 9e 01 30 	bne-    cr7,ffc10f18 <rtems_bdbuf_execute_transfer_request+0x1b0>
  {                                                                   
    dd->stats.read_blocks += req->bufnum;                             
ffc10dec:	81 3f 00 50 	lwz     r9,80(r31)                             
ffc10df0:	7d 29 42 14 	add     r9,r9,r8                               
ffc10df4:	91 3f 00 50 	stw     r9,80(r31)                             
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc10df8:	40 92 01 6c 	bne-    cr4,ffc10f64 <rtems_bdbuf_execute_transfer_request+0x1fc>
    ++dd->stats.write_transfers;                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      ++dd->stats.write_errors;                                       
  }                                                                   
                                                                      
  for (transfer_index = 0; transfer_index < req->bufnum; ++transfer_index)
ffc10dfc:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc10e00:	3b e0 00 01 	li      r31,1                                  
ffc10e04:	3b 00 00 00 	li      r24,0                                  
ffc10e08:	3a e0 00 00 	li      r23,0                                  
ffc10e0c:	41 9e 00 b8 	beq-    cr7,ffc10ec4 <rtems_bdbuf_execute_transfer_request+0x15c><== NEVER TAKEN
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc10e10:	3f a0 00 00 	lis     r29,0                                  
ffc10e14:	3b bd 2a 00 	addi    r29,r29,10752                          
  {                                                                   
    rtems_bdbuf_buffer *bd = req->bufs [transfer_index].user;         
    bool waiters = bd->waiters;                                       
                                                                      
    if (waiters)                                                      
      wake_transfer_waiters = true;                                   
ffc10e18:	3b 20 00 01 	li      r25,1                                  
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc10e1c:	3b 40 00 02 	li      r26,2                                  
                                                                      
  the_node->next = tail;                                              
ffc10e20:	3b 7d 00 44 	addi    r27,r29,68                             
ffc10e24:	48 00 00 48 	b       ffc10e6c <rtems_bdbuf_execute_transfer_request+0x104>
  {                                                                   
    rtems_bdbuf_buffer *bd = req->bufs [transfer_index].user;         
    bool waiters = bd->waiters;                                       
                                                                      
    if (waiters)                                                      
      wake_transfer_waiters = true;                                   
ffc10e28:	3a e0 00 01 	li      r23,1                                  
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 ();                                        
}                                                                     
ffc10e2c:	81 23 00 28 	lwz     r9,40(r3)                              
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)                    
{                                                                     
  --bd->group->users;                                                 
ffc10e30:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc10e34:	39 4a ff ff 	addi    r10,r10,-1                             
ffc10e38:	91 49 00 0c 	stw     r10,12(r9)                             
    else                                                              
      wake_buffer_waiters = true;                                     
                                                                      
    rtems_bdbuf_group_release (bd);                                   
                                                                      
    if (sc == RTEMS_SUCCESSFUL && bd->state == RTEMS_BDBUF_STATE_TRANSFER)
ffc10e3c:	40 92 00 10 	bne-    cr4,ffc10e4c <rtems_bdbuf_execute_transfer_request+0xe4>
ffc10e40:	81 23 00 20 	lwz     r9,32(r3)                              
ffc10e44:	2f 09 00 09 	cmpwi   cr6,r9,9                               
ffc10e48:	41 9a 00 44 	beq-    cr6,ffc10e8c <rtems_bdbuf_execute_transfer_request+0x124>
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc10e4c:	93 23 00 20 	stw     r25,32(r3)                             
static void                                                           
rtems_bdbuf_discard_buffer (rtems_bdbuf_buffer *bd)                   
{                                                                     
  rtems_bdbuf_make_empty (bd);                                        
                                                                      
  if (bd->waiters == 0)                                               
ffc10e50:	40 be 00 0c 	bne+    cr7,ffc10e5c <rtems_bdbuf_execute_transfer_request+0xf4>
ffc10e54:	4b ff f6 69 	bl      ffc104bc <rtems_bdbuf_discard_buffer.part.9>
ffc10e58:	81 1e 00 10 	lwz     r8,16(r30)                             
    ++dd->stats.write_transfers;                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      ++dd->stats.write_errors;                                       
  }                                                                   
                                                                      
  for (transfer_index = 0; transfer_index < req->bufnum; ++transfer_index)
ffc10e5c:	7f 88 f8 40 	cmplw   cr7,r8,r31                             
ffc10e60:	39 3f 00 01 	addi    r9,r31,1                               
ffc10e64:	7d 3f 4b 78 	mr      r31,r9                                 
ffc10e68:	40 9d 00 4c 	ble-    cr7,ffc10eb4 <rtems_bdbuf_execute_transfer_request+0x14c><== ALWAYS TAKEN
                                                                      
  rtems_event_transient_send (req->io_task);                          
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_execute_transfer_request (rtems_disk_device    *dd,       
ffc10e6c:	57 e9 20 36 	rlwinm  r9,r31,4,0,27                          
ffc10e70:	7d 3e 4a 14 	add     r9,r30,r9                              
      ++dd->stats.write_errors;                                       
  }                                                                   
                                                                      
  for (transfer_index = 0; transfer_index < req->bufnum; ++transfer_index)
  {                                                                   
    rtems_bdbuf_buffer *bd = req->bufs [transfer_index].user;         
ffc10e74:	80 69 00 14 	lwz     r3,20(r9)                              
    bool waiters = bd->waiters;                                       
ffc10e78:	81 23 00 24 	lwz     r9,36(r3)                              
                                                                      
    if (waiters)                                                      
ffc10e7c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10e80:	40 be ff a8 	bne-    cr7,ffc10e28 <rtems_bdbuf_execute_transfer_request+0xc0>
      wake_transfer_waiters = true;                                   
    else                                                              
      wake_buffer_waiters = true;                                     
ffc10e84:	3b 00 00 01 	li      r24,1                                  
ffc10e88:	4b ff ff a4 	b       ffc10e2c <rtems_bdbuf_execute_transfer_request+0xc4>
    ++dd->stats.write_transfers;                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      ++dd->stats.write_errors;                                       
  }                                                                   
                                                                      
  for (transfer_index = 0; transfer_index < req->bufnum; ++transfer_index)
ffc10e8c:	7f 88 f8 40 	cmplw   cr7,r8,r31                             
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc10e90:	81 3d 00 48 	lwz     r9,72(r29)                             
                                                                      
  the_node->next = tail;                                              
ffc10e94:	93 63 00 00 	stw     r27,0(r3)                              
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc10e98:	93 43 00 20 	stw     r26,32(r3)                             
  tail->previous = the_node;                                          
ffc10e9c:	90 7d 00 48 	stw     r3,72(r29)                             
  old_last->next = the_node;                                          
ffc10ea0:	90 69 00 00 	stw     r3,0(r9)                               
  the_node->previous = old_last;                                      
ffc10ea4:	91 23 00 04 	stw     r9,4(r3)                               
ffc10ea8:	39 3f 00 01 	addi    r9,r31,1                               
    ++dd->stats.write_transfers;                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      ++dd->stats.write_errors;                                       
  }                                                                   
                                                                      
  for (transfer_index = 0; transfer_index < req->bufnum; ++transfer_index)
ffc10eac:	7d 3f 4b 78 	mr      r31,r9                                 
ffc10eb0:	41 9d ff bc 	bgt+    cr7,ffc10e6c <rtems_bdbuf_execute_transfer_request+0x104>
                                                                      
    if (rtems_bdbuf_tracer)                                           
      rtems_bdbuf_show_users ("transfer", bd);                        
  }                                                                   
                                                                      
  if (wake_transfer_waiters)                                          
ffc10eb4:	2f 97 00 00 	cmpwi   cr7,r23,0                              
ffc10eb8:	40 9e 00 bc 	bne-    cr7,ffc10f74 <rtems_bdbuf_execute_transfer_request+0x20c>
    rtems_bdbuf_wake (&bdbuf_cache.transfer_waiters);                 
                                                                      
  if (wake_buffer_waiters)                                            
ffc10ebc:	2f 98 00 00 	cmpwi   cr7,r24,0                              
ffc10ec0:	40 9e 00 8c 	bne-    cr7,ffc10f4c <rtems_bdbuf_execute_transfer_request+0x1e4>
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
                                                                      
  if (!cache_locked)                                                  
ffc10ec4:	41 8e 00 80 	beq-    cr3,ffc10f44 <rtems_bdbuf_execute_transfer_request+0x1dc>
    rtems_bdbuf_unlock_cache ();                                      
                                                                      
  if (sc == RTEMS_SUCCESSFUL || sc == RTEMS_UNSATISFIED)              
ffc10ec8:	41 92 00 10 	beq-    cr4,ffc10ed8 <rtems_bdbuf_execute_transfer_request+0x170>
ffc10ecc:	2f 9c 00 0d 	cmpwi   cr7,r28,13                             
ffc10ed0:	41 9e 00 08 	beq-    cr7,ffc10ed8 <rtems_bdbuf_execute_transfer_request+0x170>
    return sc;                                                        
  else                                                                
    return RTEMS_IO_ERROR;                                            
ffc10ed4:	3b 80 00 1b 	li      r28,27                                 
}                                                                     
ffc10ed8:	80 01 00 34 	lwz     r0,52(r1)                              
ffc10edc:	7f 83 e3 78 	mr      r3,r28                                 
ffc10ee0:	81 81 00 08 	lwz     r12,8(r1)                              
ffc10ee4:	7c 08 03 a6 	mtlr    r0                                     
ffc10ee8:	82 e1 00 0c 	lwz     r23,12(r1)                             
ffc10eec:	83 01 00 10 	lwz     r24,16(r1)                             
ffc10ef0:	7d 81 81 20 	mtcrf   24,r12                                 
ffc10ef4:	83 21 00 14 	lwz     r25,20(r1)                             
ffc10ef8:	83 41 00 18 	lwz     r26,24(r1)                             
ffc10efc:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc10f00:	83 81 00 20 	lwz     r28,32(r1)                             
ffc10f04:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc10f08:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc10f0c:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc10f10:	38 21 00 30 	addi    r1,r1,48                               
ffc10f14:	4e 80 00 20 	blr                                            
    if (sc != RTEMS_SUCCESSFUL)                                       
      ++dd->stats.read_errors;                                        
  }                                                                   
  else                                                                
  {                                                                   
    dd->stats.write_blocks += req->bufnum;                            
ffc10f18:	81 5f 00 5c 	lwz     r10,92(r31)                            
    ++dd->stats.write_transfers;                                      
ffc10f1c:	81 3f 00 58 	lwz     r9,88(r31)                             
    if (sc != RTEMS_SUCCESSFUL)                                       
      ++dd->stats.read_errors;                                        
  }                                                                   
  else                                                                
  {                                                                   
    dd->stats.write_blocks += req->bufnum;                            
ffc10f20:	7d 4a 42 14 	add     r10,r10,r8                             
    ++dd->stats.write_transfers;                                      
ffc10f24:	39 29 00 01 	addi    r9,r9,1                                
    if (sc != RTEMS_SUCCESSFUL)                                       
      ++dd->stats.read_errors;                                        
  }                                                                   
  else                                                                
  {                                                                   
    dd->stats.write_blocks += req->bufnum;                            
ffc10f28:	91 5f 00 5c 	stw     r10,92(r31)                            
    ++dd->stats.write_transfers;                                      
ffc10f2c:	91 3f 00 58 	stw     r9,88(r31)                             
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc10f30:	41 b2 fe cc 	beq-    cr4,ffc10dfc <rtems_bdbuf_execute_transfer_request+0x94>
      ++dd->stats.write_errors;                                       
ffc10f34:	81 3f 00 60 	lwz     r9,96(r31)                             
ffc10f38:	39 29 00 01 	addi    r9,r9,1                                
ffc10f3c:	91 3f 00 60 	stw     r9,96(r31)                             
ffc10f40:	4b ff fe bc 	b       ffc10dfc <rtems_bdbuf_execute_transfer_request+0x94>
                                                                      
  if (wake_buffer_waiters)                                            
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
                                                                      
  if (!cache_locked)                                                  
    rtems_bdbuf_unlock_cache ();                                      
ffc10f44:	4b ff ec 49 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    
ffc10f48:	4b ff ff 80 	b       ffc10ec8 <rtems_bdbuf_execute_transfer_request+0x160>
                                                                      
  if (wake_transfer_waiters)                                          
    rtems_bdbuf_wake (&bdbuf_cache.transfer_waiters);                 
                                                                      
  if (wake_buffer_waiters)                                            
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
ffc10f4c:	3c 60 00 00 	lis     r3,0                                   
ffc10f50:	38 63 2a 00 	addi    r3,r3,10752                            
ffc10f54:	38 63 00 74 	addi    r3,r3,116                              
ffc10f58:	4b ff ef 25 	bl      ffc0fe7c <rtems_bdbuf_wake>            
                                                                      
  if (!cache_locked)                                                  
ffc10f5c:	40 8e ff 6c 	bne+    cr3,ffc10ec8 <rtems_bdbuf_execute_transfer_request+0x160>
ffc10f60:	4b ff ff e4 	b       ffc10f44 <rtems_bdbuf_execute_transfer_request+0x1dc>
  /* Statistics */                                                    
  if (req->req == RTEMS_BLKDEV_REQ_READ)                              
  {                                                                   
    dd->stats.read_blocks += req->bufnum;                             
    if (sc != RTEMS_SUCCESSFUL)                                       
      ++dd->stats.read_errors;                                        
ffc10f64:	81 3f 00 54 	lwz     r9,84(r31)                             
ffc10f68:	39 29 00 01 	addi    r9,r9,1                                
ffc10f6c:	91 3f 00 54 	stw     r9,84(r31)                             
ffc10f70:	4b ff fe 8c 	b       ffc10dfc <rtems_bdbuf_execute_transfer_request+0x94>
    if (rtems_bdbuf_tracer)                                           
      rtems_bdbuf_show_users ("transfer", bd);                        
  }                                                                   
                                                                      
  if (wake_transfer_waiters)                                          
    rtems_bdbuf_wake (&bdbuf_cache.transfer_waiters);                 
ffc10f74:	3c 60 00 00 	lis     r3,0                                   
ffc10f78:	38 63 2a 00 	addi    r3,r3,10752                            
ffc10f7c:	38 63 00 6c 	addi    r3,r3,108                              
ffc10f80:	4b ff ee fd 	bl      ffc0fe7c <rtems_bdbuf_wake>            
ffc10f84:	4b ff ff 38 	b       ffc10ebc <rtems_bdbuf_execute_transfer_request+0x154>
  uint32_t transfer_index = 0;                                        
  bool wake_transfer_waiters = false;                                 
  bool wake_buffer_waiters = false;                                   
                                                                      
  if (cache_locked)                                                   
    rtems_bdbuf_unlock_cache ();                                      
ffc10f88:	4b ff ec 05 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    
ffc10f8c:	4b ff fe 24 	b       ffc10db0 <rtems_bdbuf_execute_transfer_request+0x48>
                                                                      

ffc0facc <rtems_bdbuf_fatal>: #define RTEMS_BDBUF_AVL_MAX_HEIGHT (32) #endif static void rtems_bdbuf_fatal (rtems_fatal_code error) {
ffc0facc:	94 21 ff f8 	stwu    r1,-8(r1)                              <== NOT EXECUTED
ffc0fad0:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc0fad4:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
  rtems_fatal (RTEMS_FATAL_SOURCE_BDBUF, error);                      
ffc0fad8:	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)                            
{                                                                     
ffc0fadc:	90 01 00 0c 	stw     r0,12(r1)                              <== NOT EXECUTED
  rtems_fatal (RTEMS_FATAL_SOURCE_BDBUF, error);                      
ffc0fae0:	4b ff bd 0d 	bl      ffc0b7ec <rtems_fatal>                 <== NOT EXECUTED
                                                                      

ffc0fb38 <rtems_bdbuf_fatal_with_state>: } static void rtems_bdbuf_fatal_with_state (rtems_bdbuf_buf_state state, rtems_bdbuf_fatal_code error) {
ffc0fb38:	94 21 ff f8 	stwu    r1,-8(r1)                              <== NOT EXECUTED
ffc0fb3c:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
  rtems_bdbuf_fatal ((((uint32_t) state) << 16) | error);             
ffc0fb40:	54 63 80 1e 	rlwinm  r3,r3,16,0,15                          <== NOT EXECUTED
ffc0fb44:	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)           
{                                                                     
ffc0fb48:	90 01 00 0c 	stw     r0,12(r1)                              <== NOT EXECUTED
  rtems_bdbuf_fatal ((((uint32_t) state) << 16) | error);             
ffc0fb4c:	4b ff ff 81 	bl      ffc0facc <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                                                      

ffc11d40 <rtems_bdbuf_get>: rtems_status_code rtems_bdbuf_get (rtems_disk_device *dd, rtems_blkdev_bnum block, rtems_bdbuf_buffer **bd_ptr) {
ffc11d40:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc11d44:	7c 08 02 a6 	mflr    r0                                     
ffc11d48:	93 e1 00 14 	stw     r31,20(r1)                             
ffc11d4c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc11d50:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc11d54:	7c bd 2b 78 	mr      r29,r5                                 
ffc11d58:	93 c1 00 10 	stw     r30,16(r1)                             
ffc11d5c:	7c 9e 23 78 	mr      r30,r4                                 
ffc11d60:	90 01 00 1c 	stw     r0,28(r1)                              
  rtems_status_code   sc = RTEMS_SUCCESSFUL;                          
  rtems_bdbuf_buffer *bd = NULL;                                      
  rtems_blkdev_bnum   media_block;                                    
                                                                      
  rtems_bdbuf_lock_cache ();                                          
ffc11d64:	4b ff dd c5 	bl      ffc0fb28 <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)                                        
ffc11d68:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc11d6c:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc11d70:	41 9c 00 34 	blt-    cr7,ffc11da4 <rtems_bdbuf_get+0x64>    <== ALWAYS TAKEN
      rtems_bdbuf_show_users ("get", bd);                             
      rtems_bdbuf_show_usage ();                                      
    }                                                                 
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc11d74:	4b ff de 19 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    <== NOT EXECUTED
                                                                      
  *bd_ptr = bd;                                                       
                                                                      
  return sc;                                                          
}                                                                     
ffc11d78:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
     */                                                               
    *media_block_ptr = rtems_bdbuf_media_block (dd, block) + dd->start;
  }                                                                   
  else                                                                
  {                                                                   
    sc = RTEMS_INVALID_ID;                                            
ffc11d7c:	3b c0 00 04 	li      r30,4                                  <== NOT EXECUTED
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  *bd_ptr = bd;                                                       
                                                                      
  return sc;                                                          
}                                                                     
ffc11d80:	7c 08 03 a6 	mtlr    r0                                     <== 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;                                      
ffc11d84:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  *bd_ptr = bd;                                                       
ffc11d88:	93 fd 00 00 	stw     r31,0(r29)                             <== NOT EXECUTED
                                                                      
  return sc;                                                          
}                                                                     
ffc11d8c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc11d90:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc11d94:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc11d98:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc11d9c:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc11da0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
}                                                                     
                                                                      
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)                            
ffc11da4:	80 9f 00 30 	lwz     r4,48(r31)                             
ffc11da8:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc11dac:	41 9c 00 dc 	blt-    cr7,ffc11e88 <rtems_bdbuf_get+0x148>   <== NEVER TAKEN
    return block << dd->block_to_media_block_shift;                   
ffc11db0:	7f c4 20 30 	slw     r4,r30,r4                              
    /*                                                                
     * 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;
ffc11db4:	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);         
ffc11db8:	7f e3 fb 78 	mr      r3,r31                                 
ffc11dbc:	7c 84 4a 14 	add     r4,r4,r9                               
ffc11dc0:	4b ff ec f9 	bl      ffc10ab8 <rtems_bdbuf_get_buffer_for_access>
ffc11dc4:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
    switch (bd->state)                                                
ffc11dc8:	80 63 00 20 	lwz     r3,32(r3)                              
ffc11dcc:	2f 83 00 02 	cmpwi   cr7,r3,2                               
ffc11dd0:	41 9e 00 84 	beq-    cr7,ffc11e54 <rtems_bdbuf_get+0x114>   
ffc11dd4:	2f 83 00 07 	cmpwi   cr7,r3,7                               
ffc11dd8:	41 9e 00 14 	beq-    cr7,ffc11dec <rtems_bdbuf_get+0xac>    
ffc11ddc:	2f 83 00 01 	cmpwi   cr7,r3,1                               
ffc11de0:	41 9e 00 40 	beq-    cr7,ffc11e20 <rtems_bdbuf_get+0xe0>    <== ALWAYS TAKEN
         * 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);
ffc11de4:	38 80 00 0f 	li      r4,15                                  <== NOT EXECUTED
ffc11de8:	4b ff dd 51 	bl      ffc0fb38 <rtems_bdbuf_fatal_with_state><== NOT EXECUTED
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc11dec:	39 20 00 04 	li      r9,4                                   
ffc11df0:	91 3f 00 20 	stw     r9,32(r31)                             
ffc11df4:	3b c0 00 00 	li      r30,0                                  
      rtems_bdbuf_show_users ("get", bd);                             
      rtems_bdbuf_show_usage ();                                      
    }                                                                 
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc11df8:	4b ff dd 95 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    
                                                                      
  *bd_ptr = bd;                                                       
                                                                      
  return sc;                                                          
}                                                                     
ffc11dfc:	80 01 00 1c 	lwz     r0,28(r1)                              
    }                                                                 
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  *bd_ptr = bd;                                                       
ffc11e00:	93 fd 00 00 	stw     r31,0(r29)                             
                                                                      
  return sc;                                                          
}                                                                     
ffc11e04:	7f c3 f3 78 	mr      r3,r30                                 
ffc11e08:	7c 08 03 a6 	mtlr    r0                                     
ffc11e0c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc11e10:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc11e14:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc11e18:	38 21 00 18 	addi    r1,r1,24                               
ffc11e1c:	4e 80 00 20 	blr                                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc11e20:	39 20 00 05 	li      r9,5                                   
ffc11e24:	91 3f 00 20 	stw     r9,32(r31)                             
ffc11e28:	3b c0 00 00 	li      r30,0                                  
      rtems_bdbuf_show_users ("get", bd);                             
      rtems_bdbuf_show_usage ();                                      
    }                                                                 
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc11e2c:	4b ff dd 61 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    
                                                                      
  *bd_ptr = bd;                                                       
                                                                      
  return sc;                                                          
}                                                                     
ffc11e30:	80 01 00 1c 	lwz     r0,28(r1)                              
    }                                                                 
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  *bd_ptr = bd;                                                       
ffc11e34:	93 fd 00 00 	stw     r31,0(r29)                             
                                                                      
  return sc;                                                          
}                                                                     
ffc11e38:	7f c3 f3 78 	mr      r3,r30                                 
ffc11e3c:	7c 08 03 a6 	mtlr    r0                                     
ffc11e40:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc11e44:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc11e48:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc11e4c:	38 21 00 18 	addi    r1,r1,24                               
ffc11e50:	4e 80 00 20 	blr                                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc11e54:	39 20 00 03 	li      r9,3                                   
ffc11e58:	91 3f 00 20 	stw     r9,32(r31)                             
ffc11e5c:	3b c0 00 00 	li      r30,0                                  
      rtems_bdbuf_show_users ("get", bd);                             
      rtems_bdbuf_show_usage ();                                      
    }                                                                 
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc11e60:	4b ff dd 2d 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    
                                                                      
  *bd_ptr = bd;                                                       
                                                                      
  return sc;                                                          
}                                                                     
ffc11e64:	80 01 00 1c 	lwz     r0,28(r1)                              
    }                                                                 
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  *bd_ptr = bd;                                                       
ffc11e68:	93 fd 00 00 	stw     r31,0(r29)                             
                                                                      
  return sc;                                                          
}                                                                     
ffc11e6c:	7f c3 f3 78 	mr      r3,r30                                 
ffc11e70:	7c 08 03 a6 	mtlr    r0                                     
ffc11e74:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc11e78:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc11e7c:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc11e80:	38 21 00 18 	addi    r1,r1,24                               
ffc11e84:	4e 80 00 20 	blr                                            
    /*                                                                
     * 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); 
ffc11e88:	80 7f 00 24 	lwz     r3,36(r31)                             <== NOT EXECUTED
ffc11e8c:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc11e90:	80 df 00 20 	lwz     r6,32(r31)                             <== NOT EXECUTED
ffc11e94:	7d 5e 19 d6 	mullw   r10,r30,r3                             <== NOT EXECUTED
ffc11e98:	7d 3e 18 16 	mulhwu  r9,r30,r3                              <== NOT EXECUTED
ffc11e9c:	7d 44 53 78 	mr      r4,r10                                 <== NOT EXECUTED
ffc11ea0:	7d 23 4b 78 	mr      r3,r9                                  <== NOT EXECUTED
ffc11ea4:	48 00 aa 85 	bl      ffc1c928 <__udivdi3>                   <== NOT EXECUTED
ffc11ea8:	4b ff ff 0c 	b       ffc11db4 <rtems_bdbuf_get+0x74>        <== NOT EXECUTED
                                                                      

ffc10ab8 <rtems_bdbuf_get_buffer_for_access>: static rtems_bdbuf_buffer * rtems_bdbuf_get_buffer_for_access (rtems_disk_device *dd, rtems_blkdev_bnum block) {
ffc10ab8:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc10abc:	7c 08 02 a6 	mflr    r0                                     
ffc10ac0:	93 c1 00 38 	stw     r30,56(r1)                             
ffc10ac4:	3f c0 00 00 	lis     r30,0                                  
ffc10ac8:	3b de 2a 00 	addi    r30,r30,10752                          
ffc10acc:	93 a1 00 34 	stw     r29,52(r1)                             
static bool                                                           
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)                 
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
ffc10ad0:	3f a0 ff c2 	lis     r29,-62                                
ffc10ad4:	3b bd eb 88 	addi    r29,r29,-5240                          
}                                                                     
                                                                      
static rtems_bdbuf_buffer *                                           
rtems_bdbuf_get_buffer_for_access (rtems_disk_device *dd,             
                                   rtems_blkdev_bnum  block)          
{                                                                     
ffc10ad8:	90 01 00 44 	stw     r0,68(r1)                              
ffc10adc:	93 e1 00 3c 	stw     r31,60(r1)                             
ffc10ae0:	92 41 00 08 	stw     r18,8(r1)                              
ffc10ae4:	7c 72 1b 78 	mr      r18,r3                                 
ffc10ae8:	92 61 00 0c 	stw     r19,12(r1)                             
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  do                                                                  
  {                                                                   
    bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dd, block);       
ffc10aec:	7f d3 f3 78 	mr      r19,r30                                
}                                                                     
                                                                      
static rtems_bdbuf_buffer *                                           
rtems_bdbuf_get_buffer_for_access (rtems_disk_device *dd,             
                                   rtems_blkdev_bnum  block)          
{                                                                     
ffc10af0:	92 81 00 10 	stw     r20,16(r1)                             
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail(         
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return &the_chain->Tail.Node;                                       
ffc10af4:	3a 9e 00 50 	addi    r20,r30,80                             
ffc10af8:	92 a1 00 14 	stw     r21,20(r1)                             
        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);         
ffc10afc:	3a be 00 6c 	addi    r21,r30,108                            
}                                                                     
                                                                      
static rtems_bdbuf_buffer *                                           
rtems_bdbuf_get_buffer_for_access (rtems_disk_device *dd,             
                                   rtems_blkdev_bnum  block)          
{                                                                     
ffc10b00:	92 c1 00 18 	stw     r22,24(r1)                             
        }                                                             
      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);           
ffc10b04:	3a de 00 64 	addi    r22,r30,100                            
}                                                                     
                                                                      
static rtems_bdbuf_buffer *                                           
rtems_bdbuf_get_buffer_for_access (rtems_disk_device *dd,             
                                   rtems_blkdev_bnum  block)          
{                                                                     
ffc10b08:	92 e1 00 1c 	stw     r23,28(r1)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc10b0c:	3a e0 00 08 	li      r23,8                                  
}                                                                     
                                                                      
static rtems_bdbuf_buffer *                                           
rtems_bdbuf_get_buffer_for_access (rtems_disk_device *dd,             
                                   rtems_blkdev_bnum  block)          
{                                                                     
ffc10b10:	93 01 00 20 	stw     r24,32(r1)                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
ffc10b14:	3b 1e 00 5c 	addi    r24,r30,92                             
ffc10b18:	93 21 00 24 	stw     r25,36(r1)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc10b1c:	3b 20 00 00 	li      r25,0                                  
}                                                                     
                                                                      
static rtems_bdbuf_buffer *                                           
rtems_bdbuf_get_buffer_for_access (rtems_disk_device *dd,             
                                   rtems_blkdev_bnum  block)          
{                                                                     
ffc10b20:	93 41 00 28 	stw     r26,40(r1)                             
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc10b24:	3b 5e 00 40 	addi    r26,r30,64                             
ffc10b28:	93 61 00 2c 	stw     r27,44(r1)                             
      {                                                               
        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);             
ffc10b2c:	3b 7e 00 74 	addi    r27,r30,116                            
}                                                                     
                                                                      
static rtems_bdbuf_buffer *                                           
rtems_bdbuf_get_buffer_for_access (rtems_disk_device *dd,             
                                   rtems_blkdev_bnum  block)          
{                                                                     
ffc10b30:	93 81 00 30 	stw     r28,48(r1)                             
ffc10b34:	7c 9c 23 78 	mr      r28,r4                                 
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  do                                                                  
  {                                                                   
    bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dd, block);       
ffc10b38:	80 7e 00 3c 	lwz     r3,60(r30)                             
ffc10b3c:	7e 44 93 78 	mr      r4,r18                                 
ffc10b40:	7f 85 e3 78 	mr      r5,r28                                 
ffc10b44:	4b ff f2 d9 	bl      ffc0fe1c <rtems_bdbuf_avl_search.isra.1>
                                                                      
    if (bd != NULL)                                                   
ffc10b48:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc10b4c:	41 82 00 bc 	beq-    ffc10c08 <rtems_bdbuf_get_buffer_for_access+0x150>
    {                                                                 
      if (bd->group->bds_per_group != dd->bds_per_group)              
ffc10b50:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc10b54:	81 52 00 34 	lwz     r10,52(r18)                            
ffc10b58:	81 29 00 08 	lwz     r9,8(r9)                               
ffc10b5c:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc10b60:	40 9e 00 34 	bne-    cr7,ffc10b94 <rtems_bdbuf_get_buffer_for_access+0xdc>
static void                                                           
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)                  
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
ffc10b64:	3d 20 ff c2 	lis     r9,-62                                 
        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);         
ffc10b68:	3b 9e 00 6c 	addi    r28,r30,108                            
static void                                                           
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)                  
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
ffc10b6c:	3b a9 eb b4 	addi    r29,r9,-5196                           
        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);           
ffc10b70:	3b de 00 64 	addi    r30,r30,100                            
static void                                                           
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)                  
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
ffc10b74:	80 7f 00 20 	lwz     r3,32(r31)                             
ffc10b78:	2b 83 00 0a 	cmplwi  cr7,r3,10                              
ffc10b7c:	40 9d 00 fc 	ble-    cr7,ffc10c78 <rtems_bdbuf_get_buffer_for_access+0x1c0><== ALWAYS TAKEN
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
        break;                                                        
      default:                                                        
        rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_7);
ffc10b80:	38 80 00 13 	li      r4,19                                  <== NOT EXECUTED
ffc10b84:	4b ff ef b5 	bl      ffc0fb38 <rtems_bdbuf_fatal_with_state><== NOT EXECUTED
        }                                                             
      case RTEMS_BDBUF_STATE_ACCESS_CACHED:                           
      case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                            
      case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                         
      case RTEMS_BDBUF_STATE_ACCESS_PURGED:                           
        rtems_bdbuf_wait (bd, &bdbuf_cache.access_waiters);           
ffc10b88:	7f e3 fb 78 	mr      r3,r31                                 
ffc10b8c:	7e c4 b3 78 	mr      r4,r22                                 
ffc10b90:	4b ff f1 61 	bl      ffc0fcf0 <rtems_bdbuf_wait>            
static bool                                                           
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)                 
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
ffc10b94:	80 7f 00 20 	lwz     r3,32(r31)                             
ffc10b98:	2b 83 00 0a 	cmplwi  cr7,r3,10                              
ffc10b9c:	40 9d 00 0c 	ble-    cr7,ffc10ba8 <rtems_bdbuf_get_buffer_for_access+0xf0><== ALWAYS TAKEN
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
        break;                                                        
      default:                                                        
        rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_8);
ffc10ba0:	38 80 00 14 	li      r4,20                                  <== NOT EXECUTED
ffc10ba4:	4b ff ef 95 	bl      ffc0fb38 <rtems_bdbuf_fatal_with_state><== NOT EXECUTED
static bool                                                           
rtems_bdbuf_wait_for_recycle (rtems_bdbuf_buffer *bd)                 
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
ffc10ba8:	54 69 10 3a 	rlwinm  r9,r3,2,0,29                           
ffc10bac:	7d 3d 48 2e 	lwzx    r9,r29,r9                              
ffc10bb0:	7d 29 ea 14 	add     r9,r9,r29                              
ffc10bb4:	7d 29 03 a6 	mtctr   r9                                     
ffc10bb8:	4e 80 04 20 	bctr                                           
      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)                                         
ffc10bbc:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc10bc0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc10bc4:	40 9e 00 68 	bne-    cr7,ffc10c2c <rtems_bdbuf_get_buffer_for_access+0x174><== ALWAYS TAKEN
    {                                                                 
      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);             
ffc10bc8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc10bcc:	4b ff f9 cd 	bl      ffc10598 <rtems_bdbuf_remove_from_tree_and_lru_list><== NOT EXECUTED
  before_node           = after_node->next;                           
ffc10bd0:	81 3e 00 40 	lwz     r9,64(r30)                             <== NOT EXECUTED
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc10bd4:	93 5f 00 04 	stw     r26,4(r31)                             <== NOT EXECUTED
          rtems_bdbuf_make_free_and_add_to_lru_list (bd);             
          rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);             
ffc10bd8:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc10bdc:	93 3f 00 20 	stw     r25,32(r31)                            <== NOT EXECUTED
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
ffc10be0:	93 fe 00 40 	stw     r31,64(r30)                            <== NOT EXECUTED
  the_node->next        = before_node;                                
  before_node->previous = the_node;                                   
ffc10be4:	93 e9 00 04 	stw     r31,4(r9)                              <== 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;                                
ffc10be8:	91 3f 00 00 	stw     r9,0(r31)                              <== NOT EXECUTED
      {                                                               
        if (rtems_bdbuf_wait_for_recycle (bd))                        
        {                                                             
          rtems_bdbuf_remove_from_tree_and_lru_list (bd);             
          rtems_bdbuf_make_free_and_add_to_lru_list (bd);             
          rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);             
ffc10bec:	4b ff f2 91 	bl      ffc0fe7c <rtems_bdbuf_wake>            <== NOT EXECUTED
{                                                                     
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  do                                                                  
  {                                                                   
    bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dd, block);       
ffc10bf0:	80 7e 00 3c 	lwz     r3,60(r30)                             <== NOT EXECUTED
ffc10bf4:	7e 44 93 78 	mr      r4,r18                                 <== NOT EXECUTED
ffc10bf8:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc10bfc:	4b ff f2 21 	bl      ffc0fe1c <rtems_bdbuf_avl_search.isra.1><== NOT EXECUTED
                                                                      
    if (bd != NULL)                                                   
ffc10c00:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc10c04:	40 82 ff 4c 	bne+    ffc10b50 <rtems_bdbuf_get_buffer_for_access+0x98><== NOT EXECUTED
        bd = NULL;                                                    
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      bd = rtems_bdbuf_get_buffer_from_lru_list (dd, block);          
ffc10c08:	7e 43 93 78 	mr      r3,r18                                 
ffc10c0c:	7f 84 e3 78 	mr      r4,r28                                 
ffc10c10:	4b ff f9 e5 	bl      ffc105f4 <rtems_bdbuf_get_buffer_from_lru_list>
                                                                      
      if (bd == NULL)                                                 
ffc10c14:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc10c18:	40 82 ff 4c 	bne+    ffc10b64 <rtems_bdbuf_get_buffer_for_access+0xac>
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_wait_for_buffer (void)                                    
{                                                                     
  if (!rtems_chain_is_empty (&bdbuf_cache.modified))                  
ffc10c1c:	81 33 00 4c 	lwz     r9,76(r19)                             
ffc10c20:	7f 89 a0 00 	cmpw    cr7,r9,r20                             
ffc10c24:	41 9e 00 08 	beq-    cr7,ffc10c2c <rtems_bdbuf_get_buffer_for_access+0x174>
    rtems_bdbuf_wake_swapper ();                                      
ffc10c28:	4b ff ef 75 	bl      ffc0fb9c <rtems_bdbuf_wake_swapper>    
           * 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);   
ffc10c2c:	7f 63 db 78 	mr      r3,r27                                 
ffc10c30:	4b ff f0 31 	bl      ffc0fc60 <rtems_bdbuf_anonymous_wait>  
ffc10c34:	4b ff ff 04 	b       ffc10b38 <rtems_bdbuf_get_buffer_for_access+0x80>
        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);         
ffc10c38:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc10c3c:	7e a4 ab 78 	mr      r4,r21                                 <== NOT EXECUTED
ffc10c40:	4b ff f0 b1 	bl      ffc0fcf0 <rtems_bdbuf_wait>            <== NOT EXECUTED
ffc10c44:	4b ff ff 50 	b       ffc10b94 <rtems_bdbuf_get_buffer_for_access+0xdc><== NOT EXECUTED
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc10c48:	81 3f 00 00 	lwz     r9,0(r31)                              <== NOT EXECUTED
  previous       = the_node->previous;                                
ffc10c4c:	81 1f 00 04 	lwz     r8,4(r31)                              <== NOT EXECUTED
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc10c50:	92 ff 00 20 	stw     r23,32(r31)                            <== NOT EXECUTED
  next->previous = previous;                                          
ffc10c54:	91 09 00 04 	stw     r8,4(r9)                               <== NOT EXECUTED
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc10c58:	81 5e 00 60 	lwz     r10,96(r30)                            <== NOT EXECUTED
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  next->previous = previous;                                          
  previous->next = next;                                              
ffc10c5c:	91 28 00 00 	stw     r9,0(r8)                               <== NOT EXECUTED
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
  tail->previous = the_node;                                          
ffc10c60:	93 fe 00 60 	stw     r31,96(r30)                            <== NOT EXECUTED
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
ffc10c64:	93 1f 00 00 	stw     r24,0(r31)                             <== NOT EXECUTED
  tail->previous = the_node;                                          
  old_last->next = the_node;                                          
  the_node->previous = old_last;                                      
ffc10c68:	91 5f 00 04 	stw     r10,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;                                          
ffc10c6c:	93 ea 00 00 	stw     r31,0(r10)                             <== 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 ();                                        
ffc10c70:	4b ff ef 2d 	bl      ffc0fb9c <rtems_bdbuf_wake_swapper>    <== NOT EXECUTED
ffc10c74:	4b ff ff 20 	b       ffc10b94 <rtems_bdbuf_get_buffer_for_access+0xdc><== NOT EXECUTED
static void                                                           
rtems_bdbuf_wait_for_access (rtems_bdbuf_buffer *bd)                  
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
ffc10c78:	54 69 10 3a 	rlwinm  r9,r3,2,0,29                           
ffc10c7c:	7d 3d 48 2e 	lwzx    r9,r29,r9                              
ffc10c80:	7d 29 ea 14 	add     r9,r9,r29                              
ffc10c84:	7d 29 03 a6 	mtctr   r9                                     
ffc10c88:	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 ();                                        
}                                                                     
ffc10c8c:	81 3f 00 28 	lwz     r9,40(r31)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)                    
{                                                                     
  --bd->group->users;                                                 
ffc10c90:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc10c94:	39 4a ff ff 	addi    r10,r10,-1                             
ffc10c98:	91 49 00 0c 	stw     r10,12(r9)                             
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc10c9c:	81 3f 00 00 	lwz     r9,0(r31)                              
  previous       = the_node->previous;                                
ffc10ca0:	81 5f 00 04 	lwz     r10,4(r31)                             
  next->previous = previous;                                          
ffc10ca4:	91 49 00 04 	stw     r10,4(r9)                              
  previous->next = next;                                              
ffc10ca8:	91 2a 00 00 	stw     r9,0(r10)                              
                                                                      
  rtems_bdbuf_wait_for_access (bd);                                   
  rtems_bdbuf_group_obtain (bd);                                      
                                                                      
  return bd;                                                          
}                                                                     
ffc10cac:	80 01 00 44 	lwz     r0,68(r1)                              
ffc10cb0:	7f e3 fb 78 	mr      r3,r31                                 
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 ();                                        
}                                                                     
ffc10cb4:	81 3f 00 28 	lwz     r9,40(r31)                             
                                                                      
  rtems_bdbuf_wait_for_access (bd);                                   
  rtems_bdbuf_group_obtain (bd);                                      
                                                                      
  return bd;                                                          
}                                                                     
ffc10cb8:	7c 08 03 a6 	mtlr    r0                                     
ffc10cbc:	82 41 00 08 	lwz     r18,8(r1)                              
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)                     
{                                                                     
  ++bd->group->users;                                                 
ffc10cc0:	81 49 00 0c 	lwz     r10,12(r9)                             
                                                                      
  rtems_bdbuf_wait_for_access (bd);                                   
  rtems_bdbuf_group_obtain (bd);                                      
                                                                      
  return bd;                                                          
}                                                                     
ffc10cc4:	82 61 00 0c 	lwz     r19,12(r1)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)                     
{                                                                     
  ++bd->group->users;                                                 
ffc10cc8:	39 4a 00 01 	addi    r10,r10,1                              
                                                                      
  rtems_bdbuf_wait_for_access (bd);                                   
  rtems_bdbuf_group_obtain (bd);                                      
                                                                      
  return bd;                                                          
}                                                                     
ffc10ccc:	82 81 00 10 	lwz     r20,16(r1)                             
ffc10cd0:	82 a1 00 14 	lwz     r21,20(r1)                             
ffc10cd4:	82 c1 00 18 	lwz     r22,24(r1)                             
ffc10cd8:	82 e1 00 1c 	lwz     r23,28(r1)                             
ffc10cdc:	83 01 00 20 	lwz     r24,32(r1)                             
ffc10ce0:	83 21 00 24 	lwz     r25,36(r1)                             
ffc10ce4:	83 41 00 28 	lwz     r26,40(r1)                             
ffc10ce8:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc10cec:	83 81 00 30 	lwz     r28,48(r1)                             
ffc10cf0:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc10cf4:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc10cf8:	83 e1 00 3c 	lwz     r31,60(r1)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)                     
{                                                                     
  ++bd->group->users;                                                 
ffc10cfc:	91 49 00 0c 	stw     r10,12(r9)                             
                                                                      
  rtems_bdbuf_wait_for_access (bd);                                   
  rtems_bdbuf_group_obtain (bd);                                      
                                                                      
  return bd;                                                          
}                                                                     
ffc10d00:	38 21 00 40 	addi    r1,r1,64                               
ffc10d04:	4e 80 00 20 	blr                                            
        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);         
ffc10d08:	7f e3 fb 78 	mr      r3,r31                                 
ffc10d0c:	7f 84 e3 78 	mr      r4,r28                                 
ffc10d10:	4b ff ef e1 	bl      ffc0fcf0 <rtems_bdbuf_wait>            
ffc10d14:	4b ff fe 60 	b       ffc10b74 <rtems_bdbuf_get_buffer_for_access+0xbc>
        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);           
ffc10d18:	7f e3 fb 78 	mr      r3,r31                                 
ffc10d1c:	7f c4 f3 78 	mr      r4,r30                                 
ffc10d20:	4b ff ef d1 	bl      ffc0fcf0 <rtems_bdbuf_wait>            
ffc10d24:	4b ff fe 50 	b       ffc10b74 <rtems_bdbuf_get_buffer_for_access+0xbc>
                                                                      

ffc10a28 <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) {
ffc10a28:	94 21 ff f0 	stwu    r1,-16(r1)                             
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dd, block);         
ffc10a2c:	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)      
{                                                                     
ffc10a30:	7c 08 02 a6 	mflr    r0                                     
ffc10a34:	93 c1 00 08 	stw     r30,8(r1)                              
ffc10a38:	7c 7e 1b 78 	mr      r30,r3                                 
ffc10a3c:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc10a40:	7c 9f 23 78 	mr      r31,r4                                 
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dd, block);         
ffc10a44:	7f e5 fb 78 	mr      r5,r31                                 
ffc10a48:	80 69 2a 3c 	lwz     r3,10812(r9)                           
ffc10a4c:	7f c4 f3 78 	mr      r4,r30                                 
}                                                                     
                                                                      
static rtems_bdbuf_buffer *                                           
rtems_bdbuf_get_buffer_for_read_ahead (rtems_disk_device *dd,         
                                       rtems_blkdev_bnum  block)      
{                                                                     
ffc10a50:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_bdbuf_buffer *bd = NULL;                                      
                                                                      
  bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dd, block);         
ffc10a54:	4b ff f3 c9 	bl      ffc0fe1c <rtems_bdbuf_avl_search.isra.1>
                                                                      
  if (bd == NULL)                                                     
ffc10a58:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc10a5c:	41 9e 00 20 	beq-    cr7,ffc10a7c <rtems_bdbuf_get_buffer_for_read_ahead+0x54><== ALWAYS TAKEN
  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;                                                        
ffc10a60:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
                                                                      
  return bd;                                                          
}                                                                     
ffc10a64:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
ffc10a68:	83 c1 00 08 	lwz     r30,8(r1)                              <== NOT EXECUTED
ffc10a6c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc10a70:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc10a74:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc10a78:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      
  bd = rtems_bdbuf_avl_search (&bdbuf_cache.tree, dd, block);         
                                                                      
  if (bd == NULL)                                                     
  {                                                                   
    bd = rtems_bdbuf_get_buffer_from_lru_list (dd, block);            
ffc10a7c:	7f c3 f3 78 	mr      r3,r30                                 
ffc10a80:	7f e4 fb 78 	mr      r4,r31                                 
ffc10a84:	4b ff fb 71 	bl      ffc105f4 <rtems_bdbuf_get_buffer_from_lru_list>
                                                                      
    if (bd != NULL)                                                   
ffc10a88:	2c 03 00 00 	cmpwi   r3,0                                   
ffc10a8c:	41 a2 ff d8 	beq-    ffc10a64 <rtems_bdbuf_get_buffer_for_read_ahead+0x3c><== NEVER TAKEN
     * thus no need for a read ahead.                                 
     */                                                               
    bd = NULL;                                                        
                                                                      
  return bd;                                                          
}                                                                     
ffc10a90:	80 01 00 14 	lwz     r0,20(r1)                              
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 ();                                        
}                                                                     
ffc10a94:	81 23 00 28 	lwz     r9,40(r3)                              
     * thus no need for a read ahead.                                 
     */                                                               
    bd = NULL;                                                        
                                                                      
  return bd;                                                          
}                                                                     
ffc10a98:	7c 08 03 a6 	mtlr    r0                                     
ffc10a9c:	83 c1 00 08 	lwz     r30,8(r1)                              
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)                     
{                                                                     
  ++bd->group->users;                                                 
ffc10aa0:	81 49 00 0c 	lwz     r10,12(r9)                             
     * thus no need for a read ahead.                                 
     */                                                               
    bd = NULL;                                                        
                                                                      
  return bd;                                                          
}                                                                     
ffc10aa4:	83 e1 00 0c 	lwz     r31,12(r1)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)                     
{                                                                     
  ++bd->group->users;                                                 
ffc10aa8:	39 4a 00 01 	addi    r10,r10,1                              
ffc10aac:	91 49 00 0c 	stw     r10,12(r9)                             
     * thus no need for a read ahead.                                 
     */                                                               
    bd = NULL;                                                        
                                                                      
  return bd;                                                          
}                                                                     
ffc10ab0:	38 21 00 10 	addi    r1,r1,16                               
ffc10ab4:	4e 80 00 20 	blr                                            
                                                                      

ffc105f4 <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) {
ffc105f4:	94 21 ff 40 	stwu    r1,-192(r1)                            
ffc105f8:	7c 08 02 a6 	mflr    r0                                     
ffc105fc:	93 81 00 b0 	stw     r28,176(r1)                            
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc10600:	3f 80 00 00 	lis     r28,0                                  
ffc10604:	3b 9c 2a 00 	addi    r28,r28,10752                          
ffc10608:	93 e1 00 bc 	stw     r31,188(r1)                            
ffc1060c:	83 fc 00 40 	lwz     r31,64(r28)                            
ffc10610:	92 c1 00 98 	stw     r22,152(r1)                            
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail(         
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return &the_chain->Tail.Node;                                       
ffc10614:	3a dc 00 44 	addi    r22,r28,68                             
  rtems_chain_node *node = rtems_chain_first (&bdbuf_cache.lru);      
                                                                      
  while (!rtems_chain_is_tail (&bdbuf_cache.lru, node))               
ffc10618:	7f 9f b0 00 	cmpw    cr7,r31,r22                            
}                                                                     
                                                                      
static rtems_bdbuf_buffer *                                           
rtems_bdbuf_get_buffer_from_lru_list (rtems_disk_device *dd,          
                                      rtems_blkdev_bnum  block)       
{                                                                     
ffc1061c:	92 a1 00 94 	stw     r21,148(r1)                            
       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);                   
ffc10620:	3a bc 00 74 	addi    r21,r28,116                            
}                                                                     
                                                                      
static rtems_bdbuf_buffer *                                           
rtems_bdbuf_get_buffer_from_lru_list (rtems_disk_device *dd,          
                                      rtems_blkdev_bnum  block)       
{                                                                     
ffc10624:	92 e1 00 9c 	stw     r23,156(r1)                            
ffc10628:	3a fc 00 40 	addi    r23,r28,64                             
ffc1062c:	93 01 00 a0 	stw     r24,160(r1)                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc10630:	3b 00 00 00 	li      r24,0                                  
}                                                                     
                                                                      
static rtems_bdbuf_buffer *                                           
rtems_bdbuf_get_buffer_from_lru_list (rtems_disk_device *dd,          
                                      rtems_blkdev_bnum  block)       
{                                                                     
ffc10634:	93 21 00 a4 	stw     r25,164(r1)                            
ffc10638:	7c 99 23 78 	mr      r25,r4                                 
ffc1063c:	93 41 00 a8 	stw     r26,168(r1)                            
ffc10640:	7c 7a 1b 78 	mr      r26,r3                                 
ffc10644:	90 01 00 c4 	stw     r0,196(r1)                             
ffc10648:	92 41 00 88 	stw     r18,136(r1)                            
ffc1064c:	92 61 00 8c 	stw     r19,140(r1)                            
ffc10650:	92 81 00 90 	stw     r20,144(r1)                            
ffc10654:	93 61 00 ac 	stw     r27,172(r1)                            
ffc10658:	93 a1 00 b4 	stw     r29,180(r1)                            
ffc1065c:	93 c1 00 b8 	stw     r30,184(r1)                            
  rtems_chain_node *node = rtems_chain_first (&bdbuf_cache.lru);      
                                                                      
  while (!rtems_chain_is_tail (&bdbuf_cache.lru, node))               
ffc10660:	40 be 00 14 	bne+    cr7,ffc10674 <rtems_bdbuf_get_buffer_from_lru_list+0x80>
ffc10664:	48 00 02 00 	b       ffc10864 <rtems_bdbuf_get_buffer_from_lru_list+0x270>
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 ();                                        
}                                                                     
ffc10668:	83 ff 00 00 	lwz     r31,0(r31)                             
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))               
ffc1066c:	7f 9f b0 00 	cmpw    cr7,r31,r22                            
ffc10670:	41 9e 01 f4 	beq-    cr7,ffc10864 <rtems_bdbuf_get_buffer_from_lru_list+0x270>
              bd->group->bds_per_group, dd->bds_per_group);           
                                                                      
    /*                                                                
     * If nobody waits for this BD, we may recycle it.                
     */                                                               
    if (bd->waiters == 0)                                             
ffc10674:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc10678:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1067c:	40 be ff ec 	bne-    cr7,ffc10668 <rtems_bdbuf_get_buffer_from_lru_list+0x74>
    {                                                                 
      if (bd->group->bds_per_group == dd->bds_per_group)              
ffc10680:	83 7f 00 28 	lwz     r27,40(r31)                            
ffc10684:	82 9a 00 34 	lwz     r20,52(r26)                            
ffc10688:	81 3b 00 08 	lwz     r9,8(r27)                              
ffc1068c:	7f 89 a0 00 	cmpw    cr7,r9,r20                             
ffc10690:	41 9e 00 b0 	beq-    cr7,ffc10740 <rtems_bdbuf_get_buffer_from_lru_list+0x14c>
      {                                                               
        rtems_bdbuf_remove_from_tree_and_lru_list (bd);               
                                                                      
        empty_bd = bd;                                                
      }                                                               
      else if (bd->group->users == 0)                                 
ffc10694:	81 5b 00 0c 	lwz     r10,12(r27)                            
ffc10698:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1069c:	40 9e ff cc 	bne+    cr7,ffc10668 <rtems_bdbuf_get_buffer_from_lru_list+0x74>
            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;                                      
ffc106a0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
  if (rtems_bdbuf_tracer)                                             
    printf ("bdbuf:realloc: %tu: %zd -> %zd\n",                       
            group - bdbuf_cache.groups, group->bds_per_group,         
            new_bds_per_group);                                       
                                                                      
  bufs_per_bd = bdbuf_cache.max_bds_per_group / group->bds_per_group; 
ffc106a4:	82 5c 00 20 	lwz     r18,32(r28)                            
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 ();                                        
}                                                                     
ffc106a8:	3a 7b 00 08 	addi    r19,r27,8                              
            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;                                      
ffc106ac:	83 db 00 10 	lwz     r30,16(r27)                            
  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; 
ffc106b0:	7e 52 4b 96 	divwu   r18,r18,r9                             
                                                                      
  for (b = 0, bd = group->bdbuf;                                      
ffc106b4:	41 9e 00 2c 	beq-    cr7,ffc106e0 <rtems_bdbuf_get_buffer_from_lru_list+0xec><== NEVER TAKEN
ffc106b8:	1e 52 00 38 	mulli   r18,r18,56                             
ffc106bc:	3b a0 00 00 	li      r29,0                                  
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
    rtems_bdbuf_remove_from_tree_and_lru_list (bd);                   
ffc106c0:	7f c3 f3 78 	mr      r3,r30                                 
ffc106c4:	4b ff fe d5 	bl      ffc10598 <rtems_bdbuf_remove_from_tree_and_lru_list>
            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;                                      
ffc106c8:	81 33 00 00 	lwz     r9,0(r19)                              
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
ffc106cc:	3b bd 00 01 	addi    r29,r29,1                              
            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;                                      
ffc106d0:	7f 9d 48 40 	cmplw   cr7,r29,r9                             
       b < group->bds_per_group;                                      
       b++, bd += bufs_per_bd)                                        
ffc106d4:	7f de 92 14 	add     r30,r30,r18                            
            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;                                      
ffc106d8:	41 9c ff e8 	blt+    cr7,ffc106c0 <rtems_bdbuf_get_buffer_from_lru_list+0xcc>
ffc106dc:	83 db 00 10 	lwz     r30,16(r27)                            
       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;                           
ffc106e0:	92 9b 00 08 	stw     r20,8(r27)                             
  bufs_per_bd = bdbuf_cache.max_bds_per_group / new_bds_per_group;    
                                                                      
  for (b = 1, bd = group->bdbuf + bufs_per_bd;                        
ffc106e4:	2b 94 00 01 	cmplwi  cr7,r20,1                              
       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;    
ffc106e8:	81 1c 00 20 	lwz     r8,32(r28)                             
ffc106ec:	7d 08 a3 96 	divwu   r8,r8,r20                              
                                                                      
  for (b = 1, bd = group->bdbuf + bufs_per_bd;                        
ffc106f0:	1d 08 00 38 	mulli   r8,r8,56                               
ffc106f4:	7d 3e 42 14 	add     r9,r30,r8                              
ffc106f8:	40 9d 00 38 	ble-    cr7,ffc10730 <rtems_bdbuf_get_buffer_from_lru_list+0x13c>
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc106fc:	3a 94 ff ff 	addi    r20,r20,-1                             
ffc10700:	7e 89 03 a6 	mtctr   r20                                    
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc10704:	92 e9 00 04 	stw     r23,4(r9)                              
  before_node           = after_node->next;                           
ffc10708:	81 5c 00 40 	lwz     r10,64(r28)                            
ffc1070c:	93 09 00 20 	stw     r24,32(r9)                             
  after_node->next      = the_node;                                   
ffc10710:	91 3c 00 40 	stw     r9,64(r28)                             
  the_node->next        = before_node;                                
ffc10714:	91 49 00 00 	stw     r10,0(r9)                              
  before_node->previous = the_node;                                   
ffc10718:	91 2a 00 04 	stw     r9,4(r10)                              
  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)                                        
ffc1071c:	7d 29 42 14 	add     r9,r9,r8                               
    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;                        
ffc10720:	42 00 ff e4 	bdnz+   ffc10704 <rtems_bdbuf_get_buffer_from_lru_list+0x110>
       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);                   
ffc10724:	7e a3 ab 78 	mr      r3,r21                                 
ffc10728:	4b ff f7 55 	bl      ffc0fe7c <rtems_bdbuf_wake>            
ffc1072c:	83 db 00 10 	lwz     r30,16(r27)                            
      }                                                               
      else if (bd->group->users == 0)                                 
        empty_bd = rtems_bdbuf_group_realloc (bd->group, dd->bds_per_group);
    }                                                                 
                                                                      
    if (empty_bd != NULL)                                             
ffc10730:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc10734:	41 9e ff 34 	beq+    cr7,ffc10668 <rtems_bdbuf_get_buffer_from_lru_list+0x74><== NEVER TAKEN
    rtems_bdbuf_make_free_and_add_to_lru_list (bd);                   
                                                                      
  if (b > 1)                                                          
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
                                                                      
  return group->bdbuf;                                                
ffc10738:	7f df f3 78 	mr      r31,r30                                
ffc1073c:	48 00 00 0c 	b       ffc10748 <rtems_bdbuf_get_buffer_from_lru_list+0x154>
     */                                                               
    if (bd->waiters == 0)                                             
    {                                                                 
      if (bd->group->bds_per_group == dd->bds_per_group)              
      {                                                               
        rtems_bdbuf_remove_from_tree_and_lru_list (bd);               
ffc10740:	7f e3 fb 78 	mr      r3,r31                                 
ffc10744:	4b ff fe 55 	bl      ffc10598 <rtems_bdbuf_remove_from_tree_and_lru_list>
                                rtems_disk_device  *dd,               
                                rtems_blkdev_bnum   block)            
{                                                                     
  bd->dd        = dd ;                                                
  bd->block     = block;                                              
  bd->avl.left  = NULL;                                               
ffc10748:	39 40 00 00 	li      r10,0                                  
static void                                                           
rtems_bdbuf_setup_empty_buffer (rtems_bdbuf_buffer *bd,               
                                rtems_disk_device  *dd,               
                                rtems_blkdev_bnum   block)            
{                                                                     
  bd->dd        = dd ;                                                
ffc1074c:	93 5f 00 14 	stw     r26,20(r31)                            
  bd->block     = block;                                              
  bd->avl.left  = NULL;                                               
ffc10750:	91 5f 00 08 	stw     r10,8(r31)                             
  bd->avl.right = NULL;                                               
ffc10754:	91 5f 00 0c 	stw     r10,12(r31)                            
                       rtems_bdbuf_buffer*  node)                     
{                                                                     
  const rtems_disk_device *dd = node->dd;                             
  rtems_blkdev_bnum block = node->block;                              
                                                                      
  rtems_bdbuf_buffer*  p = *root;                                     
ffc10758:	81 3c 00 3c 	lwz     r9,60(r28)                             
rtems_bdbuf_setup_empty_buffer (rtems_bdbuf_buffer *bd,               
                                rtems_disk_device  *dd,               
                                rtems_blkdev_bnum   block)            
{                                                                     
  bd->dd        = dd ;                                                
  bd->block     = block;                                              
ffc1075c:	93 3f 00 18 	stw     r25,24(r31)                            
  rtems_bdbuf_buffer*  buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];         
  rtems_bdbuf_buffer** buf_prev = buf_stack;                          
                                                                      
  bool modified = false;                                              
                                                                      
  if (p == NULL)                                                      
ffc10760:	2f 89 00 00 	cmpwi   cr7,r9,0                               
{                                                                     
  bd->dd        = dd ;                                                
  bd->block     = block;                                              
  bd->avl.left  = NULL;                                               
  bd->avl.right = NULL;                                               
  bd->waiters   = 0;                                                  
ffc10764:	91 5f 00 24 	stw     r10,36(r31)                            
  rtems_bdbuf_buffer*  buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];         
  rtems_bdbuf_buffer** buf_prev = buf_stack;                          
                                                                      
  bool modified = false;                                              
                                                                      
  if (p == NULL)                                                      
ffc10768:	41 9e 01 68 	beq-    cr7,ffc108d0 <rtems_bdbuf_get_buffer_from_lru_list+0x2dc>
ffc1076c:	38 a1 00 08 	addi    r5,r1,8                                
ffc10770:	7c aa 2b 78 	mr      r10,r5                                 
    *buf_prev++ = p;                                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
        || ((p->dd == dd) && (p->block < block)))                     
    {                                                                 
      p->avl.cache = 1;                                               
ffc10774:	38 c0 00 01 	li      r6,1                                   
        break;                                                        
      }                                                               
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
    {                                                                 
      p->avl.cache = -1;                                              
ffc10778:	38 80 ff ff 	li      r4,-1                                  
ffc1077c:	48 00 00 1c 	b       ffc10798 <rtems_bdbuf_get_buffer_from_lru_list+0x1a4>
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
        || ((p->dd == dd) && (p->block < block)))                     
    {                                                                 
      p->avl.cache = 1;                                               
      q = p->avl.right;                                               
ffc10780:	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;                                               
ffc10784:	98 c9 00 10 	stb     r6,16(r9)                              
      q = p->avl.right;                                               
      if (q == NULL)                                                  
ffc10788:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc1078c:	41 9e 02 70 	beq-    cr7,ffc109fc <rtems_bdbuf_get_buffer_from_lru_list+0x408>
ffc10790:	7c ea 3b 78 	mr      r10,r7                                 
  rtems_bdbuf_buffer*  buf_stack[RTEMS_BDBUF_AVL_MAX_HEIGHT];         
  rtems_bdbuf_buffer** buf_prev = buf_stack;                          
                                                                      
  bool modified = false;                                              
                                                                      
  if (p == NULL)                                                      
ffc10794:	7d 09 43 78 	mr      r9,r8                                  
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
ffc10798:	81 09 00 14 	lwz     r8,20(r9)                              
    return 0;                                                         
  }                                                                   
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
ffc1079c:	38 ea 00 04 	addi    r7,r10,4                               
ffc107a0:	91 2a 00 00 	stw     r9,0(r10)                              
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
ffc107a4:	7f 88 d0 40 	cmplw   cr7,r8,r26                             
ffc107a8:	41 bc ff d8 	blt-    cr7,ffc10780 <rtems_bdbuf_get_buffer_from_lru_list+0x18c><== NEVER TAKEN
        || ((p->dd == dd) && (p->block < block)))                     
ffc107ac:	7f 9a 40 00 	cmpw    cr7,r26,r8                             
ffc107b0:	41 9e 01 04 	beq-    cr7,ffc108b4 <rtems_bdbuf_get_buffer_from_lru_list+0x2c0><== ALWAYS TAKEN
      }                                                               
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
    {                                                                 
      p->avl.cache = -1;                                              
      q = p->avl.left;                                                
ffc107b4:	81 09 00 08 	lwz     r8,8(r9)                               
        break;                                                        
      }                                                               
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
    {                                                                 
      p->avl.cache = -1;                                              
ffc107b8:	98 89 00 10 	stb     r4,16(r9)                              
      q = p->avl.left;                                                
      if (q == NULL)                                                  
ffc107bc:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc107c0:	40 9e ff d0 	bne+    cr7,ffc10790 <rtems_bdbuf_get_buffer_from_lru_list+0x19c>
      {                                                               
        q = node;                                                     
        p->avl.left = q;                                              
ffc107c4:	93 e9 00 08 	stw     r31,8(r9)                              
ffc107c8:	38 e0 ff ff 	li      r7,-1                                  
    }                                                                 
                                                                      
    p = q;                                                            
  }                                                                   
                                                                      
  q->avl.left = q->avl.right = NULL;                                  
ffc107cc:	39 00 00 00 	li      r8,0                                   
ffc107d0:	2f 87 ff ff 	cmpwi   cr7,r7,-1                              
ffc107d4:	91 1f 00 0c 	stw     r8,12(r31)                             
  modified = true;                                                    
  buf_prev--;                                                         
                                                                      
  while (modified)                                                    
  {                                                                   
    if (p->avl.cache == -1)                                           
ffc107d8:	39 60 ff ff 	li      r11,-1                                 
    }                                                                 
                                                                      
    p = q;                                                            
  }                                                                   
                                                                      
  q->avl.left = q->avl.right = NULL;                                  
ffc107dc:	91 1f 00 08 	stw     r8,8(r31)                              
          p->avl.bal = 0;                                             
          modified = false;                                           
          break;                                                      
                                                                      
        case 0:                                                       
          p->avl.bal = 1;                                             
ffc107e0:	38 60 00 01 	li      r3,1                                   
            p2->avl.left = p;                                         
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
            if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
            p = p2;                                                   
          }                                                           
          p->avl.bal = 0;                                             
ffc107e4:	38 80 00 00 	li      r4,0                                   
                                                                      
    p = q;                                                            
  }                                                                   
                                                                      
  q->avl.left = q->avl.right = NULL;                                  
  q->avl.bal = 0;                                                     
ffc107e8:	99 1f 00 11 	stb     r8,17(r31)                             
            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;
ffc107ec:	38 00 ff ff 	li      r0,-1                                  
ffc107f0:	48 00 00 3c 	b       ffc1082c <rtems_bdbuf_get_buffer_from_lru_list+0x238>
          p->avl.bal = 0;                                             
          modified = false;                                           
          break;                                                      
                                                                      
        case 0:                                                       
          p->avl.bal = 1;                                             
ffc107f4:	98 69 00 11 	stb     r3,17(r9)                              
ffc107f8:	7d 28 4b 78 	mr      r8,r9                                  
ffc107fc:	38 c0 00 01 	li      r6,1                                   
        default:                                                      
          break;                                                      
      }                                                               
    }                                                                 
    q = p;                                                            
    if (buf_prev > buf_stack)                                         
ffc10800:	7f 85 50 40 	cmplw   cr7,r5,r10                             
ffc10804:	40 9c 00 58 	bge-    cr7,ffc1085c <rtems_bdbuf_get_buffer_from_lru_list+0x268>
    {                                                                 
      p = *--buf_prev;                                                
ffc10808:	81 2a ff fc 	lwz     r9,-4(r10)                             
                                                                      
      if (p->avl.cache == -1)                                         
ffc1080c:	88 e9 00 10 	lbz     r7,16(r9)                              
ffc10810:	7c e7 07 74 	extsb   r7,r7                                  
ffc10814:	2f 87 ff ff 	cmpwi   cr7,r7,-1                              
ffc10818:	41 9e 00 ec 	beq-    cr7,ffc10904 <rtems_bdbuf_get_buffer_from_lru_list+0x310>
      {                                                               
        p->avl.left = q;                                              
      }                                                               
      else                                                            
      {                                                               
        p->avl.right = q;                                             
ffc1081c:	91 09 00 0c 	stw     r8,12(r9)                              
  q->avl.left = q->avl.right = NULL;                                  
  q->avl.bal = 0;                                                     
  modified = true;                                                    
  buf_prev--;                                                         
                                                                      
  while (modified)                                                    
ffc10820:	2f 06 00 00 	cmpwi   cr6,r6,0                               
ffc10824:	39 4a ff fc 	addi    r10,r10,-4                             
ffc10828:	41 9a 00 b8 	beq-    cr6,ffc108e0 <rtems_bdbuf_get_buffer_from_lru_list+0x2ec>
  {                                                                   
    if (p->avl.cache == -1)                                           
    {                                                                 
      switch (p->avl.bal)                                             
ffc1082c:	89 09 00 11 	lbz     r8,17(r9)                              
  modified = true;                                                    
  buf_prev--;                                                         
                                                                      
  while (modified)                                                    
  {                                                                   
    if (p->avl.cache == -1)                                           
ffc10830:	41 9e 00 bc 	beq-    cr7,ffc108ec <rtems_bdbuf_get_buffer_from_lru_list+0x2f8>
          break;                                                      
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      switch (p->avl.bal)                                             
ffc10834:	7d 07 07 75 	extsb.  r7,r8                                  
ffc10838:	41 a2 ff bc 	beq-    ffc107f4 <rtems_bdbuf_get_buffer_from_lru_list+0x200>
ffc1083c:	2f 87 00 01 	cmpwi   cr7,r7,1                               
ffc10840:	41 9e 00 dc 	beq-    cr7,ffc1091c <rtems_bdbuf_get_buffer_from_lru_list+0x328>
ffc10844:	2f 87 ff ff 	cmpwi   cr7,r7,-1                              
ffc10848:	41 9e 00 c4 	beq-    cr7,ffc1090c <rtems_bdbuf_get_buffer_from_lru_list+0x318><== ALWAYS TAKEN
        default:                                                      
          break;                                                      
      }                                                               
    }                                                                 
    q = p;                                                            
    if (buf_prev > buf_stack)                                         
ffc1084c:	7f 85 50 40 	cmplw   cr7,r5,r10                             <== NOT EXECUTED
          break;                                                      
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      switch (p->avl.bal)                                             
ffc10850:	7d 28 4b 78 	mr      r8,r9                                  <== NOT EXECUTED
ffc10854:	38 c0 00 01 	li      r6,1                                   <== NOT EXECUTED
        default:                                                      
          break;                                                      
      }                                                               
    }                                                                 
    q = p;                                                            
    if (buf_prev > buf_stack)                                         
ffc10858:	41 9c ff b0 	blt+    cr7,ffc10808 <rtems_bdbuf_get_buffer_from_lru_list+0x214><== NOT EXECUTED
        p->avl.right = q;                                             
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      *root = p;                                                      
ffc1085c:	91 1c 00 3c 	stw     r8,60(r28)                             
ffc10860:	48 00 00 80 	b       ffc108e0 <rtems_bdbuf_get_buffer_from_lru_list+0x2ec>
    }                                                                 
                                                                      
    node = rtems_chain_next (node);                                   
  }                                                                   
                                                                      
  return NULL;                                                        
ffc10864:	3b e0 00 00 	li      r31,0                                  
}                                                                     
ffc10868:	80 01 00 c4 	lwz     r0,196(r1)                             
ffc1086c:	7f e3 fb 78 	mr      r3,r31                                 
ffc10870:	82 41 00 88 	lwz     r18,136(r1)                            
ffc10874:	7c 08 03 a6 	mtlr    r0                                     
ffc10878:	82 61 00 8c 	lwz     r19,140(r1)                            
ffc1087c:	82 81 00 90 	lwz     r20,144(r1)                            
ffc10880:	82 a1 00 94 	lwz     r21,148(r1)                            
ffc10884:	82 c1 00 98 	lwz     r22,152(r1)                            
ffc10888:	82 e1 00 9c 	lwz     r23,156(r1)                            
ffc1088c:	83 01 00 a0 	lwz     r24,160(r1)                            
ffc10890:	83 21 00 a4 	lwz     r25,164(r1)                            
ffc10894:	83 41 00 a8 	lwz     r26,168(r1)                            
ffc10898:	83 61 00 ac 	lwz     r27,172(r1)                            
ffc1089c:	83 81 00 b0 	lwz     r28,176(r1)                            
ffc108a0:	83 a1 00 b4 	lwz     r29,180(r1)                            
ffc108a4:	83 c1 00 b8 	lwz     r30,184(r1)                            
ffc108a8:	83 e1 00 bc 	lwz     r31,188(r1)                            
ffc108ac:	38 21 00 c0 	addi    r1,r1,192                              
ffc108b0:	4e 80 00 20 	blr                                            
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
        || ((p->dd == dd) && (p->block < block)))                     
ffc108b4:	81 09 00 18 	lwz     r8,24(r9)                              
ffc108b8:	7f 99 40 40 	cmplw   cr7,r25,r8                             
ffc108bc:	41 bd fe c4 	bgt-    cr7,ffc10780 <rtems_bdbuf_get_buffer_from_lru_list+0x18c>
        q = node;                                                     
        p->avl.right = q = node;                                      
        break;                                                        
      }                                                               
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
ffc108c0:	7f 99 40 00 	cmpw    cr7,r25,r8                             
ffc108c4:	40 9e fe f0 	bne+    cr7,ffc107b4 <rtems_bdbuf_get_buffer_from_lru_list+0x1c0><== ALWAYS TAKEN
  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);                    
ffc108c8:	38 60 00 08 	li      r3,8                                   <== NOT EXECUTED
ffc108cc:	4b ff f2 01 	bl      ffc0facc <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                                                      
  bool modified = false;                                              
                                                                      
  if (p == NULL)                                                      
  {                                                                   
    *root = node;                                                     
ffc108d0:	93 fc 00 3c 	stw     r31,60(r28)                            
    node->avl.left = NULL;                                            
ffc108d4:	91 3f 00 08 	stw     r9,8(r31)                              
    node->avl.right = NULL;                                           
ffc108d8:	91 3f 00 0c 	stw     r9,12(r31)                             
    node->avl.bal = 0;                                                
ffc108dc:	99 3f 00 11 	stb     r9,17(r31)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc108e0:	39 20 00 01 	li      r9,1                                   
ffc108e4:	91 3f 00 20 	stw     r9,32(r31)                             
ffc108e8:	4b ff ff 80 	b       ffc10868 <rtems_bdbuf_get_buffer_from_lru_list+0x274>
                                                                      
  while (modified)                                                    
  {                                                                   
    if (p->avl.cache == -1)                                           
    {                                                                 
      switch (p->avl.bal)                                             
ffc108ec:	7d 06 07 75 	extsb.  r6,r8                                  
ffc108f0:	40 82 00 8c 	bne-    ffc1097c <rtems_bdbuf_get_buffer_from_lru_list+0x388>
          p->avl.bal = 0;                                             
          modified = false;                                           
          break;                                                      
                                                                      
        case 0:                                                       
          p->avl.bal = -1;                                            
ffc108f4:	98 e9 00 11 	stb     r7,17(r9)                              
ffc108f8:	7d 28 4b 78 	mr      r8,r9                                  
ffc108fc:	38 c0 00 01 	li      r6,1                                   
ffc10900:	4b ff ff 00 	b       ffc10800 <rtems_bdbuf_get_buffer_from_lru_list+0x20c>
    {                                                                 
      p = *--buf_prev;                                                
                                                                      
      if (p->avl.cache == -1)                                         
      {                                                               
        p->avl.left = q;                                              
ffc10904:	91 09 00 08 	stw     r8,8(r9)                               
ffc10908:	4b ff ff 18 	b       ffc10820 <rtems_bdbuf_get_buffer_from_lru_list+0x22c>
    else                                                              
    {                                                                 
      switch (p->avl.bal)                                             
      {                                                               
        case -1:                                                      
          p->avl.bal = 0;                                             
ffc1090c:	98 89 00 11 	stb     r4,17(r9)                              
ffc10910:	7d 28 4b 78 	mr      r8,r9                                  
          modified = false;                                           
ffc10914:	38 c0 00 00 	li      r6,0                                   
ffc10918:	4b ff fe e8 	b       ffc10800 <rtems_bdbuf_get_buffer_from_lru_list+0x20c>
        case 0:                                                       
          p->avl.bal = 1;                                             
          break;                                                      
                                                                      
        case 1:                                                       
          p1 = p->avl.right;                                          
ffc1091c:	80 e9 00 0c 	lwz     r7,12(r9)                              
          if (p1->avl.bal == 1) /* simple RR-turn */                  
ffc10920:	89 07 00 11 	lbz     r8,17(r7)                              
ffc10924:	2f 88 00 01 	cmpwi   cr7,r8,1                               
ffc10928:	41 9e 00 b4 	beq-    cr7,ffc109dc <rtems_bdbuf_get_buffer_from_lru_list+0x3e8>
            p->avl.bal = 0;                                           
            p = p1;                                                   
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
ffc1092c:	81 07 00 08 	lwz     r8,8(r7)                               
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
            p2->avl.left = p;                                         
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
ffc10930:	8b c8 00 11 	lbz     r30,17(r8)                             
            p = p1;                                                   
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
            p1->avl.left = p2->avl.right;                             
ffc10934:	80 c8 00 0c 	lwz     r6,12(r8)                              
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
            p2->avl.left = p;                                         
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
ffc10938:	2f 9e 00 01 	cmpwi   cr7,r30,1                              
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
ffc1093c:	90 e8 00 0c 	stw     r7,12(r8)                              
            p = p1;                                                   
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
            p1->avl.left = p2->avl.right;                             
ffc10940:	90 c7 00 08 	stw     r6,8(r7)                               
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
ffc10944:	80 c8 00 08 	lwz     r6,8(r8)                               
            p2->avl.left = p;                                         
ffc10948:	91 28 00 08 	stw     r9,8(r8)                               
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
ffc1094c:	90 c9 00 0c 	stw     r6,12(r9)                              
            p2->avl.left = p;                                         
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
ffc10950:	41 9e 00 a4 	beq-    cr7,ffc109f4 <rtems_bdbuf_get_buffer_from_lru_list+0x400><== NEVER TAKEN
ffc10954:	98 89 00 11 	stb     r4,17(r9)                              
            if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
ffc10958:	89 28 00 11 	lbz     r9,17(r8)                              
ffc1095c:	2f 89 00 ff 	cmpwi   cr7,r9,255                             
ffc10960:	41 9e 00 14 	beq-    cr7,ffc10974 <rtems_bdbuf_get_buffer_from_lru_list+0x380><== NEVER TAKEN
ffc10964:	98 87 00 11 	stb     r4,17(r7)                              
            p = p2;                                                   
          }                                                           
          p->avl.bal = 0;                                             
ffc10968:	98 88 00 11 	stb     r4,17(r8)                              
          modified = false;                                           
ffc1096c:	38 c0 00 00 	li      r6,0                                   
ffc10970:	4b ff fe 90 	b       ffc10800 <rtems_bdbuf_get_buffer_from_lru_list+0x20c>
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
            p2->avl.left = p;                                         
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
            if (p2->avl.bal == -1) p1->avl.bal = +1; else p1->avl.bal = 0;
ffc10974:	98 67 00 11 	stb     r3,17(r7)                              <== NOT EXECUTED
ffc10978:	4b ff ff f0 	b       ffc10968 <rtems_bdbuf_get_buffer_from_lru_list+0x374><== NOT EXECUTED
                                                                      
  while (modified)                                                    
  {                                                                   
    if (p->avl.cache == -1)                                           
    {                                                                 
      switch (p->avl.bal)                                             
ffc1097c:	2f 86 00 01 	cmpwi   cr7,r6,1                               
ffc10980:	41 be ff 8c 	beq-    cr7,ffc1090c <rtems_bdbuf_get_buffer_from_lru_list+0x318>
ffc10984:	2f 86 ff ff 	cmpwi   cr7,r6,-1                              
ffc10988:	40 9e fe c4 	bne+    cr7,ffc1084c <rtems_bdbuf_get_buffer_from_lru_list+0x258><== NEVER TAKEN
        case 0:                                                       
          p->avl.bal = -1;                                            
          break;                                                      
                                                                      
        case -1:                                                      
          p1 = p->avl.left;                                           
ffc1098c:	80 e9 00 08 	lwz     r7,8(r9)                               
          if (p1->avl.bal == -1) /* simple LL-turn */                 
ffc10990:	89 07 00 11 	lbz     r8,17(r7)                              
ffc10994:	2f 88 00 ff 	cmpwi   cr7,r8,255                             
ffc10998:	41 9e 00 70 	beq-    cr7,ffc10a08 <rtems_bdbuf_get_buffer_from_lru_list+0x414>
            p->avl.bal = 0;                                           
            p = p1;                                                   
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
ffc1099c:	81 07 00 0c 	lwz     r8,12(r7)                              
            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;
ffc109a0:	8b c8 00 11 	lbz     r30,17(r8)                             
            p = p1;                                                   
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
            p1->avl.right = p2->avl.left;                             
ffc109a4:	80 c8 00 08 	lwz     r6,8(r8)                               
            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;
ffc109a8:	2f 9e 00 ff 	cmpwi   cr7,r30,255                            
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
ffc109ac:	90 e8 00 08 	stw     r7,8(r8)                               
            p = p1;                                                   
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
            p1->avl.right = p2->avl.left;                             
ffc109b0:	90 c7 00 0c 	stw     r6,12(r7)                              
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
ffc109b4:	80 c8 00 0c 	lwz     r6,12(r8)                              
            p2->avl.right = p;                                        
ffc109b8:	91 28 00 0c 	stw     r9,12(r8)                              
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
ffc109bc:	90 c9 00 08 	stw     r6,8(r9)                               
            p2->avl.right = p;                                        
            if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
ffc109c0:	41 9e 00 60 	beq-    cr7,ffc10a20 <rtems_bdbuf_get_buffer_from_lru_list+0x42c>
ffc109c4:	98 89 00 11 	stb     r4,17(r9)                              
            if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
ffc109c8:	89 28 00 11 	lbz     r9,17(r8)                              
ffc109cc:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc109d0:	40 9e ff 94 	bne+    cr7,ffc10964 <rtems_bdbuf_get_buffer_from_lru_list+0x370>
ffc109d4:	98 07 00 11 	stb     r0,17(r7)                              
ffc109d8:	4b ff ff 90 	b       ffc10968 <rtems_bdbuf_get_buffer_from_lru_list+0x374>
                                                                      
        case 1:                                                       
          p1 = p->avl.right;                                          
          if (p1->avl.bal == 1) /* simple RR-turn */                  
          {                                                           
            p->avl.right = p1->avl.left;                              
ffc109dc:	80 c7 00 08 	lwz     r6,8(r7)                               
            p1->avl.left = p;                                         
            p->avl.bal = 0;                                           
ffc109e0:	7c e8 3b 78 	mr      r8,r7                                  
ffc109e4:	98 89 00 11 	stb     r4,17(r9)                              
                                                                      
        case 1:                                                       
          p1 = p->avl.right;                                          
          if (p1->avl.bal == 1) /* simple RR-turn */                  
          {                                                           
            p->avl.right = p1->avl.left;                              
ffc109e8:	90 c9 00 0c 	stw     r6,12(r9)                              
            p1->avl.left = p;                                         
ffc109ec:	91 27 00 08 	stw     r9,8(r7)                               
ffc109f0:	4b ff ff 78 	b       ffc10968 <rtems_bdbuf_get_buffer_from_lru_list+0x374>
            p2 = p1->avl.left;                                        
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
            p2->avl.left = p;                                         
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
ffc109f4:	99 69 00 11 	stb     r11,17(r9)                             <== NOT EXECUTED
ffc109f8:	4b ff ff 60 	b       ffc10958 <rtems_bdbuf_get_buffer_from_lru_list+0x364><== NOT EXECUTED
      p->avl.cache = 1;                                               
      q = p->avl.right;                                               
      if (q == NULL)                                                  
      {                                                               
        q = node;                                                     
        p->avl.right = q = node;                                      
ffc109fc:	93 e9 00 0c 	stw     r31,12(r9)                             
ffc10a00:	38 e0 00 01 	li      r7,1                                   
ffc10a04:	4b ff fd c8 	b       ffc107cc <rtems_bdbuf_get_buffer_from_lru_list+0x1d8>
                                                                      
        case -1:                                                      
          p1 = p->avl.left;                                           
          if (p1->avl.bal == -1) /* simple LL-turn */                 
          {                                                           
            p->avl.left = p1->avl.right;                              
ffc10a08:	80 c7 00 0c 	lwz     r6,12(r7)                              
            p1->avl.right = p;                                        
            p->avl.bal = 0;                                           
ffc10a0c:	7c e8 3b 78 	mr      r8,r7                                  
ffc10a10:	98 89 00 11 	stb     r4,17(r9)                              
                                                                      
        case -1:                                                      
          p1 = p->avl.left;                                           
          if (p1->avl.bal == -1) /* simple LL-turn */                 
          {                                                           
            p->avl.left = p1->avl.right;                              
ffc10a14:	90 c9 00 08 	stw     r6,8(r9)                               
            p1->avl.right = p;                                        
ffc10a18:	91 27 00 0c 	stw     r9,12(r7)                              
ffc10a1c:	4b ff ff 4c 	b       ffc10968 <rtems_bdbuf_get_buffer_from_lru_list+0x374>
            p2 = p1->avl.right;                                       
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
            p2->avl.right = p;                                        
            if (p2->avl.bal == -1) p->avl.bal = +1; else p->avl.bal = 0;
ffc10a20:	98 69 00 11 	stb     r3,17(r9)                              
ffc10a24:	4b ff ff a4 	b       ffc109c8 <rtems_bdbuf_get_buffer_from_lru_list+0x3d4>
                                                                      

ffc11928 <rtems_bdbuf_init>: rtems_mode prev_mode; if (rtems_bdbuf_tracer) printf ("bdbuf:init\n"); if (rtems_interrupt_is_in_progress())
ffc11928:	3d 20 00 00 	lis     r9,0                                   
ffc1192c:	81 29 32 08 	lwz     r9,12808(r9)                           
    return RTEMS_CALLED_FROM_ISR;                                     
ffc11930:	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())                               
ffc11934:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc11938:	4c be 00 20 	bnelr+  cr7                                    
 *                                                                    
 * @return rtems_status_code The initialisation status.               
 */                                                                   
rtems_status_code                                                     
rtems_bdbuf_init (void)                                               
{                                                                     
ffc1193c:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc11940:	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;                                      
ffc11944:	38 60 00 0a 	li      r3,10                                  
 *                                                                    
 * @return rtems_status_code The initialisation status.               
 */                                                                   
rtems_status_code                                                     
rtems_bdbuf_init (void)                                               
{                                                                     
ffc11948:	93 e1 00 2c 	stw     r31,44(r1)                             
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  /*                                                                  
   * Check the configuration table values.                            
   */                                                                 
  if ((bdbuf_config.buffer_max % bdbuf_config.buffer_min) != 0)       
ffc1194c:	3f e0 ff c2 	lis     r31,-62                                
ffc11950:	3b ff dc 5c 	addi    r31,r31,-9124                          
ffc11954:	81 3f 00 28 	lwz     r9,40(r31)                             
 *                                                                    
 * @return rtems_status_code The initialisation status.               
 */                                                                   
rtems_status_code                                                     
rtems_bdbuf_init (void)                                               
{                                                                     
ffc11958:	93 c1 00 28 	stw     r30,40(r1)                             
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  /*                                                                  
   * Check the configuration table values.                            
   */                                                                 
  if ((bdbuf_config.buffer_max % bdbuf_config.buffer_min) != 0)       
ffc1195c:	83 df 00 24 	lwz     r30,36(r31)                            
 *                                                                    
 * @return rtems_status_code The initialisation status.               
 */                                                                   
rtems_status_code                                                     
rtems_bdbuf_init (void)                                               
{                                                                     
ffc11960:	93 81 00 20 	stw     r28,32(r1)                             
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  /*                                                                  
   * Check the configuration table values.                            
   */                                                                 
  if ((bdbuf_config.buffer_max % bdbuf_config.buffer_min) != 0)       
ffc11964:	7f 89 f3 96 	divwu   r28,r9,r30                             
 *                                                                    
 * @return rtems_status_code The initialisation status.               
 */                                                                   
rtems_status_code                                                     
rtems_bdbuf_init (void)                                               
{                                                                     
ffc11968:	90 01 00 34 	stw     r0,52(r1)                              
ffc1196c:	92 c1 00 08 	stw     r22,8(r1)                              
ffc11970:	92 e1 00 0c 	stw     r23,12(r1)                             
ffc11974:	93 01 00 10 	stw     r24,16(r1)                             
ffc11978:	93 21 00 14 	stw     r25,20(r1)                             
ffc1197c:	93 41 00 18 	stw     r26,24(r1)                             
ffc11980:	93 61 00 1c 	stw     r27,28(r1)                             
ffc11984:	93 a1 00 24 	stw     r29,36(r1)                             
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  /*                                                                  
   * Check the configuration table values.                            
   */                                                                 
  if ((bdbuf_config.buffer_max % bdbuf_config.buffer_min) != 0)       
ffc11988:	7d 5c f1 d6 	mullw   r10,r28,r30                            
ffc1198c:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc11990:	41 9e 00 3c 	beq-    cr7,ffc119cc <rtems_bdbuf_init+0xa4>   <== ALWAYS TAKEN
  }                                                                   
                                                                      
  bdbuf_cache.initialised = false;                                    
                                                                      
  return RTEMS_UNSATISFIED;                                           
}                                                                     
ffc11994:	80 01 00 34 	lwz     r0,52(r1)                              
ffc11998:	82 c1 00 08 	lwz     r22,8(r1)                              
ffc1199c:	7c 08 03 a6 	mtlr    r0                                     
ffc119a0:	82 e1 00 0c 	lwz     r23,12(r1)                             
ffc119a4:	83 01 00 10 	lwz     r24,16(r1)                             
ffc119a8:	83 21 00 14 	lwz     r25,20(r1)                             
ffc119ac:	83 41 00 18 	lwz     r26,24(r1)                             
ffc119b0:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc119b4:	83 81 00 20 	lwz     r28,32(r1)                             
ffc119b8:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc119bc:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc119c0:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc119c4:	38 21 00 30 	addi    r1,r1,48                               
ffc119c8:	4e 80 00 20 	blr                                            
   * 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)                                        
ffc119cc:	3f 40 00 00 	lis     r26,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 ();                      
ffc119d0:	4b ff e2 09 	bl      ffc0fbd8 <rtems_bdbuf_disable_preemption>
  if (bdbuf_cache.initialised)                                        
ffc119d4:	3b ba 2a 00 	addi    r29,r26,10752                          
ffc119d8:	8b 7d 00 95 	lbz     r27,149(r29)                           
  /*                                                                  
   * 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 ();                      
ffc119dc:	7c 79 1b 78 	mr      r25,r3                                 
  if (bdbuf_cache.initialised)                                        
ffc119e0:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc119e4:	41 9e 00 10 	beq-    cr7,ffc119f4 <rtems_bdbuf_init+0xcc>   <== ALWAYS TAKEN
  {                                                                   
    rtems_bdbuf_restore_preemption (prev_mode);                       
ffc119e8:	4b ff e2 39 	bl      ffc0fc20 <rtems_bdbuf_restore_preemption><== NOT EXECUTED
    return RTEMS_RESOURCE_IN_USE;                                     
ffc119ec:	38 60 00 0c 	li      r3,12                                  <== NOT EXECUTED
ffc119f0:	4b ff ff a4 	b       ffc11994 <rtems_bdbuf_init+0x6c>       <== NOT EXECUTED
  }                                                                   
                                                                      
  memset(&bdbuf_cache, 0, sizeof(bdbuf_cache));                       
ffc119f4:	38 80 00 00 	li      r4,0                                   
ffc119f8:	38 a0 00 98 	li      r5,152                                 
ffc119fc:	7f a3 eb 78 	mr      r3,r29                                 
ffc11a00:	48 00 76 51 	bl      ffc19050 <memset>                      
  bdbuf_cache.initialised = true;                                     
  rtems_bdbuf_restore_preemption (prev_mode);                         
ffc11a04:	7f 23 cb 78 	mr      r3,r25                                 
    rtems_bdbuf_restore_preemption (prev_mode);                       
    return RTEMS_RESOURCE_IN_USE;                                     
  }                                                                   
                                                                      
  memset(&bdbuf_cache, 0, sizeof(bdbuf_cache));                       
  bdbuf_cache.initialised = true;                                     
ffc11a08:	39 20 00 01 	li      r9,1                                   
ffc11a0c:	99 3d 00 95 	stb     r9,149(r29)                            
  rtems_bdbuf_restore_preemption (prev_mode);                         
ffc11a10:	4b ff e2 11 	bl      ffc0fc20 <rtems_bdbuf_restore_preemption>
  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'), 
ffc11a14:	3c 60 42 44 	lis     r3,16964                               
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc11a18:	39 9d 00 50 	addi    r12,r29,80                             
   */                                                                 
  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;                        
ffc11a1c:	93 7d 00 38 	stw     r27,56(r29)                            
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc11a20:	38 1d 00 4c 	addi    r0,r29,76                              
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc11a24:	39 7d 00 5c 	addi    r11,r29,92                             
  head->previous = NULL;                                              
ffc11a28:	93 7d 00 0c 	stw     r27,12(r29)                            
  tail->previous = head;                                              
ffc11a2c:	39 1d 00 58 	addi    r8,r29,88                              
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc11a30:	39 5d 00 8c 	addi    r10,r29,140                            
  head->previous = NULL;                                              
ffc11a34:	93 7d 00 44 	stw     r27,68(r29)                            
  tail->previous = head;                                              
ffc11a38:	39 3d 00 88 	addi    r9,r29,136                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc11a3c:	3a dd 00 0c 	addi    r22,r29,12                             
ffc11a40:	91 9d 00 4c 	stw     r12,76(r29)                            
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc11a44:	3a fd 00 08 	addi    r23,r29,8                              
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc11a48:	3b 3d 00 44 	addi    r25,r29,68                             
ffc11a4c:	92 dd 00 08 	stw     r22,8(r29)                             
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc11a50:	3b 1d 00 40 	addi    r24,r29,64                             
  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'), 
ffc11a54:	60 63 43 6c 	ori     r3,r3,17260                            
ffc11a58:	92 fd 00 10 	stw     r23,16(r29)                            
ffc11a5c:	38 80 00 01 	li      r4,1                                   
ffc11a60:	38 a0 00 54 	li      r5,84                                  
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc11a64:	93 3d 00 40 	stw     r25,64(r29)                            
ffc11a68:	38 c0 00 00 	li      r6,0                                   
ffc11a6c:	38 fd 00 28 	addi    r7,r29,40                              
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc11a70:	93 1d 00 48 	stw     r24,72(r29)                            
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc11a74:	93 7d 00 50 	stw     r27,80(r29)                            
  tail->previous = head;                                              
ffc11a78:	90 1d 00 54 	stw     r0,84(r29)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc11a7c:	91 7d 00 58 	stw     r11,88(r29)                            
  head->previous = NULL;                                              
ffc11a80:	93 7d 00 5c 	stw     r27,92(r29)                            
  tail->previous = head;                                              
ffc11a84:	91 1d 00 60 	stw     r8,96(r29)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc11a88:	91 5d 00 88 	stw     r10,136(r29)                           
  head->previous = NULL;                                              
ffc11a8c:	93 7d 00 8c 	stw     r27,140(r29)                           
  tail->previous = head;                                              
ffc11a90:	91 3d 00 90 	stw     r9,144(r29)                            
ffc11a94:	4b ff 91 a1 	bl      ffc0ac34 <rtems_semaphore_create>      
                               1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,  
                               &bdbuf_cache.lock);                    
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc11a98:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11a9c:	41 9e 00 90 	beq-    cr7,ffc11b2c <rtems_bdbuf_init+0x204>  <== ALWAYS TAKEN
                                                                      
  return RTEMS_SUCCESSFUL;                                            
                                                                      
error:                                                                
                                                                      
  if (bdbuf_cache.read_ahead_task != 0)                               
ffc11aa0:	80 7d 00 84 	lwz     r3,132(r29)                            <== NOT EXECUTED
ffc11aa4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc11aa8:	40 9e 00 64 	bne-    cr7,ffc11b0c <rtems_bdbuf_init+0x1e4>  <== NOT EXECUTED
    rtems_task_delete (bdbuf_cache.read_ahead_task);                  
                                                                      
  if (bdbuf_cache.swapout != 0)                                       
ffc11aac:	80 7a 2a 00 	lwz     r3,10752(r26)                          <== NOT EXECUTED
ffc11ab0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc11ab4:	40 9e 00 70 	bne-    cr7,ffc11b24 <rtems_bdbuf_init+0x1fc>  <== NOT EXECUTED
    rtems_task_delete (bdbuf_cache.swapout);                          
                                                                      
  free (bdbuf_cache.buffers);                                         
ffc11ab8:	80 7d 00 18 	lwz     r3,24(r29)                             <== NOT EXECUTED
ffc11abc:	4b ff 42 5d 	bl      ffc05d18 <free>                        <== NOT EXECUTED
  free (bdbuf_cache.groups);                                          
ffc11ac0:	80 7d 00 80 	lwz     r3,128(r29)                            <== NOT EXECUTED
ffc11ac4:	4b ff 42 55 	bl      ffc05d18 <free>                        <== NOT EXECUTED
  free (bdbuf_cache.bds);                                             
ffc11ac8:	80 7d 00 14 	lwz     r3,20(r29)                             <== NOT EXECUTED
ffc11acc:	4b ff 42 4d 	bl      ffc05d18 <free>                        <== NOT EXECUTED
                                                                      
  rtems_semaphore_delete (bdbuf_cache.buffer_waiters.sema);           
ffc11ad0:	80 7d 00 78 	lwz     r3,120(r29)                            <== NOT EXECUTED
ffc11ad4:	4b ff 93 81 	bl      ffc0ae54 <rtems_semaphore_delete>      <== NOT EXECUTED
  rtems_semaphore_delete (bdbuf_cache.access_waiters.sema);           
ffc11ad8:	80 7d 00 68 	lwz     r3,104(r29)                            <== NOT EXECUTED
ffc11adc:	4b ff 93 79 	bl      ffc0ae54 <rtems_semaphore_delete>      <== NOT EXECUTED
  rtems_semaphore_delete (bdbuf_cache.transfer_waiters.sema);         
ffc11ae0:	80 7d 00 70 	lwz     r3,112(r29)                            <== NOT EXECUTED
ffc11ae4:	4b ff 93 71 	bl      ffc0ae54 <rtems_semaphore_delete>      <== NOT EXECUTED
  rtems_semaphore_delete (bdbuf_cache.sync_lock);                     
ffc11ae8:	80 7d 00 2c 	lwz     r3,44(r29)                             <== NOT EXECUTED
ffc11aec:	4b ff 93 69 	bl      ffc0ae54 <rtems_semaphore_delete>      <== NOT EXECUTED
                                                                      
  if (bdbuf_cache.lock != 0)                                          
ffc11af0:	81 3d 00 28 	lwz     r9,40(r29)                             <== NOT EXECUTED
ffc11af4:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc11af8:	40 9e 00 1c 	bne-    cr7,ffc11b14 <rtems_bdbuf_init+0x1ec>  <== NOT EXECUTED
  {                                                                   
    rtems_bdbuf_unlock_cache ();                                      
    rtems_semaphore_delete (bdbuf_cache.lock);                        
  }                                                                   
                                                                      
  bdbuf_cache.initialised = false;                                    
ffc11afc:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc11b00:	99 3d 00 95 	stb     r9,149(r29)                            <== NOT EXECUTED
                                                                      
  return RTEMS_UNSATISFIED;                                           
ffc11b04:	38 60 00 0d 	li      r3,13                                  <== NOT EXECUTED
ffc11b08:	4b ff fe 8c 	b       ffc11994 <rtems_bdbuf_init+0x6c>       <== NOT EXECUTED
  return RTEMS_SUCCESSFUL;                                            
                                                                      
error:                                                                
                                                                      
  if (bdbuf_cache.read_ahead_task != 0)                               
    rtems_task_delete (bdbuf_cache.read_ahead_task);                  
ffc11b0c:	4b ff 98 d5 	bl      ffc0b3e0 <rtems_task_delete>           <== NOT EXECUTED
ffc11b10:	4b ff ff 9c 	b       ffc11aac <rtems_bdbuf_init+0x184>      <== NOT EXECUTED
  rtems_semaphore_delete (bdbuf_cache.transfer_waiters.sema);         
  rtems_semaphore_delete (bdbuf_cache.sync_lock);                     
                                                                      
  if (bdbuf_cache.lock != 0)                                          
  {                                                                   
    rtems_bdbuf_unlock_cache ();                                      
ffc11b14:	4b ff e0 79 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    <== NOT EXECUTED
    rtems_semaphore_delete (bdbuf_cache.lock);                        
ffc11b18:	80 7d 00 28 	lwz     r3,40(r29)                             <== NOT EXECUTED
ffc11b1c:	4b ff 93 39 	bl      ffc0ae54 <rtems_semaphore_delete>      <== NOT EXECUTED
ffc11b20:	4b ff ff dc 	b       ffc11afc <rtems_bdbuf_init+0x1d4>      <== NOT EXECUTED
                                                                      
  if (bdbuf_cache.read_ahead_task != 0)                               
    rtems_task_delete (bdbuf_cache.read_ahead_task);                  
                                                                      
  if (bdbuf_cache.swapout != 0)                                       
    rtems_task_delete (bdbuf_cache.swapout);                          
ffc11b24:	4b ff 98 bd 	bl      ffc0b3e0 <rtems_task_delete>           <== NOT EXECUTED
ffc11b28:	4b ff ff 90 	b       ffc11ab8 <rtems_bdbuf_init+0x190>      <== NOT EXECUTED
                               1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,  
                               &bdbuf_cache.lock);                    
  if (sc != RTEMS_SUCCESSFUL)                                         
    goto error;                                                       
                                                                      
  rtems_bdbuf_lock_cache ();                                          
ffc11b2c:	4b ff df fd 	bl      ffc0fb28 <rtems_bdbuf_lock_cache>      
                                                                      
  sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 's'), 
ffc11b30:	3c 60 42 44 	lis     r3,16964                               
ffc11b34:	60 63 43 73 	ori     r3,r3,17267                            
ffc11b38:	38 80 00 01 	li      r4,1                                   
ffc11b3c:	38 a0 00 54 	li      r5,84                                  
ffc11b40:	38 c0 00 00 	li      r6,0                                   
ffc11b44:	38 fd 00 2c 	addi    r7,r29,44                              
ffc11b48:	4b ff 90 ed 	bl      ffc0ac34 <rtems_semaphore_create>      
                               1, RTEMS_BDBUF_CACHE_LOCK_ATTRIBS, 0,  
                               &bdbuf_cache.sync_lock);               
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc11b4c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11b50:	40 9e ff 50 	bne+    cr7,ffc11aa0 <rtems_bdbuf_init+0x178>  <== NEVER TAKEN
    goto error;                                                       
                                                                      
  sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'a'), 
ffc11b54:	3c 60 42 44 	lis     r3,16964                               
ffc11b58:	60 63 43 61 	ori     r3,r3,17249                            
ffc11b5c:	38 80 00 00 	li      r4,0                                   
ffc11b60:	38 a0 00 24 	li      r5,36                                  
ffc11b64:	38 c0 00 00 	li      r6,0                                   
ffc11b68:	38 fd 00 68 	addi    r7,r29,104                             
ffc11b6c:	4b ff 90 c9 	bl      ffc0ac34 <rtems_semaphore_create>      
                               0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
                               &bdbuf_cache.access_waiters.sema);     
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc11b70:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11b74:	40 9e ff 2c 	bne+    cr7,ffc11aa0 <rtems_bdbuf_init+0x178>  <== NEVER TAKEN
    goto error;                                                       
                                                                      
  sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 't'), 
ffc11b78:	3c 60 42 44 	lis     r3,16964                               
ffc11b7c:	60 63 43 74 	ori     r3,r3,17268                            
ffc11b80:	38 80 00 00 	li      r4,0                                   
ffc11b84:	38 a0 00 24 	li      r5,36                                  
ffc11b88:	38 c0 00 00 	li      r6,0                                   
ffc11b8c:	38 fd 00 70 	addi    r7,r29,112                             
ffc11b90:	4b ff 90 a5 	bl      ffc0ac34 <rtems_semaphore_create>      
                               0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
                               &bdbuf_cache.transfer_waiters.sema);   
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc11b94:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11b98:	40 9e ff 08 	bne+    cr7,ffc11aa0 <rtems_bdbuf_init+0x178>  <== NEVER TAKEN
    goto error;                                                       
                                                                      
  sc = rtems_semaphore_create (rtems_build_name ('B', 'D', 'C', 'b'), 
ffc11b9c:	3c 60 42 44 	lis     r3,16964                               
ffc11ba0:	60 63 43 62 	ori     r3,r3,17250                            
ffc11ba4:	38 80 00 00 	li      r4,0                                   
ffc11ba8:	38 a0 00 24 	li      r5,36                                  
ffc11bac:	38 c0 00 00 	li      r6,0                                   
ffc11bb0:	38 fd 00 78 	addi    r7,r29,120                             
ffc11bb4:	4b ff 90 81 	bl      ffc0ac34 <rtems_semaphore_create>      
                               0, RTEMS_BDBUF_CACHE_WAITER_ATTRIBS, 0,
                               &bdbuf_cache.buffer_waiters.sema);     
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc11bb8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11bbc:	40 9e fe e4 	bne+    cr7,ffc11aa0 <rtems_bdbuf_init+0x178>  <== NEVER TAKEN
                                                                      
  /*                                                                  
   * Compute the various number of elements in the cache.             
   */                                                                 
  bdbuf_cache.buffer_min_count =                                      
    bdbuf_config.size / bdbuf_config.buffer_min;                      
ffc11bc0:	83 7f 00 20 	lwz     r27,32(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),              
ffc11bc4:	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 =                                     
ffc11bc8:	93 9d 00 20 	stw     r28,32(r29)                            
                                                                      
  /*                                                                  
   * Compute the various number of elements in the cache.             
   */                                                                 
  bdbuf_cache.buffer_min_count =                                      
    bdbuf_config.size / bdbuf_config.buffer_min;                      
ffc11bcc:	7f 7b f3 96 	divwu   r27,r27,r30                            
  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;     
ffc11bd0:	7f 9b e3 96 	divwu   r28,r27,r28                            
    goto error;                                                       
                                                                      
  /*                                                                  
   * Compute the various number of elements in the cache.             
   */                                                                 
  bdbuf_cache.buffer_min_count =                                      
ffc11bd4:	93 7d 00 1c 	stw     r27,28(r29)                            
    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),              
ffc11bd8:	7f 64 db 78 	mr      r4,r27                                 
   */                                                                 
  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 =                                           
ffc11bdc:	93 9d 00 7c 	stw     r28,124(r29)                           
    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),              
ffc11be0:	4b ff 40 29 	bl      ffc05c08 <calloc>                      
                            bdbuf_cache.buffer_min_count);            
  if (!bdbuf_cache.bds)                                               
ffc11be4:	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),              
ffc11be8:	90 7d 00 14 	stw     r3,20(r29)                             
                            bdbuf_cache.buffer_min_count);            
  if (!bdbuf_cache.bds)                                               
ffc11bec:	41 be fe b4 	beq-    cr7,ffc11aa0 <rtems_bdbuf_init+0x178>  <== NEVER TAKEN
    goto error;                                                       
                                                                      
  /*                                                                  
   * Allocate the memory for the buffer descriptors.                  
   */                                                                 
  bdbuf_cache.groups = calloc (sizeof (rtems_bdbuf_group),            
ffc11bf0:	38 60 00 14 	li      r3,20                                  
ffc11bf4:	7f 84 e3 78 	mr      r4,r28                                 
ffc11bf8:	4b ff 40 11 	bl      ffc05c08 <calloc>                      
                               bdbuf_cache.group_count);              
  if (!bdbuf_cache.groups)                                            
ffc11bfc:	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),            
ffc11c00:	90 7d 00 80 	stw     r3,128(r29)                            
                               bdbuf_cache.group_count);              
  if (!bdbuf_cache.groups)                                            
ffc11c04:	41 be fe 9c 	beq-    cr7,ffc11aa0 <rtems_bdbuf_init+0x178>  <== 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,                 
ffc11c08:	7c bb f1 d6 	mullw   r5,r27,r30                             
ffc11c0c:	38 7d 00 18 	addi    r3,r29,24                              
ffc11c10:	38 80 00 20 	li      r4,32                                  
ffc11c14:	48 00 26 09 	bl      ffc1421c <rtems_memalign>              
ffc11c18:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11c1c:	40 9e fe 84 	bne+    cr7,ffc11aa0 <rtems_bdbuf_init+0x178>  <== 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;                              
ffc11c20:	80 7d 00 1c 	lwz     r3,28(r29)                             
                                                                      
  /*                                                                  
   * 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,                             
ffc11c24:	38 e0 00 00 	li      r7,0                                   
ffc11c28:	81 5d 00 80 	lwz     r10,128(r29)                           
         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;                                    
ffc11c2c:	39 60 00 00 	li      r11,0                                  
ffc11c30:	38 63 00 01 	addi    r3,r3,1                                
  /*                                                                  
   * 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;          
ffc11c34:	81 1d 00 14 	lwz     r8,20(r29)                             
       b < bdbuf_cache.buffer_min_count;                              
       b++, bd++, buffer += bdbuf_config.buffer_min)                  
  {                                                                   
    bd->dd    = BDBUF_INVALID_DEV;                                    
ffc11c38:	7c 69 03 a6 	mtctr   r3                                     
    bd->group  = group;                                               
    bd->buffer = buffer;                                              
                                                                      
    rtems_chain_append_unprotected (&bdbuf_cache.lru, &bd->link);     
                                                                      
    if ((b % bdbuf_cache.max_bds_per_group) ==                        
ffc11c3c:	80 bd 00 20 	lwz     r5,32(r29)                             
  /*                                                                  
   * 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;          
ffc11c40:	80 9d 00 18 	lwz     r4,24(r29)                             
ffc11c44:	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))                          
ffc11c48:	38 05 ff ff 	addi    r0,r5,-1                               
                                                                      
  /*                                                                  
   * 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,                             
ffc11c4c:	7d 46 53 78 	mr      r6,r10                                 
ffc11c50:	42 40 00 4c 	bdz-    ffc11c9c <rtems_bdbuf_init+0x374>      
    bd->group  = group;                                               
    bd->buffer = buffer;                                              
                                                                      
    rtems_chain_append_unprotected (&bdbuf_cache.lru, &bd->link);     
                                                                      
    if ((b % bdbuf_cache.max_bds_per_group) ==                        
ffc11c54:	7f 87 2b 96 	divwu   r28,r7,r5                              
       b < bdbuf_cache.buffer_min_count;                              
       b++, bd++, buffer += bdbuf_config.buffer_min)                  
  {                                                                   
    bd->dd    = BDBUF_INVALID_DEV;                                    
    bd->group  = group;                                               
    bd->buffer = buffer;                                              
ffc11c58:	90 89 00 1c 	stw     r4,28(r9)                              
         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;                                    
    bd->group  = group;                                               
ffc11c5c:	90 c9 00 28 	stw     r6,40(r9)                              
  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)                  
  {                                                                   
    bd->dd    = BDBUF_INVALID_DEV;                                    
ffc11c60:	91 69 00 14 	stw     r11,20(r9)                             
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc11c64:	80 7d 00 48 	lwz     r3,72(r29)                             
                                                                      
  the_node->next = tail;                                              
ffc11c68:	93 29 00 00 	stw     r25,0(r9)                              
  tail->previous = the_node;                                          
  old_last->next = the_node;                                          
ffc11c6c:	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;                                          
ffc11c70:	91 3d 00 48 	stw     r9,72(r29)                             
  old_last->next = the_node;                                          
  the_node->previous = old_last;                                      
ffc11c74:	90 69 00 04 	stw     r3,4(r9)                               
    bd->group  = group;                                               
    bd->buffer = buffer;                                              
                                                                      
    rtems_chain_append_unprotected (&bdbuf_cache.lru, &bd->link);     
                                                                      
    if ((b % bdbuf_cache.max_bds_per_group) ==                        
ffc11c78:	7c 7c 29 d6 	mullw   r3,r28,r5                              
   * 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)                  
ffc11c7c:	39 29 00 38 	addi    r9,r9,56                               
    bd->group  = group;                                               
    bd->buffer = buffer;                                              
                                                                      
    rtems_chain_append_unprotected (&bdbuf_cache.lru, &bd->link);     
                                                                      
    if ((b % bdbuf_cache.max_bds_per_group) ==                        
ffc11c80:	7c 63 38 50 	subf    r3,r3,r7                               
ffc11c84:	7f 83 00 00 	cmpw    cr7,r3,r0                              
   * 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)                  
ffc11c88:	38 e7 00 01 	addi    r7,r7,1                                
ffc11c8c:	7c 84 f2 14 	add     r4,r4,r30                              
    bd->group  = group;                                               
    bd->buffer = buffer;                                              
                                                                      
    rtems_chain_append_unprotected (&bdbuf_cache.lru, &bd->link);     
                                                                      
    if ((b % bdbuf_cache.max_bds_per_group) ==                        
ffc11c90:	40 9e ff c0 	bne+    cr7,ffc11c50 <rtems_bdbuf_init+0x328>  
        (bdbuf_cache.max_bds_per_group - 1))                          
      group++;                                                        
ffc11c94:	38 c6 00 14 	addi    r6,r6,20                               
ffc11c98:	4b ff ff b8 	b       ffc11c50 <rtems_bdbuf_init+0x328>      
  }                                                                   
                                                                      
  for (b = 0,                                                         
         group = bdbuf_cache.groups,                                  
         bd = bdbuf_cache.bds;                                        
       b < bdbuf_cache.group_count;                                   
ffc11c9c:	80 fd 00 7c 	lwz     r7,124(r29)                            
       b++,                                                           
         group++,                                                     
         bd += bdbuf_cache.max_bds_per_group)                         
  {                                                                   
    group->bds_per_group = bdbuf_cache.max_bds_per_group;             
ffc11ca0:	81 3d 00 20 	lwz     r9,32(r29)                             
         group = bdbuf_cache.groups,                                  
         bd = bdbuf_cache.bds;                                        
       b < bdbuf_cache.group_count;                                   
       b++,                                                           
         group++,                                                     
         bd += bdbuf_cache.max_bds_per_group)                         
ffc11ca4:	38 e7 00 01 	addi    r7,r7,1                                
ffc11ca8:	7c e9 03 a6 	mtctr   r7                                     
ffc11cac:	1c e9 00 38 	mulli   r7,r9,56                               
    if ((b % bdbuf_cache.max_bds_per_group) ==                        
        (bdbuf_cache.max_bds_per_group - 1))                          
      group++;                                                        
  }                                                                   
                                                                      
  for (b = 0,                                                         
ffc11cb0:	42 40 00 18 	bdz-    ffc11cc8 <rtems_bdbuf_init+0x3a0>      
       b++,                                                           
         group++,                                                     
         bd += bdbuf_cache.max_bds_per_group)                         
  {                                                                   
    group->bds_per_group = bdbuf_cache.max_bds_per_group;             
    group->bdbuf = bd;                                                
ffc11cb4:	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)                         
ffc11cb8:	7d 08 3a 14 	add     r8,r8,r7                               
  {                                                                   
    group->bds_per_group = bdbuf_cache.max_bds_per_group;             
ffc11cbc:	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++,                                                     
ffc11cc0:	39 4a 00 14 	addi    r10,r10,20                             
ffc11cc4:	4b ff ff ec 	b       ffc11cb0 <rtems_bdbuf_init+0x388>      
   * 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'), 
ffc11cc8:	80 9f 00 08 	lwz     r4,8(r31)                              
ffc11ccc:	3c 60 42 53 	lis     r3,16979                               
ffc11cd0:	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;                                 
ffc11cd4:	3b c0 00 01 	li      r30,1                                  
                                                                      
  sc = rtems_bdbuf_create_task (rtems_build_name('B', 'S', 'W', 'P'), 
ffc11cd8:	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;                                 
ffc11cdc:	9b dd 00 04 	stb     r30,4(r29)                             
                                                                      
  sc = rtems_bdbuf_create_task (rtems_build_name('B', 'S', 'W', 'P'), 
ffc11ce0:	38 a5 11 84 	addi    r5,r5,4484                             
ffc11ce4:	38 c0 00 00 	li      r6,0                                   
ffc11ce8:	7f a7 eb 78 	mr      r7,r29                                 
ffc11cec:	4b ff e3 01 	bl      ffc0ffec <rtems_bdbuf_create_task.constprop.15>
                                bdbuf_config.swapout_priority,        
                                RTEMS_BDBUF_SWAPOUT_TASK_PRIORITY_DEFAULT,
                                rtems_bdbuf_swapout_task,             
                                0,                                    
                                &bdbuf_cache.swapout);                
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc11cf0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11cf4:	40 9e fd ac 	bne+    cr7,ffc11aa0 <rtems_bdbuf_init+0x178>  <== NEVER TAKEN
    goto error;                                                       
                                                                      
  if (bdbuf_config.max_read_ahead_blocks > 0)                         
ffc11cf8:	3d 20 ff c2 	lis     r9,-62                                 
ffc11cfc:	81 29 dc 5c 	lwz     r9,-9124(r9)                           
ffc11d00:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc11d04:	41 9e 00 30 	beq-    cr7,ffc11d34 <rtems_bdbuf_init+0x40c>  
  {                                                                   
    bdbuf_cache.read_ahead_enabled = true;                            
    sc = rtems_bdbuf_create_task (rtems_build_name('B', 'R', 'D', 'A'),
ffc11d08:	80 9f 00 2c 	lwz     r4,44(r31)                             
ffc11d0c:	3c 60 42 52 	lis     r3,16978                               
ffc11d10:	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;                            
ffc11d14:	9b dd 00 94 	stb     r30,148(r29)                           
    sc = rtems_bdbuf_create_task (rtems_build_name('B', 'R', 'D', 'A'),
ffc11d18:	60 63 44 41 	ori     r3,r3,17473                            
ffc11d1c:	38 a5 17 8c 	addi    r5,r5,6028                             
ffc11d20:	38 c0 00 00 	li      r6,0                                   
ffc11d24:	38 fd 00 84 	addi    r7,r29,132                             
ffc11d28:	4b ff e2 c5 	bl      ffc0ffec <rtems_bdbuf_create_task.constprop.15>
                                  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)                                       
ffc11d2c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11d30:	40 9e fd 70 	bne+    cr7,ffc11aa0 <rtems_bdbuf_init+0x178>  <== NEVER TAKEN
      goto error;                                                     
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc11d34:	4b ff de 59 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc11d38:	38 60 00 00 	li      r3,0                                   
ffc11d3c:	4b ff fc 58 	b       ffc11994 <rtems_bdbuf_init+0x6c>       
                                                                      

ffc0fae4 <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) {
ffc0fae4:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0fae8:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = rtems_semaphore_obtain (lock,                
ffc0faec:	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)           
{                                                                     
ffc0faf0:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0faf4:	7c 9f 23 78 	mr      r31,r4                                 
  rtems_status_code sc = rtems_semaphore_obtain (lock,                
ffc0faf8:	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)           
{                                                                     
ffc0fafc:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_status_code sc = rtems_semaphore_obtain (lock,                
ffc0fb00:	4b ff b4 49 	bl      ffc0af48 <rtems_semaphore_obtain>      
                                                 RTEMS_WAIT,          
                                                 RTEMS_NO_TIMEOUT);   
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc0fb04:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0fb08:	40 9e 00 18 	bne-    cr7,ffc0fb20 <rtems_bdbuf_lock+0x3c>   <== NEVER TAKEN
    rtems_bdbuf_fatal (fatal_error_code);                             
}                                                                     
ffc0fb0c:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0fb10:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0fb14:	7c 08 03 a6 	mtlr    r0                                     
ffc0fb18:	38 21 00 10 	addi    r1,r1,16                               
ffc0fb1c:	4e 80 00 20 	blr                                            
{                                                                     
  rtems_status_code sc = rtems_semaphore_obtain (lock,                
                                                 RTEMS_WAIT,          
                                                 RTEMS_NO_TIMEOUT);   
  if (sc != RTEMS_SUCCESSFUL)                                         
    rtems_bdbuf_fatal (fatal_error_code);                             
ffc0fb20:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0fb24:	4b ff ff a9 	bl      ffc0facc <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                                                      

ffc1243c <rtems_bdbuf_purge_dev>: } } void rtems_bdbuf_purge_dev (rtems_disk_device *dd) {
ffc1243c:	94 21 ff 40 	stwu    r1,-192(r1)                            
ffc12440:	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;                                              
ffc12444:	39 20 00 00 	li      r9,0                                   
ffc12448:	93 41 00 a8 	stw     r26,168(r1)                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc1244c:	3b 41 00 8c 	addi    r26,r1,140                             
ffc12450:	93 81 00 b0 	stw     r28,176(r1)                            
ffc12454:	3b 81 00 88 	addi    r28,r1,136                             
ffc12458:	93 a1 00 b4 	stw     r29,180(r1)                            
ffc1245c:	7c 7d 1b 78 	mr      r29,r3                                 
  head->previous = NULL;                                              
ffc12460:	91 21 00 8c 	stw     r9,140(r1)                             
ffc12464:	90 01 00 c4 	stw     r0,196(r1)                             
ffc12468:	92 c1 00 98 	stw     r22,152(r1)                            
ffc1246c:	92 e1 00 9c 	stw     r23,156(r1)                            
ffc12470:	93 01 00 a0 	stw     r24,160(r1)                            
ffc12474:	93 21 00 a4 	stw     r25,164(r1)                            
ffc12478:	93 61 00 ac 	stw     r27,172(r1)                            
ffc1247c:	93 c1 00 b8 	stw     r30,184(r1)                            
ffc12480:	93 e1 00 bc 	stw     r31,188(r1)                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc12484:	93 41 00 88 	stw     r26,136(r1)                            
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc12488:	93 81 00 90 	stw     r28,144(r1)                            
  rtems_chain_control purge_list;                                     
                                                                      
  rtems_chain_initialize_empty (&purge_list);                         
  rtems_bdbuf_lock_cache ();                                          
ffc1248c:	4b ff d6 9d 	bl      ffc0fb28 <rtems_bdbuf_lock_cache>      
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain(                   
  const Chain_Node *node                                              
)                                                                     
{                                                                     
  return (node->next == NULL) && (node->previous == NULL);            
ffc12490:	81 3d 00 64 	lwz     r9,100(r29)                            
ffc12494:	81 5d 00 68 	lwz     r10,104(r29)                           
ffc12498:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1249c:	41 9e 01 dc 	beq-    cr7,ffc12678 <rtems_bdbuf_purge_dev+0x23c><== ALWAYS TAKEN
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
ffc124a0:	39 00 00 00 	li      r8,0                                   <== NOT EXECUTED
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  next->previous = previous;                                          
ffc124a4:	91 49 00 04 	stw     r10,4(r9)                              <== NOT EXECUTED
  previous->next = next;                                              
ffc124a8:	91 2a 00 00 	stw     r9,0(r10)                              <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
ffc124ac:	91 1d 00 68 	stw     r8,104(r29)                            <== NOT EXECUTED
ffc124b0:	91 1d 00 64 	stw     r8,100(r29)                            <== NOT EXECUTED
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;                         
ffc124b4:	3f 60 00 00 	lis     r27,0                                  
ffc124b8:	3b 7b 2a 00 	addi    r27,r27,10752                          
ffc124bc:	83 fb 00 3c 	lwz     r31,60(r27)                            
                                                                      
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;          
ffc124c0:	39 20 ff ff 	li      r9,-1                                  
{                                                                     
  rtems_bdbuf_buffer *stack [RTEMS_BDBUF_AVL_MAX_HEIGHT];             
  rtems_bdbuf_buffer **prev = stack;                                  
  rtems_bdbuf_buffer *cur = bdbuf_cache.tree;                         
                                                                      
  *prev = NULL;                                                       
ffc124c4:	7c 3e 0b 78 	mr      r30,r1                                 
                                                                      
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;          
ffc124c8:	91 3d 00 6c 	stw     r9,108(r29)                            
  rtems_bdbuf_buffer **prev = stack;                                  
  rtems_bdbuf_buffer *cur = bdbuf_cache.tree;                         
                                                                      
  *prev = NULL;                                                       
                                                                      
  while (cur != NULL)                                                 
ffc124cc:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
{                                                                     
  rtems_bdbuf_buffer *stack [RTEMS_BDBUF_AVL_MAX_HEIGHT];             
  rtems_bdbuf_buffer **prev = stack;                                  
  rtems_bdbuf_buffer *cur = bdbuf_cache.tree;                         
                                                                      
  *prev = NULL;                                                       
ffc124d0:	39 20 00 00 	li      r9,0                                   
ffc124d4:	95 3e 00 08 	stwu    r9,8(r30)                              
                                                                      
  while (cur != NULL)                                                 
ffc124d8:	41 9e 00 a0 	beq-    cr7,ffc12578 <rtems_bdbuf_purge_dev+0x13c>
  {                                                                   
    if (cur->dd == dd)                                                
    {                                                                 
      switch (cur->state)                                             
ffc124dc:	3f 20 ff c2 	lis     r25,-62                                
ffc124e0:	3b 39 eb e0 	addi    r25,r25,-5152                          
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc124e4:	3a c0 00 06 	li      r22,6                                  
ffc124e8:	3a e0 00 0a 	li      r23,10                                 
        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);           
ffc124ec:	3b 1b 00 6c 	addi    r24,r27,108                            
ffc124f0:	48 00 00 1c 	b       ffc1250c <rtems_bdbuf_purge_dev+0xd0>  
        default:                                                      
          rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_STATE_11);             
      }                                                               
    }                                                                 
                                                                      
    if (cur->avl.left != NULL)                                        
ffc124f4:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc124f8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc124fc:	41 9e 00 30 	beq-    cr7,ffc1252c <rtems_bdbuf_purge_dev+0xf0>
    }                                                                 
    else if (cur->avl.right != NULL)                                  
    {                                                                 
      /* Right */                                                     
      ++prev;                                                         
      *prev = cur;                                                    
ffc12500:	93 fe 00 04 	stw     r31,4(r30)                             
ffc12504:	7d 3f 4b 78 	mr      r31,r9                                 
      cur = cur->avl.left;                                            
    }                                                                 
    else if (cur->avl.right != NULL)                                  
    {                                                                 
      /* Right */                                                     
      ++prev;                                                         
ffc12508:	3b de 00 04 	addi    r30,r30,4                              
                                                                      
  *prev = NULL;                                                       
                                                                      
  while (cur != NULL)                                                 
  {                                                                   
    if (cur->dd == dd)                                                
ffc1250c:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc12510:	7f 9d 48 00 	cmpw    cr7,r29,r9                             
ffc12514:	40 9e ff e0 	bne+    cr7,ffc124f4 <rtems_bdbuf_purge_dev+0xb8>
    {                                                                 
      switch (cur->state)                                             
ffc12518:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc1251c:	2b 89 00 0a 	cmplwi  cr7,r9,10                              
ffc12520:	40 9d 00 e8 	ble-    cr7,ffc12608 <rtems_bdbuf_purge_dev+0x1cc><== ALWAYS TAKEN
        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);             
ffc12524:	38 60 00 17 	li      r3,23                                  <== NOT EXECUTED
ffc12528:	4b ff d5 a5 	bl      ffc0facc <rtems_bdbuf_fatal>           <== NOT EXECUTED
      /* Left */                                                      
      ++prev;                                                         
      *prev = cur;                                                    
      cur = cur->avl.left;                                            
    }                                                                 
    else if (cur->avl.right != NULL)                                  
ffc1252c:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc12530:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc12534:	40 9e ff cc 	bne+    cr7,ffc12500 <rtems_bdbuf_purge_dev+0xc4>
      *prev = cur;                                                    
      cur = cur->avl.right;                                           
    }                                                                 
    else                                                              
    {                                                                 
      while (*prev != NULL                                            
ffc12538:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc1253c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc12540:	41 9e 00 38 	beq-    cr7,ffc12578 <rtems_bdbuf_purge_dev+0x13c>
ffc12544:	7f ca f3 78 	mr      r10,r30                                
ffc12548:	48 00 00 08 	b       ffc12550 <rtems_bdbuf_purge_dev+0x114> 
ffc1254c:	7d 09 43 78 	mr      r9,r8                                  
             && (cur == (*prev)->avl.right || (*prev)->avl.right == NULL))
ffc12550:	81 09 00 0c 	lwz     r8,12(r9)                              
ffc12554:	7d 5e 53 78 	mr      r30,r10                                
ffc12558:	7f 88 f8 00 	cmpw    cr7,r8,r31                             
ffc1255c:	41 9e 00 0c 	beq-    cr7,ffc12568 <rtems_bdbuf_purge_dev+0x12c>
ffc12560:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc12564:	40 9e 01 20 	bne-    cr7,ffc12684 <rtems_bdbuf_purge_dev+0x248>
      *prev = cur;                                                    
      cur = cur->avl.right;                                           
    }                                                                 
    else                                                              
    {                                                                 
      while (*prev != NULL                                            
ffc12568:	85 0a ff fc 	lwzu    r8,-4(r10)                             
ffc1256c:	7d 3f 4b 78 	mr      r31,r9                                 
ffc12570:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc12574:	40 9e ff d8 	bne+    cr7,ffc1254c <rtems_bdbuf_purge_dev+0x110>
ffc12578:	80 61 00 88 	lwz     r3,136(r1)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_purge_list (rtems_chain_control *purge_list)              
{                                                                     
  bool wake_buffer_waiters = false;                                   
ffc1257c:	39 00 00 00 	li      r8,0                                   
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc12580:	3b e0 00 01 	li      r31,1                                  
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
ffc12584:	7f 83 d0 00 	cmpw    cr7,r3,r26                             
ffc12588:	41 9e 00 34 	beq-    cr7,ffc125bc <rtems_bdbuf_purge_dev+0x180>
                                                                      
  while ((node = rtems_chain_get_unprotected (purge_list)) != NULL)   
  {                                                                   
    rtems_bdbuf_buffer *bd = (rtems_bdbuf_buffer *) node;             
                                                                      
    if (bd->waiters == 0)                                             
ffc1258c:	81 43 00 24 	lwz     r10,36(r3)                             
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
ffc12590:	81 23 00 00 	lwz     r9,0(r3)                               
ffc12594:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
                                                                      
  head->next = new_first;                                             
ffc12598:	91 21 00 88 	stw     r9,136(r1)                             
  new_first->previous = head;                                         
ffc1259c:	93 89 00 04 	stw     r28,4(r9)                              
ffc125a0:	40 9e 00 cc 	bne-    cr7,ffc1266c <rtems_bdbuf_purge_dev+0x230>
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc125a4:	93 e3 00 20 	stw     r31,32(r3)                             
ffc125a8:	4b ff df 15 	bl      ffc104bc <rtems_bdbuf_discard_buffer.part.9>
ffc125ac:	80 61 00 88 	lwz     r3,136(r1)                             
  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;                                     
ffc125b0:	39 00 00 01 	li      r8,1                                   
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
ffc125b4:	7f 83 d0 00 	cmpw    cr7,r3,r26                             
ffc125b8:	40 9e ff d4 	bne+    cr7,ffc1258c <rtems_bdbuf_purge_dev+0x150>
                                                                      
    rtems_bdbuf_discard_buffer (bd);                                  
  }                                                                   
                                                                      
  if (wake_buffer_waiters)                                            
ffc125bc:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc125c0:	41 be 00 0c 	beq+    cr7,ffc125cc <rtems_bdbuf_purge_dev+0x190>
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
ffc125c4:	38 7b 00 74 	addi    r3,r27,116                             
ffc125c8:	4b ff d8 b5 	bl      ffc0fe7c <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 ();                                        
ffc125cc:	4b ff d5 c1 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    
}                                                                     
ffc125d0:	80 01 00 c4 	lwz     r0,196(r1)                             
ffc125d4:	82 c1 00 98 	lwz     r22,152(r1)                            
ffc125d8:	7c 08 03 a6 	mtlr    r0                                     
ffc125dc:	82 e1 00 9c 	lwz     r23,156(r1)                            
ffc125e0:	83 01 00 a0 	lwz     r24,160(r1)                            
ffc125e4:	83 21 00 a4 	lwz     r25,164(r1)                            
ffc125e8:	83 41 00 a8 	lwz     r26,168(r1)                            
ffc125ec:	83 61 00 ac 	lwz     r27,172(r1)                            
ffc125f0:	83 81 00 b0 	lwz     r28,176(r1)                            
ffc125f4:	83 a1 00 b4 	lwz     r29,180(r1)                            
ffc125f8:	83 c1 00 b8 	lwz     r30,184(r1)                            
ffc125fc:	83 e1 00 bc 	lwz     r31,188(r1)                            
ffc12600:	38 21 00 c0 	addi    r1,r1,192                              
ffc12604:	4e 80 00 20 	blr                                            
                                                                      
  while (cur != NULL)                                                 
  {                                                                   
    if (cur->dd == dd)                                                
    {                                                                 
      switch (cur->state)                                             
ffc12608:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc1260c:	7d 39 48 2e 	lwzx    r9,r25,r9                              
ffc12610:	7d 29 ca 14 	add     r9,r9,r25                              
ffc12614:	7d 29 03 a6 	mtctr   r9                                     
ffc12618:	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);           
ffc1261c:	7f 03 c3 78 	mr      r3,r24                                 
ffc12620:	4b ff d8 5d 	bl      ffc0fe7c <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 ();                                        
}                                                                     
ffc12624:	81 3f 00 28 	lwz     r9,40(r31)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)                    
{                                                                     
  --bd->group->users;                                                 
ffc12628:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc1262c:	39 4a ff ff 	addi    r10,r10,-1                             
ffc12630:	91 49 00 0c 	stw     r10,12(r9)                             
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc12634:	81 3f 00 00 	lwz     r9,0(r31)                              
  previous       = the_node->previous;                                
ffc12638:	81 1f 00 04 	lwz     r8,4(r31)                              
  next->previous = previous;                                          
ffc1263c:	91 09 00 04 	stw     r8,4(r9)                               
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc12640:	81 41 00 90 	lwz     r10,144(r1)                            
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  next->previous = previous;                                          
  previous->next = next;                                              
ffc12644:	91 28 00 00 	stw     r9,0(r8)                               
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
  tail->previous = the_node;                                          
ffc12648:	93 e1 00 90 	stw     r31,144(r1)                            
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
ffc1264c:	93 5f 00 00 	stw     r26,0(r31)                             
  tail->previous = the_node;                                          
  old_last->next = the_node;                                          
  the_node->previous = old_last;                                      
ffc12650:	91 5f 00 04 	stw     r10,4(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;                                          
ffc12654:	93 ea 00 00 	stw     r31,0(r10)                             
ffc12658:	4b ff fe 9c 	b       ffc124f4 <rtems_bdbuf_purge_dev+0xb8>  
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc1265c:	92 df 00 20 	stw     r22,32(r31)                            
ffc12660:	4b ff fe 94 	b       ffc124f4 <rtems_bdbuf_purge_dev+0xb8>  
ffc12664:	92 ff 00 20 	stw     r23,32(r31)                            
ffc12668:	4b ff fe 8c 	b       ffc124f4 <rtems_bdbuf_purge_dev+0xb8>  
ffc1266c:	93 e3 00 20 	stw     r31,32(r3)                             
ffc12670:	7d 23 4b 78 	mr      r3,r9                                  
ffc12674:	4b ff ff 10 	b       ffc12584 <rtems_bdbuf_purge_dev+0x148> 
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain(                   
  const Chain_Node *node                                              
)                                                                     
{                                                                     
  return (node->next == NULL) && (node->previous == NULL);            
ffc12678:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1267c:	40 9e fe 24 	bne+    cr7,ffc124a0 <rtems_bdbuf_purge_dev+0x64><== NEVER TAKEN
ffc12680:	4b ff fe 34 	b       ffc124b4 <rtems_bdbuf_purge_dev+0x78>  
      cur = cur->avl.right;                                           
    }                                                                 
    else                                                              
    {                                                                 
      while (*prev != NULL                                            
             && (cur == (*prev)->avl.right || (*prev)->avl.right == NULL))
ffc12684:	7d 1f 43 78 	mr      r31,r8                                 
ffc12688:	4b ff fe 84 	b       ffc1250c <rtems_bdbuf_purge_dev+0xd0>  
                                                                      

ffc11eac <rtems_bdbuf_read>: rtems_status_code rtems_bdbuf_read (rtems_disk_device *dd, rtems_blkdev_bnum block, rtems_bdbuf_buffer **bd_ptr) {
ffc11eac:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc11eb0:	7c 08 02 a6 	mflr    r0                                     
ffc11eb4:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc11eb8:	7c 7f 1b 78 	mr      r31,r3                                 
ffc11ebc:	93 61 00 0c 	stw     r27,12(r1)                             
ffc11ec0:	7c bb 2b 78 	mr      r27,r5                                 
ffc11ec4:	93 81 00 10 	stw     r28,16(r1)                             
ffc11ec8:	7c 9c 23 78 	mr      r28,r4                                 
ffc11ecc:	93 a1 00 14 	stw     r29,20(r1)                             
     */                                                               
    *media_block_ptr = rtems_bdbuf_media_block (dd, block) + dd->start;
  }                                                                   
  else                                                                
  {                                                                   
    sc = RTEMS_INVALID_ID;                                            
ffc11ed0:	3b a0 00 04 	li      r29,4                                  
                                                                      
rtems_status_code                                                     
rtems_bdbuf_read (rtems_disk_device   *dd,                            
                  rtems_blkdev_bnum    block,                         
                  rtems_bdbuf_buffer **bd_ptr)                        
{                                                                     
ffc11ed4:	93 c1 00 18 	stw     r30,24(r1)                             
  rtems_status_code     sc = RTEMS_SUCCESSFUL;                        
  rtems_bdbuf_buffer   *bd = NULL;                                    
ffc11ed8:	3b c0 00 00 	li      r30,0                                  
                                                                      
rtems_status_code                                                     
rtems_bdbuf_read (rtems_disk_device   *dd,                            
                  rtems_blkdev_bnum    block,                         
                  rtems_bdbuf_buffer **bd_ptr)                        
{                                                                     
ffc11edc:	90 01 00 24 	stw     r0,36(r1)                              
ffc11ee0:	93 41 00 08 	stw     r26,8(r1)                              
  rtems_status_code     sc = RTEMS_SUCCESSFUL;                        
  rtems_bdbuf_buffer   *bd = NULL;                                    
  rtems_blkdev_bnum     media_block;                                  
                                                                      
  rtems_bdbuf_lock_cache ();                                          
ffc11ee4:	4b ff dc 45 	bl      ffc0fb28 <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)                                        
ffc11ee8:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc11eec:	7f 9c 48 40 	cmplw   cr7,r28,r9                             
ffc11ef0:	41 9c 00 38 	blt-    cr7,ffc11f28 <rtems_bdbuf_read+0x7c>   <== ALWAYS TAKEN
    }                                                                 
                                                                      
    rtems_bdbuf_check_read_ahead_trigger (dd, block);                 
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc11ef4:	4b ff dc 99 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    
                                                                      
  *bd_ptr = bd;                                                       
                                                                      
  return sc;                                                          
}                                                                     
ffc11ef8:	80 01 00 24 	lwz     r0,36(r1)                              
    rtems_bdbuf_check_read_ahead_trigger (dd, block);                 
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  *bd_ptr = bd;                                                       
ffc11efc:	93 db 00 00 	stw     r30,0(r27)                             
                                                                      
  return sc;                                                          
}                                                                     
ffc11f00:	7f a3 eb 78 	mr      r3,r29                                 
ffc11f04:	7c 08 03 a6 	mtlr    r0                                     
ffc11f08:	83 41 00 08 	lwz     r26,8(r1)                              
ffc11f0c:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc11f10:	83 81 00 10 	lwz     r28,16(r1)                             
ffc11f14:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc11f18:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc11f1c:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc11f20:	38 21 00 20 	addi    r1,r1,32                               
ffc11f24:	4e 80 00 20 	blr                                            
}                                                                     
                                                                      
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)                            
ffc11f28:	80 9f 00 30 	lwz     r4,48(r31)                             
ffc11f2c:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc11f30:	41 9c 01 68 	blt-    cr7,ffc12098 <rtems_bdbuf_read+0x1ec>  <== NEVER TAKEN
    return block << dd->block_to_media_block_shift;                   
ffc11f34:	7f 84 20 30 	slw     r4,r28,r4                              
    /*                                                                
     * 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;
ffc11f38:	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);         
ffc11f3c:	7f e3 fb 78 	mr      r3,r31                                 
ffc11f40:	7c 84 4a 14 	add     r4,r4,r9                               
ffc11f44:	4b ff eb 75 	bl      ffc10ab8 <rtems_bdbuf_get_buffer_for_access>
ffc11f48:	7c 7e 1b 78 	mr      r30,r3                                 
    switch (bd->state)                                                
ffc11f4c:	80 63 00 20 	lwz     r3,32(r3)                              
ffc11f50:	2f 83 00 02 	cmpwi   cr7,r3,2                               
ffc11f54:	41 9e 01 28 	beq-    cr7,ffc1207c <rtems_bdbuf_read+0x1d0>  
ffc11f58:	2f 83 00 07 	cmpwi   cr7,r3,7                               
ffc11f5c:	41 9e 00 14 	beq-    cr7,ffc11f70 <rtems_bdbuf_read+0xc4>   
ffc11f60:	2f 83 00 01 	cmpwi   cr7,r3,1                               
ffc11f64:	41 9e 00 88 	beq-    cr7,ffc11fec <rtems_bdbuf_read+0x140>  <== ALWAYS TAKEN
        {                                                             
          bd = NULL;                                                  
        }                                                             
        break;                                                        
      default:                                                        
        rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_4);
ffc11f68:	38 80 00 10 	li      r4,16                                  <== NOT EXECUTED
ffc11f6c:	4b ff db cd 	bl      ffc0fb38 <rtems_bdbuf_fatal_with_state><== NOT EXECUTED
      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;                                        
ffc11f70:	81 3f 00 44 	lwz     r9,68(r31)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc11f74:	3b a0 00 00 	li      r29,0                                  
      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;                                        
ffc11f78:	39 29 00 01 	addi    r9,r9,1                                
ffc11f7c:	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;                                                  
ffc11f80:	39 20 00 04 	li      r9,4                                   
ffc11f84:	91 3e 00 20 	stw     r9,32(r30)                             
                                                                      
static void                                                           
rtems_bdbuf_check_read_ahead_trigger (rtems_disk_device *dd,          
                                      rtems_blkdev_bnum  block)       
{                                                                     
  if (bdbuf_cache.read_ahead_task != 0                                
ffc11f88:	3f 40 00 00 	lis     r26,0                                  
ffc11f8c:	3b 5a 2a 00 	addi    r26,r26,10752                          
ffc11f90:	80 7a 00 84 	lwz     r3,132(r26)                            
ffc11f94:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc11f98:	41 be ff 5c 	beq-    cr7,ffc11ef4 <rtems_bdbuf_read+0x48>   
      && dd->read_ahead.trigger == block                              
ffc11f9c:	81 3f 00 6c 	lwz     r9,108(r31)                            
ffc11fa0:	7f 9c 48 00 	cmpw    cr7,r28,r9                             
ffc11fa4:	40 9e ff 50 	bne+    cr7,ffc11ef4 <rtems_bdbuf_read+0x48>   
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain(                   
  const Chain_Node *node                                              
)                                                                     
{                                                                     
  return (node->next == NULL) && (node->previous == NULL);            
ffc11fa8:	81 3f 00 64 	lwz     r9,100(r31)                            
ffc11fac:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc11fb0:	40 9e ff 44 	bne+    cr7,ffc11ef4 <rtems_bdbuf_read+0x48>   <== NEVER TAKEN
ffc11fb4:	81 3f 00 68 	lwz     r9,104(r31)                            
ffc11fb8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc11fbc:	40 9e ff 38 	bne+    cr7,ffc11ef4 <rtems_bdbuf_read+0x48>   <== NEVER TAKEN
      && !rtems_bdbuf_is_read_ahead_active (dd))                      
  {                                                                   
    rtems_status_code sc;                                             
    rtems_chain_control *chain = &bdbuf_cache.read_ahead_chain;       
                                                                      
    if (rtems_chain_is_empty (chain))                                 
ffc11fc0:	81 3a 00 88 	lwz     r9,136(r26)                            
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc11fc4:	3b 9a 00 8c 	addi    r28,r26,140                            
ffc11fc8:	7f 89 e0 00 	cmpw    cr7,r9,r28                             
ffc11fcc:	41 9e 01 08 	beq-    cr7,ffc120d4 <rtems_bdbuf_read+0x228>  <== ALWAYS TAKEN
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc11fd0:	81 3a 00 90 	lwz     r9,144(r26)                            
                             RTEMS_BDBUF_READ_AHEAD_WAKE_UP);         
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_RA_WAKE_UP);             
    }                                                                 
                                                                      
    rtems_chain_append_unprotected (chain, &dd->read_ahead.node);     
ffc11fd4:	39 5f 00 64 	addi    r10,r31,100                            
                                                                      
  the_node->next = tail;                                              
ffc11fd8:	93 9f 00 64 	stw     r28,100(r31)                           
  tail->previous = the_node;                                          
ffc11fdc:	91 5a 00 90 	stw     r10,144(r26)                           
  old_last->next = the_node;                                          
ffc11fe0:	91 49 00 00 	stw     r10,0(r9)                              
  the_node->previous = old_last;                                      
ffc11fe4:	91 3f 00 68 	stw     r9,104(r31)                            
ffc11fe8:	4b ff ff 0c 	b       ffc11ef4 <rtems_bdbuf_read+0x48>       
                                                                      
static void                                                           
rtems_bdbuf_set_read_ahead_trigger (rtems_disk_device *dd,            
                                    rtems_blkdev_bnum  block)         
{                                                                     
  if (dd->read_ahead.trigger != block)                                
ffc11fec:	81 5f 00 6c 	lwz     r10,108(r31)                           
      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;                                      
ffc11ff0:	81 3f 00 48 	lwz     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)                                
ffc11ff4:	7f 9c 50 00 	cmpw    cr7,r28,r10                            
      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;                                      
ffc11ff8:	39 29 00 01 	addi    r9,r9,1                                
ffc11ffc:	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)                                
ffc12000:	41 9e 00 38 	beq-    cr7,ffc12038 <rtems_bdbuf_read+0x18c>  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain(                   
  const Chain_Node *node                                              
)                                                                     
{                                                                     
  return (node->next == NULL) && (node->previous == NULL);            
ffc12004:	81 3f 00 64 	lwz     r9,100(r31)                            
ffc12008:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1200c:	41 9e 00 b8 	beq-    cr7,ffc120c4 <rtems_bdbuf_read+0x218>  <== ALWAYS TAKEN
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
ffc12010:	81 1f 00 68 	lwz     r8,104(r31)                            <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
ffc12014:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
  next->previous = previous;                                          
ffc12018:	91 09 00 04 	stw     r8,4(r9)                               <== NOT EXECUTED
  previous->next = next;                                              
ffc1201c:	91 28 00 00 	stw     r9,0(r8)                               <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
ffc12020:	91 5f 00 68 	stw     r10,104(r31)                           <== NOT EXECUTED
ffc12024:	91 5f 00 64 	stw     r10,100(r31)                           <== NOT EXECUTED
  {                                                                   
    rtems_bdbuf_read_ahead_cancel (dd);                               
    dd->read_ahead.trigger = block + 1;                               
ffc12028:	39 5c 00 01 	addi    r10,r28,1                              
    dd->read_ahead.next = block + 2;                                  
ffc1202c:	39 3c 00 02 	addi    r9,r28,2                               
                                    rtems_blkdev_bnum  block)         
{                                                                     
  if (dd->read_ahead.trigger != block)                                
  {                                                                   
    rtems_bdbuf_read_ahead_cancel (dd);                               
    dd->read_ahead.trigger = block + 1;                               
ffc12030:	91 5f 00 6c 	stw     r10,108(r31)                           
    dd->read_ahead.next = block + 2;                                  
ffc12034:	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);            
ffc12038:	7f e3 fb 78 	mr      r3,r31                                 
ffc1203c:	7f c4 f3 78 	mr      r4,r30                                 
ffc12040:	38 a0 00 01 	li      r5,1                                   
ffc12044:	4b ff f5 e5 	bl      ffc11628 <rtems_bdbuf_execute_read_request>
        if (sc == RTEMS_SUCCESSFUL)                                   
ffc12048:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc1204c:	40 82 00 70 	bne-    ffc120bc <rtems_bdbuf_read+0x210>      
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc12050:	81 3e 00 00 	lwz     r9,0(r30)                              
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc12054:	39 00 00 03 	li      r8,3                                   
  previous       = the_node->previous;                                
ffc12058:	81 5e 00 04 	lwz     r10,4(r30)                             
ffc1205c:	91 1e 00 20 	stw     r8,32(r30)                             
  next->previous = previous;                                          
  previous->next = next;                                              
ffc12060:	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;                                          
ffc12064:	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 ();                                        
}                                                                     
ffc12068:	81 3e 00 28 	lwz     r9,40(r30)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_obtain (rtems_bdbuf_buffer *bd)                     
{                                                                     
  ++bd->group->users;                                                 
ffc1206c:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc12070:	39 4a 00 01 	addi    r10,r10,1                              
ffc12074:	91 49 00 0c 	stw     r10,12(r9)                             
ffc12078:	4b ff ff 10 	b       ffc11f88 <rtems_bdbuf_read+0xdc>       
                                                                      
    bd = rtems_bdbuf_get_buffer_for_access (dd, media_block);         
    switch (bd->state)                                                
    {                                                                 
      case RTEMS_BDBUF_STATE_CACHED:                                  
        ++dd->stats.read_hits;                                        
ffc1207c:	81 3f 00 44 	lwz     r9,68(r31)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc12080:	3b a0 00 00 	li      r29,0                                  
                                                                      
    bd = rtems_bdbuf_get_buffer_for_access (dd, media_block);         
    switch (bd->state)                                                
    {                                                                 
      case RTEMS_BDBUF_STATE_CACHED:                                  
        ++dd->stats.read_hits;                                        
ffc12084:	39 29 00 01 	addi    r9,r9,1                                
ffc12088:	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;                                                  
ffc1208c:	39 20 00 03 	li      r9,3                                   
ffc12090:	91 3e 00 20 	stw     r9,32(r30)                             
ffc12094:	4b ff fe f4 	b       ffc11f88 <rtems_bdbuf_read+0xdc>       
    /*                                                                
     * 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); 
ffc12098:	80 7f 00 24 	lwz     r3,36(r31)                             <== NOT EXECUTED
ffc1209c:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc120a0:	80 df 00 20 	lwz     r6,32(r31)                             <== NOT EXECUTED
ffc120a4:	7d 5c 19 d6 	mullw   r10,r28,r3                             <== NOT EXECUTED
ffc120a8:	7d 3c 18 16 	mulhwu  r9,r28,r3                              <== NOT EXECUTED
ffc120ac:	7d 44 53 78 	mr      r4,r10                                 <== NOT EXECUTED
ffc120b0:	7d 23 4b 78 	mr      r3,r9                                  <== NOT EXECUTED
ffc120b4:	48 00 a8 75 	bl      ffc1c928 <__udivdi3>                   <== NOT EXECUTED
ffc120b8:	4b ff fe 80 	b       ffc11f38 <rtems_bdbuf_read+0x8c>       <== NOT EXECUTED
          rtems_chain_extract_unprotected (&bd->link);                
          rtems_bdbuf_group_obtain (bd);                              
        }                                                             
        else                                                          
        {                                                             
          bd = NULL;                                                  
ffc120bc:	3b c0 00 00 	li      r30,0                                  
ffc120c0:	4b ff fe c8 	b       ffc11f88 <rtems_bdbuf_read+0xdc>       
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain(                   
  const Chain_Node *node                                              
)                                                                     
{                                                                     
  return (node->next == NULL) && (node->previous == NULL);            
ffc120c4:	81 5f 00 68 	lwz     r10,104(r31)                           
ffc120c8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc120cc:	40 9e ff 44 	bne+    cr7,ffc12010 <rtems_bdbuf_read+0x164>  <== NEVER TAKEN
ffc120d0:	4b ff ff 58 	b       ffc12028 <rtems_bdbuf_read+0x17c>      
    rtems_status_code sc;                                             
    rtems_chain_control *chain = &bdbuf_cache.read_ahead_chain;       
                                                                      
    if (rtems_chain_is_empty (chain))                                 
    {                                                                 
      sc = rtems_event_send (bdbuf_cache.read_ahead_task,             
ffc120d4:	38 80 00 02 	li      r4,2                                   
ffc120d8:	4b ff 89 09 	bl      ffc0a9e0 <rtems_event_send>            
                             RTEMS_BDBUF_READ_AHEAD_WAKE_UP);         
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc120dc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc120e0:	41 9e fe f0 	beq+    cr7,ffc11fd0 <rtems_bdbuf_read+0x124>  <== ALWAYS TAKEN
        rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_RA_WAKE_UP);             
ffc120e4:	38 60 00 07 	li      r3,7                                   <== NOT EXECUTED
ffc120e8:	4b ff d9 e5 	bl      ffc0facc <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                                                      

ffc1178c <rtems_bdbuf_read_ahead_task>: return sc; } static rtems_task rtems_bdbuf_read_ahead_task (rtems_task_argument arg) {
ffc1178c:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc11790:	7c 08 02 a6 	mflr    r0                                     
ffc11794:	93 81 00 20 	stw     r28,32(r1)                             
  rtems_chain_control *chain = &bdbuf_cache.read_ahead_chain;         
                                                                      
  while (bdbuf_cache.read_ahead_enabled)                              
ffc11798:	3f 80 00 00 	lis     r28,0                                  
ffc1179c:	3b 9c 2a 00 	addi    r28,r28,10752                          
ffc117a0:	89 3c 00 94 	lbz     r9,148(r28)                            
  return sc;                                                          
}                                                                     
                                                                      
static rtems_task                                                     
rtems_bdbuf_read_ahead_task (rtems_task_argument arg)                 
{                                                                     
ffc117a4:	90 01 00 34 	stw     r0,52(r1)                              
  rtems_chain_control *chain = &bdbuf_cache.read_ahead_chain;         
                                                                      
  while (bdbuf_cache.read_ahead_enabled)                              
ffc117a8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
  return sc;                                                          
}                                                                     
                                                                      
static rtems_task                                                     
rtems_bdbuf_read_ahead_task (rtems_task_argument arg)                 
{                                                                     
ffc117ac:	92 c1 00 08 	stw     r22,8(r1)                              
ffc117b0:	92 e1 00 0c 	stw     r23,12(r1)                             
ffc117b4:	93 01 00 10 	stw     r24,16(r1)                             
ffc117b8:	93 21 00 14 	stw     r25,20(r1)                             
ffc117bc:	93 41 00 18 	stw     r26,24(r1)                             
ffc117c0:	93 61 00 1c 	stw     r27,28(r1)                             
ffc117c4:	93 a1 00 24 	stw     r29,36(r1)                             
ffc117c8:	93 c1 00 28 	stw     r30,40(r1)                             
ffc117cc:	93 e1 00 2c 	stw     r31,44(r1)                             
  rtems_chain_control *chain = &bdbuf_cache.read_ahead_chain;         
                                                                      
  while (bdbuf_cache.read_ahead_enabled)                              
ffc117d0:	41 9e 00 78 	beq-    cr7,ffc11848 <rtems_bdbuf_read_ahead_task+0xbc><== NEVER TAKEN
ffc117d4:	3b 5c 00 8c 	addi    r26,r28,140                            
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc117d8:	7f 9b e3 78 	mr      r27,r28                                
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
                                                                      
  head->next = new_first;                                             
  new_first->previous = head;                                         
ffc117dc:	3b 3c 00 88 	addi    r25,r28,136                            
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
ffc117e0:	3b a0 00 00 	li      r29,0                                  
          rtems_bdbuf_execute_read_request (dd, bd, transfer_count);  
        }                                                             
      }                                                               
      else                                                            
      {                                                               
        dd->read_ahead.trigger = RTEMS_DISK_READ_AHEAD_NO_TRIGGER;    
ffc117e4:	3a e0 ff ff 	li      r23,-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;
ffc117e8:	3e c0 ff c2 	lis     r22,-62                                
                                                                      
  while (bdbuf_cache.read_ahead_enabled)                              
  {                                                                   
    rtems_chain_node *node;                                           
                                                                      
    rtems_bdbuf_wait_for_event (RTEMS_BDBUF_READ_AHEAD_WAKE_UP);      
ffc117ec:	38 60 00 02 	li      r3,2                                   
ffc117f0:	4b ff e5 69 	bl      ffc0fd58 <rtems_bdbuf_wait_for_event>  
    rtems_bdbuf_lock_cache ();                                        
ffc117f4:	4b ff e3 35 	bl      ffc0fb28 <rtems_bdbuf_lock_cache>      
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc117f8:	83 fc 00 88 	lwz     r31,136(r28)                           
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
ffc117fc:	7f 9f d0 00 	cmpw    cr7,r31,r26                            
ffc11800:	41 9e 00 38 	beq-    cr7,ffc11838 <rtems_bdbuf_read_ahead_task+0xac>
                                                                      
    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;                  
ffc11804:	83 df 00 0c 	lwz     r30,12(r31)                            
                             rtems_blkdev_bnum        block,          
                             rtems_blkdev_bnum       *media_block_ptr)
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (block < dd->block_count)                                        
ffc11808:	81 5f ff c4 	lwz     r10,-60(r31)                           
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
ffc1180c:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc11810:	7f 9e 50 40 	cmplw   cr7,r30,r10                            
                                                                      
  head->next = new_first;                                             
ffc11814:	91 3b 00 88 	stw     r9,136(r27)                            
  new_first->previous = head;                                         
ffc11818:	93 29 00 04 	stw     r25,4(r9)                              
ffc1181c:	41 9c 00 68 	blt-    cr7,ffc11884 <rtems_bdbuf_read_ahead_task+0xf8>
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
ffc11820:	93 bf 00 00 	stw     r29,0(r31)                             
ffc11824:	93 bf 00 04 	stw     r29,4(r31)                             
          rtems_bdbuf_execute_read_request (dd, bd, transfer_count);  
        }                                                             
      }                                                               
      else                                                            
      {                                                               
        dd->read_ahead.trigger = RTEMS_DISK_READ_AHEAD_NO_TRIGGER;    
ffc11828:	92 ff 00 08 	stw     r23,8(r31)                             
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc1182c:	83 fc 00 88 	lwz     r31,136(r28)                           
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
ffc11830:	7f 9f d0 00 	cmpw    cr7,r31,r26                            
ffc11834:	40 9e ff d0 	bne+    cr7,ffc11804 <rtems_bdbuf_read_ahead_task+0x78><== NEVER TAKEN
      }                                                               
    }                                                                 
                                                                      
    rtems_bdbuf_unlock_cache ();                                      
ffc11838:	4b ff e3 55 	bl      ffc0fb8c <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)                              
ffc1183c:	89 3b 00 94 	lbz     r9,148(r27)                            
ffc11840:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc11844:	40 9e ff a8 	bne+    cr7,ffc117ec <rtems_bdbuf_read_ahead_task+0x60><== ALWAYS TAKEN
                                                                      
    rtems_bdbuf_unlock_cache ();                                      
  }                                                                   
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
}                                                                     
ffc11848:	80 01 00 34 	lwz     r0,52(r1)                              <== NOT EXECUTED
    }                                                                 
                                                                      
    rtems_bdbuf_unlock_cache ();                                      
  }                                                                   
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
ffc1184c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
}                                                                     
ffc11850:	82 c1 00 08 	lwz     r22,8(r1)                              <== NOT EXECUTED
ffc11854:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc11858:	82 e1 00 0c 	lwz     r23,12(r1)                             <== NOT EXECUTED
ffc1185c:	83 01 00 10 	lwz     r24,16(r1)                             <== NOT EXECUTED
ffc11860:	83 21 00 14 	lwz     r25,20(r1)                             <== NOT EXECUTED
ffc11864:	83 41 00 18 	lwz     r26,24(r1)                             <== NOT EXECUTED
ffc11868:	83 61 00 1c 	lwz     r27,28(r1)                             <== NOT EXECUTED
ffc1186c:	83 81 00 20 	lwz     r28,32(r1)                             <== NOT EXECUTED
ffc11870:	83 a1 00 24 	lwz     r29,36(r1)                             <== NOT EXECUTED
ffc11874:	83 c1 00 28 	lwz     r30,40(r1)                             <== NOT EXECUTED
ffc11878:	83 e1 00 2c 	lwz     r31,44(r1)                             <== NOT EXECUTED
ffc1187c:	38 21 00 30 	addi    r1,r1,48                               <== NOT EXECUTED
    }                                                                 
                                                                      
    rtems_bdbuf_unlock_cache ();                                      
  }                                                                   
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
ffc11880:	4b ff 9b 60 	b       ffc0b3e0 <rtems_task_delete>           <== NOT EXECUTED
}                                                                     
                                                                      
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)                            
ffc11884:	80 9f ff cc 	lwz     r4,-52(r31)                            
ffc11888:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc1188c:	41 9c 00 78 	blt-    cr7,ffc11904 <rtems_bdbuf_read_ahead_task+0x178><== NEVER TAKEN
    return block << dd->block_to_media_block_shift;                   
ffc11890:	7f c4 20 30 	slw     r4,r30,r4                              
    /*                                                                
     * 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;
ffc11894:	81 3f ff b4 	lwz     r9,-76(r31)                            
    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 *)                   
ffc11898:	3b 1f ff 9c 	addi    r24,r31,-100                           
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
ffc1189c:	93 bf 00 04 	stw     r29,4(r31)                             
                                                                      
      rtems_chain_set_off_chain (&dd->read_ahead.node);               
                                                                      
      if (sc == RTEMS_SUCCESSFUL)                                     
      {                                                               
        rtems_bdbuf_buffer *bd =                                      
ffc118a0:	7f 03 c3 78 	mr      r3,r24                                 
ffc118a4:	7c 84 4a 14 	add     r4,r4,r9                               
ffc118a8:	93 bf 00 00 	stw     r29,0(r31)                             
ffc118ac:	4b ff f1 7d 	bl      ffc10a28 <rtems_bdbuf_get_buffer_for_read_ahead>
          rtems_bdbuf_get_buffer_for_read_ahead (dd, media_block);    
                                                                      
        if (bd != NULL)                                               
ffc118b0:	7c 64 1b 79 	mr.     r4,r3                                  
ffc118b4:	41 a2 ff 44 	beq-    ffc117f8 <rtems_bdbuf_read_ahead_task+0x6c><== NEVER TAKEN
        {                                                             
          uint32_t transfer_count = dd->block_count - block;          
ffc118b8:	80 bf ff c4 	lwz     r5,-60(r31)                            
          uint32_t max_transfer_count = bdbuf_config.max_read_ahead_blocks;
ffc118bc:	81 36 dc 5c 	lwz     r9,-9124(r22)                          
        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;          
ffc118c0:	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)                   
ffc118c4:	7f 85 48 40 	cmplw   cr7,r5,r9                              
ffc118c8:	41 9c 00 34 	blt-    cr7,ffc118fc <rtems_bdbuf_read_ahead_task+0x170>
          {                                                           
            transfer_count = max_transfer_count;                      
            dd->read_ahead.trigger = block + transfer_count / 2;      
ffc118cc:	55 2a f8 7e 	rlwinm  r10,r9,31,1,31                         
ffc118d0:	7d 4a f2 14 	add     r10,r10,r30                            
            dd->read_ahead.next = block + transfer_count;             
ffc118d4:	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;      
ffc118d8:	91 5f 00 08 	stw     r10,8(r31)                             
            dd->read_ahead.next = block + transfer_count;             
ffc118dc:	7d 25 4b 78 	mr      r5,r9                                  
ffc118e0:	93 df 00 0c 	stw     r30,12(r31)                            
          else                                                        
          {                                                           
            dd->read_ahead.trigger = RTEMS_DISK_READ_AHEAD_NO_TRIGGER;
          }                                                           
                                                                      
          ++dd->stats.read_ahead_transfers;                           
ffc118e4:	81 3f ff e8 	lwz     r9,-24(r31)                            
          rtems_bdbuf_execute_read_request (dd, bd, transfer_count);  
ffc118e8:	7f 03 c3 78 	mr      r3,r24                                 
          else                                                        
          {                                                           
            dd->read_ahead.trigger = RTEMS_DISK_READ_AHEAD_NO_TRIGGER;
          }                                                           
                                                                      
          ++dd->stats.read_ahead_transfers;                           
ffc118ec:	39 29 00 01 	addi    r9,r9,1                                
ffc118f0:	91 3f ff e8 	stw     r9,-24(r31)                            
          rtems_bdbuf_execute_read_request (dd, bd, transfer_count);  
ffc118f4:	4b ff fd 35 	bl      ffc11628 <rtems_bdbuf_execute_read_request>
ffc118f8:	4b ff ff 00 	b       ffc117f8 <rtems_bdbuf_read_ahead_task+0x6c>
            dd->read_ahead.trigger = block + transfer_count / 2;      
            dd->read_ahead.next = block + transfer_count;             
          }                                                           
          else                                                        
          {                                                           
            dd->read_ahead.trigger = RTEMS_DISK_READ_AHEAD_NO_TRIGGER;
ffc118fc:	92 ff 00 08 	stw     r23,8(r31)                             
ffc11900:	4b ff ff e4 	b       ffc118e4 <rtems_bdbuf_read_ahead_task+0x158>
    /*                                                                
     * 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); 
ffc11904:	80 7f ff c0 	lwz     r3,-64(r31)                            <== NOT EXECUTED
ffc11908:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc1190c:	80 df ff bc 	lwz     r6,-68(r31)                            <== NOT EXECUTED
ffc11910:	7d 43 f1 d6 	mullw   r10,r3,r30                             <== NOT EXECUTED
ffc11914:	7d 23 f0 16 	mulhwu  r9,r3,r30                              <== NOT EXECUTED
ffc11918:	7d 44 53 78 	mr      r4,r10                                 <== NOT EXECUTED
ffc1191c:	7d 23 4b 78 	mr      r3,r9                                  <== NOT EXECUTED
ffc11920:	48 00 b0 09 	bl      ffc1c928 <__udivdi3>                   <== NOT EXECUTED
ffc11924:	4b ff ff 70 	b       ffc11894 <rtems_bdbuf_read_ahead_task+0x108><== NOT EXECUTED
                                                                      

ffc120ec <rtems_bdbuf_release>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_bdbuf_release (rtems_bdbuf_buffer *bd) {
ffc120ec:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc120f0:	7c 08 02 a6 	mflr    r0                                     
ffc120f4:	93 e1 00 0c 	stw     r31,12(r1)                             
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{                                                                     
  if (bd == NULL)                                                     
ffc120f8:	7c 7f 1b 79 	mr.     r31,r3                                 
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_bdbuf_release (rtems_bdbuf_buffer *bd)                          
{                                                                     
ffc120fc:	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)                                                     
ffc12100:	41 82 00 2c 	beq-    ffc1212c <rtems_bdbuf_release+0x40>    <== NEVER TAKEN
  if (rtems_bdbuf_tracer)                                             
  {                                                                   
    printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);              
    rtems_bdbuf_show_users (kind, bd);                                
  }                                                                   
  rtems_bdbuf_lock_cache();                                           
ffc12104:	4b ff da 25 	bl      ffc0fb28 <rtems_bdbuf_lock_cache>      
                                                                      
  sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release");           
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  switch (bd->state)                                                  
ffc12108:	80 7f 00 20 	lwz     r3,32(r31)                             
ffc1210c:	2f 83 00 04 	cmpwi   cr7,r3,4                               
ffc12110:	41 9e 00 48 	beq-    cr7,ffc12158 <rtems_bdbuf_release+0x6c>
ffc12114:	2b 83 00 04 	cmplwi  cr7,r3,4                               
ffc12118:	41 9d 00 2c 	bgt-    cr7,ffc12144 <rtems_bdbuf_release+0x58>
ffc1211c:	2f 83 00 03 	cmpwi   cr7,r3,3                               
ffc12120:	41 9e 00 5c 	beq-    cr7,ffc1217c <rtems_bdbuf_release+0x90><== ALWAYS TAKEN
      break;                                                          
    case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                           
      rtems_bdbuf_add_to_modified_list_after_access (bd);             
      break;                                                          
    default:                                                          
      rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_0);
ffc12124:	38 80 00 0e 	li      r4,14                                  <== NOT EXECUTED
ffc12128:	4b ff da 11 	bl      ffc0fb38 <rtems_bdbuf_fatal_with_state><== NOT EXECUTED
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc1212c:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
                                                                      
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;                                     
ffc12130:	38 60 00 09 	li      r3,9                                   <== NOT EXECUTED
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc12134:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc12138:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc1213c:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc12140:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      
  sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release");           
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  switch (bd->state)                                                  
ffc12144:	2b 83 00 06 	cmplwi  cr7,r3,6                               
ffc12148:	41 bd ff dc 	bgt-    cr7,ffc12124 <rtems_bdbuf_release+0x38><== NEVER TAKEN
    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);                   
ffc1214c:	7f e3 fb 78 	mr      r3,r31                                 
ffc12150:	4b ff e3 c1 	bl      ffc10510 <rtems_bdbuf_discard_buffer_after_access>
      break;                                                          
ffc12154:	48 00 00 0c 	b       ffc12160 <rtems_bdbuf_release+0x74>    
    case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                           
      rtems_bdbuf_add_to_modified_list_after_access (bd);             
ffc12158:	7f e3 fb 78 	mr      r3,r31                                 
ffc1215c:	4b ff dd 61 	bl      ffc0febc <rtems_bdbuf_add_to_modified_list_after_access>
  }                                                                   
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc12160:	4b ff da 2d 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc12164:	80 01 00 14 	lwz     r0,20(r1)                              
ffc12168:	83 e1 00 0c 	lwz     r31,12(r1)                             
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc1216c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc12170:	7c 08 03 a6 	mtlr    r0                                     
ffc12174:	38 21 00 10 	addi    r1,r1,16                               
ffc12178:	4e 80 00 20 	blr                                            
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)                                                    
ffc1217c:	81 3f 00 24 	lwz     r9,36(r31)                             
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc12180:	3c 60 00 00 	lis     r3,0                                   
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 ();                                        
}                                                                     
ffc12184:	81 5f 00 28 	lwz     r10,40(r31)                            
ffc12188:	38 63 2a 00 	addi    r3,r3,10752                            
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)                                                    
ffc1218c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc12190:	81 23 00 48 	lwz     r9,72(r3)                              
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_group_release (rtems_bdbuf_buffer *bd)                    
{                                                                     
  --bd->group->users;                                                 
ffc12194:	81 0a 00 0c 	lwz     r8,12(r10)                             
                                                                      
  the_node->next = tail;                                              
ffc12198:	38 e3 00 44 	addi    r7,r3,68                               
ffc1219c:	39 08 ff ff 	addi    r8,r8,-1                               
ffc121a0:	91 0a 00 0c 	stw     r8,12(r10)                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc121a4:	39 40 00 02 	li      r10,2                                  
ffc121a8:	91 5f 00 20 	stw     r10,32(r31)                            
ffc121ac:	90 ff 00 00 	stw     r7,0(r31)                              
  tail->previous = the_node;                                          
ffc121b0:	93 e3 00 48 	stw     r31,72(r3)                             
  old_last->next = the_node;                                          
ffc121b4:	93 e9 00 00 	stw     r31,0(r9)                              
  the_node->previous = old_last;                                      
ffc121b8:	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)                                                    
ffc121bc:	40 9e 00 10 	bne-    cr7,ffc121cc <rtems_bdbuf_release+0xe0>
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
  else                                                                
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
ffc121c0:	38 63 00 74 	addi    r3,r3,116                              
ffc121c4:	4b ff dc b9 	bl      ffc0fe7c <rtems_bdbuf_wake>            
ffc121c8:	4b ff ff 98 	b       ffc12160 <rtems_bdbuf_release+0x74>    
{                                                                     
  rtems_bdbuf_group_release (bd);                                     
  rtems_bdbuf_make_cached_and_add_to_lru_list (bd);                   
                                                                      
  if (bd->waiters)                                                    
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
ffc121cc:	38 63 00 64 	addi    r3,r3,100                              
ffc121d0:	4b ff dc ad 	bl      ffc0fe7c <rtems_bdbuf_wake>            
ffc121d4:	4b ff ff 8c 	b       ffc12160 <rtems_bdbuf_release+0x74>    
                                                                      

ffc121d8 <rtems_bdbuf_release_modified>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_bdbuf_release_modified (rtems_bdbuf_buffer *bd) {
ffc121d8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc121dc:	7c 08 02 a6 	mflr    r0                                     
ffc121e0:	93 e1 00 0c 	stw     r31,12(r1)                             
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{                                                                     
  if (bd == NULL)                                                     
ffc121e4:	7c 7f 1b 79 	mr.     r31,r3                                 
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_bdbuf_release_modified (rtems_bdbuf_buffer *bd)                 
{                                                                     
ffc121e8:	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)                                                     
ffc121ec:	41 82 00 48 	beq-    ffc12234 <rtems_bdbuf_release_modified+0x5c><== NEVER TAKEN
  if (rtems_bdbuf_tracer)                                             
  {                                                                   
    printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);              
    rtems_bdbuf_show_users (kind, bd);                                
  }                                                                   
  rtems_bdbuf_lock_cache();                                           
ffc121f0:	4b ff d9 39 	bl      ffc0fb28 <rtems_bdbuf_lock_cache>      
                                                                      
  sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release modified");  
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  switch (bd->state)                                                  
ffc121f4:	80 7f 00 20 	lwz     r3,32(r31)                             
ffc121f8:	2b 83 00 03 	cmplwi  cr7,r3,3                               
ffc121fc:	40 9c 00 0c 	bge-    cr7,ffc12208 <rtems_bdbuf_release_modified+0x30><== ALWAYS TAKEN
      break;                                                          
    case RTEMS_BDBUF_STATE_ACCESS_PURGED:                             
      rtems_bdbuf_discard_buffer_after_access (bd);                   
      break;                                                          
    default:                                                          
      rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_6);
ffc12200:	38 80 00 12 	li      r4,18                                  <== NOT EXECUTED
ffc12204:	4b ff d9 35 	bl      ffc0fb38 <rtems_bdbuf_fatal_with_state><== NOT EXECUTED
                                                                      
  sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release modified");  
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  switch (bd->state)                                                  
ffc12208:	2b 83 00 05 	cmplwi  cr7,r3,5                               
ffc1220c:	41 9d 00 40 	bgt-    cr7,ffc1224c <rtems_bdbuf_release_modified+0x74>
  {                                                                   
    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);             
ffc12210:	7f e3 fb 78 	mr      r3,r31                                 
ffc12214:	4b ff dc a9 	bl      ffc0febc <rtems_bdbuf_add_to_modified_list_after_access>
  }                                                                   
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc12218:	4b ff d9 75 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc1221c:	80 01 00 14 	lwz     r0,20(r1)                              
ffc12220:	83 e1 00 0c 	lwz     r31,12(r1)                             
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc12224:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc12228:	7c 08 03 a6 	mtlr    r0                                     
ffc1222c:	38 21 00 10 	addi    r1,r1,16                               
ffc12230:	4e 80 00 20 	blr                                            
ffc12234:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
                                                                      
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;                                     
ffc12238:	38 60 00 09 	li      r3,9                                   <== NOT EXECUTED
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc1223c:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc12240:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc12244:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc12248:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      
  sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "release modified");  
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  switch (bd->state)                                                  
ffc1224c:	2f 83 00 06 	cmpwi   cr7,r3,6                               
ffc12250:	40 9e ff b0 	bne+    cr7,ffc12200 <rtems_bdbuf_release_modified+0x28><== NEVER TAKEN
    case RTEMS_BDBUF_STATE_ACCESS_EMPTY:                              
    case RTEMS_BDBUF_STATE_ACCESS_MODIFIED:                           
      rtems_bdbuf_add_to_modified_list_after_access (bd);             
      break;                                                          
    case RTEMS_BDBUF_STATE_ACCESS_PURGED:                             
      rtems_bdbuf_discard_buffer_after_access (bd);                   
ffc12254:	7f e3 fb 78 	mr      r3,r31                                 
ffc12258:	4b ff e2 b9 	bl      ffc10510 <rtems_bdbuf_discard_buffer_after_access>
      break;                                                          
ffc1225c:	4b ff ff bc 	b       ffc12218 <rtems_bdbuf_release_modified+0x40>
                                                                      

ffc10090 <rtems_bdbuf_remove_from_tree>: return bdbuf_cache.buffer_waiters.count; } static void rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd) {
ffc10090:	94 21 ff 60 	stwu    r1,-160(r1)                            
ffc10094:	7c 08 02 a6 	mflr    r0                                     
  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));                           
ffc10098:	38 80 00 00 	li      r4,0                                   
  return bdbuf_cache.buffer_waiters.count;                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)                 
{                                                                     
ffc1009c:	93 a1 00 94 	stw     r29,148(r1)                            
                       const rtems_bdbuf_buffer* node)                
{                                                                     
  const rtems_disk_device *dd = node->dd;                             
  rtems_blkdev_bnum block = node->block;                              
                                                                      
  rtems_bdbuf_buffer*  p = *root;                                     
ffc100a0:	3f a0 00 00 	lis     r29,0                                  
ffc100a4:	3b bd 2a 00 	addi    r29,r29,10752                          
  return bdbuf_cache.buffer_waiters.count;                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)                 
{                                                                     
ffc100a8:	93 61 00 8c 	stw     r27,140(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));                           
ffc100ac:	38 a0 00 80 	li      r5,128                                 
  return bdbuf_cache.buffer_waiters.count;                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)                 
{                                                                     
ffc100b0:	7c 7b 1b 78 	mr      r27,r3                                 
ffc100b4:	93 81 00 90 	stw     r28,144(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));                           
ffc100b8:	3b 81 00 08 	addi    r28,r1,8                               
ffc100bc:	7f 83 e3 78 	mr      r3,r28                                 
  return bdbuf_cache.buffer_waiters.count;                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)                 
{                                                                     
ffc100c0:	93 e1 00 9c 	stw     r31,156(r1)                            
ffc100c4:	90 01 00 a4 	stw     r0,164(r1)                             
ffc100c8:	93 41 00 88 	stw     r26,136(r1)                            
ffc100cc:	93 c1 00 98 	stw     r30,152(r1)                            
                       const rtems_bdbuf_buffer* node)                
{                                                                     
  const rtems_disk_device *dd = node->dd;                             
  rtems_blkdev_bnum block = node->block;                              
                                                                      
  rtems_bdbuf_buffer*  p = *root;                                     
ffc100d0:	83 fd 00 3c 	lwz     r31,60(r29)                            
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 ();                                        
}                                                                     
ffc100d4:	83 db 00 14 	lwz     r30,20(r27)                            
ffc100d8:	83 5b 00 18 	lwz     r26,24(r27)                            
  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));                           
ffc100dc:	48 00 8f 75 	bl      ffc19050 <memset>                      
                                                                      
  while (p != NULL)                                                   
ffc100e0:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc100e4:	41 9e 00 58 	beq-    cr7,ffc1013c <rtems_bdbuf_remove_from_tree+0xac><== NEVER TAKEN
  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;                          
ffc100e8:	7f 8a e3 78 	mr      r10,r28                                
    *buf_prev++ = p;                                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
        || ((p->dd == dd) && (p->block < block)))                     
    {                                                                 
      p->avl.cache = 1;                                               
ffc100ec:	38 e0 00 01 	li      r7,1                                   
      p = p->avl.right;                                               
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
    {                                                                 
      p->avl.cache = -1;                                              
ffc100f0:	38 c0 ff ff 	li      r6,-1                                  
ffc100f4:	48 00 00 20 	b       ffc10114 <rtems_bdbuf_remove_from_tree+0x84>
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
        || ((p->dd == dd) && (p->block < block)))                     
ffc100f8:	7f 9e 40 00 	cmpw    cr7,r30,r8                             
ffc100fc:	41 9e 00 4c 	beq-    cr7,ffc10148 <rtems_bdbuf_remove_from_tree+0xb8><== ALWAYS TAKEN
      p->avl.cache = 1;                                               
      p = p->avl.right;                                               
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
    {                                                                 
      p->avl.cache = -1;                                              
ffc10100:	98 df 00 10 	stb     r6,16(r31)                             
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
ffc10104:	7d 2a 4b 78 	mr      r10,r9                                 
      p = p->avl.right;                                               
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
    {                                                                 
      p->avl.cache = -1;                                              
      p = p->avl.left;                                                
ffc10108:	83 ff 00 08 	lwz     r31,8(r31)                             
                                                                      
  bool modified = false;                                              
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
                                                                      
  while (p != NULL)                                                   
ffc1010c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc10110:	41 9e 00 2c 	beq-    cr7,ffc1013c <rtems_bdbuf_remove_from_tree+0xac><== NEVER TAKEN
  {                                                                   
    *buf_prev++ = p;                                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
ffc10114:	81 1f 00 14 	lwz     r8,20(r31)                             
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
ffc10118:	39 2a 00 04 	addi    r9,r10,4                               
ffc1011c:	93 ea 00 00 	stw     r31,0(r10)                             
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
ffc10120:	7f 88 f0 40 	cmplw   cr7,r8,r30                             
ffc10124:	40 bc ff d4 	bge-    cr7,ffc100f8 <rtems_bdbuf_remove_from_tree+0x68><== ALWAYS TAKEN
        || ((p->dd == dd) && (p->block < block)))                     
    {                                                                 
      p->avl.cache = 1;                                               
ffc10128:	98 ff 00 10 	stb     r7,16(r31)                             
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
ffc1012c:	7d 2a 4b 78 	mr      r10,r9                                 
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
        || ((p->dd == dd) && (p->block < block)))                     
    {                                                                 
      p->avl.cache = 1;                                               
      p = p->avl.right;                                               
ffc10130:	83 ff 00 0c 	lwz     r31,12(r31)                            
                                                                      
  bool modified = false;                                              
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
                                                                      
  while (p != NULL)                                                   
ffc10134:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc10138:	40 9e ff dc 	bne+    cr7,ffc10114 <rtems_bdbuf_remove_from_tree+0x84><== ALWAYS TAKEN
                                                                      
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);
ffc1013c:	80 7b 00 20 	lwz     r3,32(r27)                             <== NOT EXECUTED
ffc10140:	38 80 00 1b 	li      r4,27                                  <== NOT EXECUTED
ffc10144:	4b ff f9 f5 	bl      ffc0fb38 <rtems_bdbuf_fatal_with_state><== NOT EXECUTED
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
                                                                      
    if (((uintptr_t) p->dd < (uintptr_t) dd)                          
        || ((p->dd == dd) && (p->block < block)))                     
ffc10148:	81 1f 00 18 	lwz     r8,24(r31)                             
ffc1014c:	7f 9a 40 40 	cmplw   cr7,r26,r8                             
ffc10150:	41 bd ff d8 	bgt-    cr7,ffc10128 <rtems_bdbuf_remove_from_tree+0x98>
    {                                                                 
      p->avl.cache = 1;                                               
      p = p->avl.right;                                               
    }                                                                 
    else if ((p->dd != dd) || (p->block != block))                    
ffc10154:	7f 9a 40 00 	cmpw    cr7,r26,r8                             
ffc10158:	40 9e ff a8 	bne+    cr7,ffc10100 <rtems_bdbuf_remove_from_tree+0x70>
  }                                                                   
                                                                      
  q = p;                                                              
                                                                      
  buf_prev--;                                                         
  if (buf_prev > buf_stack)                                           
ffc1015c:	7f 9c 50 40 	cmplw   cr7,r28,r10                            
  {                                                                   
    p = *(buf_prev - 1);                                              
  }                                                                   
  else                                                                
  {                                                                   
    p = NULL;                                                         
ffc10160:	38 80 00 00 	li      r4,0                                   
                                                                      
  memset (buf_stack, 0, sizeof(buf_stack));                           
                                                                      
  while (p != NULL)                                                   
  {                                                                   
    *buf_prev++ = p;                                                  
ffc10164:	7d 2b 4b 78 	mr      r11,r9                                 
  }                                                                   
                                                                      
  q = p;                                                              
                                                                      
  buf_prev--;                                                         
  if (buf_prev > buf_stack)                                           
ffc10168:	41 9c 01 30 	blt-    cr7,ffc10298 <rtems_bdbuf_remove_from_tree+0x208>
  {                                                                   
    p = NULL;                                                         
  }                                                                   
                                                                      
  /* at this moment q - is a node to delete, p is q's parent */       
  if (q->avl.right == NULL)                                           
ffc1016c:	80 bf 00 0c 	lwz     r5,12(r31)                             
ffc10170:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc10174:	41 9e 01 34 	beq-    cr7,ffc102a8 <rtems_bdbuf_remove_from_tree+0x218>
  {                                                                   
    rtems_bdbuf_buffer **t;                                           
                                                                      
    r = q->avl.right;                                                 
                                                                      
    if (r->avl.left == NULL)                                          
ffc10178:	81 05 00 08 	lwz     r8,8(r5)                               
ffc1017c:	7c aa 2b 78 	mr      r10,r5                                 
                                                                      
      while (s->avl.left != NULL)                                     
      {                                                               
        *buf_prev++ = r = s;                                          
        s = r->avl.left;                                              
        r->avl.cache = -1;                                            
ffc10180:	38 c0 ff ff 	li      r6,-1                                  
  {                                                                   
    rtems_bdbuf_buffer **t;                                           
                                                                      
    r = q->avl.right;                                                 
                                                                      
    if (r->avl.left == NULL)                                          
ffc10184:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc10188:	40 be 00 10 	bne+    cr7,ffc10198 <rtems_bdbuf_remove_from_tree+0x108>
ffc1018c:	48 00 02 f4 	b       ffc10480 <rtems_bdbuf_remove_from_tree+0x3f0>
    else                                                              
    {                                                                 
      t = buf_prev++;                                                 
      s = r;                                                          
                                                                      
      while (s->avl.left != NULL)                                     
ffc10190:	7d 0a 43 78 	mr      r10,r8                                 
ffc10194:	7c e8 3b 78 	mr      r8,r7                                  
ffc10198:	80 e8 00 08 	lwz     r7,8(r8)                               
      {                                                               
        *buf_prev++ = r = s;                                          
ffc1019c:	91 49 00 00 	stw     r10,0(r9)                              
ffc101a0:	39 29 00 04 	addi    r9,r9,4                                
    else                                                              
    {                                                                 
      t = buf_prev++;                                                 
      s = r;                                                          
                                                                      
      while (s->avl.left != NULL)                                     
ffc101a4:	2f 87 00 00 	cmpwi   cr7,r7,0                               
      {                                                               
        *buf_prev++ = r = s;                                          
        s = r->avl.left;                                              
        r->avl.cache = -1;                                            
ffc101a8:	98 ca 00 10 	stb     r6,16(r10)                             
    else                                                              
    {                                                                 
      t = buf_prev++;                                                 
      s = r;                                                          
                                                                      
      while (s->avl.left != NULL)                                     
ffc101ac:	40 9e ff e4 	bne+    cr7,ffc10190 <rtems_bdbuf_remove_from_tree+0x100>
        *buf_prev++ = r = s;                                          
        s = r->avl.left;                                              
        r->avl.cache = -1;                                            
      }                                                               
                                                                      
      s->avl.left = q->avl.left;                                      
ffc101b0:	80 df 00 08 	lwz     r6,8(r31)                              
      r->avl.left = s->avl.right;                                     
ffc101b4:	80 68 00 0c 	lwz     r3,12(r8)                              
      s->avl.right = q->avl.right;                                    
      s->avl.bal = q->avl.bal;                                        
ffc101b8:	88 ff 00 11 	lbz     r7,17(r31)                             
        *buf_prev++ = r = s;                                          
        s = r->avl.left;                                              
        r->avl.cache = -1;                                            
      }                                                               
                                                                      
      s->avl.left = q->avl.left;                                      
ffc101bc:	90 c8 00 08 	stw     r6,8(r8)                               
      r->avl.left = s->avl.right;                                     
ffc101c0:	90 6a 00 08 	stw     r3,8(r10)                              
      s->avl.right = q->avl.right;                                    
      s->avl.bal = q->avl.bal;                                        
      s->avl.cache = 1;                                               
ffc101c4:	39 40 00 01 	li      r10,1                                  
        r->avl.cache = -1;                                            
      }                                                               
                                                                      
      s->avl.left = q->avl.left;                                      
      r->avl.left = s->avl.right;                                     
      s->avl.right = q->avl.right;                                    
ffc101c8:	90 a8 00 0c 	stw     r5,12(r8)                              
      s->avl.bal = q->avl.bal;                                        
ffc101cc:	98 e8 00 11 	stb     r7,17(r8)                              
      s->avl.cache = 1;                                               
ffc101d0:	99 48 00 10 	stb     r10,16(r8)                             
                                                                      
      *t = q = s;                                                     
ffc101d4:	91 0b ff fc 	stw     r8,-4(r11)                             
    }                                                                 
  }                                                                   
                                                                      
  if (p != NULL)                                                      
ffc101d8:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc101dc:	41 9e 00 e8 	beq-    cr7,ffc102c4 <rtems_bdbuf_remove_from_tree+0x234>
  {                                                                   
    if (p->avl.cache == -1)                                           
ffc101e0:	89 44 00 10 	lbz     r10,16(r4)                             
ffc101e4:	2f 8a 00 ff 	cmpwi   cr7,r10,255                            
ffc101e8:	41 9e 02 48 	beq-    cr7,ffc10430 <rtems_bdbuf_remove_from_tree+0x3a0>
    {                                                                 
      p->avl.left = q;                                                
    }                                                                 
    else                                                              
    {                                                                 
      p->avl.right = q;                                               
ffc101ec:	91 04 00 0c 	stw     r8,12(r4)                              
                                                                      
  modified = true;                                                    
                                                                      
  while (modified)                                                    
  {                                                                   
    if (buf_prev > buf_stack)                                         
ffc101f0:	7f 9c 48 40 	cmplw   cr7,r28,r9                             
ffc101f4:	40 9c 00 7c 	bge-    cr7,ffc10270 <rtems_bdbuf_remove_from_tree+0x1e0>
ffc101f8:	7d 28 4b 78 	mr      r8,r9                                  
ffc101fc:	85 28 ff fc 	lwzu    r9,-4(r8)                              
{                                                                     
  return bdbuf_cache.buffer_waiters.count;                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)                 
ffc10200:	21 5c 00 03 	subfic  r10,r28,3                              
    else                                                              
    {                                                                 
      break;                                                          
    }                                                                 
                                                                      
    if (p->avl.cache == -1)                                           
ffc10204:	38 80 ff ff 	li      r4,-1                                  
{                                                                     
  return bdbuf_cache.buffer_waiters.count;                            
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_remove_from_tree (rtems_bdbuf_buffer *bd)                 
ffc10208:	7d 4a 42 14 	add     r10,r10,r8                             
ffc1020c:	88 e9 00 10 	lbz     r7,16(r9)                              
            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;
ffc10210:	55 4a f0 be 	rlwinm  r10,r10,30,2,31                        
ffc10214:	39 4a 00 01 	addi    r10,r10,1                              
ffc10218:	7c e7 07 74 	extsb   r7,r7                                  
ffc1021c:	7d 49 03 a6 	mtctr   r10                                    
ffc10220:	2f 87 ff ff 	cmpwi   cr7,r7,-1                              
    {                                                                 
      /* rebalance right branch */                                    
      switch (p->avl.bal)                                             
      {                                                               
        case +1:                                                      
          p->avl.bal = 0;                                             
ffc10224:	38 a0 00 00 	li      r5,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;
ffc10228:	38 00 ff ff 	li      r0,-1                                  
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
            p2->avl.right = p;                                        
                                                                      
            if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
ffc1022c:	39 60 00 01 	li      r11,1                                  
    }                                                                 
                                                                      
    if (p->avl.cache == -1)                                           
    {                                                                 
      /* rebalance left branch */                                     
      switch (p->avl.bal)                                             
ffc10230:	89 49 00 11 	lbz     r10,17(r9)                             
    else                                                              
    {                                                                 
      break;                                                          
    }                                                                 
                                                                      
    if (p->avl.cache == -1)                                           
ffc10234:	41 9e 00 e0 	beq-    cr7,ffc10314 <rtems_bdbuf_remove_from_tree+0x284>
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      /* rebalance right branch */                                    
      switch (p->avl.bal)                                             
ffc10238:	7d 47 07 75 	extsb.  r7,r10                                 
ffc1023c:	40 82 00 90 	bne-    ffc102cc <rtems_bdbuf_remove_from_tree+0x23c>
        case +1:                                                      
          p->avl.bal = 0;                                             
          break;                                                      
                                                                      
        case  0:                                                      
          p->avl.bal = -1;                                            
ffc10240:	98 89 00 11 	stb     r4,17(r9)                              
ffc10244:	7d 2a 4b 78 	mr      r10,r9                                 
          modified = false;                                           
ffc10248:	38 c0 00 00 	li      r6,0                                   
        default:                                                      
          break;                                                      
      }                                                               
    }                                                                 
                                                                      
    if (buf_prev > buf_stack)                                         
ffc1024c:	42 40 00 9c 	bdz-    ffc102e8 <rtems_bdbuf_remove_from_tree+0x258>
    {                                                                 
      q = *(buf_prev - 1);                                            
ffc10250:	85 28 ff fc 	lwzu    r9,-4(r8)                              
                                                                      
      if (q->avl.cache == -1)                                         
ffc10254:	88 e9 00 10 	lbz     r7,16(r9)                              
ffc10258:	7c e7 07 74 	extsb   r7,r7                                  
ffc1025c:	2f 87 ff ff 	cmpwi   cr7,r7,-1                              
ffc10260:	41 9e 00 cc 	beq-    cr7,ffc1032c <rtems_bdbuf_remove_from_tree+0x29c>
      {                                                               
        q->avl.left = p;                                              
      }                                                               
      else                                                            
      {                                                               
        q->avl.right = p;                                             
ffc10264:	91 49 00 0c 	stw     r10,12(r9)                             
    *root = q;                                                        
  }                                                                   
                                                                      
  modified = true;                                                    
                                                                      
  while (modified)                                                    
ffc10268:	2f 06 00 00 	cmpwi   cr6,r6,0                               
ffc1026c:	40 9a ff c4 	bne+    cr6,ffc10230 <rtems_bdbuf_remove_from_tree+0x1a0>
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);
}                                                                     
ffc10270:	80 01 00 a4 	lwz     r0,164(r1)                             
ffc10274:	83 41 00 88 	lwz     r26,136(r1)                            
ffc10278:	7c 08 03 a6 	mtlr    r0                                     
ffc1027c:	83 61 00 8c 	lwz     r27,140(r1)                            
ffc10280:	83 81 00 90 	lwz     r28,144(r1)                            
ffc10284:	83 a1 00 94 	lwz     r29,148(r1)                            
ffc10288:	83 c1 00 98 	lwz     r30,152(r1)                            
ffc1028c:	83 e1 00 9c 	lwz     r31,156(r1)                            
ffc10290:	38 21 00 a0 	addi    r1,r1,160                              
ffc10294:	4e 80 00 20 	blr                                            
  {                                                                   
    p = NULL;                                                         
  }                                                                   
                                                                      
  /* at this moment q - is a node to delete, p is q's parent */       
  if (q->avl.right == NULL)                                           
ffc10298:	80 bf 00 0c 	lwz     r5,12(r31)                             
  q = p;                                                              
                                                                      
  buf_prev--;                                                         
  if (buf_prev > buf_stack)                                           
  {                                                                   
    p = *(buf_prev - 1);                                              
ffc1029c:	80 89 ff f8 	lwz     r4,-8(r9)                              
  {                                                                   
    p = NULL;                                                         
  }                                                                   
                                                                      
  /* at this moment q - is a node to delete, p is q's parent */       
  if (q->avl.right == NULL)                                           
ffc102a0:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc102a4:	40 9e fe d4 	bne+    cr7,ffc10178 <rtems_bdbuf_remove_from_tree+0xe8>
  {                                                                   
    r = q->avl.left;                                                  
ffc102a8:	81 1f 00 08 	lwz     r8,8(r31)                              
    if (r != NULL)                                                    
ffc102ac:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc102b0:	41 9e 02 04 	beq-    cr7,ffc104b4 <rtems_bdbuf_remove_from_tree+0x424>
                                                                      
      *t = q = s;                                                     
    }                                                                 
  }                                                                   
                                                                      
  if (p != NULL)                                                      
ffc102b4:	2f 84 00 00 	cmpwi   cr7,r4,0                               
  if (q->avl.right == NULL)                                           
  {                                                                   
    r = q->avl.left;                                                  
    if (r != NULL)                                                    
    {                                                                 
      r->avl.bal = 0;                                                 
ffc102b8:	98 a8 00 11 	stb     r5,17(r8)                              
ffc102bc:	7d 49 53 78 	mr      r9,r10                                 
                                                                      
      *t = q = s;                                                     
    }                                                                 
  }                                                                   
                                                                      
  if (p != NULL)                                                      
ffc102c0:	40 9e ff 20 	bne+    cr7,ffc101e0 <rtems_bdbuf_remove_from_tree+0x150>
      p->avl.right = q;                                               
    }                                                                 
  }                                                                   
  else                                                                
  {                                                                   
    *root = q;                                                        
ffc102c4:	91 1d 00 3c 	stw     r8,60(r29)                             
ffc102c8:	4b ff ff 28 	b       ffc101f0 <rtems_bdbuf_remove_from_tree+0x160>
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      /* rebalance right branch */                                    
      switch (p->avl.bal)                                             
ffc102cc:	2f 87 00 01 	cmpwi   cr7,r7,1                               
ffc102d0:	41 9e 00 74 	beq-    cr7,ffc10344 <rtems_bdbuf_remove_from_tree+0x2b4>
ffc102d4:	2f 87 ff ff 	cmpwi   cr7,r7,-1                              
ffc102d8:	41 9e 00 7c 	beq-    cr7,ffc10354 <rtems_bdbuf_remove_from_tree+0x2c4><== ALWAYS TAKEN
ffc102dc:	7d 2a 4b 78 	mr      r10,r9                                 <== NOT EXECUTED
ffc102e0:	38 c0 00 01 	li      r6,1                                   <== NOT EXECUTED
        default:                                                      
          break;                                                      
      }                                                               
    }                                                                 
                                                                      
    if (buf_prev > buf_stack)                                         
ffc102e4:	42 00 ff 6c 	bdnz+   ffc10250 <rtems_bdbuf_remove_from_tree+0x1c0><== NOT EXECUTED
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);
}                                                                     
ffc102e8:	80 01 00 a4 	lwz     r0,164(r1)                             
ffc102ec:	83 41 00 88 	lwz     r26,136(r1)                            
ffc102f0:	7c 08 03 a6 	mtlr    r0                                     
ffc102f4:	83 61 00 8c 	lwz     r27,140(r1)                            
ffc102f8:	83 81 00 90 	lwz     r28,144(r1)                            
ffc102fc:	83 c1 00 98 	lwz     r30,152(r1)                            
ffc10300:	83 e1 00 9c 	lwz     r31,156(r1)                            
        q->avl.right = p;                                             
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      *root = p;                                                      
ffc10304:	91 5d 00 3c 	stw     r10,60(r29)                            
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);
}                                                                     
ffc10308:	83 a1 00 94 	lwz     r29,148(r1)                            
ffc1030c:	38 21 00 a0 	addi    r1,r1,160                              
ffc10310:	4e 80 00 20 	blr                                            
    }                                                                 
                                                                      
    if (p->avl.cache == -1)                                           
    {                                                                 
      /* rebalance left branch */                                     
      switch (p->avl.bal)                                             
ffc10314:	7d 46 07 75 	extsb.  r6,r10                                 
ffc10318:	40 82 00 1c 	bne-    ffc10334 <rtems_bdbuf_remove_from_tree+0x2a4>
      {                                                               
        case -1:                                                      
          p->avl.bal = 0;                                             
          break;                                                      
        case  0:                                                      
          p->avl.bal = 1;                                             
ffc1031c:	99 69 00 11 	stb     r11,17(r9)                             
ffc10320:	7d 2a 4b 78 	mr      r10,r9                                 
          modified = false;                                           
ffc10324:	38 c0 00 00 	li      r6,0                                   
ffc10328:	4b ff ff 24 	b       ffc1024c <rtems_bdbuf_remove_from_tree+0x1bc>
    {                                                                 
      q = *(buf_prev - 1);                                            
                                                                      
      if (q->avl.cache == -1)                                         
      {                                                               
        q->avl.left = p;                                              
ffc1032c:	91 49 00 08 	stw     r10,8(r9)                              
ffc10330:	4b ff ff 38 	b       ffc10268 <rtems_bdbuf_remove_from_tree+0x1d8>
    }                                                                 
                                                                      
    if (p->avl.cache == -1)                                           
    {                                                                 
      /* rebalance left branch */                                     
      switch (p->avl.bal)                                             
ffc10334:	2f 86 00 01 	cmpwi   cr7,r6,1                               
ffc10338:	41 9e 00 74 	beq-    cr7,ffc103ac <rtems_bdbuf_remove_from_tree+0x31c>
ffc1033c:	2f 86 ff ff 	cmpwi   cr7,r6,-1                              
ffc10340:	40 9e ff 9c 	bne+    cr7,ffc102dc <rtems_bdbuf_remove_from_tree+0x24c><== NEVER TAKEN
    {                                                                 
      /* rebalance right branch */                                    
      switch (p->avl.bal)                                             
      {                                                               
        case +1:                                                      
          p->avl.bal = 0;                                             
ffc10344:	98 a9 00 11 	stb     r5,17(r9)                              
ffc10348:	7d 2a 4b 78 	mr      r10,r9                                 
ffc1034c:	38 c0 00 01 	li      r6,1                                   
ffc10350:	4b ff fe fc 	b       ffc1024c <rtems_bdbuf_remove_from_tree+0x1bc>
          p->avl.bal = -1;                                            
          modified = false;                                           
          break;                                                      
                                                                      
        case -1:                                                      
          p1 = p->avl.left;                                           
ffc10354:	80 e9 00 08 	lwz     r7,8(r9)                               
                                                                      
          if (p1->avl.bal <= 0) /* simple LL-turn */                  
ffc10358:	89 47 00 11 	lbz     r10,17(r7)                             
ffc1035c:	7d 46 07 75 	extsb.  r6,r10                                 
          {                                                           
            p->avl.left = p1->avl.right;                              
ffc10360:	81 47 00 0c 	lwz     r10,12(r7)                             
          break;                                                      
                                                                      
        case -1:                                                      
          p1 = p->avl.left;                                           
                                                                      
          if (p1->avl.bal <= 0) /* simple LL-turn */                  
ffc10364:	40 81 00 74 	ble-    ffc103d8 <rtems_bdbuf_remove_from_tree+0x348>
            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;
ffc10368:	88 6a 00 11 	lbz     r3,17(r10)                             
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
                                                                      
            p1->avl.right = p2->avl.left;                             
ffc1036c:	80 ca 00 08 	lwz     r6,8(r10)                              
            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;
ffc10370:	2f 83 00 ff 	cmpwi   cr7,r3,255                             
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
                                                                      
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
ffc10374:	90 ea 00 08 	stw     r7,8(r10)                              
          }                                                           
          else /* double LR-turn */                                   
          {                                                           
            p2 = p1->avl.right;                                       
                                                                      
            p1->avl.right = p2->avl.left;                             
ffc10378:	90 c7 00 0c 	stw     r6,12(r7)                              
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
ffc1037c:	80 ca 00 0c 	lwz     r6,12(r10)                             
            p2->avl.right = p;                                        
ffc10380:	91 2a 00 0c 	stw     r9,12(r10)                             
          {                                                           
            p2 = p1->avl.right;                                       
                                                                      
            p1->avl.right = p2->avl.left;                             
            p2->avl.left = p1;                                        
            p->avl.left = p2->avl.right;                              
ffc10384:	90 c9 00 08 	stw     r6,8(r9)                               
            p2->avl.right = p;                                        
                                                                      
            if (p2->avl.bal == -1) p->avl.bal = 1; else p->avl.bal = 0;
ffc10388:	41 9e 00 6c 	beq-    cr7,ffc103f4 <rtems_bdbuf_remove_from_tree+0x364>
ffc1038c:	98 a9 00 11 	stb     r5,17(r9)                              
            if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
ffc10390:	89 2a 00 11 	lbz     r9,17(r10)                             
ffc10394:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc10398:	41 9e 00 6c 	beq-    cr7,ffc10404 <rtems_bdbuf_remove_from_tree+0x374>
ffc1039c:	98 a7 00 11 	stb     r5,17(r7)                              
                                                                      
            p = p2;                                                   
            p2->avl.bal = 0;                                          
ffc103a0:	98 aa 00 11 	stb     r5,17(r10)                             
ffc103a4:	38 c0 00 01 	li      r6,1                                   
ffc103a8:	4b ff fe a4 	b       ffc1024c <rtems_bdbuf_remove_from_tree+0x1bc>
          p->avl.bal = 1;                                             
          modified = false;                                           
          break;                                                      
                                                                      
        case +1:                                                      
          p1 = p->avl.right;                                          
ffc103ac:	81 49 00 0c 	lwz     r10,12(r9)                             
                                                                      
          if (p1->avl.bal >= 0) /* simple RR-turn */                  
ffc103b0:	88 ca 00 11 	lbz     r6,17(r10)                             
ffc103b4:	7c c3 07 75 	extsb.  r3,r6                                  
          {                                                           
            p->avl.right = p1->avl.left;                              
ffc103b8:	80 ca 00 08 	lwz     r6,8(r10)                              
          break;                                                      
                                                                      
        case +1:                                                      
          p1 = p->avl.right;                                          
                                                                      
          if (p1->avl.bal >= 0) /* simple RR-turn */                  
ffc103bc:	41 80 00 7c 	blt-    ffc10438 <rtems_bdbuf_remove_from_tree+0x3a8>
          {                                                           
            p->avl.right = p1->avl.left;                              
            p1->avl.left = p;                                         
ffc103c0:	91 2a 00 08 	stw     r9,8(r10)                              
        case +1:                                                      
          p1 = p->avl.right;                                          
                                                                      
          if (p1->avl.bal >= 0) /* simple RR-turn */                  
          {                                                           
            p->avl.right = p1->avl.left;                              
ffc103c4:	90 c9 00 0c 	stw     r6,12(r9)                              
            p1->avl.left = p;                                         
                                                                      
            if (p1->avl.bal == 0)                                     
ffc103c8:	40 82 00 44 	bne-    ffc1040c <rtems_bdbuf_remove_from_tree+0x37c>
            {                                                         
              p1->avl.bal = -1;                                       
ffc103cc:	98 ea 00 11 	stb     r7,17(r10)                             
              modified = false;                                       
ffc103d0:	38 c0 00 00 	li      r6,0                                   
ffc103d4:	4b ff fe 78 	b       ffc1024c <rtems_bdbuf_remove_from_tree+0x1bc>
          p1 = p->avl.left;                                           
                                                                      
          if (p1->avl.bal <= 0) /* simple LL-turn */                  
          {                                                           
            p->avl.left = p1->avl.right;                              
            p1->avl.right = p;                                        
ffc103d8:	91 27 00 0c 	stw     r9,12(r7)                              
        case -1:                                                      
          p1 = p->avl.left;                                           
                                                                      
          if (p1->avl.bal <= 0) /* simple LL-turn */                  
          {                                                           
            p->avl.left = p1->avl.right;                              
ffc103dc:	91 49 00 08 	stw     r10,8(r9)                              
            p1->avl.right = p;                                        
            if (p1->avl.bal == 0)                                     
ffc103e0:	40 82 00 3c 	bne-    ffc1041c <rtems_bdbuf_remove_from_tree+0x38c>
            {                                                         
              p1->avl.bal = 1;                                        
ffc103e4:	99 67 00 11 	stb     r11,17(r7)                             
ffc103e8:	7c ea 3b 78 	mr      r10,r7                                 
              modified = false;                                       
ffc103ec:	38 c0 00 00 	li      r6,0                                   
ffc103f0:	4b ff fe 5c 	b       ffc1024c <rtems_bdbuf_remove_from_tree+0x1bc>
            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;
ffc103f4:	99 69 00 11 	stb     r11,17(r9)                             
            if (p2->avl.bal == +1) p1->avl.bal = -1; else p1->avl.bal = 0;
ffc103f8:	89 2a 00 11 	lbz     r9,17(r10)                             
ffc103fc:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc10400:	40 9e ff 9c 	bne+    cr7,ffc1039c <rtems_bdbuf_remove_from_tree+0x30c><== ALWAYS TAKEN
ffc10404:	98 07 00 11 	stb     r0,17(r7)                              
ffc10408:	4b ff ff 98 	b       ffc103a0 <rtems_bdbuf_remove_from_tree+0x310>
              p1->avl.bal = -1;                                       
              modified = false;                                       
            }                                                         
            else                                                      
            {                                                         
              p->avl.bal = 0;                                         
ffc1040c:	98 a9 00 11 	stb     r5,17(r9)                              
              p1->avl.bal = 0;                                        
ffc10410:	38 c0 00 01 	li      r6,1                                   
ffc10414:	98 aa 00 11 	stb     r5,17(r10)                             
ffc10418:	4b ff fe 34 	b       ffc1024c <rtems_bdbuf_remove_from_tree+0x1bc>
              p1->avl.bal = 1;                                        
              modified = false;                                       
            }                                                         
            else                                                      
            {                                                         
              p->avl.bal = 0;                                         
ffc1041c:	98 a9 00 11 	stb     r5,17(r9)                              
              p1->avl.bal = 0;                                        
ffc10420:	7c ea 3b 78 	mr      r10,r7                                 
ffc10424:	38 c0 00 01 	li      r6,1                                   
ffc10428:	98 a7 00 11 	stb     r5,17(r7)                              
ffc1042c:	4b ff fe 20 	b       ffc1024c <rtems_bdbuf_remove_from_tree+0x1bc>
                                                                      
  if (p != NULL)                                                      
  {                                                                   
    if (p->avl.cache == -1)                                           
    {                                                                 
      p->avl.left = q;                                                
ffc10430:	91 04 00 08 	stw     r8,8(r4)                               
ffc10434:	4b ff fd bc 	b       ffc101f0 <rtems_bdbuf_remove_from_tree+0x160>
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
            p2->avl.left = p;                                         
                                                                      
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
ffc10438:	8b e6 00 11 	lbz     r31,17(r6)                             
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
                                                                      
            p1->avl.left = p2->avl.right;                             
ffc1043c:	80 66 00 0c 	lwz     r3,12(r6)                              
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
            p2->avl.left = p;                                         
                                                                      
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
ffc10440:	2f 9f 00 01 	cmpwi   cr7,r31,1                              
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
                                                                      
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
ffc10444:	91 46 00 0c 	stw     r10,12(r6)                             
          }                                                           
          else /* double RL-turn */                                   
          {                                                           
            p2 = p1->avl.left;                                        
                                                                      
            p1->avl.left = p2->avl.right;                             
ffc10448:	90 6a 00 08 	stw     r3,8(r10)                              
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
ffc1044c:	80 66 00 08 	lwz     r3,8(r6)                               
            p2->avl.left = p;                                         
ffc10450:	91 26 00 08 	stw     r9,8(r6)                               
          {                                                           
            p2 = p1->avl.left;                                        
                                                                      
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
ffc10454:	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;
ffc10458:	41 9e 00 54 	beq-    cr7,ffc104ac <rtems_bdbuf_remove_from_tree+0x41c>
ffc1045c:	98 a9 00 11 	stb     r5,17(r9)                              
            if (p2->avl.bal == -1) p1->avl.bal = 1; else p1->avl.bal = 0;
ffc10460:	89 26 00 11 	lbz     r9,17(r6)                              
ffc10464:	2f 89 00 ff 	cmpwi   cr7,r9,255                             
ffc10468:	41 9e 00 3c 	beq-    cr7,ffc104a4 <rtems_bdbuf_remove_from_tree+0x414><== NEVER TAKEN
ffc1046c:	98 aa 00 11 	stb     r5,17(r10)                             
                                                                      
            p = p2;                                                   
            p2->avl.bal = 0;                                          
ffc10470:	98 a6 00 11 	stb     r5,17(r6)                              
ffc10474:	7c ca 33 78 	mr      r10,r6                                 
ffc10478:	38 c0 00 01 	li      r6,1                                   
ffc1047c:	4b ff fd d0 	b       ffc1024c <rtems_bdbuf_remove_from_tree+0x1bc>
    r = q->avl.right;                                                 
                                                                      
    if (r->avl.left == NULL)                                          
    {                                                                 
      r->avl.left = q->avl.left;                                      
      r->avl.bal = q->avl.bal;                                        
ffc10480:	89 5f 00 11 	lbz     r10,17(r31)                            
                                                                      
    r = q->avl.right;                                                 
                                                                      
    if (r->avl.left == NULL)                                          
    {                                                                 
      r->avl.left = q->avl.left;                                      
ffc10484:	81 1f 00 08 	lwz     r8,8(r31)                              
      r->avl.bal = q->avl.bal;                                        
ffc10488:	99 45 00 11 	stb     r10,17(r5)                             
      r->avl.cache = 1;                                               
ffc1048c:	39 40 00 01 	li      r10,1                                  
                                                                      
    r = q->avl.right;                                                 
                                                                      
    if (r->avl.left == NULL)                                          
    {                                                                 
      r->avl.left = q->avl.left;                                      
ffc10490:	91 05 00 08 	stw     r8,8(r5)                               
      r->avl.bal = q->avl.bal;                                        
      r->avl.cache = 1;                                               
      *buf_prev++ = q = r;                                            
ffc10494:	7c a8 2b 78 	mr      r8,r5                                  
                                                                      
    if (r->avl.left == NULL)                                          
    {                                                                 
      r->avl.left = q->avl.left;                                      
      r->avl.bal = q->avl.bal;                                        
      r->avl.cache = 1;                                               
ffc10498:	99 45 00 10 	stb     r10,16(r5)                             
      *buf_prev++ = q = r;                                            
ffc1049c:	90 a9 ff fc 	stw     r5,-4(r9)                              
ffc104a0:	4b ff fd 38 	b       ffc101d8 <rtems_bdbuf_remove_from_tree+0x148>
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
            p2->avl.left = p;                                         
                                                                      
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
            if (p2->avl.bal == -1) p1->avl.bal = 1; else p1->avl.bal = 0;
ffc104a4:	99 6a 00 11 	stb     r11,17(r10)                            <== NOT EXECUTED
ffc104a8:	4b ff ff c8 	b       ffc10470 <rtems_bdbuf_remove_from_tree+0x3e0><== NOT EXECUTED
            p1->avl.left = p2->avl.right;                             
            p2->avl.right = p1;                                       
            p->avl.right = p2->avl.left;                              
            p2->avl.left = p;                                         
                                                                      
            if (p2->avl.bal == +1) p->avl.bal = -1; else p->avl.bal = 0;
ffc104ac:	98 e9 00 11 	stb     r7,17(r9)                              
ffc104b0:	4b ff ff b0 	b       ffc10460 <rtems_bdbuf_remove_from_tree+0x3d0>
                                                                      
  /* at this moment q - is a node to delete, p is q's parent */       
  if (q->avl.right == NULL)                                           
  {                                                                   
    r = q->avl.left;                                                  
    if (r != NULL)                                                    
ffc104b4:	7d 49 53 78 	mr      r9,r10                                 
ffc104b8:	4b ff fd 20 	b       ffc101d8 <rtems_bdbuf_remove_from_tree+0x148>
                                                                      

ffc10598 <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) {
ffc10598:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1059c:	7c 08 02 a6 	mflr    r0                                     
ffc105a0:	90 01 00 14 	stw     r0,20(r1)                              
  switch (bd->state)                                                  
ffc105a4:	81 23 00 20 	lwz     r9,32(r3)                              
    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)    
{                                                                     
ffc105a8:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc105ac:	7c 7f 1b 78 	mr      r31,r3                                 
  switch (bd->state)                                                  
ffc105b0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc105b4:	41 9e 00 1c 	beq-    cr7,ffc105d0 <rtems_bdbuf_remove_from_tree_and_lru_list+0x38>
ffc105b8:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc105bc:	41 9e 00 10 	beq-    cr7,ffc105cc <rtems_bdbuf_remove_from_tree_and_lru_list+0x34><== ALWAYS TAKEN
      break;                                                          
    case RTEMS_BDBUF_STATE_CACHED:                                    
      rtems_bdbuf_remove_from_tree (bd);                              
      break;                                                          
    default:                                                          
      rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_10);
ffc105c0:	7d 23 4b 78 	mr      r3,r9                                  <== NOT EXECUTED
ffc105c4:	38 80 00 16 	li      r4,22                                  <== NOT EXECUTED
ffc105c8:	4b ff f5 71 	bl      ffc0fb38 <rtems_bdbuf_fatal_with_state><== NOT EXECUTED
  switch (bd->state)                                                  
  {                                                                   
    case RTEMS_BDBUF_STATE_FREE:                                      
      break;                                                          
    case RTEMS_BDBUF_STATE_CACHED:                                    
      rtems_bdbuf_remove_from_tree (bd);                              
ffc105cc:	4b ff fa c5 	bl      ffc10090 <rtems_bdbuf_remove_from_tree>
    default:                                                          
      rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_10);
  }                                                                   
                                                                      
  rtems_chain_extract_unprotected (&bd->link);                        
}                                                                     
ffc105d0:	80 01 00 14 	lwz     r0,20(r1)                              
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc105d4:	81 5f 00 00 	lwz     r10,0(r31)                             
ffc105d8:	7c 08 03 a6 	mtlr    r0                                     
  previous       = the_node->previous;                                
ffc105dc:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc105e0:	83 e1 00 0c 	lwz     r31,12(r1)                             
  next->previous = previous;                                          
ffc105e4:	91 2a 00 04 	stw     r9,4(r10)                              
  previous->next = next;                                              
ffc105e8:	91 49 00 00 	stw     r10,0(r9)                              
ffc105ec:	38 21 00 10 	addi    r1,r1,16                               
ffc105f0:	4e 80 00 20 	blr                                            
                                                                      

ffc0fc20 <rtems_bdbuf_restore_preemption>: return prev_mode; } static void rtems_bdbuf_restore_preemption (rtems_mode prev_mode) {
ffc0fc20:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0fc24:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_task_mode (prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode); 
ffc0fc28:	38 80 00 00 	li      r4,0                                   
  return prev_mode;                                                   
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_restore_preemption (rtems_mode prev_mode)                 
{                                                                     
ffc0fc2c:	7c 25 0b 78 	mr      r5,r1                                  
ffc0fc30:	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); 
ffc0fc34:	60 84 ff ff 	ori     r4,r4,65535                            
  return prev_mode;                                                   
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_restore_preemption (rtems_mode prev_mode)                 
{                                                                     
ffc0fc38:	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); 
ffc0fc3c:	48 00 57 7d 	bl      ffc153b8 <rtems_task_mode>             
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc0fc40:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0fc44:	40 9e 00 14 	bne-    cr7,ffc0fc58 <rtems_bdbuf_restore_preemption+0x38><== NEVER TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_PREEMPT_RST);                
}                                                                     
ffc0fc48:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0fc4c:	38 21 00 10 	addi    r1,r1,16                               
ffc0fc50:	7c 08 03 a6 	mtlr    r0                                     
ffc0fc54:	4e 80 00 20 	blr                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_task_mode (prev_mode, RTEMS_ALL_MODE_MASKS, &prev_mode); 
  if (sc != RTEMS_SUCCESSFUL)                                         
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_PREEMPT_RST);                
ffc0fc58:	38 60 00 06 	li      r3,6                                   <== NOT EXECUTED
ffc0fc5c:	4b ff fe 71 	bl      ffc0facc <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                                                      

ffc1268c <rtems_bdbuf_set_block_size>: /* * We do not care about the synchronization status since we will purge the * device later. */ if (sync)
ffc1268c:	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)                  
{                                                                     
ffc12690:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc12694:	7c 08 02 a6 	mflr    r0                                     
ffc12698:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc1269c:	7c 7d 1b 78 	mr      r29,r3                                 
ffc126a0:	93 e1 00 14 	stw     r31,20(r1)                             
ffc126a4:	7c 9f 23 78 	mr      r31,r4                                 
ffc126a8:	90 01 00 1c 	stw     r0,28(r1)                              
ffc126ac:	93 c1 00 10 	stw     r30,16(r1)                             
                                                                      
  /*                                                                  
   * We do not care about the synchronization status since we will purge the
   * device later.                                                    
   */                                                                 
  if (sync)                                                           
ffc126b0:	40 9e 01 10 	bne-    cr7,ffc127c0 <rtems_bdbuf_set_block_size+0x134>
    rtems_bdbuf_syncdev (dd);                                         
                                                                      
  rtems_bdbuf_lock_cache ();                                          
ffc126b4:	4b ff d4 75 	bl      ffc0fb28 <rtems_bdbuf_lock_cache>      
                                                                      
  if (block_size > 0)                                                 
ffc126b8:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
      sc = RTEMS_INVALID_NUMBER;                                      
    }                                                                 
  }                                                                   
  else                                                                
  {                                                                   
    sc = RTEMS_INVALID_NUMBER;                                        
ffc126bc:	3b c0 00 0a 	li      r30,10                                 
  if (sync)                                                           
    rtems_bdbuf_syncdev (dd);                                         
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  if (block_size > 0)                                                 
ffc126c0:	40 9e 00 28 	bne-    cr7,ffc126e8 <rtems_bdbuf_set_block_size+0x5c>
  else                                                                
  {                                                                   
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc126c4:	4b ff d4 c9 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    
                                                                      
  return sc;                                                          
}                                                                     
ffc126c8:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc126cc:	7f c3 f3 78 	mr      r3,r30                                 
ffc126d0:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc126d4:	7c 08 03 a6 	mtlr    r0                                     
ffc126d8:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc126dc:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc126e0:	38 21 00 18 	addi    r1,r1,24                               
ffc126e4:	4e 80 00 20 	blr                                            
rtems_bdbuf_bds_per_group (size_t size)                               
{                                                                     
  size_t bufs_per_size;                                               
  size_t bds_per_size;                                                
                                                                      
  if (size > bdbuf_config.buffer_max)                                 
ffc126e8:	3d 20 ff c2 	lis     r9,-62                                 
ffc126ec:	39 29 dc 5c 	addi    r9,r9,-9124                            
ffc126f0:	81 49 00 28 	lwz     r10,40(r9)                             
ffc126f4:	7f 9f 50 40 	cmplw   cr7,r31,r10                            
ffc126f8:	41 bd ff cc 	bgt-    cr7,ffc126c4 <rtems_bdbuf_set_block_size+0x38><== NEVER TAKEN
    return 0;                                                         
                                                                      
  bufs_per_size = ((size - 1) / bdbuf_config.buffer_min) + 1;         
ffc126fc:	81 29 00 24 	lwz     r9,36(r9)                              
ffc12700:	39 5f ff ff 	addi    r10,r31,-1                             
ffc12704:	7d 4a 4b 96 	divwu   r10,r10,r9                             
ffc12708:	39 4a 00 01 	addi    r10,r10,1                              
                                                                      
  for (bds_per_size = 1;                                              
ffc1270c:	2b 8a 00 01 	cmplwi  cr7,r10,1                              
ffc12710:	39 20 00 01 	li      r9,1                                   
ffc12714:	40 9d 00 10 	ble-    cr7,ffc12724 <rtems_bdbuf_set_block_size+0x98>
       bds_per_size < bufs_per_size;                                  
       bds_per_size <<= 1)                                            
ffc12718:	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;                                              
ffc1271c:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc12720:	41 9d ff f8 	bgt+    cr7,ffc12718 <rtems_bdbuf_set_block_size+0x8c>
       bds_per_size < bufs_per_size;                                  
       bds_per_size <<= 1)                                            
    ;                                                                 
                                                                      
  return bdbuf_cache.max_bds_per_group / bds_per_size;                
ffc12724:	3d 40 00 00 	lis     r10,0                                  
ffc12728:	81 4a 2a 20 	lwz     r10,10784(r10)                         
      sc = RTEMS_INVALID_NUMBER;                                      
    }                                                                 
  }                                                                   
  else                                                                
  {                                                                   
    sc = RTEMS_INVALID_NUMBER;                                        
ffc1272c:	3b c0 00 0a 	li      r30,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;                
ffc12730:	7d 2a 4b 96 	divwu   r9,r10,r9                              
                                                                      
  if (block_size > 0)                                                 
  {                                                                   
    size_t bds_per_group = rtems_bdbuf_bds_per_group (block_size);    
                                                                      
    if (bds_per_group != 0)                                           
ffc12734:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc12738:	41 be ff 8c 	beq-    cr7,ffc126c4 <rtems_bdbuf_set_block_size+0x38><== NEVER TAKEN
    {                                                                 
      int block_to_media_block_shift = 0;                             
      uint32_t media_blocks_per_block = block_size / dd->media_block_size;
ffc1273c:	80 bd 00 20 	lwz     r5,32(r29)                             
      uint32_t one = 1;                                               
                                                                      
      while ((one << block_to_media_block_shift) < media_blocks_per_block)
ffc12740:	39 40 00 00 	li      r10,0                                  
    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;
ffc12744:	7c ff 2b 96 	divwu   r7,r31,r5                              
      uint32_t one = 1;                                               
                                                                      
      while ((one << block_to_media_block_shift) < media_blocks_per_block)
ffc12748:	2b 87 00 01 	cmplwi  cr7,r7,1                               
ffc1274c:	40 9d 00 18 	ble-    cr7,ffc12764 <rtems_bdbuf_set_block_size+0xd8>
ffc12750:	38 c0 00 01 	li      r6,1                                   
      {                                                               
        ++block_to_media_block_shift;                                 
ffc12754:	39 4a 00 01 	addi    r10,r10,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)
ffc12758:	7c c8 50 30 	slw     r8,r6,r10                              
ffc1275c:	7f 87 40 40 	cmplw   cr7,r7,r8                              
ffc12760:	41 9d ff f4 	bgt+    cr7,ffc12754 <rtems_bdbuf_set_block_size+0xc8>
      {                                                               
        ++block_to_media_block_shift;                                 
      }                                                               
                                                                      
      if ((dd->media_block_size << block_to_media_block_shift) != block_size)
ffc12764:	7c a5 50 30 	slw     r5,r5,r10                              
ffc12768:	7f 85 f8 00 	cmpw    cr7,r5,r31                             
ffc1276c:	41 9e 00 08 	beq-    cr7,ffc12774 <rtems_bdbuf_set_block_size+0xe8><== ALWAYS TAKEN
        block_to_media_block_shift = -1;                              
ffc12770:	39 40 ff ff 	li      r10,-1                                 <== NOT EXECUTED
                                                                      
      dd->block_size = block_size;                                    
      dd->block_count = dd->size / media_blocks_per_block;            
ffc12774:	81 1d 00 1c 	lwz     r8,28(r29)                             
      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);                                     
ffc12778:	7f a3 eb 78 	mr      r3,r29                                 
      }                                                               
                                                                      
      if ((dd->media_block_size << block_to_media_block_shift) != block_size)
        block_to_media_block_shift = -1;                              
                                                                      
      dd->block_size = block_size;                                    
ffc1277c:	93 fd 00 24 	stw     r31,36(r29)                            
rtems_status_code                                                     
rtems_bdbuf_set_block_size (rtems_disk_device *dd,                    
                            uint32_t           block_size,            
                            bool               sync)                  
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc12780:	3b c0 00 00 	li      r30,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;            
ffc12784:	7d 08 3b 96 	divwu   r8,r8,r7                               
      dd->media_blocks_per_block = media_blocks_per_block;            
ffc12788:	90 fd 00 2c 	stw     r7,44(r29)                             
      dd->block_to_media_block_shift = block_to_media_block_shift;    
ffc1278c:	91 5d 00 30 	stw     r10,48(r29)                            
      dd->bds_per_group = bds_per_group;                              
ffc12790:	91 3d 00 34 	stw     r9,52(r29)                             
                                                                      
      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;            
ffc12794:	91 1d 00 28 	stw     r8,40(r29)                             
      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);                                     
ffc12798:	4b ff fc a5 	bl      ffc1243c <rtems_bdbuf_purge_dev>       
  else                                                                
  {                                                                   
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc1279c:	4b ff d3 f1 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    
                                                                      
  return sc;                                                          
}                                                                     
ffc127a0:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc127a4:	7f c3 f3 78 	mr      r3,r30                                 
ffc127a8:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc127ac:	7c 08 03 a6 	mtlr    r0                                     
ffc127b0:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc127b4:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc127b8:	38 21 00 18 	addi    r1,r1,24                               
ffc127bc:	4e 80 00 20 	blr                                            
  /*                                                                  
   * We do not care about the synchronization status since we will purge the
   * device later.                                                    
   */                                                                 
  if (sync)                                                           
    rtems_bdbuf_syncdev (dd);                                         
ffc127c0:	4b ff fc 05 	bl      ffc123c4 <rtems_bdbuf_syncdev>         
ffc127c4:	4b ff fe f0 	b       ffc126b4 <rtems_bdbuf_set_block_size+0x28>
                                                                      

ffc0f94c <rtems_bdbuf_swapout_modified_processing>: */ RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first( const Chain_Control *the_chain ) { return _Chain_Immutable_head( the_chain )->next;
ffc0f94c:	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 );                            
ffc0f950:	38 84 00 04 	addi    r4,r4,4                                
                                         rtems_chain_control* chain,  
                                         rtems_chain_control* transfer,
                                         bool                 sync_active,
                                         bool                 update_timers,
                                         uint32_t             timer_delta)
{                                                                     
ffc0f954:	7d 80 00 26 	mfcr    r12                                    
ffc0f958:	94 21 ff e8 	stwu    r1,-24(r1)                             
  if (!rtems_chain_is_empty (chain))                                  
ffc0f95c:	7f 89 20 00 	cmpw    cr7,r9,r4                              
                                         rtems_chain_control* chain,  
                                         rtems_chain_control* transfer,
                                         bool                 sync_active,
                                         bool                 update_timers,
                                         uint32_t             timer_delta)
{                                                                     
ffc0f960:	93 c1 00 10 	stw     r30,16(r1)                             
ffc0f964:	93 e1 00 14 	stw     r31,20(r1)                             
ffc0f968:	91 81 00 0c 	stw     r12,12(r1)                             
  if (!rtems_chain_is_empty (chain))                                  
ffc0f96c:	41 9e 00 a0 	beq-    cr7,ffc0fa0c <rtems_bdbuf_swapout_modified_processing+0xc0>
    node = node->next;                                                
                                                                      
    /*                                                                
     * A sync active with no valid dev means sync all.                
     */                                                               
    if (sync_active && (*dd_ptr == BDBUF_INVALID_DEV))                
ffc0f970:	2c 86 00 00 	cmpwi   cr1,r6,0                               
      sync_all = true;                                                
    else                                                              
      sync_all = false;                                               
ffc0f974:	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))                
ffc0f978:	41 86 00 10 	beq-    cr1,ffc0f988 <rtems_bdbuf_swapout_modified_processing+0x3c>
ffc0f97c:	81 43 00 00 	lwz     r10,0(r3)                              
ffc0f980:	7d 4a 00 34 	cntlzw  r10,r10                                
ffc0f984:	55 4a d9 7e 	rlwinm  r10,r10,27,5,31                        
}                                                                     
                                                                      
static bool                                                           
rtems_bdbuf_has_buffer_waiters (void)                                 
{                                                                     
  return bdbuf_cache.buffer_waiters.count;                            
ffc0f988:	3c c0 00 00 	lis     r6,0                                   
ffc0f98c:	83 e6 2a 74 	lwz     r31,10868(r6)                          
ffc0f990:	2f 0a 00 00 	cmpwi   cr6,r10,0                              
          || rtems_bdbuf_has_buffer_waiters ())                       
        bd->hold_timer = 0;                                           
                                                                      
      if (bd->hold_timer)                                             
      {                                                               
        if (update_timers)                                            
ffc0f994:	2c 07 00 00 	cmpwi   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 ())                       
ffc0f998:	2e 1f 00 00 	cmpwi   cr4,r31,0                              
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0f99c:	3b c0 00 09 	li      r30,9                                  
       * @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;                                           
ffc0f9a0:	38 c0 00 00 	li      r6,0                                   
       * or someone waits for a buffer written force all the timers to 0.
       *                                                              
       * @note Lots of sync requests will skew this timer. It should be based
       *       on TOD to be accurate. Does it matter ?                
       */                                                             
      if (sync_all || (sync_active && (*dd_ptr == bd->dd))            
ffc0f9a4:	40 9a 00 cc 	bne-    cr6,ffc0fa70 <rtems_bdbuf_swapout_modified_processing+0x124>
ffc0f9a8:	41 86 00 14 	beq-    cr1,ffc0f9bc <rtems_bdbuf_swapout_modified_processing+0x70>
ffc0f9ac:	81 43 00 00 	lwz     r10,0(r3)                              
ffc0f9b0:	81 69 00 14 	lwz     r11,20(r9)                             
ffc0f9b4:	7f 8a 58 00 	cmpw    cr7,r10,r11                            
ffc0f9b8:	41 9e 00 c0 	beq-    cr7,ffc0fa78 <rtems_bdbuf_swapout_modified_processing+0x12c>
          || rtems_bdbuf_has_buffer_waiters ())                       
ffc0f9bc:	40 92 00 b4 	bne-    cr4,ffc0fa70 <rtems_bdbuf_swapout_modified_processing+0x124>
        bd->hold_timer = 0;                                           
                                                                      
      if (bd->hold_timer)                                             
ffc0f9c0:	81 49 00 2c 	lwz     r10,44(r9)                             
ffc0f9c4:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0f9c8:	41 9e 00 20 	beq-    cr7,ffc0f9e8 <rtems_bdbuf_swapout_modified_processing+0x9c><== NEVER TAKEN
      {                                                               
        if (update_timers)                                            
ffc0f9cc:	41 82 00 34 	beq-    ffc0fa00 <rtems_bdbuf_swapout_modified_processing+0xb4>
        {                                                             
          if (bd->hold_timer > timer_delta)                           
ffc0f9d0:	7f 8a 40 40 	cmplw   cr7,r10,r8                             
ffc0f9d4:	40 9d 00 e8 	ble-    cr7,ffc0fabc <rtems_bdbuf_swapout_modified_processing+0x170>
            bd->hold_timer -= timer_delta;                            
ffc0f9d8:	7d 48 50 50 	subf    r10,r8,r10                             
          else                                                        
            bd->hold_timer = 0;                                       
        }                                                             
                                                                      
        if (bd->hold_timer)                                           
ffc0f9dc:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
      if (bd->hold_timer)                                             
      {                                                               
        if (update_timers)                                            
        {                                                             
          if (bd->hold_timer > timer_delta)                           
            bd->hold_timer -= timer_delta;                            
ffc0f9e0:	91 49 00 2c 	stw     r10,44(r9)                             
          else                                                        
            bd->hold_timer = 0;                                       
        }                                                             
                                                                      
        if (bd->hold_timer)                                           
ffc0f9e4:	40 9e 00 1c 	bne-    cr7,ffc0fa00 <rtems_bdbuf_swapout_modified_processing+0xb4><== ALWAYS TAKEN
ffc0f9e8:	81 43 00 00 	lwz     r10,0(r3)                              <== NOT EXECUTED
ffc0f9ec:	81 69 00 14 	lwz     r11,20(r9)                             <== NOT EXECUTED
      /*                                                              
       * 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)                               
ffc0f9f0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0f9f4:	41 9e 00 90 	beq-    cr7,ffc0fa84 <rtems_bdbuf_swapout_modified_processing+0x138>
        *dd_ptr = bd->dd;                                             
                                                                      
      if (bd->dd == *dd_ptr)                                          
ffc0f9f8:	7f 8b 50 00 	cmpw    cr7,r11,r10                            
ffc0f9fc:	41 9e 00 28 	beq-    cr7,ffc0fa24 <rtems_bdbuf_swapout_modified_processing+0xd8><== ALWAYS TAKEN
                                                                      
        node = next_node;                                             
      }                                                               
      else                                                            
      {                                                               
        node = node->next;                                            
ffc0fa00:	81 29 00 00 	lwz     r9,0(r9)                               
    if (sync_active && (*dd_ptr == BDBUF_INVALID_DEV))                
      sync_all = true;                                                
    else                                                              
      sync_all = false;                                               
                                                                      
    while (!rtems_chain_is_tail (chain, node))                        
ffc0fa04:	7f 89 20 00 	cmpw    cr7,r9,r4                              
ffc0fa08:	40 9e ff 9c 	bne+    cr7,ffc0f9a4 <rtems_bdbuf_swapout_modified_processing+0x58>
      {                                                               
        node = node->next;                                            
      }                                                               
    }                                                                 
  }                                                                   
}                                                                     
ffc0fa0c:	81 81 00 0c 	lwz     r12,12(r1)                             
ffc0fa10:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0fa14:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0fa18:	7d 80 81 20 	mtcrf   8,r12                                  
ffc0fa1c:	38 21 00 18 	addi    r1,r1,24                               
ffc0fa20:	4e 80 00 20 	blr                                            
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
  previous       = the_node->previous;                                
ffc0fa24:	81 49 00 04 	lwz     r10,4(r9)                              
      if (*dd_ptr == BDBUF_INVALID_DEV)                               
        *dd_ptr = bd->dd;                                             
                                                                      
      if (bd->dd == *dd_ptr)                                          
      {                                                               
        rtems_chain_node* next_node = node->next;                     
ffc0fa28:	81 89 00 00 	lwz     r12,0(r9)                              
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc0fa2c:	93 c9 00 20 	stw     r30,32(r9)                             
  next->previous = previous;                                          
ffc0fa30:	91 4c 00 04 	stw     r10,4(r12)                             
  previous->next = next;                                              
ffc0fa34:	91 8a 00 00 	stw     r12,0(r10)                             
                                                                      
        rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_TRANSFER);       
                                                                      
        rtems_chain_extract_unprotected (node);                       
                                                                      
        tnode = tnode->previous;                                      
ffc0fa38:	81 45 00 08 	lwz     r10,8(r5)                              
                                                                      
        while (node && !rtems_chain_is_head (transfer, tnode))        
ffc0fa3c:	7f 8a 28 00 	cmpw    cr7,r10,r5                             
ffc0fa40:	41 9e 00 60 	beq-    cr7,ffc0faa0 <rtems_bdbuf_swapout_modified_processing+0x154>
        {                                                             
          rtems_bdbuf_buffer* tbd = (rtems_bdbuf_buffer*) tnode;      
                                                                      
          if (bd->block > tbd->block)                                 
ffc0fa44:	81 6a 00 18 	lwz     r11,24(r10)                            
ffc0fa48:	80 09 00 18 	lwz     r0,24(r9)                              
ffc0fa4c:	7f 80 58 40 	cmplw   cr7,r0,r11                             
ffc0fa50:	40 9d 00 44 	ble-    cr7,ffc0fa94 <rtems_bdbuf_swapout_modified_processing+0x148>
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
ffc0fa54:	81 6a 00 00 	lwz     r11,0(r10)                             
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc0fa58:	91 49 00 04 	stw     r10,4(r9)                              
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
ffc0fa5c:	91 2a 00 00 	stw     r9,0(r10)                              
  the_node->next        = before_node;                                
  before_node->previous = the_node;                                   
ffc0fa60:	91 2b 00 04 	stw     r9,4(r11)                              
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
  the_node->next        = before_node;                                
ffc0fa64:	91 69 00 00 	stw     r11,0(r9)                              
  before_node->previous = the_node;                                   
ffc0fa68:	7d 89 63 78 	mr      r9,r12                                 
ffc0fa6c:	4b ff ff 98 	b       ffc0fa04 <rtems_bdbuf_swapout_modified_processing+0xb8>
ffc0fa70:	81 43 00 00 	lwz     r10,0(r3)                              
ffc0fa74:	81 69 00 14 	lwz     r11,20(r9)                             
      /*                                                              
       * 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)                               
ffc0fa78:	2f 8a 00 00 	cmpwi   cr7,r10,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;                                           
ffc0fa7c:	90 c9 00 2c 	stw     r6,44(r9)                              
      /*                                                              
       * 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)                               
ffc0fa80:	40 9e ff 78 	bne+    cr7,ffc0f9f8 <rtems_bdbuf_swapout_modified_processing+0xac>
        *dd_ptr = bd->dd;                                             
ffc0fa84:	91 63 00 00 	stw     r11,0(r3)                              
ffc0fa88:	7d 6a 5b 78 	mr      r10,r11                                
ffc0fa8c:	81 69 00 14 	lwz     r11,20(r9)                             
ffc0fa90:	4b ff ff 68 	b       ffc0f9f8 <rtems_bdbuf_swapout_modified_processing+0xac>
          {                                                           
            rtems_chain_insert_unprotected (tnode, node);             
            node = NULL;                                              
          }                                                           
          else                                                        
            tnode = tnode->previous;                                  
ffc0fa94:	81 4a 00 04 	lwz     r10,4(r10)                             
                                                                      
        rtems_chain_extract_unprotected (node);                       
                                                                      
        tnode = tnode->previous;                                      
                                                                      
        while (node && !rtems_chain_is_head (transfer, tnode))        
ffc0fa98:	7f 8a 28 00 	cmpw    cr7,r10,r5                             
ffc0fa9c:	40 9e ff a8 	bne+    cr7,ffc0fa44 <rtems_bdbuf_swapout_modified_processing+0xf8>
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
ffc0faa0:	81 45 00 00 	lwz     r10,0(r5)                              
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc0faa4:	90 a9 00 04 	stw     r5,4(r9)                               
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
ffc0faa8:	91 25 00 00 	stw     r9,0(r5)                               
  the_node->next        = before_node;                                
  before_node->previous = the_node;                                   
ffc0faac:	91 2a 00 04 	stw     r9,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;                                
ffc0fab0:	91 49 00 00 	stw     r10,0(r9)                              
  before_node->previous = the_node;                                   
ffc0fab4:	7d 89 63 78 	mr      r9,r12                                 
ffc0fab8:	4b ff ff 4c 	b       ffc0fa04 <rtems_bdbuf_swapout_modified_processing+0xb8>
        if (update_timers)                                            
        {                                                             
          if (bd->hold_timer > timer_delta)                           
            bd->hold_timer -= timer_delta;                            
          else                                                        
            bd->hold_timer = 0;                                       
ffc0fabc:	93 e9 00 2c 	stw     r31,44(r9)                             
ffc0fac0:	81 43 00 00 	lwz     r10,0(r3)                              
ffc0fac4:	81 69 00 14 	lwz     r11,20(r9)                             
ffc0fac8:	4b ff ff 28 	b       ffc0f9f0 <rtems_bdbuf_swapout_modified_processing+0xa4>
                                                                      

ffc11184 <rtems_bdbuf_swapout_task>: * not this. * @return rtems_task Not used. */ static rtems_task rtems_bdbuf_swapout_task (rtems_task_argument arg) {
ffc11184:	94 21 ff 90 	stwu    r1,-112(r1)                            
ffc11188:	7c 08 02 a6 	mflr    r0                                     
ffc1118c:	92 e1 00 4c 	stw     r23,76(r1)                             
  rtems_bdbuf_swapout_transfer transfer;                              
  uint32_t                     period_in_ticks;                       
  const uint32_t               period_in_msecs = bdbuf_config.swapout_period;
ffc11190:	3e e0 ff c2 	lis     r23,-62                                
ffc11194:	3a f7 dc 5c 	addi    r23,r23,-9124                          
 *            not this.                                               
 * @return rtems_task Not used.                                       
 */                                                                   
static rtems_task                                                     
rtems_bdbuf_swapout_task (rtems_task_argument arg)                    
{                                                                     
ffc11198:	93 61 00 5c 	stw     r27,92(r1)                             
  rtems_bdbuf_swapout_transfer transfer;                              
  uint32_t                     period_in_ticks;                       
  const uint32_t               period_in_msecs = bdbuf_config.swapout_period;
ffc1119c:	83 77 00 0c 	lwz     r27,12(r23)                            
 *            not this.                                               
 * @return rtems_task Not used.                                       
 */                                                                   
static rtems_task                                                     
rtems_bdbuf_swapout_task (rtems_task_argument arg)                    
{                                                                     
ffc111a0:	90 01 00 74 	stw     r0,116(r1)                             
ffc111a4:	92 a1 00 44 	stw     r21,68(r1)                             
  transfer.syncing = false;                                           
                                                                      
  /*                                                                  
   * Localise the period.                                             
   */                                                                 
  period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
ffc111a8:	1e bb 03 e8 	mulli   r21,r27,1000                           
 *            not this.                                               
 * @return rtems_task Not used.                                       
 */                                                                   
static rtems_task                                                     
rtems_bdbuf_swapout_task (rtems_task_argument arg)                    
{                                                                     
ffc111ac:	92 c1 00 48 	stw     r22,72(r1)                             
ffc111b0:	93 01 00 50 	stw     r24,80(r1)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc111b4:	3b 01 00 0c 	addi    r24,r1,12                              
ffc111b8:	93 41 00 58 	stw     r26,88(r1)                             
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc111bc:	3b 41 00 08 	addi    r26,r1,8                               
ffc111c0:	93 a1 00 64 	stw     r29,100(r1)                            
 * @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)                    
ffc111c4:	3b a0 00 61 	li      r29,97                                 
{                                                                     
ffc111c8:	91 e1 00 2c 	stw     r15,44(r1)                             
ffc111cc:	92 01 00 30 	stw     r16,48(r1)                             
ffc111d0:	92 21 00 34 	stw     r17,52(r1)                             
ffc111d4:	92 41 00 38 	stw     r18,56(r1)                             
ffc111d8:	92 61 00 3c 	stw     r19,60(r1)                             
ffc111dc:	92 81 00 40 	stw     r20,64(r1)                             
ffc111e0:	93 21 00 54 	stw     r25,84(r1)                             
ffc111e4:	93 81 00 60 	stw     r28,96(r1)                             
ffc111e8:	93 c1 00 68 	stw     r30,104(r1)                            
ffc111ec:	93 e1 00 6c 	stw     r31,108(r1)                            
  rtems_bdbuf_swapout_transfer transfer;                              
  uint32_t                     period_in_ticks;                       
  const uint32_t               period_in_msecs = bdbuf_config.swapout_period;
  uint32_t                     timer_delta;                           
                                                                      
  transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();         
ffc111f0:	4b ff eb c5 	bl      ffc0fdb4 <rtems_bdbuf_swapout_writereq_alloc>
  transfer.syncing = false;                                           
                                                                      
  /*                                                                  
   * Localise the period.                                             
   */                                                                 
  period_in_ticks = RTEMS_MICROSECONDS_TO_TICKS (period_in_msecs * 1000);
ffc111f4:	3d 20 ff c2 	lis     r9,-62                                 
ffc111f8:	81 49 dc 20 	lwz     r10,-9184(r9)                          
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc111fc:	39 20 00 00 	li      r9,0                                   
  rtems_bdbuf_swapout_transfer transfer;                              
  uint32_t                     period_in_ticks;                       
  const uint32_t               period_in_msecs = bdbuf_config.swapout_period;
  uint32_t                     timer_delta;                           
                                                                      
  transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();         
ffc11200:	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);
ffc11204:	7e b5 53 96 	divwu   r21,r21,r10                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc11208:	93 01 00 08 	stw     r24,8(r1)                              
  head->previous = NULL;                                              
ffc1120c:	91 21 00 0c 	stw     r9,12(r1)                              
  tail->previous = head;                                              
ffc11210:	93 41 00 10 	stw     r26,16(r1)                             
  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;                                    
ffc11214:	91 21 00 14 	stw     r9,20(r1)                              
  transfer.syncing = false;                                           
ffc11218:	99 21 00 18 	stb     r9,24(r1)                              
rtems_bdbuf_swapout_workers_open (void)                               
{                                                                     
  rtems_status_code sc;                                               
  size_t            w;                                                
                                                                      
  rtems_bdbuf_lock_cache ();                                          
ffc1121c:	4b ff e9 0d 	bl      ffc0fb28 <rtems_bdbuf_lock_cache>      
                                                                      
  for (w = 0; w < bdbuf_config.swapout_workers; w++)                  
ffc11220:	82 d7 00 14 	lwz     r22,20(r23)                            
ffc11224:	2f 96 00 00 	cmpwi   cr7,r22,0                              
 * @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)                    
ffc11228:	3a d6 00 61 	addi    r22,r22,97                             
  rtems_status_code sc;                                               
  size_t            w;                                                
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  for (w = 0; w < bdbuf_config.swapout_workers; w++)                  
ffc1122c:	41 9e 03 08 	beq-    cr7,ffc11534 <rtems_bdbuf_swapout_task+0x3b0><== ALWAYS TAKEN
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc11230:	3f 80 00 00 	lis     r28,0                                  <== NOT EXECUTED
ffc11234:	3b 9c 2a 00 	addi    r28,r28,10752                          <== 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),
ffc11238:	3e 80 ff c1 	lis     r20,-63                                <== NOT EXECUTED
                                                                      
  the_node->next = tail;                                              
ffc1123c:	3a 5c 00 0c 	addi    r18,r28,12                             <== NOT EXECUTED
    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;                                           
ffc11240:	3a 60 00 01 	li      r19,1                                  <== NOT EXECUTED
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc11244:	3b 20 00 00 	li      r25,0                                  <== 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),
ffc11248:	3a 94 15 58 	addi    r20,r20,5464                           <== NOT EXECUTED
                                                                      
  for (w = 0; w < bdbuf_config.swapout_workers; w++)                  
  {                                                                   
    rtems_bdbuf_swapout_worker* worker;                               
                                                                      
    worker = malloc (sizeof (rtems_bdbuf_swapout_worker));            
ffc1124c:	38 60 00 28 	li      r3,40                                  <== NOT EXECUTED
ffc11250:	4b ff 51 19 	bl      ffc06368 <malloc>                      <== NOT EXECUTED
    if (!worker)                                                      
ffc11254:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc11258:	41 82 02 e8 	beq-    ffc11540 <rtems_bdbuf_swapout_task+0x3bc><== NOT EXECUTED
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc1125c:	81 3c 00 10 	lwz     r9,16(r28)                             <== NOT EXECUTED
ffc11260:	7f 9e e3 78 	mr      r30,r28                                <== NOT EXECUTED
                                                                      
  the_node->next = tail;                                              
ffc11264:	92 5f 00 00 	stw     r18,0(r31)                             <== NOT EXECUTED
  tail->previous = the_node;                                          
  old_last->next = the_node;                                          
  the_node->previous = old_last;                                      
ffc11268:	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;                                          
ffc1126c:	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;                                          
ffc11270:	93 fc 00 10 	stw     r31,16(r28)                            <== NOT EXECUTED
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_WK_NOMEM);              
                                                                      
    rtems_chain_append_unprotected (&bdbuf_cache.swapout_workers, &worker->link);
    worker->enabled = true;                                           
ffc11274:	9a 7f 00 0c 	stb     r19,12(r31)                            <== NOT EXECUTED
    worker->transfer.write_req = rtems_bdbuf_swapout_writereq_alloc ();
ffc11278:	4b ff eb 3d 	bl      ffc0fdb4 <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 );                        
ffc1127c:	39 3f 00 10 	addi    r9,r31,16                              <== NOT EXECUTED
ffc11280:	39 5f 00 14 	addi    r10,r31,20                             <== NOT EXECUTED
ffc11284:	90 7f 00 24 	stw     r3,36(r31)                             <== NOT EXECUTED
                                                                      
    rtems_chain_initialize_empty (&worker->transfer.bds);             
    worker->transfer.dd = BDBUF_INVALID_DEV;                          
                                                                      
    sc = rtems_bdbuf_create_task (rtems_build_name('B', 'D', 'o', 'a' + w),
ffc11288:	67 a3 42 44 	oris    r3,r29,16964                           <== NOT EXECUTED
                                                                      
  head->next = tail;                                                  
ffc1128c:	91 5f 00 10 	stw     r10,16(r31)                            <== NOT EXECUTED
ffc11290:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
ffc11294:	60 63 6f 00 	ori     r3,r3,28416                            <== NOT EXECUTED
  head->previous = NULL;                                              
ffc11298:	93 3f 00 14 	stw     r25,20(r31)                            <== NOT EXECUTED
ffc1129c:	7e 85 a3 78 	mr      r5,r20                                 <== NOT EXECUTED
ffc112a0:	38 ff 00 08 	addi    r7,r31,8                               <== NOT EXECUTED
  tail->previous = head;                                              
ffc112a4:	91 3f 00 18 	stw     r9,24(r31)                             <== 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;                          
ffc112a8:	93 3f 00 1c 	stw     r25,28(r31)                            <== NOT EXECUTED
                                                                      
    sc = rtems_bdbuf_create_task (rtems_build_name('B', 'D', 'o', 'a' + w),
ffc112ac:	80 97 00 18 	lwz     r4,24(r23)                             <== NOT EXECUTED
ffc112b0:	4b ff ed 3d 	bl      ffc0ffec <rtems_bdbuf_create_task.constprop.15><== 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)                                       
ffc112b4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc112b8:	40 9e 02 90 	bne-    cr7,ffc11548 <rtems_bdbuf_swapout_task+0x3c4><== NOT EXECUTED
ffc112bc:	3b bd 00 01 	addi    r29,r29,1                              <== NOT EXECUTED
  rtems_status_code sc;                                               
  size_t            w;                                                
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  for (w = 0; w < bdbuf_config.swapout_workers; w++)                  
ffc112c0:	7f 9d b0 00 	cmpw    cr7,r29,r22                            <== NOT EXECUTED
ffc112c4:	40 9e ff 88 	bne+    cr7,ffc1124c <rtems_bdbuf_swapout_task+0xc8><== NOT EXECUTED
                                  &worker->id);                       
    if (sc != RTEMS_SUCCESSFUL)                                       
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_WK_CREATE);             
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc112c8:	4b ff e8 c5 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    
  /*                                                                  
   * Create the worker threads.                                       
   */                                                                 
  rtems_bdbuf_swapout_workers_open ();                                
                                                                      
  while (bdbuf_cache.swapout_enabled)                                 
ffc112cc:	89 3e 00 04 	lbz     r9,4(r30)                              
ffc112d0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc112d4:	41 9e 01 b0 	beq-    cr7,ffc11484 <rtems_bdbuf_swapout_task+0x300><== NEVER TAKEN
ffc112d8:	3e e0 00 00 	lis     r23,0                                  
ffc112dc:	3a f7 2a 58 	addi    r23,r23,10840                          
ffc112e0:	3a d7 ff f4 	addi    r22,r23,-12                            
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc112e4:	3b 80 00 00 	li      r28,0                                  
      transfer = &worker->transfer;                                   
  }                                                                   
                                                                      
  rtems_chain_initialize_empty (&transfer->bds);                      
  transfer->dd = BDBUF_INVALID_DEV;                                   
  transfer->syncing = bdbuf_cache.sync_active;                        
ffc112e8:	3a 60 00 01 	li      r19,1                                  
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_tail(         
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return &the_chain->Tail.Node;                                       
ffc112ec:	3a 9e 00 0c 	addi    r20,r30,12                             
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
                                                                      
  head->next = new_first;                                             
  new_first->previous = head;                                         
ffc112f0:	3a 5e 00 08 	addi    r18,r30,8                              
  if (bdbuf_cache.sync_active && !transfered_buffers)                 
  {                                                                   
    rtems_id sync_requester;                                          
    rtems_bdbuf_lock_cache ();                                        
    sync_requester = bdbuf_cache.sync_requester;                      
    bdbuf_cache.sync_active = false;                                  
ffc112f4:	3a 20 00 00 	li      r17,0                                  
 * @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)                    
ffc112f8:	3a 00 00 01 	li      r16,1                                  
                                rtems_bdbuf_swapout_transfer* transfer)
{                                                                     
  rtems_bdbuf_swapout_worker* worker;                                 
  bool                        transfered_buffers = false;             
                                                                      
  rtems_bdbuf_lock_cache ();                                          
ffc112fc:	4b ff e8 2d 	bl      ffc0fb28 <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)                                        
ffc11300:	89 3e 00 30 	lbz     r9,48(r30)                             
ffc11304:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc11308:	40 9e 00 a8 	bne-    cr7,ffc113b0 <rtems_bdbuf_swapout_task+0x22c>
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc1130c:	83 be 00 08 	lwz     r29,8(r30)                             
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
ffc11310:	7f 9d a0 00 	cmpw    cr7,r29,r20                            
ffc11314:	41 9e 02 0c 	beq-    cr7,ffc11520 <rtems_bdbuf_swapout_task+0x39c><== ALWAYS TAKEN
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
ffc11318:	81 3d 00 00 	lwz     r9,0(r29)                              <== NOT EXECUTED
  else                                                                
  {                                                                   
    worker = (rtems_bdbuf_swapout_worker*)                            
      rtems_chain_get_unprotected (&bdbuf_cache.swapout_workers);     
    if (worker)                                                       
      transfer = &worker->transfer;                                   
ffc1131c:	3b fd 00 10 	addi    r31,r29,16                             <== NOT EXECUTED
                                                                      
  head->next = new_first;                                             
ffc11320:	91 3e 00 08 	stw     r9,8(r30)                              <== NOT EXECUTED
  new_first->previous = head;                                         
ffc11324:	92 49 00 04 	stw     r18,4(r9)                              <== 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 );                        
ffc11328:	3b 3f 00 04 	addi    r25,r31,4                              
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc1132c:	93 9f 00 04 	stw     r28,4(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,             
ffc11330:	39 ff 00 0c 	addi    r15,r31,12                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc11334:	93 3f 00 00 	stw     r25,0(r31)                             
ffc11338:	38 c0 00 01 	li      r6,1                                   
ffc1133c:	38 e0 00 00 	li      r7,0                                   
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc11340:	93 ff 00 08 	stw     r31,8(r31)                             
ffc11344:	7f 68 db 78 	mr      r8,r27                                 
ffc11348:	7d e3 7b 78 	mr      r3,r15                                 
    if (worker)                                                       
      transfer = &worker->transfer;                                   
  }                                                                   
                                                                      
  rtems_chain_initialize_empty (&transfer->bds);                      
  transfer->dd = BDBUF_INVALID_DEV;                                   
ffc1134c:	93 9f 00 0c 	stw     r28,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,             
ffc11350:	7e e4 bb 78 	mr      r4,r23                                 
ffc11354:	7f e5 fb 78 	mr      r5,r31                                 
      transfer = &worker->transfer;                                   
  }                                                                   
                                                                      
  rtems_chain_initialize_empty (&transfer->bds);                      
  transfer->dd = BDBUF_INVALID_DEV;                                   
  transfer->syncing = bdbuf_cache.sync_active;                        
ffc11358:	9b 9f 00 10 	stb     r28,16(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,             
ffc1135c:	4b ff e5 f1 	bl      ffc0f94c <rtems_bdbuf_swapout_modified_processing>
                                           timer_delta);              
                                                                      
  /*                                                                  
   * Process the cache's modified list.                               
   */                                                                 
  rtems_bdbuf_swapout_modified_processing (&transfer->dd,             
ffc11360:	88 de 00 30 	lbz     r6,48(r30)                             
ffc11364:	7d e3 7b 78 	mr      r3,r15                                 
ffc11368:	7e c4 b3 78 	mr      r4,r22                                 
ffc1136c:	7f e5 fb 78 	mr      r5,r31                                 
ffc11370:	7e 07 83 78 	mr      r7,r16                                 
ffc11374:	7f 68 db 78 	mr      r8,r27                                 
ffc11378:	4b ff e5 d5 	bl      ffc0f94c <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 ();                                        
ffc1137c:	4b ff e8 11 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    
                                                                      
  /*                                                                  
   * If there are buffers to transfer to the media transfer them.     
   */                                                                 
  if (!rtems_chain_is_empty (&transfer->bds))                         
ffc11380:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc11384:	7f 89 c8 00 	cmpw    cr7,r9,r25                             
ffc11388:	41 9e 00 98 	beq-    cr7,ffc11420 <rtems_bdbuf_swapout_task+0x29c>
  {                                                                   
    if (worker)                                                       
ffc1138c:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc11390:	41 9e 00 84 	beq-    cr7,ffc11414 <rtems_bdbuf_swapout_task+0x290><== ALWAYS TAKEN
    {                                                                 
      rtems_status_code sc = rtems_event_send (worker->id,            
ffc11394:	80 7d 00 08 	lwz     r3,8(r29)                              <== NOT EXECUTED
ffc11398:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc1139c:	4b ff 96 45 	bl      ffc0a9e0 <rtems_event_send>            <== NOT EXECUTED
                                               RTEMS_BDBUF_SWAPOUT_SYNC);
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc113a0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc113a4:	40 9e 01 88 	bne-    cr7,ffc1152c <rtems_bdbuf_swapout_task+0x3a8><== NOT EXECUTED
      }                                                               
                                                                      
      /*                                                              
       * Only update the timers once.                                 
       */                                                             
      update_timers = false;                                          
ffc113a8:	3a 00 00 00 	li      r16,0                                  
ffc113ac:	4b ff ff 50 	b       ffc112fc <rtems_bdbuf_swapout_task+0x178>
   * 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)                                        
    transfer->dd = bdbuf_cache.sync_device;                           
ffc113b0:	81 3e 00 38 	lwz     r9,56(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,             
ffc113b4:	38 c0 00 01 	li      r6,1                                   
ffc113b8:	38 e0 00 00 	li      r7,0                                   
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc113bc:	93 01 00 08 	stw     r24,8(r1)                              
ffc113c0:	7f 68 db 78 	mr      r8,r27                                 
ffc113c4:	38 61 00 14 	addi    r3,r1,20                               
   * 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)                                        
    transfer->dd = bdbuf_cache.sync_device;                           
ffc113c8:	91 21 00 14 	stw     r9,20(r1)                              
                                                                      
  /*                                                                  
   * If we have any buffers in the sync queue move them to the modified
   * list. The first sync buffer will select the device we use.       
   */                                                                 
  rtems_bdbuf_swapout_modified_processing (&transfer->dd,             
ffc113cc:	7e e4 bb 78 	mr      r4,r23                                 
ffc113d0:	7f 45 d3 78 	mr      r5,r26                                 
  head->previous = NULL;                                              
ffc113d4:	93 81 00 0c 	stw     r28,12(r1)                             
  tail->previous = head;                                              
ffc113d8:	93 41 00 10 	stw     r26,16(r1)                             
      transfer = &worker->transfer;                                   
  }                                                                   
                                                                      
  rtems_chain_initialize_empty (&transfer->bds);                      
  transfer->dd = BDBUF_INVALID_DEV;                                   
  transfer->syncing = bdbuf_cache.sync_active;                        
ffc113dc:	9a 61 00 18 	stb     r19,24(r1)                             
                                                                      
  /*                                                                  
   * If we have any buffers in the sync queue move them to the modified
   * list. The first sync buffer will select the device we use.       
   */                                                                 
  rtems_bdbuf_swapout_modified_processing (&transfer->dd,             
ffc113e0:	4b ff e5 6d 	bl      ffc0f94c <rtems_bdbuf_swapout_modified_processing>
                                           timer_delta);              
                                                                      
  /*                                                                  
   * Process the cache's modified list.                               
   */                                                                 
  rtems_bdbuf_swapout_modified_processing (&transfer->dd,             
ffc113e4:	38 61 00 14 	addi    r3,r1,20                               
ffc113e8:	88 de 00 30 	lbz     r6,48(r30)                             
ffc113ec:	7e c4 b3 78 	mr      r4,r22                                 
ffc113f0:	7f 45 d3 78 	mr      r5,r26                                 
ffc113f4:	7e 07 83 78 	mr      r7,r16                                 
ffc113f8:	7f 68 db 78 	mr      r8,r27                                 
ffc113fc:	4b ff e5 51 	bl      ffc0f94c <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 ();                                        
ffc11400:	4b ff e7 8d 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    
                                                                      
  /*                                                                  
   * If there are buffers to transfer to the media transfer them.     
   */                                                                 
  if (!rtems_chain_is_empty (&transfer->bds))                         
ffc11404:	81 21 00 08 	lwz     r9,8(r1)                               
ffc11408:	7f 89 c0 00 	cmpw    cr7,r9,r24                             
ffc1140c:	41 9e 00 14 	beq-    cr7,ffc11420 <rtems_bdbuf_swapout_task+0x29c>
ffc11410:	7f 5f d3 78 	mr      r31,r26                                
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_WAKE_2);              
    }                                                                 
    else                                                              
    {                                                                 
      rtems_bdbuf_swapout_write (transfer);                           
ffc11414:	7f e3 fb 78 	mr      r3,r31                                 
ffc11418:	4b ff fb 79 	bl      ffc10f90 <rtems_bdbuf_swapout_write>   
ffc1141c:	4b ff ff 8c 	b       ffc113a8 <rtems_bdbuf_swapout_task+0x224>
    }                                                                 
                                                                      
    transfered_buffers = true;                                        
  }                                                                   
                                                                      
  if (bdbuf_cache.sync_active && !transfered_buffers)                 
ffc11420:	89 3e 00 30 	lbz     r9,48(r30)                             
ffc11424:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc11428:	41 9e 00 2c 	beq-    cr7,ffc11454 <rtems_bdbuf_swapout_task+0x2d0>
  {                                                                   
    rtems_id sync_requester;                                          
    rtems_bdbuf_lock_cache ();                                        
ffc1142c:	4b ff e6 fd 	bl      ffc0fb28 <rtems_bdbuf_lock_cache>      
    sync_requester = bdbuf_cache.sync_requester;                      
ffc11430:	83 fe 00 34 	lwz     r31,52(r30)                            
    bdbuf_cache.sync_active = false;                                  
ffc11434:	9a 3e 00 30 	stb     r17,48(r30)                            
    bdbuf_cache.sync_requester = 0;                                   
ffc11438:	93 9e 00 34 	stw     r28,52(r30)                            
    rtems_bdbuf_unlock_cache ();                                      
ffc1143c:	4b ff e7 51 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    
    if (sync_requester)                                               
ffc11440:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc11444:	41 be 00 10 	beq+    cr7,ffc11454 <rtems_bdbuf_swapout_task+0x2d0><== 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 ); 
ffc11448:	7f e3 fb 78 	mr      r3,r31                                 
ffc1144c:	3c 80 80 00 	lis     r4,-32768                              
ffc11450:	4b ff 9d 79 	bl      ffc0b1c8 <rtems_event_system_send>     
       */                                                             
      update_timers = false;                                          
    }                                                                 
    while (transfered_buffers);                                       
                                                                      
    sc = rtems_event_receive (RTEMS_BDBUF_SWAPOUT_SYNC,               
ffc11454:	38 60 00 04 	li      r3,4                                   
ffc11458:	38 80 00 00 	li      r4,0                                   
ffc1145c:	7e a5 ab 78 	mr      r5,r21                                 
ffc11460:	38 c1 00 20 	addi    r6,r1,32                               
ffc11464:	4b ff 93 79 	bl      ffc0a7dc <rtems_event_receive>         
                              RTEMS_EVENT_ALL | RTEMS_WAIT,           
                              period_in_ticks,                        
                              &out);                                  
                                                                      
    if ((sc != RTEMS_SUCCESSFUL) && (sc != RTEMS_TIMEOUT))            
ffc11468:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1146c:	41 82 00 0c 	beq-    ffc11478 <rtems_bdbuf_swapout_task+0x2f4>
ffc11470:	2f 83 00 06 	cmpwi   cr7,r3,6                               
ffc11474:	40 9e 00 dc 	bne-    cr7,ffc11550 <rtems_bdbuf_swapout_task+0x3cc><== NEVER TAKEN
  /*                                                                  
   * Create the worker threads.                                       
   */                                                                 
  rtems_bdbuf_swapout_workers_open ();                                
                                                                      
  while (bdbuf_cache.swapout_enabled)                                 
ffc11478:	89 3e 00 04 	lbz     r9,4(r30)                              
ffc1147c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc11480:	40 9e fe 78 	bne+    cr7,ffc112f8 <rtems_bdbuf_swapout_task+0x174><== ALWAYS TAKEN
static void                                                           
rtems_bdbuf_swapout_workers_close (void)                              
{                                                                     
  rtems_chain_node* node;                                             
                                                                      
  rtems_bdbuf_lock_cache ();                                          
ffc11484:	4b ff e6 a5 	bl      ffc0fb28 <rtems_bdbuf_lock_cache>      <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc11488:	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;                                       
ffc1148c:	3b de 00 0c 	addi    r30,r30,12                             <== NOT EXECUTED
                                                                      
  node = rtems_chain_first (&bdbuf_cache.swapout_workers);            
  while (!rtems_chain_is_tail (&bdbuf_cache.swapout_workers, node))   
ffc11490:	7f 9f f0 00 	cmpw    cr7,r31,r30                            <== NOT EXECUTED
  {                                                                   
    rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) node;
    worker->enabled = false;                                          
ffc11494:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
  rtems_chain_node* node;                                             
                                                                      
  rtems_bdbuf_lock_cache ();                                          
                                                                      
  node = rtems_chain_first (&bdbuf_cache.swapout_workers);            
  while (!rtems_chain_is_tail (&bdbuf_cache.swapout_workers, node))   
ffc11498:	41 9e 00 20 	beq-    cr7,ffc114b8 <rtems_bdbuf_swapout_task+0x334><== NOT EXECUTED
  {                                                                   
    rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) node;
    worker->enabled = false;                                          
ffc1149c:	9b bf 00 0c 	stb     r29,12(r31)                            <== NOT EXECUTED
    rtems_event_send (worker->id, RTEMS_BDBUF_SWAPOUT_SYNC);          
ffc114a0:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc114a4:	80 7f 00 08 	lwz     r3,8(r31)                              <== NOT EXECUTED
ffc114a8:	4b ff 95 39 	bl      ffc0a9e0 <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 ();                                        
}                                                                     
ffc114ac:	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))   
ffc114b0:	7f 9f f0 00 	cmpw    cr7,r31,r30                            <== NOT EXECUTED
ffc114b4:	40 9e ff e8 	bne+    cr7,ffc1149c <rtems_bdbuf_swapout_task+0x318><== NOT EXECUTED
    worker->enabled = false;                                          
    rtems_event_send (worker->id, RTEMS_BDBUF_SWAPOUT_SYNC);          
    node = rtems_chain_next (node);                                   
  }                                                                   
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc114b8:	4b ff e6 d5 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    <== NOT EXECUTED
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SWAPOUT_RE);               
  }                                                                   
                                                                      
  rtems_bdbuf_swapout_workers_close ();                               
                                                                      
  free (transfer.write_req);                                          
ffc114bc:	80 61 00 1c 	lwz     r3,28(r1)                              <== NOT EXECUTED
ffc114c0:	4b ff 48 59 	bl      ffc05d18 <free>                        <== NOT EXECUTED
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
ffc114c4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc114c8:	4b ff 9f 19 	bl      ffc0b3e0 <rtems_task_delete>           <== NOT EXECUTED
}                                                                     
ffc114cc:	80 01 00 74 	lwz     r0,116(r1)                             <== NOT EXECUTED
ffc114d0:	81 e1 00 2c 	lwz     r15,44(r1)                             <== NOT EXECUTED
ffc114d4:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc114d8:	82 01 00 30 	lwz     r16,48(r1)                             <== NOT EXECUTED
ffc114dc:	82 21 00 34 	lwz     r17,52(r1)                             <== NOT EXECUTED
ffc114e0:	82 41 00 38 	lwz     r18,56(r1)                             <== NOT EXECUTED
ffc114e4:	82 61 00 3c 	lwz     r19,60(r1)                             <== NOT EXECUTED
ffc114e8:	82 81 00 40 	lwz     r20,64(r1)                             <== NOT EXECUTED
ffc114ec:	82 a1 00 44 	lwz     r21,68(r1)                             <== NOT EXECUTED
ffc114f0:	82 c1 00 48 	lwz     r22,72(r1)                             <== NOT EXECUTED
ffc114f4:	82 e1 00 4c 	lwz     r23,76(r1)                             <== NOT EXECUTED
ffc114f8:	83 01 00 50 	lwz     r24,80(r1)                             <== NOT EXECUTED
ffc114fc:	83 21 00 54 	lwz     r25,84(r1)                             <== NOT EXECUTED
ffc11500:	83 41 00 58 	lwz     r26,88(r1)                             <== NOT EXECUTED
ffc11504:	83 61 00 5c 	lwz     r27,92(r1)                             <== NOT EXECUTED
ffc11508:	83 81 00 60 	lwz     r28,96(r1)                             <== NOT EXECUTED
ffc1150c:	83 a1 00 64 	lwz     r29,100(r1)                            <== NOT EXECUTED
ffc11510:	83 c1 00 68 	lwz     r30,104(r1)                            <== NOT EXECUTED
ffc11514:	83 e1 00 6c 	lwz     r31,108(r1)                            <== NOT EXECUTED
ffc11518:	38 21 00 70 	addi    r1,r1,112                              <== NOT EXECUTED
ffc1151c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
ffc11520:	3b a0 00 00 	li      r29,0                                  
ffc11524:	7f 5f d3 78 	mr      r31,r26                                
ffc11528:	4b ff fe 00 	b       ffc11328 <rtems_bdbuf_swapout_task+0x1a4>
    if (worker)                                                       
    {                                                                 
      rtems_status_code sc = rtems_event_send (worker->id,            
                                               RTEMS_BDBUF_SWAPOUT_SYNC);
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_WAKE_2);              
ffc1152c:	38 60 00 0c 	li      r3,12                                  <== NOT EXECUTED
ffc11530:	4b ff e5 9d 	bl      ffc0facc <rtems_bdbuf_fatal>           <== NOT EXECUTED
ffc11534:	3f c0 00 00 	lis     r30,0                                  
ffc11538:	3b de 2a 00 	addi    r30,r30,10752                          
ffc1153c:	4b ff fd 8c 	b       ffc112c8 <rtems_bdbuf_swapout_task+0x144>
  {                                                                   
    rtems_bdbuf_swapout_worker* worker;                               
                                                                      
    worker = malloc (sizeof (rtems_bdbuf_swapout_worker));            
    if (!worker)                                                      
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_WK_NOMEM);              
ffc11540:	38 60 00 0a 	li      r3,10                                  <== NOT EXECUTED
ffc11544:	4b ff e5 89 	bl      ffc0facc <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                  RTEMS_BDBUF_SWAPOUT_WORKER_TASK_PRIORITY_DEFAULT,
                                  rtems_bdbuf_swapout_worker_task,    
                                  (rtems_task_argument) worker,       
                                  &worker->id);                       
    if (sc != RTEMS_SUCCESSFUL)                                       
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_WK_CREATE);             
ffc11548:	38 60 00 0d 	li      r3,13                                  <== NOT EXECUTED
ffc1154c:	4b ff e5 81 	bl      ffc0facc <rtems_bdbuf_fatal>           <== NOT EXECUTED
                              RTEMS_EVENT_ALL | RTEMS_WAIT,           
                              period_in_ticks,                        
                              &out);                                  
                                                                      
    if ((sc != RTEMS_SUCCESSFUL) && (sc != RTEMS_TIMEOUT))            
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SWAPOUT_RE);               
ffc11550:	38 60 00 18 	li      r3,24                                  <== NOT EXECUTED
ffc11554:	4b ff e5 79 	bl      ffc0facc <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                                                      

ffc11558 <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) {
ffc11558:	94 21 ff e0 	stwu    r1,-32(r1)                             <== NOT EXECUTED
ffc1155c:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc11560:	90 01 00 24 	stw     r0,36(r1)                              <== NOT EXECUTED
  rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) arg;
                                                                      
  while (worker->enabled)                                             
ffc11564:	89 23 00 0c 	lbz     r9,12(r3)                              <== NOT EXECUTED
 * @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)             
{                                                                     
ffc11568:	93 e1 00 1c 	stw     r31,28(r1)                             <== NOT EXECUTED
ffc1156c:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
  rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) arg;
                                                                      
  while (worker->enabled)                                             
ffc11570:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
 * @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)             
{                                                                     
ffc11574:	93 41 00 08 	stw     r26,8(r1)                              <== NOT EXECUTED
ffc11578:	93 61 00 0c 	stw     r27,12(r1)                             <== NOT EXECUTED
ffc1157c:	93 81 00 10 	stw     r28,16(r1)                             <== NOT EXECUTED
ffc11580:	93 a1 00 14 	stw     r29,20(r1)                             <== NOT EXECUTED
ffc11584:	93 c1 00 18 	stw     r30,24(r1)                             <== NOT EXECUTED
  rtems_bdbuf_swapout_worker* worker = (rtems_bdbuf_swapout_worker*) arg;
                                                                      
  while (worker->enabled)                                             
ffc11588:	41 9e 00 64 	beq-    cr7,ffc115ec <rtems_bdbuf_swapout_worker_task+0x94><== NOT EXECUTED
ffc1158c:	3f c0 00 00 	lis     r30,0                                  <== NOT EXECUTED
ffc11590:	3b de 2a 00 	addi    r30,r30,10752                          <== NOT EXECUTED
ffc11594:	3b 83 00 10 	addi    r28,r3,16                              <== NOT EXECUTED
ffc11598:	3b 43 00 14 	addi    r26,r3,20                              <== NOT EXECUTED
ffc1159c:	3b 7e 00 0c 	addi    r27,r30,12                             <== NOT EXECUTED
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc115a0:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
  {                                                                   
    rtems_bdbuf_wait_for_event (RTEMS_BDBUF_SWAPOUT_SYNC);            
ffc115a4:	38 60 00 04 	li      r3,4                                   <== NOT EXECUTED
ffc115a8:	4b ff e7 b1 	bl      ffc0fd58 <rtems_bdbuf_wait_for_event>  <== NOT EXECUTED
                                                                      
    rtems_bdbuf_swapout_write (&worker->transfer);                    
ffc115ac:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc115b0:	4b ff f9 e1 	bl      ffc10f90 <rtems_bdbuf_swapout_write>   <== NOT EXECUTED
                                                                      
    rtems_bdbuf_lock_cache ();                                        
ffc115b4:	4b ff e5 75 	bl      ffc0fb28 <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;                              
ffc115b8:	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;                                                  
ffc115bc:	93 5f 00 10 	stw     r26,16(r31)                            <== NOT EXECUTED
                                                                      
    rtems_chain_initialize_empty (&worker->transfer.bds);             
    worker->transfer.dd = BDBUF_INVALID_DEV;                          
ffc115c0:	93 bf 00 1c 	stw     r29,28(r31)                            <== NOT EXECUTED
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
                                                                      
  the_node->next = tail;                                              
ffc115c4:	93 7f 00 00 	stw     r27,0(r31)                             <== NOT EXECUTED
  tail->previous = the_node;                                          
ffc115c8:	93 fe 00 10 	stw     r31,16(r30)                            <== NOT EXECUTED
  old_last->next = the_node;                                          
ffc115cc:	93 e9 00 00 	stw     r31,0(r9)                              <== NOT EXECUTED
  the_node->previous = old_last;                                      
ffc115d0:	91 3f 00 04 	stw     r9,4(r31)                              <== NOT EXECUTED
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc115d4:	93 bf 00 14 	stw     r29,20(r31)                            <== NOT EXECUTED
  tail->previous = head;                                              
ffc115d8:	93 9f 00 18 	stw     r28,24(r31)                            <== NOT EXECUTED
                                                                      
    rtems_chain_append_unprotected (&bdbuf_cache.swapout_workers, &worker->link);
                                                                      
    rtems_bdbuf_unlock_cache ();                                      
ffc115dc:	4b ff e5 b1 	bl      ffc0fb8c <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)                                             
ffc115e0:	89 3f 00 0c 	lbz     r9,12(r31)                             <== NOT EXECUTED
ffc115e4:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc115e8:	40 9e ff bc 	bne+    cr7,ffc115a4 <rtems_bdbuf_swapout_worker_task+0x4c><== NOT EXECUTED
    rtems_chain_append_unprotected (&bdbuf_cache.swapout_workers, &worker->link);
                                                                      
    rtems_bdbuf_unlock_cache ();                                      
  }                                                                   
                                                                      
  free (worker->transfer.write_req);                                  
ffc115ec:	80 7f 00 24 	lwz     r3,36(r31)                             <== NOT EXECUTED
ffc115f0:	4b ff 47 29 	bl      ffc05d18 <free>                        <== NOT EXECUTED
  free (worker);                                                      
ffc115f4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc115f8:	4b ff 47 21 	bl      ffc05d18 <free>                        <== NOT EXECUTED
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
}                                                                     
ffc115fc:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
ffc11600:	83 41 00 08 	lwz     r26,8(r1)                              <== NOT EXECUTED
  }                                                                   
                                                                      
  free (worker->transfer.write_req);                                  
  free (worker);                                                      
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
ffc11604:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
}                                                                     
ffc11608:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc1160c:	83 61 00 0c 	lwz     r27,12(r1)                             <== NOT EXECUTED
ffc11610:	83 81 00 10 	lwz     r28,16(r1)                             <== NOT EXECUTED
ffc11614:	83 a1 00 14 	lwz     r29,20(r1)                             <== NOT EXECUTED
ffc11618:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc1161c:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc11620:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
  }                                                                   
                                                                      
  free (worker->transfer.write_req);                                  
  free (worker);                                                      
                                                                      
  rtems_task_delete (RTEMS_SELF);                                     
ffc11624:	4b ff 9d bc 	b       ffc0b3e0 <rtems_task_delete>           <== NOT EXECUTED
                                                                      

ffc10f90 <rtems_bdbuf_swapout_write>: * * @param transfer The transfer transaction. */ static void rtems_bdbuf_swapout_write (rtems_bdbuf_swapout_transfer* transfer) {
ffc10f90:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc10f94:	7c 08 02 a6 	mflr    r0                                     
ffc10f98:	7d 80 00 26 	mfcr    r12                                    
ffc10f9c:	90 01 00 34 	stw     r0,52(r1)                              
 */                                                                   
RTEMS_INLINE_ROUTINE const Chain_Node *_Chain_Immutable_first(        
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_head( the_chain )->next;                    
ffc10fa0:	81 23 00 00 	lwz     r9,0(r3)                               
ffc10fa4:	93 41 00 18 	stw     r26,24(r1)                             
RTEMS_INLINE_ROUTINE bool _Chain_Is_empty(                            
  const Chain_Control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Immutable_first( the_chain )                          
    == _Chain_Immutable_tail( the_chain );                            
ffc10fa8:	3b 43 00 04 	addi    r26,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))                         
ffc10fac:	7f 89 d0 00 	cmpw    cr7,r9,r26                             
 *                                                                    
 * @param transfer The transfer transaction.                          
 */                                                                   
static void                                                           
rtems_bdbuf_swapout_write (rtems_bdbuf_swapout_transfer* transfer)    
{                                                                     
ffc10fb0:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc10fb4:	7c 7f 1b 78 	mr      r31,r3                                 
ffc10fb8:	93 01 00 10 	stw     r24,16(r1)                             
ffc10fbc:	93 21 00 14 	stw     r25,20(r1)                             
ffc10fc0:	93 61 00 1c 	stw     r27,28(r1)                             
ffc10fc4:	93 81 00 20 	stw     r28,32(r1)                             
ffc10fc8:	93 a1 00 24 	stw     r29,36(r1)                             
ffc10fcc:	93 c1 00 28 	stw     r30,40(r1)                             
ffc10fd0:	91 81 00 0c 	stw     r12,12(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))                         
ffc10fd4:	41 9e 00 e8 	beq-    cr7,ffc110bc <rtems_bdbuf_swapout_write+0x12c><== 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;                             
ffc10fd8:	83 23 00 0c 	lwz     r25,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;              
ffc10fdc:	39 00 00 0c 	li      r8,12                                  
ffc10fe0:	80 83 00 14 	lwz     r4,20(r3)                              
  {                                                                   
    /*                                                                
     * The last block number used when the driver only supports       
     * continuous blocks in a single request.                         
     */                                                               
    uint32_t last_block = 0;                                          
ffc10fe4:	3b c0 00 00 	li      r30,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;
ffc10fe8:	81 59 00 08 	lwz     r10,8(r25)                             
    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;                              
ffc10fec:	3b 80 00 00 	li      r28,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;     
ffc10ff0:	83 79 00 2c 	lwz     r27,44(r25)                            
                                                                      
      if (write)                                                      
      {                                                               
        rtems_bdbuf_execute_transfer_request (dd, transfer->write_req, false);
                                                                      
        transfer->write_req->status = RTEMS_RESOURCE_IN_USE;          
ffc10ff4:	3b a0 00 0c 	li      r29,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;
ffc10ff8:	81 4a 00 0c 	lwz     r10,12(r10)                            
       * 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))
ffc10ffc:	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;              
ffc11000:	91 04 00 0c 	stw     r8,12(r4)                              
ffc11004:	55 48 07 fe 	clrlwi  r8,r10,31                              
ffc11008:	2e 08 00 00 	cmpwi   cr4,r8,0                               
    transfer->write_req->bufnum = 0;                                  
ffc1100c:	39 40 00 00 	li      r10,0                                  
ffc11010:	91 44 00 10 	stw     r10,16(r4)                             
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *old_first = head->next;                                 
  Chain_Node *new_first = old_first->next;                            
ffc11014:	81 49 00 00 	lwz     r10,0(r9)                              
                                                                      
  head->next = new_first;                                             
ffc11018:	91 5f 00 00 	stw     r10,0(r31)                             
  new_first->previous = head;                                         
ffc1101c:	93 ea 00 04 	stw     r31,4(r10)                             
      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 &&    
ffc11020:	40 92 00 d4 	bne-    cr4,ffc110f4 <rtems_bdbuf_swapout_write+0x164>
ffc11024:	80 a9 00 18 	lwz     r5,24(r9)                              
        write = true;                                                 
      }                                                               
      else                                                            
      {                                                               
        rtems_blkdev_sg_buffer* buf;                                  
        buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
ffc11028:	80 c4 00 10 	lwz     r6,16(r4)                              
        transfer->write_req->bufnum++;                                
        buf->user   = bd;                                             
        buf->block  = bd->block;                                      
ffc1102c:	7c be 2b 78 	mr      r30,r5                                 
        buf->length = dd->block_size;                                 
        buf->buffer = bd->buffer;                                     
ffc11030:	81 69 00 1c 	lwz     r11,28(r9)                             
        write = true;                                                 
      }                                                               
      else                                                            
      {                                                               
        rtems_blkdev_sg_buffer* buf;                                  
        buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
ffc11034:	38 c6 00 01 	addi    r6,r6,1                                
        transfer->write_req->bufnum++;                                
        buf->user   = bd;                                             
        buf->block  = bd->block;                                      
        buf->length = dd->block_size;                                 
ffc11038:	80 19 00 24 	lwz     r0,36(r25)                             
        write = true;                                                 
      }                                                               
      else                                                            
      {                                                               
        rtems_blkdev_sg_buffer* buf;                                  
        buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
ffc1103c:	54 c7 20 36 	rlwinm  r7,r6,4,0,27                           
        transfer->write_req->bufnum++;                                
ffc11040:	90 c4 00 10 	stw     r6,16(r4)                              
        write = true;                                                 
      }                                                               
      else                                                            
      {                                                               
        rtems_blkdev_sg_buffer* buf;                                  
        buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
ffc11044:	7c e4 3a 14 	add     r7,r4,r7                               
        transfer->write_req->bufnum++;                                
        buf->user   = bd;                                             
        buf->block  = bd->block;                                      
ffc11048:	90 a7 00 08 	stw     r5,8(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;                              
ffc1104c:	38 c0 00 00 	li      r6,0                                   
        rtems_blkdev_sg_buffer* buf;                                  
        buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
        transfer->write_req->bufnum++;                                
        buf->user   = bd;                                             
        buf->block  = bd->block;                                      
        buf->length = dd->block_size;                                 
ffc11050:	90 07 00 0c 	stw     r0,12(r7)                              
        buf->buffer = bd->buffer;                                     
ffc11054:	91 67 00 10 	stw     r11,16(r7)                             
      else                                                            
      {                                                               
        rtems_blkdev_sg_buffer* buf;                                  
        buf = &transfer->write_req->bufs[transfer->write_req->bufnum];
        transfer->write_req->bufnum++;                                
        buf->user   = bd;                                             
ffc11058:	91 27 00 14 	stw     r9,20(r7)                              
        buf->block  = bd->block;                                      
        buf->length = dd->block_size;                                 
        buf->buffer = bd->buffer;                                     
ffc1105c:	7d 49 53 78 	mr      r9,r10                                 
      /*                                                              
       * 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) ||                    
ffc11060:	7f 9a 48 00 	cmpw    cr7,r26,r9                             
ffc11064:	41 9e 00 18 	beq-    cr7,ffc1107c <rtems_bdbuf_swapout_write+0xec>
          (transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
ffc11068:	39 18 dc 5c 	addi    r8,r24,-9124                           
      /*                                                              
       * 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) ||                    
ffc1106c:	81 44 00 10 	lwz     r10,16(r4)                             
ffc11070:	81 08 00 04 	lwz     r8,4(r8)                               
ffc11074:	7f 0a 40 40 	cmplw   cr6,r10,r8                             
ffc11078:	41 98 00 b4 	blt-    cr6,ffc1112c <rtems_bdbuf_swapout_write+0x19c>
          (transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
        write = true;                                                 
                                                                      
      if (write)                                                      
      {                                                               
        rtems_bdbuf_execute_transfer_request (dd, transfer->write_req, false);
ffc1107c:	7f 23 cb 78 	mr      r3,r25                                 
ffc11080:	38 a0 00 00 	li      r5,0                                   
ffc11084:	4b ff fc e5 	bl      ffc10d68 <rtems_bdbuf_execute_transfer_request>
ffc11088:	81 3f 00 00 	lwz     r9,0(r31)                              
                                                                      
        transfer->write_req->status = RTEMS_RESOURCE_IN_USE;          
ffc1108c:	80 9f 00 14 	lwz     r4,20(r31)                             
ffc11090:	7f 9a 48 00 	cmpw    cr7,r26,r9                             
ffc11094:	93 a4 00 0c 	stw     r29,12(r4)                             
        transfer->write_req->bufnum = 0;                              
ffc11098:	93 84 00 10 	stw     r28,16(r4)                             
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
ffc1109c:	40 9e ff 78 	bne+    cr7,ffc11014 <rtems_bdbuf_swapout_write+0x84>
                                                                      
    /*                                                                
     * If sync'ing and the deivce is capability of handling a sync IO control
     * call perform the call.                                         
     */                                                               
    if (transfer->syncing &&                                          
ffc110a0:	89 3f 00 10 	lbz     r9,16(r31)                             
ffc110a4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc110a8:	41 9e 00 14 	beq-    cr7,ffc110bc <rtems_bdbuf_swapout_write+0x12c>
        (dd->phys_dev->capabilities & RTEMS_BLKDEV_CAP_SYNC))         
ffc110ac:	80 79 00 08 	lwz     r3,8(r25)                              
ffc110b0:	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 &&                                          
ffc110b4:	71 2a 00 02 	andi.   r10,r9,2                               
ffc110b8:	40 82 00 84 	bne-    ffc1113c <rtems_bdbuf_swapout_write+0x1ac><== NEVER TAKEN
    {                                                                 
      /* int result = */ dd->ioctl (dd->phys_dev, RTEMS_BLKDEV_REQ_SYNC, NULL);
      /* How should the error be handled ? */                         
    }                                                                 
  }                                                                   
}                                                                     
ffc110bc:	80 01 00 34 	lwz     r0,52(r1)                              
ffc110c0:	81 81 00 0c 	lwz     r12,12(r1)                             
ffc110c4:	7c 08 03 a6 	mtlr    r0                                     
ffc110c8:	83 01 00 10 	lwz     r24,16(r1)                             
ffc110cc:	83 21 00 14 	lwz     r25,20(r1)                             
ffc110d0:	7d 80 81 20 	mtcrf   8,r12                                  
ffc110d4:	83 41 00 18 	lwz     r26,24(r1)                             
ffc110d8:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc110dc:	83 81 00 20 	lwz     r28,32(r1)                             
ffc110e0:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc110e4:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc110e8:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc110ec:	38 21 00 30 	addi    r1,r1,48                               
ffc110f0:	4e 80 00 20 	blr                                            
      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 &&    
ffc110f4:	81 04 00 10 	lwz     r8,16(r4)                              
ffc110f8:	80 a9 00 18 	lwz     r5,24(r9)                              
ffc110fc:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc11100:	41 be ff 28 	beq-    cr7,ffc11028 <rtems_bdbuf_swapout_write+0x98>
          bd->block != last_block + media_blocks_per_block)           
ffc11104:	7d 1e da 14 	add     r8,r30,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 &&    
ffc11108:	7f 85 40 00 	cmpw    cr7,r5,r8                              
ffc1110c:	41 be ff 1c 	beq-    cr7,ffc11028 <rtems_bdbuf_swapout_write+0x98>
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
ffc11110:	91 3f 00 00 	stw     r9,0(r31)                              
          bd->block != last_block + media_blocks_per_block)           
      {                                                               
        rtems_chain_prepend_unprotected (&transfer->bds, &bd->link);  
        write = true;                                                 
ffc11114:	38 c0 00 01 	li      r6,1                                   
  the_node->next        = before_node;                                
ffc11118:	91 49 00 00 	stw     r10,0(r9)                              
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc1111c:	93 e9 00 04 	stw     r31,4(r9)                              
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
  the_node->next        = before_node;                                
  before_node->previous = the_node;                                   
ffc11120:	91 2a 00 04 	stw     r9,4(r10)                              
ffc11124:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc11128:	4b ff ff 38 	b       ffc11060 <rtems_bdbuf_swapout_write+0xd0>
                                                                      
      if (rtems_chain_is_empty (&transfer->bds) ||                    
          (transfer->write_req->bufnum >= bdbuf_config.max_write_blocks))
        write = true;                                                 
                                                                      
      if (write)                                                      
ffc1112c:	2f 06 00 00 	cmpwi   cr6,r6,0                               
ffc11130:	40 ba ff 4c 	bne-    cr6,ffc1107c <rtems_bdbuf_swapout_write+0xec>
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Get_unprotected(              
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  if ( !_Chain_Is_empty(the_chain))                                   
ffc11134:	40 9e fe e0 	bne+    cr7,ffc11014 <rtems_bdbuf_swapout_write+0x84><== ALWAYS TAKEN
ffc11138:	4b ff ff 68 	b       ffc110a0 <rtems_bdbuf_swapout_write+0x110><== 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);
ffc1113c:	81 39 00 38 	lwz     r9,56(r25)                             <== NOT EXECUTED
ffc11140:	38 80 00 02 	li      r4,2                                   <== NOT EXECUTED
      /* How should the error be handled ? */                         
    }                                                                 
  }                                                                   
}                                                                     
ffc11144:	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);
ffc11148:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
      /* How should the error be handled ? */                         
    }                                                                 
  }                                                                   
}                                                                     
ffc1114c:	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);
ffc11150:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
      /* How should the error be handled ? */                         
    }                                                                 
  }                                                                   
}                                                                     
ffc11154:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc11158:	83 01 00 10 	lwz     r24,16(r1)                             <== NOT EXECUTED
ffc1115c:	83 21 00 14 	lwz     r25,20(r1)                             <== NOT EXECUTED
ffc11160:	7d 80 81 20 	mtcrf   8,r12                                  <== NOT EXECUTED
ffc11164:	83 41 00 18 	lwz     r26,24(r1)                             <== NOT EXECUTED
ffc11168:	83 61 00 1c 	lwz     r27,28(r1)                             <== NOT EXECUTED
ffc1116c:	83 81 00 20 	lwz     r28,32(r1)                             <== NOT EXECUTED
ffc11170:	83 a1 00 24 	lwz     r29,36(r1)                             <== NOT EXECUTED
ffc11174:	83 c1 00 28 	lwz     r30,40(r1)                             <== NOT EXECUTED
ffc11178:	83 e1 00 2c 	lwz     r31,44(r1)                             <== NOT EXECUTED
ffc1117c:	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);
ffc11180:	4e 80 04 20 	bctr                                           <== NOT EXECUTED
                                                                      

ffc0fdb4 <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)));
ffc0fdb4:	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)                             
{                                                                     
ffc0fdb8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0fdbc:	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)));
ffc0fdc0:	80 69 dc 60 	lwz     r3,-9120(r9)                           
 *                                                                    
 * @return rtems_blkdev_request* The write reference memory.          
 */                                                                   
static rtems_blkdev_request*                                          
rtems_bdbuf_swapout_writereq_alloc (void)                             
{                                                                     
ffc0fdc4:	93 e1 00 0c 	stw     r31,12(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)));
ffc0fdc8:	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 =                                   
ffc0fdcc:	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)                             
{                                                                     
ffc0fdd0:	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 =                                   
ffc0fdd4:	4b ff 65 95 	bl      ffc06368 <malloc>                      
    malloc (sizeof (rtems_blkdev_request) +                           
            (bdbuf_config.max_write_blocks * sizeof (rtems_blkdev_sg_buffer)));
                                                                      
  if (!write_req)                                                     
ffc0fdd8:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc0fddc:	41 82 00 38 	beq-    ffc0fe14 <rtems_bdbuf_swapout_writereq_alloc+0x60><== NEVER TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_REQ_NOMEM);               
                                                                      
  write_req->req = RTEMS_BLKDEV_REQ_WRITE;                            
ffc0fde0:	39 20 00 01 	li      r9,1                                   
ffc0fde4:	91 3f 00 00 	stw     r9,0(r31)                              
  write_req->done = rtems_bdbuf_transfer_done;                        
ffc0fde8:	3d 20 ff c1 	lis     r9,-63                                 
ffc0fdec:	39 29 17 7c 	addi    r9,r9,6012                             
ffc0fdf0:	91 3f 00 04 	stw     r9,4(r31)                              
  write_req->io_task = rtems_task_self ();                            
ffc0fdf4:	48 00 57 b9 	bl      ffc155ac <rtems_task_self>             
                                                                      
  return write_req;                                                   
}                                                                     
ffc0fdf8:	80 01 00 14 	lwz     r0,20(r1)                              
  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 ();                            
ffc0fdfc:	90 7f 00 14 	stw     r3,20(r31)                             
                                                                      
  return write_req;                                                   
}                                                                     
ffc0fe00:	7f e3 fb 78 	mr      r3,r31                                 
ffc0fe04:	7c 08 03 a6 	mtlr    r0                                     
ffc0fe08:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0fe0c:	38 21 00 10 	addi    r1,r1,16                               
ffc0fe10:	4e 80 00 20 	blr                                            
  rtems_blkdev_request* write_req =                                   
    malloc (sizeof (rtems_blkdev_request) +                           
            (bdbuf_config.max_write_blocks * sizeof (rtems_blkdev_sg_buffer)));
                                                                      
  if (!write_req)                                                     
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_REQ_NOMEM);               
ffc0fe14:	38 60 00 09 	li      r3,9                                   <== NOT EXECUTED
ffc0fe18:	4b ff fc b5 	bl      ffc0facc <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                                                      

ffc12260 <rtems_bdbuf_sync>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_bdbuf_sync (rtems_bdbuf_buffer *bd) {
ffc12260:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc12264:	7c 08 02 a6 	mflr    r0                                     
ffc12268:	93 e1 00 14 	stw     r31,20(r1)                             
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{                                                                     
  if (bd == NULL)                                                     
ffc1226c:	7c 7f 1b 79 	mr.     r31,r3                                 
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_bdbuf_sync (rtems_bdbuf_buffer *bd)                             
{                                                                     
ffc12270:	90 01 00 1c 	stw     r0,28(r1)                              
ffc12274:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc12278:	93 c1 00 10 	stw     r30,16(r1)                             
}                                                                     
                                                                      
static rtems_status_code                                              
rtems_bdbuf_check_bd_and_lock_cache (rtems_bdbuf_buffer *bd, const char *kind)
{                                                                     
  if (bd == NULL)                                                     
ffc1227c:	41 82 00 b8 	beq-    ffc12334 <rtems_bdbuf_sync+0xd4>       <== NEVER TAKEN
  if (rtems_bdbuf_tracer)                                             
  {                                                                   
    printf ("bdbuf:%s: %" PRIu32 "\n", kind, bd->block);              
    rtems_bdbuf_show_users (kind, bd);                                
  }                                                                   
  rtems_bdbuf_lock_cache();                                           
ffc12280:	4b ff d8 a9 	bl      ffc0fb28 <rtems_bdbuf_lock_cache>      
                                                                      
  sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "sync");              
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  switch (bd->state)                                                  
ffc12284:	80 7f 00 20 	lwz     r3,32(r31)                             
ffc12288:	2b 83 00 03 	cmplwi  cr7,r3,3                               
ffc1228c:	40 9c 00 0c 	bge-    cr7,ffc12298 <rtems_bdbuf_sync+0x38>   <== ALWAYS TAKEN
      break;                                                          
    case RTEMS_BDBUF_STATE_ACCESS_PURGED:                             
      rtems_bdbuf_discard_buffer_after_access (bd);                   
      break;                                                          
    default:                                                          
      rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_5);
ffc12290:	38 80 00 11 	li      r4,17                                  <== NOT EXECUTED
ffc12294:	4b ff d8 a5 	bl      ffc0fb38 <rtems_bdbuf_fatal_with_state><== NOT EXECUTED
                                                                      
  sc = rtems_bdbuf_check_bd_and_lock_cache (bd, "sync");              
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  switch (bd->state)                                                  
ffc12298:	2b 83 00 05 	cmplwi  cr7,r3,5                               
ffc1229c:	40 9d 00 38 	ble-    cr7,ffc122d4 <rtems_bdbuf_sync+0x74>   
ffc122a0:	2f 83 00 06 	cmpwi   cr7,r3,6                               
ffc122a4:	40 9e ff ec 	bne+    cr7,ffc12290 <rtems_bdbuf_sync+0x30>   <== NEVER TAKEN
    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);                   
ffc122a8:	7f e3 fb 78 	mr      r3,r31                                 
ffc122ac:	4b ff e2 65 	bl      ffc10510 <rtems_bdbuf_discard_buffer_after_access>
  }                                                                   
                                                                      
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
ffc122b0:	4b ff d8 dd 	bl      ffc0fb8c <rtems_bdbuf_unlock_cache>    
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc122b4:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc122b8:	83 a1 00 0c 	lwz     r29,12(r1)                             
  if (rtems_bdbuf_tracer)                                             
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc122bc:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc122c0:	7c 08 03 a6 	mtlr    r0                                     
ffc122c4:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc122c8:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc122cc:	38 21 00 18 	addi    r1,r1,24                               
ffc122d0:	4e 80 00 20 	blr                                            
{                                                                     
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_SYNC);                 
                                                                      
  rtems_chain_append_unprotected (&bdbuf_cache.sync, &bd->link);      
                                                                      
  if (bd->waiters)                                                    
ffc122d4:	81 3f 00 24 	lwz     r9,36(r31)                             
  Chain_Control *the_chain,                                           
  Chain_Node    *the_node                                             
)                                                                     
{                                                                     
  Chain_Node *tail = _Chain_Tail( the_chain );                        
  Chain_Node *old_last = tail->previous;                              
ffc122d8:	3f c0 00 00 	lis     r30,0                                  
ffc122dc:	3b de 2a 00 	addi    r30,r30,10752                          
ffc122e0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc122e4:	81 3e 00 60 	lwz     r9,96(r30)                             
                                                                      
  the_node->next = tail;                                              
ffc122e8:	39 5e 00 5c 	addi    r10,r30,92                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc122ec:	39 00 00 08 	li      r8,8                                   
ffc122f0:	91 5f 00 00 	stw     r10,0(r31)                             
ffc122f4:	91 1f 00 20 	stw     r8,32(r31)                             
  tail->previous = the_node;                                          
ffc122f8:	93 fe 00 60 	stw     r31,96(r30)                            
  old_last->next = the_node;                                          
ffc122fc:	93 e9 00 00 	stw     r31,0(r9)                              
  the_node->previous = old_last;                                      
ffc12300:	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)                                                    
ffc12304:	40 9e 00 50 	bne-    cr7,ffc12354 <rtems_bdbuf_sync+0xf4>   
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
                                                                      
  rtems_bdbuf_wake_swapper ();                                        
ffc12308:	4b ff d8 95 	bl      ffc0fb9c <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);         
ffc1230c:	3b be 00 6c 	addi    r29,r30,108                            
static void                                                           
rtems_bdbuf_wait_for_sync_done (rtems_bdbuf_buffer *bd)               
{                                                                     
  while (true)                                                        
  {                                                                   
    switch (bd->state)                                                
ffc12310:	80 7f 00 20 	lwz     r3,32(r31)                             
ffc12314:	2b 83 00 01 	cmplwi  cr7,r3,1                               
ffc12318:	41 9c 00 14 	blt-    cr7,ffc1232c <rtems_bdbuf_sync+0xcc>   <== NEVER TAKEN
ffc1231c:	2b 83 00 07 	cmplwi  cr7,r3,7                               
ffc12320:	40 9d 00 50 	ble-    cr7,ffc12370 <rtems_bdbuf_sync+0x110>  
ffc12324:	2b 83 00 0a 	cmplwi  cr7,r3,10                              
ffc12328:	40 9d 00 38 	ble-    cr7,ffc12360 <rtems_bdbuf_sync+0x100>  <== ALWAYS TAKEN
      case RTEMS_BDBUF_STATE_TRANSFER:                                
      case RTEMS_BDBUF_STATE_TRANSFER_PURGED:                         
        rtems_bdbuf_wait (bd, &bdbuf_cache.transfer_waiters);         
        break;                                                        
      default:                                                        
        rtems_bdbuf_fatal_with_state (bd->state, RTEMS_BDBUF_FATAL_STATE_9);
ffc1232c:	38 80 00 15 	li      r4,21                                  <== NOT EXECUTED
ffc12330:	4b ff d8 09 	bl      ffc0fb38 <rtems_bdbuf_fatal_with_state><== NOT EXECUTED
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc12334:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
                                                                      
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;                                     
ffc12338:	38 60 00 09 	li      r3,9                                   <== NOT EXECUTED
    rtems_bdbuf_show_usage ();                                        
                                                                      
  rtems_bdbuf_unlock_cache ();                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc1233c:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc12340:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc12344:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc12348:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc1234c:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc12350:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  rtems_bdbuf_set_state (bd, RTEMS_BDBUF_STATE_SYNC);                 
                                                                      
  rtems_chain_append_unprotected (&bdbuf_cache.sync, &bd->link);      
                                                                      
  if (bd->waiters)                                                    
    rtems_bdbuf_wake (&bdbuf_cache.access_waiters);                   
ffc12354:	38 7e 00 64 	addi    r3,r30,100                             
ffc12358:	4b ff db 25 	bl      ffc0fe7c <rtems_bdbuf_wake>            
ffc1235c:	4b ff ff ac 	b       ffc12308 <rtems_bdbuf_sync+0xa8>       
      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);         
ffc12360:	7f e3 fb 78 	mr      r3,r31                                 
ffc12364:	7f a4 eb 78 	mr      r4,r29                                 
ffc12368:	4b ff d9 89 	bl      ffc0fcf0 <rtems_bdbuf_wait>            
ffc1236c:	4b ff ff a4 	b       ffc12310 <rtems_bdbuf_sync+0xb0>       
  rtems_bdbuf_wait_for_sync_done (bd);                                
                                                                      
  /*                                                                  
   * We may have created a cached or empty buffer which may be recycled.
   */                                                                 
  if (bd->waiters == 0                                                
ffc12370:	83 bf 00 24 	lwz     r29,36(r31)                            
ffc12374:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc12378:	40 be ff 38 	bne-    cr7,ffc122b0 <rtems_bdbuf_sync+0x50>   
        && (bd->state == RTEMS_BDBUF_STATE_CACHED                     
          || bd->state == RTEMS_BDBUF_STATE_EMPTY))                   
ffc1237c:	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                     
ffc12380:	2b 89 00 01 	cmplwi  cr7,r9,1                               
ffc12384:	41 9d ff 2c 	bgt+    cr7,ffc122b0 <rtems_bdbuf_sync+0x50>   <== NEVER TAKEN
          || bd->state == RTEMS_BDBUF_STATE_EMPTY))                   
  {                                                                   
    if (bd->state == RTEMS_BDBUF_STATE_EMPTY)                         
ffc12388:	2f 83 00 01 	cmpwi   cr7,r3,1                               
ffc1238c:	41 9e 00 10 	beq-    cr7,ffc1239c <rtems_bdbuf_sync+0x13c>  
    {                                                                 
      rtems_bdbuf_remove_from_tree (bd);                              
      rtems_bdbuf_make_free_and_add_to_lru_list (bd);                 
    }                                                                 
    rtems_bdbuf_wake (&bdbuf_cache.buffer_waiters);                   
ffc12390:	38 7e 00 74 	addi    r3,r30,116                             
ffc12394:	4b ff da e9 	bl      ffc0fe7c <rtems_bdbuf_wake>            
ffc12398:	4b ff ff 18 	b       ffc122b0 <rtems_bdbuf_sync+0x50>       
        && (bd->state == RTEMS_BDBUF_STATE_CACHED                     
          || bd->state == RTEMS_BDBUF_STATE_EMPTY))                   
  {                                                                   
    if (bd->state == RTEMS_BDBUF_STATE_EMPTY)                         
    {                                                                 
      rtems_bdbuf_remove_from_tree (bd);                              
ffc1239c:	7f e3 fb 78 	mr      r3,r31                                 
ffc123a0:	4b ff dc f1 	bl      ffc10090 <rtems_bdbuf_remove_from_tree>
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
ffc123a4:	81 3e 00 40 	lwz     r9,64(r30)                             
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc123a8:	39 5e 00 40 	addi    r10,r30,64                             
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_set_state (rtems_bdbuf_buffer *bd, rtems_bdbuf_buf_state state)
{                                                                     
  bd->state = state;                                                  
ffc123ac:	93 bf 00 20 	stw     r29,32(r31)                            
ffc123b0:	91 5f 00 04 	stw     r10,4(r31)                             
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
ffc123b4:	93 fe 00 40 	stw     r31,64(r30)                            
  the_node->next        = before_node;                                
  before_node->previous = the_node;                                   
ffc123b8:	93 e9 00 04 	stw     r31,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;                                
ffc123bc:	91 3f 00 00 	stw     r9,0(r31)                              
ffc123c0:	4b ff ff d0 	b       ffc12390 <rtems_bdbuf_sync+0x130>      
                                                                      

ffc0fb50 <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) {
ffc0fb50:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0fb54:	7c 08 02 a6 	mflr    r0                                     
ffc0fb58:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0fb5c:	7c 9f 23 78 	mr      r31,r4                                 
ffc0fb60:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_status_code sc = rtems_semaphore_release (lock);              
ffc0fb64:	4b ff b5 85 	bl      ffc0b0e8 <rtems_semaphore_release>     
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc0fb68:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0fb6c:	40 9e 00 18 	bne-    cr7,ffc0fb84 <rtems_bdbuf_unlock+0x34> <== NEVER TAKEN
    rtems_bdbuf_fatal (fatal_error_code);                             
}                                                                     
ffc0fb70:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0fb74:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0fb78:	7c 08 03 a6 	mtlr    r0                                     
ffc0fb7c:	38 21 00 10 	addi    r1,r1,16                               
ffc0fb80:	4e 80 00 20 	blr                                            
static void                                                           
rtems_bdbuf_unlock (rtems_id lock, uint32_t fatal_error_code)         
{                                                                     
  rtems_status_code sc = rtems_semaphore_release (lock);              
  if (sc != RTEMS_SUCCESSFUL)                                         
    rtems_bdbuf_fatal (fatal_error_code);                             
ffc0fb84:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0fb88:	4b ff ff 45 	bl      ffc0facc <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                                                      

ffc0fd58 <rtems_bdbuf_wait_for_event>: return RTEMS_UNSATISFIED; } static void rtems_bdbuf_wait_for_event (rtems_event_set event) {
ffc0fd58:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0fd5c:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_event_set   out = 0;                                          
ffc0fd60:	39 20 00 00 	li      r9,0                                   
ffc0fd64:	7c 26 0b 78 	mr      r6,r1                                  
  return RTEMS_UNSATISFIED;                                           
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_wait_for_event (rtems_event_set event)                    
{                                                                     
ffc0fd68:	93 e1 00 1c 	stw     r31,28(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_event_set   out = 0;                                          
                                                                      
  sc = rtems_event_receive (event,                                    
ffc0fd6c:	38 80 00 00 	li      r4,0                                   
  return RTEMS_UNSATISFIED;                                           
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_wait_for_event (rtems_event_set event)                    
{                                                                     
ffc0fd70:	90 01 00 24 	stw     r0,36(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_event_set   out = 0;                                          
                                                                      
  sc = rtems_event_receive (event,                                    
ffc0fd74:	38 a0 00 00 	li      r5,0                                   
  return RTEMS_UNSATISFIED;                                           
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_wait_for_event (rtems_event_set event)                    
{                                                                     
ffc0fd78:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_event_set   out = 0;                                          
ffc0fd7c:	95 26 00 08 	stwu    r9,8(r6)                               
                                                                      
  sc = rtems_event_receive (event,                                    
ffc0fd80:	4b ff aa 5d 	bl      ffc0a7dc <rtems_event_receive>         
                            RTEMS_EVENT_ALL | RTEMS_WAIT,             
                            RTEMS_NO_TIMEOUT,                         
                            &out);                                    
                                                                      
  if (sc != RTEMS_SUCCESSFUL || out != event)                         
ffc0fd84:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0fd88:	40 9e 00 24 	bne-    cr7,ffc0fdac <rtems_bdbuf_wait_for_event+0x54><== NEVER TAKEN
ffc0fd8c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc0fd90:	7f 89 f8 00 	cmpw    cr7,r9,r31                             
ffc0fd94:	40 9e 00 18 	bne-    cr7,ffc0fdac <rtems_bdbuf_wait_for_event+0x54><== NEVER TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_WAIT_EVNT);                  
}                                                                     
ffc0fd98:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0fd9c:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0fda0:	7c 08 03 a6 	mtlr    r0                                     
ffc0fda4:	38 21 00 20 	addi    r1,r1,32                               
ffc0fda8:	4e 80 00 20 	blr                                            
                            RTEMS_EVENT_ALL | RTEMS_WAIT,             
                            RTEMS_NO_TIMEOUT,                         
                            &out);                                    
                                                                      
  if (sc != RTEMS_SUCCESSFUL || out != event)                         
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_WAIT_EVNT);                  
ffc0fdac:	38 60 00 1c 	li      r3,28                                  <== NOT EXECUTED
ffc0fdb0:	4b ff fd 1d 	bl      ffc0facc <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                                                      

ffc10d28 <rtems_bdbuf_wait_for_transient_event>: rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_WAIT_EVNT); } static void rtems_bdbuf_wait_for_transient_event (void) {
ffc10d28:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc10d2c:	7c 08 02 a6 	mflr    r0                                     
  rtems_interval ticks                                                
)                                                                     
{                                                                     
  rtems_event_set event_out;                                          
                                                                      
  return rtems_event_system_receive(                                  
ffc10d30:	3c 60 80 00 	lis     r3,-32768                              
ffc10d34:	38 80 00 00 	li      r4,0                                   
ffc10d38:	90 01 00 1c 	stw     r0,28(r1)                              
ffc10d3c:	38 a0 00 00 	li      r5,0                                   
ffc10d40:	38 c1 00 08 	addi    r6,r1,8                                
ffc10d44:	48 00 45 dd 	bl      ffc15320 <rtems_event_system_receive>  
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_event_transient_receive (RTEMS_WAIT, RTEMS_NO_TIMEOUT);  
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc10d48:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc10d4c:	40 9e 00 14 	bne-    cr7,ffc10d60 <rtems_bdbuf_wait_for_transient_event+0x38><== NEVER TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_WAIT_TRANS_EVNT);            
}                                                                     
ffc10d50:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc10d54:	38 21 00 18 	addi    r1,r1,24                               
ffc10d58:	7c 08 03 a6 	mtlr    r0                                     
ffc10d5c:	4e 80 00 20 	blr                                            
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  sc = rtems_event_transient_receive (RTEMS_WAIT, RTEMS_NO_TIMEOUT);  
  if (sc != RTEMS_SUCCESSFUL)                                         
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_WAIT_TRANS_EVNT);            
ffc10d60:	38 60 00 1d 	li      r3,29                                  <== NOT EXECUTED
ffc10d64:	4b ff ed 69 	bl      ffc0facc <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                                                      

ffc0fe7c <rtems_bdbuf_wake>: static void rtems_bdbuf_wake (const rtems_bdbuf_waiters *waiters) { rtems_status_code sc = RTEMS_SUCCESSFUL; if (waiters->count > 0)
ffc0fe7c:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0fe80:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0fe84:	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)                 
{                                                                     
ffc0fe88:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc0fe8c:	7c 08 02 a6 	mflr    r0                                     
ffc0fe90:	90 01 00 0c 	stw     r0,12(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (waiters->count > 0)                                             
  {                                                                   
    sc = rtems_semaphore_flush (waiters->sema);                       
ffc0fe94:	80 63 00 04 	lwz     r3,4(r3)                               
ffc0fe98:	48 00 53 e1 	bl      ffc15278 <rtems_semaphore_flush>       
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc0fe9c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0fea0:	40 9e 00 14 	bne-    cr7,ffc0feb4 <rtems_bdbuf_wake+0x38>   <== NEVER TAKEN
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_CACHE_WAKE);               
  }                                                                   
}                                                                     
ffc0fea4:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc0fea8:	38 21 00 08 	addi    r1,r1,8                                
ffc0feac:	7c 08 03 a6 	mtlr    r0                                     
ffc0feb0:	4e 80 00 20 	blr                                            
                                                                      
  if (waiters->count > 0)                                             
  {                                                                   
    sc = rtems_semaphore_flush (waiters->sema);                       
    if (sc != RTEMS_SUCCESSFUL)                                       
      rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_CACHE_WAKE);               
ffc0feb4:	38 60 00 04 	li      r3,4                                   <== NOT EXECUTED
ffc0feb8:	4b ff fc 15 	bl      ffc0facc <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                                                      

ffc0fb9c <rtems_bdbuf_wake_swapper>: } static void rtems_bdbuf_wake_swapper (void) { rtems_status_code sc = rtems_event_send (bdbuf_cache.swapout,
ffc0fb9c:	3d 20 00 00 	lis     r9,0                                   
  }                                                                   
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_wake_swapper (void)                                       
{                                                                     
ffc0fba0:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc0fba4:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = rtems_event_send (bdbuf_cache.swapout,       
ffc0fba8:	38 80 00 04 	li      r4,4                                   
ffc0fbac:	80 69 2a 00 	lwz     r3,10752(r9)                           
  }                                                                   
}                                                                     
                                                                      
static void                                                           
rtems_bdbuf_wake_swapper (void)                                       
{                                                                     
ffc0fbb0:	90 01 00 0c 	stw     r0,12(r1)                              
  rtems_status_code sc = rtems_event_send (bdbuf_cache.swapout,       
ffc0fbb4:	4b ff ae 2d 	bl      ffc0a9e0 <rtems_event_send>            
                                           RTEMS_BDBUF_SWAPOUT_SYNC); 
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc0fbb8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0fbbc:	40 9e 00 14 	bne-    cr7,ffc0fbd0 <rtems_bdbuf_wake_swapper+0x34><== NEVER TAKEN
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_WAKE_1);                  
}                                                                     
ffc0fbc0:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc0fbc4:	38 21 00 08 	addi    r1,r1,8                                
ffc0fbc8:	7c 08 03 a6 	mtlr    r0                                     
ffc0fbcc:	4e 80 00 20 	blr                                            
rtems_bdbuf_wake_swapper (void)                                       
{                                                                     
  rtems_status_code sc = rtems_event_send (bdbuf_cache.swapout,       
                                           RTEMS_BDBUF_SWAPOUT_SYNC); 
  if (sc != RTEMS_SUCCESSFUL)                                         
    rtems_bdbuf_fatal (RTEMS_BDBUF_FATAL_SO_WAKE_1);                  
ffc0fbd0:	38 60 00 0b 	li      r3,11                                  <== NOT EXECUTED
ffc0fbd4:	4b ff fe f9 	bl      ffc0facc <rtems_bdbuf_fatal>           <== NOT EXECUTED
                                                                      

ffc04174 <rtems_bdpart_create>: const rtems_bdpart_format *format, rtems_bdpart_partition *pt, const unsigned *dist, size_t count ) {
ffc04174:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc04178:	7c 08 02 a6 	mflr    r0                                     
ffc0417c:	93 e1 00 34 	stw     r31,52(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool dos_compatibility = format != NULL                             
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
    && format->mbr.dos_compatibility;                                 
ffc04180:	7c 9f 23 79 	mr.     r31,r4                                 
  const rtems_bdpart_format *format,                                  
  rtems_bdpart_partition *pt,                                         
  const unsigned *dist,                                               
  size_t count                                                        
)                                                                     
{                                                                     
ffc04184:	90 01 00 3c 	stw     r0,60(r1)                              
ffc04188:	93 61 00 24 	stw     r27,36(r1)                             
ffc0418c:	93 81 00 28 	stw     r28,40(r1)                             
ffc04190:	93 a1 00 2c 	stw     r29,44(r1)                             
ffc04194:	93 c1 00 30 	stw     r30,48(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool dos_compatibility = format != NULL                             
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
    && format->mbr.dos_compatibility;                                 
ffc04198:	41 82 00 f4 	beq-    ffc0428c <rtems_bdpart_create+0x118>   <== NEVER TAKEN
  size_t count                                                        
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool dos_compatibility = format != NULL                             
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
ffc0419c:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc041a0:	7c bd 2b 78 	mr      r29,r5                                 
ffc041a4:	7c de 33 78 	mr      r30,r6                                 
ffc041a8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc041ac:	40 9e 00 10 	bne-    cr7,ffc041bc <rtems_bdpart_create+0x48><== NEVER TAKEN
    && format->mbr.dos_compatibility;                                 
ffc041b0:	89 5f 00 08 	lbz     r10,8(r31)                             
ffc041b4:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc041b8:	40 9e 00 20 	bne-    cr7,ffc041d8 <rtems_bdpart_create+0x64><== ALWAYS TAKEN
  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) {                                                   
ffc041bc:	2f 87 00 00 	cmpwi   cr7,r7,0                               <== NOT EXECUTED
{                                                                     
  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;                                     
ffc041c0:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc041c4:	91 21 00 08 	stw     r9,8(r1)                               <== NOT EXECUTED
  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) {                                                   
ffc041c8:	41 9e 00 1c 	beq-    cr7,ffc041e4 <rtems_bdpart_create+0x70><== NOT EXECUTED
  const unsigned *dist,                                               
  size_t count                                                        
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool dos_compatibility = format != NULL                             
ffc041cc:	3b 60 00 00 	li      r27,0                                  <== NOT EXECUTED
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
    && format->mbr.dos_compatibility;                                 
  rtems_blkdev_bnum disk_end = 0;                                     
  rtems_blkdev_bnum pos = 0;                                          
  rtems_blkdev_bnum dist_sum = 0;                                     
  rtems_blkdev_bnum record_space =                                    
ffc041d0:	3b 80 00 01 	li      r28,1                                  <== NOT EXECUTED
ffc041d4:	48 00 00 40 	b       ffc04214 <rtems_bdpart_create+0xa0>    <== NOT EXECUTED
  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) {                                                   
ffc041d8:	2f 87 00 00 	cmpwi   cr7,r7,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;                                     
ffc041dc:	91 21 00 08 	stw     r9,8(r1)                               
  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) {                                                   
ffc041e0:	40 be 00 2c 	bne+    cr7,ffc0420c <rtems_bdpart_create+0x98><== ALWAYS TAKEN
    /* Nothing to do */                                               
    return RTEMS_SUCCESSFUL;                                          
ffc041e4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
                                                                      
  /* Expand the last partition to the disk end */                     
  pt [count - 1].end = disk_end;                                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc041e8:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc041ec:	83 61 00 24 	lwz     r27,36(r1)                             
ffc041f0:	7c 08 03 a6 	mtlr    r0                                     
ffc041f4:	83 81 00 28 	lwz     r28,40(r1)                             
ffc041f8:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc041fc:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc04200:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc04204:	38 21 00 38 	addi    r1,r1,56                               
ffc04208:	4e 80 00 20 	blr                                            
  const unsigned *dist,                                               
  size_t count                                                        
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  bool dos_compatibility = format != NULL                             
ffc0420c:	3b 60 00 01 	li      r27,1                                  
    && format->type == RTEMS_BDPART_FORMAT_MBR                        
    && format->mbr.dos_compatibility;                                 
  rtems_blkdev_bnum disk_end = 0;                                     
  rtems_blkdev_bnum pos = 0;                                          
  rtems_blkdev_bnum dist_sum = 0;                                     
  rtems_blkdev_bnum record_space =                                    
ffc04210:	3b 80 00 3f 	li      r28,63                                 
    /* Nothing to do */                                               
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL || dist == NULL) {                 
ffc04214:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc04218:	41 9e 00 7c 	beq-    cr7,ffc04294 <rtems_bdpart_create+0x120><== NEVER TAKEN
ffc0421c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc04220:	41 9e 00 74 	beq-    cr7,ffc04294 <rtems_bdpart_create+0x120><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  /* Get disk data */                                                 
  sc = rtems_bdpart_get_disk_data( disk_name, NULL, NULL, &disk_end); 
ffc04224:	38 80 00 00 	li      r4,0                                   
ffc04228:	90 e1 00 18 	stw     r7,24(r1)                              
ffc0422c:	38 a0 00 00 	li      r5,0                                   
ffc04230:	38 c1 00 08 	addi    r6,r1,8                                
ffc04234:	48 00 06 09 	bl      ffc0483c <rtems_bdpart_get_disk_data>  
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04238:	80 e1 00 18 	lwz     r7,24(r1)                              
ffc0423c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc04240:	40 a2 ff a8 	bne-    ffc041e8 <rtems_bdpart_create+0x74>    <== NEVER TAKEN
                                                                      
  /* Get distribution sum and check for overflow */                   
  for (i = 0; i < count; ++i) {                                       
    unsigned prev_sum = dist_sum;                                     
                                                                      
    dist_sum += dist [i];                                             
ffc04244:	80 de 00 00 	lwz     r6,0(r30)                              
                                                                      
    if (dist_sum < prev_sum) {                                        
      return RTEMS_INVALID_NUMBER;                                    
    }                                                                 
                                                                      
    if (dist [i] == 0) {                                              
ffc04248:	2f 86 00 00 	cmpwi   cr7,r6,0                               
ffc0424c:	41 9e 00 38 	beq-    cr7,ffc04284 <rtems_bdpart_create+0x110><== NEVER TAKEN
ffc04250:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc04254:	7c e9 03 a6 	mtctr   r7                                     
ffc04258:	7f c4 f3 78 	mr      r4,r30                                 
ffc0425c:	7c c9 33 78 	mr      r9,r6                                  
ffc04260:	41 9e 01 84 	beq-    cr7,ffc043e4 <rtems_bdpart_create+0x270><== NEVER TAKEN
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
                                                                      
  /* Get distribution sum and check for overflow */                   
  for (i = 0; i < count; ++i) {                                       
ffc04264:	42 40 00 58 	bdz-    ffc042bc <rtems_bdpart_create+0x148>   
    unsigned prev_sum = dist_sum;                                     
                                                                      
    dist_sum += dist [i];                                             
ffc04268:	85 04 00 04 	lwzu    r8,4(r4)                               
ffc0426c:	7d 49 42 14 	add     r10,r9,r8                              
                                                                      
    if (dist_sum < prev_sum) {                                        
ffc04270:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
      return RTEMS_INVALID_NUMBER;                                    
    }                                                                 
                                                                      
    if (dist [i] == 0) {                                              
ffc04274:	2f 08 00 00 	cmpwi   cr6,r8,0                               
                                                                      
  /* Get distribution sum and check for overflow */                   
  for (i = 0; i < count; ++i) {                                       
    unsigned prev_sum = dist_sum;                                     
                                                                      
    dist_sum += dist [i];                                             
ffc04278:	7d 49 53 78 	mr      r9,r10                                 
                                                                      
    if (dist_sum < prev_sum) {                                        
ffc0427c:	41 9c 00 08 	blt-    cr7,ffc04284 <rtems_bdpart_create+0x110><== NEVER TAKEN
      return RTEMS_INVALID_NUMBER;                                    
    }                                                                 
                                                                      
    if (dist [i] == 0) {                                              
ffc04280:	40 9a ff e4 	bne+    cr6,ffc04264 <rtems_bdpart_create+0xf0><== ALWAYS TAKEN
      return RTEMS_INVALID_NUMBER;                                    
ffc04284:	38 60 00 0a 	li      r3,10                                  <== NOT EXECUTED
ffc04288:	4b ff ff 60 	b       ffc041e8 <rtems_bdpart_create+0x74>    <== NOT EXECUTED
  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) {                                                   
ffc0428c:	2f 87 00 00 	cmpwi   cr7,r7,0                               <== NOT EXECUTED
ffc04290:	41 be ff 54 	beq-    cr7,ffc041e4 <rtems_bdpart_create+0x70><== NOT EXECUTED
                                                                      
  /* Expand the last partition to the disk end */                     
  pt [count - 1].end = disk_end;                                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04294:	80 01 00 3c 	lwz     r0,60(r1)                              <== NOT EXECUTED
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL || dist == NULL) {                 
    return RTEMS_INVALID_ADDRESS;                                     
ffc04298:	38 60 00 09 	li      r3,9                                   <== NOT EXECUTED
                                                                      
  /* Expand the last partition to the disk end */                     
  pt [count - 1].end = disk_end;                                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0429c:	83 61 00 24 	lwz     r27,36(r1)                             <== NOT EXECUTED
ffc042a0:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc042a4:	83 81 00 28 	lwz     r28,40(r1)                             <== NOT EXECUTED
ffc042a8:	83 a1 00 2c 	lwz     r29,44(r1)                             <== NOT EXECUTED
ffc042ac:	83 c1 00 30 	lwz     r30,48(r1)                             <== NOT EXECUTED
ffc042b0:	83 e1 00 34 	lwz     r31,52(r1)                             <== NOT EXECUTED
ffc042b4:	38 21 00 38 	addi    r1,r1,56                               <== NOT EXECUTED
ffc042b8:	4e 80 00 20 	blr                                            <== NOT EXECUTED
      return RTEMS_INVALID_NUMBER;                                    
    }                                                                 
  }                                                                   
                                                                      
  /* Check format */                                                  
  if (format->type != RTEMS_BDPART_FORMAT_MBR) {                      
ffc042bc:	81 5f 00 00 	lwz     r10,0(r31)                             
ffc042c0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc042c4:	41 9e 00 0c 	beq-    cr7,ffc042d0 <rtems_bdpart_create+0x15c><== ALWAYS TAKEN
    return RTEMS_NOT_IMPLEMENTED;                                     
ffc042c8:	38 60 00 18 	li      r3,24                                  <== NOT EXECUTED
ffc042cc:	4b ff ff 1c 	b       ffc041e8 <rtems_bdpart_create+0x74>    <== NOT EXECUTED
  }                                                                   
                                                                      
  /* Align end of disk on cylinder boundary if necessary */           
  if (dos_compatibility) {                                            
ffc042d0:	2f 1b 00 00 	cmpwi   cr6,r27,0                              
ffc042d4:	40 9a 00 44 	bne-    cr6,ffc04318 <rtems_bdpart_create+0x1a4><== ALWAYS TAKEN
ffc042d8:	83 e1 00 08 	lwz     r31,8(r1)                              <== NOT EXECUTED
                                                                      
  /*                                                                  
   * In case we need an extended partition and logical partitions we have to
   * account for the space of each EBR.                               
   */                                                                 
  if (count > 4) {                                                    
ffc042dc:	2b 87 00 04 	cmplwi  cr7,r7,4                               
ffc042e0:	7f 80 e3 78 	mr      r0,r28                                 
ffc042e4:	40 9d 00 10 	ble-    cr7,ffc042f4 <rtems_bdpart_create+0x180><== NEVER TAKEN
    overhead += (count - 3) * record_space;                           
ffc042e8:	38 07 ff fd 	addi    r0,r7,-3                               
ffc042ec:	7c 1c 01 d6 	mullw   r0,r28,r0                              
ffc042f0:	7c 00 e2 14 	add     r0,r0,r28                              
                                                                      
  /*                                                                  
   * Account space to align every partition on cylinder boundaries if 
   * necessary.                                                       
   */                                                                 
  if (dos_compatibility) {                                            
ffc042f4:	41 9a 00 10 	beq-    cr6,ffc04304 <rtems_bdpart_create+0x190><== NEVER TAKEN
    overhead += (count - 1) * record_space;                           
ffc042f8:	39 47 ff ff 	addi    r10,r7,-1                              
ffc042fc:	7d 5c 51 d6 	mullw   r10,r28,r10                            
ffc04300:	7c 00 52 14 	add     r0,r0,r10                              
  }                                                                   
                                                                      
  /* Check disk space */                                              
  if ((overhead + count) > disk_end) {                                
ffc04304:	7d 40 3a 14 	add     r10,r0,r7                              
ffc04308:	7f 8a f8 40 	cmplw   cr7,r10,r31                            
ffc0430c:	40 9d 00 1c 	ble-    cr7,ffc04328 <rtems_bdpart_create+0x1b4><== ALWAYS TAKEN
    return RTEMS_IO_ERROR;                                            
ffc04310:	38 60 00 1b 	li      r3,27                                  <== NOT EXECUTED
ffc04314:	4b ff fe d4 	b       ffc041e8 <rtems_bdpart_create+0x74>    <== NOT EXECUTED
    return RTEMS_NOT_IMPLEMENTED;                                     
  }                                                                   
                                                                      
  /* Align end of disk on cylinder boundary if necessary */           
  if (dos_compatibility) {                                            
    disk_end -= (disk_end % record_space);                            
ffc04318:	81 41 00 08 	lwz     r10,8(r1)                              
ffc0431c:	7d 4a e3 96 	divwu   r10,r10,r28                            
ffc04320:	7f ea e1 d6 	mullw   r31,r10,r28                            
ffc04324:	4b ff ff b8 	b       ffc042dc <rtems_bdpart_create+0x168>   
                                                                      
  /* Begin of first primary partition */                              
  pos = record_space;                                                 
                                                                      
  /* Space for partitions */                                          
  free_space = disk_end - overhead;                                   
ffc04328:	7c 00 f8 50 	subf    r0,r0,r31                              
                                                                      
  for (i = 0; i < count; ++i) {                                       
    rtems_bdpart_partition *p = pt + i;                               
                                                                      
    /* Partition size */                                              
    rtems_blkdev_bnum s = free_space * dist [i];                      
ffc0432c:	7d 00 31 d6 	mullw   r8,r0,r6                               
    if (s < free_space || s < dist [i]) {                             
ffc04330:	7f 80 40 40 	cmplw   cr7,r0,r8                              
ffc04334:	41 bd ff 50 	bgt-    cr7,ffc04284 <rtems_bdpart_create+0x110><== NEVER TAKEN
ffc04338:	7f 88 30 40 	cmplw   cr7,r8,r6                              
ffc0433c:	41 bc ff 48 	blt-    cr7,ffc04284 <rtems_bdpart_create+0x110><== NEVER TAKEN
ffc04340:	2f 87 00 00 	cmpwi   cr7,r7,0                               
    }                                                                 
    s /= dist_sum;                                                    
                                                                      
    /* Ensure that the partition is not empty */                      
    if (s == 0) {                                                     
      s = 1;                                                          
ffc04344:	7c e9 03 a6 	mtctr   r7                                     
#endif                                                                
                                                                      
#include <rtems.h>                                                    
#include <rtems/bdpart.h>                                             
                                                                      
rtems_status_code rtems_bdpart_create(                                
ffc04348:	38 9d 00 30 	addi    r4,r29,48                              
ffc0434c:	7f a5 eb 78 	mr      r5,r29                                 
ffc04350:	7f 8a e3 78 	mr      r10,r28                                
  pos = record_space;                                                 
                                                                      
  /* Space for partitions */                                          
  free_space = disk_end - overhead;                                   
                                                                      
  for (i = 0; i < count; ++i) {                                       
ffc04354:	38 c0 00 00 	li      r6,0                                   
ffc04358:	40 be 00 28 	bne+    cr7,ffc04380 <rtems_bdpart_create+0x20c><== ALWAYS TAKEN
ffc0435c:	48 00 00 7c 	b       ffc043d8 <rtems_bdpart_create+0x264>   <== NOT EXECUTED
    rtems_bdpart_partition *p = pt + i;                               
                                                                      
    /* Partition size */                                              
    rtems_blkdev_bnum s = free_space * dist [i];                      
ffc04360:	85 7e 00 04 	lwzu    r11,4(r30)                             
                                                                      
  /* Space for partitions */                                          
  free_space = disk_end - overhead;                                   
                                                                      
  for (i = 0; i < count; ++i) {                                       
    rtems_bdpart_partition *p = pt + i;                               
ffc04364:	7c 85 23 78 	mr      r5,r4                                  
ffc04368:	38 84 00 30 	addi    r4,r4,48                               
                                                                      
    /* Partition size */                                              
    rtems_blkdev_bnum s = free_space * dist [i];                      
ffc0436c:	7d 00 59 d6 	mullw   r8,r0,r11                              
    if (s < free_space || s < dist [i]) {                             
ffc04370:	7f 80 40 40 	cmplw   cr7,r0,r8                              
ffc04374:	7f 0b 40 40 	cmplw   cr6,r11,r8                             
ffc04378:	41 bd ff 0c 	bgt-    cr7,ffc04284 <rtems_bdpart_create+0x110><== NEVER TAKEN
ffc0437c:	41 b9 ff 08 	bgt-    cr6,ffc04284 <rtems_bdpart_create+0x110><== NEVER TAKEN
      /* TODO: Calculate without overflow */                          
      return RTEMS_INVALID_NUMBER;                                    
    }                                                                 
    s /= dist_sum;                                                    
ffc04380:	7d 08 4b 96 	divwu   r8,r8,r9                               
                                                                      
    /* Ensure that the partition is not empty */                      
    if (s == 0) {                                                     
ffc04384:	2f 08 00 00 	cmpwi   cr6,r8,0                               
                                                                      
    /* Align partition upwards */                                     
    s += record_space - (s % record_space);                           
                                                                      
    /* Reserve space for the EBR if necessary */                      
    if (count > 4 && i > 2) {                                         
ffc04388:	28 86 00 02 	cmplwi  cr1,r6,2                               
ffc0438c:	2b 87 00 04 	cmplwi  cr7,r7,4                               
  pos = record_space;                                                 
                                                                      
  /* Space for partitions */                                          
  free_space = disk_end - overhead;                                   
                                                                      
  for (i = 0; i < count; ++i) {                                       
ffc04390:	38 c6 00 01 	addi    r6,r6,1                                
      return RTEMS_INVALID_NUMBER;                                    
    }                                                                 
    s /= dist_sum;                                                    
                                                                      
    /* Ensure that the partition is not empty */                      
    if (s == 0) {                                                     
ffc04394:	40 9a 00 08 	bne-    cr6,ffc0439c <rtems_bdpart_create+0x228><== ALWAYS TAKEN
      s = 1;                                                          
ffc04398:	39 00 00 01 	li      r8,1                                   <== NOT EXECUTED
    }                                                                 
                                                                      
    /* Align partition upwards */                                     
    s += record_space - (s % record_space);                           
ffc0439c:	7d 08 e3 96 	divwu   r8,r8,r28                              
ffc043a0:	7d 08 e1 d6 	mullw   r8,r8,r28                              
ffc043a4:	7d 1c 42 14 	add     r8,r28,r8                              
                                                                      
    /* Reserve space for the EBR if necessary */                      
    if (count > 4 && i > 2) {                                         
ffc043a8:	40 9d 00 0c 	ble-    cr7,ffc043b4 <rtems_bdpart_create+0x240><== NEVER TAKEN
ffc043ac:	40 85 00 08 	ble-    cr1,ffc043b4 <rtems_bdpart_create+0x240>
      pos += record_space;                                            
ffc043b0:	7d 4a e2 14 	add     r10,r10,r28                            
    }                                                                 
                                                                      
    /* Partition begin and end */                                     
    p->begin = pos;                                                   
ffc043b4:	91 45 00 00 	stw     r10,0(r5)                              
    pos += s;                                                         
ffc043b8:	7d 4a 42 14 	add     r10,r10,r8                             
    p->end = pos;                                                     
ffc043bc:	91 45 00 04 	stw     r10,4(r5)                              
  pos = record_space;                                                 
                                                                      
  /* Space for partitions */                                          
  free_space = disk_end - overhead;                                   
                                                                      
  for (i = 0; i < count; ++i) {                                       
ffc043c0:	42 00 ff a0 	bdnz+   ffc04360 <rtems_bdpart_create+0x1ec>   
    pos += s;                                                         
    p->end = pos;                                                     
  }                                                                   
                                                                      
  /* Expand the last partition to the disk end */                     
  pt [count - 1].end = disk_end;                                      
ffc043c4:	39 27 ff ff 	addi    r9,r7,-1                               
ffc043c8:	1d 29 00 30 	mulli   r9,r9,48                               
ffc043cc:	7f bd 4a 14 	add     r29,r29,r9                             
ffc043d0:	93 fd 00 04 	stw     r31,4(r29)                             
ffc043d4:	4b ff fe 14 	b       ffc041e8 <rtems_bdpart_create+0x74>    
ffc043d8:	39 60 00 01 	li      r11,1                                  <== NOT EXECUTED
ffc043dc:	7d 69 03 a6 	mtctr   r11                                    <== NOT EXECUTED
ffc043e0:	4b ff ff a0 	b       ffc04380 <rtems_bdpart_create+0x20c>   <== NOT EXECUTED
ffc043e4:	39 40 00 01 	li      r10,1                                  <== NOT EXECUTED
ffc043e8:	7d 49 03 a6 	mtctr   r10                                    <== NOT EXECUTED
ffc043ec:	4b ff fe 78 	b       ffc04264 <rtems_bdpart_create+0xf0>    <== NOT EXECUTED
                                                                      

ffc043f0 <rtems_bdpart_dump>: { uuid_unparse_lower( type, str); } void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count) {
ffc043f0:	94 21 ff 80 	stwu    r1,-128(r1)                            
ffc043f4:	7c 08 02 a6 	mflr    r0                                     
ffc043f8:	93 e1 00 7c 	stw     r31,124(r1)                            
ffc043fc:	7c 7f 1b 78 	mr      r31,r3                                 
  size_t i = 0;                                                       
                                                                      
  printf(                                                             
ffc04400:	3c 60 ff c3 	lis     r3,-61                                 
{                                                                     
  uuid_unparse_lower( type, str);                                     
}                                                                     
                                                                      
void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count)
{                                                                     
ffc04404:	93 81 00 70 	stw     r28,112(r1)                            
  size_t i = 0;                                                       
                                                                      
  printf(                                                             
ffc04408:	38 63 9e 4c 	addi    r3,r3,-25012                           
{                                                                     
  uuid_unparse_lower( type, str);                                     
}                                                                     
                                                                      
void rtems_bdpart_dump( const rtems_bdpart_partition *pt, size_t count)
{                                                                     
ffc0440c:	7c 9c 23 78 	mr      r28,r4                                 
ffc04410:	90 01 00 84 	stw     r0,132(r1)                             
ffc04414:	92 61 00 4c 	stw     r19,76(r1)                             
ffc04418:	92 81 00 50 	stw     r20,80(r1)                             
ffc0441c:	92 a1 00 54 	stw     r21,84(r1)                             
ffc04420:	92 c1 00 58 	stw     r22,88(r1)                             
ffc04424:	92 e1 00 5c 	stw     r23,92(r1)                             
ffc04428:	93 01 00 60 	stw     r24,96(r1)                             
ffc0442c:	93 21 00 64 	stw     r25,100(r1)                            
ffc04430:	93 41 00 68 	stw     r26,104(r1)                            
ffc04434:	93 61 00 6c 	stw     r27,108(r1)                            
ffc04438:	93 a1 00 74 	stw     r29,116(r1)                            
ffc0443c:	93 c1 00 78 	stw     r30,120(r1)                            
  size_t i = 0;                                                       
                                                                      
  printf(                                                             
ffc04440:	48 01 6d 71 	bl      ffc1b1b0 <puts>                        
    "------------+------------+-----------------------------------------------------\n"
    " BEGIN      | END        | TYPE\n"                               
    "------------+------------+-----------------------------------------------------\n"
  );                                                                  
                                                                      
  for (i = 0; i < count; ++i) {                                       
ffc04444:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc04448:	41 9e 00 e8 	beq-    cr7,ffc04530 <rtems_bdpart_dump+0x140> <== NEVER TAKEN
ffc0444c:	3f 40 ff c3 	lis     r26,-61                                
          break;                                                      
        case RTEMS_BDPART_MBR_DATA:                                   
          type = "DATA";                                              
          break;                                                      
        default:                                                      
          snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
ffc04450:	3e 80 ff c3 	lis     r20,-61                                
    "------------+------------+-----------------------------------------------------\n"
    " BEGIN      | END        | TYPE\n"                               
    "------------+------------+-----------------------------------------------------\n"
  );                                                                  
                                                                      
  for (i = 0; i < count; ++i) {                                       
ffc04454:	3b c0 00 00 	li      r30,0                                  
ffc04458:	3b 5a 9f 94 	addi    r26,r26,-24684                         
    const rtems_bdpart_partition *p = pt + i;                         
    const char *type = NULL;                                          
    char type_buffer [52];                                            
    uint8_t type_mbr = 0;                                             
ffc0445c:	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";                                            
ffc04460:	3e 60 ff c3 	lis     r19,-61                                
          break;                                                      
        case RTEMS_BDPART_MBR_DATA:                                   
          type = "DATA";                                              
          break;                                                      
        default:                                                      
          snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
ffc04464:	3a 94 9f 8c 	addi    r20,r20,-24692                         
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16:                                 
          type = "FAT 16";                                            
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16_LBA:                             
          type = "FAT 16 LBA";                                        
ffc04468:	3e a0 ff c3 	lis     r21,-61                                
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32_LBA:                             
          type = "FAT 32 LBA";                                        
          break;                                                      
        case RTEMS_BDPART_MBR_DATA:                                   
          type = "DATA";                                              
ffc0446c:	3e c0 ff c3 	lis     r22,-61                                
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32:                                 
          type = "FAT 32";                                            
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32_LBA:                             
          type = "FAT 32 LBA";                                        
ffc04470:	3e e0 ff c3 	lis     r23,-61                                
    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";                                            
ffc04474:	3f 00 ff c3 	lis     r24,-61                                
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16:                                 
          type = "FAT 16";                                            
ffc04478:	3f 20 ff c3 	lis     r25,-61                                
ffc0447c:	48 00 00 64 	b       ffc044e0 <rtems_bdpart_dump+0xf0>      
    const char *type = NULL;                                          
    char type_buffer [52];                                            
    uint8_t type_mbr = 0;                                             
                                                                      
    if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {    
      switch (type_mbr) {                                             
ffc04480:	88 c1 00 3c 	lbz     r6,60(r1)                              
ffc04484:	2f 86 00 0b 	cmpwi   cr7,r6,11                              
ffc04488:	41 9e 01 28 	beq-    cr7,ffc045b0 <rtems_bdpart_dump+0x1c0> <== ALWAYS TAKEN
ffc0448c:	2b 86 00 0b 	cmplwi  cr7,r6,11                              <== NOT EXECUTED
ffc04490:	41 9d 00 f0 	bgt-    cr7,ffc04580 <rtems_bdpart_dump+0x190> <== NOT EXECUTED
ffc04494:	2f 86 00 01 	cmpwi   cr7,r6,1                               <== NOT EXECUTED
ffc04498:	41 9e 01 28 	beq-    cr7,ffc045c0 <rtems_bdpart_dump+0x1d0> <== NOT EXECUTED
ffc0449c:	2f 86 00 04 	cmpwi   cr7,r6,4                               <== NOT EXECUTED
ffc044a0:	41 9e 01 18 	beq-    cr7,ffc045b8 <rtems_bdpart_dump+0x1c8> <== NOT EXECUTED
          break;                                                      
        case RTEMS_BDPART_MBR_DATA:                                   
          type = "DATA";                                              
          break;                                                      
        default:                                                      
          snprintf( type_buffer, sizeof( type_buffer), "0x%02" PRIx8, type_mbr);
ffc044a4:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc044a8:	38 80 00 34 	li      r4,52                                  <== NOT EXECUTED
ffc044ac:	7e 85 a3 78 	mr      r5,r20                                 <== NOT EXECUTED
ffc044b0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc044b4:	48 01 6e 19 	bl      ffc1b2cc <snprintf>                    <== NOT EXECUTED
          type = type_buffer;                                         
ffc044b8:	38 c1 00 08 	addi    r6,r1,8                                <== NOT EXECUTED
    } else {                                                          
      rtems_bdpart_type_to_string( p->type, type_buffer);             
      type = type_buffer;                                             
    }                                                                 
                                                                      
    printf(                                                           
ffc044bc:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc044c0:	7f 43 d3 78 	mr      r3,r26                                 
ffc044c4:	80 bf 00 04 	lwz     r5,4(r31)                              
    "------------+------------+-----------------------------------------------------\n"
    " BEGIN      | END        | TYPE\n"                               
    "------------+------------+-----------------------------------------------------\n"
  );                                                                  
                                                                      
  for (i = 0; i < count; ++i) {                                       
ffc044c8:	3b de 00 01 	addi    r30,r30,1                              
ffc044cc:	3b ff 00 30 	addi    r31,r31,48                             
    } else {                                                          
      rtems_bdpart_type_to_string( p->type, type_buffer);             
      type = type_buffer;                                             
    }                                                                 
                                                                      
    printf(                                                           
ffc044d0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc044d4:	48 01 6b 81 	bl      ffc1b054 <printf>                      
    "------------+------------+-----------------------------------------------------\n"
    " BEGIN      | END        | TYPE\n"                               
    "------------+------------+-----------------------------------------------------\n"
  );                                                                  
                                                                      
  for (i = 0; i < count; ++i) {                                       
ffc044d8:	7f 9e e0 00 	cmpw    cr7,r30,r28                            
ffc044dc:	41 9e 00 54 	beq-    cr7,ffc04530 <rtems_bdpart_dump+0x140> 
    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)) {    
ffc044e0:	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;                                             
ffc044e4:	9b 61 00 3c 	stb     r27,60(r1)                             
                                                                      
    if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {    
ffc044e8:	7f a3 eb 78 	mr      r3,r29                                 
ffc044ec:	38 81 00 3c 	addi    r4,r1,60                               
ffc044f0:	48 00 03 09 	bl      ffc047f8 <rtems_bdpart_to_mbr_partition_type>
ffc044f4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc044f8:	40 9e ff 88 	bne+    cr7,ffc04480 <rtems_bdpart_dump+0x90>  <== ALWAYS TAKEN
static void rtems_bdpart_type_to_string(                              
  const uuid_t type,                                                  
  char str [37]                                                       
)                                                                     
{                                                                     
  uuid_unparse_lower( type, str);                                     
ffc044fc:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc04500:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc04504:	48 00 d3 fd 	bl      ffc11900 <uuid_unparse_lower>          <== NOT EXECUTED
    } else {                                                          
      rtems_bdpart_type_to_string( p->type, type_buffer);             
      type = type_buffer;                                             
    }                                                                 
                                                                      
    printf(                                                           
ffc04508:	80 9f 00 00 	lwz     r4,0(r31)                              <== NOT EXECUTED
ffc0450c:	80 bf 00 04 	lwz     r5,4(r31)                              <== NOT EXECUTED
          type = type_buffer;                                         
          break;                                                      
      }                                                               
    } else {                                                          
      rtems_bdpart_type_to_string( p->type, type_buffer);             
      type = type_buffer;                                             
ffc04510:	38 c1 00 08 	addi    r6,r1,8                                <== NOT EXECUTED
    }                                                                 
                                                                      
    printf(                                                           
ffc04514:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
    "------------+------------+-----------------------------------------------------\n"
    " BEGIN      | END        | TYPE\n"                               
    "------------+------------+-----------------------------------------------------\n"
  );                                                                  
                                                                      
  for (i = 0; i < count; ++i) {                                       
ffc04518:	3b de 00 01 	addi    r30,r30,1                              <== NOT EXECUTED
    } else {                                                          
      rtems_bdpart_type_to_string( p->type, type_buffer);             
      type = type_buffer;                                             
    }                                                                 
                                                                      
    printf(                                                           
ffc0451c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc04520:	48 01 6b 35 	bl      ffc1b054 <printf>                      <== NOT EXECUTED
    "------------+------------+-----------------------------------------------------\n"
    " BEGIN      | END        | TYPE\n"                               
    "------------+------------+-----------------------------------------------------\n"
  );                                                                  
                                                                      
  for (i = 0; i < count; ++i) {                                       
ffc04524:	7f 9e e0 00 	cmpw    cr7,r30,r28                            <== NOT EXECUTED
ffc04528:	3b ff 00 30 	addi    r31,r31,48                             <== NOT EXECUTED
ffc0452c:	40 9e ff b4 	bne+    cr7,ffc044e0 <rtems_bdpart_dump+0xf0>  <== NOT EXECUTED
      p->end,                                                         
      type                                                            
    );                                                                
  }                                                                   
                                                                      
  puts( "------------+------------+-----------------------------------------------------");
ffc04530:	3c 60 ff c3 	lis     r3,-61                                 
ffc04534:	38 63 9f 3c 	addi    r3,r3,-24772                           
ffc04538:	48 01 6c 79 	bl      ffc1b1b0 <puts>                        
}                                                                     
ffc0453c:	80 01 00 84 	lwz     r0,132(r1)                             
ffc04540:	82 61 00 4c 	lwz     r19,76(r1)                             
ffc04544:	7c 08 03 a6 	mtlr    r0                                     
ffc04548:	82 81 00 50 	lwz     r20,80(r1)                             
ffc0454c:	82 a1 00 54 	lwz     r21,84(r1)                             
ffc04550:	82 c1 00 58 	lwz     r22,88(r1)                             
ffc04554:	82 e1 00 5c 	lwz     r23,92(r1)                             
ffc04558:	83 01 00 60 	lwz     r24,96(r1)                             
ffc0455c:	83 21 00 64 	lwz     r25,100(r1)                            
ffc04560:	83 41 00 68 	lwz     r26,104(r1)                            
ffc04564:	83 61 00 6c 	lwz     r27,108(r1)                            
ffc04568:	83 81 00 70 	lwz     r28,112(r1)                            
ffc0456c:	83 a1 00 74 	lwz     r29,116(r1)                            
ffc04570:	83 c1 00 78 	lwz     r30,120(r1)                            
ffc04574:	83 e1 00 7c 	lwz     r31,124(r1)                            
ffc04578:	38 21 00 80 	addi    r1,r1,128                              
ffc0457c:	4e 80 00 20 	blr                                            
    const char *type = NULL;                                          
    char type_buffer [52];                                            
    uint8_t type_mbr = 0;                                             
                                                                      
    if (rtems_bdpart_to_mbr_partition_type( p->type, &type_mbr)) {    
      switch (type_mbr) {                                             
ffc04580:	2f 86 00 0e 	cmpwi   cr7,r6,14                              <== NOT EXECUTED
ffc04584:	41 9e 00 24 	beq-    cr7,ffc045a8 <rtems_bdpart_dump+0x1b8> <== NOT EXECUTED
ffc04588:	2f 86 00 da 	cmpwi   cr7,r6,218                             <== NOT EXECUTED
ffc0458c:	41 9e 00 14 	beq-    cr7,ffc045a0 <rtems_bdpart_dump+0x1b0> <== NOT EXECUTED
ffc04590:	2f 86 00 0c 	cmpwi   cr7,r6,12                              <== NOT EXECUTED
ffc04594:	40 9e ff 10 	bne+    cr7,ffc044a4 <rtems_bdpart_dump+0xb4>  <== NOT EXECUTED
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32:                                 
          type = "FAT 32";                                            
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_32_LBA:                             
          type = "FAT 32 LBA";                                        
ffc04598:	38 d7 9e 2c 	addi    r6,r23,-25044                          <== NOT EXECUTED
          break;                                                      
ffc0459c:	4b ff ff 20 	b       ffc044bc <rtems_bdpart_dump+0xcc>      <== NOT EXECUTED
        case RTEMS_BDPART_MBR_DATA:                                   
          type = "DATA";                                              
ffc045a0:	38 d6 9e 24 	addi    r6,r22,-25052                          <== NOT EXECUTED
          break;                                                      
ffc045a4:	4b ff ff 18 	b       ffc044bc <rtems_bdpart_dump+0xcc>      <== NOT EXECUTED
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16:                                 
          type = "FAT 16";                                            
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16_LBA:                             
          type = "FAT 16 LBA";                                        
ffc045a8:	38 d5 9e 40 	addi    r6,r21,-25024                          <== NOT EXECUTED
          break;                                                      
ffc045ac:	4b ff ff 10 	b       ffc044bc <rtems_bdpart_dump+0xcc>      <== NOT EXECUTED
        case RTEMS_BDPART_MBR_FAT_32:                                 
          type = "FAT 32";                                            
ffc045b0:	38 d3 9e 38 	addi    r6,r19,-25032                          
          break;                                                      
ffc045b4:	4b ff ff 08 	b       ffc044bc <rtems_bdpart_dump+0xcc>      
      switch (type_mbr) {                                             
        case RTEMS_BDPART_MBR_FAT_12:                                 
          type = "FAT 12";                                            
          break;                                                      
        case RTEMS_BDPART_MBR_FAT_16:                                 
          type = "FAT 16";                                            
ffc045b8:	38 d9 9e 14 	addi    r6,r25,-25068                          <== NOT EXECUTED
ffc045bc:	4b ff ff 00 	b       ffc044bc <rtems_bdpart_dump+0xcc>      <== NOT EXECUTED
    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";                                            
ffc045c0:	38 d8 9e 1c 	addi    r6,r24,-25060                          <== NOT EXECUTED
ffc045c4:	4b ff fe f8 	b       ffc044bc <rtems_bdpart_dump+0xcc>      <== NOT EXECUTED
                                                                      

ffc0483c <rtems_bdpart_get_disk_data>: const char *disk_name, int *fd_ptr, rtems_disk_device **dd_ptr, rtems_blkdev_bnum *disk_end ) {
ffc0483c:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc04840:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  int rv = 0;                                                         
  int fd = -1;                                                        
  rtems_disk_device *dd = NULL;                                       
ffc04844:	39 20 00 00 	li      r9,0                                   
  const char *disk_name,                                              
  int *fd_ptr,                                                        
  rtems_disk_device **dd_ptr,                                         
  rtems_blkdev_bnum *disk_end                                         
)                                                                     
{                                                                     
ffc04848:	93 81 00 20 	stw     r28,32(r1)                             
ffc0484c:	7c 9c 23 78 	mr      r28,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);                                      
ffc04850:	38 80 00 02 	li      r4,2                                   
  const char *disk_name,                                              
  int *fd_ptr,                                                        
  rtems_disk_device **dd_ptr,                                         
  rtems_blkdev_bnum *disk_end                                         
)                                                                     
{                                                                     
ffc04854:	93 61 00 1c 	stw     r27,28(r1)                             
ffc04858:	7c db 33 78 	mr      r27,r6                                 
ffc0485c:	93 a1 00 24 	stw     r29,36(r1)                             
ffc04860:	93 c1 00 28 	stw     r30,40(r1)                             
ffc04864:	7c be 2b 78 	mr      r30,r5                                 
ffc04868:	90 01 00 34 	stw     r0,52(r1)                              
ffc0486c:	93 e1 00 2c 	stw     r31,44(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  int rv = 0;                                                         
  int fd = -1;                                                        
  rtems_disk_device *dd = NULL;                                       
ffc04870:	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);                                      
ffc04874:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04878:	48 00 42 e1 	bl      ffc08b58 <open>                        
  if (fd < 0) {                                                       
ffc0487c:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc04880:	40 80 00 38 	bge-    ffc048b8 <rtems_bdpart_get_disk_data+0x7c><== ALWAYS TAKEN
    sc = RTEMS_INVALID_NAME;                                          
ffc04884:	3b e0 00 03 	li      r31,3                                  <== NOT EXECUTED
                                                                      
  if (sc == RTEMS_SUCCESSFUL && fd_ptr != NULL && dd_ptr != NULL) {   
    *fd_ptr = fd;                                                     
    *dd_ptr = dd;                                                     
  } else {                                                            
    close( fd);                                                       
ffc04888:	7f a3 eb 78 	mr      r3,r29                                 
ffc0488c:	48 00 30 b1 	bl      ffc0793c <close>                       
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc04890:	80 01 00 34 	lwz     r0,52(r1)                              
ffc04894:	7f e3 fb 78 	mr      r3,r31                                 
ffc04898:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc0489c:	7c 08 03 a6 	mtlr    r0                                     
ffc048a0:	83 81 00 20 	lwz     r28,32(r1)                             
ffc048a4:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc048a8:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc048ac:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc048b0:	38 21 00 30 	addi    r1,r1,48                               
ffc048b4:	4e 80 00 20 	blr                                            
static inline int rtems_disk_fd_get_disk_device(                      
  int fd,                                                             
  rtems_disk_device **dd_ptr                                          
)                                                                     
{                                                                     
  return ioctl(fd, RTEMS_BLKIO_GETDISKDEV, dd_ptr);                   
ffc048b8:	3c 80 40 04 	lis     r4,16388                               
ffc048bc:	60 84 42 09 	ori     r4,r4,16905                            
ffc048c0:	38 a1 00 08 	addi    r5,r1,8                                
ffc048c4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc048c8:	48 00 33 81 	bl      ffc07c48 <ioctl>                       
    goto error;                                                       
  }                                                                   
                                                                      
  /* Get disk handle */                                               
  rv = rtems_disk_fd_get_disk_device( fd, &dd);                       
  if (rv != 0) {                                                      
ffc048cc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc048d0:	40 9e ff b4 	bne+    cr7,ffc04884 <rtems_bdpart_get_disk_data+0x48><== NEVER TAKEN
    sc = RTEMS_INVALID_NAME;                                          
    goto error;                                                       
  }                                                                   
                                                                      
  /* Get disk begin, end and block size */                            
  disk_begin = dd->start;                                             
ffc048d4:	81 21 00 08 	lwz     r9,8(r1)                               
  *disk_end = dd->size;                                               
  block_size = dd->block_size;                                        
                                                                      
  /* Check block size */                                              
  if (block_size < RTEMS_BDPART_BLOCK_SIZE) {                         
    sc = RTEMS_IO_ERROR;                                              
ffc048d8:	3b e0 00 1b 	li      r31,27                                 
    goto error;                                                       
  }                                                                   
                                                                      
  /* Get disk begin, end and block size */                            
  disk_begin = dd->start;                                             
  *disk_end = dd->size;                                               
ffc048dc:	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;                                             
ffc048e0:	81 09 00 18 	lwz     r8,24(r9)                              
  *disk_end = dd->size;                                               
ffc048e4:	91 5b 00 00 	stw     r10,0(r27)                             
  block_size = dd->block_size;                                        
                                                                      
  /* Check block size */                                              
  if (block_size < RTEMS_BDPART_BLOCK_SIZE) {                         
ffc048e8:	81 49 00 24 	lwz     r10,36(r9)                             
ffc048ec:	2b 8a 01 ff 	cmplwi  cr7,r10,511                            
ffc048f0:	40 9d ff 98 	ble+    cr7,ffc04888 <rtems_bdpart_get_disk_data+0x4c><== NEVER TAKEN
    sc = RTEMS_IO_ERROR;                                              
    goto error;                                                       
  }                                                                   
                                                                      
  /* Check that we have do not have a logical disk */                 
  if (disk_begin != 0) {                                              
ffc048f4:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc048f8:	40 9e ff 90 	bne+    cr7,ffc04888 <rtems_bdpart_get_disk_data+0x4c><== NEVER TAKEN
    goto error;                                                       
  }                                                                   
                                                                      
error:                                                                
                                                                      
  if (sc == RTEMS_SUCCESSFUL && fd_ptr != NULL && dd_ptr != NULL) {   
ffc048fc:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc04900:	41 9e 00 40 	beq-    cr7,ffc04940 <rtems_bdpart_get_disk_data+0x104>
ffc04904:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc04908:	41 9e 00 38 	beq-    cr7,ffc04940 <rtems_bdpart_get_disk_data+0x104><== NEVER TAKEN
  } else {                                                            
    close( fd);                                                       
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0490c:	80 01 00 34 	lwz     r0,52(r1)                              
  int *fd_ptr,                                                        
  rtems_disk_device **dd_ptr,                                         
  rtems_blkdev_bnum *disk_end                                         
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc04910:	3b e0 00 00 	li      r31,0                                  
  }                                                                   
                                                                      
error:                                                                
                                                                      
  if (sc == RTEMS_SUCCESSFUL && fd_ptr != NULL && dd_ptr != NULL) {   
    *fd_ptr = fd;                                                     
ffc04914:	93 bc 00 00 	stw     r29,0(r28)                             
  } else {                                                            
    close( fd);                                                       
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc04918:	7f e3 fb 78 	mr      r3,r31                                 
ffc0491c:	7c 08 03 a6 	mtlr    r0                                     
                                                                      
error:                                                                
                                                                      
  if (sc == RTEMS_SUCCESSFUL && fd_ptr != NULL && dd_ptr != NULL) {   
    *fd_ptr = fd;                                                     
    *dd_ptr = dd;                                                     
ffc04920:	91 3e 00 00 	stw     r9,0(r30)                              
  } else {                                                            
    close( fd);                                                       
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc04924:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc04928:	83 81 00 20 	lwz     r28,32(r1)                             
ffc0492c:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc04930:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc04934:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc04938:	38 21 00 30 	addi    r1,r1,48                               
ffc0493c:	4e 80 00 20 	blr                                            
  int *fd_ptr,                                                        
  rtems_disk_device **dd_ptr,                                         
  rtems_blkdev_bnum *disk_end                                         
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc04940:	3b e0 00 00 	li      r31,0                                  
ffc04944:	4b ff ff 44 	b       ffc04888 <rtems_bdpart_get_disk_data+0x4c>
                                                                      

ffc28cd4 <rtems_bdpart_mount>: const char *disk_name, const rtems_bdpart_partition *pt __attribute__((unused)), size_t count, const char *mount_base ) {
ffc28cd4:	94 21 ff d0 	stwu    r1,-48(r1)                             <== NOT EXECUTED
ffc28cd8:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  const char *disk_file_name = strrchr( disk_name, '/');              
ffc28cdc:	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                                              
)                                                                     
{                                                                     
ffc28ce0:	90 01 00 34 	stw     r0,52(r1)                              <== NOT EXECUTED
ffc28ce4:	93 01 00 10 	stw     r24,16(r1)                             <== 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;                                           
ffc28ce8:	3b 00 00 1a 	li      r24,26                                 <== NOT EXECUTED
  const char *disk_name,                                              
  const rtems_bdpart_partition *pt __attribute__((unused)),           
  size_t count,                                                       
  const char *mount_base                                              
)                                                                     
{                                                                     
ffc28cec:	93 21 00 14 	stw     r25,20(r1)                             <== NOT EXECUTED
ffc28cf0:	7c d9 33 78 	mr      r25,r6                                 <== NOT EXECUTED
ffc28cf4:	93 41 00 18 	stw     r26,24(r1)                             <== NOT EXECUTED
ffc28cf8:	93 61 00 1c 	stw     r27,28(r1)                             <== NOT EXECUTED
ffc28cfc:	7c bb 2b 78 	mr      r27,r5                                 <== NOT EXECUTED
ffc28d00:	93 81 00 20 	stw     r28,32(r1)                             <== NOT EXECUTED
ffc28d04:	93 a1 00 24 	stw     r29,36(r1)                             <== NOT EXECUTED
ffc28d08:	93 c1 00 28 	stw     r30,40(r1)                             <== NOT EXECUTED
ffc28d0c:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
ffc28d10:	93 e1 00 2c 	stw     r31,44(r1)                             <== NOT EXECUTED
ffc28d14:	92 c1 00 08 	stw     r22,8(r1)                              <== NOT EXECUTED
ffc28d18:	92 e1 00 0c 	stw     r23,12(r1)                             <== NOT EXECUTED
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  const char *disk_file_name = strrchr( disk_name, '/');              
ffc28d1c:	48 02 3b c9 	bl      ffc4c8e4 <strrchr>                     <== NOT EXECUTED
ffc28d20:	7c 7a 1b 78 	mr      r26,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);                         
ffc28d24:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc28d28:	48 02 2c 51 	bl      ffc4b978 <strlen>                      <== NOT EXECUTED
ffc28d2c:	7c 7d 1b 78 	mr      r29,r3                                 <== NOT EXECUTED
  size_t mount_base_size = strlen( mount_base);                       
ffc28d30:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc28d34:	48 02 2c 45 	bl      ffc4b978 <strlen>                      <== NOT EXECUTED
ffc28d38:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
  size_t i = 0;                                                       
                                                                      
  /* Create logical disk name base */                                 
  logical_disk_name = malloc( disk_name_size + RTEMS_BDPART_NUMBER_SIZE);
ffc28d3c:	38 7d 00 04 	addi    r3,r29,4                               <== NOT EXECUTED
ffc28d40:	4b fd bc 6d 	bl      ffc049ac <malloc>                      <== NOT EXECUTED
  if (logical_disk_name == NULL) {                                    
ffc28d44:	7c 7c 1b 79 	mr.     r28,r3                                 <== NOT EXECUTED
ffc28d48:	41 82 01 28 	beq-    ffc28e70 <rtems_bdpart_mount+0x19c>    <== NOT EXECUTED
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
  strncpy( logical_disk_name, disk_name, disk_name_size);             
ffc28d4c:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc28d50:	7f a5 eb 78 	mr      r5,r29                                 <== NOT EXECUTED
ffc28d54:	48 02 2e 9d 	bl      ffc4bbf0 <strncpy>                     <== NOT EXECUTED
                                                                      
  /* Get disk file name */                                            
  if (disk_file_name != NULL) {                                       
ffc28d58:	2f 9a 00 00 	cmpwi   cr7,r26,0                              <== NOT EXECUTED
ffc28d5c:	41 9e 01 50 	beq-    cr7,ffc28eac <rtems_bdpart_mount+0x1d8><== NOT EXECUTED
    disk_file_name += 1;                                              
ffc28d60:	3b 5a 00 01 	addi    r26,r26,1                              <== NOT EXECUTED
    disk_file_name_size = strlen( disk_file_name);                    
ffc28d64:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
ffc28d68:	48 02 2c 11 	bl      ffc4b978 <strlen>                      <== NOT EXECUTED
ffc28d6c:	7c 76 1b 78 	mr      r22,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);
ffc28d70:	7e f6 fa 14 	add     r23,r22,r31                            <== NOT EXECUTED
ffc28d74:	38 77 00 05 	addi    r3,r23,5                               <== NOT EXECUTED
ffc28d78:	4b fd bc 35 	bl      ffc049ac <malloc>                      <== NOT EXECUTED
  if (mount_point == NULL) {                                          
    esc = RTEMS_NO_MEMORY;                                            
ffc28d7c:	3b 00 00 1a 	li      r24,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) {                                          
ffc28d80:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
ffc28d84:	41 82 00 dc 	beq-    ffc28e60 <rtems_bdpart_mount+0x18c>    <== NOT EXECUTED
    esc = RTEMS_NO_MEMORY;                                            
    goto cleanup;                                                     
  }                                                                   
  strncpy( mount_point, mount_base, mount_base_size);                 
ffc28d88:	7f 24 cb 78 	mr      r4,r25                                 <== NOT EXECUTED
ffc28d8c:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc28d90:	48 02 2e 61 	bl      ffc4bbf0 <strncpy>                     <== NOT EXECUTED
  mount_point [mount_base_size] = '/';                                
ffc28d94:	39 20 00 2f 	li      r9,47                                  <== NOT EXECUTED
ffc28d98:	7d 3e f9 ae 	stbx    r9,r30,r31                             <== NOT EXECUTED
  strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
ffc28d9c:	38 7f 00 01 	addi    r3,r31,1                               <== NOT EXECUTED
ffc28da0:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc28da4:	7c 7e 1a 14 	add     r3,r30,r3                              <== NOT EXECUTED
ffc28da8:	7e c5 b3 78 	mr      r5,r22                                 <== NOT EXECUTED
ffc28dac:	48 02 2e 45 	bl      ffc4bbf0 <strncpy>                     <== 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) {                                       
ffc28db0:	2f 9b 00 00 	cmpwi   cr7,r27,0                              <== NOT EXECUTED
  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;           
  mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
ffc28db4:	3b 57 00 01 	addi    r26,r23,1                              <== 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;           
ffc28db8:	7f bc ea 14 	add     r29,r28,r29                            <== NOT EXECUTED
  mount_marker = mount_point + mount_base_size + 1 + disk_file_name_size;
ffc28dbc:	7f 5e d2 14 	add     r26,r30,r26                            <== NOT EXECUTED
                                                                      
  /* Mount supported file systems for each partition */               
  for (i = 0; i < count; ++i) {                                       
ffc28dc0:	41 9e 00 9c 	beq-    cr7,ffc28e5c <rtems_bdpart_mount+0x188><== NOT EXECUTED
ffc28dc4:	3f 20 ff c7 	lis     r25,-57                                <== NOT EXECUTED
      esc = RTEMS_IO_ERROR;                                           
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Mount */                                                       
    rv = mount(                                                       
ffc28dc8:	3f 00 ff c6 	lis     r24,-58                                <== 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) {                                       
ffc28dcc:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
ffc28dd0:	3b 39 92 d8 	addi    r25,r25,-27944                         <== NOT EXECUTED
      esc = RTEMS_IO_ERROR;                                           
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Mount */                                                       
    rv = mount(                                                       
ffc28dd4:	3b 18 73 e8 	addi    r24,r24,29672                          <== NOT EXECUTED
ffc28dd8:	48 00 00 0c 	b       ffc28de4 <rtems_bdpart_mount+0x110>    <== 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) {                                       
ffc28ddc:	7f 9f d8 00 	cmpw    cr7,r31,r27                            <== NOT EXECUTED
ffc28de0:	41 9e 00 7c 	beq-    cr7,ffc28e5c <rtems_bdpart_mount+0x188><== NOT EXECUTED
    /* Create logical disk name */                                    
    int rv = snprintf( logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
ffc28de4:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
ffc28de8:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc28dec:	7f 25 cb 78 	mr      r5,r25                                 <== NOT EXECUTED
ffc28df0:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
ffc28df4:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc28df8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc28dfc:	48 02 1d c9 	bl      ffc4abc4 <snprintf>                    <== NOT EXECUTED
      esc = RTEMS_INVALID_NAME;                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Create mount point */                                          
    strncpy( mount_marker, logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE);
ffc28e00:	38 a0 00 04 	li      r5,4                                   <== 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) {                             
ffc28e04:	2f 83 00 03 	cmpwi   cr7,r3,3                               <== NOT EXECUTED
      esc = RTEMS_INVALID_NAME;                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Create mount point */                                          
    strncpy( mount_marker, logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE);
ffc28e08:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc28e0c:	7f 43 d3 78 	mr      r3,r26                                 <== 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) {                             
ffc28e10:	41 9d 00 a8 	bgt-    cr7,ffc28eb8 <rtems_bdpart_mount+0x1e4><== NOT EXECUTED
      esc = RTEMS_INVALID_NAME;                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Create mount point */                                          
    strncpy( mount_marker, logical_disk_marker, RTEMS_BDPART_NUMBER_SIZE);
ffc28e14:	48 02 2d dd 	bl      ffc4bbf0 <strncpy>                     <== NOT EXECUTED
    rv = rtems_mkdir( mount_point, S_IRWXU | S_IRWXG | S_IRWXO);      
ffc28e18:	38 80 01 ff 	li      r4,511                                 <== NOT EXECUTED
ffc28e1c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc28e20:	48 00 52 45 	bl      ffc2e064 <rtems_mkdir>                 <== NOT EXECUTED
      esc = RTEMS_IO_ERROR;                                           
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Mount */                                                       
    rv = mount(                                                       
ffc28e24:	7f c4 f3 78 	mr      r4,r30                                 <== 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) {                                                    
ffc28e28:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
      esc = RTEMS_IO_ERROR;                                           
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Mount */                                                       
    rv = mount(                                                       
ffc28e2c:	7f 05 c3 78 	mr      r5,r24                                 <== NOT EXECUTED
ffc28e30:	38 c0 00 00 	li      r6,0                                   <== NOT EXECUTED
ffc28e34:	38 e0 00 00 	li      r7,0                                   <== NOT EXECUTED
ffc28e38:	7f 83 e3 78 	mr      r3,r28                                 <== 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) {                                                    
ffc28e3c:	40 9e 00 94 	bne-    cr7,ffc28ed0 <rtems_bdpart_mount+0x1fc><== NOT EXECUTED
      esc = RTEMS_IO_ERROR;                                           
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Mount */                                                       
    rv = mount(                                                       
ffc28e40:	4b fd bd c9 	bl      ffc04c08 <mount>                       <== NOT EXECUTED
      mount_point,                                                    
      "msdos",                                                        
      0,                                                              
      NULL                                                            
    );                                                                
    if (rv != 0) {                                                    
ffc28e44:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc28e48:	41 9e ff 94 	beq+    cr7,ffc28ddc <rtems_bdpart_mount+0x108><== NOT EXECUTED
      rmdir( mount_point);                                            
ffc28e4c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc28e50:	48 00 51 3d 	bl      ffc2df8c <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) {                                       
ffc28e54:	7f 9f d8 00 	cmpw    cr7,r31,r27                            <== NOT EXECUTED
ffc28e58:	40 9e ff 8c 	bne+    cr7,ffc28de4 <rtems_bdpart_mount+0x110><== NOT EXECUTED
  const rtems_bdpart_partition *pt __attribute__((unused)),           
  size_t count,                                                       
  const char *mount_base                                              
)                                                                     
{                                                                     
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
ffc28e5c:	3b 00 00 00 	li      r24,0                                  <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
cleanup:                                                              
                                                                      
  free( logical_disk_name);                                           
ffc28e60:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc28e64:	4b fd b7 1d 	bl      ffc04580 <free>                        <== NOT EXECUTED
  free( mount_point);                                                 
ffc28e68:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc28e6c:	4b fd b7 15 	bl      ffc04580 <free>                        <== NOT EXECUTED
                                                                      
  return esc;                                                         
}                                                                     
ffc28e70:	80 01 00 34 	lwz     r0,52(r1)                              <== NOT EXECUTED
ffc28e74:	7f 03 c3 78 	mr      r3,r24                                 <== NOT EXECUTED
ffc28e78:	82 c1 00 08 	lwz     r22,8(r1)                              <== NOT EXECUTED
ffc28e7c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc28e80:	82 e1 00 0c 	lwz     r23,12(r1)                             <== NOT EXECUTED
ffc28e84:	83 01 00 10 	lwz     r24,16(r1)                             <== NOT EXECUTED
ffc28e88:	83 21 00 14 	lwz     r25,20(r1)                             <== NOT EXECUTED
ffc28e8c:	83 41 00 18 	lwz     r26,24(r1)                             <== NOT EXECUTED
ffc28e90:	83 61 00 1c 	lwz     r27,28(r1)                             <== NOT EXECUTED
ffc28e94:	83 81 00 20 	lwz     r28,32(r1)                             <== NOT EXECUTED
ffc28e98:	83 a1 00 24 	lwz     r29,36(r1)                             <== NOT EXECUTED
ffc28e9c:	83 c1 00 28 	lwz     r30,40(r1)                             <== NOT EXECUTED
ffc28ea0:	83 e1 00 2c 	lwz     r31,44(r1)                             <== NOT EXECUTED
ffc28ea4:	38 21 00 30 	addi    r1,r1,48                               <== NOT EXECUTED
ffc28ea8:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  if (disk_file_name != NULL) {                                       
    disk_file_name += 1;                                              
    disk_file_name_size = strlen( disk_file_name);                    
  } else {                                                            
    disk_file_name = disk_name;                                       
    disk_file_name_size = disk_name_size;                             
ffc28eac:	7f b6 eb 78 	mr      r22,r29                                <== NOT EXECUTED
  /* Get disk file name */                                            
  if (disk_file_name != NULL) {                                       
    disk_file_name += 1;                                              
    disk_file_name_size = strlen( disk_file_name);                    
  } else {                                                            
    disk_file_name = disk_name;                                       
ffc28eb0:	7f da f3 78 	mr      r26,r30                                <== NOT EXECUTED
ffc28eb4:	4b ff fe bc 	b       ffc28d70 <rtems_bdpart_mount+0x9c>     <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
cleanup:                                                              
                                                                      
  free( logical_disk_name);                                           
ffc28eb8:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc28ebc:	4b fd b6 c5 	bl      ffc04580 <free>                        <== NOT EXECUTED
  free( mount_point);                                                 
ffc28ec0:	7f c3 f3 78 	mr      r3,r30                                 <== 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;                                       
ffc28ec4:	3b 00 00 03 	li      r24,3                                  <== NOT EXECUTED
  }                                                                   
                                                                      
cleanup:                                                              
                                                                      
  free( logical_disk_name);                                           
  free( mount_point);                                                 
ffc28ec8:	4b fd b6 b9 	bl      ffc04580 <free>                        <== NOT EXECUTED
ffc28ecc:	4b ff ff a4 	b       ffc28e70 <rtems_bdpart_mount+0x19c>    <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
cleanup:                                                              
                                                                      
  free( logical_disk_name);                                           
ffc28ed0:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc28ed4:	4b fd b6 ad 	bl      ffc04580 <free>                        <== NOT EXECUTED
  free( mount_point);                                                 
ffc28ed8:	7f c3 f3 78 	mr      r3,r30                                 <== 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;                                           
ffc28edc:	3b 00 00 1b 	li      r24,27                                 <== NOT EXECUTED
  }                                                                   
                                                                      
cleanup:                                                              
                                                                      
  free( logical_disk_name);                                           
  free( mount_point);                                                 
ffc28ee0:	4b fd b6 a1 	bl      ffc04580 <free>                        <== NOT EXECUTED
ffc28ee4:	4b ff ff 8c 	b       ffc28e70 <rtems_bdpart_mount+0x19c>    <== NOT EXECUTED
                                                                      

ffc04ee8 <rtems_bdpart_new_record>: static rtems_status_code rtems_bdpart_new_record( rtems_disk_device *dd, rtems_blkdev_bnum index, rtems_bdbuf_buffer **block ) {
ffc04ee8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc04eec:	7c 08 02 a6 	mflr    r0                                     
ffc04ef0:	90 01 00 1c 	stw     r0,28(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  /* Synchronize previous block if necessary */                       
  if (*block != NULL) {                                               
ffc04ef4:	81 25 00 00 	lwz     r9,0(r5)                               
static rtems_status_code rtems_bdpart_new_record(                     
  rtems_disk_device *dd,                                              
  rtems_blkdev_bnum index,                                            
  rtems_bdbuf_buffer **block                                          
)                                                                     
{                                                                     
ffc04ef8:	93 81 00 08 	stw     r28,8(r1)                              
ffc04efc:	7c 9c 23 78 	mr      r28,r4                                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  /* Synchronize previous block if necessary */                       
  if (*block != NULL) {                                               
ffc04f00:	2f 89 00 00 	cmpwi   cr7,r9,0                               
static rtems_status_code rtems_bdpart_new_record(                     
  rtems_disk_device *dd,                                              
  rtems_blkdev_bnum index,                                            
  rtems_bdbuf_buffer **block                                          
)                                                                     
{                                                                     
ffc04f04:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc04f08:	7c 7d 1b 78 	mr      r29,r3                                 
ffc04f0c:	93 e1 00 14 	stw     r31,20(r1)                             
ffc04f10:	7c bf 2b 78 	mr      r31,r5                                 
ffc04f14:	93 c1 00 10 	stw     r30,16(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  /* Synchronize previous block if necessary */                       
  if (*block != NULL) {                                               
ffc04f18:	41 9e 00 14 	beq-    cr7,ffc04f2c <rtems_bdpart_new_record+0x44>
    sc = rtems_bdbuf_sync( *block);                                   
ffc04f1c:	7d 23 4b 78 	mr      r3,r9                                  
ffc04f20:	48 00 f3 19 	bl      ffc14238 <rtems_bdbuf_sync>            
    if (sc != RTEMS_SUCCESSFUL) {                                     
ffc04f24:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc04f28:	40 82 00 58 	bne-    ffc04f80 <rtems_bdpart_new_record+0x98><== NEVER TAKEN
      return sc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  /* Read the new record block (this accounts for disk block sizes > 512) */
  sc = rtems_bdbuf_read( dd, index, block);                           
ffc04f2c:	7f a3 eb 78 	mr      r3,r29                                 
ffc04f30:	7f 84 e3 78 	mr      r4,r28                                 
ffc04f34:	7f e5 fb 78 	mr      r5,r31                                 
ffc04f38:	48 00 ef 4d 	bl      ffc13e84 <rtems_bdbuf_read>            
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04f3c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc04f40:	40 82 00 40 	bne-    ffc04f80 <rtems_bdpart_new_record+0x98><== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  /* just in case block did not get filled in */                      
  if ( *block == NULL ) {                                             
ffc04f44:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc04f48:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04f4c:	41 9e 00 58 	beq-    cr7,ffc04fa4 <rtems_bdpart_new_record+0xbc><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  /* Clear record */                                                  
  memset( (*block)->buffer, 0, RTEMS_BDPART_BLOCK_SIZE);              
ffc04f50:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc04f54:	38 80 00 00 	li      r4,0                                   
ffc04f58:	38 a0 02 00 	li      r5,512                                 
ffc04f5c:	48 01 5f 59 	bl      ffc1aeb4 <memset>                      
                                                                      
  /* Write signature */                                               
  (*block)->buffer [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_0] =            
ffc04f60:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc04f64:	39 40 00 55 	li      r10,85                                 
ffc04f68:	81 29 00 1c 	lwz     r9,28(r9)                              
ffc04f6c:	99 49 01 fe 	stb     r10,510(r9)                            
    RTEMS_BDPART_MBR_SIGNATURE_0;                                     
  (*block)->buffer [RTEMS_BDPART_MBR_OFFSET_SIGNATURE_1] =            
ffc04f70:	39 40 ff aa 	li      r10,-86                                
ffc04f74:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc04f78:	81 29 00 1c 	lwz     r9,28(r9)                              
ffc04f7c:	99 49 01 ff 	stb     r10,511(r9)                            
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04f80:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc04f84:	7f c3 f3 78 	mr      r3,r30                                 
ffc04f88:	83 81 00 08 	lwz     r28,8(r1)                              
ffc04f8c:	7c 08 03 a6 	mtlr    r0                                     
ffc04f90:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc04f94:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc04f98:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc04f9c:	38 21 00 18 	addi    r1,r1,24                               
ffc04fa0:	4e 80 00 20 	blr                                            
ffc04fa4:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
    return sc;                                                        
  }                                                                   
                                                                      
  /* just in case block did not get filled in */                      
  if ( *block == NULL ) {                                             
    return RTEMS_INVALID_ADDRESS;                                     
ffc04fa8:	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;                                            
}                                                                     
ffc04fac:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc04fb0:	83 81 00 08 	lwz     r28,8(r1)                              <== NOT EXECUTED
ffc04fb4:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc04fb8:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc04fbc:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc04fc0:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc04fc4:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc04fc8:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc04948 <rtems_bdpart_read>: const char *disk_name, rtems_bdpart_format *format, rtems_bdpart_partition *pt, size_t *count ) {
ffc04948:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc0494c:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  rtems_bdbuf_buffer *block = NULL;                                   
  rtems_bdpart_partition *p = pt - 1;                                 
ffc04950:	39 25 ff d0 	addi    r9,r5,-48                              
  const char *disk_name,                                              
  rtems_bdpart_format *format,                                        
  rtems_bdpart_partition *pt,                                         
  size_t *count                                                       
)                                                                     
{                                                                     
ffc04954:	93 a1 00 3c 	stw     r29,60(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);
ffc04958:	7c dd 33 79 	mr.     r29,r6                                 
  size_t *count                                                       
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  rtems_bdbuf_buffer *block = NULL;                                   
ffc0495c:	39 40 00 00 	li      r10,0                                  
  const char *disk_name,                                              
  rtems_bdpart_format *format,                                        
  rtems_bdpart_partition *pt,                                         
  size_t *count                                                       
)                                                                     
{                                                                     
ffc04960:	93 81 00 38 	stw     r28,56(r1)                             
ffc04964:	7c 9c 23 78 	mr      r28,r4                                 
ffc04968:	93 e1 00 44 	stw     r31,68(r1)                             
ffc0496c:	7c bf 2b 78 	mr      r31,r5                                 
ffc04970:	90 01 00 4c 	stw     r0,76(r1)                              
ffc04974:	93 21 00 2c 	stw     r25,44(r1)                             
ffc04978:	93 41 00 30 	stw     r26,48(r1)                             
ffc0497c:	93 61 00 34 	stw     r27,52(r1)                             
ffc04980:	93 c1 00 40 	stw     r30,64(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  rtems_bdbuf_buffer *block = NULL;                                   
ffc04984:	91 41 00 1c 	stw     r10,28(r1)                             
  rtems_bdpart_partition *p = pt - 1;                                 
ffc04988:	91 21 00 18 	stw     r9,24(r1)                              
  const rtems_bdpart_partition *p_end = pt + (count != NULL ? *count : 0);
ffc0498c:	41 82 00 c8 	beq-    ffc04a54 <rtems_bdpart_read+0x10c>     <== NEVER TAKEN
ffc04990:	81 3d 00 00 	lwz     r9,0(r29)                              
ffc04994:	1f 69 00 30 	mulli   r27,r9,48                              
  const uint8_t *data = NULL;                                         
  int fd = -1;                                                        
  rtems_disk_device *dd = NULL;                                       
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL || count == NULL) {                
ffc04998:	2f 9c 00 00 	cmpwi   cr7,r28,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 */      
ffc0499c:	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;                                                        
ffc049a0:	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 */      
ffc049a4:	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;                                     
ffc049a8:	3b c0 00 09 	li      r30,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;                                     
ffc049ac:	91 21 00 10 	stw     r9,16(r1)                              
  size_t i = 0;                                                       
  const uint8_t *data = NULL;                                         
  int fd = -1;                                                        
ffc049b0:	91 41 00 0c 	stw     r10,12(r1)                             
  rtems_disk_device *dd = NULL;                                       
ffc049b4:	91 21 00 08 	stw     r9,8(r1)                               
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL || count == NULL) {                
ffc049b8:	41 9e 00 2c 	beq-    cr7,ffc049e4 <rtems_bdpart_read+0x9c>  <== NEVER TAKEN
ffc049bc:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc049c0:	41 9e 00 24 	beq-    cr7,ffc049e4 <rtems_bdpart_read+0x9c>  <== NEVER TAKEN
ffc049c4:	41 82 00 20 	beq-    ffc049e4 <rtems_bdpart_read+0x9c>      <== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  /* Set count to a save value */                                     
  *count = 0;                                                         
ffc049c8:	91 3d 00 00 	stw     r9,0(r29)                              
                                                                      
  /* Get disk data */                                                 
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
ffc049cc:	38 81 00 0c 	addi    r4,r1,12                               
ffc049d0:	38 a1 00 08 	addi    r5,r1,8                                
ffc049d4:	38 c1 00 10 	addi    r6,r1,16                               
ffc049d8:	4b ff fe 65 	bl      ffc0483c <rtems_bdpart_get_disk_data>  
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc049dc:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc049e0:	41 82 00 34 	beq-    ffc04a14 <rtems_bdpart_read+0xcc>      <== ALWAYS TAKEN
  if (block != NULL) {                                                
    rtems_bdbuf_release( block);                                      
  }                                                                   
                                                                      
  return esc;                                                         
}                                                                     
ffc049e4:	80 01 00 4c 	lwz     r0,76(r1)                              
ffc049e8:	7f c3 f3 78 	mr      r3,r30                                 
ffc049ec:	83 21 00 2c 	lwz     r25,44(r1)                             
ffc049f0:	7c 08 03 a6 	mtlr    r0                                     
ffc049f4:	83 41 00 30 	lwz     r26,48(r1)                             
ffc049f8:	83 61 00 34 	lwz     r27,52(r1)                             
ffc049fc:	83 81 00 38 	lwz     r28,56(r1)                             
ffc04a00:	83 a1 00 3c 	lwz     r29,60(r1)                             
ffc04a04:	83 c1 00 40 	lwz     r30,64(r1)                             
ffc04a08:	83 e1 00 44 	lwz     r31,68(r1)                             
ffc04a0c:	38 21 00 48 	addi    r1,r1,72                               
ffc04a10:	4e 80 00 20 	blr                                            
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
                                                                      
  /* Read MBR */                                                      
  sc = rtems_bdpart_read_record( dd, 0, &block);                      
ffc04a14:	80 61 00 08 	lwz     r3,8(r1)                               
ffc04a18:	38 80 00 00 	li      r4,0                                   
ffc04a1c:	38 a1 00 1c 	addi    r5,r1,28                               
ffc04a20:	4b ff fb a9 	bl      ffc045c8 <rtems_bdpart_read_record>    
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04a24:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04a28:	7c 7e 1b 78 	mr      r30,r3                                 
ffc04a2c:	41 9e 00 30 	beq-    cr7,ffc04a5c <rtems_bdpart_read+0x114> <== ALWAYS TAKEN
  /* Return partition count */                                        
  *count = (size_t) (p - pt + 1);                                     
                                                                      
cleanup:                                                              
                                                                      
  if (fd >= 0) {                                                      
ffc04a30:	80 61 00 0c 	lwz     r3,12(r1)                              
ffc04a34:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04a38:	41 9c 00 08 	blt-    cr7,ffc04a40 <rtems_bdpart_read+0xf8>  <== NEVER TAKEN
    close( fd);                                                       
ffc04a3c:	48 00 2f 01 	bl      ffc0793c <close>                       
  }                                                                   
                                                                      
  if (block != NULL) {                                                
ffc04a40:	80 61 00 1c 	lwz     r3,28(r1)                              
ffc04a44:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04a48:	41 be ff 9c 	beq-    cr7,ffc049e4 <rtems_bdpart_read+0x9c>  <== NEVER TAKEN
    rtems_bdbuf_release( block);                                      
ffc04a4c:	48 00 f6 79 	bl      ffc140c4 <rtems_bdbuf_release>         
ffc04a50:	4b ff ff 94 	b       ffc049e4 <rtems_bdpart_read+0x9c>      
{                                                                     
  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);
ffc04a54:	3b 60 00 00 	li      r27,0                                  <== NOT EXECUTED
ffc04a58:	4b ff ff 40 	b       ffc04998 <rtems_bdpart_read+0x50>      <== NOT EXECUTED
    esc = sc;                                                         
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Read the first partition entry */                                
  data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;             
ffc04a5c:	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);
ffc04a60:	7f 7f da 14 	add     r27,r31,r27                            
    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);  
ffc04a64:	38 81 00 18 	addi    r4,r1,24                               
    esc = sc;                                                         
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Read the first partition entry */                                
  data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;             
ffc04a68:	83 29 00 1c 	lwz     r25,28(r9)                             
  sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);  
ffc04a6c:	7f 65 db 78 	mr      r5,r27                                 
ffc04a70:	38 c1 00 14 	addi    r6,r1,20                               
    esc = sc;                                                         
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Read the first partition entry */                                
  data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;             
ffc04a74:	3b 59 01 be 	addi    r26,r25,446                            
  sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);  
ffc04a78:	7f 43 d3 78 	mr      r3,r26                                 
ffc04a7c:	4b ff fc 51 	bl      ffc046cc <rtems_bdpart_read_mbr_partition>
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04a80:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04a84:	7c 7e 1b 78 	mr      r30,r3                                 
ffc04a88:	40 be ff a8 	bne-    cr7,ffc04a30 <rtems_bdpart_read+0xe8>  <== 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) {
ffc04a8c:	81 21 00 18 	lwz     r9,24(r1)                              
    esc = RTEMS_NOT_IMPLEMENTED;                                      
ffc04a90:	3b c0 00 18 	li      r30,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) {
ffc04a94:	89 29 00 08 	lbz     r9,8(r9)                               
ffc04a98:	2f 89 00 ee 	cmpwi   cr7,r9,238                             
ffc04a9c:	41 be ff 94 	beq-    cr7,ffc04a30 <rtems_bdpart_read+0xe8>  <== NEVER TAKEN
  return value;                                                       
}                                                                     
                                                                      
static inline uint32_t rtems_uint32_from_little_endian( const uint8_t *data)
{                                                                     
  uint32_t value = 0;                                                 
ffc04aa0:	39 40 00 04 	li      r10,4                                  
    esc = RTEMS_NOT_IMPLEMENTED;                                      
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Set format */                                                    
  format->type = RTEMS_BDPART_FORMAT_MBR;                             
ffc04aa4:	90 7c 00 00 	stw     r3,0(r28)                              
ffc04aa8:	7d 49 03 a6 	mtctr   r10                                    
ffc04aac:	39 20 00 00 	li      r9,0                                   
  format->mbr.disk_id = rtems_uint32_from_little_endian(              
    block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID                   
ffc04ab0:	81 41 00 1c 	lwz     r10,28(r1)                             
ffc04ab4:	81 4a 00 1c 	lwz     r10,28(r10)                            
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_read(                                  
ffc04ab8:	39 4a 01 bc 	addi    r10,r10,444                            
  ssize_t i = 0;                                                      
                                                                      
  for (i = 3; i >= 0; --i) {                                          
    value = (value << 8) + data [i];                                  
ffc04abc:	8d 0a ff ff 	lbzu    r8,-1(r10)                             
ffc04ac0:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc04ac4:	7d 28 4a 14 	add     r9,r8,r9                               
static inline uint32_t rtems_uint32_from_little_endian( const uint8_t *data)
{                                                                     
  uint32_t value = 0;                                                 
  ssize_t i = 0;                                                      
                                                                      
  for (i = 3; i >= 0; --i) {                                          
ffc04ac8:	42 00 ff f4 	bdnz+   ffc04abc <rtems_bdpart_read+0x174>     
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Set format */                                                    
  format->type = RTEMS_BDPART_FORMAT_MBR;                             
  format->mbr.disk_id = rtems_uint32_from_little_endian(              
ffc04acc:	91 3c 00 04 	stw     r9,4(r28)                              
    block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID                   
  );                                                                  
  format->mbr.dos_compatibility = true;                               
ffc04ad0:	39 20 00 01 	li      r9,1                                   
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_read(                                  
ffc04ad4:	3b 39 01 ee 	addi    r25,r25,494                            
  /* 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                   
  );                                                                  
  format->mbr.dos_compatibility = true;                               
ffc04ad8:	99 3c 00 08 	stb     r9,8(r28)                              
                                                                      
  /* Iterate through the rest of the primary partition table */       
  for (i = 1; i < 4; ++i) {                                           
    data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;                        
ffc04adc:	3b 5a 00 10 	addi    r26,r26,16                             
                                                                      
    sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
ffc04ae0:	7f 43 d3 78 	mr      r3,r26                                 
ffc04ae4:	38 81 00 18 	addi    r4,r1,24                               
ffc04ae8:	7f 65 db 78 	mr      r5,r27                                 
ffc04aec:	38 c1 00 14 	addi    r6,r1,20                               
ffc04af0:	4b ff fb dd 	bl      ffc046cc <rtems_bdpart_read_mbr_partition>
    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) {                                           
ffc04af4:	7f 9a c8 00 	cmpw    cr7,r26,r25                            
    data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;                        
                                                                      
    sc = rtems_bdpart_read_mbr_partition( data, &p, p_end, &ep_begin);
    if (sc != RTEMS_SUCCESSFUL) {                                     
ffc04af8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc04afc:	40 82 01 00 	bne-    ffc04bfc <rtems_bdpart_read+0x2b4>     <== 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) {                                           
ffc04b00:	40 9e ff dc 	bne+    cr7,ffc04adc <rtems_bdpart_read+0x194> 
      goto cleanup;                                                   
    }                                                                 
  }                                                                   
                                                                      
  /* Iterate through the logical partitions within the extended partition */
  ebr = ep_begin;                                                     
ffc04b04:	83 81 00 14 	lwz     r28,20(r1)                             
ffc04b08:	80 c1 00 18 	lwz     r6,24(r1)                              
  while (ebr != 0) {                                                  
ffc04b0c:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc04b10:	41 9e 00 a8 	beq-    cr7,ffc04bb8 <rtems_bdpart_read+0x270> <== NEVER TAKEN
    rtems_blkdev_bnum tmp = 0;                                        
                                                                      
    /* Read EBR */                                                    
    sc = rtems_bdpart_read_record( dd, ebr, &block);                  
ffc04b14:	80 61 00 08 	lwz     r3,8(r1)                               
ffc04b18:	7f 84 e3 78 	mr      r4,r28                                 
ffc04b1c:	38 a1 00 1c 	addi    r5,r1,28                               
ffc04b20:	4b ff fa a9 	bl      ffc045c8 <rtems_bdpart_read_record>    
    if (sc != RTEMS_SUCCESSFUL) {                                     
ffc04b24:	2c 03 00 00 	cmpwi   r3,0                                   
ffc04b28:	40 82 00 d4 	bne-    ffc04bfc <rtems_bdpart_read+0x2b4>     <== NEVER TAKEN
      esc = sc;                                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Read first partition entry */                                  
    sc = rtems_bdpart_read_mbr_partition(                             
ffc04b2c:	81 21 00 1c 	lwz     r9,28(r1)                              
ffc04b30:	38 81 00 18 	addi    r4,r1,24                               
ffc04b34:	7f 65 db 78 	mr      r5,r27                                 
ffc04b38:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc04b3c:	38 c0 00 00 	li      r6,0                                   
ffc04b40:	38 63 01 be 	addi    r3,r3,446                              
ffc04b44:	4b ff fb 89 	bl      ffc046cc <rtems_bdpart_read_mbr_partition>
      block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0,                
      &p,                                                             
      p_end,                                                          
      NULL                                                            
    );                                                                
    if (sc != RTEMS_SUCCESSFUL) {                                     
ffc04b48:	2c 03 00 00 	cmpwi   r3,0                                   
ffc04b4c:	40 82 00 b0 	bne-    ffc04bfc <rtems_bdpart_read+0x2b4>     <== NEVER TAKEN
      esc = sc;                                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Adjust partition begin */                                      
    tmp = p->begin + ebr;                                             
ffc04b50:	80 c1 00 18 	lwz     r6,24(r1)                              
ffc04b54:	81 46 00 00 	lwz     r10,0(r6)                              
ffc04b58:	7d 1c 52 14 	add     r8,r28,r10                             
    if (tmp > p->begin) {                                             
ffc04b5c:	7f 8a 40 40 	cmplw   cr7,r10,r8                             
ffc04b60:	40 9c 00 94 	bge-    cr7,ffc04bf4 <rtems_bdpart_read+0x2ac> <== NEVER TAKEN
      esc = RTEMS_IO_ERROR;                                           
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Adjust partition end */                                        
    tmp = p->end + ebr;                                               
ffc04b64:	81 46 00 04 	lwz     r10,4(r6)                              
    }                                                                 
                                                                      
    /* Adjust partition begin */                                      
    tmp = p->begin + ebr;                                             
    if (tmp > p->begin) {                                             
      p->begin = tmp;                                                 
ffc04b68:	91 06 00 00 	stw     r8,0(r6)                               
      esc = RTEMS_IO_ERROR;                                           
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Adjust partition end */                                        
    tmp = p->end + ebr;                                               
ffc04b6c:	7f 9c 52 14 	add     r28,r28,r10                            
    if (tmp > p->end) {                                               
ffc04b70:	7f 8a e0 40 	cmplw   cr7,r10,r28                            
ffc04b74:	40 9c 00 80 	bge-    cr7,ffc04bf4 <rtems_bdpart_read+0x2ac> <== NEVER TAKEN
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Read second partition entry for next EBR block */              
    ebr = rtems_bdpart_next_ebr(                                      
      block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_1                 
ffc04b78:	81 21 00 1c 	lwz     r9,28(r1)                              
ffc04b7c:	39 40 00 03 	li      r10,3                                  
    }                                                                 
                                                                      
    /* Adjust partition end */                                        
    tmp = p->end + ebr;                                               
    if (tmp > p->end) {                                               
      p->end = tmp;                                                   
ffc04b80:	93 86 00 04 	stw     r28,4(r6)                              
  return value;                                                       
}                                                                     
                                                                      
static inline uint32_t rtems_uint32_from_little_endian( const uint8_t *data)
{                                                                     
  uint32_t value = 0;                                                 
ffc04b84:	39 00 00 00 	li      r8,0                                   
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Read second partition entry for next EBR block */              
    ebr = rtems_bdpart_next_ebr(                                      
      block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_1                 
ffc04b88:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc04b8c:	39 20 00 04 	li      r9,4                                   
ffc04b90:	7d 29 03 a6 	mtctr   r9                                     
}                                                                     
                                                                      
static rtems_blkdev_bnum rtems_bdpart_next_ebr( const uint8_t *data)  
{                                                                     
  rtems_blkdev_bnum begin =                                           
    rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
ffc04b94:	38 83 01 d6 	addi    r4,r3,470                              
  ssize_t i = 0;                                                      
                                                                      
  for (i = 3; i >= 0; --i) {                                          
    value = (value << 8) + data [i];                                  
ffc04b98:	7c e4 50 ae 	lbzx    r7,r4,r10                              
ffc04b9c:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
static inline uint32_t rtems_uint32_from_little_endian( const uint8_t *data)
{                                                                     
  uint32_t value = 0;                                                 
  ssize_t i = 0;                                                      
                                                                      
  for (i = 3; i >= 0; --i) {                                          
ffc04ba0:	39 4a ff ff 	addi    r10,r10,-1                             
    value = (value << 8) + data [i];                                  
ffc04ba4:	7d 07 42 14 	add     r8,r7,r8                               
static inline uint32_t rtems_uint32_from_little_endian( const uint8_t *data)
{                                                                     
  uint32_t value = 0;                                                 
  ssize_t i = 0;                                                      
                                                                      
  for (i = 3; i >= 0; --i) {                                          
ffc04ba8:	42 00 ff f0 	bdnz+   ffc04b98 <rtems_bdpart_read+0x250>     
  uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];                 
                                                                      
  if (type == RTEMS_BDPART_MBR_EXTENDED) {                            
ffc04bac:	89 23 01 d2 	lbz     r9,466(r3)                             
ffc04bb0:	2f 89 00 05 	cmpwi   cr7,r9,5                               
ffc04bb4:	41 9e 00 28 	beq-    cr7,ffc04bdc <rtems_bdpart_read+0x294> 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  /* Return partition count */                                        
  *count = (size_t) (p - pt + 1);                                     
ffc04bb8:	7d 5f 30 50 	subf    r10,r31,r6                             
ffc04bbc:	3d 20 aa aa 	lis     r9,-21846                              
ffc04bc0:	7d 4a 26 70 	srawi   r10,r10,4                              
ffc04bc4:	61 29 aa ab 	ori     r9,r9,43691                            
ffc04bc8:	7d 2a 49 d6 	mullw   r9,r10,r9                              
  rtems_bdpart_partition *pt,                                         
  size_t *count                                                       
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
ffc04bcc:	3b c0 00 00 	li      r30,0                                  
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  /* Return partition count */                                        
  *count = (size_t) (p - pt + 1);                                     
ffc04bd0:	39 29 00 01 	addi    r9,r9,1                                
ffc04bd4:	91 3d 00 00 	stw     r9,0(r29)                              
ffc04bd8:	4b ff fe 58 	b       ffc04a30 <rtems_bdpart_read+0xe8>      
                                                                      
    /* Read second partition entry for next EBR block */              
    ebr = rtems_bdpart_next_ebr(                                      
      block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_1                 
    );                                                                
    if (ebr != 0) {                                                   
ffc04bdc:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc04be0:	41 be ff d8 	beq-    cr7,ffc04bb8 <rtems_bdpart_read+0x270> <== NEVER TAKEN
      /* Adjust partition EBR block index */                          
      tmp = ebr + ep_begin;                                           
ffc04be4:	83 81 00 14 	lwz     r28,20(r1)                             
ffc04be8:	7f 88 e2 14 	add     r28,r8,r28                             
      if (tmp > ebr) {                                                
ffc04bec:	7f 9c 40 40 	cmplw   cr7,r28,r8                             
ffc04bf0:	41 9d ff 24 	bgt+    cr7,ffc04b14 <rtems_bdpart_read+0x1cc> <== ALWAYS TAKEN
    /* Adjust partition begin */                                      
    tmp = p->begin + ebr;                                             
    if (tmp > p->begin) {                                             
      p->begin = tmp;                                                 
    } else {                                                          
      esc = RTEMS_IO_ERROR;                                           
ffc04bf4:	3b c0 00 1b 	li      r30,27                                 <== NOT EXECUTED
ffc04bf8:	4b ff fe 38 	b       ffc04a30 <rtems_bdpart_read+0xe8>      <== NOT EXECUTED
      esc = sc;                                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Read first partition entry */                                  
    sc = rtems_bdpart_read_mbr_partition(                             
ffc04bfc:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
ffc04c00:	4b ff fe 30 	b       ffc04a30 <rtems_bdpart_read+0xe8>      <== NOT EXECUTED
                                                                      

ffc046cc <rtems_bdpart_read_mbr_partition>: return value; } static inline uint32_t rtems_uint32_from_little_endian( const uint8_t *data) { uint32_t value = 0;
ffc046cc:	39 40 00 04 	li      r10,4                                  
  const uint8_t *data,                                                
  rtems_bdpart_partition **p,                                         
  const rtems_bdpart_partition *p_end,                                
  rtems_blkdev_bnum *ep_begin                                         
)                                                                     
{                                                                     
ffc046d0:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc046d4:	7c 08 02 a6 	mflr    r0                                     
  } else {                                                            
    return 0;                                                         
  }                                                                   
}                                                                     
                                                                      
static rtems_status_code rtems_bdpart_read_mbr_partition(             
ffc046d8:	39 03 00 0c 	addi    r8,r3,12                               
ffc046dc:	7d 49 03 a6 	mtctr   r10                                    
  const uint8_t *data,                                                
  rtems_bdpart_partition **p,                                         
  const rtems_bdpart_partition *p_end,                                
  rtems_blkdev_bnum *ep_begin                                         
)                                                                     
{                                                                     
ffc046e0:	93 61 00 0c 	stw     r27,12(r1)                             
  } else {                                                            
    return 0;                                                         
  }                                                                   
}                                                                     
                                                                      
static rtems_status_code rtems_bdpart_read_mbr_partition(             
ffc046e4:	7d 09 43 78 	mr      r9,r8                                  
  const uint8_t *data,                                                
  rtems_bdpart_partition **p,                                         
  const rtems_bdpart_partition *p_end,                                
  rtems_blkdev_bnum *ep_begin                                         
)                                                                     
{                                                                     
ffc046e8:	90 01 00 24 	stw     r0,36(r1)                              
ffc046ec:	93 a1 00 14 	stw     r29,20(r1)                             
ffc046f0:	93 81 00 10 	stw     r28,16(r1)                             
ffc046f4:	7c 9c 23 78 	mr      r28,r4                                 
ffc046f8:	93 c1 00 18 	stw     r30,24(r1)                             
ffc046fc:	7c 7e 1b 78 	mr      r30,r3                                 
ffc04700:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc04704:	3b e0 00 00 	li      r31,0                                  
  ssize_t i = 0;                                                      
                                                                      
  for (i = 3; i >= 0; --i) {                                          
    value = (value << 8) + data [i];                                  
ffc04708:	8d 49 ff ff 	lbzu    r10,-1(r9)                             
ffc0470c:	57 ff 40 2e 	rlwinm  r31,r31,8,0,23                         
ffc04710:	7f ea fa 14 	add     r31,r10,r31                            
static inline uint32_t rtems_uint32_from_little_endian( const uint8_t *data)
{                                                                     
  uint32_t value = 0;                                                 
  ssize_t i = 0;                                                      
                                                                      
  for (i = 3; i >= 0; --i) {                                          
ffc04714:	42 00 ff f4 	bdnz+   ffc04708 <rtems_bdpart_read_mbr_partition+0x3c>
  } else {                                                            
    return 0;                                                         
  }                                                                   
}                                                                     
                                                                      
static rtems_status_code rtems_bdpart_read_mbr_partition(             
ffc04718:	39 3e 00 10 	addi    r9,r30,16                              
  return value;                                                       
}                                                                     
                                                                      
static inline uint32_t rtems_uint32_from_little_endian( const uint8_t *data)
{                                                                     
  uint32_t value = 0;                                                 
ffc0471c:	7d 08 48 50 	subf    r8,r8,r9                               
ffc04720:	7d 09 03 a6 	mtctr   r8                                     
ffc04724:	39 40 00 00 	li      r10,0                                  
  ssize_t i = 0;                                                      
                                                                      
  for (i = 3; i >= 0; --i) {                                          
    value = (value << 8) + data [i];                                  
ffc04728:	8d 09 ff ff 	lbzu    r8,-1(r9)                              
ffc0472c:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc04730:	7d 48 52 14 	add     r10,r8,r10                             
static inline uint32_t rtems_uint32_from_little_endian( const uint8_t *data)
{                                                                     
  uint32_t value = 0;                                                 
  ssize_t i = 0;                                                      
                                                                      
  for (i = 3; i >= 0; --i) {                                          
ffc04734:	42 00 ff f4 	bdnz+   ffc04728 <rtems_bdpart_read_mbr_partition+0x5c>
  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;                               
  uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];                 
ffc04738:	8b be 00 04 	lbz     r29,4(r30)                             
                                                                      
  if (type == RTEMS_BDPART_MBR_EMPTY) {                               
    return RTEMS_SUCCESSFUL;                                          
ffc0473c:	38 60 00 00 	li      r3,0                                   
  rtems_blkdev_bnum size =                                            
    rtems_uint32_from_little_endian( data + RTEMS_BDPART_MBR_OFFSET_SIZE);
  rtems_blkdev_bnum end = begin + size;                               
  uint8_t type = data [RTEMS_BDPART_MBR_OFFSET_TYPE];                 
                                                                      
  if (type == RTEMS_BDPART_MBR_EMPTY) {                               
ffc04740:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc04744:	41 9e 00 24 	beq-    cr7,ffc04768 <rtems_bdpart_read_mbr_partition+0x9c><== NEVER TAKEN
    return RTEMS_SUCCESSFUL;                                          
  } else if (*p == p_end) {                                           
ffc04748:	81 3c 00 00 	lwz     r9,0(r28)                              
    return RTEMS_TOO_MANY;                                            
ffc0474c:	38 60 00 05 	li      r3,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) {                                           
ffc04750:	7f 89 28 00 	cmpw    cr7,r9,r5                              
ffc04754:	41 9e 00 14 	beq-    cr7,ffc04768 <rtems_bdpart_read_mbr_partition+0x9c><== 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;                               
ffc04758:	7f 6a fa 14 	add     r27,r10,r31                            
                                                                      
  if (type == RTEMS_BDPART_MBR_EMPTY) {                               
    return RTEMS_SUCCESSFUL;                                          
  } else if (*p == p_end) {                                           
    return RTEMS_TOO_MANY;                                            
  } else if (begin >= end) {                                          
ffc0475c:	7f 9b f8 40 	cmplw   cr7,r27,r31                            
    return RTEMS_IO_ERROR;                                            
ffc04760:	38 60 00 1b 	li      r3,27                                  
                                                                      
  if (type == RTEMS_BDPART_MBR_EMPTY) {                               
    return RTEMS_SUCCESSFUL;                                          
  } else if (*p == p_end) {                                           
    return RTEMS_TOO_MANY;                                            
  } else if (begin >= end) {                                          
ffc04764:	41 9d 00 28 	bgt-    cr7,ffc0478c <rtems_bdpart_read_mbr_partition+0xc0><== ALWAYS TAKEN
    rtems_bdpart_to_partition_type( type, (*p)->type);                
    (*p)->flags = data [RTEMS_BDPART_MBR_OFFSET_FLAGS];               
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04768:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0476c:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc04770:	7c 08 03 a6 	mtlr    r0                                     
ffc04774:	83 81 00 10 	lwz     r28,16(r1)                             
ffc04778:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0477c:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc04780:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc04784:	38 21 00 20 	addi    r1,r1,32                               
ffc04788:	4e 80 00 20 	blr                                            
    return RTEMS_SUCCESSFUL;                                          
  } else if (*p == p_end) {                                           
    return RTEMS_TOO_MANY;                                            
  } else if (begin >= end) {                                          
    return RTEMS_IO_ERROR;                                            
  } else if (type == RTEMS_BDPART_MBR_EXTENDED) {                     
ffc0478c:	2f 9d 00 05 	cmpwi   cr7,r29,5                              
ffc04790:	40 9e 00 18 	bne-    cr7,ffc047a8 <rtems_bdpart_read_mbr_partition+0xdc>
    if (ep_begin != NULL) {                                           
ffc04794:	2f 86 00 00 	cmpwi   cr7,r6,0                               
ffc04798:	41 9e 00 58 	beq-    cr7,ffc047f0 <rtems_bdpart_read_mbr_partition+0x124><== NEVER TAKEN
      *ep_begin = begin;                                              
ffc0479c:	93 e6 00 00 	stw     r31,0(r6)                              
    (*p)->end = end;                                                  
    rtems_bdpart_to_partition_type( type, (*p)->type);                
    (*p)->flags = data [RTEMS_BDPART_MBR_OFFSET_FLAGS];               
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc047a0:	38 60 00 00 	li      r3,0                                   
ffc047a4:	4b ff ff c4 	b       ffc04768 <rtems_bdpart_read_mbr_partition+0x9c>
    if (ep_begin != NULL) {                                           
      *ep_begin = begin;                                              
    }                                                                 
  } else {                                                            
    /* Increment partition index */                                   
    ++(*p);                                                           
ffc047a8:	38 69 00 30 	addi    r3,r9,48                               
ffc047ac:	90 7c 00 00 	stw     r3,0(r28)                              
                                                                      
    /* Clear partition */                                             
    memset( *p, 0, sizeof( rtems_bdpart_partition));                  
ffc047b0:	38 80 00 00 	li      r4,0                                   
ffc047b4:	38 a0 00 30 	li      r5,48                                  
ffc047b8:	48 01 66 fd 	bl      ffc1aeb4 <memset>                      
                                                                      
    /* Set values */                                                  
    (*p)->begin = begin;                                              
ffc047bc:	81 3c 00 00 	lwz     r9,0(r28)                              
    (*p)->end = end;                                                  
    rtems_bdpart_to_partition_type( type, (*p)->type);                
ffc047c0:	7f a3 eb 78 	mr      r3,r29                                 
                                                                      
    /* Clear partition */                                             
    memset( *p, 0, sizeof( rtems_bdpart_partition));                  
                                                                      
    /* Set values */                                                  
    (*p)->begin = begin;                                              
ffc047c4:	93 e9 00 00 	stw     r31,0(r9)                              
    (*p)->end = end;                                                  
    rtems_bdpart_to_partition_type( type, (*p)->type);                
ffc047c8:	38 89 00 08 	addi    r4,r9,8                                
    /* Clear partition */                                             
    memset( *p, 0, sizeof( rtems_bdpart_partition));                  
                                                                      
    /* Set values */                                                  
    (*p)->begin = begin;                                              
    (*p)->end = end;                                                  
ffc047cc:	93 69 00 04 	stw     r27,4(r9)                              
    rtems_bdpart_to_partition_type( type, (*p)->type);                
ffc047d0:	4b ff fe c1 	bl      ffc04690 <rtems_bdpart_to_partition_type>
    (*p)->flags = data [RTEMS_BDPART_MBR_OFFSET_FLAGS];               
ffc047d4:	89 5e 00 00 	lbz     r10,0(r30)                             
ffc047d8:	81 3c 00 00 	lwz     r9,0(r28)                              
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc047dc:	38 60 00 00 	li      r3,0                                   
                                                                      
    /* Set values */                                                  
    (*p)->begin = begin;                                              
    (*p)->end = end;                                                  
    rtems_bdpart_to_partition_type( type, (*p)->type);                
    (*p)->flags = data [RTEMS_BDPART_MBR_OFFSET_FLAGS];               
ffc047e0:	91 49 00 2c 	stw     r10,44(r9)                             
ffc047e4:	39 40 00 00 	li      r10,0                                  
ffc047e8:	91 49 00 28 	stw     r10,40(r9)                             
ffc047ec:	4b ff ff 7c 	b       ffc04768 <rtems_bdpart_read_mbr_partition+0x9c>
    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;                                          
ffc047f0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc047f4:	4b ff ff 74 	b       ffc04768 <rtems_bdpart_read_mbr_partition+0x9c><== NOT EXECUTED
                                                                      

ffc045c8 <rtems_bdpart_read_record>: static rtems_status_code rtems_bdpart_read_record( rtems_disk_device *dd, rtems_blkdev_bnum index, rtems_bdbuf_buffer **block ) {
ffc045c8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc045cc:	7c 08 02 a6 	mflr    r0                                     
ffc045d0:	90 01 00 1c 	stw     r0,28(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  /* Release previous block if necessary */                           
  if (*block != NULL) {                                               
ffc045d4:	81 25 00 00 	lwz     r9,0(r5)                               
static rtems_status_code rtems_bdpart_read_record(                    
  rtems_disk_device *dd,                                              
  rtems_blkdev_bnum index,                                            
  rtems_bdbuf_buffer **block                                          
)                                                                     
{                                                                     
ffc045d8:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc045dc:	7c 9d 23 78 	mr      r29,r4                                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  /* Release previous block if necessary */                           
  if (*block != NULL) {                                               
ffc045e0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
static rtems_status_code rtems_bdpart_read_record(                    
  rtems_disk_device *dd,                                              
  rtems_blkdev_bnum index,                                            
  rtems_bdbuf_buffer **block                                          
)                                                                     
{                                                                     
ffc045e4:	93 c1 00 10 	stw     r30,16(r1)                             
ffc045e8:	7c 7e 1b 78 	mr      r30,r3                                 
ffc045ec:	93 e1 00 14 	stw     r31,20(r1)                             
ffc045f0:	7c bf 2b 78 	mr      r31,r5                                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  /* Release previous block if necessary */                           
  if (*block != NULL) {                                               
ffc045f4:	41 9e 00 14 	beq-    cr7,ffc04608 <rtems_bdpart_read_record+0x40>
    sc = rtems_bdbuf_release( *block);                                
ffc045f8:	7d 23 4b 78 	mr      r3,r9                                  
ffc045fc:	48 00 fa c9 	bl      ffc140c4 <rtems_bdbuf_release>         
    if (sc != RTEMS_SUCCESSFUL) {                                     
ffc04600:	2c 03 00 00 	cmpwi   r3,0                                   
ffc04604:	40 82 00 3c 	bne-    ffc04640 <rtems_bdpart_read_record+0x78><== NEVER TAKEN
      return sc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  /* Read the record block */                                         
  sc = rtems_bdbuf_read( dd, index, block);                           
ffc04608:	7f c3 f3 78 	mr      r3,r30                                 
ffc0460c:	7f a4 eb 78 	mr      r4,r29                                 
ffc04610:	7f e5 fb 78 	mr      r5,r31                                 
ffc04614:	48 00 f8 71 	bl      ffc13e84 <rtems_bdbuf_read>            
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04618:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0461c:	40 82 00 24 	bne-    ffc04640 <rtems_bdpart_read_record+0x78><== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  /* just in case block did not get filled in */                      
  if ( *block == NULL ) {                                             
ffc04620:	81 5f 00 00 	lwz     r10,0(r31)                             
ffc04624:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc04628:	41 9e 00 48 	beq-    cr7,ffc04670 <rtems_bdpart_read_record+0xa8><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  /* Check MBR signature */                                           
  if (!rtems_bdpart_is_valid_record( (*block)->buffer)) {             
ffc0462c:	81 4a 00 1c 	lwz     r10,28(r10)                            
                                                                      
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]                     
ffc04630:	89 0a 01 fe 	lbz     r8,510(r10)                            
ffc04634:	2f 88 00 55 	cmpwi   cr7,r8,85                              
ffc04638:	41 9e 00 24 	beq-    cr7,ffc0465c <rtems_bdpart_read_record+0x94><== ALWAYS TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  /* Check MBR signature */                                           
  if (!rtems_bdpart_is_valid_record( (*block)->buffer)) {             
    return RTEMS_IO_ERROR;                                            
ffc0463c:	38 60 00 1b 	li      r3,27                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04640:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc04644:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc04648:	7c 08 03 a6 	mtlr    r0                                     
ffc0464c:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc04650:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc04654:	38 21 00 18 	addi    r1,r1,24                               
ffc04658:	4e 80 00 20 	blr                                            
                                                                      
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]                     
ffc0465c:	89 4a 01 ff 	lbz     r10,511(r10)                           
ffc04660:	2f 8a 00 aa 	cmpwi   cr7,r10,170                            
ffc04664:	41 be ff dc 	beq-    cr7,ffc04640 <rtems_bdpart_read_record+0x78><== ALWAYS TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  /* Check MBR signature */                                           
  if (!rtems_bdpart_is_valid_record( (*block)->buffer)) {             
    return RTEMS_IO_ERROR;                                            
ffc04668:	38 60 00 1b 	li      r3,27                                  <== NOT EXECUTED
ffc0466c:	4b ff ff d4 	b       ffc04640 <rtems_bdpart_read_record+0x78><== NOT EXECUTED
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04670:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
    return sc;                                                        
  }                                                                   
                                                                      
  /* just in case block did not get filled in */                      
  if ( *block == NULL ) {                                             
    return RTEMS_INVALID_ADDRESS;                                     
ffc04674:	38 60 00 09 	li      r3,9                                   <== NOT EXECUTED
  if (!rtems_bdpart_is_valid_record( (*block)->buffer)) {             
    return RTEMS_IO_ERROR;                                            
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04678:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc0467c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc04680:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc04684:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc04688:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc0468c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc04c04 <rtems_bdpart_register>: rtems_status_code rtems_bdpart_register( const char *disk_name, const rtems_bdpart_partition *pt, size_t count ) {
ffc04c04:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc04c08:	7c 08 02 a6 	mflr    r0                                     
ffc04c0c:	93 e1 00 3c 	stw     r31,60(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;                                     
ffc04c10:	3b e0 00 00 	li      r31,0                                  
rtems_status_code rtems_bdpart_register(                              
  const char *disk_name,                                              
  const rtems_bdpart_partition *pt,                                   
  size_t count                                                        
)                                                                     
{                                                                     
ffc04c14:	90 01 00 44 	stw     r0,68(r1)                              
ffc04c18:	92 e1 00 1c 	stw     r23,28(r1)                             
ffc04c1c:	93 41 00 28 	stw     r26,40(r1)                             
ffc04c20:	7c 7a 1b 78 	mr      r26,r3                                 
ffc04c24:	93 61 00 2c 	stw     r27,44(r1)                             
ffc04c28:	7c bb 2b 78 	mr      r27,r5                                 
ffc04c2c:	93 c1 00 38 	stw     r30,56(r1)                             
ffc04c30:	7c 9e 23 78 	mr      r30,r4                                 
ffc04c34:	93 01 00 20 	stw     r24,32(r1)                             
ffc04c38:	93 21 00 24 	stw     r25,36(r1)                             
ffc04c3c:	93 81 00 30 	stw     r28,48(r1)                             
ffc04c40:	93 a1 00 34 	stw     r29,52(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;                                     
ffc04c44:	93 e1 00 10 	stw     r31,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);                         
ffc04c48:	48 01 6b ad 	bl      ffc1b7f4 <strlen>                      
ffc04c4c:	7c 77 1b 78 	mr      r23,r3                                 
  size_t i = 0;                                                       
  int fd = -1;                                                        
ffc04c50:	39 20 ff ff 	li      r9,-1                                  
  rtems_disk_device *dd = NULL;                                       
ffc04c54:	93 e1 00 08 	stw     r31,8(r1)                              
                                                                      
  /* Get disk data */                                                 
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
ffc04c58:	7f 43 d3 78 	mr      r3,r26                                 
ffc04c5c:	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;                                                        
ffc04c60:	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);   
ffc04c64:	38 a1 00 08 	addi    r5,r1,8                                
ffc04c68:	38 c1 00 10 	addi    r6,r1,16                               
ffc04c6c:	4b ff fb d1 	bl      ffc0483c <rtems_bdpart_get_disk_data>  
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04c70:	7c 6a 1b 79 	mr.     r10,r3                                 
ffc04c74:	41 82 00 3c 	beq-    ffc04cb0 <rtems_bdpart_register+0xac>  <== ALWAYS TAKEN
cleanup:                                                              
                                                                      
  free( logical_disk_name);                                           
                                                                      
  return esc;                                                         
}                                                                     
ffc04c78:	80 01 00 44 	lwz     r0,68(r1)                              <== NOT EXECUTED
ffc04c7c:	7d 43 53 78 	mr      r3,r10                                 <== NOT EXECUTED
ffc04c80:	82 e1 00 1c 	lwz     r23,28(r1)                             <== NOT EXECUTED
ffc04c84:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc04c88:	83 01 00 20 	lwz     r24,32(r1)                             <== NOT EXECUTED
ffc04c8c:	83 21 00 24 	lwz     r25,36(r1)                             <== NOT EXECUTED
ffc04c90:	83 41 00 28 	lwz     r26,40(r1)                             <== NOT EXECUTED
ffc04c94:	83 61 00 2c 	lwz     r27,44(r1)                             <== NOT EXECUTED
ffc04c98:	83 81 00 30 	lwz     r28,48(r1)                             <== NOT EXECUTED
ffc04c9c:	83 a1 00 34 	lwz     r29,52(r1)                             <== NOT EXECUTED
ffc04ca0:	83 c1 00 38 	lwz     r30,56(r1)                             <== NOT EXECUTED
ffc04ca4:	83 e1 00 3c 	lwz     r31,60(r1)                             <== NOT EXECUTED
ffc04ca8:	38 21 00 40 	addi    r1,r1,64                               <== NOT EXECUTED
ffc04cac:	4e 80 00 20 	blr                                            <== NOT EXECUTED
      return sc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04cb0:	81 21 00 08 	lwz     r9,8(r1)                               
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
  disk = rtems_disk_get_device_identifier( dd);                       
  close( fd);                                                         
ffc04cb4:	80 61 00 0c 	lwz     r3,12(r1)                              
      return sc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04cb8:	83 09 00 04 	lwz     r24,4(r9)                              
ffc04cbc:	83 89 00 00 	lwz     r28,0(r9)                              
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
  disk = rtems_disk_get_device_identifier( dd);                       
  close( fd);                                                         
ffc04cc0:	48 00 2c 7d 	bl      ffc0793c <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);
ffc04cc4:	38 77 00 04 	addi    r3,r23,4                               
ffc04cc8:	48 00 34 a5 	bl      ffc0816c <malloc>                      
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.device = device;                                               
  return temp.__overlay.minor;                                        
ffc04ccc:	7f 1d c3 78 	mr      r29,r24                                
  if (logical_disk_name == NULL) {                                    
ffc04cd0:	7c 79 1b 79 	mr.     r25,r3                                 
    return RTEMS_NO_MEMORY;                                           
ffc04cd4:	39 40 00 1a 	li      r10,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) {                                    
ffc04cd8:	41 a2 ff a0 	beq-    ffc04c78 <rtems_bdpart_register+0x74>  <== NEVER TAKEN
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
  strncpy( logical_disk_name, disk_name, disk_name_size);             
ffc04cdc:	7e e5 bb 78 	mr      r5,r23                                 
ffc04ce0:	7f 44 d3 78 	mr      r4,r26                                 
ffc04ce4:	48 01 6c e5 	bl      ffc1b9c8 <strncpy>                     
  logical_disk_marker = logical_disk_name + disk_name_size;           
                                                                      
  /* Create a logical disk for each partition */                      
  for (i = 0; i < count; ++i) {                                       
ffc04ce8:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
  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;           
ffc04cec:	7e f9 ba 14 	add     r23,r25,r23                            
                                                                      
  /* Create a logical disk for each partition */                      
  for (i = 0; i < count; ++i) {                                       
ffc04cf0:	41 9e 00 bc 	beq-    cr7,ffc04dac <rtems_bdpart_register+0x1a8><== NEVER TAKEN
ffc04cf4:	3f 40 ff c3 	lis     r26,-61                                
ffc04cf8:	3b e0 00 00 	li      r31,0                                  
ffc04cfc:	3b 5a 9f bc 	addi    r26,r26,-24644                         
ffc04d00:	48 00 00 08 	b       ffc04d08 <rtems_bdpart_register+0x104> 
ffc04d04:	41 9e 00 a8 	beq-    cr7,ffc04dac <rtems_bdpart_register+0x1a8>
                                                                      
    /* 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);
ffc04d08:	3b ff 00 01 	addi    r31,r31,1                              
ffc04d0c:	38 80 00 04 	li      r4,4                                   
ffc04d10:	7f 45 d3 78 	mr      r5,r26                                 
ffc04d14:	7f e6 fb 78 	mr      r6,r31                                 
ffc04d18:	7e e3 bb 78 	mr      r3,r23                                 
ffc04d1c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04d20:	48 01 65 ad 	bl      ffc1b2cc <snprintf>                    
  for (i = 0; i < count; ++i) {                                       
    const rtems_bdpart_partition *p = pt + i;                         
    int rv = 0;                                                       
                                                                      
    /* New minor number */                                            
    ++minor;                                                          
ffc04d24:	3b bd 00 01 	addi    r29,r29,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);
    if (rv >= RTEMS_BDPART_NUMBER_SIZE) {                             
ffc04d28:	2f 83 00 03 	cmpwi   cr7,r3,3                               
      esc = RTEMS_INVALID_NAME;                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Create logical disk */                                         
    sc = rtems_disk_create_log(                                       
ffc04d2c:	7f 85 e3 78 	mr      r5,r28                                 
ffc04d30:	7f 06 c3 78 	mr      r6,r24                                 
ffc04d34:	7f 29 cb 78 	mr      r9,r25                                 
ffc04d38:	7f 83 e3 78 	mr      r3,r28                                 
ffc04d3c:	7f a4 eb 78 	mr      r4,r29                                 
    /* 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);
    if (rv >= RTEMS_BDPART_NUMBER_SIZE) {                             
ffc04d40:	41 9d 00 74 	bgt-    cr7,ffc04db4 <rtems_bdpart_register+0x1b0><== NEVER TAKEN
    /* Create logical disk */                                         
    sc = rtems_disk_create_log(                                       
      logical_disk,                                                   
      disk,                                                           
      p->begin,                                                       
      p->end - p->begin,                                              
ffc04d44:	80 fe 00 00 	lwz     r7,0(r30)                              
      esc = RTEMS_INVALID_NAME;                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Create logical disk */                                         
    sc = rtems_disk_create_log(                                       
ffc04d48:	81 1e 00 04 	lwz     r8,4(r30)                              
ffc04d4c:	3b de 00 30 	addi    r30,r30,48                             
ffc04d50:	7d 07 40 50 	subf    r8,r7,r8                               
ffc04d54:	48 00 12 65 	bl      ffc05fb8 <rtems_disk_create_log>       
  }                                                                   
  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) {                                       
ffc04d58:	7f 9f d8 00 	cmpw    cr7,r31,r27                            
      disk,                                                           
      p->begin,                                                       
      p->end - p->begin,                                              
      logical_disk_name                                               
    );                                                                
    if (sc != RTEMS_SUCCESSFUL) {                                     
ffc04d5c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc04d60:	41 82 ff a4 	beq+    ffc04d04 <rtems_bdpart_register+0x100> <== ALWAYS TAKEN
      esc = RTEMS_INVALID_NAME;                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Create logical disk */                                         
    sc = rtems_disk_create_log(                                       
ffc04d64:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
cleanup:                                                              
                                                                      
  free( logical_disk_name);                                           
ffc04d68:	7f 23 cb 78 	mr      r3,r25                                 
ffc04d6c:	48 00 2c 69 	bl      ffc079d4 <free>                        
                                                                      
  return esc;                                                         
}                                                                     
ffc04d70:	80 01 00 44 	lwz     r0,68(r1)                              
                                                                      
cleanup:                                                              
                                                                      
  free( logical_disk_name);                                           
                                                                      
  return esc;                                                         
ffc04d74:	7f ea fb 78 	mr      r10,r31                                
}                                                                     
ffc04d78:	82 e1 00 1c 	lwz     r23,28(r1)                             
ffc04d7c:	7c 08 03 a6 	mtlr    r0                                     
ffc04d80:	83 01 00 20 	lwz     r24,32(r1)                             
ffc04d84:	83 21 00 24 	lwz     r25,36(r1)                             
ffc04d88:	7d 43 53 78 	mr      r3,r10                                 
ffc04d8c:	83 41 00 28 	lwz     r26,40(r1)                             
ffc04d90:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc04d94:	83 81 00 30 	lwz     r28,48(r1)                             
ffc04d98:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc04d9c:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc04da0:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc04da4:	38 21 00 40 	addi    r1,r1,64                               
ffc04da8:	4e 80 00 20 	blr                                            
  const rtems_bdpart_partition *pt,                                   
  size_t count                                                        
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
ffc04dac:	3b e0 00 00 	li      r31,0                                  
ffc04db0:	4b ff ff b8 	b       ffc04d68 <rtems_bdpart_register+0x164> 
    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;                                       
ffc04db4:	3b e0 00 03 	li      r31,3                                  <== NOT EXECUTED
ffc04db8:	4b ff ff b0 	b       ffc04d68 <rtems_bdpart_register+0x164> <== NOT EXECUTED
                                                                      

ffc04dbc <rtems_bdpart_register_from_disk>: return esc; } rtems_status_code rtems_bdpart_register_from_disk( const char *disk_name) {
ffc04dbc:	94 21 fc d0 	stwu    r1,-816(r1)                            
ffc04dc0:	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;                  
ffc04dc4:	39 20 00 10 	li      r9,16                                  
                                                                      
  /* Read partitions */                                               
  sc = rtems_bdpart_read( disk_name, &format, pt, &count);            
ffc04dc8:	38 81 03 08 	addi    r4,r1,776                              
                                                                      
  return esc;                                                         
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_register_from_disk( const char *disk_name)
{                                                                     
ffc04dcc:	93 e1 03 2c 	stw     r31,812(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);            
ffc04dd0:	38 a1 00 08 	addi    r5,r1,8                                
ffc04dd4:	38 c1 03 1c 	addi    r6,r1,796                              
                                                                      
  return esc;                                                         
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_register_from_disk( const char *disk_name)
{                                                                     
ffc04dd8:	90 01 03 34 	stw     r0,820(r1)                             
ffc04ddc:	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;                  
ffc04de0:	91 21 03 1c 	stw     r9,796(r1)                             
                                                                      
  /* Read partitions */                                               
  sc = rtems_bdpart_read( disk_name, &format, pt, &count);            
ffc04de4:	4b ff fb 65 	bl      ffc04948 <rtems_bdpart_read>           
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04de8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc04dec:	40 a2 00 14 	bne+    ffc04e00 <rtems_bdpart_register_from_disk+0x44><== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  /* Register partitions */                                           
  return rtems_bdpart_register( disk_name, pt, count);                
ffc04df0:	80 a1 03 1c 	lwz     r5,796(r1)                             
ffc04df4:	7f e3 fb 78 	mr      r3,r31                                 
ffc04df8:	38 81 00 08 	addi    r4,r1,8                                
ffc04dfc:	4b ff fe 09 	bl      ffc04c04 <rtems_bdpart_register>       
}                                                                     
ffc04e00:	80 01 03 34 	lwz     r0,820(r1)                             
ffc04e04:	83 e1 03 2c 	lwz     r31,812(r1)                            
ffc04e08:	7c 08 03 a6 	mtlr    r0                                     
ffc04e0c:	38 21 03 30 	addi    r1,r1,816                              
ffc04e10:	4e 80 00 20 	blr                                            
                                                                      

ffc28ee8 <rtems_bdpart_unmount>: const char *disk_name, const rtems_bdpart_partition *pt __attribute__((unused)), size_t count, const char *mount_base ) {
ffc28ee8:	94 21 ff d8 	stwu    r1,-40(r1)                             <== NOT EXECUTED
ffc28eec:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  const char *disk_file_name = strrchr( disk_name, '/');              
ffc28ef0:	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                                              
)                                                                     
{                                                                     
ffc28ef4:	90 01 00 2c 	stw     r0,44(r1)                              <== NOT EXECUTED
ffc28ef8:	93 01 00 08 	stw     r24,8(r1)                              <== NOT EXECUTED
ffc28efc:	7c 78 1b 78 	mr      r24,r3                                 <== NOT EXECUTED
ffc28f00:	93 21 00 0c 	stw     r25,12(r1)                             <== NOT EXECUTED
ffc28f04:	93 61 00 14 	stw     r27,20(r1)                             <== NOT EXECUTED
ffc28f08:	7c db 33 78 	mr      r27,r6                                 <== NOT EXECUTED
ffc28f0c:	93 a1 00 1c 	stw     r29,28(r1)                             <== NOT EXECUTED
ffc28f10:	7c bd 2b 78 	mr      r29,r5                                 <== NOT EXECUTED
ffc28f14:	93 c1 00 20 	stw     r30,32(r1)                             <== NOT EXECUTED
ffc28f18:	93 e1 00 24 	stw     r31,36(r1)                             <== NOT EXECUTED
ffc28f1c:	93 41 00 10 	stw     r26,16(r1)                             <== NOT EXECUTED
ffc28f20:	93 81 00 18 	stw     r28,24(r1)                             <== NOT EXECUTED
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  const char *disk_file_name = strrchr( disk_name, '/');              
ffc28f24:	48 02 39 c1 	bl      ffc4c8e4 <strrchr>                     <== NOT EXECUTED
ffc28f28:	7c 7e 1b 78 	mr      r30,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);                         
ffc28f2c:	7f 03 c3 78 	mr      r3,r24                                 <== NOT EXECUTED
ffc28f30:	48 02 2a 49 	bl      ffc4b978 <strlen>                      <== NOT EXECUTED
ffc28f34:	7c 79 1b 78 	mr      r25,r3                                 <== NOT EXECUTED
  size_t mount_base_size = strlen( mount_base);                       
ffc28f38:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc28f3c:	48 02 2a 3d 	bl      ffc4b978 <strlen>                      <== NOT EXECUTED
  size_t i = 0;                                                       
                                                                      
  /* Get disk file name */                                            
  if (disk_file_name != NULL) {                                       
ffc28f40:	2f 9e 00 00 	cmpwi   cr7,r30,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);                       
ffc28f44:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
  size_t i = 0;                                                       
                                                                      
  /* Get disk file name */                                            
  if (disk_file_name != NULL) {                                       
ffc28f48:	41 9e 00 14 	beq-    cr7,ffc28f5c <rtems_bdpart_unmount+0x74><== NOT EXECUTED
    disk_file_name += 1;                                              
ffc28f4c:	3b 1e 00 01 	addi    r24,r30,1                              <== NOT EXECUTED
    disk_file_name_size = strlen( disk_file_name);                    
ffc28f50:	7f 03 c3 78 	mr      r3,r24                                 <== NOT EXECUTED
ffc28f54:	48 02 2a 25 	bl      ffc4b978 <strlen>                      <== NOT EXECUTED
ffc28f58:	7c 79 1b 78 	mr      r25,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);
ffc28f5c:	7f 99 fa 14 	add     r28,r25,r31                            <== NOT EXECUTED
ffc28f60:	38 7c 00 05 	addi    r3,r28,5                               <== NOT EXECUTED
ffc28f64:	4b fd ba 49 	bl      ffc049ac <malloc>                      <== NOT EXECUTED
  if (mount_point == NULL) {                                          
    esc = RTEMS_NO_MEMORY;                                            
ffc28f68:	3b 40 00 1a 	li      r26,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) {                                          
ffc28f6c:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
ffc28f70:	41 82 00 9c 	beq-    ffc2900c <rtems_bdpart_unmount+0x124>  <== NOT EXECUTED
    esc = RTEMS_NO_MEMORY;                                            
    goto cleanup;                                                     
  }                                                                   
  strncpy( mount_point, mount_base, mount_base_size);                 
ffc28f74:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc28f78:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc28f7c:	48 02 2c 75 	bl      ffc4bbf0 <strncpy>                     <== NOT EXECUTED
  mount_point [mount_base_size] = '/';                                
ffc28f80:	39 20 00 2f 	li      r9,47                                  <== NOT EXECUTED
ffc28f84:	7d 3e f9 ae 	stbx    r9,r30,r31                             <== NOT EXECUTED
  strncpy( mount_point + mount_base_size + 1, disk_file_name, disk_file_name_size);
ffc28f88:	38 7f 00 01 	addi    r3,r31,1                               <== NOT EXECUTED
ffc28f8c:	7c 7e 1a 14 	add     r3,r30,r3                              <== NOT EXECUTED
ffc28f90:	7f 04 c3 78 	mr      r4,r24                                 <== NOT EXECUTED
ffc28f94:	7f 25 cb 78 	mr      r5,r25                                 <== NOT EXECUTED
ffc28f98:	48 02 2c 59 	bl      ffc4bbf0 <strncpy>                     <== 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) {                                       
ffc28f9c:	2f 9d 00 00 	cmpwi   cr7,r29,0                              <== 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;
ffc28fa0:	3b 9c 00 01 	addi    r28,r28,1                              <== NOT EXECUTED
ffc28fa4:	7f 9e e2 14 	add     r28,r30,r28                            <== NOT EXECUTED
                                                                      
  /* Mount supported file systems for each partition */               
  for (i = 0; i < count; ++i) {                                       
ffc28fa8:	41 9e 00 a0 	beq-    cr7,ffc29048 <rtems_bdpart_unmount+0x160><== NOT EXECUTED
ffc28fac:	3f 60 ff c7 	lis     r27,-57                                <== NOT EXECUTED
ffc28fb0:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
ffc28fb4:	3b 7b 92 d8 	addi    r27,r27,-27944                         <== NOT EXECUTED
ffc28fb8:	48 00 00 0c 	b       ffc28fc4 <rtems_bdpart_unmount+0xdc>   <== NOT EXECUTED
ffc28fbc:	7f 9f e8 00 	cmpw    cr7,r31,r29                            <== NOT EXECUTED
ffc28fc0:	41 9e 00 88 	beq-    cr7,ffc29048 <rtems_bdpart_unmount+0x160><== NOT EXECUTED
    /* Create mount point */                                          
    int rv = snprintf( mount_marker, RTEMS_BDPART_NUMBER_SIZE, "%zu", i + 1);
ffc28fc4:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
ffc28fc8:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc28fcc:	7f 65 db 78 	mr      r5,r27                                 <== NOT EXECUTED
ffc28fd0:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
ffc28fd4:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc28fd8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc28fdc:	48 02 1b e9 	bl      ffc4abc4 <snprintf>                    <== NOT EXECUTED
    if (rv >= RTEMS_BDPART_NUMBER_SIZE) {                             
ffc28fe0:	2f 83 00 03 	cmpwi   cr7,r3,3                               <== NOT EXECUTED
      esc = RTEMS_INVALID_NAME;                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Unmount */                                                     
    rv = unmount( mount_point);                                       
ffc28fe4:	7f c3 f3 78 	mr      r3,r30                                 <== 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) {                             
ffc28fe8:	41 9d 00 a0 	bgt-    cr7,ffc29088 <rtems_bdpart_unmount+0x1a0><== NOT EXECUTED
      esc = RTEMS_INVALID_NAME;                                       
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Unmount */                                                     
    rv = unmount( mount_point);                                       
ffc28fec:	48 00 58 3d 	bl      ffc2e828 <unmount>                     <== NOT EXECUTED
    if (rv == 0) {                                                    
ffc28ff0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc28ff4:	40 9e ff c8 	bne+    cr7,ffc28fbc <rtems_bdpart_unmount+0xd4><== NOT EXECUTED
      /* Remove mount point */                                        
      rv = rmdir( mount_point);                                       
ffc28ff8:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc28ffc:	48 00 4f 91 	bl      ffc2df8c <rmdir>                       <== NOT EXECUTED
      if (rv != 0) {                                                  
ffc29000:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc29004:	41 9e ff b8 	beq+    cr7,ffc28fbc <rtems_bdpart_unmount+0xd4><== NOT EXECUTED
        esc = RTEMS_IO_ERROR;                                         
ffc29008:	3b 40 00 1b 	li      r26,27                                 <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
cleanup:                                                              
                                                                      
  free( mount_point);                                                 
ffc2900c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc29010:	4b fd b5 71 	bl      ffc04580 <free>                        <== NOT EXECUTED
                                                                      
  return esc;                                                         
}                                                                     
ffc29014:	80 01 00 2c 	lwz     r0,44(r1)                              <== NOT EXECUTED
ffc29018:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
ffc2901c:	83 01 00 08 	lwz     r24,8(r1)                              <== NOT EXECUTED
ffc29020:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc29024:	83 21 00 0c 	lwz     r25,12(r1)                             <== NOT EXECUTED
ffc29028:	83 41 00 10 	lwz     r26,16(r1)                             <== NOT EXECUTED
ffc2902c:	83 61 00 14 	lwz     r27,20(r1)                             <== NOT EXECUTED
ffc29030:	83 81 00 18 	lwz     r28,24(r1)                             <== NOT EXECUTED
ffc29034:	83 a1 00 1c 	lwz     r29,28(r1)                             <== NOT EXECUTED
ffc29038:	83 c1 00 20 	lwz     r30,32(r1)                             <== NOT EXECUTED
ffc2903c:	83 e1 00 24 	lwz     r31,36(r1)                             <== NOT EXECUTED
ffc29040:	38 21 00 28 	addi    r1,r1,40                               <== NOT EXECUTED
ffc29044:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
cleanup:                                                              
                                                                      
  free( mount_point);                                                 
ffc29048:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc2904c:	4b fd b5 35 	bl      ffc04580 <free>                        <== NOT EXECUTED
                                                                      
  return esc;                                                         
}                                                                     
ffc29050:	80 01 00 2c 	lwz     r0,44(r1)                              <== NOT EXECUTED
  const rtems_bdpart_partition *pt __attribute__((unused)),           
  size_t count,                                                       
  const char *mount_base                                              
)                                                                     
{                                                                     
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
ffc29054:	3b 40 00 00 	li      r26,0                                  <== NOT EXECUTED
cleanup:                                                              
                                                                      
  free( mount_point);                                                 
                                                                      
  return esc;                                                         
}                                                                     
ffc29058:	83 01 00 08 	lwz     r24,8(r1)                              <== NOT EXECUTED
ffc2905c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc29060:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
ffc29064:	83 21 00 0c 	lwz     r25,12(r1)                             <== NOT EXECUTED
ffc29068:	83 41 00 10 	lwz     r26,16(r1)                             <== NOT EXECUTED
ffc2906c:	83 61 00 14 	lwz     r27,20(r1)                             <== NOT EXECUTED
ffc29070:	83 81 00 18 	lwz     r28,24(r1)                             <== NOT EXECUTED
ffc29074:	83 a1 00 1c 	lwz     r29,28(r1)                             <== NOT EXECUTED
ffc29078:	83 c1 00 20 	lwz     r30,32(r1)                             <== NOT EXECUTED
ffc2907c:	83 e1 00 24 	lwz     r31,36(r1)                             <== NOT EXECUTED
ffc29080:	38 21 00 28 	addi    r1,r1,40                               <== NOT EXECUTED
ffc29084:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
cleanup:                                                              
                                                                      
  free( mount_point);                                                 
ffc29088:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc2908c:	4b fd b4 f5 	bl      ffc04580 <free>                        <== NOT EXECUTED
                                                                      
  return esc;                                                         
}                                                                     
ffc29090:	80 01 00 2c 	lwz     r0,44(r1)                              <== 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;                                       
ffc29094:	3b 40 00 03 	li      r26,3                                  <== NOT EXECUTED
cleanup:                                                              
                                                                      
  free( mount_point);                                                 
                                                                      
  return esc;                                                         
}                                                                     
ffc29098:	83 01 00 08 	lwz     r24,8(r1)                              <== NOT EXECUTED
ffc2909c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc290a0:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
ffc290a4:	83 21 00 0c 	lwz     r25,12(r1)                             <== NOT EXECUTED
ffc290a8:	83 41 00 10 	lwz     r26,16(r1)                             <== NOT EXECUTED
ffc290ac:	83 61 00 14 	lwz     r27,20(r1)                             <== NOT EXECUTED
ffc290b0:	83 81 00 18 	lwz     r28,24(r1)                             <== NOT EXECUTED
ffc290b4:	83 a1 00 1c 	lwz     r29,28(r1)                             <== NOT EXECUTED
ffc290b8:	83 c1 00 20 	lwz     r30,32(r1)                             <== NOT EXECUTED
ffc290bc:	83 e1 00 24 	lwz     r31,36(r1)                             <== NOT EXECUTED
ffc290c0:	38 21 00 28 	addi    r1,r1,40                               <== NOT EXECUTED
ffc290c4:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc04e14 <rtems_bdpart_unregister>: rtems_status_code rtems_bdpart_unregister( const char *disk_name, const rtems_bdpart_partition *pt __attribute__((unused)), size_t count ) {
ffc04e14:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc04e18:	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;                                     
ffc04e1c:	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                                                        
)                                                                     
{                                                                     
ffc04e20:	93 c1 00 20 	stw     r30,32(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;                                                        
ffc04e24:	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                                                        
)                                                                     
{                                                                     
ffc04e28:	7c be 2b 78 	mr      r30,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);   
ffc04e2c:	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                                                        
)                                                                     
{                                                                     
ffc04e30:	93 81 00 18 	stw     r28,24(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);   
ffc04e34:	38 a1 00 08 	addi    r5,r1,8                                
ffc04e38:	38 c1 00 10 	addi    r6,r1,16                               
rtems_status_code rtems_bdpart_unregister(                            
  const char *disk_name,                                              
  const rtems_bdpart_partition *pt __attribute__((unused)),           
  size_t count                                                        
)                                                                     
{                                                                     
ffc04e3c:	90 01 00 2c 	stw     r0,44(r1)                              
ffc04e40:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc04e44:	93 e1 00 24 	stw     r31,36(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
  rtems_blkdev_bnum disk_end = 0;                                     
ffc04e48:	91 21 00 10 	stw     r9,16(r1)                              
  dev_t disk = 0;                                                     
  dev_t logical_disk = 0;                                             
  size_t i = 0;                                                       
  int fd = -1;                                                        
ffc04e4c:	91 41 00 0c 	stw     r10,12(r1)                             
  rtems_disk_device *dd = NULL;                                       
ffc04e50:	91 21 00 08 	stw     r9,8(r1)                               
                                                                      
  /* Get disk data */                                                 
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
ffc04e54:	4b ff f9 e9 	bl      ffc0483c <rtems_bdpart_get_disk_data>  
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04e58:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc04e5c:	41 82 00 28 	beq-    ffc04e84 <rtems_bdpart_unregister+0x70><== ALWAYS TAKEN
      return sc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04e60:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc04e64:	7f 83 e3 78 	mr      r3,r28                                 
ffc04e68:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc04e6c:	7c 08 03 a6 	mtlr    r0                                     
ffc04e70:	83 81 00 18 	lwz     r28,24(r1)                             
ffc04e74:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc04e78:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc04e7c:	38 21 00 28 	addi    r1,r1,40                               
ffc04e80:	4e 80 00 20 	blr                                            
ffc04e84:	81 21 00 08 	lwz     r9,8(r1)                               
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
  disk = rtems_disk_get_device_identifier( dd);                       
  close( fd);                                                         
ffc04e88:	80 61 00 0c 	lwz     r3,12(r1)                              
      return sc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04e8c:	83 e9 00 04 	lwz     r31,4(r9)                              
ffc04e90:	83 a9 00 00 	lwz     r29,0(r9)                              
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
  disk = rtems_disk_get_device_identifier( dd);                       
  close( fd);                                                         
ffc04e94:	48 00 2a a9 	bl      ffc0793c <close>                       
                                                                      
  /* Get the disk device identifier */                                
  rtems_filesystem_split_dev_t( disk, major, minor);                  
                                                                      
  /* Create a logical disk for each partition */                      
  for (i = 0; i < count; ++i) {                                       
ffc04e98:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
                                                                      
  /* Register partitions */                                           
  return rtems_bdpart_register( disk_name, pt, count);                
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_unregister(                            
ffc04e9c:	7f de fa 14 	add     r30,r30,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) {                                       
ffc04ea0:	41 be ff c0 	beq-    cr7,ffc04e60 <rtems_bdpart_unregister+0x4c>
    /* New minor number */                                            
    ++minor;                                                          
ffc04ea4:	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);                            
ffc04ea8:	7f a3 eb 78 	mr      r3,r29                                 
ffc04eac:	7f e4 fb 78 	mr      r4,r31                                 
ffc04eb0:	48 00 0e 6d 	bl      ffc05d1c <rtems_disk_delete>           
                                                                      
  /* 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) {                                       
ffc04eb4:	7f 9f f0 00 	cmpw    cr7,r31,r30                            
    /* Get the device identifier */                                   
    logical_disk = rtems_filesystem_make_dev_t( major, minor);        
                                                                      
    /* Delete logical disk */                                         
    sc = rtems_disk_delete( logical_disk);                            
    if (sc != RTEMS_SUCCESSFUL) {                                     
ffc04eb8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc04ebc:	41 82 ff e4 	beq+    ffc04ea0 <rtems_bdpart_unregister+0x8c><== ALWAYS TAKEN
      return sc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04ec0:	80 01 00 2c 	lwz     r0,44(r1)                              <== NOT EXECUTED
                                                                      
    /* Get the device identifier */                                   
    logical_disk = rtems_filesystem_make_dev_t( major, minor);        
                                                                      
    /* Delete logical disk */                                         
    sc = rtems_disk_delete( logical_disk);                            
ffc04ec4:	7c 7c 1b 78 	mr      r28,r3                                 <== NOT EXECUTED
      return sc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04ec8:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc04ecc:	83 a1 00 1c 	lwz     r29,28(r1)                             <== NOT EXECUTED
ffc04ed0:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc04ed4:	83 81 00 18 	lwz     r28,24(r1)                             <== NOT EXECUTED
ffc04ed8:	83 c1 00 20 	lwz     r30,32(r1)                             <== NOT EXECUTED
ffc04edc:	83 e1 00 24 	lwz     r31,36(r1)                             <== NOT EXECUTED
ffc04ee0:	38 21 00 28 	addi    r1,r1,40                               <== NOT EXECUTED
ffc04ee4:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc04fcc <rtems_bdpart_write>: const char *disk_name, const rtems_bdpart_format *format, const rtems_bdpart_partition *pt, size_t count ) {
ffc04fcc:	94 21 ff b0 	stwu    r1,-80(r1)                             
ffc04fd0:	7c 08 02 a6 	mflr    r0                                     
ffc04fd4:	93 a1 00 44 	stw     r29,68(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;                                 
ffc04fd8:	7c 9d 23 79 	mr.     r29,r4                                 
  const char *disk_name,                                              
  const rtems_bdpart_format *format,                                  
  const rtems_bdpart_partition *pt,                                   
  size_t count                                                        
)                                                                     
{                                                                     
ffc04fdc:	93 c1 00 48 	stw     r30,72(r1)                             
ffc04fe0:	7c de 33 78 	mr      r30,r6                                 
ffc04fe4:	90 01 00 54 	stw     r0,84(r1)                              
ffc04fe8:	92 c1 00 28 	stw     r22,40(r1)                             
ffc04fec:	92 e1 00 2c 	stw     r23,44(r1)                             
ffc04ff0:	93 01 00 30 	stw     r24,48(r1)                             
ffc04ff4:	93 21 00 34 	stw     r25,52(r1)                             
ffc04ff8:	93 41 00 38 	stw     r26,56(r1)                             
ffc04ffc:	93 61 00 3c 	stw     r27,60(r1)                             
ffc05000:	93 81 00 40 	stw     r28,64(r1)                             
ffc05004:	93 e1 00 4c 	stw     r31,76(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;                                 
ffc05008:	41 82 00 50 	beq-    ffc05058 <rtems_bdpart_write+0x8c>     <== 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                        
ffc0500c:	81 3d 00 00 	lwz     r9,0(r29)                              
ffc05010:	7c bc 2b 78 	mr      r28,r5                                 
ffc05014:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc05018:	40 9e 00 10 	bne-    cr7,ffc05028 <rtems_bdpart_write+0x5c> <== NEVER TAKEN
    && format->mbr.dos_compatibility;                                 
ffc0501c:	89 5d 00 08 	lbz     r10,8(r29)                             
ffc05020:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc05024:	40 9e 00 80 	bne-    cr7,ffc050a4 <rtems_bdpart_write+0xd8> <== ALWAYS TAKEN
  uint8_t *data = NULL;                                               
  int fd = -1;                                                        
  rtems_disk_device *dd = NULL;                                       
                                                                      
  /* Check if we have something to do */                              
  if (count == 0) {                                                   
ffc05028:	2f 9e 00 00 	cmpwi   cr7,r30,0                              <== NOT EXECUTED
  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;                                   
ffc0502c:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
  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;                                                        
ffc05030:	39 40 ff ff 	li      r10,-1                                 <== NOT EXECUTED
  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;                                   
ffc05034:	91 21 00 14 	stw     r9,20(r1)                              <== NOT EXECUTED
  rtems_disk_device *dd = NULL;                                       
                                                                      
  /* Check if we have something to do */                              
  if (count == 0) {                                                   
    /* Nothing to do */                                               
    return RTEMS_SUCCESSFUL;                                          
ffc05038:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
  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;                                     
ffc0503c:	91 21 00 10 	stw     r9,16(r1)                              <== NOT EXECUTED
  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;                                                        
ffc05040:	91 41 00 0c 	stw     r10,12(r1)                             <== NOT EXECUTED
  rtems_disk_device *dd = NULL;                                       
ffc05044:	91 21 00 08 	stw     r9,8(r1)                               <== NOT EXECUTED
                                                                      
  /* Check if we have something to do */                              
  if (count == 0) {                                                   
ffc05048:	41 9e 00 20 	beq-    cr7,ffc05068 <rtems_bdpart_write+0x9c> <== NOT EXECUTED
  size_t count                                                        
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  bool dos_compatibility = format != NULL                             
ffc0504c:	3b 40 00 00 	li      r26,0                                  <== NOT EXECUTED
    && 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 =                                    
ffc05050:	3b 60 00 01 	li      r27,1                                  <== NOT EXECUTED
ffc05054:	48 00 00 78 	b       ffc050cc <rtems_bdpart_write+0x100>    <== NOT EXECUTED
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL) {                                 
    return RTEMS_INVALID_ADDRESS;                                     
ffc05058:	33 e6 ff ff 	addic   r31,r6,-1                              <== NOT EXECUTED
ffc0505c:	7f ff f9 10 	subfe   r31,r31,r31                            <== NOT EXECUTED
ffc05060:	57 ff 07 76 	rlwinm  r31,r31,0,29,27                        <== NOT EXECUTED
ffc05064:	3b ff 00 09 	addi    r31,r31,9                              <== NOT EXECUTED
  if (block != NULL) {                                                
    rtems_bdbuf_sync( block);                                         
  }                                                                   
                                                                      
  return esc;                                                         
}                                                                     
ffc05068:	80 01 00 54 	lwz     r0,84(r1)                              <== NOT EXECUTED
ffc0506c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc05070:	82 c1 00 28 	lwz     r22,40(r1)                             <== NOT EXECUTED
ffc05074:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc05078:	82 e1 00 2c 	lwz     r23,44(r1)                             <== NOT EXECUTED
ffc0507c:	83 01 00 30 	lwz     r24,48(r1)                             <== NOT EXECUTED
ffc05080:	83 21 00 34 	lwz     r25,52(r1)                             <== NOT EXECUTED
ffc05084:	83 41 00 38 	lwz     r26,56(r1)                             <== NOT EXECUTED
ffc05088:	83 61 00 3c 	lwz     r27,60(r1)                             <== NOT EXECUTED
ffc0508c:	83 81 00 40 	lwz     r28,64(r1)                             <== NOT EXECUTED
ffc05090:	83 a1 00 44 	lwz     r29,68(r1)                             <== NOT EXECUTED
ffc05094:	83 c1 00 48 	lwz     r30,72(r1)                             <== NOT EXECUTED
ffc05098:	83 e1 00 4c 	lwz     r31,76(r1)                             <== NOT EXECUTED
ffc0509c:	38 21 00 50 	addi    r1,r1,80                               <== NOT EXECUTED
ffc050a0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  uint8_t *data = NULL;                                               
  int fd = -1;                                                        
  rtems_disk_device *dd = NULL;                                       
                                                                      
  /* Check if we have something to do */                              
  if (count == 0) {                                                   
ffc050a4:	2f 86 00 00 	cmpwi   cr7,r6,0                               
  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;                                   
ffc050a8:	91 21 00 14 	stw     r9,20(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;                                                        
ffc050ac:	39 40 ff ff 	li      r10,-1                                 
  rtems_disk_device *dd = NULL;                                       
                                                                      
  /* Check if we have something to do */                              
  if (count == 0) {                                                   
    /* Nothing to do */                                               
    return RTEMS_SUCCESSFUL;                                          
ffc050b0:	3b e0 00 00 	li      r31,0                                  
  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;                                     
ffc050b4:	91 21 00 10 	stw     r9,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;                                                        
ffc050b8:	91 41 00 0c 	stw     r10,12(r1)                             
  rtems_disk_device *dd = NULL;                                       
ffc050bc:	91 21 00 08 	stw     r9,8(r1)                               
                                                                      
  /* Check if we have something to do */                              
  if (count == 0) {                                                   
ffc050c0:	41 be ff a8 	beq-    cr7,ffc05068 <rtems_bdpart_write+0x9c> <== NEVER TAKEN
  size_t count                                                        
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
  bool dos_compatibility = format != NULL                             
ffc050c4:	3b 40 00 01 	li      r26,1                                  
    && 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 =                                    
ffc050c8:	3b 60 00 3f 	li      r27,63                                 
    /* Nothing to do */                                               
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL) {                                 
ffc050cc:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
    return RTEMS_INVALID_ADDRESS;                                     
ffc050d0:	3b e0 00 09 	li      r31,9                                  
    /* Nothing to do */                                               
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  /* Check parameter */                                               
  if (format == NULL || pt == NULL) {                                 
ffc050d4:	41 be ff 94 	beq-    cr7,ffc05068 <rtems_bdpart_write+0x9c> <== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  /* Get disk data */                                                 
  sc = rtems_bdpart_get_disk_data( disk_name, &fd, &dd, &disk_end);   
ffc050d8:	38 81 00 0c 	addi    r4,r1,12                               
ffc050dc:	38 a1 00 08 	addi    r5,r1,8                                
ffc050e0:	38 c1 00 10 	addi    r6,r1,16                               
ffc050e4:	4b ff f7 59 	bl      ffc0483c <rtems_bdpart_get_disk_data>  
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc050e8:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc050ec:	40 a2 ff 7c 	bne-    ffc05068 <rtems_bdpart_write+0x9c>     <== NEVER TAKEN
    return sc;                                                        
  }                                                                   
                                                                      
  /* Align end of disk on cylinder boundary if necessary */           
  if (dos_compatibility) {                                            
ffc050f0:	2c 9a 00 00 	cmpwi   cr1,r26,0                              
    disk_end -= (disk_end % record_space);                            
ffc050f4:	80 61 00 10 	lwz     r3,16(r1)                              
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
                                                                      
  /* Align end of disk on cylinder boundary if necessary */           
  if (dos_compatibility) {                                            
ffc050f8:	41 86 00 10 	beq-    cr1,ffc05108 <rtems_bdpart_write+0x13c><== NEVER TAKEN
    disk_end -= (disk_end % record_space);                            
ffc050fc:	7c 63 db 96 	divwu   r3,r3,r27                              
ffc05100:	7c 63 d9 d6 	mullw   r3,r3,r27                              
ffc05104:	90 61 00 10 	stw     r3,16(r1)                              
  /* Check that we have a consistent partition table */               
  for (i = 0; i < count; ++i) {                                       
    const rtems_bdpart_partition *p = pt + i;                         
                                                                      
    /* Check that begin and end are proper within the disk */         
    if (p->begin >= disk_end || p->end > disk_end) {                  
ffc05108:	80 dc 00 00 	lwz     r6,0(r28)                              
ffc0510c:	7f 86 18 40 	cmplw   cr7,r6,r3                              
ffc05110:	40 9c 00 74 	bge-    cr7,ffc05184 <rtems_bdpart_write+0x1b8><== NEVER TAKEN
ffc05114:	81 3c 00 04 	lwz     r9,4(r28)                              
ffc05118:	7f 89 18 40 	cmplw   cr7,r9,r3                              
ffc0511c:	41 9d 00 68 	bgt-    cr7,ffc05184 <rtems_bdpart_write+0x1b8><== NEVER TAKEN
      esc = RTEMS_INVALID_NUMBER;                                     
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Check that begin and end are valid */                          
    if (p->begin >= p->end) {                                         
ffc05120:	7f 86 48 40 	cmplw   cr7,r6,r9                              
ffc05124:	40 9c 00 60 	bge-    cr7,ffc05184 <rtems_bdpart_write+0x1b8><== NEVER TAKEN
ffc05128:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
  if (dos_compatibility) {                                            
    disk_end -= (disk_end % record_space);                            
  }                                                                   
                                                                      
  /* Check that we have a consistent partition table */               
  for (i = 0; i < count; ++i) {                                       
ffc0512c:	7f c9 03 a6 	mtctr   r30                                    
ffc05130:	7f 9a e3 78 	mr      r26,r28                                
      esc = RTEMS_INVALID_NUMBER;                                     
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Check that begin and end are valid */                          
    if (p->begin >= p->end) {                                         
ffc05134:	7f 89 e3 78 	mr      r9,r28                                 
  if (dos_compatibility) {                                            
    disk_end -= (disk_end % record_space);                            
  }                                                                   
                                                                      
  /* Check that we have a consistent partition table */               
  for (i = 0; i < count; ++i) {                                       
ffc05138:	39 00 00 00 	li      r8,0                                   
ffc0513c:	41 9e 03 f8 	beq-    cr7,ffc05534 <rtems_bdpart_write+0x568><== NEVER TAKEN
ffc05140:	39 08 00 01 	addi    r8,r8,1                                
      esc = RTEMS_INVALID_NUMBER;                                     
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Check that partitions do not overlap */                        
    if (i > 0 && pt [i - 1].end > p->begin) {                         
ffc05144:	2f 08 00 00 	cmpwi   cr6,r8,0                               
  if (dos_compatibility) {                                            
    disk_end -= (disk_end % record_space);                            
  }                                                                   
                                                                      
  /* Check that we have a consistent partition table */               
  for (i = 0; i < count; ++i) {                                       
ffc05148:	42 40 00 9c 	bdz-    ffc051e4 <rtems_bdpart_write+0x218>    
    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) {                  
ffc0514c:	81 49 00 30 	lwz     r10,48(r9)                             
ffc05150:	7f 8a 18 40 	cmplw   cr7,r10,r3                             
ffc05154:	40 9c 00 30 	bge-    cr7,ffc05184 <rtems_bdpart_write+0x1b8><== NEVER TAKEN
ffc05158:	80 e9 00 34 	lwz     r7,52(r9)                              
ffc0515c:	7f 87 18 40 	cmplw   cr7,r7,r3                              
      esc = RTEMS_INVALID_NUMBER;                                     
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Check that begin and end are valid */                          
    if (p->begin >= p->end) {                                         
ffc05160:	7c 0a 38 40 	cmplw   r10,r7                                 
  /* Check that we have a consistent partition table */               
  for (i = 0; i < count; ++i) {                                       
    const rtems_bdpart_partition *p = pt + i;                         
                                                                      
    /* Check that begin and end are proper within the disk */         
    if (p->begin >= disk_end || p->end > disk_end) {                  
ffc05164:	41 9d 00 20 	bgt-    cr7,ffc05184 <rtems_bdpart_write+0x1b8><== NEVER TAKEN
      esc = RTEMS_INVALID_NUMBER;                                     
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Check that begin and end are valid */                          
    if (p->begin >= p->end) {                                         
ffc05168:	40 80 00 1c 	bge-    ffc05184 <rtems_bdpart_write+0x1b8>    <== NEVER TAKEN
      esc = RTEMS_INVALID_NUMBER;                                     
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Check that partitions do not overlap */                        
    if (i > 0 && pt [i - 1].end > p->begin) {                         
ffc0516c:	41 9a 00 10 	beq-    cr6,ffc0517c <rtems_bdpart_write+0x1b0><== NEVER TAKEN
ffc05170:	80 e9 00 04 	lwz     r7,4(r9)                               
ffc05174:	7f 8a 38 40 	cmplw   cr7,r10,r7                             
ffc05178:	41 9c 00 0c 	blt-    cr7,ffc05184 <rtems_bdpart_write+0x1b8><== NEVER TAKEN
ffc0517c:	39 29 00 30 	addi    r9,r9,48                               
ffc05180:	4b ff ff c0 	b       ffc05140 <rtems_bdpart_write+0x174>    
  for (i = 0; i < count; ++i) {                                       
    const rtems_bdpart_partition *p = pt + i;                         
                                                                      
    /* Check that begin and end are proper within the disk */         
    if (p->begin >= disk_end || p->end > disk_end) {                  
      esc = RTEMS_INVALID_NUMBER;                                     
ffc05184:	3b e0 00 0a 	li      r31,10                                 <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
cleanup:                                                              
                                                                      
  if (fd >= 0) {                                                      
ffc05188:	80 61 00 0c 	lwz     r3,12(r1)                              
ffc0518c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05190:	41 9c 00 08 	blt-    cr7,ffc05198 <rtems_bdpart_write+0x1cc><== NEVER TAKEN
    close( fd);                                                       
ffc05194:	48 00 27 a9 	bl      ffc0793c <close>                       
  }                                                                   
                                                                      
  if (block != NULL) {                                                
ffc05198:	80 61 00 14 	lwz     r3,20(r1)                              
ffc0519c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc051a0:	41 be fe c8 	beq-    cr7,ffc05068 <rtems_bdpart_write+0x9c> <== NEVER TAKEN
    rtems_bdbuf_sync( block);                                         
ffc051a4:	48 00 f0 95 	bl      ffc14238 <rtems_bdbuf_sync>            
  }                                                                   
                                                                      
  return esc;                                                         
}                                                                     
ffc051a8:	80 01 00 54 	lwz     r0,84(r1)                              
ffc051ac:	7f e3 fb 78 	mr      r3,r31                                 
ffc051b0:	82 c1 00 28 	lwz     r22,40(r1)                             
ffc051b4:	7c 08 03 a6 	mtlr    r0                                     
ffc051b8:	82 e1 00 2c 	lwz     r23,44(r1)                             
ffc051bc:	83 01 00 30 	lwz     r24,48(r1)                             
ffc051c0:	83 21 00 34 	lwz     r25,52(r1)                             
ffc051c4:	83 41 00 38 	lwz     r26,56(r1)                             
ffc051c8:	83 61 00 3c 	lwz     r27,60(r1)                             
ffc051cc:	83 81 00 40 	lwz     r28,64(r1)                             
ffc051d0:	83 a1 00 44 	lwz     r29,68(r1)                             
ffc051d4:	83 c1 00 48 	lwz     r30,72(r1)                             
ffc051d8:	83 e1 00 4c 	lwz     r31,76(r1)                             
ffc051dc:	38 21 00 50 	addi    r1,r1,80                               
ffc051e0:	4e 80 00 20 	blr                                            
      goto cleanup;                                                   
    }                                                                 
  }                                                                   
                                                                      
  /* Check format */                                                  
  if (format->type != RTEMS_BDPART_FORMAT_MBR) {                      
ffc051e4:	81 3d 00 00 	lwz     r9,0(r29)                              
    esc = RTEMS_NOT_IMPLEMENTED;                                      
ffc051e8:	3b e0 00 18 	li      r31,24                                 
      goto cleanup;                                                   
    }                                                                 
  }                                                                   
                                                                      
  /* Check format */                                                  
  if (format->type != RTEMS_BDPART_FORMAT_MBR) {                      
ffc051ec:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc051f0:	40 be ff 98 	bne-    cr7,ffc05188 <rtems_bdpart_write+0x1bc><== 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;                                       
ffc051f4:	2b 9e 00 04 	cmplwi  cr7,r30,4                              
ffc051f8:	7f d8 f3 78 	mr      r24,r30                                
ffc051fc:	40 9d 00 08 	ble-    cr7,ffc05204 <rtems_bdpart_write+0x238><== NEVER TAKEN
ffc05200:	3b 00 00 03 	li      r24,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) {
ffc05204:	41 86 00 10 	beq-    cr1,ffc05214 <rtems_bdpart_write+0x248><== NEVER TAKEN
ffc05208:	2f 86 00 3f 	cmpwi   cr7,r6,63                              
    esc = RTEMS_INVALID_NUMBER;                                       
ffc0520c:	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) {
ffc05210:	40 9e ff 78 	bne+    cr7,ffc05188 <rtems_bdpart_write+0x1bc><== 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) {                                     
ffc05214:	7f 98 f0 40 	cmplw   cr7,r24,r30                            
ffc05218:	40 9c 00 64 	bge-    cr7,ffc0527c <rtems_bdpart_write+0x2b0><== NEVER TAKEN
    if ((pt [i].begin - pt [i - 1].end) < record_space) {             
ffc0521c:	39 38 ff ff 	addi    r9,r24,-1                              
ffc05220:	1d 29 00 30 	mulli   r9,r9,48                               
ffc05224:	1c d8 00 30 	mulli   r6,r24,48                              
ffc05228:	7d 3c 4a 14 	add     r9,r28,r9                              
ffc0522c:	7d 1c 30 2e 	lwzx    r8,r28,r6                              
ffc05230:	81 49 00 04 	lwz     r10,4(r9)                              
ffc05234:	7d 3c 32 14 	add     r9,r28,r6                              
ffc05238:	7d 4a 40 50 	subf    r10,r10,r8                             
ffc0523c:	7f 9b 50 40 	cmplw   cr7,r27,r10                            
ffc05240:	41 bd ff 44 	bgt-    cr7,ffc05184 <rtems_bdpart_write+0x1b8><== NEVER TAKEN
ffc05244:	39 58 00 01 	addi    r10,r24,1                              
ffc05248:	7f 8a f0 40 	cmplw   cr7,r10,r30                            
ffc0524c:	7c 98 f0 50 	subf    r4,r24,r30                             
ffc05250:	7c 89 03 a6 	mtctr   r4                                     
ffc05254:	40 bd 00 20 	ble+    cr7,ffc05274 <rtems_bdpart_write+0x2a8><== ALWAYS TAKEN
ffc05258:	48 00 02 d0 	b       ffc05528 <rtems_bdpart_write+0x55c>    <== NOT EXECUTED
ffc0525c:	81 0a 00 30 	lwz     r8,48(r10)                             
ffc05260:	39 29 00 30 	addi    r9,r9,48                               
ffc05264:	81 4a 00 04 	lwz     r10,4(r10)                             
ffc05268:	7d 4a 40 50 	subf    r10,r10,r8                             
ffc0526c:	7f 8a d8 40 	cmplw   cr7,r10,r27                            
ffc05270:	41 bc ff 14 	blt-    cr7,ffc05184 <rtems_bdpart_write+0x1b8><== NEVER TAKEN
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
ffc05274:	7d 2a 4b 78 	mr      r10,r9                                 
   * 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) {                                     
ffc05278:	42 00 ff e4 	bdnz+   ffc0525c <rtems_bdpart_write+0x290>    
ffc0527c:	7f 99 e3 78 	mr      r25,r28                                
ffc05280:	3b e0 00 00 	li      r31,0                                  
ffc05284:	3a e1 00 18 	addi    r23,r1,24                              
    }                                                                 
  }                                                                   
                                                                      
  /* Check that we can convert the parition descriptions to the MBR format */
  for (i = 0; i < count; ++i) {                                       
    uint8_t type = 0;                                                 
ffc05288:	3a c0 00 00 	li      r22,0                                  
ffc0528c:	48 00 00 24 	b       ffc052b0 <rtems_bdpart_write+0x2e4>    
      esc =  RTEMS_INVALID_ID;                                        
      goto cleanup;                                                   
    }                                                                 
                                                                      
    /* Check flags */                                                 
    if (p->flags > 0xffU) {                                           
ffc05290:	81 39 00 28 	lwz     r9,40(r25)                             
ffc05294:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc05298:	40 9e 00 38 	bne-    cr7,ffc052d0 <rtems_bdpart_write+0x304><== NEVER TAKEN
ffc0529c:	81 39 00 2c 	lwz     r9,44(r25)                             
ffc052a0:	3b 39 00 30 	addi    r25,r25,48                             
ffc052a4:	2b 89 00 ff 	cmplwi  cr7,r9,255                             
ffc052a8:	41 9d 00 28 	bgt-    cr7,ffc052d0 <rtems_bdpart_write+0x304><== NEVER TAKEN
      goto cleanup;                                                   
    }                                                                 
  }                                                                   
                                                                      
  /* Check that we can convert the parition descriptions to the MBR format */
  for (i = 0; i < count; ++i) {                                       
ffc052ac:	40 99 00 2c 	ble-    cr6,ffc052d8 <rtems_bdpart_write+0x30c>
    uint8_t type = 0;                                                 
                                                                      
    const rtems_bdpart_partition *p = pt + i;                         
                                                                      
    /* Check type */                                                  
    if (!rtems_bdpart_to_mbr_partition_type( p->type, &type)) {       
ffc052b0:	38 79 00 08 	addi    r3,r25,8                               
    }                                                                 
  }                                                                   
                                                                      
  /* Check that we can convert the parition descriptions to the MBR format */
  for (i = 0; i < count; ++i) {                                       
    uint8_t type = 0;                                                 
ffc052b4:	9a c1 00 18 	stb     r22,24(r1)                             
                                                                      
    const rtems_bdpart_partition *p = pt + i;                         
                                                                      
    /* Check type */                                                  
    if (!rtems_bdpart_to_mbr_partition_type( p->type, &type)) {       
ffc052b8:	7e e4 bb 78 	mr      r4,r23                                 
ffc052bc:	4b ff f5 3d 	bl      ffc047f8 <rtems_bdpart_to_mbr_partition_type>
      goto cleanup;                                                   
    }                                                                 
  }                                                                   
                                                                      
  /* Check that we can convert the parition descriptions to the MBR format */
  for (i = 0; i < count; ++i) {                                       
ffc052c0:	3b ff 00 01 	addi    r31,r31,1                              
    uint8_t type = 0;                                                 
                                                                      
    const rtems_bdpart_partition *p = pt + i;                         
                                                                      
    /* Check type */                                                  
    if (!rtems_bdpart_to_mbr_partition_type( p->type, &type)) {       
ffc052c4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
      goto cleanup;                                                   
    }                                                                 
  }                                                                   
                                                                      
  /* Check that we can convert the parition descriptions to the MBR format */
  for (i = 0; i < count; ++i) {                                       
ffc052c8:	7f 1e f8 40 	cmplw   cr6,r30,r31                            
    uint8_t type = 0;                                                 
                                                                      
    const rtems_bdpart_partition *p = pt + i;                         
                                                                      
    /* Check type */                                                  
    if (!rtems_bdpart_to_mbr_partition_type( p->type, &type)) {       
ffc052cc:	40 9e ff c4 	bne+    cr7,ffc05290 <rtems_bdpart_write+0x2c4><== ALWAYS TAKEN
ffc052d0:	3b e0 00 04 	li      r31,4                                  <== NOT EXECUTED
ffc052d4:	4b ff fe b4 	b       ffc05188 <rtems_bdpart_write+0x1bc>    <== NOT EXECUTED
    /* Check ID */                                                    
    /* TODO */                                                        
  }                                                                   
                                                                      
  /* New MBR */                                                       
  sc = rtems_bdpart_new_record( dd, 0, &block);                       
ffc052d8:	80 61 00 08 	lwz     r3,8(r1)                               
ffc052dc:	38 80 00 00 	li      r4,0                                   
ffc052e0:	38 a1 00 14 	addi    r5,r1,20                               
ffc052e4:	4b ff fc 05 	bl      ffc04ee8 <rtems_bdpart_new_record>     
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc052e8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc052ec:	7c 7f 1b 78 	mr      r31,r3                                 
ffc052f0:	40 be fe 98 	bne-    cr7,ffc05188 <rtems_bdpart_write+0x1bc><== NEVER TAKEN
  }                                                                   
                                                                      
  /* Write disk ID */                                                 
  rtems_uint32_to_little_endian(                                      
    format->mbr.disk_id,                                              
    block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID                   
ffc052f4:	81 41 00 14 	lwz     r10,20(r1)                             
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
ffc052f8:	38 c0 00 04 	li      r6,4                                   
ffc052fc:	7c c9 03 a6 	mtctr   r6                                     
    esc = sc;                                                         
    goto cleanup;                                                     
  }                                                                   
                                                                      
  /* Write disk ID */                                                 
  rtems_uint32_to_little_endian(                                      
ffc05300:	81 3d 00 04 	lwz     r9,4(r29)                              
    format->mbr.disk_id,                                              
    block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID                   
ffc05304:	81 4a 00 1c 	lwz     r10,28(r10)                            
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
ffc05308:	39 4a 01 b7 	addi    r10,r10,439                            
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{                                                                     
  size_t i = 0;                                                       
                                                                      
  for (i = 0; i < 4; ++i) {                                           
    data [i] = (uint8_t) value;                                       
ffc0530c:	9d 2a 00 01 	stbu    r9,1(r10)                              
    value >>= 8;                                                      
ffc05310:	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) {                                           
ffc05314:	42 00 ff f8 	bdnz+   ffc0530c <rtems_bdpart_write+0x340>    
    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) {                                         
ffc05318:	2f 98 00 00 	cmpwi   cr7,r24,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;             
ffc0531c:	81 21 00 14 	lwz     r9,20(r1)                              
ffc05320:	38 c0 00 00 	li      r6,0                                   
ffc05324:	80 e9 00 1c 	lwz     r7,28(r9)                              
ffc05328:	38 67 01 be 	addi    r3,r7,446                              
  for (i = 0; i < ppc; ++i) {                                         
ffc0532c:	41 9e 00 80 	beq-    cr7,ffc053ac <rtems_bdpart_write+0x3e0><== NEVER TAKEN
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
ffc05330:	1c d8 00 30 	mulli   r6,r24,48                              
ffc05334:	38 e7 01 c9 	addi    r7,r7,457                              
ffc05338:	7d 7c 32 14 	add     r11,r28,r6                             
ffc0533c:	38 00 00 04 	li      r0,4                                   
                                                                      
    /* Write partition entry */                                       
    rtems_bdpart_write_mbr_partition(                                 
      data,                                                           
      p->begin,                                                       
      p->end - p->begin,                                              
ffc05340:	81 3a 00 00 	lwz     r9,0(r26)                              
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
ffc05344:	7c 09 03 a6 	mtctr   r0                                     
  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(                                 
ffc05348:	81 5a 00 04 	lwz     r10,4(r26)                             
  if (block != NULL) {                                                
    rtems_bdbuf_sync( block);                                         
  }                                                                   
                                                                      
  return esc;                                                         
}                                                                     
ffc0534c:	88 9a 00 08 	lbz     r4,8(r26)                              
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
ffc05350:	39 07 ff fc 	addi    r8,r7,-4                               
  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(                                 
ffc05354:	88 ba 00 2f 	lbz     r5,47(r26)                             
ffc05358:	7d 49 50 50 	subf    r10,r9,r10                             
    data [i] = (uint8_t) value;                                       
ffc0535c:	9d 28 00 01 	stbu    r9,1(r8)                               
    value >>= 8;                                                      
ffc05360:	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) {                                           
ffc05364:	42 00 ff f8 	bdnz+   ffc0535c <rtems_bdpart_write+0x390>    
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
ffc05368:	39 00 00 04 	li      r8,4                                   
ffc0536c:	7d 09 03 a6 	mtctr   r8                                     
ffc05370:	7c e9 3b 78 	mr      r9,r7                                  
    data [i] = (uint8_t) value;                                       
ffc05374:	9d 49 00 01 	stbu    r10,1(r9)                              
    value >>= 8;                                                      
ffc05378:	55 4a c2 3e 	rlwinm  r10,r10,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) {                                           
ffc0537c:	42 00 ff f8 	bdnz+   ffc05374 <rtems_bdpart_write+0x3a8>    
ffc05380:	3b 5a 00 30 	addi    r26,r26,48                             
  uint8_t flags                                                       
)                                                                     
{                                                                     
  rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
  rtems_uint32_to_little_endian( size, data + RTEMS_BDPART_MBR_OFFSET_SIZE);
  data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;                         
ffc05384:	98 87 ff f9 	stb     r4,-7(r7)                              
    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) {                                         
ffc05388:	7f 9a 58 00 	cmpw    cr7,r26,r11                            
)                                                                     
{                                                                     
  rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
  rtems_uint32_to_little_endian( size, data + RTEMS_BDPART_MBR_OFFSET_SIZE);
  data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;                         
  data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;                       
ffc0538c:	98 a7 ff f5 	stb     r5,-11(r7)                             
ffc05390:	38 e7 00 10 	addi    r7,r7,16                               
    block->buffer + RTEMS_BDPART_MBR_OFFSET_DISK_ID                   
  );                                                                  
                                                                      
  /* Write primary partition table */                                 
  data = block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0;             
  for (i = 0; i < ppc; ++i) {                                         
ffc05394:	40 9e ff a8 	bne+    cr7,ffc0533c <rtems_bdpart_write+0x370>
                                                                      
    data += RTEMS_BDPART_MBR_TABLE_ENTRY_SIZE;                        
  }                                                                   
                                                                      
  /* Write extended partition with logical partitions if necessary */ 
  if (ppc != count) {                                                 
ffc05398:	7f 98 f0 00 	cmpw    cr7,r24,r30                            
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
ffc0539c:	57 09 20 36 	rlwinm  r9,r24,4,0,27                          
ffc053a0:	7c 63 4a 14 	add     r3,r3,r9                               
  const rtems_bdpart_partition *pt,                                   
  size_t count                                                        
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
ffc053a4:	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) {                                                 
ffc053a8:	41 be fd e0 	beq-    cr7,ffc05188 <rtems_bdpart_write+0x1bc><== NEVER TAKEN
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
ffc053ac:	38 00 00 04 	li      r0,4                                   
  /* 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;       
ffc053b0:	7f 5c 30 2e 	lwzx    r26,r28,r6                             
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
ffc053b4:	7c 09 03 a6 	mtctr   r0                                     
                                                                      
    /* Begin of extended partition */                                 
    rtems_blkdev_bnum ep_begin = pt [ppc].begin - record_space;       
                                                                      
    /* Write extended partition */                                    
    rtems_bdpart_write_mbr_partition(                                 
ffc053b8:	81 21 00 10 	lwz     r9,16(r1)                              
  /* 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;       
ffc053bc:	7f 5b d0 50 	subf    r26,r27,r26                            
ffc053c0:	7f bc 32 14 	add     r29,r28,r6                             
                                                                      
    /* Write extended partition */                                    
    rtems_bdpart_write_mbr_partition(                                 
ffc053c4:	7d 3a 48 50 	subf    r9,r26,r9                              
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
ffc053c8:	39 03 00 07 	addi    r8,r3,7                                
ffc053cc:	38 e3 00 0b 	addi    r7,r3,11                               
ffc053d0:	7f 4a d3 78 	mr      r10,r26                                
    data [i] = (uint8_t) value;                                       
ffc053d4:	9d 48 00 01 	stbu    r10,1(r8)                              
    value >>= 8;                                                      
ffc053d8:	55 4a c2 3e 	rlwinm  r10,r10,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) {                                           
ffc053dc:	42 00 ff f8 	bdnz+   ffc053d4 <rtems_bdpart_write+0x408>    
ffc053e0:	38 80 00 04 	li      r4,4                                   
ffc053e4:	7c 89 03 a6 	mtctr   r4                                     
ffc053e8:	7c ea 3b 78 	mr      r10,r7                                 
    data [i] = (uint8_t) value;                                       
ffc053ec:	9d 2a 00 01 	stbu    r9,1(r10)                              
    value >>= 8;                                                      
ffc053f0:	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) {                                           
ffc053f4:	42 00 ff f8 	bdnz+   ffc053ec <rtems_bdpart_write+0x420>    
      RTEMS_BDPART_MBR_EXTENDED,                                      
      0                                                               
    );                                                                
                                                                      
    /* Write logical partitions */                                    
    for (i = ppc; i < count; ++i) {                                   
ffc053f8:	7f 98 f0 40 	cmplw   cr7,r24,r30                            
  uint8_t flags                                                       
)                                                                     
{                                                                     
  rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
  rtems_uint32_to_little_endian( size, data + RTEMS_BDPART_MBR_OFFSET_SIZE);
  data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;                         
ffc053fc:	39 20 00 05 	li      r9,5                                   
ffc05400:	99 23 00 04 	stb     r9,4(r3)                               
  data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;                       
ffc05404:	39 20 00 00 	li      r9,0                                   
ffc05408:	99 23 00 00 	stb     r9,0(r3)                               
      RTEMS_BDPART_MBR_EXTENDED,                                      
      0                                                               
    );                                                                
                                                                      
    /* Write logical partitions */                                    
    for (i = ppc; i < count; ++i) {                                   
ffc0540c:	40 9c 01 14 	bge-    cr7,ffc05520 <rtems_bdpart_write+0x554><== NEVER TAKEN
ffc05410:	3b 38 00 01 	addi    r25,r24,1                              
    RTEMS_BDPART_MBR_SIGNATURE_1;                                     
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code rtems_bdpart_write(                                 
ffc05414:	1d 39 00 30 	mulli   r9,r25,48                              
    data [i] = (uint8_t) value;                                       
ffc05418:	3a c0 00 00 	li      r22,0                                  
ffc0541c:	7f 9c 4a 14 	add     r28,r28,r9                             
  uint8_t flags                                                       
)                                                                     
{                                                                     
  rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
  rtems_uint32_to_little_endian( size, data + RTEMS_BDPART_MBR_OFFSET_SIZE);
  data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;                         
ffc05420:	3a e0 00 05 	li      r23,5                                  
          0                                                           
        );                                                            
      }                                                               
                                                                      
      /* New EBR */                                                   
      ebr = p->begin - record_space;                                  
ffc05424:	80 9d 00 00 	lwz     r4,0(r29)                              
      sc = rtems_bdpart_new_record( dd, ebr, &block);                 
ffc05428:	38 a1 00 14 	addi    r5,r1,20                               
ffc0542c:	80 61 00 08 	lwz     r3,8(r1)                               
ffc05430:	7c 9b 20 50 	subf    r4,r27,r4                              
ffc05434:	4b ff fa b5 	bl      ffc04ee8 <rtems_bdpart_new_record>     
      if (sc != RTEMS_SUCCESSFUL) {                                   
ffc05438:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0543c:	40 82 00 dc 	bne-    ffc05518 <rtems_bdpart_write+0x54c>    <== NEVER TAKEN
        goto cleanup;                                                 
      }                                                               
                                                                      
      /* Write first partition entry */                               
      rtems_bdpart_write_mbr_partition(                               
        block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0,              
ffc05440:	81 21 00 14 	lwz     r9,20(r1)                              
                                                                      
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{                                                                     
  size_t i = 0;                                                       
                                                                      
  for (i = 0; i < 4; ++i) {                                           
ffc05444:	38 00 00 04 	li      r0,4                                   
ffc05448:	7c 09 03 a6 	mtctr   r0                                     
        esc = sc;                                                     
        goto cleanup;                                                 
      }                                                               
                                                                      
      /* Write first partition entry */                               
      rtems_bdpart_write_mbr_partition(                               
ffc0544c:	81 5d 00 04 	lwz     r10,4(r29)                             
        block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_0,              
ffc05450:	81 09 00 1c 	lwz     r8,28(r9)                              
        esc = sc;                                                     
        goto cleanup;                                                 
      }                                                               
                                                                      
      /* Write first partition entry */                               
      rtems_bdpart_write_mbr_partition(                               
ffc05454:	81 3d 00 00 	lwz     r9,0(r29)                              
  if (block != NULL) {                                                
    rtems_bdbuf_sync( block);                                         
  }                                                                   
                                                                      
  return esc;                                                         
}                                                                     
ffc05458:	88 bd 00 08 	lbz     r5,8(r29)                              
  uint8_t type,                                                       
  uint8_t flags                                                       
)                                                                     
{                                                                     
  rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
  rtems_uint32_to_little_endian( size, data + RTEMS_BDPART_MBR_OFFSET_SIZE);
ffc0545c:	38 e8 01 ca 	addi    r7,r8,458                              
        esc = sc;                                                     
        goto cleanup;                                                 
      }                                                               
                                                                      
      /* Write first partition entry */                               
      rtems_bdpart_write_mbr_partition(                               
ffc05460:	88 dd 00 2f 	lbz     r6,47(r29)                             
ffc05464:	7d 49 50 50 	subf    r10,r9,r10                             
    data [i] = (uint8_t) value;                                       
ffc05468:	9b 68 01 c6 	stb     r27,454(r8)                            
                                                                      
static inline void rtems_uint32_to_little_endian( uint32_t value, uint8_t *data)
{                                                                     
  size_t i = 0;                                                       
                                                                      
  for (i = 0; i < 4; ++i) {                                           
ffc0546c:	39 20 00 00 	li      r9,0                                   
    data [i] = (uint8_t) value;                                       
ffc05470:	98 68 01 c7 	stb     r3,455(r8)                             
ffc05474:	9a c8 01 c8 	stb     r22,456(r8)                            
ffc05478:	9a c8 01 c9 	stb     r22,457(r8)                            
ffc0547c:	7d 47 49 ae 	stbx    r10,r7,r9                              
    value >>= 8;                                                      
ffc05480:	55 4a c2 3e 	rlwinm  r10,r10,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) {                                           
ffc05484:	39 29 00 01 	addi    r9,r9,1                                
ffc05488:	42 00 ff f4 	bdnz+   ffc0547c <rtems_bdpart_write+0x4b0>    
      RTEMS_BDPART_MBR_EXTENDED,                                      
      0                                                               
    );                                                                
                                                                      
    /* Write logical partitions */                                    
    for (i = ppc; i < count; ++i) {                                   
ffc0548c:	7f 99 f0 00 	cmpw    cr7,r25,r30                            
  uint8_t flags                                                       
)                                                                     
{                                                                     
  rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
  rtems_uint32_to_little_endian( size, data + RTEMS_BDPART_MBR_OFFSET_SIZE);
  data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;                         
ffc05490:	98 a8 01 c2 	stb     r5,450(r8)                             
  data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;                       
ffc05494:	98 c8 01 be 	stb     r6,446(r8)                             
      RTEMS_BDPART_MBR_EXTENDED,                                      
      0                                                               
    );                                                                
                                                                      
    /* Write logical partitions */                                    
    for (i = ppc; i < count; ++i) {                                   
ffc05498:	41 9e 00 88 	beq-    cr7,ffc05520 <rtems_bdpart_write+0x554>
      const rtems_bdpart_partition *p = pt + i;                       
                                                                      
      /* Write second partition entry */                              
      if (i > ppc) {                                                  
ffc0549c:	7f 99 c0 40 	cmplw   cr7,r25,r24                            
      0                                                               
    );                                                                
                                                                      
    /* Write logical partitions */                                    
    for (i = ppc; i < count; ++i) {                                   
      const rtems_bdpart_partition *p = pt + i;                       
ffc054a0:	7f 9d e3 78 	mr      r29,r28                                
                                                                      
      /* Write second partition entry */                              
      if (i > ppc) {                                                  
ffc054a4:	40 9d 00 68 	ble-    cr7,ffc0550c <rtems_bdpart_write+0x540><== NEVER TAKEN
        rtems_blkdev_bnum begin = p->begin - record_space;            
                                                                      
        rtems_bdpart_write_mbr_partition(                             
          block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_1,            
ffc054a8:	81 41 00 14 	lwz     r10,20(r1)                             
ffc054ac:	38 a0 00 04 	li      r5,4                                   
    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;            
ffc054b0:	81 3c 00 00 	lwz     r9,0(r28)                              
ffc054b4:	7c a9 03 a6 	mtctr   r5                                     
                                                                      
        rtems_bdpart_write_mbr_partition(                             
          block->buffer + RTEMS_BDPART_MBR_OFFSET_TABLE_1,            
ffc054b8:	80 ea 00 1c 	lwz     r7,28(r10)                             
                                                                      
      /* Write second partition entry */                              
      if (i > ppc) {                                                  
        rtems_blkdev_bnum begin = p->begin - record_space;            
                                                                      
        rtems_bdpart_write_mbr_partition(                             
ffc054bc:	81 41 00 10 	lwz     r10,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;            
ffc054c0:	7d 3b 48 50 	subf    r9,r27,r9                              
                                                                      
        rtems_bdpart_write_mbr_partition(                             
ffc054c4:	7d 1a 48 50 	subf    r8,r26,r9                              
ffc054c8:	7d 49 50 50 	subf    r10,r9,r10                             
  uint32_t size,                                                      
  uint8_t type,                                                       
  uint8_t flags                                                       
)                                                                     
{                                                                     
  rtems_uint32_to_little_endian( begin, data + RTEMS_BDPART_MBR_OFFSET_BEGIN);
ffc054cc:	38 c7 01 d6 	addi    r6,r7,470                              
ffc054d0:	39 20 00 00 	li      r9,0                                   
    data [i] = (uint8_t) value;                                       
ffc054d4:	7d 06 49 ae 	stbx    r8,r6,r9                               
    value >>= 8;                                                      
ffc054d8:	55 08 c2 3e 	rlwinm  r8,r8,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) {                                           
ffc054dc:	39 29 00 01 	addi    r9,r9,1                                
ffc054e0:	42 00 ff f4 	bdnz+   ffc054d4 <rtems_bdpart_write+0x508>    
ffc054e4:	38 c0 00 04 	li      r6,4                                   
ffc054e8:	7c c9 03 a6 	mtctr   r6                                     
  rtems_uint32_to_little_endian( size, data + RTEMS_BDPART_MBR_OFFSET_SIZE);
ffc054ec:	39 07 01 da 	addi    r8,r7,474                              
ffc054f0:	39 20 00 00 	li      r9,0                                   
    data [i] = (uint8_t) value;                                       
ffc054f4:	7d 48 49 ae 	stbx    r10,r8,r9                              
    value >>= 8;                                                      
ffc054f8:	55 4a c2 3e 	rlwinm  r10,r10,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) {                                           
ffc054fc:	39 29 00 01 	addi    r9,r9,1                                
ffc05500:	42 00 ff f4 	bdnz+   ffc054f4 <rtems_bdpart_write+0x528>    
  data [RTEMS_BDPART_MBR_OFFSET_TYPE] = type;                         
ffc05504:	9a e7 01 d2 	stb     r23,466(r7)                            
  data [RTEMS_BDPART_MBR_OFFSET_FLAGS] = flags;                       
ffc05508:	9a c7 01 ce 	stb     r22,462(r7)                            
ffc0550c:	3b 39 00 01 	addi    r25,r25,1                              
ffc05510:	3b 9c 00 30 	addi    r28,r28,48                             
ffc05514:	4b ff ff 10 	b       ffc05424 <rtems_bdpart_write+0x458>    
      }                                                               
                                                                      
      /* New EBR */                                                   
      ebr = p->begin - record_space;                                  
      sc = rtems_bdpart_new_record( dd, ebr, &block);                 
      if (sc != RTEMS_SUCCESSFUL) {                                   
ffc05518:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
ffc0551c:	4b ff fc 6c 	b       ffc05188 <rtems_bdpart_write+0x1bc>    <== NOT EXECUTED
  const rtems_bdpart_partition *pt,                                   
  size_t count                                                        
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_status_code esc = RTEMS_SUCCESSFUL;                           
ffc05520:	3b e0 00 00 	li      r31,0                                  
ffc05524:	4b ff fc 64 	b       ffc05188 <rtems_bdpart_write+0x1bc>    
ffc05528:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc0552c:	7c a9 03 a6 	mtctr   r5                                     <== NOT EXECUTED
ffc05530:	4b ff fd 44 	b       ffc05274 <rtems_bdpart_write+0x2a8>    <== NOT EXECUTED
ffc05534:	38 00 00 01 	li      r0,1                                   <== NOT EXECUTED
ffc05538:	7c 09 03 a6 	mtctr   r0                                     <== NOT EXECUTED
ffc0553c:	4b ff fc 04 	b       ffc05140 <rtems_bdpart_write+0x174>    <== NOT EXECUTED
                                                                      

ffc04cac <rtems_blkdev_create_partition>: const char *partition, const char *parent_block_device, rtems_blkdev_bnum media_block_begin, rtems_blkdev_bnum media_block_count ) {
ffc04cac:	94 21 ff 90 	stwu    r1,-112(r1)                            
ffc04cb0:	7c 08 02 a6 	mflr    r0                                     
ffc04cb4:	93 61 00 5c 	stw     r27,92(r1)                             
ffc04cb8:	7c 7b 1b 78 	mr      r27,r3                                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  int fd = open(parent_block_device, O_RDWR);                         
ffc04cbc:	7c 83 23 78 	mr      r3,r4                                  
ffc04cc0:	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                                 
)                                                                     
{                                                                     
ffc04cc4:	93 81 00 60 	stw     r28,96(r1)                             
ffc04cc8:	7c bc 2b 78 	mr      r28,r5                                 
ffc04ccc:	93 a1 00 64 	stw     r29,100(r1)                            
ffc04cd0:	7c dd 33 78 	mr      r29,r6                                 
ffc04cd4:	93 c1 00 68 	stw     r30,104(r1)                            
ffc04cd8:	93 e1 00 6c 	stw     r31,108(r1)                            
                                                                      
    if (sc != RTEMS_SUCCESSFUL) {                                     
      close(fd);                                                      
    }                                                                 
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
ffc04cdc:	3b e0 00 04 	li      r31,4                                  
  const char *partition,                                              
  const char *parent_block_device,                                    
  rtems_blkdev_bnum media_block_begin,                                
  rtems_blkdev_bnum media_block_count                                 
)                                                                     
{                                                                     
ffc04ce0:	90 01 00 74 	stw     r0,116(r1)                             
ffc04ce4:	93 41 00 58 	stw     r26,88(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  int fd = open(parent_block_device, O_RDWR);                         
ffc04ce8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04cec:	48 00 2f dd 	bl      ffc07cc8 <open>                        
                                                                      
  if (fd >= 0) {                                                      
ffc04cf0:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc04cf4:	40 80 00 30 	bge-    ffc04d24 <rtems_blkdev_create_partition+0x78>
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc04cf8:	80 01 00 74 	lwz     r0,116(r1)                             
ffc04cfc:	7f e3 fb 78 	mr      r3,r31                                 
ffc04d00:	83 41 00 58 	lwz     r26,88(r1)                             
ffc04d04:	7c 08 03 a6 	mtlr    r0                                     
ffc04d08:	83 61 00 5c 	lwz     r27,92(r1)                             
ffc04d0c:	83 81 00 60 	lwz     r28,96(r1)                             
ffc04d10:	83 a1 00 64 	lwz     r29,100(r1)                            
ffc04d14:	83 c1 00 68 	lwz     r30,104(r1)                            
ffc04d18:	83 e1 00 6c 	lwz     r31,108(r1)                            
ffc04d1c:	38 21 00 70 	addi    r1,r1,112                              
ffc04d20:	4e 80 00 20 	blr                                            
                                                                      
  if (fd >= 0) {                                                      
    int rv;                                                           
    struct stat st;                                                   
                                                                      
    rv = fstat(fd, &st);                                              
ffc04d24:	38 81 00 08 	addi    r4,r1,8                                
ffc04d28:	48 00 1f 09 	bl      ffc06c30 <fstat>                       
    if (rv == 0 && S_ISBLK(st.st_mode)) {                             
ffc04d2c:	3b e0 00 15 	li      r31,21                                 
ffc04d30:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04d34:	40 9e 00 14 	bne-    cr7,ffc04d48 <rtems_blkdev_create_partition+0x9c><== NEVER TAKEN
ffc04d38:	81 21 00 14 	lwz     r9,20(r1)                              
ffc04d3c:	55 29 04 26 	rlwinm  r9,r9,0,16,19                          
ffc04d40:	2f 89 60 00 	cmpwi   cr7,r9,24576                           
ffc04d44:	41 9e 00 38 	beq-    cr7,ffc04d7c <rtems_blkdev_create_partition+0xd0>
    } else {                                                          
      sc = RTEMS_INVALID_NODE;                                        
    }                                                                 
                                                                      
    if (sc != RTEMS_SUCCESSFUL) {                                     
      close(fd);                                                      
ffc04d48:	7f c3 f3 78 	mr      r3,r30                                 
ffc04d4c:	48 00 1d 61 	bl      ffc06aac <close>                       
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc04d50:	80 01 00 74 	lwz     r0,116(r1)                             
ffc04d54:	7f e3 fb 78 	mr      r3,r31                                 
ffc04d58:	83 41 00 58 	lwz     r26,88(r1)                             
ffc04d5c:	7c 08 03 a6 	mtlr    r0                                     
ffc04d60:	83 61 00 5c 	lwz     r27,92(r1)                             
ffc04d64:	83 81 00 60 	lwz     r28,96(r1)                             
ffc04d68:	83 a1 00 64 	lwz     r29,100(r1)                            
ffc04d6c:	83 c1 00 68 	lwz     r30,104(r1)                            
ffc04d70:	83 e1 00 6c 	lwz     r31,108(r1)                            
ffc04d74:	38 21 00 70 	addi    r1,r1,112                              
ffc04d78:	4e 80 00 20 	blr                                            
static inline int rtems_disk_fd_get_disk_device(                      
  int fd,                                                             
  rtems_disk_device **dd_ptr                                          
)                                                                     
{                                                                     
  return ioctl(fd, RTEMS_BLKIO_GETDISKDEV, dd_ptr);                   
ffc04d7c:	3c 80 40 04 	lis     r4,16388                               
ffc04d80:	7f c3 f3 78 	mr      r3,r30                                 
ffc04d84:	60 84 42 09 	ori     r4,r4,16905                            
ffc04d88:	38 a1 00 50 	addi    r5,r1,80                               
ffc04d8c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04d90:	48 00 20 29 	bl      ffc06db8 <ioctl>                       
          }                                                           
        } else {                                                      
          sc = RTEMS_NO_MEMORY;                                       
        }                                                             
      } else {                                                        
        sc = RTEMS_NOT_IMPLEMENTED;                                   
ffc04d94:	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) {                                                  
ffc04d98:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04d9c:	40 9e ff ac 	bne+    cr7,ffc04d48 <rtems_blkdev_create_partition+0x9c>
        rtems_blkdev_imfs_context *ctx = malloc(sizeof(*ctx));        
ffc04da0:	38 60 00 80 	li      r3,128                                 
ffc04da4:	48 00 25 39 	bl      ffc072dc <malloc>                      
                                                                      
        if (ctx != NULL) {                                            
ffc04da8:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc04dac:	41 82 00 5c 	beq-    ffc04e08 <rtems_blkdev_create_partition+0x15c>
          sc = rtems_disk_init_log(                                   
ffc04db0:	80 81 00 50 	lwz     r4,80(r1)                              
ffc04db4:	7f 85 e3 78 	mr      r5,r28                                 
ffc04db8:	7f a6 eb 78 	mr      r6,r29                                 
ffc04dbc:	48 00 02 dd 	bl      ffc05098 <rtems_disk_init_log>         
            phys_dd,                                                  
            media_block_begin,                                        
            media_block_count                                         
          );                                                          
                                                                      
          if (sc == RTEMS_SUCCESSFUL) {                               
ffc04dc0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc04dc4:	40 82 00 38 	bne-    ffc04dfc <rtems_blkdev_create_partition+0x150>
            ctx->fd = fd;                                             
ffc04dc8:	93 da 00 78 	stw     r30,120(r26)                           
                                                                      
            rv = IMFS_make_generic_node(                              
ffc04dcc:	3c a0 ff c2 	lis     r5,-62                                 
ffc04dd0:	7f 63 db 78 	mr      r3,r27                                 
ffc04dd4:	38 80 61 ff 	li      r4,25087                               
ffc04dd8:	38 a5 ef 74 	addi    r5,r5,-4236                            
ffc04ddc:	7f 46 d3 78 	mr      r6,r26                                 
ffc04de0:	48 00 14 3d 	bl      ffc0621c <IMFS_make_generic_node>      
              S_IFBLK | S_IRWXU | S_IRWXG | S_IRWXO,                  
              &rtems_blkdev_imfs_control,                             
              ctx                                                     
            );                                                        
                                                                      
            if (rv != 0) {                                            
ffc04de4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04de8:	41 9e ff 10 	beq+    cr7,ffc04cf8 <rtems_blkdev_create_partition+0x4c>
              free(ctx);                                              
ffc04dec:	7f 43 d3 78 	mr      r3,r26                                 
ffc04df0:	48 00 1d 55 	bl      ffc06b44 <free>                        
              sc = RTEMS_UNSATISFIED;                                 
ffc04df4:	3b e0 00 0d 	li      r31,13                                 
ffc04df8:	4b ff ff 50 	b       ffc04d48 <rtems_blkdev_create_partition+0x9c>
            }                                                         
          } else {                                                    
            free(ctx);                                                
ffc04dfc:	7f 43 d3 78 	mr      r3,r26                                 
ffc04e00:	48 00 1d 45 	bl      ffc06b44 <free>                        
ffc04e04:	4b ff ff 44 	b       ffc04d48 <rtems_blkdev_create_partition+0x9c>
          }                                                           
        } else {                                                      
          sc = RTEMS_NO_MEMORY;                                       
ffc04e08:	3b e0 00 1a 	li      r31,26                                 
ffc04e0c:	4b ff ff 3c 	b       ffc04d48 <rtems_blkdev_create_partition+0x9c>
                                                                      

ffc12db8 <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) {
ffc12db8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc12dbc:	7c 08 02 a6 	mflr    r0                                     
    rtems_libio_ioctl_args_t *args = arg;                             
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
                                                                      
    if (args->command != RTEMS_BLKIO_REQUEST)                         
ffc12dc0:	3d 20 c0 18 	lis     r9,-16360                              
rtems_device_driver                                                   
rtems_blkdev_generic_ioctl(                                           
    rtems_device_major_number major __attribute__((unused)),          
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
ffc12dc4:	90 01 00 14 	stw     r0,20(r1)                              
    rtems_libio_ioctl_args_t *args = arg;                             
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
                                                                      
    if (args->command != RTEMS_BLKIO_REQUEST)                         
ffc12dc8:	61 29 42 01 	ori     r9,r9,16897                            
ffc12dcc:	80 85 00 04 	lwz     r4,4(r5)                               
rtems_device_driver                                                   
rtems_blkdev_generic_ioctl(                                           
    rtems_device_major_number major __attribute__((unused)),          
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
ffc12dd0:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc12dd4:	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;                               
                                                                      
    if (args->command != RTEMS_BLKIO_REQUEST)                         
ffc12dd8:	7f 84 48 00 	cmpw    cr7,r4,r9                              
    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;                               
ffc12ddc:	81 25 00 00 	lwz     r9,0(r5)                               
ffc12de0:	80 69 00 30 	lwz     r3,48(r9)                              
                                                                      
    if (args->command != RTEMS_BLKIO_REQUEST)                         
ffc12de4:	40 9e 00 24 	bne-    cr7,ffc12e08 <rtems_blkdev_generic_ioctl+0x50><== ALWAYS TAKEN
         */                                                           
        args->ioctl_return = -1;                                      
    }                                                                 
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc12de8:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
    {                                                                 
        /*                                                            
         * It is not allowed to directly access the driver circumventing the
         * cache.                                                     
         */                                                           
        args->ioctl_return = -1;                                      
ffc12dec:	39 20 ff ff 	li      r9,-1                                  <== NOT EXECUTED
    }                                                                 
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc12df0:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc12df4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc12df8:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
    {                                                                 
        /*                                                            
         * It is not allowed to directly access the driver circumventing the
         * cache.                                                     
         */                                                           
        args->ioctl_return = -1;                                      
ffc12dfc:	91 25 00 0c 	stw     r9,12(r5)                              <== NOT EXECUTED
    }                                                                 
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc12e00:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc12e04:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
                                                                      
    if (args->command != RTEMS_BLKIO_REQUEST)                         
    {                                                                 
        args->ioctl_return = dd->ioctl(dd,                            
ffc12e08:	81 23 00 38 	lwz     r9,56(r3)                              
ffc12e0c:	80 a5 00 08 	lwz     r5,8(r5)                               
ffc12e10:	7d 29 03 a6 	mtctr   r9                                     
ffc12e14:	4e 80 04 21 	bctrl                                          
         */                                                           
        args->ioctl_return = -1;                                      
    }                                                                 
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc12e18:	80 01 00 14 	lwz     r0,20(r1)                              
    rtems_libio_t *iop = args->iop;                                   
    rtems_disk_device *dd = iop->data1;                               
                                                                      
    if (args->command != RTEMS_BLKIO_REQUEST)                         
    {                                                                 
        args->ioctl_return = dd->ioctl(dd,                            
ffc12e1c:	90 7f 00 0c 	stw     r3,12(r31)                             
         */                                                           
        args->ioctl_return = -1;                                      
    }                                                                 
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc12e20:	38 60 00 00 	li      r3,0                                   
ffc12e24:	7c 08 03 a6 	mtlr    r0                                     
ffc12e28:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc12e2c:	38 21 00 10 	addi    r1,r1,16                               
ffc12e30:	4e 80 00 20 	blr                                            
                                                                      

ffc12a48 <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) {
ffc12a48:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc12a4c:	7c 08 02 a6 	mflr    r0                                     
ffc12a50:	90 01 00 3c 	stw     r0,60(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;                               
ffc12a54:	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)                                    
{                                                                     
ffc12a58:	93 01 00 18 	stw     r24,24(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;                               
ffc12a5c:	83 09 00 30 	lwz     r24,48(r9)                             
rtems_device_driver                                                   
rtems_blkdev_generic_read(                                            
    rtems_device_major_number major __attribute__((unused)),          
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
ffc12a60:	93 21 00 1c 	stw     r25,28(r1)                             
ffc12a64:	93 c1 00 30 	stw     r30,48(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;                               
    uint32_t block_size = dd->block_size;                             
ffc12a68:	83 38 00 24 	lwz     r25,36(r24)                            
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
ffc12a6c:	83 c5 00 08 	lwz     r30,8(r5)                              
rtems_device_driver                                                   
rtems_blkdev_generic_read(                                            
    rtems_device_major_number major __attribute__((unused)),          
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
ffc12a70:	93 e1 00 34 	stw     r31,52(r1)                             
    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);
ffc12a74:	7f 26 cb 78 	mr      r6,r25                                 
ffc12a78:	7f c3 f3 78 	mr      r3,r30                                 
ffc12a7c:	83 e5 00 0c 	lwz     r31,12(r5)                             
rtems_device_driver                                                   
rtems_blkdev_generic_read(                                            
    rtems_device_major_number major __attribute__((unused)),          
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
ffc12a80:	93 41 00 20 	stw     r26,32(r1)                             
ffc12a84:	7c ba 2b 78 	mr      r26,r5                                 
    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);
ffc12a88:	7f e4 fb 78 	mr      r4,r31                                 
ffc12a8c:	38 a0 00 00 	li      r5,0                                   
rtems_device_driver                                                   
rtems_blkdev_generic_read(                                            
    rtems_device_major_number major __attribute__((unused)),          
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
ffc12a90:	93 61 00 24 	stw     r27,36(r1)                             
ffc12a94:	93 81 00 28 	stw     r28,40(r1)                             
ffc12a98:	93 a1 00 2c 	stw     r29,44(r1)                             
    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);
ffc12a9c:	48 00 96 c9 	bl      ffc1c164 <__divdi3>                    
ffc12aa0:	7c 9c 23 78 	mr      r28,r4                                 
    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;                                         
    uint32_t count = args->count;                                     
ffc12aa4:	83 ba 00 14 	lwz     r29,20(r26)                            
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
ffc12aa8:	7f c3 f3 78 	mr      r3,r30                                 
ffc12aac:	7f e4 fb 78 	mr      r4,r31                                 
    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;                                         
ffc12ab0:	83 7a 00 10 	lwz     r27,16(r26)                            
    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);         
ffc12ab4:	38 a0 00 00 	li      r5,0                                   
ffc12ab8:	7f 26 cb 78 	mr      r6,r25                                 
ffc12abc:	48 00 9a cd 	bl      ffc1c588 <__moddi3>                    
                                                                      
    args->bytes_moved = 0;                                            
                                                                      
    while (count > 0)                                                 
ffc12ac0:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
    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);         
                                                                      
    args->bytes_moved = 0;                                            
ffc12ac4:	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);         
ffc12ac8:	7c 9e 23 78 	mr      r30,r4                                 
                                                                      
    args->bytes_moved = 0;                                            
ffc12acc:	91 3a 00 1c 	stw     r9,28(r26)                             
                                                                      
    while (count > 0)                                                 
ffc12ad0:	40 be 00 54 	bne+    cr7,ffc12b24 <rtems_blkdev_generic_read+0xdc><== ALWAYS TAKEN
ffc12ad4:	48 00 00 ac 	b       ffc12b80 <rtems_blkdev_generic_read+0x138><== NOT EXECUTED
        if (rc != RTEMS_SUCCESSFUL)                                   
            break;                                                    
        copy = block_size - blkofs;                                   
        if (copy > count)                                             
            copy = count;                                             
        memcpy(buf, (char *)diskbuf->buffer + blkofs, copy);          
ffc12ad8:	81 21 00 08 	lwz     r9,8(r1)                               
ffc12adc:	40 9d 00 08 	ble-    cr7,ffc12ae4 <rtems_blkdev_generic_read+0x9c><== ALWAYS TAKEN
ffc12ae0:	7f bf eb 78 	mr      r31,r29                                <== NOT EXECUTED
ffc12ae4:	80 89 00 1c 	lwz     r4,28(r9)                              
ffc12ae8:	7f e5 fb 78 	mr      r5,r31                                 
    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)                                                 
ffc12aec:	7f bf e8 50 	subf    r29,r31,r29                            
        if (rc != RTEMS_SUCCESSFUL)                                   
            break;                                                    
        copy = block_size - blkofs;                                   
        if (copy > count)                                             
            copy = count;                                             
        memcpy(buf, (char *)diskbuf->buffer + blkofs, copy);          
ffc12af0:	7c 84 f2 14 	add     r4,r4,r30                              
ffc12af4:	48 00 64 69 	bl      ffc18f5c <memcpy>                      
        rc = rtems_bdbuf_release(diskbuf);                            
ffc12af8:	80 61 00 08 	lwz     r3,8(r1)                               
        args->bytes_moved += copy;                                    
        if (rc != RTEMS_SUCCESSFUL)                                   
            break;                                                    
        count -= copy;                                                
        buf += copy;                                                  
ffc12afc:	7f 7b fa 14 	add     r27,r27,r31                            
            break;                                                    
        copy = block_size - blkofs;                                   
        if (copy > count)                                             
            copy = count;                                             
        memcpy(buf, (char *)diskbuf->buffer + blkofs, copy);          
        rc = rtems_bdbuf_release(diskbuf);                            
ffc12b00:	4b ff f5 ed 	bl      ffc120ec <rtems_bdbuf_release>         
        args->bytes_moved += copy;                                    
ffc12b04:	81 5a 00 1c 	lwz     r10,28(r26)                            
        if (rc != RTEMS_SUCCESSFUL)                                   
ffc12b08:	7c 69 1b 79 	mr.     r9,r3                                  
        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;                                    
ffc12b0c:	7f ea fa 14 	add     r31,r10,r31                            
    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)                                                 
ffc12b10:	2f 9d 00 00 	cmpwi   cr7,r29,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;                                    
ffc12b14:	93 fa 00 1c 	stw     r31,28(r26)                            
        if (rc != RTEMS_SUCCESSFUL)                                   
ffc12b18:	40 82 00 34 	bne-    ffc12b4c <rtems_blkdev_generic_read+0x104><== NEVER TAKEN
            break;                                                    
        count -= copy;                                                
        buf += copy;                                                  
        blkofs = 0;                                                   
ffc12b1c:	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)                                                 
ffc12b20:	41 9e 00 60 	beq-    cr7,ffc12b80 <rtems_blkdev_generic_read+0x138><== ALWAYS TAKEN
    {                                                                 
        rtems_bdbuf_buffer *diskbuf;                                  
        uint32_t            copy;                                     
                                                                      
        rc = rtems_bdbuf_read(dd, block, &diskbuf);                   
ffc12b24:	7f 84 e3 78 	mr      r4,r28                                 
ffc12b28:	38 a1 00 08 	addi    r5,r1,8                                
ffc12b2c:	7f 03 c3 78 	mr      r3,r24                                 
ffc12b30:	4b ff f3 7d 	bl      ffc11eac <rtems_bdbuf_read>            
        if (rc != RTEMS_SUCCESSFUL)                                   
            break;                                                    
        copy = block_size - blkofs;                                   
ffc12b34:	7f fe c8 50 	subf    r31,r30,r25                            
    {                                                                 
        rtems_bdbuf_buffer *diskbuf;                                  
        uint32_t            copy;                                     
                                                                      
        rc = rtems_bdbuf_read(dd, block, &diskbuf);                   
        if (rc != RTEMS_SUCCESSFUL)                                   
ffc12b38:	7c 69 1b 79 	mr.     r9,r3                                  
ffc12b3c:	7f 9f e8 40 	cmplw   cr7,r31,r29                            
            break;                                                    
        copy = block_size - blkofs;                                   
        if (copy > count)                                             
            copy = count;                                             
        memcpy(buf, (char *)diskbuf->buffer + blkofs, copy);          
ffc12b40:	7f 63 db 78 	mr      r3,r27                                 
        if (rc != RTEMS_SUCCESSFUL)                                   
            break;                                                    
        count -= copy;                                                
        buf += copy;                                                  
        blkofs = 0;                                                   
        block++;                                                      
ffc12b44:	3b 9c 00 01 	addi    r28,r28,1                              
    {                                                                 
        rtems_bdbuf_buffer *diskbuf;                                  
        uint32_t            copy;                                     
                                                                      
        rc = rtems_bdbuf_read(dd, block, &diskbuf);                   
        if (rc != RTEMS_SUCCESSFUL)                                   
ffc12b48:	41 82 ff 90 	beq+    ffc12ad8 <rtems_blkdev_generic_read+0x90><== ALWAYS TAKEN
        blkofs = 0;                                                   
        block++;                                                      
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc12b4c:	80 01 00 3c 	lwz     r0,60(r1)                              <== NOT EXECUTED
ffc12b50:	7d 23 4b 78 	mr      r3,r9                                  <== NOT EXECUTED
ffc12b54:	83 01 00 18 	lwz     r24,24(r1)                             <== NOT EXECUTED
ffc12b58:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc12b5c:	83 21 00 1c 	lwz     r25,28(r1)                             <== NOT EXECUTED
ffc12b60:	83 41 00 20 	lwz     r26,32(r1)                             <== NOT EXECUTED
ffc12b64:	83 61 00 24 	lwz     r27,36(r1)                             <== NOT EXECUTED
ffc12b68:	83 81 00 28 	lwz     r28,40(r1)                             <== NOT EXECUTED
ffc12b6c:	83 a1 00 2c 	lwz     r29,44(r1)                             <== NOT EXECUTED
ffc12b70:	83 c1 00 30 	lwz     r30,48(r1)                             <== NOT EXECUTED
ffc12b74:	83 e1 00 34 	lwz     r31,52(r1)                             <== NOT EXECUTED
ffc12b78:	38 21 00 38 	addi    r1,r1,56                               <== NOT EXECUTED
ffc12b7c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
ffc12b80:	80 01 00 3c 	lwz     r0,60(r1)                              
rtems_blkdev_generic_read(                                            
    rtems_device_major_number major __attribute__((unused)),          
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
    rtems_status_code rc = RTEMS_SUCCESSFUL;                          
ffc12b84:	39 20 00 00 	li      r9,0                                   
        blkofs = 0;                                                   
        block++;                                                      
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc12b88:	83 01 00 18 	lwz     r24,24(r1)                             
ffc12b8c:	7d 23 4b 78 	mr      r3,r9                                  
ffc12b90:	7c 08 03 a6 	mtlr    r0                                     
ffc12b94:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc12b98:	83 41 00 20 	lwz     r26,32(r1)                             
ffc12b9c:	83 61 00 24 	lwz     r27,36(r1)                             
ffc12ba0:	83 81 00 28 	lwz     r28,40(r1)                             
ffc12ba4:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc12ba8:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc12bac:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc12bb0:	38 21 00 38 	addi    r1,r1,56                               
ffc12bb4:	4e 80 00 20 	blr                                            
                                                                      

ffc12bb8 <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) {
ffc12bb8:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc12bbc:	7c 08 02 a6 	mflr    r0                                     
ffc12bc0:	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;                               
ffc12bc4:	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)                                    
{                                                                     
ffc12bc8:	92 e1 00 1c 	stw     r23,28(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;                               
ffc12bcc:	82 e9 00 30 	lwz     r23,48(r9)                             
rtems_device_driver                                                   
rtems_blkdev_generic_write(                                           
    rtems_device_major_number major __attribute__((unused)),          
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
ffc12bd0:	93 01 00 20 	stw     r24,32(r1)                             
ffc12bd4:	93 c1 00 38 	stw     r30,56(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;                               
    uint32_t block_size = dd->block_size;                             
ffc12bd8:	83 17 00 24 	lwz     r24,36(r23)                            
    char *buf = args->buffer;                                         
    uint32_t count = args->count;                                     
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
ffc12bdc:	83 c5 00 08 	lwz     r30,8(r5)                              
rtems_device_driver                                                   
rtems_blkdev_generic_write(                                           
    rtems_device_major_number major __attribute__((unused)),          
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
ffc12be0:	93 e1 00 3c 	stw     r31,60(r1)                             
    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);
ffc12be4:	7f 06 c3 78 	mr      r6,r24                                 
ffc12be8:	7f c3 f3 78 	mr      r3,r30                                 
ffc12bec:	83 e5 00 0c 	lwz     r31,12(r5)                             
rtems_device_driver                                                   
rtems_blkdev_generic_write(                                           
    rtems_device_major_number major __attribute__((unused)),          
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
ffc12bf0:	93 41 00 28 	stw     r26,40(r1)                             
ffc12bf4:	7c ba 2b 78 	mr      r26,r5                                 
    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);
ffc12bf8:	7f e4 fb 78 	mr      r4,r31                                 
ffc12bfc:	38 a0 00 00 	li      r5,0                                   
rtems_device_driver                                                   
rtems_blkdev_generic_write(                                           
    rtems_device_major_number major __attribute__((unused)),          
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
ffc12c00:	93 61 00 2c 	stw     r27,44(r1)                             
ffc12c04:	93 81 00 30 	stw     r28,48(r1)                             
ffc12c08:	93 a1 00 34 	stw     r29,52(r1)                             
ffc12c0c:	93 21 00 24 	stw     r25,36(r1)                             
    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);
ffc12c10:	48 00 95 55 	bl      ffc1c164 <__divdi3>                    
ffc12c14:	7c 9c 23 78 	mr      r28,r4                                 
    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;                                         
    uint32_t count = args->count;                                     
ffc12c18:	83 ba 00 14 	lwz     r29,20(r26)                            
    rtems_blkdev_bnum block = (rtems_blkdev_bnum) (args->offset / block_size);
    uint32_t blkofs = (uint32_t) (args->offset % block_size);         
ffc12c1c:	7f c3 f3 78 	mr      r3,r30                                 
ffc12c20:	7f e4 fb 78 	mr      r4,r31                                 
    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;                                         
ffc12c24:	83 7a 00 10 	lwz     r27,16(r26)                            
    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);         
ffc12c28:	38 a0 00 00 	li      r5,0                                   
ffc12c2c:	7f 06 c3 78 	mr      r6,r24                                 
ffc12c30:	48 00 99 59 	bl      ffc1c588 <__moddi3>                    
                                                                      
    args->bytes_moved = 0;                                            
                                                                      
    while (count > 0)                                                 
ffc12c34:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
    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);         
                                                                      
    args->bytes_moved = 0;                                            
ffc12c38:	39 20 00 00 	li      r9,0                                   
ffc12c3c:	91 3a 00 1c 	stw     r9,28(r26)                             
                                                                      
    while (count > 0)                                                 
ffc12c40:	41 9e 00 d8 	beq-    cr7,ffc12d18 <rtems_blkdev_generic_write+0x160><== NEVER TAKEN
    {                                                                 
        rtems_bdbuf_buffer *diskbuf;                                  
        uint32_t            copy;                                     
                                                                      
        if ((blkofs == 0) && (count >= block_size))                   
ffc12c44:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc12c48:	7c 9e 23 78 	mr      r30,r4                                 
ffc12c4c:	3b 21 00 08 	addi    r25,r1,8                               
ffc12c50:	41 be 00 74 	beq+    cr7,ffc12cc4 <rtems_blkdev_generic_write+0x10c><== ALWAYS TAKEN
            rc = rtems_bdbuf_get(dd, block, &diskbuf);                
        else                                                          
            rc = rtems_bdbuf_read(dd, block, &diskbuf);               
ffc12c54:	7e e3 bb 78 	mr      r3,r23                                 <== NOT EXECUTED
ffc12c58:	7f 84 e3 78 	mr      r4,r28                                 <== NOT EXECUTED
ffc12c5c:	7f 25 cb 78 	mr      r5,r25                                 <== NOT EXECUTED
ffc12c60:	4b ff f2 4d 	bl      ffc11eac <rtems_bdbuf_read>            <== NOT EXECUTED
        if (rc != RTEMS_SUCCESSFUL)                                   
ffc12c64:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc12c68:	40 9e 00 7c 	bne-    cr7,ffc12ce4 <rtems_blkdev_generic_write+0x12c><== NOT EXECUTED
            break;                                                    
                                                                      
        copy = block_size - blkofs;                                   
ffc12c6c:	7f fe c0 50 	subf    r31,r30,r24                            
ffc12c70:	7f 9f e8 40 	cmplw   cr7,r31,r29                            
ffc12c74:	40 9d 00 08 	ble-    cr7,ffc12c7c <rtems_blkdev_generic_write+0xc4><== ALWAYS TAKEN
ffc12c78:	7f bf eb 78 	mr      r31,r29                                <== NOT EXECUTED
        if (copy > count)                                             
            copy = count;                                             
        memcpy((char *)diskbuf->buffer + blkofs, buf, copy);          
ffc12c7c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc12c80:	7f 64 db 78 	mr      r4,r27                                 
ffc12c84:	7f e5 fb 78 	mr      r5,r31                                 
ffc12c88:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc12c8c:	7c 63 f2 14 	add     r3,r3,r30                              
ffc12c90:	48 00 62 cd 	bl      ffc18f5c <memcpy>                      
        args->bytes_moved += copy;                                    
ffc12c94:	81 3a 00 1c 	lwz     r9,28(r26)                             
                                                                      
        rc = rtems_bdbuf_release_modified(diskbuf);                   
ffc12c98:	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;                                    
ffc12c9c:	7d 29 fa 14 	add     r9,r9,r31                              
ffc12ca0:	91 3a 00 1c 	stw     r9,28(r26)                             
                                                                      
        rc = rtems_bdbuf_release_modified(diskbuf);                   
ffc12ca4:	4b ff f5 35 	bl      ffc121d8 <rtems_bdbuf_release_modified>
        if (rc != RTEMS_SUCCESSFUL)                                   
ffc12ca8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc12cac:	40 82 00 38 	bne-    ffc12ce4 <rtems_blkdev_generic_write+0x12c><== NEVER TAKEN
    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)                                                 
ffc12cb0:	7f bf e8 51 	subf.   r29,r31,r29                            
        rc = rtems_bdbuf_release_modified(diskbuf);                   
        if (rc != RTEMS_SUCCESSFUL)                                   
            break;                                                    
                                                                      
        count -= copy;                                                
        buf += copy;                                                  
ffc12cb4:	7f 7b fa 14 	add     r27,r27,r31                            
        blkofs = 0;                                                   
        block++;                                                      
ffc12cb8:	3b 9c 00 01 	addi    r28,r28,1                              
        if (rc != RTEMS_SUCCESSFUL)                                   
            break;                                                    
                                                                      
        count -= copy;                                                
        buf += copy;                                                  
        blkofs = 0;                                                   
ffc12cbc:	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)                                                 
ffc12cc0:	41 82 00 58 	beq-    ffc12d18 <rtems_blkdev_generic_write+0x160><== ALWAYS TAKEN
    {                                                                 
        rtems_bdbuf_buffer *diskbuf;                                  
        uint32_t            copy;                                     
                                                                      
        if ((blkofs == 0) && (count >= block_size))                   
ffc12cc4:	7f 98 e8 40 	cmplw   cr7,r24,r29                            
ffc12cc8:	41 9d ff 8c 	bgt+    cr7,ffc12c54 <rtems_blkdev_generic_write+0x9c><== NEVER TAKEN
            rc = rtems_bdbuf_get(dd, block, &diskbuf);                
ffc12ccc:	7e e3 bb 78 	mr      r3,r23                                 
ffc12cd0:	7f 84 e3 78 	mr      r4,r28                                 
ffc12cd4:	7f 25 cb 78 	mr      r5,r25                                 
ffc12cd8:	4b ff f0 69 	bl      ffc11d40 <rtems_bdbuf_get>             
        else                                                          
            rc = rtems_bdbuf_read(dd, block, &diskbuf);               
        if (rc != RTEMS_SUCCESSFUL)                                   
ffc12cdc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc12ce0:	41 9e ff 8c 	beq+    cr7,ffc12c6c <rtems_blkdev_generic_write+0xb4><== ALWAYS TAKEN
        blkofs = 0;                                                   
        block++;                                                      
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc12ce4:	80 01 00 44 	lwz     r0,68(r1)                              <== NOT EXECUTED
ffc12ce8:	82 e1 00 1c 	lwz     r23,28(r1)                             <== NOT EXECUTED
ffc12cec:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc12cf0:	83 01 00 20 	lwz     r24,32(r1)                             <== NOT EXECUTED
ffc12cf4:	83 21 00 24 	lwz     r25,36(r1)                             <== NOT EXECUTED
ffc12cf8:	83 41 00 28 	lwz     r26,40(r1)                             <== NOT EXECUTED
ffc12cfc:	83 61 00 2c 	lwz     r27,44(r1)                             <== NOT EXECUTED
ffc12d00:	83 81 00 30 	lwz     r28,48(r1)                             <== NOT EXECUTED
ffc12d04:	83 a1 00 34 	lwz     r29,52(r1)                             <== NOT EXECUTED
ffc12d08:	83 c1 00 38 	lwz     r30,56(r1)                             <== NOT EXECUTED
ffc12d0c:	83 e1 00 3c 	lwz     r31,60(r1)                             <== NOT EXECUTED
ffc12d10:	38 21 00 40 	addi    r1,r1,64                               <== NOT EXECUTED
ffc12d14:	4e 80 00 20 	blr                                            <== NOT EXECUTED
ffc12d18:	80 01 00 44 	lwz     r0,68(r1)                              
rtems_blkdev_generic_write(                                           
    rtems_device_major_number major __attribute__((unused)),          
    rtems_device_minor_number minor __attribute__((unused)),          
    void                    * arg)                                    
{                                                                     
    rtems_status_code rc = RTEMS_SUCCESSFUL;                          
ffc12d1c:	38 60 00 00 	li      r3,0                                   
        blkofs = 0;                                                   
        block++;                                                      
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc12d20:	82 e1 00 1c 	lwz     r23,28(r1)                             
ffc12d24:	7c 08 03 a6 	mtlr    r0                                     
ffc12d28:	83 01 00 20 	lwz     r24,32(r1)                             
ffc12d2c:	83 21 00 24 	lwz     r25,36(r1)                             
ffc12d30:	83 41 00 28 	lwz     r26,40(r1)                             
ffc12d34:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc12d38:	83 81 00 30 	lwz     r28,48(r1)                             
ffc12d3c:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc12d40:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc12d44:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc12d48:	38 21 00 40 	addi    r1,r1,64                               
ffc12d4c:	4e 80 00 20 	blr                                            
                                                                      

ffc04af0 <rtems_blkdev_imfs_fsync_or_fdatasync>: } static int rtems_blkdev_imfs_fsync_or_fdatasync( rtems_libio_t *iop ) {
ffc04af0:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc04af4:	7c 08 02 a6 	mflr    r0                                     
ffc04af8:	90 01 00 0c 	stw     r0,12(r1)                              
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc04afc:	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);                     
ffc04b00:	80 69 00 50 	lwz     r3,80(r9)                              
ffc04b04:	48 00 e8 69 	bl      ffc1336c <rtems_bdbuf_syncdev>         
                                                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04b08:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04b0c:	40 9e 00 18 	bne-    cr7,ffc04b24 <rtems_blkdev_imfs_fsync_or_fdatasync+0x34><== NEVER TAKEN
                                                                      
static int rtems_blkdev_imfs_fsync_or_fdatasync(                      
  rtems_libio_t *iop                                                  
)                                                                     
{                                                                     
  int rv = 0;                                                         
ffc04b10:	38 60 00 00 	li      r3,0                                   
    errno = EIO;                                                      
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc04b14:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc04b18:	38 21 00 08 	addi    r1,r1,8                                
ffc04b1c:	7c 08 03 a6 	mtlr    r0                                     
ffc04b20:	4e 80 00 20 	blr                                            
  rtems_blkdev_imfs_context *ctx = IMFS_generic_get_context_by_iop(iop);
  rtems_disk_device *dd = &ctx->dd;                                   
  rtems_status_code sc = rtems_bdbuf_syncdev(dd);                     
                                                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
    errno = EIO;                                                      
ffc04b24:	48 01 40 3d 	bl      ffc18b60 <__errno>                     <== NOT EXECUTED
ffc04b28:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc04b2c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc04b30:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc04b34:	4b ff ff e0 	b       ffc04b14 <rtems_blkdev_imfs_fsync_or_fdatasync+0x24><== NOT EXECUTED
                                                                      

ffc04b38 <rtems_blkdev_imfs_ioctl>: void *buffer ) { int rv = 0; if (request != RTEMS_BLKIO_REQUEST) {
ffc04b38:	6c 89 c0 18 	xoris   r9,r4,49176                            
ffc04b3c:	2f 89 42 01 	cmpwi   cr7,r9,16897                           
ffc04b40:	41 9e 00 18 	beq-    cr7,ffc04b58 <rtems_blkdev_imfs_ioctl+0x20><== NEVER TAKEN
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc04b44:	81 23 00 1c 	lwz     r9,28(r3)                              
ffc04b48:	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);                           
ffc04b4c:	81 23 00 38 	lwz     r9,56(r3)                              
ffc04b50:	7d 29 03 a6 	mtctr   r9                                     
ffc04b54:	4e 80 04 20 	bctr                                           
static int rtems_blkdev_imfs_ioctl(                                   
  rtems_libio_t *iop,                                                 
  uint32_t request,                                                   
  void *buffer                                                        
)                                                                     
{                                                                     
ffc04b58:	94 21 ff f8 	stwu    r1,-8(r1)                              <== NOT EXECUTED
ffc04b5c:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc04b60:	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;                                                   
ffc04b64:	48 01 3f fd 	bl      ffc18b60 <__errno>                     <== NOT EXECUTED
ffc04b68:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc04b6c:	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;                                                   
ffc04b70:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc04b74:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc04b78:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc04b7c:	38 21 00 08 	addi    r1,r1,8                                <== NOT EXECUTED
ffc04b80:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc04878 <rtems_blkdev_imfs_read>: static ssize_t rtems_blkdev_imfs_read( rtems_libio_t *iop, void *buffer, size_t count ) {
ffc04878:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc0487c:	7c 08 02 a6 	mflr    r0                                     
ffc04880:	90 01 00 44 	stw     r0,68(r1)                              
ffc04884:	92 e1 00 1c 	stw     r23,28(r1)                             
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc04888:	81 23 00 1c 	lwz     r9,28(r3)                              
static ssize_t rtems_blkdev_imfs_read(                                
  rtems_libio_t *iop,                                                 
  void *buffer,                                                       
  size_t count                                                        
)                                                                     
{                                                                     
ffc0488c:	93 01 00 20 	stw     r24,32(r1)                             
ffc04890:	7c 78 1b 78 	mr      r24,r3                                 
ffc04894:	93 21 00 24 	stw     r25,36(r1)                             
ffc04898:	7c b9 2b 78 	mr      r25,r5                                 
ffc0489c:	93 61 00 2c 	stw     r27,44(r1)                             
ffc048a0:	93 81 00 30 	stw     r28,48(r1)                             
ffc048a4:	93 a1 00 34 	stw     r29,52(r1)                             
ffc048a8:	7c 9d 23 78 	mr      r29,r4                                 
ffc048ac:	93 c1 00 38 	stw     r30,56(r1)                             
ffc048b0:	93 e1 00 3c 	stw     r31,60(r1)                             
ffc048b4:	92 c1 00 18 	stw     r22,24(r1)                             
ffc048b8:	93 41 00 28 	stw     r26,40(r1)                             
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc048bc:	82 c9 00 50 	lwz     r22,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;                                         
ffc048c0:	83 e3 00 0c 	lwz     r31,12(r3)                             
  ssize_t block_size = (ssize_t) rtems_disk_get_block_size(dd);       
ffc048c4:	82 f6 00 24 	lwz     r23,36(r22)                            
{                                                                     
  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;                                         
ffc048c8:	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);
ffc048cc:	7f e4 fb 78 	mr      r4,r31                                 
ffc048d0:	7e fb fe 70 	srawi   r27,r23,31                             
ffc048d4:	7f 65 db 78 	mr      r5,r27                                 
ffc048d8:	7e e6 bb 78 	mr      r6,r23                                 
ffc048dc:	7f c3 f3 78 	mr      r3,r30                                 
ffc048e0:	48 01 81 2d 	bl      ffc1ca0c <__divdi3>                    
  ssize_t block_offset = (ssize_t) (offset % block_size);             
ffc048e4:	7f c3 f3 78 	mr      r3,r30                                 
  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);
ffc048e8:	7c 9c 23 78 	mr      r28,r4                                 
  ssize_t block_offset = (ssize_t) (offset % block_size);             
ffc048ec:	7f 65 db 78 	mr      r5,r27                                 
ffc048f0:	7f e4 fb 78 	mr      r4,r31                                 
ffc048f4:	7e e6 bb 78 	mr      r6,r23                                 
ffc048f8:	48 01 85 39 	bl      ffc1ce30 <__moddi3>                    
  char *dst = buffer;                                                 
                                                                      
  while (remaining > 0) {                                             
ffc048fc:	2c 19 00 00 	cmpwi   r25,0                                  
ffc04900:	40 81 00 b8 	ble-    ffc049b8 <rtems_blkdev_imfs_read+0x140><== NEVER TAKEN
ffc04904:	7c 9b 23 78 	mr      r27,r4                                 
ffc04908:	7f 3e cb 78 	mr      r30,r25                                
    rtems_bdbuf_buffer *bd;                                           
    rtems_status_code sc = rtems_bdbuf_read(dd, block, &bd);          
ffc0490c:	7f 84 e3 78 	mr      r4,r28                                 
ffc04910:	38 a1 00 08 	addi    r5,r1,8                                
ffc04914:	7e c3 b3 78 	mr      r3,r22                                 
ffc04918:	48 00 e5 3d 	bl      ffc12e54 <rtems_bdbuf_read>            
                                                                      
    if (sc == RTEMS_SUCCESSFUL) {                                     
      ssize_t copy = block_size - block_offset;                       
ffc0491c:	7f fb b8 50 	subf    r31,r27,r23                            
                                                                      
  while (remaining > 0) {                                             
    rtems_bdbuf_buffer *bd;                                           
    rtems_status_code sc = rtems_bdbuf_read(dd, block, &bd);          
                                                                      
    if (sc == RTEMS_SUCCESSFUL) {                                     
ffc04920:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04924:	7f 1f f0 00 	cmpw    cr6,r31,r30                            
                                                                      
      if (copy > remaining) {                                         
        copy = remaining;                                             
      }                                                               
                                                                      
      memcpy(dst, (char *) bd->buffer + block_offset, (size_t) copy); 
ffc04928:	7f a3 eb 78 	mr      r3,r29                                 
                                                                      
  while (remaining > 0) {                                             
    rtems_bdbuf_buffer *bd;                                           
    rtems_status_code sc = rtems_bdbuf_read(dd, block, &bd);          
                                                                      
    if (sc == RTEMS_SUCCESSFUL) {                                     
ffc0492c:	41 9e 00 4c 	beq-    cr7,ffc04978 <rtems_blkdev_imfs_read+0x100><== ALWAYS TAKEN
                                                                      
  if (remaining >= 0) {                                               
    iop->offset += count;                                             
    rv = (ssize_t) count;                                             
  } else {                                                            
    errno = EIO;                                                      
ffc04930:	48 01 42 31 	bl      ffc18b60 <__errno>                     <== NOT EXECUTED
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc04934:	80 01 00 44 	lwz     r0,68(r1)                              <== NOT EXECUTED
                                                                      
  if (remaining >= 0) {                                               
    iop->offset += count;                                             
    rv = (ssize_t) count;                                             
  } else {                                                            
    errno = EIO;                                                      
ffc04938:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc0493c:	82 c1 00 18 	lwz     r22,24(r1)                             <== NOT EXECUTED
ffc04940:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
                                                                      
  if (remaining >= 0) {                                               
    iop->offset += count;                                             
    rv = (ssize_t) count;                                             
  } else {                                                            
    errno = EIO;                                                      
ffc04944:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    rv = -1;                                                          
ffc04948:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc0494c:	82 e1 00 1c 	lwz     r23,28(r1)                             <== NOT EXECUTED
ffc04950:	83 01 00 20 	lwz     r24,32(r1)                             <== NOT EXECUTED
ffc04954:	83 21 00 24 	lwz     r25,36(r1)                             <== NOT EXECUTED
ffc04958:	83 41 00 28 	lwz     r26,40(r1)                             <== NOT EXECUTED
ffc0495c:	83 61 00 2c 	lwz     r27,44(r1)                             <== NOT EXECUTED
ffc04960:	83 81 00 30 	lwz     r28,48(r1)                             <== NOT EXECUTED
ffc04964:	83 a1 00 34 	lwz     r29,52(r1)                             <== NOT EXECUTED
ffc04968:	83 c1 00 38 	lwz     r30,56(r1)                             <== NOT EXECUTED
ffc0496c:	83 e1 00 3c 	lwz     r31,60(r1)                             <== NOT EXECUTED
ffc04970:	38 21 00 40 	addi    r1,r1,64                               <== NOT EXECUTED
ffc04974:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      
      if (copy > remaining) {                                         
        copy = remaining;                                             
      }                                                               
                                                                      
      memcpy(dst, (char *) bd->buffer + block_offset, (size_t) copy); 
ffc04978:	83 41 00 08 	lwz     r26,8(r1)                              
ffc0497c:	40 99 00 08 	ble-    cr6,ffc04984 <rtems_blkdev_imfs_read+0x10c>
ffc04980:	7f df f3 78 	mr      r31,r30                                
ffc04984:	80 9a 00 1c 	lwz     r4,28(r26)                             
ffc04988:	7f e5 fb 78 	mr      r5,r31                                 
                                                                      
      sc = rtems_bdbuf_release(bd);                                   
      if (sc == RTEMS_SUCCESSFUL) {                                   
        block_offset = 0;                                             
        remaining -= copy;                                            
        dst += copy;                                                  
ffc0498c:	7f bd fa 14 	add     r29,r29,r31                            
                                                                      
      if (copy > remaining) {                                         
        copy = remaining;                                             
      }                                                               
                                                                      
      memcpy(dst, (char *) bd->buffer + block_offset, (size_t) copy); 
ffc04990:	7c 84 da 14 	add     r4,r4,r27                              
ffc04994:	48 01 4d c1 	bl      ffc19754 <memcpy>                      
                                                                      
      sc = rtems_bdbuf_release(bd);                                   
ffc04998:	7f 43 d3 78 	mr      r3,r26                                 
ffc0499c:	48 00 e6 f9 	bl      ffc13094 <rtems_bdbuf_release>         
      if (sc == RTEMS_SUCCESSFUL) {                                   
        block_offset = 0;                                             
        remaining -= copy;                                            
        dst += copy;                                                  
        ++block;                                                      
ffc049a0:	3b 9c 00 01 	addi    r28,r28,1                              
      }                                                               
                                                                      
      memcpy(dst, (char *) bd->buffer + block_offset, (size_t) copy); 
                                                                      
      sc = rtems_bdbuf_release(bd);                                   
      if (sc == RTEMS_SUCCESSFUL) {                                   
ffc049a4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
  ssize_t block_size = (ssize_t) rtems_disk_get_block_size(dd);       
  rtems_blkdev_bnum block = (rtems_blkdev_bnum) (offset / block_size);
  ssize_t block_offset = (ssize_t) (offset % block_size);             
  char *dst = buffer;                                                 
                                                                      
  while (remaining > 0) {                                             
ffc049a8:	7f df f0 51 	subf.   r30,r31,r30                            
                                                                      
      memcpy(dst, (char *) bd->buffer + block_offset, (size_t) copy); 
                                                                      
      sc = rtems_bdbuf_release(bd);                                   
      if (sc == RTEMS_SUCCESSFUL) {                                   
        block_offset = 0;                                             
ffc049ac:	3b 60 00 00 	li      r27,0                                  
      }                                                               
                                                                      
      memcpy(dst, (char *) bd->buffer + block_offset, (size_t) copy); 
                                                                      
      sc = rtems_bdbuf_release(bd);                                   
      if (sc == RTEMS_SUCCESSFUL) {                                   
ffc049b0:	40 be ff 80 	bne-    cr7,ffc04930 <rtems_blkdev_imfs_read+0xb8><== NEVER TAKEN
  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) {                                             
ffc049b4:	41 81 ff 58 	bgt+    ffc0490c <rtems_blkdev_imfs_read+0x94> 
    } else {                                                          
      remaining = -1;                                                 
    }                                                                 
  }                                                                   
                                                                      
  if (remaining >= 0) {                                               
ffc049b8:	40 a2 ff 78 	bne-    ffc04930 <rtems_blkdev_imfs_read+0xb8> <== NEVER TAKEN
    errno = EIO;                                                      
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc049bc:	80 01 00 44 	lwz     r0,68(r1)                              
      remaining = -1;                                                 
    }                                                                 
  }                                                                   
                                                                      
  if (remaining >= 0) {                                               
    iop->offset += count;                                             
ffc049c0:	7f 2b cb 78 	mr      r11,r25                                
ffc049c4:	81 18 00 08 	lwz     r8,8(r24)                              
ffc049c8:	39 40 00 00 	li      r10,0                                  
    errno = EIO;                                                      
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc049cc:	7c 08 03 a6 	mtlr    r0                                     
      remaining = -1;                                                 
    }                                                                 
  }                                                                   
                                                                      
  if (remaining >= 0) {                                               
    iop->offset += count;                                             
ffc049d0:	81 38 00 0c 	lwz     r9,12(r24)                             
)                                                                     
{                                                                     
  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;                                
ffc049d4:	7f 23 cb 78 	mr      r3,r25                                 
    errno = EIO;                                                      
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc049d8:	82 c1 00 18 	lwz     r22,24(r1)                             
      remaining = -1;                                                 
    }                                                                 
  }                                                                   
                                                                      
  if (remaining >= 0) {                                               
    iop->offset += count;                                             
ffc049dc:	7d 6b 48 14 	addc    r11,r11,r9                             
ffc049e0:	7d 4a 41 14 	adde    r10,r10,r8                             
    errno = EIO;                                                      
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc049e4:	82 e1 00 1c 	lwz     r23,28(r1)                             
      remaining = -1;                                                 
    }                                                                 
  }                                                                   
                                                                      
  if (remaining >= 0) {                                               
    iop->offset += count;                                             
ffc049e8:	91 58 00 08 	stw     r10,8(r24)                             
ffc049ec:	91 78 00 0c 	stw     r11,12(r24)                            
    errno = EIO;                                                      
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc049f0:	83 21 00 24 	lwz     r25,36(r1)                             
ffc049f4:	83 01 00 20 	lwz     r24,32(r1)                             
ffc049f8:	83 41 00 28 	lwz     r26,40(r1)                             
ffc049fc:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc04a00:	83 81 00 30 	lwz     r28,48(r1)                             
ffc04a04:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc04a08:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc04a0c:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc04a10:	38 21 00 40 	addi    r1,r1,64                               
ffc04a14:	4e 80 00 20 	blr                                            
                                                                      

ffc046b0 <rtems_blkdev_imfs_write>: static ssize_t rtems_blkdev_imfs_write( rtems_libio_t *iop, const void *buffer, size_t count ) {
ffc046b0:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc046b4:	7c 08 02 a6 	mflr    r0                                     
ffc046b8:	90 01 00 44 	stw     r0,68(r1)                              
ffc046bc:	92 e1 00 1c 	stw     r23,28(r1)                             
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc046c0:	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                                                        
)                                                                     
{                                                                     
ffc046c4:	93 01 00 20 	stw     r24,32(r1)                             
ffc046c8:	7c 78 1b 78 	mr      r24,r3                                 
ffc046cc:	93 21 00 24 	stw     r25,36(r1)                             
ffc046d0:	7c b9 2b 78 	mr      r25,r5                                 
ffc046d4:	93 41 00 28 	stw     r26,40(r1)                             
ffc046d8:	93 81 00 30 	stw     r28,48(r1)                             
ffc046dc:	7c 9c 23 78 	mr      r28,r4                                 
ffc046e0:	93 a1 00 34 	stw     r29,52(r1)                             
ffc046e4:	93 c1 00 38 	stw     r30,56(r1)                             
ffc046e8:	93 e1 00 3c 	stw     r31,60(r1)                             
ffc046ec:	92 c1 00 18 	stw     r22,24(r1)                             
ffc046f0:	93 61 00 2c 	stw     r27,44(r1)                             
  } else {                                                            
    sc = RTEMS_INVALID_ID;                                            
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc046f4:	82 c9 00 50 	lwz     r22,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;                                         
ffc046f8:	83 e3 00 0c 	lwz     r31,12(r3)                             
  ssize_t block_size = (ssize_t) rtems_disk_get_block_size(dd);       
ffc046fc:	83 56 00 24 	lwz     r26,36(r22)                            
{                                                                     
  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;                                         
ffc04700:	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);
ffc04704:	7f e4 fb 78 	mr      r4,r31                                 
ffc04708:	7f 5d fe 70 	srawi   r29,r26,31                             
ffc0470c:	7f a5 eb 78 	mr      r5,r29                                 
ffc04710:	7f 46 d3 78 	mr      r6,r26                                 
ffc04714:	7f c3 f3 78 	mr      r3,r30                                 
ffc04718:	48 01 82 f5 	bl      ffc1ca0c <__divdi3>                    
  ssize_t block_offset = (ssize_t) (offset % block_size);             
ffc0471c:	7f c3 f3 78 	mr      r3,r30                                 
  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);
ffc04720:	7c 97 23 78 	mr      r23,r4                                 
  ssize_t block_offset = (ssize_t) (offset % block_size);             
ffc04724:	7f a5 eb 78 	mr      r5,r29                                 
ffc04728:	7f e4 fb 78 	mr      r4,r31                                 
ffc0472c:	7f 46 d3 78 	mr      r6,r26                                 
ffc04730:	48 01 87 01 	bl      ffc1ce30 <__moddi3>                    
  const char *src = buffer;                                           
                                                                      
  while (remaining > 0) {                                             
ffc04734:	2c 19 00 00 	cmpwi   r25,0                                  
ffc04738:	40 81 00 cc 	ble-    ffc04804 <rtems_blkdev_imfs_write+0x154><== NEVER TAKEN
    rtems_status_code sc;                                             
    rtems_bdbuf_buffer *bd;                                           
                                                                      
    if (block_offset == 0 && remaining >= block_size) {               
ffc0473c:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc04740:	7c 9d 23 78 	mr      r29,r4                                 
ffc04744:	3b 61 00 08 	addi    r27,r1,8                               
  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) {                                             
ffc04748:	7f 3f cb 78 	mr      r31,r25                                
    rtems_status_code sc;                                             
    rtems_bdbuf_buffer *bd;                                           
                                                                      
    if (block_offset == 0 && remaining >= block_size) {               
ffc0474c:	40 9e 00 0c 	bne-    cr7,ffc04758 <rtems_blkdev_imfs_write+0xa8>
ffc04750:	7f 9a f8 00 	cmpw    cr7,r26,r31                            
ffc04754:	40 9d 01 10 	ble-    cr7,ffc04864 <rtems_blkdev_imfs_write+0x1b4>
       sc = rtems_bdbuf_get(dd, block, &bd);                          
    } else {                                                          
       sc = rtems_bdbuf_read(dd, block, &bd);                         
ffc04758:	7e c3 b3 78 	mr      r3,r22                                 
ffc0475c:	7e e4 bb 78 	mr      r4,r23                                 
ffc04760:	7f 65 db 78 	mr      r5,r27                                 
ffc04764:	48 00 e6 f1 	bl      ffc12e54 <rtems_bdbuf_read>            
    }                                                                 
                                                                      
    if (sc == RTEMS_SUCCESSFUL) {                                     
ffc04768:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0476c:	41 9e 00 4c 	beq-    cr7,ffc047b8 <rtems_blkdev_imfs_write+0x108><== ALWAYS TAKEN
                                                                      
  if (remaining >= 0) {                                               
    iop->offset += count;                                             
    rv = (ssize_t) count;                                             
  } else {                                                            
    errno = EIO;                                                      
ffc04770:	48 01 43 f1 	bl      ffc18b60 <__errno>                     <== NOT EXECUTED
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc04774:	80 01 00 44 	lwz     r0,68(r1)                              <== NOT EXECUTED
                                                                      
  if (remaining >= 0) {                                               
    iop->offset += count;                                             
    rv = (ssize_t) count;                                             
  } else {                                                            
    errno = EIO;                                                      
ffc04778:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc0477c:	82 c1 00 18 	lwz     r22,24(r1)                             <== NOT EXECUTED
ffc04780:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
                                                                      
  if (remaining >= 0) {                                               
    iop->offset += count;                                             
    rv = (ssize_t) count;                                             
  } else {                                                            
    errno = EIO;                                                      
ffc04784:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    rv = -1;                                                          
ffc04788:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc0478c:	82 e1 00 1c 	lwz     r23,28(r1)                             <== NOT EXECUTED
ffc04790:	83 01 00 20 	lwz     r24,32(r1)                             <== NOT EXECUTED
ffc04794:	83 21 00 24 	lwz     r25,36(r1)                             <== NOT EXECUTED
ffc04798:	83 41 00 28 	lwz     r26,40(r1)                             <== NOT EXECUTED
ffc0479c:	83 61 00 2c 	lwz     r27,44(r1)                             <== NOT EXECUTED
ffc047a0:	83 81 00 30 	lwz     r28,48(r1)                             <== NOT EXECUTED
ffc047a4:	83 a1 00 34 	lwz     r29,52(r1)                             <== NOT EXECUTED
ffc047a8:	83 c1 00 38 	lwz     r30,56(r1)                             <== NOT EXECUTED
ffc047ac:	83 e1 00 3c 	lwz     r31,60(r1)                             <== NOT EXECUTED
ffc047b0:	38 21 00 40 	addi    r1,r1,64                               <== NOT EXECUTED
ffc047b4:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    } else {                                                          
       sc = rtems_bdbuf_read(dd, block, &bd);                         
    }                                                                 
                                                                      
    if (sc == RTEMS_SUCCESSFUL) {                                     
      ssize_t copy = block_size - block_offset;                       
ffc047b8:	7f dd d0 50 	subf    r30,r29,r26                            
ffc047bc:	7f 9e f8 00 	cmpw    cr7,r30,r31                            
ffc047c0:	40 9d 00 08 	ble-    cr7,ffc047c8 <rtems_blkdev_imfs_write+0x118>
ffc047c4:	7f fe fb 78 	mr      r30,r31                                
                                                                      
      if (copy > remaining) {                                         
        copy = remaining;                                             
      }                                                               
                                                                      
      memcpy((char *) bd->buffer + block_offset, src, (size_t) copy); 
ffc047c8:	81 21 00 08 	lwz     r9,8(r1)                               
ffc047cc:	7f 84 e3 78 	mr      r4,r28                                 
ffc047d0:	7f c5 f3 78 	mr      r5,r30                                 
ffc047d4:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc047d8:	7c 63 ea 14 	add     r3,r3,r29                              
ffc047dc:	48 01 4f 79 	bl      ffc19754 <memcpy>                      
                                                                      
      sc = rtems_bdbuf_release_modified(bd);                          
ffc047e0:	80 61 00 08 	lwz     r3,8(r1)                               
ffc047e4:	48 00 e9 9d 	bl      ffc13180 <rtems_bdbuf_release_modified>
      if (sc == RTEMS_SUCCESSFUL) {                                   
ffc047e8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc047ec:	40 be ff 84 	bne-    cr7,ffc04770 <rtems_blkdev_imfs_write+0xc0><== NEVER TAKEN
  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) {                                             
ffc047f0:	7f fe f8 51 	subf.   r31,r30,r31                            
                                                                      
      sc = rtems_bdbuf_release_modified(bd);                          
      if (sc == RTEMS_SUCCESSFUL) {                                   
        block_offset = 0;                                             
        remaining -= copy;                                            
        src += copy;                                                  
ffc047f4:	7f 9c f2 14 	add     r28,r28,r30                            
        ++block;                                                      
ffc047f8:	3a f7 00 01 	addi    r23,r23,1                              
                                                                      
      memcpy((char *) bd->buffer + block_offset, src, (size_t) copy); 
                                                                      
      sc = rtems_bdbuf_release_modified(bd);                          
      if (sc == RTEMS_SUCCESSFUL) {                                   
        block_offset = 0;                                             
ffc047fc:	3b a0 00 00 	li      r29,0                                  
  ssize_t block_size = (ssize_t) rtems_disk_get_block_size(dd);       
  rtems_blkdev_bnum block = (rtems_blkdev_bnum) (offset / block_size);
  ssize_t block_offset = (ssize_t) (offset % block_size);             
  const char *src = buffer;                                           
                                                                      
  while (remaining > 0) {                                             
ffc04800:	41 81 ff 50 	bgt+    ffc04750 <rtems_blkdev_imfs_write+0xa0>
    } else {                                                          
      remaining = -1;                                                 
    }                                                                 
  }                                                                   
                                                                      
  if (remaining >= 0) {                                               
ffc04804:	40 a2 ff 6c 	bne-    ffc04770 <rtems_blkdev_imfs_write+0xc0><== NEVER TAKEN
    errno = EIO;                                                      
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc04808:	80 01 00 44 	lwz     r0,68(r1)                              
      remaining = -1;                                                 
    }                                                                 
  }                                                                   
                                                                      
  if (remaining >= 0) {                                               
    iop->offset += count;                                             
ffc0480c:	7f 2b cb 78 	mr      r11,r25                                
ffc04810:	81 18 00 08 	lwz     r8,8(r24)                              
ffc04814:	39 40 00 00 	li      r10,0                                  
    errno = EIO;                                                      
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc04818:	7c 08 03 a6 	mtlr    r0                                     
      remaining = -1;                                                 
    }                                                                 
  }                                                                   
                                                                      
  if (remaining >= 0) {                                               
    iop->offset += count;                                             
ffc0481c:	81 38 00 0c 	lwz     r9,12(r24)                             
)                                                                     
{                                                                     
  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;                                
ffc04820:	7f 23 cb 78 	mr      r3,r25                                 
    errno = EIO;                                                      
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc04824:	82 c1 00 18 	lwz     r22,24(r1)                             
      remaining = -1;                                                 
    }                                                                 
  }                                                                   
                                                                      
  if (remaining >= 0) {                                               
    iop->offset += count;                                             
ffc04828:	7d 6b 48 14 	addc    r11,r11,r9                             
ffc0482c:	7d 4a 41 14 	adde    r10,r10,r8                             
    errno = EIO;                                                      
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc04830:	82 e1 00 1c 	lwz     r23,28(r1)                             
      remaining = -1;                                                 
    }                                                                 
  }                                                                   
                                                                      
  if (remaining >= 0) {                                               
    iop->offset += count;                                             
ffc04834:	91 58 00 08 	stw     r10,8(r24)                             
ffc04838:	91 78 00 0c 	stw     r11,12(r24)                            
    errno = EIO;                                                      
    rv = -1;                                                          
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc0483c:	83 21 00 24 	lwz     r25,36(r1)                             
ffc04840:	83 01 00 20 	lwz     r24,32(r1)                             
ffc04844:	83 41 00 28 	lwz     r26,40(r1)                             
ffc04848:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc0484c:	83 81 00 30 	lwz     r28,48(r1)                             
ffc04850:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc04854:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc04858:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc0485c:	38 21 00 40 	addi    r1,r1,64                               
ffc04860:	4e 80 00 20 	blr                                            
  while (remaining > 0) {                                             
    rtems_status_code sc;                                             
    rtems_bdbuf_buffer *bd;                                           
                                                                      
    if (block_offset == 0 && remaining >= block_size) {               
       sc = rtems_bdbuf_get(dd, block, &bd);                          
ffc04864:	7e c3 b3 78 	mr      r3,r22                                 
ffc04868:	7e e4 bb 78 	mr      r4,r23                                 
ffc0486c:	7f 65 db 78 	mr      r5,r27                                 
ffc04870:	48 00 e4 79 	bl      ffc12ce8 <rtems_bdbuf_get>             
ffc04874:	4b ff fe f4 	b       ffc04768 <rtems_blkdev_imfs_write+0xb8>
                                                                      

ffc12890 <rtems_blkdev_ioctl>: rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp) { rtems_status_code sc; int rc = 0; switch (req)
ffc12890:	3d 20 40 04 	lis     r9,16388                               
#include <rtems/blkdev.h>                                             
#include <rtems/bdbuf.h>                                              
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
ffc12894:	94 21 ff f8 	stwu    r1,-8(r1)                              
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
                                                                      
    switch (req)                                                      
ffc12898:	61 29 42 03 	ori     r9,r9,16899                            
#include <rtems/blkdev.h>                                             
#include <rtems/bdbuf.h>                                              
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
ffc1289c:	7c 08 02 a6 	mflr    r0                                     
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
                                                                      
    switch (req)                                                      
ffc128a0:	7f 84 48 00 	cmpw    cr7,r4,r9                              
#include <rtems/blkdev.h>                                             
#include <rtems/bdbuf.h>                                              
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
ffc128a4:	90 01 00 0c 	stw     r0,12(r1)                              
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
                                                                      
    switch (req)                                                      
ffc128a8:	41 9e 01 84 	beq-    cr7,ffc12a2c <rtems_blkdev_ioctl+0x19c>
ffc128ac:	7f 84 48 40 	cmplw   cr7,r4,r9                              
ffc128b0:	40 9d 00 4c 	ble-    cr7,ffc128fc <rtems_blkdev_ioctl+0x6c> 
ffc128b4:	3d 20 40 04 	lis     r9,16388                               
ffc128b8:	61 29 42 09 	ori     r9,r9,16905                            
ffc128bc:	7f 84 48 00 	cmpw    cr7,r4,r9                              
ffc128c0:	41 9e 00 f8 	beq-    cr7,ffc129b8 <rtems_blkdev_ioctl+0x128>
ffc128c4:	7f 84 48 40 	cmplw   cr7,r4,r9                              
ffc128c8:	3d 20 40 04 	lis     r9,16388                               
ffc128cc:	41 9d 00 80 	bgt-    cr7,ffc1294c <rtems_blkdev_ioctl+0xbc> 
ffc128d0:	61 29 42 05 	ori     r9,r9,16901                            
ffc128d4:	7f 84 48 00 	cmpw    cr7,r4,r9                              
ffc128d8:	41 9e 00 ec 	beq-    cr7,ffc129c4 <rtems_blkdev_ioctl+0x134><== ALWAYS TAKEN
        case RTEMS_BLKIO_RESETDEVSTATS:                               
            rtems_bdbuf_reset_device_stats(dd);                       
            break;                                                    
                                                                      
        default:                                                      
            errno = EINVAL;                                           
ffc128dc:	48 00 5a 8d 	bl      ffc18368 <__errno>                     
ffc128e0:	39 20 00 16 	li      r9,22                                  
ffc128e4:	91 23 00 00 	stw     r9,0(r3)                               
            rc = -1;                                                  
ffc128e8:	38 60 ff ff 	li      r3,-1                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc128ec:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc128f0:	38 21 00 08 	addi    r1,r1,8                                
ffc128f4:	7c 08 03 a6 	mtlr    r0                                     
ffc128f8:	4e 80 00 20 	blr                                            
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
                                                                      
    switch (req)                                                      
ffc128fc:	3d 20 20 00 	lis     r9,8192                                
ffc12900:	61 29 42 0a 	ori     r9,r9,16906                            
ffc12904:	7f 84 48 00 	cmpw    cr7,r4,r9                              
ffc12908:	41 9e 01 0c 	beq-    cr7,ffc12a14 <rtems_blkdev_ioctl+0x184>
ffc1290c:	7f 84 48 40 	cmplw   cr7,r4,r9                              
ffc12910:	3d 20 20 00 	lis     r9,8192                                
ffc12914:	40 9d 00 78 	ble-    cr7,ffc1298c <rtems_blkdev_ioctl+0xfc> 
ffc12918:	61 29 42 0c 	ori     r9,r9,16908                            
ffc1291c:	7f 84 48 00 	cmpw    cr7,r4,r9                              
ffc12920:	41 9e 00 c0 	beq-    cr7,ffc129e0 <rtems_blkdev_ioctl+0x150>
ffc12924:	6c 89 40 04 	xoris   r9,r4,16388                            
ffc12928:	2f 89 42 02 	cmpwi   cr7,r9,16898                           
ffc1292c:	40 9e ff b0 	bne+    cr7,ffc128dc <rtems_blkdev_ioctl+0x4c> <== NEVER TAKEN
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc12930:	80 01 00 0c 	lwz     r0,12(r1)                              
    int                rc = 0;                                        
                                                                      
    switch (req)                                                      
    {                                                                 
        case RTEMS_BLKIO_GETMEDIABLKSIZE:                             
            *(uint32_t *) argp = dd->media_block_size;                
ffc12934:	81 23 00 20 	lwz     r9,32(r3)                              
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
ffc12938:	38 60 00 00 	li      r3,0                                   
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc1293c:	7c 08 03 a6 	mtlr    r0                                     
    int                rc = 0;                                        
                                                                      
    switch (req)                                                      
    {                                                                 
        case RTEMS_BLKIO_GETMEDIABLKSIZE:                             
            *(uint32_t *) argp = dd->media_block_size;                
ffc12940:	91 25 00 00 	stw     r9,0(r5)                               
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc12944:	38 21 00 08 	addi    r1,r1,8                                
ffc12948:	4e 80 00 20 	blr                                            
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
                                                                      
    switch (req)                                                      
ffc1294c:	61 29 42 0b 	ori     r9,r9,16907                            
ffc12950:	7f 84 48 00 	cmpw    cr7,r4,r9                              
ffc12954:	41 9e 00 a4 	beq-    cr7,ffc129f8 <rtems_blkdev_ioctl+0x168>
ffc12958:	6c 89 80 04 	xoris   r9,r4,32772                            
ffc1295c:	2f 89 42 04 	cmpwi   cr7,r9,16900                           
ffc12960:	40 9e ff 7c 	bne+    cr7,ffc128dc <rtems_blkdev_ioctl+0x4c> <== NEVER TAKEN
        case RTEMS_BLKIO_GETBLKSIZE:                                  
            *(uint32_t *) argp = dd->block_size;                      
            break;                                                    
                                                                      
        case RTEMS_BLKIO_SETBLKSIZE:                                  
            sc = rtems_bdbuf_set_block_size(dd, *(uint32_t *) argp, true);
ffc12964:	80 85 00 00 	lwz     r4,0(r5)                               
ffc12968:	38 a0 00 01 	li      r5,1                                   
ffc1296c:	4b ff fd 21 	bl      ffc1268c <rtems_bdbuf_set_block_size>  
            if (sc != RTEMS_SUCCESSFUL) {                             
ffc12970:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc12974:	40 9e 00 30 	bne-    cr7,ffc129a4 <rtems_blkdev_ioctl+0x114><== NEVER TAKEN
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
ffc12978:	38 60 00 00 	li      r3,0                                   
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc1297c:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc12980:	38 21 00 08 	addi    r1,r1,8                                
ffc12984:	7c 08 03 a6 	mtlr    r0                                     
ffc12988:	4e 80 00 20 	blr                                            
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
                                                                      
    switch (req)                                                      
ffc1298c:	61 29 42 06 	ori     r9,r9,16902                            
ffc12990:	7f 84 48 00 	cmpw    cr7,r4,r9                              
ffc12994:	40 9e ff 48 	bne+    cr7,ffc128dc <rtems_blkdev_ioctl+0x4c> 
        case RTEMS_BLKIO_GETSIZE:                                     
            *(rtems_blkdev_bnum *) argp = dd->size;                   
            break;                                                    
                                                                      
        case RTEMS_BLKIO_SYNCDEV:                                     
            sc = rtems_bdbuf_syncdev(dd);                             
ffc12998:	4b ff fa 2d 	bl      ffc123c4 <rtems_bdbuf_syncdev>         
            if (sc != RTEMS_SUCCESSFUL) {                             
ffc1299c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc129a0:	41 9e ff d8 	beq+    cr7,ffc12978 <rtems_blkdev_ioctl+0xe8> <== ALWAYS TAKEN
                errno = EIO;                                          
ffc129a4:	48 00 59 c5 	bl      ffc18368 <__errno>                     <== NOT EXECUTED
ffc129a8:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc129ac:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
                rc = -1;                                              
ffc129b0:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc129b4:	4b ff ff 38 	b       ffc128ec <rtems_blkdev_ioctl+0x5c>     <== NOT EXECUTED
            }                                                         
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETDISKDEV:                                  
            *(rtems_disk_device **) argp = dd;                        
ffc129b8:	90 65 00 00 	stw     r3,0(r5)                               
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
ffc129bc:	38 60 00 00 	li      r3,0                                   
ffc129c0:	4b ff ff bc 	b       ffc1297c <rtems_blkdev_ioctl+0xec>     
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc129c4:	80 01 00 0c 	lwz     r0,12(r1)                              
                rc = -1;                                              
            }                                                         
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETSIZE:                                     
            *(rtems_blkdev_bnum *) argp = dd->size;                   
ffc129c8:	81 23 00 1c 	lwz     r9,28(r3)                              
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
ffc129cc:	38 60 00 00 	li      r3,0                                   
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc129d0:	7c 08 03 a6 	mtlr    r0                                     
                rc = -1;                                              
            }                                                         
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETSIZE:                                     
            *(rtems_blkdev_bnum *) argp = dd->size;                   
ffc129d4:	91 25 00 00 	stw     r9,0(r5)                               
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc129d8:	38 21 00 08 	addi    r1,r1,8                                
ffc129dc:	4e 80 00 20 	blr                                            
        case RTEMS_BLKIO_GETDEVSTATS:                                 
            rtems_bdbuf_get_device_stats(dd, (rtems_blkdev_stats *) argp);
            break;                                                    
                                                                      
        case RTEMS_BLKIO_RESETDEVSTATS:                               
            rtems_bdbuf_reset_device_stats(dd);                       
ffc129e0:	4b ff fe 61 	bl      ffc12840 <rtems_bdbuf_reset_device_stats>
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc129e4:	80 01 00 0c 	lwz     r0,12(r1)                              
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
ffc129e8:	38 60 00 00 	li      r3,0                                   
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc129ec:	7c 08 03 a6 	mtlr    r0                                     
ffc129f0:	38 21 00 08 	addi    r1,r1,8                                
ffc129f4:	4e 80 00 20 	blr                                            
        case RTEMS_BLKIO_PURGEDEV:                                    
            rtems_bdbuf_purge_dev(dd);                                
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETDEVSTATS:                                 
            rtems_bdbuf_get_device_stats(dd, (rtems_blkdev_stats *) argp);
ffc129f8:	7c a4 2b 78 	mr      r4,r5                                  
ffc129fc:	4b ff fd cd 	bl      ffc127c8 <rtems_bdbuf_get_device_stats>
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc12a00:	80 01 00 0c 	lwz     r0,12(r1)                              
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
ffc12a04:	38 60 00 00 	li      r3,0                                   
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc12a08:	7c 08 03 a6 	mtlr    r0                                     
ffc12a0c:	38 21 00 08 	addi    r1,r1,8                                
ffc12a10:	4e 80 00 20 	blr                                            
        case RTEMS_BLKIO_GETDISKDEV:                                  
            *(rtems_disk_device **) argp = dd;                        
            break;                                                    
                                                                      
        case RTEMS_BLKIO_PURGEDEV:                                    
            rtems_bdbuf_purge_dev(dd);                                
ffc12a14:	4b ff fa 29 	bl      ffc1243c <rtems_bdbuf_purge_dev>       
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc12a18:	80 01 00 0c 	lwz     r0,12(r1)                              
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
ffc12a1c:	38 60 00 00 	li      r3,0                                   
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc12a20:	7c 08 03 a6 	mtlr    r0                                     
ffc12a24:	38 21 00 08 	addi    r1,r1,8                                
ffc12a28:	4e 80 00 20 	blr                                            
ffc12a2c:	80 01 00 0c 	lwz     r0,12(r1)                              
        case RTEMS_BLKIO_GETMEDIABLKSIZE:                             
            *(uint32_t *) argp = dd->media_block_size;                
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETBLKSIZE:                                  
            *(uint32_t *) argp = dd->block_size;                      
ffc12a30:	81 23 00 24 	lwz     r9,36(r3)                              
                                                                      
int                                                                   
rtems_blkdev_ioctl(rtems_disk_device *dd, uint32_t req, void *argp)   
{                                                                     
    rtems_status_code  sc;                                            
    int                rc = 0;                                        
ffc12a34:	38 60 00 00 	li      r3,0                                   
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc12a38:	7c 08 03 a6 	mtlr    r0                                     
        case RTEMS_BLKIO_GETMEDIABLKSIZE:                             
            *(uint32_t *) argp = dd->media_block_size;                
            break;                                                    
                                                                      
        case RTEMS_BLKIO_GETBLKSIZE:                                  
            *(uint32_t *) argp = dd->block_size;                      
ffc12a3c:	91 25 00 00 	stw     r9,0(r5)                               
            rc = -1;                                                  
            break;                                                    
    }                                                                 
                                                                      
    return rc;                                                        
}                                                                     
ffc12a40:	38 21 00 08 	addi    r1,r1,8                                
ffc12a44:	4e 80 00 20 	blr                                            
                                                                      

ffc2a040 <rtems_blkstats>: #include <fcntl.h> #include <unistd.h> #include <errno.h> void rtems_blkstats(FILE *output, const char *device, bool reset) {
ffc2a040:	94 21 ff 78 	stwu    r1,-136(r1)                            <== NOT EXECUTED
ffc2a044:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc2a048:	93 e1 00 84 	stw     r31,132(r1)                            <== NOT EXECUTED
ffc2a04c:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
  int fd = open(device, O_RDONLY);                                    
ffc2a050:	7c 83 23 78 	mr      r3,r4                                  <== NOT EXECUTED
ffc2a054:	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)     
{                                                                     
ffc2a058:	93 a1 00 7c 	stw     r29,124(r1)                            <== NOT EXECUTED
ffc2a05c:	7c bd 2b 78 	mr      r29,r5                                 <== NOT EXECUTED
ffc2a060:	93 c1 00 80 	stw     r30,128(r1)                            <== NOT EXECUTED
ffc2a064:	90 01 00 8c 	stw     r0,140(r1)                             <== NOT EXECUTED
  int fd = open(device, O_RDONLY);                                    
ffc2a068:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2a06c:	4b fd b3 2d 	bl      ffc05398 <open>                        <== NOT EXECUTED
                                                                      
  if (fd >= 0) {                                                      
ffc2a070:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
ffc2a074:	41 80 00 cc 	blt-    ffc2a140 <rtems_blkstats+0x100>        <== NOT EXECUTED
    struct stat st;                                                   
    int rv;                                                           
                                                                      
    rv = fstat(fd, &st);                                              
ffc2a078:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc2a07c:	48 00 26 f1 	bl      ffc2c76c <fstat>                       <== NOT EXECUTED
    if (rv == 0) {                                                    
ffc2a080:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc2a084:	40 9e 00 fc 	bne-    cr7,ffc2a180 <rtems_blkstats+0x140>    <== NOT EXECUTED
      if (S_ISBLK(st.st_mode)) {                                      
ffc2a088:	81 21 00 14 	lwz     r9,20(r1)                              <== NOT EXECUTED
ffc2a08c:	55 29 04 26 	rlwinm  r9,r9,0,16,19                          <== NOT EXECUTED
ffc2a090:	2f 89 60 00 	cmpwi   cr7,r9,24576                           <== NOT EXECUTED
ffc2a094:	41 9e 00 6c 	beq-    cr7,ffc2a100 <rtems_blkstats+0xc0>     <== NOT EXECUTED
          } else {                                                    
            fprintf(output, "error: get stats: %s\n", strerror(errno));
          }                                                           
        }                                                             
      } else {                                                        
        fprintf(output, "error: not a block device\n");               
ffc2a098:	3c 60 ff c6 	lis     r3,-58                                 <== NOT EXECUTED
ffc2a09c:	38 63 74 30 	addi    r3,r3,29744                            <== NOT EXECUTED
ffc2a0a0:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc2a0a4:	38 a0 00 1a 	li      r5,26                                  <== NOT EXECUTED
ffc2a0a8:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
ffc2a0ac:	48 01 be 65 	bl      ffc45f10 <fwrite>                      <== NOT EXECUTED
      }                                                               
    } else {                                                          
      fprintf(output, "error: get file stats: %s\n", strerror(errno));
    }                                                                 
                                                                      
    rv = close(fd);                                                   
ffc2a0b0:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc2a0b4:	48 00 20 f9 	bl      ffc2c1ac <close>                       <== NOT EXECUTED
    if (rv != 0) {                                                    
ffc2a0b8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc2a0bc:	41 be 00 28 	beq+    cr7,ffc2a0e4 <rtems_blkstats+0xa4>     <== NOT EXECUTED
      fprintf(output, "error: close device: %s\n", strerror(errno));  
ffc2a0c0:	48 01 99 59 	bl      ffc43a18 <__errno>                     <== NOT EXECUTED
ffc2a0c4:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
ffc2a0c8:	48 02 18 35 	bl      ffc4b8fc <strerror>                    <== NOT EXECUTED
ffc2a0cc:	3c 80 ff c6 	lis     r4,-58                                 <== NOT EXECUTED
ffc2a0d0:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc2a0d4:	38 84 74 68 	addi    r4,r4,29800                            <== NOT EXECUTED
ffc2a0d8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc2a0dc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2a0e0:	48 01 a7 71 	bl      ffc44850 <fprintf>                     <== NOT EXECUTED
    }                                                                 
  } else {                                                            
    fprintf(output, "error: open device: %s\n", strerror(errno));     
  }                                                                   
}                                                                     
ffc2a0e4:	80 01 00 8c 	lwz     r0,140(r1)                             <== NOT EXECUTED
ffc2a0e8:	83 a1 00 7c 	lwz     r29,124(r1)                            <== NOT EXECUTED
ffc2a0ec:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc2a0f0:	83 c1 00 80 	lwz     r30,128(r1)                            <== NOT EXECUTED
ffc2a0f4:	83 e1 00 84 	lwz     r31,132(r1)                            <== NOT EXECUTED
ffc2a0f8:	38 21 00 88 	addi    r1,r1,136                              <== NOT EXECUTED
ffc2a0fc:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    int rv;                                                           
                                                                      
    rv = fstat(fd, &st);                                              
    if (rv == 0) {                                                    
      if (S_ISBLK(st.st_mode)) {                                      
        if (reset) {                                                  
ffc2a100:	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);                        
ffc2a104:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc2a108:	40 9e 00 a0 	bne-    cr7,ffc2a1a8 <rtems_blkstats+0x168>    <== NOT EXECUTED
static inline int rtems_disk_fd_get_device_stats(                     
  int fd,                                                             
  rtems_blkdev_stats *stats                                           
)                                                                     
{                                                                     
  return ioctl(fd, RTEMS_BLKIO_GETDEVSTATS, stats);                   
ffc2a10c:	3c 80 40 04 	lis     r4,16388                               <== NOT EXECUTED
ffc2a110:	60 84 42 0b 	ori     r4,r4,16907                            <== NOT EXECUTED
ffc2a114:	38 a1 00 50 	addi    r5,r1,80                               <== NOT EXECUTED
ffc2a118:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2a11c:	48 00 35 05 	bl      ffc2d620 <ioctl>                       <== NOT EXECUTED
          }                                                           
        } else {                                                      
          rtems_blkdev_stats stats;                                   
                                                                      
          rv = rtems_disk_fd_get_device_stats(fd, &stats);            
          if (rv == 0) {                                              
ffc2a120:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc2a124:	40 9e 00 c4 	bne-    cr7,ffc2a1e8 <rtems_blkstats+0x1a8>    <== NOT EXECUTED
            rtems_blkdev_print_stats(                                 
ffc2a128:	3c 80 ff c4 	lis     r4,-60                                 <== NOT EXECUTED
ffc2a12c:	38 61 00 50 	addi    r3,r1,80                               <== NOT EXECUTED
ffc2a130:	38 84 48 50 	addi    r4,r4,18512                            <== NOT EXECUTED
ffc2a134:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc2a138:	48 00 00 d9 	bl      ffc2a210 <rtems_blkdev_print_stats>    <== NOT EXECUTED
ffc2a13c:	4b ff ff 74 	b       ffc2a0b0 <rtems_blkstats+0x70>         <== NOT EXECUTED
    rv = close(fd);                                                   
    if (rv != 0) {                                                    
      fprintf(output, "error: close device: %s\n", strerror(errno));  
    }                                                                 
  } else {                                                            
    fprintf(output, "error: open device: %s\n", strerror(errno));     
ffc2a140:	48 01 98 d9 	bl      ffc43a18 <__errno>                     <== NOT EXECUTED
ffc2a144:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
ffc2a148:	48 02 17 b5 	bl      ffc4b8fc <strerror>                    <== NOT EXECUTED
ffc2a14c:	3c 80 ff c6 	lis     r4,-58                                 <== NOT EXECUTED
ffc2a150:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc2a154:	38 84 74 84 	addi    r4,r4,29828                            <== NOT EXECUTED
ffc2a158:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc2a15c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2a160:	48 01 a6 f1 	bl      ffc44850 <fprintf>                     <== NOT EXECUTED
  }                                                                   
}                                                                     
ffc2a164:	80 01 00 8c 	lwz     r0,140(r1)                             <== NOT EXECUTED
ffc2a168:	83 a1 00 7c 	lwz     r29,124(r1)                            <== NOT EXECUTED
ffc2a16c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc2a170:	83 c1 00 80 	lwz     r30,128(r1)                            <== NOT EXECUTED
ffc2a174:	83 e1 00 84 	lwz     r31,132(r1)                            <== NOT EXECUTED
ffc2a178:	38 21 00 88 	addi    r1,r1,136                              <== NOT EXECUTED
ffc2a17c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
        }                                                             
      } else {                                                        
        fprintf(output, "error: not a block device\n");               
      }                                                               
    } else {                                                          
      fprintf(output, "error: get file stats: %s\n", strerror(errno));
ffc2a180:	48 01 98 99 	bl      ffc43a18 <__errno>                     <== NOT EXECUTED
ffc2a184:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
ffc2a188:	48 02 17 75 	bl      ffc4b8fc <strerror>                    <== NOT EXECUTED
ffc2a18c:	3c 80 ff c6 	lis     r4,-58                                 <== NOT EXECUTED
ffc2a190:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc2a194:	38 84 74 4c 	addi    r4,r4,29772                            <== NOT EXECUTED
ffc2a198:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc2a19c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2a1a0:	48 01 a6 b1 	bl      ffc44850 <fprintf>                     <== NOT EXECUTED
ffc2a1a4:	4b ff ff 0c 	b       ffc2a0b0 <rtems_blkstats+0x70>         <== NOT EXECUTED
}                                                                     
                                                                      
static inline int rtems_disk_fd_reset_device_stats(int fd)            
{                                                                     
  return ioctl(fd, RTEMS_BLKIO_RESETDEVSTATS);                        
ffc2a1a8:	3c 80 20 00 	lis     r4,8192                                <== NOT EXECUTED
ffc2a1ac:	60 84 42 0c 	ori     r4,r4,16908                            <== NOT EXECUTED
ffc2a1b0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2a1b4:	48 00 34 6d 	bl      ffc2d620 <ioctl>                       <== NOT EXECUTED
    rv = fstat(fd, &st);                                              
    if (rv == 0) {                                                    
      if (S_ISBLK(st.st_mode)) {                                      
        if (reset) {                                                  
          rv = rtems_disk_fd_reset_device_stats(fd);                  
          if (rv != 0) {                                              
ffc2a1b8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc2a1bc:	41 9e fe f4 	beq+    cr7,ffc2a0b0 <rtems_blkstats+0x70>     <== NOT EXECUTED
            fprintf(output, "error: reset stats: %s\n", strerror(errno));
ffc2a1c0:	48 01 98 59 	bl      ffc43a18 <__errno>                     <== NOT EXECUTED
ffc2a1c4:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
ffc2a1c8:	48 02 17 35 	bl      ffc4b8fc <strerror>                    <== NOT EXECUTED
ffc2a1cc:	3c 80 ff c6 	lis     r4,-58                                 <== NOT EXECUTED
ffc2a1d0:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc2a1d4:	38 84 74 00 	addi    r4,r4,29696                            <== NOT EXECUTED
ffc2a1d8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc2a1dc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2a1e0:	48 01 a6 71 	bl      ffc44850 <fprintf>                     <== NOT EXECUTED
ffc2a1e4:	4b ff fe cc 	b       ffc2a0b0 <rtems_blkstats+0x70>         <== NOT EXECUTED
              &stats,                                                 
              (rtems_printk_plugin_t) fprintf,                        
              output                                                  
            );                                                        
          } else {                                                    
            fprintf(output, "error: get stats: %s\n", strerror(errno));
ffc2a1e8:	48 01 98 31 	bl      ffc43a18 <__errno>                     <== NOT EXECUTED
ffc2a1ec:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
ffc2a1f0:	48 02 17 0d 	bl      ffc4b8fc <strerror>                    <== NOT EXECUTED
ffc2a1f4:	3c 80 ff c6 	lis     r4,-58                                 <== NOT EXECUTED
ffc2a1f8:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc2a1fc:	38 84 74 18 	addi    r4,r4,29720                            <== NOT EXECUTED
ffc2a200:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc2a204:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2a208:	48 01 a6 49 	bl      ffc44850 <fprintf>                     <== NOT EXECUTED
ffc2a20c:	4b ff fe a4 	b       ffc2a0b0 <rtems_blkstats+0x70>         <== NOT EXECUTED
                                                                      

ffc03f44 <rtems_bsp_cmdline_get_param>: size_t length ) { const char *p; if ( !name )
ffc03f44:	2f 83 00 00 	cmpwi   cr7,r3,0                               
const char *rtems_bsp_cmdline_get_param(                              
  const char *name,                                                   
  char       *value,                                                  
  size_t      length                                                  
)                                                                     
{                                                                     
ffc03f48:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc03f4c:	7c 08 02 a6 	mflr    r0                                     
ffc03f50:	93 c1 00 08 	stw     r30,8(r1)                              
ffc03f54:	90 01 00 14 	stw     r0,20(r1)                              
ffc03f58:	93 e1 00 0c 	stw     r31,12(r1)                             
  const char *p;                                                      
                                                                      
  if ( !name )                                                        
ffc03f5c:	41 9e 00 d4 	beq-    cr7,ffc04030 <rtems_bsp_cmdline_get_param+0xec>
    return NULL;                                                      
                                                                      
  if ( !value )                                                       
ffc03f60:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc03f64:	7c 9f 23 78 	mr      r31,r4                                 
ffc03f68:	41 9e 00 c8 	beq-    cr7,ffc04030 <rtems_bsp_cmdline_get_param+0xec>
    return NULL;                                                      
                                                                      
  if ( !length )                                                      
ffc03f6c:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc03f70:	7c be 2b 78 	mr      r30,r5                                 
ffc03f74:	41 9e 00 bc 	beq-    cr7,ffc04030 <rtems_bsp_cmdline_get_param+0xec>
    return NULL;                                                      
                                                                      
  value[0] = '\0';                                                    
ffc03f78:	39 20 00 00 	li      r9,0                                   
ffc03f7c:	99 24 00 00 	stb     r9,0(r4)                               
                                                                      
  p = rtems_bsp_cmdline_get_param_raw( name );                        
ffc03f80:	48 00 00 d1 	bl      ffc04050 <rtems_bsp_cmdline_get_param_raw>
                                                                      
  if ( !p )                                                           
ffc03f84:	2c 03 00 00 	cmpwi   r3,0                                   
ffc03f88:	41 82 00 a8 	beq-    ffc04030 <rtems_bsp_cmdline_get_param+0xec>
  int         i;                                                      
  int         quotes;                                                 
  const char *p = start;                                              
                                                                      
  quotes=0;                                                           
  for (i=0 ; *p && i<length-1; ) {                                    
ffc03f8c:	89 43 00 00 	lbz     r10,0(r3)                              
ffc03f90:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc03f94:	41 9e 00 80 	beq-    cr7,ffc04014 <rtems_bsp_cmdline_get_param+0xd0><== NEVER TAKEN
ffc03f98:	2f 9e 00 01 	cmpwi   cr7,r30,1                              
ffc03f9c:	41 9e 00 78 	beq-    cr7,ffc04014 <rtems_bsp_cmdline_get_param+0xd0><== NEVER TAKEN
    if ( *p == '\"' ) {                                               
      quotes++;                                                       
    } else if ( ((quotes % 2) == 0) && *p == ' ' )                    
      break;                                                          
    value[i++] = *p++;                                                
    value[i] = '\0';                                                  
ffc03fa0:	3b de ff ff 	addi    r30,r30,-1                             
  }                                                                   
                                                                      
}                                                                     
                                                                      
const char *rtems_bsp_cmdline_get_param(                              
ffc03fa4:	39 20 00 00 	li      r9,0                                   
    if ( *p == '\"' ) {                                               
      quotes++;                                                       
    } else if ( ((quotes % 2) == 0) && *p == ' ' )                    
      break;                                                          
    value[i++] = *p++;                                                
    value[i] = '\0';                                                  
ffc03fa8:	7f c9 03 a6 	mtctr   r30                                    
  int         i;                                                      
  int         quotes;                                                 
  const char *p = start;                                              
                                                                      
  quotes=0;                                                           
  for (i=0 ; *p && i<length-1; ) {                                    
ffc03fac:	39 00 00 00 	li      r8,0                                   
    value[i] = '\0';                                                  
  }                                                                   
                                                                      
}                                                                     
                                                                      
const char *rtems_bsp_cmdline_get_param(                              
ffc03fb0:	38 e0 00 00 	li      r7,0                                   
    if ( *p == '\"' ) {                                               
      quotes++;                                                       
    } else if ( ((quotes % 2) == 0) && *p == ' ' )                    
      break;                                                          
    value[i++] = *p++;                                                
    value[i] = '\0';                                                  
ffc03fb4:	38 80 00 00 	li      r4,0                                   
ffc03fb8:	48 00 00 30 	b       ffc03fe8 <rtems_bsp_cmdline_get_param+0xa4>
                                                                      
  quotes=0;                                                           
  for (i=0 ; *p && i<length-1; ) {                                    
    if ( *p == '\"' ) {                                               
      quotes++;                                                       
    } else if ( ((quotes % 2) == 0) && *p == ' ' )                    
ffc03fbc:	2f 8a 00 20 	cmpwi   cr7,r10,32                             
ffc03fc0:	40 82 00 08 	bne-    ffc03fc8 <rtems_bsp_cmdline_get_param+0x84>
ffc03fc4:	41 9e 00 50 	beq-    cr7,ffc04014 <rtems_bsp_cmdline_get_param+0xd0>
      break;                                                          
    value[i++] = *p++;                                                
ffc03fc8:	39 29 00 01 	addi    r9,r9,1                                
ffc03fcc:	7d 5f 41 ae 	stbx    r10,r31,r8                             
    value[i] = '\0';                                                  
ffc03fd0:	7d 28 4b 78 	mr      r8,r9                                  
ffc03fd4:	7c 9f 49 ae 	stbx    r4,r31,r9                              
  int         i;                                                      
  int         quotes;                                                 
  const char *p = start;                                              
                                                                      
  quotes=0;                                                           
  for (i=0 ; *p && i<length-1; ) {                                    
ffc03fd8:	7d 43 48 ae 	lbzx    r10,r3,r9                              
ffc03fdc:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc03fe0:	41 9e 00 34 	beq-    cr7,ffc04014 <rtems_bsp_cmdline_get_param+0xd0>
ffc03fe4:	42 40 00 30 	bdz-    ffc04014 <rtems_bsp_cmdline_get_param+0xd0>
    if ( *p == '\"' ) {                                               
ffc03fe8:	2f 8a 00 22 	cmpwi   cr7,r10,34                             
      quotes++;                                                       
    } else if ( ((quotes % 2) == 0) && *p == ' ' )                    
ffc03fec:	70 e6 00 01 	andi.   r6,r7,1                                
  int         quotes;                                                 
  const char *p = start;                                              
                                                                      
  quotes=0;                                                           
  for (i=0 ; *p && i<length-1; ) {                                    
    if ( *p == '\"' ) {                                               
ffc03ff0:	40 9e ff cc 	bne+    cr7,ffc03fbc <rtems_bsp_cmdline_get_param+0x78>
      quotes++;                                                       
    } else if ( ((quotes % 2) == 0) && *p == ' ' )                    
      break;                                                          
    value[i++] = *p++;                                                
ffc03ff4:	39 29 00 01 	addi    r9,r9,1                                
ffc03ff8:	7d 5f 41 ae 	stbx    r10,r31,r8                             
  const char *p = start;                                              
                                                                      
  quotes=0;                                                           
  for (i=0 ; *p && i<length-1; ) {                                    
    if ( *p == '\"' ) {                                               
      quotes++;                                                       
ffc03ffc:	38 e7 00 01 	addi    r7,r7,1                                
    } else if ( ((quotes % 2) == 0) && *p == ' ' )                    
      break;                                                          
    value[i++] = *p++;                                                
    value[i] = '\0';                                                  
ffc04000:	7c 9f 49 ae 	stbx    r4,r31,r9                              
ffc04004:	7d 28 4b 78 	mr      r8,r9                                  
  int         i;                                                      
  int         quotes;                                                 
  const char *p = start;                                              
                                                                      
  quotes=0;                                                           
  for (i=0 ; *p && i<length-1; ) {                                    
ffc04008:	7d 43 48 ae 	lbzx    r10,r3,r9                              
ffc0400c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc04010:	40 9e ff d4 	bne+    cr7,ffc03fe4 <rtems_bsp_cmdline_get_param+0xa0><== ALWAYS TAKEN
    return NULL;                                                      
                                                                      
  copy_string( p, value, length );                                    
                                                                      
  return value;                                                       
}                                                                     
ffc04014:	80 01 00 14 	lwz     r0,20(r1)                              
ffc04018:	7f e3 fb 78 	mr      r3,r31                                 
ffc0401c:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc04020:	7c 08 03 a6 	mtlr    r0                                     
ffc04024:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc04028:	38 21 00 10 	addi    r1,r1,16                               
ffc0402c:	4e 80 00 20 	blr                                            
ffc04030:	80 01 00 14 	lwz     r0,20(r1)                              
)                                                                     
{                                                                     
  const char *p;                                                      
                                                                      
  if ( !name )                                                        
    return NULL;                                                      
ffc04034:	3b e0 00 00 	li      r31,0                                  
    return NULL;                                                      
                                                                      
  copy_string( p, value, length );                                    
                                                                      
  return value;                                                       
}                                                                     
ffc04038:	7f e3 fb 78 	mr      r3,r31                                 
ffc0403c:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc04040:	7c 08 03 a6 	mtlr    r0                                     
ffc04044:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc04048:	38 21 00 10 	addi    r1,r1,16                               
ffc0404c:	4e 80 00 20 	blr                                            
                                                                      

ffc0a588 <rtems_chain_get_with_wait>: rtems_chain_control *chain, rtems_event_set events, rtems_interval timeout, rtems_chain_node **node_ptr ) {
ffc0a588:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0a58c:	7c 08 02 a6 	mflr    r0                                     
ffc0a590:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc0a594:	90 01 00 34 	stw     r0,52(r1)                              
ffc0a598:	93 61 00 1c 	stw     r27,28(r1)                             
ffc0a59c:	7c db 33 78 	mr      r27,r6                                 
ffc0a5a0:	93 81 00 20 	stw     r28,32(r1)                             
ffc0a5a4:	7c 7c 1b 78 	mr      r28,r3                                 
ffc0a5a8:	93 a1 00 24 	stw     r29,36(r1)                             
ffc0a5ac:	7c 9d 23 78 	mr      r29,r4                                 
ffc0a5b0:	93 c1 00 28 	stw     r30,40(r1)                             
ffc0a5b4:	7c be 2b 78 	mr      r30,r5                                 
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
ffc0a5b8:	7f 83 e3 78 	mr      r3,r28                                 
ffc0a5bc:	48 00 07 39 	bl      ffc0acf4 <_Chain_Get>                  
  while (                                                             
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
  ) {                                                                 
    rtems_event_set out;                                              
    sc = rtems_event_receive(                                         
ffc0a5c0:	38 80 00 00 	li      r4,0                                   
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_chain_node *node = NULL;                                      
                                                                      
  while (                                                             
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
ffc0a5c4:	7c 7f 1b 79 	mr.     r31,r3                                 
  ) {                                                                 
    rtems_event_set out;                                              
    sc = rtems_event_receive(                                         
ffc0a5c8:	7f c5 f3 78 	mr      r5,r30                                 
ffc0a5cc:	38 c1 00 08 	addi    r6,r1,8                                
ffc0a5d0:	7f a3 eb 78 	mr      r3,r29                                 
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_chain_node *node = NULL;                                      
                                                                      
  while (                                                             
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
ffc0a5d4:	40 82 00 38 	bne-    ffc0a60c <rtems_chain_get_with_wait+0x84>
  ) {                                                                 
    rtems_event_set out;                                              
    sc = rtems_event_receive(                                         
ffc0a5d8:	4b ff f0 11 	bl      ffc095e8 <rtems_event_receive>         
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_chain_node *node = NULL;                                      
                                                                      
  while (                                                             
ffc0a5dc:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0a5e0:	41 82 ff d8 	beq+    ffc0a5b8 <rtems_chain_get_with_wait+0x30><== NEVER TAKEN
  }                                                                   
                                                                      
  *node_ptr = node;                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0a5e4:	80 01 00 34 	lwz     r0,52(r1)                              
      timeout,                                                        
      &out                                                            
    );                                                                
  }                                                                   
                                                                      
  *node_ptr = node;                                                   
ffc0a5e8:	93 fb 00 00 	stw     r31,0(r27)                             
                                                                      
  return sc;                                                          
}                                                                     
ffc0a5ec:	7c 08 03 a6 	mtlr    r0                                     
ffc0a5f0:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc0a5f4:	83 81 00 20 	lwz     r28,32(r1)                             
ffc0a5f8:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc0a5fc:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc0a600:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc0a604:	38 21 00 30 	addi    r1,r1,48                               
ffc0a608:	4e 80 00 20 	blr                                            
ffc0a60c:	80 01 00 34 	lwz     r0,52(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_chain_node *node = NULL;                                      
                                                                      
  while (                                                             
    sc == RTEMS_SUCCESSFUL                                            
      && (node = rtems_chain_get( chain )) == NULL                    
ffc0a610:	38 60 00 00 	li      r3,0                                   
      timeout,                                                        
      &out                                                            
    );                                                                
  }                                                                   
                                                                      
  *node_ptr = node;                                                   
ffc0a614:	93 fb 00 00 	stw     r31,0(r27)                             
                                                                      
  return sc;                                                          
}                                                                     
ffc0a618:	7c 08 03 a6 	mtlr    r0                                     
ffc0a61c:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc0a620:	83 81 00 20 	lwz     r28,32(r1)                             
ffc0a624:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc0a628:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc0a62c:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc0a630:	38 21 00 30 	addi    r1,r1,48                               
ffc0a634:	4e 80 00 20 	blr                                            
                                                                      

ffc04e60 <rtems_cpu_usage_report_with_plugin>: */ void rtems_cpu_usage_report_with_plugin( void *context, rtems_printk_plugin_t print ) {
ffc04e60:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc04e64:	7c 08 02 a6 	mflr    r0                                     
ffc04e68:	93 21 00 5c 	stw     r25,92(r1)                             
    uint32_t seconds, nanoseconds;                                    
  #else                                                               
    uint32_t           total_units = 0;                               
  #endif                                                              
                                                                      
  if ( !print )                                                       
ffc04e6c:	7c 99 23 79 	mr.     r25,r4                                 
 */                                                                   
void rtems_cpu_usage_report_with_plugin(                              
  void                  *context,                                     
  rtems_printk_plugin_t  print                                        
)                                                                     
{                                                                     
ffc04e70:	90 01 00 7c 	stw     r0,124(r1)                             
ffc04e74:	92 21 00 3c 	stw     r17,60(r1)                             
ffc04e78:	92 41 00 40 	stw     r18,64(r1)                             
ffc04e7c:	92 61 00 44 	stw     r19,68(r1)                             
ffc04e80:	92 81 00 48 	stw     r20,72(r1)                             
ffc04e84:	92 a1 00 4c 	stw     r21,76(r1)                             
ffc04e88:	92 c1 00 50 	stw     r22,80(r1)                             
ffc04e8c:	92 e1 00 54 	stw     r23,84(r1)                             
ffc04e90:	93 01 00 58 	stw     r24,88(r1)                             
ffc04e94:	93 41 00 60 	stw     r26,96(r1)                             
ffc04e98:	93 61 00 64 	stw     r27,100(r1)                            
ffc04e9c:	93 81 00 68 	stw     r28,104(r1)                            
ffc04ea0:	93 a1 00 6c 	stw     r29,108(r1)                            
ffc04ea4:	93 c1 00 70 	stw     r30,112(r1)                            
ffc04ea8:	93 e1 00 74 	stw     r31,116(r1)                            
    uint32_t seconds, nanoseconds;                                    
  #else                                                               
    uint32_t           total_units = 0;                               
  #endif                                                              
                                                                      
  if ( !print )                                                       
ffc04eac:	41 82 02 50 	beq-    ffc050fc <rtems_cpu_usage_report_with_plugin+0x29c><== NEVER TAKEN
                                                                      
static inline void _Timestamp64_implementation_Set_to_zero(           
  Timestamp64_Control *_time                                          
)                                                                     
{                                                                     
  *_time = 0;                                                         
ffc04eb0:	39 40 00 00 	li      r10,0                                  
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
ffc04eb4:	7f 29 03 a6 	mtctr   r25                                    
ffc04eb8:	39 60 00 00 	li      r11,0                                  
ffc04ebc:	91 41 00 20 	stw     r10,32(r1)                             
ffc04ec0:	3c 80 ff c2 	lis     r4,-62                                 
ffc04ec4:	91 61 00 24 	stw     r11,36(r1)                             
ffc04ec8:	38 84 22 38 	addi    r4,r4,8760                             
   *  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;            
ffc04ecc:	3d 20 00 00 	lis     r9,0                                   
ffc04ed0:	3e 60 00 00 	lis     r19,0                                  
ffc04ed4:	39 29 29 20 	addi    r9,r9,10528                            
ffc04ed8:	3a 73 30 78 	addi    r19,r19,12408                          
ffc04edc:	83 89 00 00 	lwz     r28,0(r9)                              
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
                                                                      
        (*print)(                                                     
ffc04ee0:	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;            
ffc04ee4:	83 a9 00 04 	lwz     r29,4(r9)                              
 */                                                                   
static inline void _TOD_Get_uptime(                                   
  Timestamp_Control *time                                             
)                                                                     
{                                                                     
  _TOD_Get_with_nanoseconds( time, &_TOD.uptime );                    
ffc04ee8:	3e e0 00 00 	lis     r23,0                                  
           */                                                         
                                                                      
          seconds = _Timestamp_Get_seconds( &ran );                   
          nanoseconds = _Timestamp_Get_nanoseconds( &ran ) /          
            TOD_NANOSECONDS_PER_MICROSECOND;                          
          (*print)( context,                                          
ffc04eec:	3e c0 ff c2 	lis     r22,-62                                
ffc04ef0:	7c 78 1b 78 	mr      r24,r3                                 
        }                                                             
      }                                                               
    }                                                                 
  #endif                                                              
                                                                      
  (*print)(                                                           
ffc04ef4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04ef8:	4e 80 04 21 	bctrl                                          
#endif                                                                
                                                                      
/*                                                                    
 *  rtems_cpu_usage_report                                            
 */                                                                   
void rtems_cpu_usage_report_with_plugin(                              
ffc04efc:	3a 53 00 0c 	addi    r18,r19,12                             
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
                                                                      
        (*print)(                                                     
ffc04f00:	3a 94 23 ac 	addi    r20,r20,9132                           
    Thread_Control    *the_thread,                                    
    Timestamp_Control *time_of_context_switch                         
  )                                                                   
  {                                                                   
    #ifndef RTEMS_SMP                                                 
      if ( _Thread_Executing->Object.id == the_thread->Object.id ) {  
ffc04f04:	3e a0 00 00 	lis     r21,0                                  
ffc04f08:	3a f7 30 68 	addi    r23,r23,12392                          
           */                                                         
                                                                      
          seconds = _Timestamp_Get_seconds( &ran );                   
          nanoseconds = _Timestamp_Get_nanoseconds( &ran ) /          
            TOD_NANOSECONDS_PER_MICROSECOND;                          
          (*print)( context,                                          
ffc04f0c:	3a d6 23 c0 	addi    r22,r22,9152                           
    #if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG)             
      if ( !_Objects_Information_table[ api_index ] )                 
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
ffc04f10:	85 33 00 04 	lwzu    r9,4(r19)                              
ffc04f14:	83 49 00 04 	lwz     r26,4(r9)                              
    if ( information ) {                                              
ffc04f18:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc04f1c:	41 9e 01 70 	beq-    cr7,ffc0508c <rtems_cpu_usage_report_with_plugin+0x22c><== NEVER TAKEN
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
ffc04f20:	a1 1a 00 10 	lhz     r8,16(r26)                             
ffc04f24:	71 06 ff ff 	andi.   r6,r8,65535                            
ffc04f28:	41 82 01 64 	beq-    ffc0508c <rtems_cpu_usage_report_with_plugin+0x22c>
ffc04f2c:	3b 60 00 01 	li      r27,1                                  
ffc04f30:	48 00 00 b4 	b       ffc04fe4 <rtems_cpu_usage_report_with_plugin+0x184>
ffc04f34:	48 00 79 5d 	bl      ffc0c890 <_TOD_Get_with_nanoseconds>   
ffc04f38:	81 01 00 28 	lwz     r8,40(r1)                              
ffc04f3c:	81 21 00 2c 	lwz     r9,44(r1)                              
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
ffc04f40:	7d 3d 48 10 	subfc   r9,r29,r9                              
ffc04f44:	7d 1c 41 10 	subfe   r8,r28,r8                              
ffc04f48:	91 01 00 20 	stw     r8,32(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 );            
ffc04f4c:	38 61 00 18 	addi    r3,r1,24                               
ffc04f50:	38 81 00 20 	addi    r4,r1,32                               
ffc04f54:	91 21 00 24 	stw     r9,36(r1)                              
ffc04f58:	38 a1 00 34 	addi    r5,r1,52                               
ffc04f5c:	38 c1 00 30 	addi    r6,r1,48                               
ffc04f60:	48 00 a6 7d 	bl      ffc0f5dc <_Timestamp64_Divide>         
                                                                      
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          seconds = _Timestamp_Get_seconds( &ran );                   
ffc04f64:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc04f68:	83 e1 00 1c 	lwz     r31,28(r1)                             
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_seconds(       
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time / 1000000000L);                           
ffc04f6c:	3c c0 3b 9a 	lis     r6,15258                               
ffc04f70:	38 a0 00 00 	li      r5,0                                   
ffc04f74:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc04f78:	7f c3 f3 78 	mr      r3,r30                                 
ffc04f7c:	7f e4 fb 78 	mr      r4,r31                                 
ffc04f80:	48 01 a1 45 	bl      ffc1f0c4 <__divdi3>                    
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_nanoseconds(   
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time % 1000000000L);                           
ffc04f84:	3c c0 3b 9a 	lis     r6,15258                               
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_seconds(       
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time / 1000000000L);                           
ffc04f88:	7c 91 23 78 	mr      r17,r4                                 
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_nanoseconds(   
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time % 1000000000L);                           
ffc04f8c:	38 a0 00 00 	li      r5,0                                   
ffc04f90:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc04f94:	7f c3 f3 78 	mr      r3,r30                                 
ffc04f98:	7f e4 fb 78 	mr      r4,r31                                 
ffc04f9c:	48 01 a5 4d 	bl      ffc1f4e8 <__moddi3>                    
          nanoseconds = _Timestamp_Get_nanoseconds( &ran ) /          
ffc04fa0:	3c c0 10 62 	lis     r6,4194                                
ffc04fa4:	60 c6 4d d3 	ori     r6,r6,19923                            
            TOD_NANOSECONDS_PER_MICROSECOND;                          
          (*print)( context,                                          
ffc04fa8:	81 01 00 30 	lwz     r8,48(r1)                              
          /*                                                          
           * Print the information                                    
           */                                                         
                                                                      
          seconds = _Timestamp_Get_seconds( &ran );                   
          nanoseconds = _Timestamp_Get_nanoseconds( &ran ) /          
ffc04fac:	7c c4 30 16 	mulhwu  r6,r4,r6                               
            TOD_NANOSECONDS_PER_MICROSECOND;                          
          (*print)( context,                                          
ffc04fb0:	80 e1 00 34 	lwz     r7,52(r1)                              
ffc04fb4:	7f 29 03 a6 	mtctr   r25                                    
ffc04fb8:	7f 03 c3 78 	mr      r3,r24                                 
ffc04fbc:	7e c4 b3 78 	mr      r4,r22                                 
ffc04fc0:	7e 25 8b 78 	mr      r5,r17                                 
ffc04fc4:	54 c6 d1 be 	rlwinm  r6,r6,26,6,31                          
ffc04fc8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04fcc:	4e 80 04 21 	bctrl                                          
ffc04fd0:	a1 1a 00 10 	lhz     r8,16(r26)                             
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( information ) {                                              
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
ffc04fd4:	3b 7b 00 01 	addi    r27,r27,1                              
ffc04fd8:	55 09 04 3e 	clrlwi  r9,r8,16                               
ffc04fdc:	7f 89 d8 40 	cmplw   cr7,r9,r27                             
ffc04fe0:	41 9c 00 ac 	blt-    cr7,ffc0508c <rtems_cpu_usage_report_with_plugin+0x22c>
        the_thread = (Thread_Control *)information->local_table[ i ]; 
ffc04fe4:	81 3a 00 1c 	lwz     r9,28(r26)                             
ffc04fe8:	57 6a 10 3a 	rlwinm  r10,r27,2,0,29                         
                                                                      
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
ffc04fec:	38 a1 00 08 	addi    r5,r1,8                                
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( information ) {                                              
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
        the_thread = (Thread_Control *)information->local_table[ i ]; 
ffc04ff0:	7f e9 50 2e 	lwzx    r31,r9,r10                             
                                                                      
        if ( !the_thread )                                            
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
ffc04ff4:	38 80 00 0d 	li      r4,13                                  
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( information ) {                                              
      for ( i=1 ; i <= information->maximum ; i++ ) {                 
        the_thread = (Thread_Control *)information->local_table[ i ]; 
                                                                      
        if ( !the_thread )                                            
ffc04ff8:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc04ffc:	41 be ff d8 	beq-    cr7,ffc04fd4 <rtems_cpu_usage_report_with_plugin+0x174><== NEVER TAKEN
          continue;                                                   
                                                                      
        rtems_object_get_name( the_thread->Object.id, sizeof(name), name );
ffc05000:	80 7f 00 08 	lwz     r3,8(r31)                              
ffc05004:	48 00 5e 71 	bl      ffc0ae74 <rtems_object_get_name>       
                                                                      
        (*print)(                                                     
ffc05008:	7e 84 a3 78 	mr      r4,r20                                 
ffc0500c:	38 c1 00 08 	addi    r6,r1,8                                
ffc05010:	80 bf 00 08 	lwz     r5,8(r31)                              
ffc05014:	7f 03 c3 78 	mr      r3,r24                                 
ffc05018:	7f 29 03 a6 	mtctr   r25                                    
ffc0501c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc05020:	4e 80 04 21 	bctrl                                          
    Thread_Control    *the_thread,                                    
    Timestamp_Control *time_of_context_switch                         
  )                                                                   
  {                                                                   
    #ifndef RTEMS_SMP                                                 
      if ( _Thread_Executing->Object.id == the_thread->Object.id ) {  
ffc05024:	39 35 35 e0 	addi    r9,r21,13792                           
ffc05028:	81 49 00 10 	lwz     r10,16(r9)                             
ffc0502c:	38 61 00 28 	addi    r3,r1,40                               
ffc05030:	81 1f 00 08 	lwz     r8,8(r31)                              
ffc05034:	7e e4 bb 78 	mr      r4,r23                                 
ffc05038:	81 4a 00 08 	lwz     r10,8(r10)                             
                                                                      
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
ffc0503c:	80 df 00 80 	lwz     r6,128(r31)                            
    Thread_Control    *the_thread,                                    
    Timestamp_Control *time_of_context_switch                         
  )                                                                   
  {                                                                   
    #ifndef RTEMS_SMP                                                 
      if ( _Thread_Executing->Object.id == the_thread->Object.id ) {  
ffc05040:	7f 88 50 00 	cmpw    cr7,r8,r10                             
                                                                      
          /*                                                          
           * If this is the currently executing thread, account for time
           * since the last context switch.                           
           */                                                         
          ran = the_thread->cpu_time_used;                            
ffc05044:	80 ff 00 84 	lwz     r7,132(r31)                            
ffc05048:	90 c1 00 18 	stw     r6,24(r1)                              
ffc0504c:	90 e1 00 1c 	stw     r7,28(r1)                              
    Thread_Control    *the_thread,                                    
    Timestamp_Control *time_of_context_switch                         
  )                                                                   
  {                                                                   
    #ifndef RTEMS_SMP                                                 
      if ( _Thread_Executing->Object.id == the_thread->Object.id ) {  
ffc05050:	40 9e fe e4 	bne+    cr7,ffc04f34 <rtems_cpu_usage_report_with_plugin+0xd4>
        *time_of_context_switch = _Thread_Time_of_last_context_switch;
ffc05054:	83 c9 00 20 	lwz     r30,32(r9)                             
ffc05058:	83 e9 00 24 	lwz     r31,36(r9)                             
ffc0505c:	48 00 78 35 	bl      ffc0c890 <_TOD_Get_with_nanoseconds>   
           */                                                         
          ran = the_thread->cpu_time_used;                            
          if ( is_executing_on_a_core( the_thread, &last ) ) {        
            Timestamp_Control used;                                   
            _TOD_Get_uptime( &uptime );                               
            _Timestamp_Subtract( &last, &uptime, &used );             
ffc05060:	81 01 00 28 	lwz     r8,40(r1)                              
ffc05064:	81 21 00 2c 	lwz     r9,44(r1)                              
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
ffc05068:	81 41 00 18 	lwz     r10,24(r1)                             
ffc0506c:	81 61 00 1c 	lwz     r11,28(r1)                             
  const Timestamp64_Control *_start,                                  
  const Timestamp64_Control *_end,                                    
  Timestamp64_Control       *_result                                  
)                                                                     
{                                                                     
  *_result = *_end - *_start;                                         
ffc05070:	7f ff 48 10 	subfc   r31,r31,r9                             
ffc05074:	7f de 41 10 	subfe   r30,r30,r8                             
static inline void _Timestamp64_implementation_Add_to(                
  Timestamp64_Control       *_time,                                   
  const Timestamp64_Control *_add                                     
)                                                                     
{                                                                     
  *_time += *_add;                                                    
ffc05078:	7d 6b f8 14 	addc    r11,r11,r31                            
ffc0507c:	7d 4a f1 14 	adde    r10,r10,r30                            
ffc05080:	91 41 00 18 	stw     r10,24(r1)                             
ffc05084:	91 61 00 1c 	stw     r11,28(r1)                             
ffc05088:	4b ff fe b8 	b       ffc04f40 <rtems_cpu_usage_report_with_plugin+0xe0>
       " ID         | NAME                                   | TICKS         | PERCENT\n"
     #endif                                                           
     "------------+----------------------------------------+---------------+---------\n"
  );                                                                  
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
ffc0508c:	7f 93 90 00 	cmpw    cr7,r19,r18                            
ffc05090:	40 9e fe 80 	bne+    cr7,ffc04f10 <rtems_cpu_usage_report_with_plugin+0xb0>
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    seconds = _Timestamp_Get_seconds( &total );                       
ffc05094:	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);                           
ffc05098:	3c c0 3b 9a 	lis     r6,15258                               
ffc0509c:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc050a0:	38 a0 00 00 	li      r5,0                                   
ffc050a4:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc050a8:	7f c3 f3 78 	mr      r3,r30                                 
ffc050ac:	7f e4 fb 78 	mr      r4,r31                                 
ffc050b0:	48 01 a0 15 	bl      ffc1f0c4 <__divdi3>                    
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_nanoseconds(   
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time % 1000000000L);                           
ffc050b4:	3c c0 3b 9a 	lis     r6,15258                               
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_seconds(       
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time / 1000000000L);                           
ffc050b8:	7c 9d 23 78 	mr      r29,r4                                 
                                                                      
static inline uint32_t _Timestamp64_implementation_Get_nanoseconds(   
  const Timestamp64_Control *_time                                    
)                                                                     
{                                                                     
  return (uint32_t) (*_time % 1000000000L);                           
ffc050bc:	38 a0 00 00 	li      r5,0                                   
ffc050c0:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc050c4:	7f c3 f3 78 	mr      r3,r30                                 
ffc050c8:	7f e4 fb 78 	mr      r4,r31                                 
ffc050cc:	48 01 a4 1d 	bl      ffc1f4e8 <__moddi3>                    
    nanoseconds = _Timestamp_Get_nanoseconds( &total ) /              
ffc050d0:	3d 20 10 62 	lis     r9,4194                                
ffc050d4:	61 29 4d d3 	ori     r9,r9,19923                            
      TOD_NANOSECONDS_PER_MICROSECOND;                                
    (*print)(                                                         
ffc050d8:	7f 29 03 a6 	mtctr   r25                                    
    }                                                                 
  }                                                                   
                                                                      
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    seconds = _Timestamp_Get_seconds( &total );                       
    nanoseconds = _Timestamp_Get_nanoseconds( &total ) /              
ffc050dc:	7c c4 48 16 	mulhwu  r6,r4,r9                               
      TOD_NANOSECONDS_PER_MICROSECOND;                                
    (*print)(                                                         
ffc050e0:	3c 80 ff c2 	lis     r4,-62                                 
ffc050e4:	7f 03 c3 78 	mr      r3,r24                                 
ffc050e8:	38 84 23 d8 	addi    r4,r4,9176                             
ffc050ec:	7f a5 eb 78 	mr      r5,r29                                 
ffc050f0:	54 c6 d1 be 	rlwinm  r6,r6,26,6,31                          
ffc050f4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc050f8:	4e 80 04 21 	bctrl                                          
       "-------------------------------------------------------------------------------\n",
       _Watchdog_Ticks_since_boot - CPU_usage_Ticks_at_last_reset,    
       total_units                                                    
    );                                                                
  #endif                                                              
}                                                                     
ffc050fc:	80 01 00 7c 	lwz     r0,124(r1)                             
ffc05100:	82 21 00 3c 	lwz     r17,60(r1)                             
ffc05104:	7c 08 03 a6 	mtlr    r0                                     
ffc05108:	82 41 00 40 	lwz     r18,64(r1)                             
ffc0510c:	82 61 00 44 	lwz     r19,68(r1)                             
ffc05110:	82 81 00 48 	lwz     r20,72(r1)                             
ffc05114:	82 a1 00 4c 	lwz     r21,76(r1)                             
ffc05118:	82 c1 00 50 	lwz     r22,80(r1)                             
ffc0511c:	82 e1 00 54 	lwz     r23,84(r1)                             
ffc05120:	83 01 00 58 	lwz     r24,88(r1)                             
ffc05124:	83 21 00 5c 	lwz     r25,92(r1)                             
ffc05128:	83 41 00 60 	lwz     r26,96(r1)                             
ffc0512c:	83 61 00 64 	lwz     r27,100(r1)                            
ffc05130:	83 81 00 68 	lwz     r28,104(r1)                            
ffc05134:	83 a1 00 6c 	lwz     r29,108(r1)                            
ffc05138:	83 c1 00 70 	lwz     r30,112(r1)                            
ffc0513c:	83 e1 00 74 	lwz     r31,116(r1)                            
ffc05140:	38 21 00 78 	addi    r1,r1,120                              
ffc05144:	4e 80 00 20 	blr                                            
                                                                      

ffc12f90 <rtems_deviceio_errno>: [RTEMS_PROXY_BLOCKING] = EIO }; int rtems_deviceio_errno(rtems_status_code sc) { if (sc == RTEMS_SUCCESSFUL) {
ffc12f90:	2c 03 00 00 	cmpwi   r3,0                                   
ffc12f94:	40 82 00 0c 	bne-    ffc12fa0 <rtems_deviceio_errno+0x10>   
    return 0;                                                         
ffc12f98:	38 60 00 00 	li      r3,0                                   
ffc12f9c:	4e 80 00 20 	blr                                            
  } else {                                                            
    int eno = EINVAL;                                                 
                                                                      
    if ((unsigned) sc <= RTEMS_STATUS_CODES_LAST) {                   
ffc12fa0:	2b 83 00 1c 	cmplwi  cr7,r3,28                              
  [RTEMS_IO_ERROR]                 = EIO,                             
  [RTEMS_PROXY_BLOCKING]           = EIO                              
};                                                                    
                                                                      
int rtems_deviceio_errno(rtems_status_code sc)                        
{                                                                     
ffc12fa4:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc12fa8:	7c 08 02 a6 	mflr    r0                                     
ffc12fac:	93 e1 00 0c 	stw     r31,12(r1)                             
  if (sc == RTEMS_SUCCESSFUL) {                                       
    return 0;                                                         
  } else {                                                            
    int eno = EINVAL;                                                 
ffc12fb0:	3b e0 00 16 	li      r31,22                                 
  [RTEMS_IO_ERROR]                 = EIO,                             
  [RTEMS_PROXY_BLOCKING]           = EIO                              
};                                                                    
                                                                      
int rtems_deviceio_errno(rtems_status_code sc)                        
{                                                                     
ffc12fb4:	90 01 00 14 	stw     r0,20(r1)                              
  if (sc == RTEMS_SUCCESSFUL) {                                       
    return 0;                                                         
  } else {                                                            
    int eno = EINVAL;                                                 
                                                                      
    if ((unsigned) sc <= RTEMS_STATUS_CODES_LAST) {                   
ffc12fb8:	41 9d 00 14 	bgt-    cr7,ffc12fcc <rtems_deviceio_errno+0x3c><== NEVER TAKEN
      eno = status_code_to_errno [sc];                                
ffc12fbc:	3d 20 ff c2 	lis     r9,-62                                 
ffc12fc0:	54 63 10 3a 	rlwinm  r3,r3,2,0,29                           
ffc12fc4:	39 29 02 68 	addi    r9,r9,616                              
ffc12fc8:	7f e9 18 2e 	lwzx    r31,r9,r3                              
    }                                                                 
                                                                      
    errno = eno;                                                      
ffc12fcc:	48 00 00 ad 	bl      ffc13078 <__errno>                     
                                                                      
    return -1;                                                        
  }                                                                   
}                                                                     
ffc12fd0:	80 01 00 14 	lwz     r0,20(r1)                              
                                                                      
    if ((unsigned) sc <= RTEMS_STATUS_CODES_LAST) {                   
      eno = status_code_to_errno [sc];                                
    }                                                                 
                                                                      
    errno = eno;                                                      
ffc12fd4:	93 e3 00 00 	stw     r31,0(r3)                              
                                                                      
    return -1;                                                        
ffc12fd8:	38 60 ff ff 	li      r3,-1                                  
  }                                                                   
}                                                                     
ffc12fdc:	7c 08 03 a6 	mtlr    r0                                     
ffc12fe0:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc12fe4:	38 21 00 10 	addi    r1,r1,16                               
ffc12fe8:	4e 80 00 20 	blr                                            
                                                                      

ffc04c14 <rtems_disk_create_log>: dev_t phys, rtems_blkdev_bnum block_begin, rtems_blkdev_bnum block_count, const char *name ) {
ffc04c14:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc04c18:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device *phys_dd = NULL;                                  
  rtems_disk_device *dd = NULL;                                       
ffc04c1c:	39 40 00 00 	li      r10,0                                  
  dev_t phys,                                                         
  rtems_blkdev_bnum block_begin,                                      
  rtems_blkdev_bnum block_count,                                      
  const char *name                                                    
)                                                                     
{                                                                     
ffc04c20:	93 01 00 18 	stw     r24,24(r1)                             
ffc04c24:	7c f8 3b 78 	mr      r24,r7                                 
ffc04c28:	93 21 00 1c 	stw     r25,28(r1)                             
ffc04c2c:	7d 19 43 78 	mr      r25,r8                                 
ffc04c30:	93 41 00 20 	stw     r26,32(r1)                             
ffc04c34:	7d 3a 4b 78 	mr      r26,r9                                 
ffc04c38:	93 61 00 24 	stw     r27,36(r1)                             
ffc04c3c:	93 81 00 28 	stw     r28,40(r1)                             
ffc04c40:	7c bc 2b 78 	mr      r28,r5                                 
ffc04c44:	93 a1 00 2c 	stw     r29,44(r1)                             
ffc04c48:	7c dd 33 78 	mr      r29,r6                                 
ffc04c4c:	93 c1 00 30 	stw     r30,48(r1)                             
ffc04c50:	7c 7e 1b 78 	mr      r30,r3                                 
ffc04c54:	93 e1 00 34 	stw     r31,52(r1)                             
ffc04c58:	7c 9f 23 78 	mr      r31,r4                                 
ffc04c5c:	90 01 00 3c 	stw     r0,60(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device *phys_dd = NULL;                                  
  rtems_disk_device *dd = NULL;                                       
ffc04c60:	91 41 00 0c 	stw     r10,12(r1)                             
  char *alloc_name = NULL;                                            
ffc04c64:	91 41 00 08 	stw     r10,8(r1)                              
                                                                      
  sc = disk_lock();                                                   
ffc04c68:	4b ff fa 11 	bl      ffc04678 <disk_lock>                   
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04c6c:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc04c70:	41 82 00 38 	beq-    ffc04ca8 <rtems_disk_create_log+0x94>  <== ALWAYS TAKEN
  }                                                                   
                                                                      
  disk_unlock();                                                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04c74:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc04c78:	7f 63 db 78 	mr      r3,r27                                 
ffc04c7c:	83 01 00 18 	lwz     r24,24(r1)                             
ffc04c80:	7c 08 03 a6 	mtlr    r0                                     
ffc04c84:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc04c88:	83 41 00 20 	lwz     r26,32(r1)                             
ffc04c8c:	83 61 00 24 	lwz     r27,36(r1)                             
ffc04c90:	83 81 00 28 	lwz     r28,40(r1)                             
ffc04c94:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc04c98:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc04c9c:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc04ca0:	38 21 00 38 	addi    r1,r1,56                               
ffc04ca4:	4e 80 00 20 	blr                                            
  sc = disk_lock();                                                   
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
                                                                      
  phys_dd = get_disk_entry(phys, true);                               
ffc04ca8:	7f a4 eb 78 	mr      r4,r29                                 
ffc04cac:	7f 83 e3 78 	mr      r3,r28                                 
ffc04cb0:	38 a0 00 01 	li      r5,1                                   
ffc04cb4:	4b ff f8 d5 	bl      ffc04588 <get_disk_entry>              
  if (phys_dd == NULL) {                                              
ffc04cb8:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc04cbc:	41 82 00 b8 	beq-    ffc04d74 <rtems_disk_create_log+0x160> 
    disk_unlock();                                                    
                                                                      
    return RTEMS_INVALID_ID;                                          
  }                                                                   
                                                                      
  sc = create_disk(dev, name, &dd, &alloc_name);                      
ffc04cc0:	7f c3 f3 78 	mr      r3,r30                                 
ffc04cc4:	7f e4 fb 78 	mr      r4,r31                                 
ffc04cc8:	7f 45 d3 78 	mr      r5,r26                                 
ffc04ccc:	38 c1 00 0c 	addi    r6,r1,12                               
ffc04cd0:	38 e1 00 08 	addi    r7,r1,8                                
ffc04cd4:	4b ff fa 55 	bl      ffc04728 <create_disk>                 
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04cd8:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc04cdc:	40 82 00 60 	bne-    ffc04d3c <rtems_disk_create_log+0x128> 
    disk_unlock();                                                    
                                                                      
    return sc;                                                        
  }                                                                   
                                                                      
  sc = rtems_disk_init_log(                                           
ffc04ce0:	80 61 00 0c 	lwz     r3,12(r1)                              
ffc04ce4:	7f a4 eb 78 	mr      r4,r29                                 
ffc04ce8:	7f 05 c3 78 	mr      r5,r24                                 
ffc04cec:	7f 26 cb 78 	mr      r6,r25                                 
ffc04cf0:	48 00 e3 c9 	bl      ffc130b8 <rtems_disk_init_log>         
  );                                                                  
                                                                      
  dd->dev = dev;                                                      
  dd->name = alloc_name;                                              
                                                                      
  ++phys_dd->uses;                                                    
ffc04cf4:	81 5d 00 14 	lwz     r10,20(r29)                            
                                                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04cf8:	7c 7b 1b 79 	mr.     r27,r3                                 
    phys_dd,                                                          
    block_begin,                                                      
    block_count                                                       
  );                                                                  
                                                                      
  dd->dev = dev;                                                      
ffc04cfc:	81 21 00 0c 	lwz     r9,12(r1)                              
  dd->name = alloc_name;                                              
ffc04d00:	81 01 00 08 	lwz     r8,8(r1)                               
                                                                      
  ++phys_dd->uses;                                                    
ffc04d04:	39 4a 00 01 	addi    r10,r10,1                              
    phys_dd,                                                          
    block_begin,                                                      
    block_count                                                       
  );                                                                  
                                                                      
  dd->dev = dev;                                                      
ffc04d08:	93 c9 00 00 	stw     r30,0(r9)                              
ffc04d0c:	93 e9 00 04 	stw     r31,4(r9)                              
  dd->name = alloc_name;                                              
ffc04d10:	91 09 00 10 	stw     r8,16(r9)                              
                                                                      
  ++phys_dd->uses;                                                    
ffc04d14:	91 5d 00 14 	stw     r10,20(r29)                            
                                                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04d18:	41 a2 00 24 	beq+    ffc04d3c <rtems_disk_create_log+0x128> 
    dd->ioctl = null_handler;                                         
ffc04d1c:	3d 40 ff c0 	lis     r10,-64                                
ffc04d20:	39 4a 46 04 	addi    r10,r10,17924                          
ffc04d24:	91 49 00 38 	stw     r10,56(r9)                             
    rtems_disk_delete(dev);                                           
ffc04d28:	7f e4 fb 78 	mr      r4,r31                                 
ffc04d2c:	7f c3 f3 78 	mr      r3,r30                                 
ffc04d30:	4b ff fc 49 	bl      ffc04978 <rtems_disk_delete>           
    disk_unlock();                                                    
ffc04d34:	4b ff f9 ad 	bl      ffc046e0 <disk_unlock>                 
ffc04d38:	4b ff ff 3c 	b       ffc04c74 <rtems_disk_create_log+0x60>  
                                                                      
    return sc;                                                        
  }                                                                   
                                                                      
  disk_unlock();                                                      
ffc04d3c:	4b ff f9 a5 	bl      ffc046e0 <disk_unlock>                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04d40:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc04d44:	7f 63 db 78 	mr      r3,r27                                 
ffc04d48:	83 01 00 18 	lwz     r24,24(r1)                             
ffc04d4c:	7c 08 03 a6 	mtlr    r0                                     
ffc04d50:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc04d54:	83 41 00 20 	lwz     r26,32(r1)                             
ffc04d58:	83 61 00 24 	lwz     r27,36(r1)                             
ffc04d5c:	83 81 00 28 	lwz     r28,40(r1)                             
ffc04d60:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc04d64:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc04d68:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc04d6c:	38 21 00 38 	addi    r1,r1,56                               
ffc04d70:	4e 80 00 20 	blr                                            
    return sc;                                                        
  }                                                                   
                                                                      
  phys_dd = get_disk_entry(phys, true);                               
  if (phys_dd == NULL) {                                              
    disk_unlock();                                                    
ffc04d74:	4b ff f9 6d 	bl      ffc046e0 <disk_unlock>                 
  }                                                                   
                                                                      
  disk_unlock();                                                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04d78:	80 01 00 3c 	lwz     r0,60(r1)                              
                                                                      
  phys_dd = get_disk_entry(phys, true);                               
  if (phys_dd == NULL) {                                              
    disk_unlock();                                                    
                                                                      
    return RTEMS_INVALID_ID;                                          
ffc04d7c:	3b 60 00 04 	li      r27,4                                  
  }                                                                   
                                                                      
  disk_unlock();                                                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04d80:	83 01 00 18 	lwz     r24,24(r1)                             
ffc04d84:	7c 08 03 a6 	mtlr    r0                                     
ffc04d88:	7f 63 db 78 	mr      r3,r27                                 
ffc04d8c:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc04d90:	83 41 00 20 	lwz     r26,32(r1)                             
ffc04d94:	83 61 00 24 	lwz     r27,36(r1)                             
ffc04d98:	83 81 00 28 	lwz     r28,40(r1)                             
ffc04d9c:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc04da0:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc04da4:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc04da8:	38 21 00 38 	addi    r1,r1,56                               
ffc04dac:	4e 80 00 20 	blr                                            
                                                                      

ffc04db0 <rtems_disk_create_phys>: rtems_blkdev_bnum block_count, rtems_block_device_ioctl handler, void *driver_data, const char *name ) {
ffc04db0:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc04db4:	7c 08 02 a6 	mflr    r0                                     
  rtems_disk_device *dd = NULL;                                       
ffc04db8:	39 40 00 00 	li      r10,0                                  
  rtems_blkdev_bnum block_count,                                      
  rtems_block_device_ioctl handler,                                   
  void *driver_data,                                                  
  const char *name                                                    
)                                                                     
{                                                                     
ffc04dbc:	93 61 00 24 	stw     r27,36(r1)                             
  rtems_disk_device *dd = NULL;                                       
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  char *alloc_name = NULL;                                            
                                                                      
  if (handler == NULL) {                                              
ffc04dc0:	7c fb 3b 79 	mr.     r27,r7                                 
  rtems_blkdev_bnum block_count,                                      
  rtems_block_device_ioctl handler,                                   
  void *driver_data,                                                  
  const char *name                                                    
)                                                                     
{                                                                     
ffc04dc4:	93 a1 00 2c 	stw     r29,44(r1)                             
  rtems_disk_device *dd = NULL;                                       
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  char *alloc_name = NULL;                                            
                                                                      
  if (handler == NULL) {                                              
    return RTEMS_INVALID_ADDRESS;                                     
ffc04dc8:	3b a0 00 09 	li      r29,9                                  
  rtems_blkdev_bnum block_count,                                      
  rtems_block_device_ioctl handler,                                   
  void *driver_data,                                                  
  const char *name                                                    
)                                                                     
{                                                                     
ffc04dcc:	90 01 00 3c 	stw     r0,60(r1)                              
ffc04dd0:	93 01 00 18 	stw     r24,24(r1)                             
ffc04dd4:	93 21 00 1c 	stw     r25,28(r1)                             
ffc04dd8:	93 41 00 20 	stw     r26,32(r1)                             
ffc04ddc:	93 81 00 28 	stw     r28,40(r1)                             
ffc04de0:	93 c1 00 30 	stw     r30,48(r1)                             
ffc04de4:	93 e1 00 34 	stw     r31,52(r1)                             
  rtems_disk_device *dd = NULL;                                       
ffc04de8:	91 41 00 0c 	stw     r10,12(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  char *alloc_name = NULL;                                            
ffc04dec:	91 41 00 08 	stw     r10,8(r1)                              
                                                                      
  if (handler == NULL) {                                              
ffc04df0:	41 82 00 28 	beq-    ffc04e18 <rtems_disk_create_phys+0x68> 
ffc04df4:	7c 9f 23 78 	mr      r31,r4                                 
ffc04df8:	7c 7e 1b 78 	mr      r30,r3                                 
ffc04dfc:	7c b9 2b 78 	mr      r25,r5                                 
ffc04e00:	7c da 33 78 	mr      r26,r6                                 
ffc04e04:	7d 18 43 78 	mr      r24,r8                                 
ffc04e08:	7d 3c 4b 78 	mr      r28,r9                                 
    return RTEMS_INVALID_ADDRESS;                                     
  }                                                                   
                                                                      
  sc = disk_lock();                                                   
ffc04e0c:	4b ff f8 6d 	bl      ffc04678 <disk_lock>                   
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04e10:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc04e14:	41 82 00 38 	beq-    ffc04e4c <rtems_disk_create_phys+0x9c> <== ALWAYS TAKEN
  }                                                                   
                                                                      
  disk_unlock();                                                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04e18:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc04e1c:	7f a3 eb 78 	mr      r3,r29                                 
ffc04e20:	83 01 00 18 	lwz     r24,24(r1)                             
ffc04e24:	7c 08 03 a6 	mtlr    r0                                     
ffc04e28:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc04e2c:	83 41 00 20 	lwz     r26,32(r1)                             
ffc04e30:	83 61 00 24 	lwz     r27,36(r1)                             
ffc04e34:	83 81 00 28 	lwz     r28,40(r1)                             
ffc04e38:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc04e3c:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc04e40:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc04e44:	38 21 00 38 	addi    r1,r1,56                               
ffc04e48:	4e 80 00 20 	blr                                            
  sc = disk_lock();                                                   
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
                                                                      
  sc = create_disk(dev, name, &dd, &alloc_name);                      
ffc04e4c:	7f c3 f3 78 	mr      r3,r30                                 
ffc04e50:	7f e4 fb 78 	mr      r4,r31                                 
ffc04e54:	7f 85 e3 78 	mr      r5,r28                                 
ffc04e58:	38 c1 00 0c 	addi    r6,r1,12                               
ffc04e5c:	38 e1 00 08 	addi    r7,r1,8                                
ffc04e60:	4b ff f8 c9 	bl      ffc04728 <create_disk>                 
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04e64:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc04e68:	40 82 00 38 	bne-    ffc04ea0 <rtems_disk_create_phys+0xf0> 
    disk_unlock();                                                    
                                                                      
    return sc;                                                        
  }                                                                   
                                                                      
  sc = rtems_disk_init_phys(                                          
ffc04e6c:	80 61 00 0c 	lwz     r3,12(r1)                              
ffc04e70:	7f 24 cb 78 	mr      r4,r25                                 
ffc04e74:	7f 45 d3 78 	mr      r5,r26                                 
ffc04e78:	7f 66 db 78 	mr      r6,r27                                 
ffc04e7c:	7f 07 c3 78 	mr      r7,r24                                 
ffc04e80:	48 00 e1 59 	bl      ffc12fd8 <rtems_disk_init_phys>        
    block_count,                                                      
    handler,                                                          
    driver_data                                                       
  );                                                                  
                                                                      
  dd->dev = dev;                                                      
ffc04e84:	81 21 00 0c 	lwz     r9,12(r1)                              
  dd->name = alloc_name;                                              
                                                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04e88:	7c 7d 1b 79 	mr.     r29,r3                                 
    handler,                                                          
    driver_data                                                       
  );                                                                  
                                                                      
  dd->dev = dev;                                                      
  dd->name = alloc_name;                                              
ffc04e8c:	81 41 00 08 	lwz     r10,8(r1)                              
    block_count,                                                      
    handler,                                                          
    driver_data                                                       
  );                                                                  
                                                                      
  dd->dev = dev;                                                      
ffc04e90:	93 c9 00 00 	stw     r30,0(r9)                              
ffc04e94:	93 e9 00 04 	stw     r31,4(r9)                              
  dd->name = alloc_name;                                              
ffc04e98:	91 49 00 10 	stw     r10,16(r9)                             
                                                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc04e9c:	40 82 00 3c 	bne-    ffc04ed8 <rtems_disk_create_phys+0x128>
    dd->ioctl = null_handler;                                         
    rtems_disk_delete(dev);                                           
    disk_unlock();                                                    
ffc04ea0:	4b ff f8 41 	bl      ffc046e0 <disk_unlock>                 
  }                                                                   
                                                                      
  disk_unlock();                                                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04ea4:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc04ea8:	7f a3 eb 78 	mr      r3,r29                                 
ffc04eac:	83 01 00 18 	lwz     r24,24(r1)                             
ffc04eb0:	7c 08 03 a6 	mtlr    r0                                     
ffc04eb4:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc04eb8:	83 41 00 20 	lwz     r26,32(r1)                             
ffc04ebc:	83 61 00 24 	lwz     r27,36(r1)                             
ffc04ec0:	83 81 00 28 	lwz     r28,40(r1)                             
ffc04ec4:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc04ec8:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc04ecc:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc04ed0:	38 21 00 38 	addi    r1,r1,56                               
ffc04ed4:	4e 80 00 20 	blr                                            
                                                                      
  dd->dev = dev;                                                      
  dd->name = alloc_name;                                              
                                                                      
  if (sc != RTEMS_SUCCESSFUL) {                                       
    dd->ioctl = null_handler;                                         
ffc04ed8:	3d 40 ff c0 	lis     r10,-64                                
ffc04edc:	39 4a 46 04 	addi    r10,r10,17924                          
ffc04ee0:	91 49 00 38 	stw     r10,56(r9)                             
    rtems_disk_delete(dev);                                           
ffc04ee4:	7f e4 fb 78 	mr      r4,r31                                 
ffc04ee8:	7f c3 f3 78 	mr      r3,r30                                 
ffc04eec:	4b ff fa 8d 	bl      ffc04978 <rtems_disk_delete>           
    disk_unlock();                                                    
ffc04ef0:	4b ff f7 f1 	bl      ffc046e0 <disk_unlock>                 
ffc04ef4:	4b ff ff b0 	b       ffc04ea4 <rtems_disk_create_phys+0xf4> 
                                                                      

ffc04978 <rtems_disk_delete>: } } rtems_status_code rtems_disk_delete(dev_t dev) {
ffc04978:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc0497c:	7c 08 02 a6 	mflr    r0                                     
ffc04980:	93 81 00 28 	stw     r28,40(r1)                             
ffc04984:	93 c1 00 30 	stw     r30,48(r1)                             
ffc04988:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0498c:	93 e1 00 34 	stw     r31,52(r1)                             
ffc04990:	7c 9f 23 78 	mr      r31,r4                                 
ffc04994:	90 01 00 3c 	stw     r0,60(r1)                              
ffc04998:	92 a1 00 0c 	stw     r21,12(r1)                             
ffc0499c:	92 c1 00 10 	stw     r22,16(r1)                             
ffc049a0:	92 e1 00 14 	stw     r23,20(r1)                             
ffc049a4:	93 01 00 18 	stw     r24,24(r1)                             
ffc049a8:	93 21 00 1c 	stw     r25,28(r1)                             
ffc049ac:	93 41 00 20 	stw     r26,32(r1)                             
ffc049b0:	93 61 00 24 	stw     r27,36(r1)                             
ffc049b4:	93 a1 00 2c 	stw     r29,44(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device *dd = NULL;                                       
                                                                      
  sc = disk_lock();                                                   
ffc049b8:	4b ff fc c1 	bl      ffc04678 <disk_lock>                   
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc049bc:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc049c0:	41 82 00 44 	beq-    ffc04a04 <rtems_disk_delete+0x8c>      <== ALWAYS TAKEN
  rtems_disk_cleanup(dd);                                             
                                                                      
  disk_unlock();                                                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc049c4:	80 01 00 3c 	lwz     r0,60(r1)                              <== NOT EXECUTED
ffc049c8:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc049cc:	82 a1 00 0c 	lwz     r21,12(r1)                             <== NOT EXECUTED
ffc049d0:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc049d4:	82 c1 00 10 	lwz     r22,16(r1)                             <== NOT EXECUTED
ffc049d8:	82 e1 00 14 	lwz     r23,20(r1)                             <== NOT EXECUTED
ffc049dc:	83 01 00 18 	lwz     r24,24(r1)                             <== NOT EXECUTED
ffc049e0:	83 21 00 1c 	lwz     r25,28(r1)                             <== NOT EXECUTED
ffc049e4:	83 41 00 20 	lwz     r26,32(r1)                             <== NOT EXECUTED
ffc049e8:	83 61 00 24 	lwz     r27,36(r1)                             <== NOT EXECUTED
ffc049ec:	83 81 00 28 	lwz     r28,40(r1)                             <== NOT EXECUTED
ffc049f0:	83 a1 00 2c 	lwz     r29,44(r1)                             <== NOT EXECUTED
ffc049f4:	83 c1 00 30 	lwz     r30,48(r1)                             <== NOT EXECUTED
ffc049f8:	83 e1 00 34 	lwz     r31,52(r1)                             <== NOT EXECUTED
ffc049fc:	38 21 00 38 	addi    r1,r1,56                               <== NOT EXECUTED
ffc04a00:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  sc = disk_lock();                                                   
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
                                                                      
  dd = get_disk_entry(dev, true);                                     
ffc04a04:	7f c3 f3 78 	mr      r3,r30                                 
ffc04a08:	7f e4 fb 78 	mr      r4,r31                                 
ffc04a0c:	38 a0 00 01 	li      r5,1                                   
ffc04a10:	4b ff fb 79 	bl      ffc04588 <get_disk_entry>              
  if (dd == NULL) {                                                   
ffc04a14:	7c 69 1b 79 	mr.     r9,r3                                  
ffc04a18:	41 82 01 84 	beq-    ffc04b9c <rtems_disk_delete+0x224>     <== NEVER TAKEN
    disk_unlock();                                                    
                                                                      
    return RTEMS_INVALID_ID;                                          
  }                                                                   
                                                                      
  dd->deleted = true;                                                 
ffc04a1c:	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;  
ffc04a20:	83 29 00 08 	lwz     r25,8(r9)                              
    disk_unlock();                                                    
                                                                      
    return RTEMS_INVALID_ID;                                          
  }                                                                   
                                                                      
  dd->deleted = true;                                                 
ffc04a24:	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) {                                       
ffc04a28:	89 59 00 40 	lbz     r10,64(r25)                            
ffc04a2c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc04a30:	41 9e 01 14 	beq-    cr7,ffc04b44 <rtems_disk_delete+0x1cc> 
    dev_t dev = physical_disk->dev;                                   
    unsigned deleted_count = 0;                                       
                                                                      
    for (major = 0; major < disktab_size; ++major) {                  
ffc04a34:	3f 60 00 00 	lis     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;                                   
ffc04a38:	83 b9 00 00 	lwz     r29,0(r25)                             
    unsigned deleted_count = 0;                                       
                                                                      
    for (major = 0; major < disktab_size; ++major) {                  
ffc04a3c:	81 3b 28 e0 	lwz     r9,10464(r27)                          
ffc04a40:	3a c0 00 00 	li      r22,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;                                   
ffc04a44:	83 19 00 04 	lwz     r24,4(r25)                             
    unsigned deleted_count = 0;                                       
                                                                      
    for (major = 0; major < disktab_size; ++major) {                  
ffc04a48:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04a4c:	41 9e 00 a0 	beq-    cr7,ffc04aec <rtems_disk_delete+0x174> <== NEVER TAKEN
ffc04a50:	3b 40 00 00 	li      r26,0                                  
ffc04a54:	3a fb 28 e0 	addi    r23,r27,10464                          
          if (dd->uses == 0) {                                        
            ++deleted_count;                                          
            dtab->minor [minor] = NULL;                               
            free_disk_device(dd);                                     
          } else {                                                    
            dd->deleted = true;                                       
ffc04a58:	3a a0 00 01 	li      r21,1                                  
  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;                
ffc04a5c:	81 37 00 04 	lwz     r9,4(r23)                              
    }                                                                 
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_disk_delete(dev_t dev)                                          
ffc04a60:	57 5e 18 38 	rlwinm  r30,r26,3,0,28                         
  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;                
ffc04a64:	7f c9 f2 14 	add     r30,r9,r30                             
                                                                      
      for (minor = 0; minor < dtab->size; ++minor) {                  
ffc04a68:	80 be 00 04 	lwz     r5,4(r30)                              
ffc04a6c:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc04a70:	41 9e 00 6c 	beq-    cr7,ffc04adc <rtems_disk_delete+0x164> 
ffc04a74:	3b e0 00 00 	li      r31,0                                  
ffc04a78:	48 00 00 10 	b       ffc04a88 <rtems_disk_delete+0x110>     
ffc04a7c:	3b ff 00 01 	addi    r31,r31,1                              
ffc04a80:	7f 9f 28 40 	cmplw   cr7,r31,r5                             
ffc04a84:	40 9c 00 58 	bge-    cr7,ffc04adc <rtems_disk_delete+0x164> 
        rtems_disk_device *dd = dtab->minor [minor];                  
ffc04a88:	81 1e 00 00 	lwz     r8,0(r30)                              
    }                                                                 
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_disk_delete(dev_t dev)                                          
ffc04a8c:	57 ea 10 3a 	rlwinm  r10,r31,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];                  
ffc04a90:	7c 68 50 2e 	lwzx    r3,r8,r10                              
                                                                      
        if (dd != NULL && dd->phys_dev->dev == dev && dd != physical_disk) {
ffc04a94:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04a98:	41 be ff e4 	beq-    cr7,ffc04a7c <rtems_disk_delete+0x104> 
ffc04a9c:	80 e3 00 08 	lwz     r7,8(r3)                               
ffc04aa0:	80 c7 00 00 	lwz     r6,0(r7)                               
ffc04aa4:	7f 86 e8 00 	cmpw    cr7,r6,r29                             
ffc04aa8:	40 9e ff d4 	bne+    cr7,ffc04a7c <rtems_disk_delete+0x104> <== NEVER TAKEN
ffc04aac:	80 e7 00 04 	lwz     r7,4(r7)                               
ffc04ab0:	7f 87 c0 00 	cmpw    cr7,r7,r24                             
ffc04ab4:	40 9e ff c8 	bne+    cr7,ffc04a7c <rtems_disk_delete+0x104> <== NEVER TAKEN
ffc04ab8:	7f 99 18 00 	cmpw    cr7,r25,r3                             
ffc04abc:	41 be ff c0 	beq-    cr7,ffc04a7c <rtems_disk_delete+0x104> 
          if (dd->uses == 0) {                                        
ffc04ac0:	80 e3 00 14 	lwz     r7,20(r3)                              
ffc04ac4:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc04ac8:	41 9e 00 c0 	beq-    cr7,ffc04b88 <rtems_disk_delete+0x210> 
    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) {                  
ffc04acc:	3b ff 00 01 	addi    r31,r31,1                              
          if (dd->uses == 0) {                                        
            ++deleted_count;                                          
            dtab->minor [minor] = NULL;                               
            free_disk_device(dd);                                     
          } else {                                                    
            dd->deleted = true;                                       
ffc04ad0:	9a a3 00 40 	stb     r21,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) {                  
ffc04ad4:	7f 9f 28 40 	cmplw   cr7,r31,r5                             
ffc04ad8:	41 9c ff b0 	blt+    cr7,ffc04a88 <rtems_disk_delete+0x110> <== ALWAYS TAKEN
                                                                      
  if (physical_disk->deleted) {                                       
    dev_t dev = physical_disk->dev;                                   
    unsigned deleted_count = 0;                                       
                                                                      
    for (major = 0; major < disktab_size; ++major) {                  
ffc04adc:	81 37 00 00 	lwz     r9,0(r23)                              
ffc04ae0:	3b 5a 00 01 	addi    r26,r26,1                              
ffc04ae4:	7f 9a 48 40 	cmplw   cr7,r26,r9                             
ffc04ae8:	41 9c ff 74 	blt+    cr7,ffc04a5c <rtems_disk_delete+0xe4>  
          }                                                           
        }                                                             
      }                                                               
    }                                                                 
                                                                      
    physical_disk->uses -= deleted_count;                             
ffc04aec:	81 39 00 14 	lwz     r9,20(r25)                             
ffc04af0:	7e d6 48 50 	subf    r22,r22,r9                             
    if (physical_disk->uses == 0) {                                   
ffc04af4:	2f 96 00 00 	cmpwi   cr7,r22,0                              
          }                                                           
        }                                                             
      }                                                               
    }                                                                 
                                                                      
    physical_disk->uses -= deleted_count;                             
ffc04af8:	92 d9 00 14 	stw     r22,20(r25)                            
    if (physical_disk->uses == 0) {                                   
ffc04afc:	41 9e 00 e8 	beq-    cr7,ffc04be4 <rtems_disk_delete+0x26c> 
  }                                                                   
                                                                      
  dd->deleted = true;                                                 
  rtems_disk_cleanup(dd);                                             
                                                                      
  disk_unlock();                                                      
ffc04b00:	4b ff fb e1 	bl      ffc046e0 <disk_unlock>                 
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04b04:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc04b08:	7f 83 e3 78 	mr      r3,r28                                 
ffc04b0c:	82 a1 00 0c 	lwz     r21,12(r1)                             
ffc04b10:	7c 08 03 a6 	mtlr    r0                                     
ffc04b14:	82 c1 00 10 	lwz     r22,16(r1)                             
ffc04b18:	82 e1 00 14 	lwz     r23,20(r1)                             
ffc04b1c:	83 01 00 18 	lwz     r24,24(r1)                             
ffc04b20:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc04b24:	83 41 00 20 	lwz     r26,32(r1)                             
ffc04b28:	83 61 00 24 	lwz     r27,36(r1)                             
ffc04b2c:	83 81 00 28 	lwz     r28,40(r1)                             
ffc04b30:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc04b34:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc04b38:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc04b3c:	38 21 00 38 	addi    r1,r1,56                               
ffc04b40:	4e 80 00 20 	blr                                            
      rtems_filesystem_split_dev_t(physical_disk->dev, major, minor); 
      disktab [major].minor [minor] = NULL;                           
      free_disk_device(physical_disk);                                
    }                                                                 
  } else {                                                            
    if (disk_to_remove->uses == 0) {                                  
ffc04b44:	81 49 00 14 	lwz     r10,20(r9)                             
ffc04b48:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc04b4c:	40 9e ff b4 	bne+    cr7,ffc04b00 <rtems_disk_delete+0x188> <== NEVER TAKEN
      --physical_disk->uses;                                          
      rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
ffc04b50:	81 09 00 00 	lwz     r8,0(r9)                               
      disktab [major].minor [minor] = NULL;                           
ffc04b54:	3d 40 00 00 	lis     r10,0                                  
ffc04b58:	80 ea 28 e4 	lwz     r7,10468(r10)                          
      free_disk_device(physical_disk);                                
    }                                                                 
  } else {                                                            
    if (disk_to_remove->uses == 0) {                                  
      --physical_disk->uses;                                          
      rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
ffc04b5c:	81 29 00 04 	lwz     r9,4(r9)                               
      disktab [major].minor [minor] = NULL;                           
ffc04b60:	55 08 18 38 	rlwinm  r8,r8,3,0,28                           
      disktab [major].minor [minor] = NULL;                           
      free_disk_device(physical_disk);                                
    }                                                                 
  } else {                                                            
    if (disk_to_remove->uses == 0) {                                  
      --physical_disk->uses;                                          
ffc04b64:	81 59 00 14 	lwz     r10,20(r25)                            
      rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
      disktab [major].minor [minor] = NULL;                           
ffc04b68:	7d 07 40 2e 	lwzx    r8,r7,r8                               
ffc04b6c:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
      disktab [major].minor [minor] = NULL;                           
      free_disk_device(physical_disk);                                
    }                                                                 
  } else {                                                            
    if (disk_to_remove->uses == 0) {                                  
      --physical_disk->uses;                                          
ffc04b70:	39 4a ff ff 	addi    r10,r10,-1                             
ffc04b74:	91 59 00 14 	stw     r10,20(r25)                            
      rtems_filesystem_split_dev_t(disk_to_remove->dev, major, minor);
      disktab [major].minor [minor] = NULL;                           
ffc04b78:	7f 88 49 2e 	stwx    r28,r8,r9                              
      free_disk_device(disk_to_remove);                               
ffc04b7c:	4b ff fa 91 	bl      ffc0460c <free_disk_device>            
  }                                                                   
                                                                      
  dd->deleted = true;                                                 
  rtems_disk_cleanup(dd);                                             
                                                                      
  disk_unlock();                                                      
ffc04b80:	4b ff fb 61 	bl      ffc046e0 <disk_unlock>                 
ffc04b84:	4b ff ff 80 	b       ffc04b04 <rtems_disk_delete+0x18c>     
        rtems_disk_device *dd = dtab->minor [minor];                  
                                                                      
        if (dd != NULL && dd->phys_dev->dev == dev && dd != physical_disk) {
          if (dd->uses == 0) {                                        
            ++deleted_count;                                          
            dtab->minor [minor] = NULL;                               
ffc04b88:	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;                                          
ffc04b8c:	3a d6 00 01 	addi    r22,r22,1                              
            dtab->minor [minor] = NULL;                               
            free_disk_device(dd);                                     
ffc04b90:	4b ff fa 7d 	bl      ffc0460c <free_disk_device>            
ffc04b94:	80 be 00 04 	lwz     r5,4(r30)                              
ffc04b98:	4b ff fe e4 	b       ffc04a7c <rtems_disk_delete+0x104>     
    return sc;                                                        
  }                                                                   
                                                                      
  dd = get_disk_entry(dev, true);                                     
  if (dd == NULL) {                                                   
    disk_unlock();                                                    
ffc04b9c:	4b ff fb 45 	bl      ffc046e0 <disk_unlock>                 <== NOT EXECUTED
  rtems_disk_cleanup(dd);                                             
                                                                      
  disk_unlock();                                                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04ba0:	80 01 00 3c 	lwz     r0,60(r1)                              <== NOT EXECUTED
                                                                      
  dd = get_disk_entry(dev, true);                                     
  if (dd == NULL) {                                                   
    disk_unlock();                                                    
                                                                      
    return RTEMS_INVALID_ID;                                          
ffc04ba4:	3b 80 00 04 	li      r28,4                                  <== NOT EXECUTED
  rtems_disk_cleanup(dd);                                             
                                                                      
  disk_unlock();                                                      
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc04ba8:	82 a1 00 0c 	lwz     r21,12(r1)                             <== NOT EXECUTED
ffc04bac:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc04bb0:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc04bb4:	82 c1 00 10 	lwz     r22,16(r1)                             <== NOT EXECUTED
ffc04bb8:	82 e1 00 14 	lwz     r23,20(r1)                             <== NOT EXECUTED
ffc04bbc:	83 01 00 18 	lwz     r24,24(r1)                             <== NOT EXECUTED
ffc04bc0:	83 21 00 1c 	lwz     r25,28(r1)                             <== NOT EXECUTED
ffc04bc4:	83 41 00 20 	lwz     r26,32(r1)                             <== NOT EXECUTED
ffc04bc8:	83 61 00 24 	lwz     r27,36(r1)                             <== NOT EXECUTED
ffc04bcc:	83 81 00 28 	lwz     r28,40(r1)                             <== NOT EXECUTED
ffc04bd0:	83 a1 00 2c 	lwz     r29,44(r1)                             <== NOT EXECUTED
ffc04bd4:	83 c1 00 30 	lwz     r30,48(r1)                             <== NOT EXECUTED
ffc04bd8:	83 e1 00 34 	lwz     r31,52(r1)                             <== NOT EXECUTED
ffc04bdc:	38 21 00 38 	addi    r1,r1,56                               <== NOT EXECUTED
ffc04be0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
      }                                                               
    }                                                                 
                                                                      
    physical_disk->uses -= deleted_count;                             
    if (physical_disk->uses == 0) {                                   
      rtems_filesystem_split_dev_t(physical_disk->dev, major, minor); 
ffc04be4:	81 59 00 00 	lwz     r10,0(r25)                             
      disktab [major].minor [minor] = NULL;                           
ffc04be8:	3b 7b 28 e0 	addi    r27,r27,10464                          
ffc04bec:	81 1b 00 04 	lwz     r8,4(r27)                              
      free_disk_device(physical_disk);                                
ffc04bf0:	7f 23 cb 78 	mr      r3,r25                                 
      }                                                               
    }                                                                 
                                                                      
    physical_disk->uses -= deleted_count;                             
    if (physical_disk->uses == 0) {                                   
      rtems_filesystem_split_dev_t(physical_disk->dev, major, minor); 
ffc04bf4:	81 39 00 04 	lwz     r9,4(r25)                              
      disktab [major].minor [minor] = NULL;                           
ffc04bf8:	55 4a 18 38 	rlwinm  r10,r10,3,0,28                         
ffc04bfc:	7d 48 50 2e 	lwzx    r10,r8,r10                             
ffc04c00:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc04c04:	7e ca 49 2e 	stwx    r22,r10,r9                             
      free_disk_device(physical_disk);                                
ffc04c08:	4b ff fa 05 	bl      ffc0460c <free_disk_device>            
  }                                                                   
                                                                      
  dd->deleted = true;                                                 
  rtems_disk_cleanup(dd);                                             
                                                                      
  disk_unlock();                                                      
ffc04c0c:	4b ff fa d5 	bl      ffc046e0 <disk_unlock>                 
ffc04c10:	4b ff fe f4 	b       ffc04b04 <rtems_disk_delete+0x18c>     
                                                                      

ffc05250 <rtems_disk_io_done>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_disk_io_done(void) {
ffc05250:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc05254:	7c 08 02 a6 	mflr    r0                                     
ffc05258:	93 61 00 0c 	stw     r27,12(r1)                             
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  for (major = 0; major < disktab_size; ++major) {                    
ffc0525c:	3f 60 00 00 	lis     r27,0                                  
ffc05260:	81 3b 28 e0 	lwz     r9,10464(r27)                          
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_disk_io_done(void)                                              
{                                                                     
ffc05264:	93 81 00 10 	stw     r28,16(r1)                             
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  for (major = 0; major < disktab_size; ++major) {                    
ffc05268:	3b 9b 28 e0 	addi    r28,r27,10464                          
ffc0526c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_disk_io_done(void)                                              
{                                                                     
ffc05270:	93 a1 00 14 	stw     r29,20(r1)                             
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  for (major = 0; major < disktab_size; ++major) {                    
ffc05274:	3b a0 00 00 	li      r29,0                                  
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_disk_io_done(void)                                              
{                                                                     
ffc05278:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc0527c:	90 01 00 24 	stw     r0,36(r1)                              
ffc05280:	93 c1 00 18 	stw     r30,24(r1)                             
ffc05284:	83 fc 00 04 	lwz     r31,4(r28)                             
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  for (major = 0; major < disktab_size; ++major) {                    
ffc05288:	41 9e 00 64 	beq-    cr7,ffc052ec <rtems_disk_io_done+0x9c> <== NEVER TAKEN
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_disk_io_done(void)                                              
ffc0528c:	57 a9 18 38 	rlwinm  r9,r29,3,0,28                          
{                                                                     
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  for (major = 0; major < disktab_size; ++major) {                    
    rtems_disk_device_table *dtab = disktab + major;                  
ffc05290:	7f df 4a 14 	add     r30,r31,r9                             
ffc05294:	7d 1f 48 2e 	lwzx    r8,r31,r9                              
                                                                      
    for (minor = 0; minor < dtab->size; ++minor) {                    
ffc05298:	81 5e 00 04 	lwz     r10,4(r30)                             
ffc0529c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc052a0:	41 9e 00 34 	beq-    cr7,ffc052d4 <rtems_disk_io_done+0x84> 
ffc052a4:	3b e0 00 00 	li      r31,0                                  
      rtems_disk_device *dd = dtab->minor [minor];                    
ffc052a8:	57 e9 10 3a 	rlwinm  r9,r31,2,0,29                          
ffc052ac:	7c 68 48 2e 	lwzx    r3,r8,r9                               
  rtems_device_minor_number minor = 0;                                
                                                                      
  for (major = 0; major < disktab_size; ++major) {                    
    rtems_disk_device_table *dtab = disktab + major;                  
                                                                      
    for (minor = 0; minor < dtab->size; ++minor) {                    
ffc052b0:	3b ff 00 01 	addi    r31,r31,1                              
      rtems_disk_device *dd = dtab->minor [minor];                    
                                                                      
      if (dd != NULL) {                                               
ffc052b4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc052b8:	41 9e 00 10 	beq-    cr7,ffc052c8 <rtems_disk_io_done+0x78> 
        free_disk_device(dd);                                         
ffc052bc:	4b ff f3 51 	bl      ffc0460c <free_disk_device>            
ffc052c0:	81 5e 00 04 	lwz     r10,4(r30)                             
ffc052c4:	81 1e 00 00 	lwz     r8,0(r30)                              
  rtems_device_minor_number minor = 0;                                
                                                                      
  for (major = 0; major < disktab_size; ++major) {                    
    rtems_disk_device_table *dtab = disktab + major;                  
                                                                      
    for (minor = 0; minor < dtab->size; ++minor) {                    
ffc052c8:	7f 8a f8 40 	cmplw   cr7,r10,r31                            
ffc052cc:	41 9d ff dc 	bgt+    cr7,ffc052a8 <rtems_disk_io_done+0x58> 
ffc052d0:	83 fc 00 04 	lwz     r31,4(r28)                             
                                                                      
      if (dd != NULL) {                                               
        free_disk_device(dd);                                         
      }                                                               
    }                                                                 
    free(dtab->minor);                                                
ffc052d4:	7d 03 43 78 	mr      r3,r8                                  
ffc052d8:	48 00 0a 41 	bl      ffc05d18 <free>                        
rtems_disk_io_done(void)                                              
{                                                                     
  rtems_device_major_number major = 0;                                
  rtems_device_minor_number minor = 0;                                
                                                                      
  for (major = 0; major < disktab_size; ++major) {                    
ffc052dc:	81 3c 00 00 	lwz     r9,0(r28)                              
ffc052e0:	3b bd 00 01 	addi    r29,r29,1                              
ffc052e4:	7f 89 e8 40 	cmplw   cr7,r9,r29                             
ffc052e8:	41 9d ff a4 	bgt+    cr7,ffc0528c <rtems_disk_io_done+0x3c> 
        free_disk_device(dd);                                         
      }                                                               
    }                                                                 
    free(dtab->minor);                                                
  }                                                                   
  free(disktab);                                                      
ffc052ec:	7f e3 fb 78 	mr      r3,r31                                 
ffc052f0:	48 00 0a 29 	bl      ffc05d18 <free>                        
                                                                      
  rtems_semaphore_delete(diskdevs_mutex);                             
ffc052f4:	80 7c 00 08 	lwz     r3,8(r28)                              
ffc052f8:	48 00 5b 5d 	bl      ffc0ae54 <rtems_semaphore_delete>      
  diskdevs_mutex = RTEMS_ID_NONE;                                     
  disktab = NULL;                                                     
  disktab_size = 0;                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc052fc:	80 01 00 24 	lwz     r0,36(r1)                              
  }                                                                   
  free(disktab);                                                      
                                                                      
  rtems_semaphore_delete(diskdevs_mutex);                             
                                                                      
  diskdevs_mutex = RTEMS_ID_NONE;                                     
ffc05300:	39 20 00 00 	li      r9,0                                   
  disktab = NULL;                                                     
  disktab_size = 0;                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc05304:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc05308:	7c 08 03 a6 	mtlr    r0                                     
ffc0530c:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc05310:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc05314:	38 60 00 00 	li      r3,0                                   
  }                                                                   
  free(disktab);                                                      
                                                                      
  rtems_semaphore_delete(diskdevs_mutex);                             
                                                                      
  diskdevs_mutex = RTEMS_ID_NONE;                                     
ffc05318:	91 3c 00 08 	stw     r9,8(r28)                              
  disktab = NULL;                                                     
ffc0531c:	91 3c 00 04 	stw     r9,4(r28)                              
  disktab_size = 0;                                                   
ffc05320:	91 3b 28 e0 	stw     r9,10464(r27)                          
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc05324:	83 81 00 10 	lwz     r28,16(r1)                             
ffc05328:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0532c:	38 21 00 20 	addi    r1,r1,32                               
ffc05330:	4e 80 00 20 	blr                                            
                                                                      

ffc05154 <rtems_disk_io_initialize>: } } rtems_status_code rtems_disk_io_initialize(void) {
ffc05154:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc05158:	7c 08 02 a6 	mflr    r0                                     
ffc0515c:	93 e1 00 14 	stw     r31,20(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number size = DISKTAB_INITIAL_SIZE;              
                                                                      
  if (disktab_size > 0) {                                             
ffc05160:	3f e0 00 00 	lis     r31,0                                  
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_disk_io_initialize(void)                                        
{                                                                     
ffc05164:	93 a1 00 0c 	stw     r29,12(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number size = DISKTAB_INITIAL_SIZE;              
                                                                      
  if (disktab_size > 0) {                                             
ffc05168:	83 bf 28 e0 	lwz     r29,10464(r31)                         
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_disk_io_initialize(void)                                        
{                                                                     
ffc0516c:	93 81 00 08 	stw     r28,8(r1)                              
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number size = DISKTAB_INITIAL_SIZE;              
                                                                      
  if (disktab_size > 0) {                                             
ffc05170:	3b 9f 28 e0 	addi    r28,r31,10464                          
ffc05174:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_disk_io_initialize(void)                                        
{                                                                     
ffc05178:	93 c1 00 10 	stw     r30,16(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_device_major_number size = DISKTAB_INITIAL_SIZE;              
                                                                      
  if (disktab_size > 0) {                                             
    return RTEMS_SUCCESSFUL;                                          
ffc0517c:	3b c0 00 00 	li      r30,0                                  
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_disk_io_initialize(void)                                        
{                                                                     
ffc05180:	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) {                                             
ffc05184:	41 9e 00 28 	beq-    cr7,ffc051ac <rtems_disk_io_initialize+0x58>
  }                                                                   
                                                                      
  disktab_size = size;                                                
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc05188:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0518c:	7f c3 f3 78 	mr      r3,r30                                 
ffc05190:	83 81 00 08 	lwz     r28,8(r1)                              
ffc05194:	7c 08 03 a6 	mtlr    r0                                     
ffc05198:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0519c:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc051a0:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc051a4:	38 21 00 18 	addi    r1,r1,24                               
ffc051a8:	4e 80 00 20 	blr                                            
                                                                      
  if (disktab_size > 0) {                                             
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  disktab = calloc(size, sizeof(rtems_disk_device_table));            
ffc051ac:	38 60 00 08 	li      r3,8                                   
ffc051b0:	38 80 00 08 	li      r4,8                                   
ffc051b4:	48 00 0a 55 	bl      ffc05c08 <calloc>                      
  if (disktab == NULL) {                                              
    return RTEMS_NO_MEMORY;                                           
ffc051b8:	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) {                                              
ffc051bc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
                                                                      
  if (disktab_size > 0) {                                             
    return RTEMS_SUCCESSFUL;                                          
  }                                                                   
                                                                      
  disktab = calloc(size, sizeof(rtems_disk_device_table));            
ffc051c0:	90 7c 00 04 	stw     r3,4(r28)                              
  if (disktab == NULL) {                                              
ffc051c4:	41 be ff c4 	beq-    cr7,ffc05188 <rtems_disk_io_initialize+0x34><== NEVER TAKEN
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  diskdevs_protected = false;                                         
  sc = rtems_semaphore_create(                                        
ffc051c8:	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;                                         
ffc051cc:	9b bc 00 0c 	stb     r29,12(r28)                            
  sc = rtems_semaphore_create(                                        
ffc051d0:	60 63 45 56 	ori     r3,r3,17750                            
ffc051d4:	38 80 00 01 	li      r4,1                                   
ffc051d8:	38 a0 00 10 	li      r5,16                                  
ffc051dc:	38 c0 00 00 	li      r6,0                                   
ffc051e0:	38 fc 00 08 	addi    r7,r28,8                               
ffc051e4:	48 00 5a 51 	bl      ffc0ac34 <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) {                                       
ffc051e8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc051ec:	41 9e 00 30 	beq-    cr7,ffc0521c <rtems_disk_io_initialize+0xc8><== ALWAYS TAKEN
    free(disktab);                                                    
ffc051f0:	80 7c 00 04 	lwz     r3,4(r28)                              <== NOT EXECUTED
ffc051f4:	48 00 0b 25 	bl      ffc05d18 <free>                        <== NOT EXECUTED
  }                                                                   
                                                                      
  disktab_size = size;                                                
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc051f8:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
ffc051fc:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc05200:	83 81 00 08 	lwz     r28,8(r1)                              <== NOT EXECUTED
ffc05204:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc05208:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc0520c:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc05210:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc05214:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc05218:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    free(disktab);                                                    
                                                                      
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  sc = rtems_bdbuf_init();                                            
ffc0521c:	48 00 c7 0d 	bl      ffc11928 <rtems_bdbuf_init>            
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc05220:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05224:	40 9e 00 14 	bne-    cr7,ffc05238 <rtems_disk_io_initialize+0xe4><== NEVER TAKEN
    free(disktab);                                                    
                                                                      
    return RTEMS_UNSATISFIED;                                         
  }                                                                   
                                                                      
  disktab_size = size;                                                
ffc05228:	39 20 00 08 	li      r9,8                                   
ffc0522c:	91 3f 28 e0 	stw     r9,10464(r31)                          
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc05230:	3b c0 00 00 	li      r30,0                                  
ffc05234:	4b ff ff 54 	b       ffc05188 <rtems_disk_io_initialize+0x34>
    return RTEMS_NO_MEMORY;                                           
  }                                                                   
                                                                      
  sc = rtems_bdbuf_init();                                            
  if (sc != RTEMS_SUCCESSFUL) {                                       
    rtems_semaphore_delete(diskdevs_mutex);                           
ffc05238:	80 7c 00 08 	lwz     r3,8(r28)                              <== NOT EXECUTED
    free(disktab);                                                    
                                                                      
    return RTEMS_UNSATISFIED;                                         
ffc0523c:	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);                           
ffc05240:	48 00 5c 15 	bl      ffc0ae54 <rtems_semaphore_delete>      <== NOT EXECUTED
    free(disktab);                                                    
ffc05244:	80 7c 00 04 	lwz     r3,4(r28)                              <== NOT EXECUTED
ffc05248:	48 00 0a d1 	bl      ffc05d18 <free>                        <== NOT EXECUTED
                                                                      
    return RTEMS_UNSATISFIED;                                         
ffc0524c:	4b ff ff 3c 	b       ffc05188 <rtems_disk_io_initialize+0x34><== NOT EXECUTED
                                                                      

ffc0501c <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) {
ffc0501c:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_disk_device *                                                   
rtems_disk_next(dev_t dev)                                            
{                                                                     
ffc05020:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc05024:	7c 08 02 a6 	mflr    r0                                     
ffc05028:	93 81 00 08 	stw     r28,8(r1)                              
ffc0502c:	90 01 00 1c 	stw     r0,28(r1)                              
ffc05030:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc05034:	93 c1 00 10 	stw     r30,16(r1)                             
ffc05038:	93 e1 00 14 	stw     r31,20(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) {                                            
ffc0503c:	41 9e 01 04 	beq-    cr7,ffc05140 <rtems_disk_next+0x124>   
    rtems_filesystem_split_dev_t(dev, major, minor);                  
                                                                      
    /* If minor wraps around */                                       
    if ((minor + 1) < minor) {                                        
ffc05040:	3b e4 00 01 	addi    r31,r4,1                               
ffc05044:	7f 9f 20 40 	cmplw   cr7,r31,r4                             
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.device = device;                                               
  return temp.__overlay.major;                                        
ffc05048:	7c 7e 1b 78 	mr      r30,r3                                 
ffc0504c:	41 9c 00 e0 	blt-    cr7,ffc0512c <rtems_disk_next+0x110>   <== NEVER TAKEN
    } else {                                                          
      ++minor;                                                        
    }                                                                 
  }                                                                   
                                                                      
  sc = disk_lock();                                                   
ffc05050:	4b ff f6 29 	bl      ffc04678 <disk_lock>                   
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc05054:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05058:	40 9e 00 b0 	bne-    cr7,ffc05108 <rtems_disk_next+0xec>    <== NEVER TAKEN
    return NULL;                                                      
  }                                                                   
                                                                      
  if (major >= disktab_size) {                                        
ffc0505c:	3d 20 00 00 	lis     r9,0                                   
ffc05060:	80 e9 28 e0 	lwz     r7,10464(r9)                           
ffc05064:	39 29 28 e0 	addi    r9,r9,10464                            
ffc05068:	7f 9e 38 40 	cmplw   cr7,r30,r7                             
ffc0506c:	40 9c 00 98 	bge-    cr7,ffc05104 <rtems_disk_next+0xe8>    <== NEVER TAKEN
    disk_unlock();                                                    
                                                                      
    return NULL;                                                      
  }                                                                   
                                                                      
  dtab = disktab + major;                                             
ffc05070:	81 09 00 04 	lwz     r8,4(r9)                               
ffc05074:	57 dd 18 38 	rlwinm  r29,r30,3,0,28                         
ffc05078:	7d 48 e8 2e 	lwzx    r10,r8,r29                             
ffc0507c:	7f a8 ea 14 	add     r29,r8,r29                             
ffc05080:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
         disk_unlock();                                               
                                                                      
         return NULL;                                                 
       }                                                              
       dtab = disktab + major;                                        
    } else if (dtab->minor [minor] == NULL) {                         
ffc05084:	57 fc 10 3a 	rlwinm  r28,r31,2,0,29                         
    return NULL;                                                      
  }                                                                   
                                                                      
  dtab = disktab + major;                                             
  while (true) {                                                      
    if (dtab->minor == NULL || minor >= dtab->size) {                 
ffc05088:	41 9e 00 58 	beq-    cr7,ffc050e0 <rtems_disk_next+0xc4>    
ffc0508c:	81 3d 00 04 	lwz     r9,4(r29)                              
ffc05090:	7f 1f 48 40 	cmplw   cr6,r31,r9                             
                                                                      
         return NULL;                                                 
       }                                                              
       dtab = disktab + major;                                        
    } else if (dtab->minor [minor] == NULL) {                         
      ++minor;                                                        
ffc05094:	3b ff 00 01 	addi    r31,r31,1                              
    return NULL;                                                      
  }                                                                   
                                                                      
  dtab = disktab + major;                                             
  while (true) {                                                      
    if (dtab->minor == NULL || minor >= dtab->size) {                 
ffc05098:	40 98 00 48 	bge-    cr6,ffc050e0 <rtems_disk_next+0xc4>    
         disk_unlock();                                               
                                                                      
         return NULL;                                                 
       }                                                              
       dtab = disktab + major;                                        
    } else if (dtab->minor [minor] == NULL) {                         
ffc0509c:	7d 2a e0 2e 	lwzx    r9,r10,r28                             
ffc050a0:	2f 09 00 00 	cmpwi   cr6,r9,0                               
ffc050a4:	41 9a ff e0 	beq+    cr6,ffc05084 <rtems_disk_next+0x68>    
      ++minor;                                                        
    } else {                                                          
      ++dtab->minor [minor]->uses;                                    
ffc050a8:	81 49 00 14 	lwz     r10,20(r9)                             
ffc050ac:	39 4a 00 01 	addi    r10,r10,1                              
ffc050b0:	91 49 00 14 	stw     r10,20(r9)                             
      disk_unlock();                                                  
ffc050b4:	4b ff f6 2d 	bl      ffc046e0 <disk_unlock>                 
                                                                      
      return dtab->minor [minor];                                     
    }                                                                 
  }                                                                   
}                                                                     
ffc050b8:	80 01 00 1c 	lwz     r0,28(r1)                              
      ++minor;                                                        
    } else {                                                          
      ++dtab->minor [minor]->uses;                                    
      disk_unlock();                                                  
                                                                      
      return dtab->minor [minor];                                     
ffc050bc:	81 3d 00 00 	lwz     r9,0(r29)                              
    }                                                                 
  }                                                                   
}                                                                     
ffc050c0:	7c 08 03 a6 	mtlr    r0                                     
ffc050c4:	83 a1 00 0c 	lwz     r29,12(r1)                             
      ++minor;                                                        
    } else {                                                          
      ++dtab->minor [minor]->uses;                                    
      disk_unlock();                                                  
                                                                      
      return dtab->minor [minor];                                     
ffc050c8:	7c 69 e0 2e 	lwzx    r3,r9,r28                              
    }                                                                 
  }                                                                   
}                                                                     
ffc050cc:	83 81 00 08 	lwz     r28,8(r1)                              
ffc050d0:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc050d4:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc050d8:	38 21 00 18 	addi    r1,r1,24                               
ffc050dc:	4e 80 00 20 	blr                                            
                                                                      
  dtab = disktab + major;                                             
  while (true) {                                                      
    if (dtab->minor == NULL || minor >= dtab->size) {                 
       minor = 0;                                                     
       ++major;                                                       
ffc050e0:	3b de 00 01 	addi    r30,r30,1                              
       if (major >= disktab_size) {                                   
ffc050e4:	7f 87 f0 40 	cmplw   cr7,r7,r30                             
         disk_unlock();                                               
                                                                      
         return NULL;                                                 
       }                                                              
       dtab = disktab + major;                                        
ffc050e8:	57 c9 18 38 	rlwinm  r9,r30,3,0,28                          
ffc050ec:	7f a8 4a 14 	add     r29,r8,r9                              
  }                                                                   
                                                                      
  dtab = disktab + major;                                             
  while (true) {                                                      
    if (dtab->minor == NULL || minor >= dtab->size) {                 
       minor = 0;                                                     
ffc050f0:	3b e0 00 00 	li      r31,0                                  
       ++major;                                                       
       if (major >= disktab_size) {                                   
ffc050f4:	40 9d 00 10 	ble-    cr7,ffc05104 <rtems_disk_next+0xe8>    
ffc050f8:	7d 48 48 2e 	lwzx    r10,r8,r9                              
ffc050fc:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
         disk_unlock();                                               
                                                                      
         return NULL;                                                 
       }                                                              
       dtab = disktab + major;                                        
ffc05100:	4b ff ff 84 	b       ffc05084 <rtems_disk_next+0x68>        
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return NULL;                                                      
  }                                                                   
                                                                      
  if (major >= disktab_size) {                                        
    disk_unlock();                                                    
ffc05104:	4b ff f5 dd 	bl      ffc046e0 <disk_unlock>                 
      disk_unlock();                                                  
                                                                      
      return dtab->minor [minor];                                     
    }                                                                 
  }                                                                   
}                                                                     
ffc05108:	80 01 00 1c 	lwz     r0,28(r1)                              
  }                                                                   
                                                                      
  if (major >= disktab_size) {                                        
    disk_unlock();                                                    
                                                                      
    return NULL;                                                      
ffc0510c:	38 60 00 00 	li      r3,0                                   
      disk_unlock();                                                  
                                                                      
      return dtab->minor [minor];                                     
    }                                                                 
  }                                                                   
}                                                                     
ffc05110:	83 81 00 08 	lwz     r28,8(r1)                              
ffc05114:	7c 08 03 a6 	mtlr    r0                                     
ffc05118:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0511c:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc05120:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc05124:	38 21 00 18 	addi    r1,r1,24                               
ffc05128:	4e 80 00 20 	blr                                            
    rtems_filesystem_split_dev_t(dev, major, minor);                  
                                                                      
    /* If minor wraps around */                                       
    if ((minor + 1) < minor) {                                        
      /* If major wraps around */                                     
      if ((major + 1) < major) {                                      
ffc0512c:	3b c3 00 01 	addi    r30,r3,1                               <== NOT EXECUTED
ffc05130:	7f 9e 18 40 	cmplw   cr7,r30,r3                             <== NOT EXECUTED
        return NULL;                                                  
      }                                                               
      ++major;                                                        
      minor = 0;                                                      
ffc05134:	3b e0 00 00 	li      r31,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) {                                      
ffc05138:	40 9c ff 18 	bge+    cr7,ffc05050 <rtems_disk_next+0x34>    <== NOT EXECUTED
ffc0513c:	4b ff ff cc 	b       ffc05108 <rtems_disk_next+0xec>        <== NOT EXECUTED
  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) {                                            
ffc05140:	2f 84 ff ff 	cmpwi   cr7,r4,-1                              
ffc05144:	40 9e fe fc 	bne+    cr7,ffc05040 <rtems_disk_next+0x24>    <== NEVER TAKEN
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;                                
ffc05148:	3b e0 00 00 	li      r31,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;                                
ffc0514c:	3b c0 00 00 	li      r30,0                                  
ffc05150:	4b ff ff 00 	b       ffc05050 <rtems_disk_next+0x34>        
                                                                      

ffc04ef8 <rtems_disk_obtain>: return RTEMS_SUCCESSFUL; } rtems_disk_device * rtems_disk_obtain(dev_t dev) {
ffc04ef8:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc04efc:	7c 08 02 a6 	mflr    r0                                     
ffc04f00:	93 a1 00 14 	stw     r29,20(r1)                             
ffc04f04:	90 01 00 24 	stw     r0,36(r1)                              
ffc04f08:	93 c1 00 18 	stw     r30,24(r1)                             
ffc04f0c:	93 e1 00 1c 	stw     r31,28(r1)                             
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc04f10:	7f a0 00 a6 	mfmsr   r29                                    
ffc04f14:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc04f18:	7f a9 48 78 	andc    r9,r29,r9                              
ffc04f1c:	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) {                                          
ffc04f20:	3d 20 00 00 	lis     r9,0                                   
ffc04f24:	89 29 28 ec 	lbz     r9,10476(r9)                           
ffc04f28:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04f2c:	41 9e 00 58 	beq-    cr7,ffc04f84 <rtems_disk_obtain+0x8c>  <== ALWAYS TAKEN
ffc04f30:	7c 9f 23 78 	mr      r31,r4                                 <== NOT EXECUTED
ffc04f34:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc04f38:	7f a0 01 24 	mtmsr   r29                                    <== NOT EXECUTED
    dd = get_disk_entry(dev, false);                                  
    rtems_interrupt_enable(level);                                    
  } else {                                                            
    rtems_interrupt_enable(level);                                    
                                                                      
    sc = disk_lock();                                                 
ffc04f3c:	4b ff f7 3d 	bl      ffc04678 <disk_lock>                   <== NOT EXECUTED
    if (sc == RTEMS_SUCCESSFUL) {                                     
ffc04f40:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
                                                                      
rtems_disk_device *                                                   
rtems_disk_obtain(dev_t dev)                                          
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_disk_device *dd = NULL;                                       
ffc04f44:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
    rtems_interrupt_enable(level);                                    
  } else {                                                            
    rtems_interrupt_enable(level);                                    
                                                                      
    sc = disk_lock();                                                 
    if (sc == RTEMS_SUCCESSFUL) {                                     
ffc04f48:	40 9e 00 20 	bne-    cr7,ffc04f68 <rtems_disk_obtain+0x70>  <== NOT EXECUTED
      dd = get_disk_entry(dev, false);                                
ffc04f4c:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc04f50:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc04f54:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc04f58:	4b ff f6 31 	bl      ffc04588 <get_disk_entry>              <== NOT EXECUTED
      disk_unlock();                                                  
ffc04f5c:	90 61 00 08 	stw     r3,8(r1)                               <== NOT EXECUTED
ffc04f60:	4b ff f7 81 	bl      ffc046e0 <disk_unlock>                 <== NOT EXECUTED
ffc04f64:	80 61 00 08 	lwz     r3,8(r1)                               <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  return dd;                                                          
}                                                                     
ffc04f68:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
ffc04f6c:	83 a1 00 14 	lwz     r29,20(r1)                             <== NOT EXECUTED
ffc04f70:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc04f74:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc04f78:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc04f7c:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc04f80:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable(level);                                     
  if (!diskdevs_protected) {                                          
    /* Frequent and quickest case */                                  
    dd = get_disk_entry(dev, false);                                  
ffc04f84:	38 a0 00 00 	li      r5,0                                   
ffc04f88:	4b ff f6 01 	bl      ffc04588 <get_disk_entry>              
ffc04f8c:	7f a0 01 24 	mtmsr   r29                                    
      disk_unlock();                                                  
    }                                                                 
  }                                                                   
                                                                      
  return dd;                                                          
}                                                                     
ffc04f90:	80 01 00 24 	lwz     r0,36(r1)                              
ffc04f94:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc04f98:	7c 08 03 a6 	mtlr    r0                                     
ffc04f9c:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc04fa0:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc04fa4:	38 21 00 20 	addi    r1,r1,32                               
ffc04fa8:	4e 80 00 20 	blr                                            
                                                                      

ffc049f4 <rtems_error>: int rtems_error( rtems_error_code_t error_flag, const char *printf_format, ... ) {
ffc049f4:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc049f8:	7c 08 02 a6 	mflr    r0                                     
ffc049fc:	93 e1 00 74 	stw     r31,116(r1)                            
ffc04a00:	7c 7f 1b 78 	mr      r31,r3                                 
ffc04a04:	90 01 00 7c 	stw     r0,124(r1)                             
ffc04a08:	90 a1 00 18 	stw     r5,24(r1)                              
ffc04a0c:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc04a10:	90 e1 00 20 	stw     r7,32(r1)                              
ffc04a14:	91 01 00 24 	stw     r8,36(r1)                              
ffc04a18:	91 21 00 28 	stw     r9,40(r1)                              
ffc04a1c:	91 41 00 2c 	stw     r10,44(r1)                             
ffc04a20:	40 86 00 24 	bne-    cr1,ffc04a44 <rtems_error+0x50>        <== ALWAYS TAKEN
ffc04a24:	d8 21 00 30 	stfd    f1,48(r1)                              <== NOT EXECUTED
ffc04a28:	d8 41 00 38 	stfd    f2,56(r1)                              <== NOT EXECUTED
ffc04a2c:	d8 61 00 40 	stfd    f3,64(r1)                              <== NOT EXECUTED
ffc04a30:	d8 81 00 48 	stfd    f4,72(r1)                              <== NOT EXECUTED
ffc04a34:	d8 a1 00 50 	stfd    f5,80(r1)                              <== NOT EXECUTED
ffc04a38:	d8 c1 00 58 	stfd    f6,88(r1)                              <== NOT EXECUTED
ffc04a3c:	d8 e1 00 60 	stfd    f7,96(r1)                              <== NOT EXECUTED
ffc04a40:	d9 01 00 68 	stfd    f8,104(r1)                             <== NOT EXECUTED
  va_list arglist;                                                    
  int chars_written;                                                  
                                                                      
  va_start(arglist, printf_format);                                   
ffc04a44:	39 20 00 02 	li      r9,2                                   
ffc04a48:	99 21 00 08 	stb     r9,8(r1)                               
ffc04a4c:	39 20 00 00 	li      r9,0                                   
  chars_written = rtems_verror(error_flag, printf_format, arglist);   
ffc04a50:	7f e3 fb 78 	mr      r3,r31                                 
)                                                                     
{                                                                     
  va_list arglist;                                                    
  int chars_written;                                                  
                                                                      
  va_start(arglist, printf_format);                                   
ffc04a54:	99 21 00 09 	stb     r9,9(r1)                               
ffc04a58:	39 21 00 80 	addi    r9,r1,128                              
  chars_written = rtems_verror(error_flag, printf_format, arglist);   
ffc04a5c:	38 a1 00 08 	addi    r5,r1,8                                
)                                                                     
{                                                                     
  va_list arglist;                                                    
  int chars_written;                                                  
                                                                      
  va_start(arglist, printf_format);                                   
ffc04a60:	91 21 00 0c 	stw     r9,12(r1)                              
ffc04a64:	39 21 00 10 	addi    r9,r1,16                               
ffc04a68:	91 21 00 10 	stw     r9,16(r1)                              
  chars_written = rtems_verror(error_flag, printf_format, arglist);   
ffc04a6c:	4b ff fd d5 	bl      ffc04840 <rtems_verror>                
  va_end(arglist);                                                    
                                                                      
  if (error_flag & RTEMS_ERROR_PANIC) {                               
ffc04a70:	77 e9 20 00 	andis.  r9,r31,8192                            
ffc04a74:	40 82 00 20 	bne-    ffc04a94 <rtems_error+0xa0>            
    rtems_error(0, "fatal error, exiting");                           
    _exit(errno);                                                     
  }                                                                   
  if (error_flag & RTEMS_ERROR_ABORT) {                               
ffc04a78:	77 e9 10 00 	andis.  r9,r31,4096                            
ffc04a7c:	40 82 00 38 	bne-    ffc04ab4 <rtems_error+0xc0>            
    rtems_error(0, "fatal error, aborting");                          
    abort();                                                          
  }                                                                   
                                                                      
  return chars_written;                                               
}                                                                     
ffc04a80:	80 01 00 7c 	lwz     r0,124(r1)                             
ffc04a84:	83 e1 00 74 	lwz     r31,116(r1)                            
ffc04a88:	7c 08 03 a6 	mtlr    r0                                     
ffc04a8c:	38 21 00 78 	addi    r1,r1,120                              
ffc04a90:	4e 80 00 20 	blr                                            
  va_start(arglist, printf_format);                                   
  chars_written = rtems_verror(error_flag, printf_format, arglist);   
  va_end(arglist);                                                    
                                                                      
  if (error_flag & RTEMS_ERROR_PANIC) {                               
    rtems_error(0, "fatal error, exiting");                           
ffc04a94:	3c 80 ff c2 	lis     r4,-62                                 
ffc04a98:	38 84 f9 a8 	addi    r4,r4,-1624                            
ffc04a9c:	38 60 00 00 	li      r3,0                                   
ffc04aa0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04aa4:	4b ff ff 51 	bl      ffc049f4 <rtems_error>                 
    _exit(errno);                                                     
ffc04aa8:	48 00 e5 d1 	bl      ffc13078 <__errno>                     
ffc04aac:	80 63 00 00 	lwz     r3,0(r3)                               
ffc04ab0:	48 00 0b 89 	bl      ffc05638 <_exit>                       
  }                                                                   
  if (error_flag & RTEMS_ERROR_ABORT) {                               
    rtems_error(0, "fatal error, aborting");                          
ffc04ab4:	3c 80 ff c2 	lis     r4,-62                                 
ffc04ab8:	38 84 f9 c0 	addi    r4,r4,-1600                            
ffc04abc:	38 60 00 00 	li      r3,0                                   
ffc04ac0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04ac4:	4b ff ff 31 	bl      ffc049f4 <rtems_error>                 
    abort();                                                          
ffc04ac8:	48 00 e5 95 	bl      ffc1305c <abort>                       
                                                                      

ffc15320 <rtems_event_system_receive>: rtems_event_set *event_out ) { rtems_status_code sc; if ( event_out != NULL ) {
ffc15320:	7c ca 33 79 	mr.     r10,r6                                 
ffc15324:	41 82 00 48 	beq-    ffc1536c <rtems_event_system_receive+0x4c><== 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 ) ) {                        
ffc15328:	2f 83 00 00 	cmpwi   cr7,r3,0                               
  rtems_event_set  event_in,                                          
  rtems_option     option_set,                                        
  rtems_interval   ticks,                                             
  rtems_event_set *event_out                                          
)                                                                     
{                                                                     
ffc1532c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc15330:	7c 08 02 a6 	mflr    r0                                     
  rtems_status_code sc;                                               
                                                                      
  if ( event_out != NULL ) {                                          
    Thread_Control    *executing = _Thread_Executing;                 
ffc15334:	3d 00 00 00 	lis     r8,0                                   
  rtems_event_set  event_in,                                          
  rtems_option     option_set,                                        
  rtems_interval   ticks,                                             
  rtems_event_set *event_out                                          
)                                                                     
{                                                                     
ffc15338:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc1533c:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_status_code sc;                                               
                                                                      
  if ( event_out != NULL ) {                                          
    Thread_Control    *executing = _Thread_Executing;                 
ffc15340:	83 e8 32 10 	lwz     r31,12816(r8)                          
    RTEMS_API_Control *api = executing->API_Extensions[ THREAD_API_RTEMS ];
ffc15344:	81 1f 01 4c 	lwz     r8,332(r31)                            
    Event_Control     *event = &api->System_event;                    
                                                                      
    if ( !_Event_sets_Is_empty( event_in ) ) {                        
ffc15348:	40 9e 00 2c 	bne-    cr7,ffc15374 <rtems_event_system_receive+0x54><== ALWAYS TAKEN
  } else {                                                            
    sc = RTEMS_INVALID_ADDRESS;                                       
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc1534c:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
      _Thread_Enable_dispatch();                                      
                                                                      
      sc = executing->Wait.return_code;                               
    } else {                                                          
      *event_out = event->pending_events;                             
      sc = RTEMS_SUCCESSFUL;                                          
ffc15350:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
      );                                                              
      _Thread_Enable_dispatch();                                      
                                                                      
      sc = executing->Wait.return_code;                               
    } else {                                                          
      *event_out = event->pending_events;                             
ffc15354:	81 28 00 04 	lwz     r9,4(r8)                               <== NOT EXECUTED
  } else {                                                            
    sc = RTEMS_INVALID_ADDRESS;                                       
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc15358:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc1535c:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
      );                                                              
      _Thread_Enable_dispatch();                                      
                                                                      
      sc = executing->Wait.return_code;                               
    } else {                                                          
      *event_out = event->pending_events;                             
ffc15360:	91 2a 00 00 	stw     r9,0(r10)                              <== NOT EXECUTED
  } else {                                                            
    sc = RTEMS_INVALID_ADDRESS;                                       
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc15364:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc15368:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    } else {                                                          
      *event_out = event->pending_events;                             
      sc = RTEMS_SUCCESSFUL;                                          
    }                                                                 
  } else {                                                            
    sc = RTEMS_INVALID_ADDRESS;                                       
ffc1536c:	38 60 00 09 	li      r3,9                                   <== NOT EXECUTED
ffc15370:	4e 80 00 20 	blr                                            <== NOT EXECUTED
   *                                                                  
   * 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;                  
ffc15374:	3d 20 00 00 	lis     r9,0                                   
ffc15378:	81 49 28 20 	lwz     r10,10272(r9)                          
                                                                      
    ++level;                                                          
ffc1537c:	39 4a 00 01 	addi    r10,r10,1                              
    _Thread_Dispatch_disable_level = level;                           
ffc15380:	91 49 28 20 	stw     r10,10272(r9)                          
    RTEMS_API_Control *api = executing->API_Extensions[ THREAD_API_RTEMS ];
    Event_Control     *event = &api->System_event;                    
                                                                      
    if ( !_Event_sets_Is_empty( event_in ) ) {                        
      _Thread_Disable_dispatch();                                     
      _Event_Seize(                                                   
ffc15384:	3d 20 00 00 	lis     r9,0                                   
ffc15388:	7f e7 fb 78 	mr      r7,r31                                 
ffc1538c:	39 08 00 04 	addi    r8,r8,4                                
ffc15390:	39 29 28 54 	addi    r9,r9,10324                            
ffc15394:	3d 40 00 04 	lis     r10,4                                  
ffc15398:	4b ff 54 d9 	bl      ffc0a870 <_Event_Seize>                
        executing,                                                    
        event,                                                        
        &_System_event_Sync_state,                                    
        STATES_WAITING_FOR_SYSTEM_EVENT                               
      );                                                              
      _Thread_Enable_dispatch();                                      
ffc1539c:	4b ff 8d 69 	bl      ffc0e104 <_Thread_Enable_dispatch>     
  } else {                                                            
    sc = RTEMS_INVALID_ADDRESS;                                       
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc153a0:	80 01 00 14 	lwz     r0,20(r1)                              
        &_System_event_Sync_state,                                    
        STATES_WAITING_FOR_SYSTEM_EVENT                               
      );                                                              
      _Thread_Enable_dispatch();                                      
                                                                      
      sc = executing->Wait.return_code;                               
ffc153a4:	80 7f 00 34 	lwz     r3,52(r31)                             
  } else {                                                            
    sc = RTEMS_INVALID_ADDRESS;                                       
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc153a8:	7c 08 03 a6 	mtlr    r0                                     
ffc153ac:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc153b0:	38 21 00 10 	addi    r1,r1,16                               
ffc153b4:	4e 80 00 20 	blr                                            
                                                                      

ffc09ca0 <rtems_event_system_send>: rtems_status_code rtems_event_system_send( rtems_id id, rtems_event_set event_in ) {
ffc09ca0:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc09ca4:	7c 08 02 a6 	mflr    r0                                     
ffc09ca8:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc09cac:	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 );                              
ffc09cb0:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
rtems_status_code rtems_event_system_send(                            
  rtems_id        id,                                                 
  rtems_event_set event_in                                            
)                                                                     
{                                                                     
ffc09cb4:	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 );                              
ffc09cb8:	48 00 2e 25 	bl      ffc0cadc <_Thread_Get>                 
  switch ( location ) {                                               
ffc09cbc:	81 21 00 08 	lwz     r9,8(r1)                               
ffc09cc0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09cc4:	40 9e 00 3c 	bne-    cr7,ffc09d00 <rtems_event_system_send+0x60><== NEVER TAKEN
    case OBJECTS_LOCAL:                                               
      api = thread->API_Extensions[ THREAD_API_RTEMS ];               
      _Event_Surrender(                                               
ffc09cc8:	80 a3 01 4c 	lwz     r5,332(r3)                             
ffc09ccc:	3c c0 00 00 	lis     r6,0                                   
ffc09cd0:	7f e4 fb 78 	mr      r4,r31                                 
ffc09cd4:	38 a5 00 04 	addi    r5,r5,4                                
ffc09cd8:	38 c6 28 9c 	addi    r6,r6,10396                            
ffc09cdc:	3c e0 00 04 	lis     r7,4                                   
ffc09ce0:	4b ff f8 4d 	bl      ffc0952c <_Event_Surrender>            
        event_in,                                                     
        &api->System_event,                                           
        &_System_event_Sync_state,                                    
        STATES_WAITING_FOR_SYSTEM_EVENT                               
      );                                                              
      _Thread_Enable_dispatch();                                      
ffc09ce4:	48 00 2d dd 	bl      ffc0cac0 <_Thread_Enable_dispatch>     
      sc = RTEMS_INVALID_ID;                                          
      break;                                                          
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc09ce8:	80 01 00 24 	lwz     r0,36(r1)                              
ffc09cec:	83 e1 00 1c 	lwz     r31,28(r1)                             
        &api->System_event,                                           
        &_System_event_Sync_state,                                    
        STATES_WAITING_FOR_SYSTEM_EVENT                               
      );                                                              
      _Thread_Enable_dispatch();                                      
      sc = RTEMS_SUCCESSFUL;                                          
ffc09cf0:	38 60 00 00 	li      r3,0                                   
      sc = RTEMS_INVALID_ID;                                          
      break;                                                          
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc09cf4:	7c 08 03 a6 	mtlr    r0                                     
ffc09cf8:	38 21 00 20 	addi    r1,r1,32                               
ffc09cfc:	4e 80 00 20 	blr                                            
ffc09d00:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
    case OBJECTS_REMOTE:                                              
      sc = RTEMS_ILLEGAL_ON_REMOTE_OBJECT;                            
      break;                                                          
#endif                                                                
    default:                                                          
      sc = RTEMS_INVALID_ID;                                          
ffc09d04:	38 60 00 04 	li      r3,4                                   <== NOT EXECUTED
      break;                                                          
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc09d08:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc09d0c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc09d10:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc09d14:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc097d4 <rtems_fdisk_abort.constprop.16>: * * @param format The format string. See printf for details. * @param ... The arguments for the format text. */ static void rtems_fdisk_abort (const char *format, ...)
ffc097d4:	94 21 ff e0 	stwu    r1,-32(r1)                             <== NOT EXECUTED
ffc097d8:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
{                                                                     
  va_list args;                                                       
  va_start (args, format);                                            
  fprintf (stderr, "fdisk:abort:");                                   
ffc097dc:	3c 60 ff c4 	lis     r3,-60                                 <== 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, ...)                           
ffc097e0:	93 e1 00 1c 	stw     r31,28(r1)                             <== NOT EXECUTED
{                                                                     
  va_list args;                                                       
  va_start (args, format);                                            
  fprintf (stderr, "fdisk:abort:");                                   
ffc097e4:	3f e0 00 00 	lis     r31,0                                  <== NOT EXECUTED
ffc097e8:	38 a0 00 0c 	li      r5,12                                  <== 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, ...)                           
ffc097ec:	90 01 00 24 	stw     r0,36(r1)                              <== NOT EXECUTED
{                                                                     
  va_list args;                                                       
  va_start (args, format);                                            
  fprintf (stderr, "fdisk:abort:");                                   
ffc097f0:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc097f4:	38 63 ad 1c 	addi    r3,r3,-21220                           <== NOT EXECUTED
ffc097f8:	81 3f 28 0c 	lwz     r9,10252(r31)                          <== NOT EXECUTED
ffc097fc:	80 c9 00 0c 	lwz     r6,12(r9)                              <== NOT EXECUTED
 */                                                                   
static void                                                           
rtems_fdisk_abort (const char *format, ...)                           
{                                                                     
  va_list args;                                                       
  va_start (args, format);                                            
ffc09800:	39 21 00 28 	addi    r9,r1,40                               <== NOT EXECUTED
ffc09804:	91 21 00 0c 	stw     r9,12(r1)                              <== NOT EXECUTED
  fprintf (stderr, "fdisk:abort:");                                   
ffc09808:	48 02 0c 1d 	bl      ffc2a424 <fwrite>                      <== NOT EXECUTED
  vfprintf (stderr, format, args);                                    
ffc0980c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc09810:	81 3f 28 0c 	lwz     r9,10252(r31)                          <== NOT EXECUTED
ffc09814:	38 63 ad 2c 	addi    r3,r3,-21204                           <== NOT EXECUTED
ffc09818:	80 89 00 0c 	lwz     r4,12(r9)                              <== NOT EXECUTED
ffc0981c:	48 02 03 e9 	bl      ffc29c04 <fputs>                       <== NOT EXECUTED
  fprintf (stderr, "\n");                                             
ffc09820:	81 3f 28 0c 	lwz     r9,10252(r31)                          <== NOT EXECUTED
ffc09824:	38 60 00 0a 	li      r3,10                                  <== NOT EXECUTED
ffc09828:	80 89 00 0c 	lwz     r4,12(r9)                              <== NOT EXECUTED
ffc0982c:	48 02 02 c1 	bl      ffc29aec <fputc>                       <== NOT EXECUTED
  fflush (stderr);                                                    
ffc09830:	81 3f 28 0c 	lwz     r9,10252(r31)                          <== NOT EXECUTED
ffc09834:	80 69 00 0c 	lwz     r3,12(r9)                              <== NOT EXECUTED
ffc09838:	48 01 fc 89 	bl      ffc294c0 <fflush>                      <== NOT EXECUTED
  va_end (args);                                                      
  exit (1);                                                           
ffc0983c:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc09840:	48 01 f7 c5 	bl      ffc29004 <exit>                        <== NOT EXECUTED
                                                                      

ffc075c8 <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) {
ffc075c8:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc075cc:	7c 08 02 a6 	mflr    r0                                     
ffc075d0:	90 01 00 44 	stw     r0,68(r1)                              
static bool                                                           
rtems_fdisk_is_erased_blocks_starvation (rtems_flashdisk* fd)         
{                                                                     
  bool starvation = fd->erased_blocks < fd->starvation_threshold;     
                                                                      
  if (starvation)                                                     
ffc075d4:	81 43 00 28 	lwz     r10,40(r3)                             
ffc075d8:	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)                             
{                                                                     
ffc075dc:	93 a1 00 34 	stw     r29,52(r1)                             
ffc075e0:	7c 7d 1b 78 	mr      r29,r3                                 
static bool                                                           
rtems_fdisk_is_erased_blocks_starvation (rtems_flashdisk* fd)         
{                                                                     
  bool starvation = fd->erased_blocks < fd->starvation_threshold;     
                                                                      
  if (starvation)                                                     
ffc075e4:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
 * 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)                             
{                                                                     
ffc075e8:	92 c1 00 18 	stw     r22,24(r1)                             
ffc075ec:	92 e1 00 1c 	stw     r23,28(r1)                             
ffc075f0:	93 01 00 20 	stw     r24,32(r1)                             
ffc075f4:	93 21 00 24 	stw     r25,36(r1)                             
ffc075f8:	93 41 00 28 	stw     r26,40(r1)                             
ffc075fc:	93 61 00 2c 	stw     r27,44(r1)                             
ffc07600:	93 81 00 30 	stw     r28,48(r1)                             
ffc07604:	93 c1 00 38 	stw     r30,56(r1)                             
ffc07608:	93 e1 00 3c 	stw     r31,60(r1)                             
static bool                                                           
rtems_fdisk_is_erased_blocks_starvation (rtems_flashdisk* fd)         
{                                                                     
  bool starvation = fd->erased_blocks < fd->starvation_threshold;     
                                                                      
  if (starvation)                                                     
ffc0760c:	40 9c 00 78 	bge-    cr7,ffc07684 <rtems_fdisk_compact+0xbc>
    fd->starvations++;                                                
ffc07610:	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");                   
ffc07614:	3c 80 ff c4 	lis     r4,-60                                 
ffc07618:	38 84 ac 38 	addi    r4,r4,-21448                           
rtems_fdisk_is_erased_blocks_starvation (rtems_flashdisk* fd)         
{                                                                     
  bool starvation = fd->erased_blocks < fd->starvation_threshold;     
                                                                      
  if (starvation)                                                     
    fd->starvations++;                                                
ffc0761c:	39 29 00 01 	addi    r9,r9,1                                
ffc07620:	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");                   
ffc07624:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07628:	4b ff ee 45 	bl      ffc0646c <rtems_fdisk_printf>          
 * Pop the head of the segment control queue.                         
 */                                                                   
static rtems_fdisk_segment_ctl*                                       
rtems_fdisk_segment_queue_pop_head (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  if (queue->head)                                                    
ffc0762c:	83 fd 00 40 	lwz     r31,64(r29)                            
ffc07630:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc07634:	41 9e 02 70 	beq-    cr7,ffc078a4 <rtems_fdisk_compact+0x2dc><== NEVER TAKEN
  {                                                                   
    rtems_fdisk_segment_ctl* sc = queue->head;                        
                                                                      
    queue->head = sc->next;                                           
ffc07638:	81 3f 00 00 	lwz     r9,0(r31)                              
    if (!queue->head)                                                 
ffc0763c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
{                                                                     
  if (queue->head)                                                    
  {                                                                   
    rtems_fdisk_segment_ctl* sc = queue->head;                        
                                                                      
    queue->head = sc->next;                                           
ffc07640:	91 3d 00 40 	stw     r9,64(r29)                             
    if (!queue->head)                                                 
ffc07644:	41 9e 03 54 	beq-    cr7,ffc07998 <rtems_fdisk_compact+0x3d0><== NEVER TAKEN
      queue->tail = 0;                                                
                                                                      
    queue->count--;                                                   
ffc07648:	81 3d 00 48 	lwz     r9,72(r29)                             
ffc0764c:	80 7d 00 34 	lwz     r3,52(r29)                             
ffc07650:	39 29 ff ff 	addi    r9,r9,-1                               
ffc07654:	91 3d 00 48 	stw     r9,72(r29)                             
                                                                      
    sc->next = 0;                                                     
ffc07658:	39 20 00 00 	li      r9,0                                   
ffc0765c:	91 3f 00 00 	stw     r9,0(r31)                              
    if (!ssc)                                                         
      ssc = rtems_fdisk_segment_queue_pop_head (&fd->available);      
                                                                      
    if (ssc)                                                          
    {                                                                 
      dsc = rtems_fdisk_seg_most_available (&fd->available);          
ffc07660:	4b ff f7 49 	bl      ffc06da8 <rtems_fdisk_seg_most_available.isra.12>
      if (dsc)                                                        
ffc07664:	7c 65 1b 79 	mr.     r5,r3                                  
ffc07668:	41 82 03 00 	beq-    ffc07968 <rtems_fdisk_compact+0x3a0>   <== NEVER TAKEN
      {                                                               
        ret = rtems_fdisk_recycle_segment (fd, ssc, dsc, &pages);     
ffc0766c:	7f a3 eb 78 	mr      r3,r29                                 
ffc07670:	7f e4 fb 78 	mr      r4,r31                                 
ffc07674:	38 c1 00 08 	addi    r6,r1,8                                
ffc07678:	4b ff fa 79 	bl      ffc070f0 <rtems_fdisk_recycle_segment> 
        if (ret)                                                      
ffc0767c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc07680:	40 82 01 18 	bne-    ffc07798 <rtems_fdisk_compact+0x1d0>   <== NEVER TAKEN
ffc07684:	81 3d 00 40 	lwz     r9,64(r29)                             
  {                                                                   
    uint32_t                 dst_pages;                               
    uint32_t                 segments;                                
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " compacting");                           
ffc07688:	3f 20 ff c4 	lis     r25,-60                                
    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",         
ffc0768c:	3f 00 ff c4 	lis     r24,-60                                
ffc07690:	2f 89 00 00 	cmpwi   cr7,r9,0                               
#endif                                                                
      break;                                                          
    }                                                                 
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " ssc scan: %d-%d: p=%ld, seg=%ld",       
ffc07694:	3e c0 ff c4 	lis     r22,-60                                
                                                                      
    while (ssc &&                                                     
           ((pages + ssc->pages_active) < dst_pages) &&               
           ((compacted_segs + segments) < fd->compact_segs))          
    {                                                                 
      pages += ssc->pages_active;                                     
ffc07698:	3b 60 00 00 	li      r27,0                                  
  {                                                                   
    uint32_t                 dst_pages;                               
    uint32_t                 segments;                                
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " compacting");                           
ffc0769c:	3b 39 ac 64 	addi    r25,r25,-21404                         
    }                                                                 
                                                                      
    ssc = fd->used.head;                                              
    dst_pages = rtems_fdisk_seg_pages_available (dsc);                
    segments = 0;                                                     
    pages = 0;                                                        
ffc076a0:	3b 40 00 00 	li      r26,0                                  
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " dsc:%02d-%03d: most available",         
ffc076a4:	3b 18 ac a4 	addi    r24,r24,-21340                         
#endif                                                                
      break;                                                          
    }                                                                 
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " ssc scan: %d-%d: p=%ld, seg=%ld",       
ffc076a8:	3a d6 ac d8 	addi    r22,r22,-21288                         
                        ssc->device, ssc->segment,                    
                        pages, segments);                             
#endif                                                                
                                                                      
    rtems_fdisk_segment_queue_remove (&fd->available, dsc);           
ffc076ac:	3a fd 00 34 	addi    r23,r29,52                             
      rtems_fdisk_error ("compacting: nothing to recycle");           
      return EIO;                                                     
    }                                                                 
  }                                                                   
                                                                      
  while (fd->used.head)                                               
ffc076b0:	41 9e 02 28 	beq-    cr7,ffc078d8 <rtems_fdisk_compact+0x310>
  {                                                                   
    uint32_t                 dst_pages;                               
    uint32_t                 segments;                                
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " compacting");                           
ffc076b4:	7f 24 cb 78 	mr      r4,r25                                 
ffc076b8:	7f a3 eb 78 	mr      r3,r29                                 
ffc076bc:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc076c0:	4b ff ed ad 	bl      ffc0646c <rtems_fdisk_printf>          
#endif                                                                
                                                                      
    dsc = rtems_fdisk_seg_most_available (&fd->available);            
ffc076c4:	80 7d 00 34 	lwz     r3,52(r29)                             
ffc076c8:	4b ff f6 e1 	bl      ffc06da8 <rtems_fdisk_seg_most_available.isra.12>
                                                                      
    if (dsc == 0)                                                     
ffc076cc:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc076d0:	41 82 02 44 	beq-    ffc07914 <rtems_fdisk_compact+0x34c>   <== NEVER TAKEN
 * 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)                             
ffc076d4:	81 3c 00 24 	lwz     r9,36(r28)                             
    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",         
ffc076d8:	7f a3 eb 78 	mr      r3,r29                                 
 * 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)                             
ffc076dc:	83 dc 00 20 	lwz     r30,32(r28)                            
    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",         
ffc076e0:	7f 04 c3 78 	mr      r4,r24                                 
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
ffc076e4:	81 5c 00 14 	lwz     r10,20(r28)                            
    {                                                                 
      rtems_fdisk_error ("compacting: no available segments to compact too");
      return EIO;                                                     
    }                                                                 
                                                                      
    ssc = fd->used.head;                                              
ffc076e8:	83 fd 00 40 	lwz     r31,64(r29)                            
 * 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)                             
ffc076ec:	7f de 4a 14 	add     r30,r30,r9                             
    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",         
ffc076f0:	80 bc 00 08 	lwz     r5,8(r28)                              
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
ffc076f4:	7f de 50 50 	subf    r30,r30,r10                            
ffc076f8:	81 3c 00 1c 	lwz     r9,28(r28)                             
    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",         
ffc076fc:	80 dc 00 0c 	lwz     r6,12(r28)                             
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
ffc07700:	7f c9 f0 50 	subf    r30,r9,r30                             
    }                                                                 
                                                                      
    ssc = fd->used.head;                                              
    dst_pages = rtems_fdisk_seg_pages_available (dsc);                
    segments = 0;                                                     
    pages = 0;                                                        
ffc07704:	93 41 00 08 	stw     r26,8(r1)                              
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " dsc:%02d-%03d: most available",         
ffc07708:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0770c:	4b ff ed 61 	bl      ffc0646c <rtems_fdisk_printf>          
     * 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 &&                                                     
ffc07710:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc07714:	41 9e 00 6c 	beq-    cr7,ffc07780 <rtems_fdisk_compact+0x1b8><== NEVER TAKEN
           ((pages + ssc->pages_active) < dst_pages) &&               
ffc07718:	81 41 00 08 	lwz     r10,8(r1)                              
ffc0771c:	80 ff 00 1c 	lwz     r7,28(r31)                             
ffc07720:	7c ea 3a 14 	add     r7,r10,r7                              
     * 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 &&                                                     
ffc07724:	7f 9e 38 40 	cmplw   cr7,r30,r7                             
ffc07728:	40 9d 01 70 	ble-    cr7,ffc07898 <rtems_fdisk_compact+0x2d0>
           ((pages + ssc->pages_active) < dst_pages) &&               
           ((compacted_segs + segments) < fd->compact_segs))          
ffc0772c:	81 3d 00 0c 	lwz     r9,12(r29)                             
     * compaction or less delay when compacting but it may mean the disk
     * will fill.                                                     
     */                                                               
                                                                      
    while (ssc &&                                                     
           ((pages + ssc->pages_active) < dst_pages) &&               
ffc07730:	7f 9b 48 40 	cmplw   cr7,r27,r9                             
ffc07734:	40 9c 01 64 	bge-    cr7,ffc07898 <rtems_fdisk_compact+0x2d0><== NEVER TAKEN
ffc07738:	39 5b 00 01 	addi    r10,r27,1                              
ffc0773c:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc07740:	7d 3b 48 50 	subf    r9,r27,r9                              
ffc07744:	39 00 00 00 	li      r8,0                                   
ffc07748:	7d 29 03 a6 	mtctr   r9                                     
ffc0774c:	40 bd 00 20 	ble+    cr7,ffc0776c <rtems_fdisk_compact+0x1a4><== ALWAYS TAKEN
ffc07750:	48 00 02 58 	b       ffc079a8 <rtems_fdisk_compact+0x3e0>   <== NOT EXECUTED
ffc07754:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc07758:	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 &&                                                     
ffc0775c:	7f 89 f0 40 	cmplw   cr7,r9,r30                             
ffc07760:	40 9c 00 70 	bge-    cr7,ffc077d0 <rtems_fdisk_compact+0x208>
           ((pages + ssc->pages_active) < dst_pages) &&               
ffc07764:	42 40 00 6c 	bdz-    ffc077d0 <rtems_fdisk_compact+0x208>   
ffc07768:	7d 27 4b 78 	mr      r7,r9                                  
           ((compacted_segs + segments) < fd->compact_segs))          
    {                                                                 
      pages += ssc->pages_active;                                     
      segments++;                                                     
      ssc = ssc->next;                                                
ffc0776c:	83 ff 00 00 	lwz     r31,0(r31)                             
    while (ssc &&                                                     
           ((pages + ssc->pages_active) < dst_pages) &&               
           ((compacted_segs + segments) < fd->compact_segs))          
    {                                                                 
      pages += ssc->pages_active;                                     
      segments++;                                                     
ffc07770:	39 08 00 01 	addi    r8,r8,1                                
     * 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 &&                                                     
ffc07774:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc07778:	40 9e ff dc 	bne+    cr7,ffc07754 <rtems_fdisk_compact+0x18c>
ffc0777c:	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");                 
ffc07780:	3c 80 ff c4 	lis     r4,-60                                 
ffc07784:	7f a3 eb 78 	mr      r3,r29                                 
ffc07788:	38 84 ac c4 	addi    r4,r4,-21308                           
ffc0778c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07790:	4b ff ec dd 	bl      ffc0646c <rtems_fdisk_printf>          
    }                                                                 
                                                                      
    compacted_segs += segments;                                       
  }                                                                   
                                                                      
  return 0;                                                           
ffc07794:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc07798:	80 01 00 44 	lwz     r0,68(r1)                              
ffc0779c:	82 c1 00 18 	lwz     r22,24(r1)                             
ffc077a0:	7c 08 03 a6 	mtlr    r0                                     
ffc077a4:	82 e1 00 1c 	lwz     r23,28(r1)                             
ffc077a8:	83 01 00 20 	lwz     r24,32(r1)                             
ffc077ac:	83 21 00 24 	lwz     r25,36(r1)                             
ffc077b0:	83 41 00 28 	lwz     r26,40(r1)                             
ffc077b4:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc077b8:	83 81 00 30 	lwz     r28,48(r1)                             
ffc077bc:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc077c0:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc077c4:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc077c8:	38 21 00 40 	addi    r1,r1,64                               
ffc077cc:	4e 80 00 20 	blr                                            
ffc077d0:	90 e1 00 08 	stw     r7,8(r1)                               
     * 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))   
ffc077d4:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc077d8:	41 be ff a8 	beq-    cr7,ffc07780 <rtems_fdisk_compact+0x1b8>
ffc077dc:	7f 7b 42 14 	add     r27,r27,r8                             
ffc077e0:	2f 9b 00 01 	cmpwi   cr7,r27,1                              
ffc077e4:	41 be ff 9c 	beq-    cr7,ffc07780 <rtems_fdisk_compact+0x1b8>
#endif                                                                
      break;                                                          
    }                                                                 
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_printf (fd, " ssc scan: %d-%d: p=%ld, seg=%ld",       
ffc077e8:	80 bf 00 08 	lwz     r5,8(r31)                              
ffc077ec:	7e c4 b3 78 	mr      r4,r22                                 
ffc077f0:	80 df 00 0c 	lwz     r6,12(r31)                             
ffc077f4:	7f a3 eb 78 	mr      r3,r29                                 
ffc077f8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc077fc:	4b ff ec 71 	bl      ffc0646c <rtems_fdisk_printf>          
                        ssc->device, ssc->segment,                    
                        pages, segments);                             
#endif                                                                
                                                                      
    rtems_fdisk_segment_queue_remove (&fd->available, dsc);           
ffc07800:	7e e3 bb 78 	mr      r3,r23                                 
ffc07804:	7f 84 e3 78 	mr      r4,r28                                 
ffc07808:	4b ff e9 e5 	bl      ffc061ec <rtems_fdisk_segment_queue_remove>
ffc0780c:	81 3d 00 40 	lwz     r9,64(r29)                             
ffc07810:	81 41 00 08 	lwz     r10,8(r1)                              
ffc07814:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07818:	2f 0a 00 00 	cmpwi   cr6,r10,0                              
                                                                      
    /*                                                                
     * We now copy the pages to the new segment.                      
     */                                                               
                                                                      
    while (pages)                                                     
ffc0781c:	41 9a fe 94 	beq+    cr6,ffc076b0 <rtems_fdisk_compact+0xe8>
 * Pop the head of the segment control queue.                         
 */                                                                   
static rtems_fdisk_segment_ctl*                                       
rtems_fdisk_segment_queue_pop_head (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  if (queue->head)                                                    
ffc07820:	41 be ff fc 	beq-    cr7,ffc0781c <rtems_fdisk_compact+0x254><== NEVER TAKEN
  {                                                                   
    rtems_fdisk_segment_ctl* sc = queue->head;                        
                                                                      
    queue->head = sc->next;                                           
ffc07824:	81 49 00 00 	lwz     r10,0(r9)                              
    if (!queue->head)                                                 
ffc07828:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
{                                                                     
  if (queue->head)                                                    
  {                                                                   
    rtems_fdisk_segment_ctl* sc = queue->head;                        
                                                                      
    queue->head = sc->next;                                           
ffc0782c:	91 5d 00 40 	stw     r10,64(r29)                            
    if (!queue->head)                                                 
ffc07830:	41 9e 01 30 	beq-    cr7,ffc07960 <rtems_fdisk_compact+0x398><== NEVER TAKEN
      queue->tail = 0;                                                
                                                                      
    queue->count--;                                                   
ffc07834:	81 5d 00 48 	lwz     r10,72(r29)                            
    {                                                                 
      ssc = rtems_fdisk_segment_queue_pop_head (&fd->used);           
                                                                      
      if (ssc)                                                        
      {                                                               
        ret = rtems_fdisk_recycle_segment (fd, ssc, dsc, &pages);     
ffc07838:	7f a3 eb 78 	mr      r3,r29                                 
ffc0783c:	7d 24 4b 78 	mr      r4,r9                                  
                                                                      
    queue->head = sc->next;                                           
    if (!queue->head)                                                 
      queue->tail = 0;                                                
                                                                      
    queue->count--;                                                   
ffc07840:	39 4a ff ff 	addi    r10,r10,-1                             
ffc07844:	91 5d 00 48 	stw     r10,72(r29)                            
    {                                                                 
      ssc = rtems_fdisk_segment_queue_pop_head (&fd->used);           
                                                                      
      if (ssc)                                                        
      {                                                               
        ret = rtems_fdisk_recycle_segment (fd, ssc, dsc, &pages);     
ffc07848:	7f 85 e3 78 	mr      r5,r28                                 
ffc0784c:	38 c1 00 08 	addi    r6,r1,8                                
    if (!queue->head)                                                 
      queue->tail = 0;                                                
                                                                      
    queue->count--;                                                   
                                                                      
    sc->next = 0;                                                     
ffc07850:	93 49 00 00 	stw     r26,0(r9)                              
    {                                                                 
      ssc = rtems_fdisk_segment_queue_pop_head (&fd->used);           
                                                                      
      if (ssc)                                                        
      {                                                               
        ret = rtems_fdisk_recycle_segment (fd, ssc, dsc, &pages);     
ffc07854:	4b ff f8 9d 	bl      ffc070f0 <rtems_fdisk_recycle_segment> 
        if (ret)                                                      
ffc07858:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0785c:	41 82 ff b0 	beq+    ffc0780c <rtems_fdisk_compact+0x244>   <== ALWAYS TAKEN
                                                                      
    compacted_segs += segments;                                       
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc07860:	80 01 00 44 	lwz     r0,68(r1)                              <== NOT EXECUTED
ffc07864:	82 c1 00 18 	lwz     r22,24(r1)                             <== NOT EXECUTED
ffc07868:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0786c:	82 e1 00 1c 	lwz     r23,28(r1)                             <== NOT EXECUTED
ffc07870:	83 01 00 20 	lwz     r24,32(r1)                             <== NOT EXECUTED
ffc07874:	83 21 00 24 	lwz     r25,36(r1)                             <== NOT EXECUTED
ffc07878:	83 41 00 28 	lwz     r26,40(r1)                             <== NOT EXECUTED
ffc0787c:	83 61 00 2c 	lwz     r27,44(r1)                             <== NOT EXECUTED
ffc07880:	83 81 00 30 	lwz     r28,48(r1)                             <== NOT EXECUTED
ffc07884:	83 a1 00 34 	lwz     r29,52(r1)                             <== NOT EXECUTED
ffc07888:	83 c1 00 38 	lwz     r30,56(r1)                             <== NOT EXECUTED
ffc0788c:	83 e1 00 3c 	lwz     r31,60(r1)                             <== NOT EXECUTED
ffc07890:	38 21 00 40 	addi    r1,r1,64                               <== NOT EXECUTED
ffc07894:	4e 80 00 20 	blr                                            <== NOT EXECUTED
     * compaction or less delay when compacting but it may mean the disk
     * will fill.                                                     
     */                                                               
                                                                      
    while (ssc &&                                                     
           ((pages + ssc->pages_active) < dst_pages) &&               
ffc07898:	7d 47 53 78 	mr      r7,r10                                 
      return EIO;                                                     
    }                                                                 
                                                                      
    ssc = fd->used.head;                                              
    dst_pages = rtems_fdisk_seg_pages_available (dsc);                
    segments = 0;                                                     
ffc0789c:	39 00 00 00 	li      r8,0                                   
ffc078a0:	4b ff ff 34 	b       ffc077d4 <rtems_fdisk_compact+0x20c>   
 * Pop the head of the segment control queue.                         
 */                                                                   
static rtems_fdisk_segment_ctl*                                       
rtems_fdisk_segment_queue_pop_head (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  if (queue->head)                                                    
ffc078a4:	83 fd 00 34 	lwz     r31,52(r29)                            <== NOT EXECUTED
ffc078a8:	2f 9f 00 00 	cmpwi   cr7,r31,0                              <== NOT EXECUTED
ffc078ac:	41 9e 00 d4 	beq-    cr7,ffc07980 <rtems_fdisk_compact+0x3b8><== NOT EXECUTED
  {                                                                   
    rtems_fdisk_segment_ctl* sc = queue->head;                        
                                                                      
    queue->head = sc->next;                                           
ffc078b0:	80 7f 00 00 	lwz     r3,0(r31)                              <== NOT EXECUTED
    if (!queue->head)                                                 
ffc078b4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
{                                                                     
  if (queue->head)                                                    
  {                                                                   
    rtems_fdisk_segment_ctl* sc = queue->head;                        
                                                                      
    queue->head = sc->next;                                           
ffc078b8:	90 7d 00 34 	stw     r3,52(r29)                             <== NOT EXECUTED
    if (!queue->head)                                                 
ffc078bc:	41 9e 00 e4 	beq-    cr7,ffc079a0 <rtems_fdisk_compact+0x3d8><== NOT EXECUTED
      queue->tail = 0;                                                
                                                                      
    queue->count--;                                                   
ffc078c0:	81 3d 00 3c 	lwz     r9,60(r29)                             <== NOT EXECUTED
ffc078c4:	39 29 ff ff 	addi    r9,r9,-1                               <== NOT EXECUTED
ffc078c8:	91 3d 00 3c 	stw     r9,60(r29)                             <== NOT EXECUTED
                                                                      
    sc->next = 0;                                                     
ffc078cc:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc078d0:	91 3f 00 00 	stw     r9,0(r31)                              <== NOT EXECUTED
ffc078d4:	4b ff fd 8c 	b       ffc07660 <rtems_fdisk_compact+0x98>    <== NOT EXECUTED
                                                                      
    compacted_segs += segments;                                       
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc078d8:	80 01 00 44 	lwz     r0,68(r1)                              
    }                                                                 
                                                                      
    compacted_segs += segments;                                       
  }                                                                   
                                                                      
  return 0;                                                           
ffc078dc:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc078e0:	82 c1 00 18 	lwz     r22,24(r1)                             
ffc078e4:	7c 08 03 a6 	mtlr    r0                                     
ffc078e8:	82 e1 00 1c 	lwz     r23,28(r1)                             
ffc078ec:	83 01 00 20 	lwz     r24,32(r1)                             
ffc078f0:	83 21 00 24 	lwz     r25,36(r1)                             
ffc078f4:	83 41 00 28 	lwz     r26,40(r1)                             
ffc078f8:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc078fc:	83 81 00 30 	lwz     r28,48(r1)                             
ffc07900:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc07904:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc07908:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc0790c:	38 21 00 40 	addi    r1,r1,64                               
ffc07910:	4e 80 00 20 	blr                                            
                                                                      
    dsc = rtems_fdisk_seg_most_available (&fd->available);            
                                                                      
    if (dsc == 0)                                                     
    {                                                                 
      rtems_fdisk_error ("compacting: no available segments to compact too");
ffc07914:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc07918:	38 63 ac 70 	addi    r3,r3,-21392                           <== NOT EXECUTED
ffc0791c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07920:	4b ff ee 29 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
                                                                      
    compacted_segs += segments;                                       
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc07924:	80 01 00 44 	lwz     r0,68(r1)                              <== NOT EXECUTED
ffc07928:	82 c1 00 18 	lwz     r22,24(r1)                             <== NOT EXECUTED
    dsc = rtems_fdisk_seg_most_available (&fd->available);            
                                                                      
    if (dsc == 0)                                                     
    {                                                                 
      rtems_fdisk_error ("compacting: no available segments to compact too");
      return EIO;                                                     
ffc0792c:	38 60 00 05 	li      r3,5                                   <== NOT EXECUTED
                                                                      
    compacted_segs += segments;                                       
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc07930:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc07934:	82 e1 00 1c 	lwz     r23,28(r1)                             <== NOT EXECUTED
ffc07938:	83 01 00 20 	lwz     r24,32(r1)                             <== NOT EXECUTED
ffc0793c:	83 21 00 24 	lwz     r25,36(r1)                             <== NOT EXECUTED
ffc07940:	83 41 00 28 	lwz     r26,40(r1)                             <== NOT EXECUTED
ffc07944:	83 61 00 2c 	lwz     r27,44(r1)                             <== NOT EXECUTED
ffc07948:	83 81 00 30 	lwz     r28,48(r1)                             <== NOT EXECUTED
ffc0794c:	83 a1 00 34 	lwz     r29,52(r1)                             <== NOT EXECUTED
ffc07950:	83 c1 00 38 	lwz     r30,56(r1)                             <== NOT EXECUTED
ffc07954:	83 e1 00 3c 	lwz     r31,60(r1)                             <== NOT EXECUTED
ffc07958:	38 21 00 40 	addi    r1,r1,64                               <== NOT EXECUTED
ffc0795c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  {                                                                   
    rtems_fdisk_segment_ctl* sc = queue->head;                        
                                                                      
    queue->head = sc->next;                                           
    if (!queue->head)                                                 
      queue->tail = 0;                                                
ffc07960:	91 5d 00 44 	stw     r10,68(r29)                            <== NOT EXECUTED
ffc07964:	4b ff fe d0 	b       ffc07834 <rtems_fdisk_compact+0x26c>   <== NOT EXECUTED
        if (ret)                                                      
          return ret;                                                 
      }                                                               
      else                                                            
      {                                                               
        rtems_fdisk_error ("compacting: starvation");                 
ffc07968:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc0796c:	38 63 ac 4c 	addi    r3,r3,-21428                           <== NOT EXECUTED
ffc07970:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07974:	4b ff ed d5 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
        return EIO;                                                   
ffc07978:	38 60 00 05 	li      r3,5                                   <== NOT EXECUTED
ffc0797c:	4b ff fe 1c 	b       ffc07798 <rtems_fdisk_compact+0x1d0>   <== NOT EXECUTED
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      rtems_fdisk_error ("compacting: nothing to recycle");           
ffc07980:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc07984:	38 63 ac fc 	addi    r3,r3,-21252                           <== NOT EXECUTED
ffc07988:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc0798c:	4b ff ed bd 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
      return EIO;                                                     
ffc07990:	38 60 00 05 	li      r3,5                                   <== NOT EXECUTED
ffc07994:	4b ff fe 04 	b       ffc07798 <rtems_fdisk_compact+0x1d0>   <== NOT EXECUTED
  {                                                                   
    rtems_fdisk_segment_ctl* sc = queue->head;                        
                                                                      
    queue->head = sc->next;                                           
    if (!queue->head)                                                 
      queue->tail = 0;                                                
ffc07998:	91 3d 00 44 	stw     r9,68(r29)                             <== NOT EXECUTED
ffc0799c:	4b ff fc ac 	b       ffc07648 <rtems_fdisk_compact+0x80>    <== NOT EXECUTED
ffc079a0:	90 7d 00 38 	stw     r3,56(r29)                             <== NOT EXECUTED
ffc079a4:	4b ff ff 1c 	b       ffc078c0 <rtems_fdisk_compact+0x2f8>   <== NOT EXECUTED
ffc079a8:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc079ac:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc079b0:	4b ff fd bc 	b       ffc0776c <rtems_fdisk_compact+0x1a4>   <== NOT EXECUTED
                                                                      

ffc06830 <rtems_fdisk_erase_segment>: /** * Erase the segment. */ static int rtems_fdisk_erase_segment (rtems_flashdisk* fd, rtems_fdisk_segment_ctl* sc) {
ffc06830:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc06834:	7c 08 02 a6 	mflr    r0                                     
ffc06838:	90 01 00 24 	stw     r0,36(r1)                              
ffc0683c:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc06840:	7c 9f 23 78 	mr      r31,r4                                 
  int                                ret;                             
  uint32_t                           device;                          
  uint32_t                           segment;                         
  const rtems_fdisk_segment_desc*    sd;                              
  const rtems_fdisk_driver_handlers* ops;                             
  device = sc->device;                                                
ffc06844:	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;            
ffc06848:	81 23 00 2c 	lwz     r9,44(r3)                              
ffc0684c:	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;                                              
ffc06850:	80 bf 00 0c 	lwz     r5,12(r31)                             
/**                                                                   
 * Erase the segment.                                                 
 */                                                                   
static int                                                            
rtems_fdisk_erase_segment (rtems_flashdisk* fd, rtems_fdisk_segment_ctl* sc)
{                                                                     
ffc06854:	93 a1 00 14 	stw     r29,20(r1)                             
static const rtems_fdisk_segment_desc*                                
rtems_fdisk_seg_descriptor (const rtems_flashdisk* fd,                
                            uint32_t               device,            
                            uint32_t               segment)           
{                                                                     
  return fd->devices[device].segments[segment].descriptor;            
ffc06858:	7d 09 52 14 	add     r8,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;                    
ffc0685c:	80 e8 00 08 	lwz     r7,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;            
ffc06860:	7d 09 50 2e 	lwzx    r8,r9,r10                              
ffc06864:	1d 45 00 30 	mulli   r10,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);                             
ffc06868:	81 27 00 08 	lwz     r9,8(r7)                               
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;            
ffc0686c:	7d 48 52 14 	add     r10,r8,r10                             
/**                                                                   
 * Erase the segment.                                                 
 */                                                                   
static int                                                            
rtems_fdisk_erase_segment (rtems_flashdisk* fd, rtems_fdisk_segment_ctl* sc)
{                                                                     
ffc06870:	93 c1 00 18 	stw     r30,24(r1)                             
ffc06874:	7c 7e 1b 78 	mr      r30,r3                                 
  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);                             
ffc06878:	81 29 00 10 	lwz     r9,16(r9)                              
/**                                                                   
 * Erase the segment.                                                 
 */                                                                   
static int                                                            
rtems_fdisk_erase_segment (rtems_flashdisk* fd, rtems_fdisk_segment_ctl* sc)
{                                                                     
ffc0687c:	93 61 00 0c 	stw     r27,12(r1)                             
  const rtems_fdisk_driver_handlers* ops;                             
  device = sc->device;                                                
  segment = sc->segment;                                              
  sd = rtems_fdisk_seg_descriptor (fd, device, segment);              
  ops = fd->devices[device].descriptor->flash_ops;                    
  ret = ops->erase (sd, device, segment);                             
ffc06880:	7d 29 03 a6 	mtctr   r9                                     
/**                                                                   
 * Erase the segment.                                                 
 */                                                                   
static int                                                            
rtems_fdisk_erase_segment (rtems_flashdisk* fd, rtems_fdisk_segment_ctl* sc)
{                                                                     
ffc06884:	93 81 00 10 	stw     r28,16(r1)                             
  const rtems_fdisk_driver_handlers* ops;                             
  device = sc->device;                                                
  segment = sc->segment;                                              
  sd = rtems_fdisk_seg_descriptor (fd, device, segment);              
  ops = fd->devices[device].descriptor->flash_ops;                    
  ret = ops->erase (sd, device, segment);                             
ffc06888:	80 6a 00 04 	lwz     r3,4(r10)                              
ffc0688c:	4e 80 04 21 	bctrl                                          
  if (ret)                                                            
ffc06890:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc06894:	41 82 00 a8 	beq-    ffc0693c <rtems_fdisk_erase_segment+0x10c><== ALWAYS TAKEN
  {                                                                   
    rtems_fdisk_error (" erase-segment:%02d-%03d: "      \            
ffc06898:	83 7f 00 08 	lwz     r27,8(r31)                             <== NOT EXECUTED
ffc0689c:	83 9f 00 0c 	lwz     r28,12(r31)                            <== NOT EXECUTED
ffc068a0:	48 02 53 75 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc068a4:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc068a8:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc068ac:	38 63 a9 f8 	addi    r3,r3,-22024                           <== NOT EXECUTED
ffc068b0:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc068b4:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc068b8:	7f a7 eb 78 	mr      r7,r29                                 <== NOT EXECUTED
ffc068bc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc068c0:	4b ff fe 89 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc068c4:	81 3e 00 58 	lwz     r9,88(r30)                             <== NOT EXECUTED
  if (ret)                                                            
  {                                                                   
    rtems_fdisk_error (" erase-segment:%02d-%03d: "      \            
                       "segment erase failed: %s (%d)",               
                       sc->device, sc->segment, strerror (ret), ret); 
    sc->failed = true;                                                
ffc068c8:	39 40 00 01 	li      r10,1                                  <== 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)                                                          
ffc068cc:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
  if (ret)                                                            
  {                                                                   
    rtems_fdisk_error (" erase-segment:%02d-%03d: "      \            
                       "segment erase failed: %s (%d)",               
                       sc->device, sc->segment, strerror (ret), ret); 
    sc->failed = true;                                                
ffc068d0:	91 5f 00 28 	stw     r10,40(r31)                            <== 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)                                                          
ffc068d4:	41 9e 01 08 	beq-    cr7,ffc069dc <rtems_fdisk_erase_segment+0x1ac><== NOT EXECUTED
  {                                                                   
    if (it == sc)                                                     
ffc068d8:	7f 9f 48 00 	cmpw    cr7,r31,r9                             <== NOT EXECUTED
ffc068dc:	40 be 00 0c 	bne+    cr7,ffc068e8 <rtems_fdisk_erase_segment+0xb8><== NOT EXECUTED
ffc068e0:	48 00 00 c8 	b       ffc069a8 <rtems_fdisk_erase_segment+0x178><== NOT EXECUTED
ffc068e4:	41 9a 00 c4 	beq-    cr6,ffc069a8 <rtems_fdisk_erase_segment+0x178><== NOT EXECUTED
      return true;                                                    
    it = it->next;                                                    
ffc068e8:	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)                                                          
ffc068ec:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
  {                                                                   
    if (it == sc)                                                     
ffc068f0:	7f 1f 48 00 	cmpw    cr6,r31,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)                                                          
ffc068f4:	40 9e ff f0 	bne+    cr7,ffc068e4 <rtems_fdisk_erase_segment+0xb4><== NOT EXECUTED
  {                                                                   
    sc->next = 0;                                                     
                                                                      
    if (queue->head)                                                  
    {                                                                 
      queue->tail->next = sc;                                         
ffc068f8:	81 5e 00 5c 	lwz     r10,92(r30)                            <== NOT EXECUTED
rtems_fdisk_segment_queue_push_tail (rtems_fdisk_segment_ctl_queue* queue,
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = 0;                                                     
ffc068fc:	91 3f 00 00 	stw     r9,0(r31)                              <== NOT EXECUTED
                                                                      
    if (queue->head)                                                  
    {                                                                 
      queue->tail->next = sc;                                         
ffc06900:	93 ea 00 00 	stw     r31,0(r10)                             <== NOT EXECUTED
      queue->tail       = sc;                                         
ffc06904:	93 fe 00 5c 	stw     r31,92(r30)                            <== NOT EXECUTED
   * segment will now get a go.                                       
   */                                                                 
  rtems_fdisk_segment_queue_push_tail (&fd->available, sc);           
                                                                      
  return 0;                                                           
}                                                                     
ffc06908:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
ffc0690c:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
    else                                                              
    {                                                                 
      queue->head = queue->tail = sc;                                 
    }                                                                 
                                                                      
    queue->count++;                                                   
ffc06910:	81 3e 00 60 	lwz     r9,96(r30)                             <== NOT EXECUTED
   * segment will now get a go.                                       
   */                                                                 
  rtems_fdisk_segment_queue_push_tail (&fd->available, sc);           
                                                                      
  return 0;                                                           
}                                                                     
ffc06914:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc06918:	83 61 00 0c 	lwz     r27,12(r1)                             <== NOT EXECUTED
    else                                                              
    {                                                                 
      queue->head = queue->tail = sc;                                 
    }                                                                 
                                                                      
    queue->count++;                                                   
ffc0691c:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
   * segment will now get a go.                                       
   */                                                                 
  rtems_fdisk_segment_queue_push_tail (&fd->available, sc);           
                                                                      
  return 0;                                                           
}                                                                     
ffc06920:	83 81 00 10 	lwz     r28,16(r1)                             <== NOT EXECUTED
    else                                                              
    {                                                                 
      queue->head = queue->tail = sc;                                 
    }                                                                 
                                                                      
    queue->count++;                                                   
ffc06924:	91 3e 00 60 	stw     r9,96(r30)                             <== NOT EXECUTED
   * segment will now get a go.                                       
   */                                                                 
  rtems_fdisk_segment_queue_push_tail (&fd->available, sc);           
                                                                      
  return 0;                                                           
}                                                                     
ffc06928:	83 a1 00 14 	lwz     r29,20(r1)                             <== NOT EXECUTED
ffc0692c:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc06930:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc06934:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc06938:	4e 80 00 20 	blr                                            <== 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;                                     
ffc0693c:	80 fe 00 28 	lwz     r7,40(r30)                             
  sc->erased++;                                                       
                                                                      
  memset (sc->page_descriptors, 0xff, sc->pages_desc * fd->block_size);
ffc06940:	38 80 00 ff 	li      r4,255                                 
      rtems_fdisk_segment_queue_push_tail (&fd->failed, sc);          
    return ret;                                                       
  }                                                                   
                                                                      
  fd->erased_blocks += sc->pages;                                     
  sc->erased++;                                                       
ffc06944:	81 3f 00 2c 	lwz     r9,44(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;                                     
ffc06948:	81 1f 00 14 	lwz     r8,20(r31)                             
  sc->erased++;                                                       
                                                                      
  memset (sc->page_descriptors, 0xff, sc->pages_desc * fd->block_size);
ffc0694c:	80 be 00 14 	lwz     r5,20(r30)                             
      rtems_fdisk_segment_queue_push_tail (&fd->failed, sc);          
    return ret;                                                       
  }                                                                   
                                                                      
  fd->erased_blocks += sc->pages;                                     
  sc->erased++;                                                       
ffc06950:	39 29 00 01 	addi    r9,r9,1                                
                                                                      
  memset (sc->page_descriptors, 0xff, sc->pages_desc * fd->block_size);
ffc06954:	81 5f 00 18 	lwz     r10,24(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;                                     
ffc06958:	7d 07 42 14 	add     r8,r7,r8                               
ffc0695c:	91 1e 00 28 	stw     r8,40(r30)                             
  sc->erased++;                                                       
                                                                      
  memset (sc->page_descriptors, 0xff, sc->pages_desc * fd->block_size);
ffc06960:	7c a5 51 d6 	mullw   r5,r5,r10                              
      rtems_fdisk_segment_queue_push_tail (&fd->failed, sc);          
    return ret;                                                       
  }                                                                   
                                                                      
  fd->erased_blocks += sc->pages;                                     
  sc->erased++;                                                       
ffc06964:	91 3f 00 2c 	stw     r9,44(r31)                             
                                                                      
  memset (sc->page_descriptors, 0xff, sc->pages_desc * fd->block_size);
ffc06968:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc0696c:	48 02 3e d1 	bl      ffc2a83c <memset>                      
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = 0;                                                     
                                                                      
    if (queue->head)                                                  
ffc06970:	81 3e 00 34 	lwz     r9,52(r30)                             
  fd->erased_blocks += sc->pages;                                     
  sc->erased++;                                                       
                                                                      
  memset (sc->page_descriptors, 0xff, sc->pages_desc * fd->block_size);
                                                                      
  sc->pages_active = 0;                                               
ffc06974:	93 bf 00 1c 	stw     r29,28(r31)                            
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = 0;                                                     
                                                                      
    if (queue->head)                                                  
ffc06978:	2f 89 00 00 	cmpwi   cr7,r9,0                               
  sc->erased++;                                                       
                                                                      
  memset (sc->page_descriptors, 0xff, sc->pages_desc * fd->block_size);
                                                                      
  sc->pages_active = 0;                                               
  sc->pages_used   = 0;                                               
ffc0697c:	93 bf 00 20 	stw     r29,32(r31)                            
  sc->pages_bad    = 0;                                               
ffc06980:	93 bf 00 24 	stw     r29,36(r31)                            
                                                                      
  sc->failed = false;                                                 
ffc06984:	93 bf 00 28 	stw     r29,40(r31)                            
rtems_fdisk_segment_queue_push_tail (rtems_fdisk_segment_ctl_queue* queue,
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = 0;                                                     
ffc06988:	93 bf 00 00 	stw     r29,0(r31)                             
                                                                      
    if (queue->head)                                                  
ffc0698c:	41 9e 00 44 	beq-    cr7,ffc069d0 <rtems_fdisk_erase_segment+0x1a0>
    {                                                                 
      queue->tail->next = sc;                                         
ffc06990:	81 3e 00 38 	lwz     r9,56(r30)                             
ffc06994:	93 e9 00 00 	stw     r31,0(r9)                              
      queue->tail       = sc;                                         
ffc06998:	93 fe 00 38 	stw     r31,56(r30)                            
    else                                                              
    {                                                                 
      queue->head = queue->tail = sc;                                 
    }                                                                 
                                                                      
    queue->count++;                                                   
ffc0699c:	81 3e 00 3c 	lwz     r9,60(r30)                             
ffc069a0:	39 29 00 01 	addi    r9,r9,1                                
ffc069a4:	91 3e 00 3c 	stw     r9,60(r30)                             
   * segment will now get a go.                                       
   */                                                                 
  rtems_fdisk_segment_queue_push_tail (&fd->available, sc);           
                                                                      
  return 0;                                                           
}                                                                     
ffc069a8:	80 01 00 24 	lwz     r0,36(r1)                              
ffc069ac:	7f a3 eb 78 	mr      r3,r29                                 
ffc069b0:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc069b4:	7c 08 03 a6 	mtlr    r0                                     
ffc069b8:	83 81 00 10 	lwz     r28,16(r1)                             
ffc069bc:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc069c0:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc069c4:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc069c8:	38 21 00 20 	addi    r1,r1,32                               
ffc069cc:	4e 80 00 20 	blr                                            
      queue->tail->next = sc;                                         
      queue->tail       = sc;                                         
    }                                                                 
    else                                                              
    {                                                                 
      queue->head = queue->tail = sc;                                 
ffc069d0:	93 fe 00 38 	stw     r31,56(r30)                            
ffc069d4:	93 fe 00 34 	stw     r31,52(r30)                            
ffc069d8:	4b ff ff c4 	b       ffc0699c <rtems_fdisk_erase_segment+0x16c>
rtems_fdisk_segment_queue_push_tail (rtems_fdisk_segment_ctl_queue* queue,
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = 0;                                                     
ffc069dc:	91 3f 00 00 	stw     r9,0(r31)                              <== NOT EXECUTED
      queue->tail->next = sc;                                         
      queue->tail       = sc;                                         
    }                                                                 
    else                                                              
    {                                                                 
      queue->head = queue->tail = sc;                                 
ffc069e0:	93 fe 00 5c 	stw     r31,92(r30)                            <== NOT EXECUTED
ffc069e4:	93 fe 00 58 	stw     r31,88(r30)                            <== NOT EXECUTED
ffc069e8:	4b ff ff 20 	b       ffc06908 <rtems_fdisk_erase_segment+0xd8><== NOT EXECUTED
                                                                      

ffc06748 <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, ...) {
ffc06748:	94 21 ff 80 	stwu    r1,-128(r1)                            <== NOT EXECUTED
ffc0674c:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc06750:	93 c1 00 78 	stw     r30,120(r1)                            <== NOT EXECUTED
ffc06754:	90 01 00 84 	stw     r0,132(r1)                             <== NOT EXECUTED
ffc06758:	93 e1 00 7c 	stw     r31,124(r1)                            <== NOT EXECUTED
ffc0675c:	90 81 00 1c 	stw     r4,28(r1)                              <== NOT EXECUTED
ffc06760:	90 a1 00 20 	stw     r5,32(r1)                              <== NOT EXECUTED
ffc06764:	90 c1 00 24 	stw     r6,36(r1)                              <== NOT EXECUTED
ffc06768:	90 e1 00 28 	stw     r7,40(r1)                              <== NOT EXECUTED
ffc0676c:	91 01 00 2c 	stw     r8,44(r1)                              <== NOT EXECUTED
ffc06770:	91 21 00 30 	stw     r9,48(r1)                              <== NOT EXECUTED
ffc06774:	91 41 00 34 	stw     r10,52(r1)                             <== NOT EXECUTED
ffc06778:	40 86 00 24 	bne-    cr1,ffc0679c <rtems_fdisk_error+0x54>  <== NOT EXECUTED
ffc0677c:	d8 21 00 38 	stfd    f1,56(r1)                              <== NOT EXECUTED
ffc06780:	d8 41 00 40 	stfd    f2,64(r1)                              <== NOT EXECUTED
ffc06784:	d8 61 00 48 	stfd    f3,72(r1)                              <== NOT EXECUTED
ffc06788:	d8 81 00 50 	stfd    f4,80(r1)                              <== NOT EXECUTED
ffc0678c:	d8 a1 00 58 	stfd    f5,88(r1)                              <== NOT EXECUTED
ffc06790:	d8 c1 00 60 	stfd    f6,96(r1)                              <== NOT EXECUTED
ffc06794:	d8 e1 00 68 	stfd    f7,104(r1)                             <== NOT EXECUTED
ffc06798:	d9 01 00 70 	stfd    f8,112(r1)                             <== NOT EXECUTED
  int ret;                                                            
  va_list args;                                                       
  va_start (args, format);                                            
  fprintf (stderr, "fdisk:error:");                                   
ffc0679c:	3f e0 00 00 	lis     r31,0                                  <== NOT EXECUTED
ffc067a0:	81 3f 28 0c 	lwz     r9,10252(r31)                          <== 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, ...)                           
{                                                                     
ffc067a4:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
  int ret;                                                            
  va_list args;                                                       
  va_start (args, format);                                            
  fprintf (stderr, "fdisk:error:");                                   
ffc067a8:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc067ac:	80 c9 00 0c 	lwz     r6,12(r9)                              <== NOT EXECUTED
static int                                                            
rtems_fdisk_error (const char *format, ...)                           
{                                                                     
  int ret;                                                            
  va_list args;                                                       
  va_start (args, format);                                            
ffc067b0:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc067b4:	99 21 00 08 	stb     r9,8(r1)                               <== NOT EXECUTED
ffc067b8:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
  fprintf (stderr, "fdisk:error:");                                   
ffc067bc:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
static int                                                            
rtems_fdisk_error (const char *format, ...)                           
{                                                                     
  int ret;                                                            
  va_list args;                                                       
  va_start (args, format);                                            
ffc067c0:	99 21 00 09 	stb     r9,9(r1)                               <== NOT EXECUTED
ffc067c4:	39 21 00 88 	addi    r9,r1,136                              <== NOT EXECUTED
  fprintf (stderr, "fdisk:error:");                                   
ffc067c8:	38 a0 00 0c 	li      r5,12                                  <== NOT EXECUTED
static int                                                            
rtems_fdisk_error (const char *format, ...)                           
{                                                                     
  int ret;                                                            
  va_list args;                                                       
  va_start (args, format);                                            
ffc067cc:	91 21 00 0c 	stw     r9,12(r1)                              <== NOT EXECUTED
  fprintf (stderr, "fdisk:error:");                                   
ffc067d0:	38 63 a9 e8 	addi    r3,r3,-22040                           <== NOT EXECUTED
static int                                                            
rtems_fdisk_error (const char *format, ...)                           
{                                                                     
  int ret;                                                            
  va_list args;                                                       
  va_start (args, format);                                            
ffc067d4:	39 21 00 18 	addi    r9,r1,24                               <== NOT EXECUTED
ffc067d8:	91 21 00 10 	stw     r9,16(r1)                              <== NOT EXECUTED
  fprintf (stderr, "fdisk:error:");                                   
ffc067dc:	48 02 3c 49 	bl      ffc2a424 <fwrite>                      <== NOT EXECUTED
  ret =  vfprintf (stderr, format, args);                             
ffc067e0:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc067e4:	81 3f 28 0c 	lwz     r9,10252(r31)                          <== NOT EXECUTED
ffc067e8:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc067ec:	80 69 00 0c 	lwz     r3,12(r9)                              <== NOT EXECUTED
ffc067f0:	48 02 c8 1d 	bl      ffc3300c <vfprintf>                    <== NOT EXECUTED
  fprintf (stderr, "\n");                                             
ffc067f4:	81 3f 28 0c 	lwz     r9,10252(r31)                          <== NOT EXECUTED
{                                                                     
  int ret;                                                            
  va_list args;                                                       
  va_start (args, format);                                            
  fprintf (stderr, "fdisk:error:");                                   
  ret =  vfprintf (stderr, format, args);                             
ffc067f8:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
  fprintf (stderr, "\n");                                             
ffc067fc:	80 89 00 0c 	lwz     r4,12(r9)                              <== NOT EXECUTED
ffc06800:	38 60 00 0a 	li      r3,10                                  <== NOT EXECUTED
ffc06804:	48 02 32 e9 	bl      ffc29aec <fputc>                       <== NOT EXECUTED
  fflush (stderr);                                                    
ffc06808:	81 3f 28 0c 	lwz     r9,10252(r31)                          <== NOT EXECUTED
ffc0680c:	80 69 00 0c 	lwz     r3,12(r9)                              <== NOT EXECUTED
ffc06810:	48 02 2c b1 	bl      ffc294c0 <fflush>                      <== NOT EXECUTED
  va_end (args);                                                      
  return ret;                                                         
}                                                                     
ffc06814:	80 01 00 84 	lwz     r0,132(r1)                             <== NOT EXECUTED
ffc06818:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc0681c:	83 e1 00 7c 	lwz     r31,124(r1)                            <== NOT EXECUTED
ffc06820:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc06824:	83 c1 00 78 	lwz     r30,120(r1)                            <== NOT EXECUTED
ffc06828:	38 21 00 80 	addi    r1,r1,128                              <== NOT EXECUTED
ffc0682c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc06374 <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, ...) {
ffc06374:	94 21 ff 80 	stwu    r1,-128(r1)                            
ffc06378:	7c 08 02 a6 	mflr    r0                                     
ffc0637c:	93 a1 00 74 	stw     r29,116(r1)                            
ffc06380:	90 01 00 84 	stw     r0,132(r1)                             
ffc06384:	93 c1 00 78 	stw     r30,120(r1)                            
ffc06388:	93 e1 00 7c 	stw     r31,124(r1)                            
ffc0638c:	90 a1 00 18 	stw     r5,24(r1)                              
ffc06390:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc06394:	90 e1 00 20 	stw     r7,32(r1)                              
ffc06398:	91 01 00 24 	stw     r8,36(r1)                              
ffc0639c:	91 21 00 28 	stw     r9,40(r1)                              
ffc063a0:	91 41 00 2c 	stw     r10,44(r1)                             
ffc063a4:	40 86 00 24 	bne-    cr1,ffc063c8 <rtems_fdisk_info+0x54>   <== ALWAYS TAKEN
ffc063a8:	d8 21 00 30 	stfd    f1,48(r1)                              <== NOT EXECUTED
ffc063ac:	d8 41 00 38 	stfd    f2,56(r1)                              <== NOT EXECUTED
ffc063b0:	d8 61 00 40 	stfd    f3,64(r1)                              <== NOT EXECUTED
ffc063b4:	d8 81 00 48 	stfd    f4,72(r1)                              <== NOT EXECUTED
ffc063b8:	d8 a1 00 50 	stfd    f5,80(r1)                              <== NOT EXECUTED
ffc063bc:	d8 c1 00 58 	stfd    f6,88(r1)                              <== NOT EXECUTED
ffc063c0:	d8 e1 00 60 	stfd    f7,96(r1)                              <== NOT EXECUTED
ffc063c4:	d9 01 00 68 	stfd    f8,104(r1)                             <== NOT EXECUTED
  int ret = 0;                                                        
  if (fd->info_level >= 2)                                            
ffc063c8:	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, ...) 
{                                                                     
ffc063cc:	7c 9d 23 78 	mr      r29,r4                                 
  int ret = 0;                                                        
ffc063d0:	3b e0 00 00 	li      r31,0                                  
  if (fd->info_level >= 2)                                            
ffc063d4:	2b 89 00 01 	cmplwi  cr7,r9,1                               
ffc063d8:	40 9d 00 74 	ble-    cr7,ffc0644c <rtems_fdisk_info+0xd8>   <== ALWAYS TAKEN
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
    fprintf (stdout, "fdisk:");                                       
ffc063dc:	3f c0 00 00 	lis     r30,0                                  <== NOT EXECUTED
{                                                                     
  int ret = 0;                                                        
  if (fd->info_level >= 2)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc063e0:	9b e1 00 09 	stb     r31,9(r1)                              <== NOT EXECUTED
    fprintf (stdout, "fdisk:");                                       
ffc063e4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc063e8:	81 3e 28 0c 	lwz     r9,10252(r30)                          <== NOT EXECUTED
ffc063ec:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc063f0:	38 a0 00 06 	li      r5,6                                   <== NOT EXECUTED
ffc063f4:	80 c9 00 08 	lwz     r6,8(r9)                               <== NOT EXECUTED
{                                                                     
  int ret = 0;                                                        
  if (fd->info_level >= 2)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc063f8:	39 20 00 02 	li      r9,2                                   <== NOT EXECUTED
ffc063fc:	99 21 00 08 	stb     r9,8(r1)                               <== NOT EXECUTED
ffc06400:	39 21 00 88 	addi    r9,r1,136                              <== NOT EXECUTED
    fprintf (stdout, "fdisk:");                                       
ffc06404:	38 63 a9 ac 	addi    r3,r3,-22100                           <== NOT EXECUTED
{                                                                     
  int ret = 0;                                                        
  if (fd->info_level >= 2)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc06408:	91 21 00 0c 	stw     r9,12(r1)                              <== NOT EXECUTED
ffc0640c:	39 21 00 10 	addi    r9,r1,16                               <== NOT EXECUTED
ffc06410:	91 21 00 10 	stw     r9,16(r1)                              <== NOT EXECUTED
    fprintf (stdout, "fdisk:");                                       
ffc06414:	48 02 40 11 	bl      ffc2a424 <fwrite>                      <== NOT EXECUTED
    ret =  vfprintf (stdout, format, args);                           
ffc06418:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc0641c:	81 3e 28 0c 	lwz     r9,10252(r30)                          <== NOT EXECUTED
ffc06420:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc06424:	80 69 00 08 	lwz     r3,8(r9)                               <== NOT EXECUTED
ffc06428:	48 02 cb e5 	bl      ffc3300c <vfprintf>                    <== NOT EXECUTED
    fprintf (stdout, "\n");                                           
ffc0642c:	81 3e 28 0c 	lwz     r9,10252(r30)                          <== NOT EXECUTED
  if (fd->info_level >= 2)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
    fprintf (stdout, "fdisk:");                                       
    ret =  vfprintf (stdout, format, args);                           
ffc06430:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
    fprintf (stdout, "\n");                                           
ffc06434:	80 89 00 08 	lwz     r4,8(r9)                               <== NOT EXECUTED
ffc06438:	38 60 00 0a 	li      r3,10                                  <== NOT EXECUTED
ffc0643c:	48 02 36 b1 	bl      ffc29aec <fputc>                       <== NOT EXECUTED
    fflush (stdout);                                                  
ffc06440:	81 3e 28 0c 	lwz     r9,10252(r30)                          <== NOT EXECUTED
ffc06444:	80 69 00 08 	lwz     r3,8(r9)                               <== NOT EXECUTED
ffc06448:	48 02 30 79 	bl      ffc294c0 <fflush>                      <== NOT EXECUTED
    va_end (args);                                                    
  }                                                                   
  return ret;                                                         
}                                                                     
ffc0644c:	80 01 00 84 	lwz     r0,132(r1)                             
ffc06450:	7f e3 fb 78 	mr      r3,r31                                 
ffc06454:	83 a1 00 74 	lwz     r29,116(r1)                            
ffc06458:	7c 08 03 a6 	mtlr    r0                                     
ffc0645c:	83 c1 00 78 	lwz     r30,120(r1)                            
ffc06460:	83 e1 00 7c 	lwz     r31,124(r1)                            
ffc06464:	38 21 00 80 	addi    r1,r1,128                              
ffc06468:	4e 80 00 20 	blr                                            
                                                                      

ffc09234 <rtems_fdisk_initialize>: */ rtems_device_driver rtems_fdisk_initialize (rtems_device_major_number major, rtems_device_minor_number minor, void* arg __attribute__((unused))) {
ffc09234:	94 21 ff 98 	stwu    r1,-104(r1)                            
ffc09238:	7c 08 02 a6 	mflr    r0                                     
ffc0923c:	93 81 00 58 	stw     r28,88(r1)                             
ffc09240:	7c 7c 1b 78 	mr      r28,r3                                 
ffc09244:	90 01 00 6c 	stw     r0,108(r1)                             
ffc09248:	92 21 00 2c 	stw     r17,44(r1)                             
ffc0924c:	92 41 00 30 	stw     r18,48(r1)                             
ffc09250:	92 61 00 34 	stw     r19,52(r1)                             
ffc09254:	92 81 00 38 	stw     r20,56(r1)                             
ffc09258:	92 a1 00 3c 	stw     r21,60(r1)                             
ffc0925c:	92 c1 00 40 	stw     r22,64(r1)                             
ffc09260:	92 e1 00 44 	stw     r23,68(r1)                             
ffc09264:	93 01 00 48 	stw     r24,72(r1)                             
ffc09268:	93 21 00 4c 	stw     r25,76(r1)                             
ffc0926c:	93 41 00 50 	stw     r26,80(r1)                             
ffc09270:	93 61 00 54 	stw     r27,84(r1)                             
ffc09274:	93 a1 00 5c 	stw     r29,92(r1)                             
ffc09278:	93 c1 00 60 	stw     r30,96(r1)                             
ffc0927c:	93 e1 00 64 	stw     r31,100(r1)                            
  const rtems_flashdisk_config* c = rtems_flashdisk_configuration;    
  rtems_flashdisk*              fd;                                   
  rtems_status_code             sc;                                   
                                                                      
  sc = rtems_disk_io_initialize ();                                   
ffc09280:	4b ff cd 8d 	bl      ffc0600c <rtems_disk_io_initialize>    
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc09284:	2c 03 00 00 	cmpwi   r3,0                                   
ffc09288:	41 82 00 50 	beq-    ffc092d8 <rtems_fdisk_initialize+0xa4> <== ALWAYS TAKEN
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0928c:	80 01 00 6c 	lwz     r0,108(r1)                             
ffc09290:	82 21 00 2c 	lwz     r17,44(r1)                             
ffc09294:	7c 08 03 a6 	mtlr    r0                                     
ffc09298:	82 41 00 30 	lwz     r18,48(r1)                             
ffc0929c:	82 61 00 34 	lwz     r19,52(r1)                             
ffc092a0:	82 81 00 38 	lwz     r20,56(r1)                             
ffc092a4:	82 a1 00 3c 	lwz     r21,60(r1)                             
ffc092a8:	82 c1 00 40 	lwz     r22,64(r1)                             
ffc092ac:	82 e1 00 44 	lwz     r23,68(r1)                             
ffc092b0:	83 01 00 48 	lwz     r24,72(r1)                             
ffc092b4:	83 21 00 4c 	lwz     r25,76(r1)                             
ffc092b8:	83 41 00 50 	lwz     r26,80(r1)                             
ffc092bc:	83 61 00 54 	lwz     r27,84(r1)                             
ffc092c0:	83 81 00 58 	lwz     r28,88(r1)                             
ffc092c4:	83 a1 00 5c 	lwz     r29,92(r1)                             
ffc092c8:	83 c1 00 60 	lwz     r30,96(r1)                             
ffc092cc:	83 e1 00 64 	lwz     r31,100(r1)                            
ffc092d0:	38 21 00 68 	addi    r1,r1,104                              
ffc092d4:	4e 80 00 20 	blr                                            
static rtems_status_code                                              
rtems_fdisk_crc16_gen_factors (uint16_t pattern)                      
{                                                                     
  uint32_t b;                                                         
                                                                      
  rtems_fdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);        
ffc092d8:	38 60 02 00 	li      r3,512                                 
ffc092dc:	48 00 17 b9 	bl      ffc0aa94 <malloc>                      
ffc092e0:	3f c0 00 01 	lis     r30,1                                  
  if (!rtems_fdisk_crc16_factor)                                      
ffc092e4:	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);        
ffc092e8:	3b 7e 29 78 	addi    r27,r30,10616                          
ffc092ec:	7c 66 1b 78 	mr      r6,r3                                  
ffc092f0:	90 7b 00 08 	stw     r3,8(r27)                              
  if (!rtems_fdisk_crc16_factor)                                      
    return RTEMS_NO_MEMORY;                                           
ffc092f4:	38 60 00 1a 	li      r3,26                                  
rtems_fdisk_crc16_gen_factors (uint16_t pattern)                      
{                                                                     
  uint32_t b;                                                         
                                                                      
  rtems_fdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);        
  if (!rtems_fdisk_crc16_factor)                                      
ffc092f8:	41 be ff 94 	beq-    cr7,ffc0928c <rtems_fdisk_initialize+0x58><== NEVER TAKEN
 * @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,              
ffc092fc:	38 c6 ff fe 	addi    r6,r6,-2                               
ffc09300:	38 e0 00 00 	li      r7,0                                   
  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;                        
ffc09304:	39 00 84 08 	li      r8,-31736                              
ffc09308:	38 60 00 08 	li      r3,8                                   
ffc0930c:	7c 69 03 a6 	mtctr   r3                                     
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (b = 0; b < 256; b++)                                           
  {                                                                   
    uint32_t i;                                                       
    uint16_t v = b;                                                   
ffc09310:	54 e9 04 3e 	clrlwi  r9,r7,16                               
    for (i = 8; i--;)                                                 
      v = v & 1 ? (v >> 1) ^ pattern : v >> 1;                        
ffc09314:	71 2a 00 01 	andi.   r10,r9,1                               
ffc09318:	55 2a f8 7e 	rlwinm  r10,r9,31,1,31                         
ffc0931c:	7d 4a 42 78 	xor     r10,r10,r8                             
ffc09320:	41 82 03 04 	beq-    ffc09624 <rtems_fdisk_initialize+0x3f0>
ffc09324:	55 49 04 3e 	clrlwi  r9,r10,16                              
                                                                      
  for (b = 0; b < 256; b++)                                           
  {                                                                   
    uint32_t i;                                                       
    uint16_t v = b;                                                   
    for (i = 8; i--;)                                                 
ffc09328:	42 00 ff ec 	bdnz+   ffc09314 <rtems_fdisk_initialize+0xe0> 
                                                                      
  rtems_fdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);        
  if (!rtems_fdisk_crc16_factor)                                      
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (b = 0; b < 256; b++)                                           
ffc0932c:	2f 87 00 ff 	cmpwi   cr7,r7,255                             
  {                                                                   
    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;                         
ffc09330:	b5 26 00 02 	sthu    r9,2(r6)                               
                                                                      
  rtems_fdisk_crc16_factor = malloc (sizeof (uint16_t) * 256);        
  if (!rtems_fdisk_crc16_factor)                                      
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (b = 0; b < 256; b++)                                           
ffc09334:	38 e7 00 01 	addi    r7,r7,1                                
ffc09338:	40 9e ff d0 	bne+    cr7,ffc09308 <rtems_fdisk_initialize+0xd4>
                                                                      
  sc = rtems_fdisk_crc16_gen_factors (0x8408);                        
  if (sc != RTEMS_SUCCESSFUL)                                         
      return sc;                                                      
                                                                      
  rtems_flashdisks = calloc (rtems_flashdisk_configuration_size,      
ffc0933c:	3f 00 00 00 	lis     r24,0                                  
ffc09340:	83 f8 27 c8 	lwz     r31,10184(r24)                         
ffc09344:	38 80 00 74 	li      r4,116                                 
ffc09348:	7f e3 fb 78 	mr      r3,r31                                 
ffc0934c:	48 00 0d cd 	bl      ffc0a118 <calloc>                      
                             sizeof (rtems_flashdisk));               
                                                                      
  if (!rtems_flashdisks)                                              
ffc09350:	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,      
ffc09354:	90 7e 29 78 	stw     r3,10616(r30)                          
ffc09358:	7c 69 1b 78 	mr      r9,r3                                  
                             sizeof (rtems_flashdisk));               
                                                                      
  if (!rtems_flashdisks)                                              
    return RTEMS_NO_MEMORY;                                           
ffc0935c:	38 60 00 1a 	li      r3,26                                  
      return sc;                                                      
                                                                      
  rtems_flashdisks = calloc (rtems_flashdisk_configuration_size,      
                             sizeof (rtems_flashdisk));               
                                                                      
  if (!rtems_flashdisks)                                              
ffc09360:	41 be ff 2c 	beq-    cr7,ffc0928c <rtems_fdisk_initialize+0x58><== NEVER TAKEN
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (minor = 0; minor < rtems_flashdisk_configuration_size; minor++, c++)
ffc09364:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc09368:	41 9e 03 b8 	beq-    cr7,ffc09720 <rtems_fdisk_initialize+0x4ec><== NEVER TAKEN
ffc0936c:	3d 40 ff c4 	lis     r10,-60                                
ffc09370:	39 4a b4 a8 	addi    r10,r10,-19288                         
  {                                                                   
    char     name[] = RTEMS_FLASHDISK_DEVICE_BASE_NAME "a";           
ffc09374:	80 6a 00 00 	lwz     r3,0(r10)                              
                             sizeof (rtems_flashdisk));               
                                                                      
  if (!rtems_flashdisks)                                              
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (minor = 0; minor < rtems_flashdisk_configuration_size; minor++, c++)
ffc09378:	3e c0 ff c4 	lis     r22,-60                                
  {                                                                   
    char     name[] = RTEMS_FLASHDISK_DEVICE_BASE_NAME "a";           
ffc0937c:	81 0a 00 04 	lwz     r8,4(r10)                              
      free (fd->blocks);                                              
      free (fd->devices);                                             
      return sc;                                                      
    }                                                                 
                                                                      
    sc = rtems_disk_create_phys(dev, c->block_size,                   
ffc09380:	3e e0 ff c0 	lis     r23,-64                                
  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";           
ffc09384:	a1 4a 00 08 	lhz     r10,8(r10)                             
                             sizeof (rtems_flashdisk));               
                                                                      
  if (!rtems_flashdisks)                                              
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (minor = 0; minor < rtems_flashdisk_configuration_size; minor++, c++)
ffc09388:	3b 20 00 00 	li      r25,0                                  
  {                                                                   
    char     name[] = RTEMS_FLASHDISK_DEVICE_BASE_NAME "a";           
ffc0938c:	90 61 00 18 	stw     r3,24(r1)                              
                             sizeof (rtems_flashdisk));               
                                                                      
  if (!rtems_flashdisks)                                              
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (minor = 0; minor < rtems_flashdisk_configuration_size; minor++, c++)
ffc09390:	3a d6 9a c4 	addi    r22,r22,-25916                         
ffc09394:	3b 40 00 00 	li      r26,0                                  
  {                                                                   
    char     name[] = RTEMS_FLASHDISK_DEVICE_BASE_NAME "a";           
ffc09398:	91 01 00 1c 	stw     r8,28(r1)                              
    dev_t    dev = rtems_filesystem_make_dev_t (major, minor);        
    uint32_t device;                                                  
    uint32_t blocks = 0;                                              
ffc0939c:	3b c0 00 00 	li      r30,0                                  
      free (fd->blocks);                                              
      free (fd->devices);                                             
      return sc;                                                      
    }                                                                 
                                                                      
    sc = rtems_disk_create_phys(dev, c->block_size,                   
ffc093a0:	3a f7 7e 00 	addi    r23,r23,32256                          
  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";           
ffc093a4:	b1 41 00 20 	sth     r10,32(r1)                             
    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++)              
ffc093a8:	82 b6 00 04 	lwz     r21,4(r22)                             
    dev_t    dev = rtems_filesystem_make_dev_t (major, minor);        
    uint32_t device;                                                  
    uint32_t blocks = 0;                                              
    int      ret;                                                     
                                                                      
    fd = &rtems_flashdisks[minor];                                    
ffc093ac:	7f a9 ca 14 	add     r29,r9,r25                             
  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";           
ffc093b0:	a0 61 00 20 	lhz     r3,32(r1)                              
    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++)              
ffc093b4:	2f 95 00 00 	cmpwi   cr7,r21,0                              
                                                                      
    name [sizeof(RTEMS_FLASHDISK_DEVICE_BASE_NAME)] += minor;         
                                                                      
    fd->major              = major;                                   
    fd->minor              = minor;                                   
    fd->flags              = c->flags;                                
ffc093b8:	80 b6 00 0c 	lwz     r5,12(r22)                             
  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";           
ffc093bc:	b0 61 00 10 	sth     r3,16(r1)                              
ffc093c0:	80 61 00 1c 	lwz     r3,28(r1)                              
    name [sizeof(RTEMS_FLASHDISK_DEVICE_BASE_NAME)] += minor;         
                                                                      
    fd->major              = major;                                   
    fd->minor              = minor;                                   
    fd->flags              = c->flags;                                
    fd->compact_segs       = c->compact_segs;                         
ffc093c4:	80 96 00 14 	lwz     r4,20(r22)                             
    fd->avail_compact_segs = c->avail_compact_segs;                   
ffc093c8:	80 d6 00 18 	lwz     r6,24(r22)                             
    fd->block_size         = c->block_size;                           
ffc093cc:	80 f6 00 00 	lwz     r7,0(r22)                              
    fd->unavail_blocks     = c->unavail_blocks;                       
ffc093d0:	81 16 00 10 	lwz     r8,16(r22)                             
    fd->info_level         = c->info_level;                           
ffc093d4:	81 56 00 1c 	lwz     r10,28(r22)                            
  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";           
ffc093d8:	90 61 00 0c 	stw     r3,12(r1)                              
ffc093dc:	80 61 00 18 	lwz     r3,24(r1)                              
    uint32_t blocks = 0;                                              
    int      ret;                                                     
                                                                      
    fd = &rtems_flashdisks[minor];                                    
                                                                      
    name [sizeof(RTEMS_FLASHDISK_DEVICE_BASE_NAME)] += minor;         
ffc093e0:	9b 41 00 11 	stb     r26,17(r1)                             
  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";           
ffc093e4:	90 61 00 08 	stw     r3,8(r1)                               
    name [sizeof(RTEMS_FLASHDISK_DEVICE_BASE_NAME)] += minor;         
                                                                      
    fd->major              = major;                                   
    fd->minor              = minor;                                   
    fd->flags              = c->flags;                                
    fd->compact_segs       = c->compact_segs;                         
ffc093e8:	90 9d 00 0c 	stw     r4,12(r29)                             
                                                                      
    fd = &rtems_flashdisks[minor];                                    
                                                                      
    name [sizeof(RTEMS_FLASHDISK_DEVICE_BASE_NAME)] += minor;         
                                                                      
    fd->major              = major;                                   
ffc093ec:	7f 89 c9 2e 	stwx    r28,r9,r25                             
    fd->minor              = minor;                                   
ffc093f0:	93 5d 00 04 	stw     r26,4(r29)                             
    fd->flags              = c->flags;                                
ffc093f4:	90 bd 00 08 	stw     r5,8(r29)                              
    fd->compact_segs       = c->compact_segs;                         
    fd->avail_compact_segs = c->avail_compact_segs;                   
ffc093f8:	90 dd 00 10 	stw     r6,16(r29)                             
    fd->block_size         = c->block_size;                           
ffc093fc:	90 fd 00 14 	stw     r7,20(r29)                             
    fd->unavail_blocks     = c->unavail_blocks;                       
ffc09400:	91 1d 00 20 	stw     r8,32(r29)                             
    fd->info_level         = c->info_level;                           
ffc09404:	91 5d 00 6c 	stw     r10,108(r29)                           
                                                                      
    for (device = 0; device < c->device_count; device++)              
ffc09408:	41 9e 02 40 	beq-    cr7,ffc09648 <rtems_fdisk_initialize+0x414><== NEVER TAKEN
ffc0940c:	80 76 00 08 	lwz     r3,8(r22)                              
 * @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,              
ffc09410:	1d 75 00 0c 	mulli   r11,r21,12                             
  for (minor = 0; minor < rtems_flashdisk_configuration_size; minor++, c++)
  {                                                                   
    char     name[] = RTEMS_FLASHDISK_DEVICE_BASE_NAME "a";           
    dev_t    dev = rtems_filesystem_make_dev_t (major, minor);        
    uint32_t device;                                                  
    uint32_t blocks = 0;                                              
ffc09414:	3b e0 00 00 	li      r31,0                                  
 * @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,              
ffc09418:	7d 63 5a 14 	add     r11,r3,r11                             
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0941c:	81 43 00 00 	lwz     r10,0(r3)                              
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++)                             
ffc09420:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc09424:	41 9e 02 0c 	beq-    cr7,ffc09630 <rtems_fdisk_initialize+0x3fc><== NEVER TAKEN
ffc09428:	81 23 00 04 	lwz     r9,4(r3)                               
 * @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,              
ffc0942c:	1d 4a 00 0c 	mulli   r10,r10,12                             
 */                                                                   
static uint32_t                                                       
rtems_fdisk_blocks_in_device (const rtems_fdisk_device_desc* dd,      
                              uint32_t                       page_size)
{                                                                     
  uint32_t count = 0;                                                 
ffc09430:	39 00 00 00 	li      r8,0                                   
 * @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,              
ffc09434:	7c c9 52 14 	add     r6,r9,r10                              
 */                                                                   
static uint32_t                                                       
rtems_fdisk_pages_in_segment (const rtems_fdisk_segment_desc* sd,     
                              uint32_t                        page_size)
{                                                                     
  return sd->size / page_size;                                        
ffc09438:	81 49 00 08 	lwz     r10,8(r9)                              
  for (s = 0; s < dd->segment_count; s++)                             
  {                                                                   
    const rtems_fdisk_segment_desc* sd = &dd->segments[s];            
    count +=                                                          
      (rtems_fdisk_pages_in_segment (sd, page_size) -                 
       rtems_fdisk_page_desc_pages (sd, page_size)) * sd->count;      
ffc0943c:	a0 a9 00 00 	lhz     r5,0(r9)                               
ffc09440:	39 29 00 0c 	addi    r9,r9,12                               
 */                                                                   
static uint32_t                                                       
rtems_fdisk_pages_in_segment (const rtems_fdisk_segment_desc* sd,     
                              uint32_t                        page_size)
{                                                                     
  return sd->size / page_size;                                        
ffc09444:	7d 4a 3b 96 	divwu   r10,r10,r7                             
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);            
ffc09448:	55 44 18 38 	rlwinm  r4,r10,3,0,28                          
  return ((bytes - 1) / page_size) + 1;                               
ffc0944c:	38 84 ff ff 	addi    r4,r4,-1                               
ffc09450:	7c 84 3b 96 	divwu   r4,r4,r7                               
ffc09454:	39 4a ff ff 	addi    r10,r10,-1                             
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++)                             
ffc09458:	7f 89 30 00 	cmpw    cr7,r9,r6                              
  {                                                                   
    const rtems_fdisk_segment_desc* sd = &dd->segments[s];            
    count +=                                                          
      (rtems_fdisk_pages_in_segment (sd, page_size) -                 
ffc0945c:	7d 44 50 50 	subf    r10,r4,r10                             
       rtems_fdisk_page_desc_pages (sd, page_size)) * sd->count;      
ffc09460:	7d 4a 29 d6 	mullw   r10,r10,r5                             
  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 +=                                                          
ffc09464:	7d 08 52 14 	add     r8,r8,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++)                             
ffc09468:	40 9e ff d0 	bne+    cr7,ffc09438 <rtems_fdisk_initialize+0x204><== NEVER TAKEN
ffc0946c:	38 63 00 0c 	addi    r3,r3,12                               
    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++)              
ffc09470:	7f 83 58 00 	cmpw    cr7,r3,r11                             
      blocks += rtems_fdisk_blocks_in_device (&c->devices[device],    
ffc09474:	7f ff 42 14 	add     r31,r31,r8                             
    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++)              
ffc09478:	40 9e ff a4 	bne+    cr7,ffc0941c <rtems_fdisk_initialize+0x1e8><== NEVER TAKEN
                                              c->block_size);         
                                                                      
    /*                                                                
     * One copy buffer of a page size.                                
     */                                                               
    fd->copy_buffer = malloc (c->block_size);                         
ffc0947c:	7c e3 3b 78 	mr      r3,r7                                  
ffc09480:	48 00 16 15 	bl      ffc0aa94 <malloc>                      
    if (!fd->copy_buffer)                                             
ffc09484:	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);                         
ffc09488:	90 7d 00 68 	stw     r3,104(r29)                            
    if (!fd->copy_buffer)                                             
ffc0948c:	41 9e 02 8c 	beq-    cr7,ffc09718 <rtems_fdisk_initialize+0x4e4><== NEVER TAKEN
      return RTEMS_NO_MEMORY;                                         
                                                                      
    fd->blocks = calloc (blocks, sizeof (rtems_fdisk_block_ctl));     
ffc09490:	7f e3 fb 78 	mr      r3,r31                                 
ffc09494:	38 80 00 08 	li      r4,8                                   
ffc09498:	48 00 0c 81 	bl      ffc0a118 <calloc>                      
    if (!fd->blocks)                                                  
ffc0949c:	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));     
ffc094a0:	90 7d 00 18 	stw     r3,24(r29)                             
    if (!fd->blocks)                                                  
ffc094a4:	41 9e 02 74 	beq-    cr7,ffc09718 <rtems_fdisk_initialize+0x4e4><== NEVER TAKEN
      return RTEMS_NO_MEMORY;                                         
                                                                      
    fd->block_count = blocks;                                         
ffc094a8:	93 fd 00 1c 	stw     r31,28(r29)                            
                                                                      
    fd->devices = calloc (c->device_count, sizeof (rtems_fdisk_device_ctl));
ffc094ac:	7e a3 ab 78 	mr      r3,r21                                 
ffc094b0:	38 80 00 0c 	li      r4,12                                  
ffc094b4:	48 00 0c 65 	bl      ffc0a118 <calloc>                      
    if (!fd->devices)                                                 
ffc094b8:	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));
ffc094bc:	90 7d 00 2c 	stw     r3,44(r29)                             
    if (!fd->devices)                                                 
ffc094c0:	41 9e 02 58 	beq-    cr7,ffc09718 <rtems_fdisk_initialize+0x4e4><== NEVER TAKEN
      return RTEMS_NO_MEMORY;                                         
                                                                      
    sc = rtems_semaphore_create (rtems_build_name ('F', 'D', 'S', 'K'), 1,
ffc094c4:	3c 60 46 44 	lis     r3,17988                               
ffc094c8:	60 63 53 4b 	ori     r3,r3,21323                            
ffc094cc:	38 80 00 01 	li      r4,1                                   
ffc094d0:	38 a0 00 54 	li      r5,84                                  
ffc094d4:	38 c0 00 00 	li      r6,0                                   
ffc094d8:	38 fd 00 64 	addi    r7,r29,100                             
ffc094dc:	48 00 65 ed 	bl      ffc0fac8 <rtems_semaphore_create>      
                                 RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE |
                                 RTEMS_INHERIT_PRIORITY, 0, &fd->lock);
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc094e0:	7c 75 1b 79 	mr.     r21,r3                                 
ffc094e4:	40 82 02 04 	bne-    ffc096e8 <rtems_fdisk_initialize+0x4b4><== NEVER TAKEN
      free (fd->blocks);                                              
      free (fd->devices);                                             
      return sc;                                                      
    }                                                                 
                                                                      
    sc = rtems_disk_create_phys(dev, c->block_size,                   
ffc094e8:	80 dd 00 20 	lwz     r6,32(r29)                             
ffc094ec:	7f 83 e3 78 	mr      r3,r28                                 
ffc094f0:	80 b6 00 00 	lwz     r5,0(r22)                              
ffc094f4:	7f 44 d3 78 	mr      r4,r26                                 
ffc094f8:	7c c6 f8 50 	subf    r6,r6,r31                              
ffc094fc:	7e e7 bb 78 	mr      r7,r23                                 
ffc09500:	39 00 00 00 	li      r8,0                                   
ffc09504:	39 21 00 08 	addi    r9,r1,8                                
ffc09508:	4b ff c7 61 	bl      ffc05c68 <rtems_disk_create_phys>      
                                blocks - fd->unavail_blocks,          
                                rtems_fdisk_ioctl, NULL, name);       
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc0950c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc09510:	40 82 01 94 	bne-    ffc096a4 <rtems_fdisk_initialize+0x470><== NEVER TAKEN
      free (fd->devices);                                             
      rtems_fdisk_error ("disk create phy failed");                   
      return sc;                                                      
    }                                                                 
                                                                      
    for (device = 0; device < c->device_count; device++)              
ffc09514:	82 56 00 04 	lwz     r18,4(r22)                             
ffc09518:	2f 92 00 00 	cmpwi   cr7,r18,0                              
ffc0951c:	41 9e 00 c4 	beq-    cr7,ffc095e0 <rtems_fdisk_initialize+0x3ac><== NEVER TAKEN
ffc09520:	82 96 00 08 	lwz     r20,8(r22)                             
ffc09524:	3b e0 00 00 	li      r31,0                                  
ffc09528:	82 7d 00 2c 	lwz     r19,44(r29)                            
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0952c:	81 54 00 00 	lwz     r10,0(r20)                             
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++)           
ffc09530:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc09534:	41 9e 01 50 	beq-    cr7,ffc09684 <rtems_fdisk_initialize+0x450><== NEVER TAKEN
ffc09538:	81 34 00 04 	lwz     r9,4(r20)                              
 * @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,              
ffc0953c:	1e 2a 00 0c 	mulli   r17,r10,12                             
 * Count the segments for a device.                                   
 */                                                                   
static uint32_t                                                       
rtems_fdisk_count_segments (const rtems_fdisk_device_desc* dd)        
{                                                                     
  uint32_t count = 0;                                                 
ffc09540:	3a a0 00 00 	li      r21,0                                  
 * @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,              
ffc09544:	7d 09 8a 14 	add     r8,r9,r17                              
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++)           
    count += dd->segments[segment].count;                             
ffc09548:	a1 49 00 00 	lhz     r10,0(r9)                              
ffc0954c:	39 29 00 0c 	addi    r9,r9,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++)           
ffc09550:	7f 89 40 00 	cmpw    cr7,r9,r8                              
    count += dd->segments[segment].count;                             
ffc09554:	7e b5 52 14 	add     r21,r21,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++)           
ffc09558:	40 9e ff f0 	bne+    cr7,ffc09548 <rtems_fdisk_initialize+0x314><== NEVER TAKEN
      uint32_t                 segment_count;                         
      uint32_t                 segment;                               
                                                                      
      segment_count = rtems_fdisk_count_segments (&c->devices[device]);
                                                                      
      fd->devices[device].segments = calloc (segment_count,           
ffc0955c:	7e a3 ab 78 	mr      r3,r21                                 
ffc09560:	38 80 00 30 	li      r4,48                                  
ffc09564:	48 00 0b b5 	bl      ffc0a118 <calloc>                      
                                             sizeof (rtems_fdisk_segment_ctl));
      if (!fd->devices[device].segments)                              
ffc09568:	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,           
ffc0956c:	90 73 00 00 	stw     r3,0(r19)                              
                                             sizeof (rtems_fdisk_segment_ctl));
      if (!fd->devices[device].segments)                              
ffc09570:	41 9e 00 e0 	beq-    cr7,ffc09650 <rtems_fdisk_initialize+0x41c><== NEVER TAKEN
ffc09574:	81 14 00 04 	lwz     r8,4(r20)                              
 * @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,              
ffc09578:	7c c8 8a 14 	add     r6,r8,r17                              
        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++)
ffc0957c:	a0 e8 00 00 	lhz     r7,0(r8)                               
ffc09580:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc09584:	41 9e 00 34 	beq-    cr7,ffc095b8 <rtems_fdisk_initialize+0x384><== NEVER TAKEN
        {                                                             
          sc->descriptor = sd;                                        
          sc->device     = device;                                    
          sc->segment    = seg_segment;                               
          sc->erased     = 0;                                         
ffc09588:	7c e9 03 a6 	mtctr   r7                                     
        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++)
ffc0958c:	7c 69 1b 78 	mr      r9,r3                                  
ffc09590:	39 40 00 00 	li      r10,0                                  
        {                                                             
          sc->descriptor = sd;                                        
          sc->device     = device;                                    
          sc->segment    = seg_segment;                               
ffc09594:	91 49 00 0c 	stw     r10,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++)
ffc09598:	39 4a 00 01 	addi    r10,r10,1                              
        {                                                             
          sc->descriptor = sd;                                        
ffc0959c:	91 09 00 04 	stw     r8,4(r9)                               
          sc->device     = device;                                    
ffc095a0:	93 e9 00 08 	stw     r31,8(r9)                              
          sc->segment    = seg_segment;                               
          sc->erased     = 0;                                         
ffc095a4:	93 c9 00 2c 	stw     r30,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++)
ffc095a8:	39 29 00 30 	addi    r9,r9,48                               
ffc095ac:	42 00 ff e8 	bdnz+   ffc09594 <rtems_fdisk_initialize+0x360>
 * @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,              
ffc095b0:	1c e7 00 30 	mulli   r7,r7,48                               
ffc095b4:	7c 63 3a 14 	add     r3,r3,r7                               
ffc095b8:	39 08 00 0c 	addi    r8,r8,12                               
        return RTEMS_NO_MEMORY;                                       
      }                                                               
                                                                      
      sc = fd->devices[device].segments;                              
                                                                      
      for (segment = 0; segment < c->devices[device].segment_count; segment++)
ffc095bc:	7f 88 30 00 	cmpw    cr7,r8,r6                              
ffc095c0:	40 9e ff bc 	bne+    cr7,ffc0957c <rtems_fdisk_initialize+0x348><== NEVER TAKEN
      free (fd->devices);                                             
      rtems_fdisk_error ("disk create phy failed");                   
      return sc;                                                      
    }                                                                 
                                                                      
    for (device = 0; device < c->device_count; device++)              
ffc095c4:	3b ff 00 01 	addi    r31,r31,1                              
          sc->erased     = 0;                                         
        }                                                             
      }                                                               
                                                                      
      fd->devices[device].segment_count = segment_count;              
      fd->devices[device].descriptor    = &c->devices[device];        
ffc095c8:	92 93 00 08 	stw     r20,8(r19)                             
      free (fd->devices);                                             
      rtems_fdisk_error ("disk create phy failed");                   
      return sc;                                                      
    }                                                                 
                                                                      
    for (device = 0; device < c->device_count; device++)              
ffc095cc:	7f 9f 90 00 	cmpw    cr7,r31,r18                            
          sc->segment    = seg_segment;                               
          sc->erased     = 0;                                         
        }                                                             
      }                                                               
                                                                      
      fd->devices[device].segment_count = segment_count;              
ffc095d0:	92 b3 00 04 	stw     r21,4(r19)                             
ffc095d4:	3a 94 00 0c 	addi    r20,r20,12                             
ffc095d8:	3a 73 00 0c 	addi    r19,r19,12                             
      free (fd->devices);                                             
      rtems_fdisk_error ("disk create phy failed");                   
      return sc;                                                      
    }                                                                 
                                                                      
    for (device = 0; device < c->device_count; device++)              
ffc095dc:	40 9e ff 50 	bne+    cr7,ffc0952c <rtems_fdisk_initialize+0x2f8><== NEVER TAKEN
                                                                      
      fd->devices[device].segment_count = segment_count;              
      fd->devices[device].descriptor    = &c->devices[device];        
    }                                                                 
                                                                      
    fd->device_count = c->device_count;                               
ffc095e0:	92 5d 00 30 	stw     r18,48(r29)                            
                                                                      
    ret = rtems_fdisk_recover_block_mappings (fd);                    
ffc095e4:	7f a3 eb 78 	mr      r3,r29                                 
ffc095e8:	4b ff e3 cd 	bl      ffc079b4 <rtems_fdisk_recover_block_mappings>
    if (ret)                                                          
ffc095ec:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc095f0:	40 82 01 90 	bne-    ffc09780 <rtems_fdisk_initialize+0x54c><== NEVER TAKEN
      rtems_fdisk_error ("recovery of disk failed: %s (%d)",          
                         strerror (ret), ret);                        
      return ret;                                                     
    }                                                                 
                                                                      
    ret = rtems_fdisk_compact (fd);                                   
ffc095f4:	7f a3 eb 78 	mr      r3,r29                                 
ffc095f8:	4b ff df d1 	bl      ffc075c8 <rtems_fdisk_compact>         
    if (ret)                                                          
ffc095fc:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc09600:	40 82 01 2c 	bne-    ffc0972c <rtems_fdisk_initialize+0x4f8><== NEVER TAKEN
                             sizeof (rtems_flashdisk));               
                                                                      
  if (!rtems_flashdisks)                                              
    return RTEMS_NO_MEMORY;                                           
                                                                      
  for (minor = 0; minor < rtems_flashdisk_configuration_size; minor++, c++)
ffc09604:	83 f8 27 c8 	lwz     r31,10184(r24)                         
ffc09608:	3b 5a 00 01 	addi    r26,r26,1                              
ffc0960c:	3a d6 00 20 	addi    r22,r22,32                             
ffc09610:	7f 9f d0 40 	cmplw   cr7,r31,r26                            
ffc09614:	3b 39 00 74 	addi    r25,r25,116                            
ffc09618:	40 9d 01 08 	ble-    cr7,ffc09720 <rtems_fdisk_initialize+0x4ec><== ALWAYS TAKEN
ffc0961c:	81 3b 00 00 	lwz     r9,0(r27)                              <== NOT EXECUTED
ffc09620:	4b ff fd 88 	b       ffc093a8 <rtems_fdisk_initialize+0x174><== 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;                        
ffc09624:	55 29 f8 7e 	rlwinm  r9,r9,31,1,31                          
                                                                      
  for (b = 0; b < 256; b++)                                           
  {                                                                   
    uint32_t i;                                                       
    uint16_t v = b;                                                   
    for (i = 8; i--;)                                                 
ffc09628:	42 00 fc ec 	bdnz+   ffc09314 <rtems_fdisk_initialize+0xe0> 
ffc0962c:	4b ff fd 00 	b       ffc0932c <rtems_fdisk_initialize+0xf8> 
ffc09630:	38 63 00 0c 	addi    r3,r3,12                               <== NOT EXECUTED
    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++)              
ffc09634:	7f 83 58 00 	cmpw    cr7,r3,r11                             <== NOT EXECUTED
 */                                                                   
static uint32_t                                                       
rtems_fdisk_blocks_in_device (const rtems_fdisk_device_desc* dd,      
                              uint32_t                       page_size)
{                                                                     
  uint32_t count = 0;                                                 
ffc09638:	39 00 00 00 	li      r8,0                                   <== NOT EXECUTED
    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],    
ffc0963c:	7f ff 42 14 	add     r31,r31,r8                             <== NOT EXECUTED
    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++)              
ffc09640:	40 9e fd dc 	bne+    cr7,ffc0941c <rtems_fdisk_initialize+0x1e8><== NOT EXECUTED
ffc09644:	4b ff fe 38 	b       ffc0947c <rtems_fdisk_initialize+0x248><== NOT EXECUTED
  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;                                              
ffc09648:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
ffc0964c:	4b ff fe 30 	b       ffc0947c <rtems_fdisk_initialize+0x248><== NOT EXECUTED
                                                                      
      fd->devices[device].segments = calloc (segment_count,           
                                             sizeof (rtems_fdisk_segment_ctl));
      if (!fd->devices[device].segments)                              
      {                                                               
        rtems_disk_delete (dev);                                      
ffc09650:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc09654:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc09658:	4b ff c1 d9 	bl      ffc05830 <rtems_disk_delete>           <== NOT EXECUTED
        rtems_semaphore_delete (fd->lock);                            
ffc0965c:	80 7d 00 64 	lwz     r3,100(r29)                            <== NOT EXECUTED
ffc09660:	48 00 66 89 	bl      ffc0fce8 <rtems_semaphore_delete>      <== NOT EXECUTED
        free (fd->copy_buffer);                                       
ffc09664:	80 7d 00 68 	lwz     r3,104(r29)                            <== NOT EXECUTED
ffc09668:	48 00 0c 95 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
        free (fd->blocks);                                            
ffc0966c:	80 7d 00 18 	lwz     r3,24(r29)                             <== NOT EXECUTED
ffc09670:	48 00 0c 8d 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
        free (fd->devices);                                           
ffc09674:	80 7d 00 2c 	lwz     r3,44(r29)                             <== NOT EXECUTED
ffc09678:	48 00 0c 85 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
        return RTEMS_NO_MEMORY;                                       
ffc0967c:	38 60 00 1a 	li      r3,26                                  <== NOT EXECUTED
ffc09680:	4b ff fc 0c 	b       ffc0928c <rtems_fdisk_initialize+0x58> <== NOT EXECUTED
      uint32_t                 segment_count;                         
      uint32_t                 segment;                               
                                                                      
      segment_count = rtems_fdisk_count_segments (&c->devices[device]);
                                                                      
      fd->devices[device].segments = calloc (segment_count,           
ffc09684:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc09688:	38 80 00 30 	li      r4,48                                  <== NOT EXECUTED
ffc0968c:	48 00 0a 8d 	bl      ffc0a118 <calloc>                      <== NOT EXECUTED
                                             sizeof (rtems_fdisk_segment_ctl));
      if (!fd->devices[device].segments)                              
ffc09690:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
      uint32_t                 segment_count;                         
      uint32_t                 segment;                               
                                                                      
      segment_count = rtems_fdisk_count_segments (&c->devices[device]);
                                                                      
      fd->devices[device].segments = calloc (segment_count,           
ffc09694:	90 73 00 00 	stw     r3,0(r19)                              <== NOT EXECUTED
                                             sizeof (rtems_fdisk_segment_ctl));
      if (!fd->devices[device].segments)                              
ffc09698:	41 be ff b8 	beq-    cr7,ffc09650 <rtems_fdisk_initialize+0x41c><== NOT EXECUTED
 * Count the segments for a device.                                   
 */                                                                   
static uint32_t                                                       
rtems_fdisk_count_segments (const rtems_fdisk_device_desc* dd)        
{                                                                     
  uint32_t count = 0;                                                 
ffc0969c:	3a a0 00 00 	li      r21,0                                  <== NOT EXECUTED
ffc096a0:	4b ff ff 24 	b       ffc095c4 <rtems_fdisk_initialize+0x390><== NOT EXECUTED
    sc = rtems_disk_create_phys(dev, c->block_size,                   
                                blocks - fd->unavail_blocks,          
                                rtems_fdisk_ioctl, NULL, name);       
    if (sc != RTEMS_SUCCESSFUL)                                       
    {                                                                 
      rtems_semaphore_delete (fd->lock);                              
ffc096a4:	80 7d 00 64 	lwz     r3,100(r29)                            <== NOT EXECUTED
ffc096a8:	48 00 66 41 	bl      ffc0fce8 <rtems_semaphore_delete>      <== NOT EXECUTED
      rtems_disk_delete (dev);                                        
ffc096ac:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc096b0:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc096b4:	4b ff c1 7d 	bl      ffc05830 <rtems_disk_delete>           <== NOT EXECUTED
      free (fd->copy_buffer);                                         
ffc096b8:	80 7d 00 68 	lwz     r3,104(r29)                            <== NOT EXECUTED
ffc096bc:	48 00 0c 41 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
      free (fd->blocks);                                              
ffc096c0:	80 7d 00 18 	lwz     r3,24(r29)                             <== NOT EXECUTED
ffc096c4:	48 00 0c 39 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
      free (fd->devices);                                             
ffc096c8:	80 7d 00 2c 	lwz     r3,44(r29)                             <== NOT EXECUTED
ffc096cc:	48 00 0c 31 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
      rtems_fdisk_error ("disk create phy failed");                   
ffc096d0:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc096d4:	38 63 b4 48 	addi    r3,r3,-19384                           <== NOT EXECUTED
ffc096d8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc096dc:	4b ff d0 6d 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
      free (fd->blocks);                                              
      free (fd->devices);                                             
      return sc;                                                      
    }                                                                 
                                                                      
    sc = rtems_disk_create_phys(dev, c->block_size,                   
ffc096e0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc096e4:	4b ff fb a8 	b       ffc0928c <rtems_fdisk_initialize+0x58> <== NOT EXECUTED
    sc = rtems_semaphore_create (rtems_build_name ('F', 'D', 'S', 'K'), 1,
                                 RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE |
                                 RTEMS_INHERIT_PRIORITY, 0, &fd->lock);
    if (sc != RTEMS_SUCCESSFUL)                                       
    {                                                                 
      rtems_fdisk_error ("disk lock create failed");                  
ffc096e8:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc096ec:	38 63 b4 30 	addi    r3,r3,-19408                           <== NOT EXECUTED
ffc096f0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc096f4:	4b ff d0 55 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
      free (fd->copy_buffer);                                         
ffc096f8:	80 7d 00 68 	lwz     r3,104(r29)                            <== NOT EXECUTED
ffc096fc:	48 00 0c 01 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
      free (fd->blocks);                                              
ffc09700:	80 7d 00 18 	lwz     r3,24(r29)                             <== NOT EXECUTED
ffc09704:	48 00 0b f9 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
      free (fd->devices);                                             
ffc09708:	80 7d 00 2c 	lwz     r3,44(r29)                             <== NOT EXECUTED
ffc0970c:	48 00 0b f1 	bl      ffc0a2fc <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,
ffc09710:	7e a3 ab 78 	mr      r3,r21                                 <== NOT EXECUTED
ffc09714:	4b ff fb 78 	b       ffc0928c <rtems_fdisk_initialize+0x58> <== NOT EXECUTED
                                                                      
    fd->block_count = blocks;                                         
                                                                      
    fd->devices = calloc (c->device_count, sizeof (rtems_fdisk_device_ctl));
    if (!fd->devices)                                                 
      return RTEMS_NO_MEMORY;                                         
ffc09718:	38 60 00 1a 	li      r3,26                                  <== NOT EXECUTED
ffc0971c:	4b ff fb 70 	b       ffc0928c <rtems_fdisk_initialize+0x58> <== NOT EXECUTED
                         strerror (ret), ret);                        
      return ret;                                                     
    }                                                                 
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
ffc09720:	93 fb 00 04 	stw     r31,4(r27)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc09724:	38 60 00 00 	li      r3,0                                   
ffc09728:	4b ff fb 64 	b       ffc0928c <rtems_fdisk_initialize+0x58> 
    }                                                                 
                                                                      
    ret = rtems_fdisk_compact (fd);                                   
    if (ret)                                                          
    {                                                                 
      rtems_disk_delete (dev);                                        
ffc0972c:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc09730:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc09734:	4b ff c0 fd 	bl      ffc05830 <rtems_disk_delete>           <== NOT EXECUTED
      rtems_semaphore_delete (fd->lock);                              
ffc09738:	80 7d 00 64 	lwz     r3,100(r29)                            <== NOT EXECUTED
ffc0973c:	48 00 65 ad 	bl      ffc0fce8 <rtems_semaphore_delete>      <== NOT EXECUTED
      free (fd->copy_buffer);                                         
ffc09740:	80 7d 00 68 	lwz     r3,104(r29)                            <== NOT EXECUTED
ffc09744:	48 00 0b b9 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
      free (fd->blocks);                                              
ffc09748:	80 7d 00 18 	lwz     r3,24(r29)                             <== NOT EXECUTED
ffc0974c:	48 00 0b b1 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
      free (fd->devices);                                             
ffc09750:	80 7d 00 2c 	lwz     r3,44(r29)                             <== NOT EXECUTED
ffc09754:	48 00 0b a9 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
      rtems_fdisk_error ("compacting of disk failed: %s (%d)",        
ffc09758:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0975c:	48 02 24 b9 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc09760:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc09764:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc09768:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc0976c:	38 63 b4 84 	addi    r3,r3,-19324                           <== NOT EXECUTED
ffc09770:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc09774:	4b ff cf d5 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
                         strerror (ret), ret);                        
      return ret;                                                     
ffc09778:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0977c:	4b ff fb 10 	b       ffc0928c <rtems_fdisk_initialize+0x58> <== NOT EXECUTED
    fd->device_count = c->device_count;                               
                                                                      
    ret = rtems_fdisk_recover_block_mappings (fd);                    
    if (ret)                                                          
    {                                                                 
      rtems_disk_delete (dev);                                        
ffc09780:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc09784:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc09788:	4b ff c0 a9 	bl      ffc05830 <rtems_disk_delete>           <== NOT EXECUTED
      rtems_semaphore_delete (fd->lock);                              
ffc0978c:	80 7d 00 64 	lwz     r3,100(r29)                            <== NOT EXECUTED
ffc09790:	48 00 65 59 	bl      ffc0fce8 <rtems_semaphore_delete>      <== NOT EXECUTED
      free (fd->copy_buffer);                                         
ffc09794:	80 7d 00 68 	lwz     r3,104(r29)                            <== NOT EXECUTED
ffc09798:	48 00 0b 65 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
      free (fd->blocks);                                              
ffc0979c:	80 7d 00 18 	lwz     r3,24(r29)                             <== NOT EXECUTED
ffc097a0:	48 00 0b 5d 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
      free (fd->devices);                                             
ffc097a4:	80 7d 00 2c 	lwz     r3,44(r29)                             <== NOT EXECUTED
ffc097a8:	48 00 0b 55 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
      rtems_fdisk_error ("recovery of disk failed: %s (%d)",          
ffc097ac:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc097b0:	48 02 24 65 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc097b4:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc097b8:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc097bc:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc097c0:	38 63 b4 60 	addi    r3,r3,-19360                           <== NOT EXECUTED
ffc097c4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc097c8:	4b ff cf 81 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
                         strerror (ret), ret);                        
      return ret;                                                     
ffc097cc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc097d0:	4b ff fa bc 	b       ffc0928c <rtems_fdisk_initialize+0x58> <== NOT EXECUTED
                                                                      

ffc07e00 <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) {
ffc07e00:	94 21 ff 60 	stwu    r1,-160(r1)                            
ffc07e04:	7c 08 02 a6 	mflr    r0                                     
ffc07e08:	7d 80 00 26 	mfcr    r12                                    
ffc07e0c:	90 01 00 a4 	stw     r0,164(r1)                             
ffc07e10:	93 21 00 84 	stw     r25,132(r1)                            
  dev_t device                                                        
)                                                                     
{                                                                     
  union __rtems_dev_t temp;                                           
                                                                      
  temp.device = device;                                               
ffc07e14:	83 23 00 04 	lwz     r25,4(r3)                              
ffc07e18:	93 61 00 8c 	stw     r27,140(r1)                            
  rtems_blkdev_request*     r = argp;                                 
  rtems_status_code         sc;                                       
                                                                      
  errno = 0;                                                          
                                                                      
  sc = rtems_semaphore_obtain (rtems_flashdisks[minor].lock, RTEMS_WAIT, 0);
ffc07e1c:	3f 60 00 01 	lis     r27,1                                  
 * @param argp IOCTL argument.                                        
 * @retval The IOCTL return value                                     
 */                                                                   
static int                                                            
rtems_fdisk_ioctl (rtems_disk_device *dd, uint32_t req, void* argp)   
{                                                                     
ffc07e20:	92 61 00 6c 	stw     r19,108(r1)                            
  rtems_blkdev_request*     r = argp;                                 
  rtems_status_code         sc;                                       
                                                                      
  errno = 0;                                                          
                                                                      
  sc = rtems_semaphore_obtain (rtems_flashdisks[minor].lock, RTEMS_WAIT, 0);
ffc07e24:	3a 7b 29 78 	addi    r19,r27,10616                          
 * @param argp IOCTL argument.                                        
 * @retval The IOCTL return value                                     
 */                                                                   
static int                                                            
rtems_fdisk_ioctl (rtems_disk_device *dd, uint32_t req, void* argp)   
{                                                                     
ffc07e28:	93 41 00 88 	stw     r26,136(r1)                            
ffc07e2c:	93 81 00 90 	stw     r28,144(r1)                            
  rtems_blkdev_request*     r = argp;                                 
  rtems_status_code         sc;                                       
                                                                      
  errno = 0;                                                          
                                                                      
  sc = rtems_semaphore_obtain (rtems_flashdisks[minor].lock, RTEMS_WAIT, 0);
ffc07e30:	1f 99 00 74 	mulli   r28,r25,116                            
 * @param argp IOCTL argument.                                        
 * @retval The IOCTL return value                                     
 */                                                                   
static int                                                            
rtems_fdisk_ioctl (rtems_disk_device *dd, uint32_t req, void* argp)   
{                                                                     
ffc07e34:	93 a1 00 94 	stw     r29,148(r1)                            
ffc07e38:	7c 7d 1b 78 	mr      r29,r3                                 
ffc07e3c:	93 c1 00 98 	stw     r30,152(r1)                            
ffc07e40:	7c be 2b 78 	mr      r30,r5                                 
ffc07e44:	93 e1 00 9c 	stw     r31,156(r1)                            
ffc07e48:	7c 9f 23 78 	mr      r31,r4                                 
ffc07e4c:	91 81 00 54 	stw     r12,84(r1)                             
ffc07e50:	91 c1 00 58 	stw     r14,88(r1)                             
ffc07e54:	91 e1 00 5c 	stw     r15,92(r1)                             
ffc07e58:	92 01 00 60 	stw     r16,96(r1)                             
ffc07e5c:	92 21 00 64 	stw     r17,100(r1)                            
ffc07e60:	92 41 00 68 	stw     r18,104(r1)                            
ffc07e64:	92 81 00 70 	stw     r20,112(r1)                            
ffc07e68:	92 a1 00 74 	stw     r21,116(r1)                            
ffc07e6c:	92 c1 00 78 	stw     r22,120(r1)                            
ffc07e70:	92 e1 00 7c 	stw     r23,124(r1)                            
ffc07e74:	93 01 00 80 	stw     r24,128(r1)                            
  dev_t                     dev = rtems_disk_get_device_identifier (dd);
  rtems_device_minor_number minor = rtems_filesystem_dev_minor_t (dev);
  rtems_blkdev_request*     r = argp;                                 
  rtems_status_code         sc;                                       
                                                                      
  errno = 0;                                                          
ffc07e78:	48 02 11 81 	bl      ffc28ff8 <__errno>                     
ffc07e7c:	39 40 00 00 	li      r10,0                                  
                                                                      
  sc = rtems_semaphore_obtain (rtems_flashdisks[minor].lock, RTEMS_WAIT, 0);
ffc07e80:	81 3b 29 78 	lwz     r9,10616(r27)                          
ffc07e84:	38 80 00 00 	li      r4,0                                   
  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;                                                          
ffc07e88:	91 43 00 00 	stw     r10,0(r3)                              
                                                                      
  sc = rtems_semaphore_obtain (rtems_flashdisks[minor].lock, RTEMS_WAIT, 0);
ffc07e8c:	38 a0 00 00 	li      r5,0                                   
ffc07e90:	7d 29 e2 14 	add     r9,r9,r28                              
ffc07e94:	80 69 00 64 	lwz     r3,100(r9)                             
ffc07e98:	48 00 7f 45 	bl      ffc0fddc <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc07e9c:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc07ea0:	40 82 00 d0 	bne-    ffc07f70 <rtems_fdisk_ioctl+0x170>     <== NEVER TAKEN
    errno = EIO;                                                      
  else                                                                
  {                                                                   
    errno = 0;                                                        
ffc07ea4:	48 02 11 55 	bl      ffc28ff8 <__errno>                     
    switch (req)                                                      
ffc07ea8:	3d 20 20 00 	lis     r9,8192                                
ffc07eac:	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;                                                        
ffc07eb0:	93 43 00 00 	stw     r26,0(r3)                              
    switch (req)                                                      
ffc07eb4:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
ffc07eb8:	41 9e 01 a4 	beq-    cr7,ffc0805c <rtems_fdisk_ioctl+0x25c> <== NEVER TAKEN
ffc07ebc:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
ffc07ec0:	3d 20 20 00 	lis     r9,8192                                
ffc07ec4:	41 9d 01 2c 	bgt-    cr7,ffc07ff0 <rtems_fdisk_ioctl+0x1f0> 
ffc07ec8:	61 29 42 81 	ori     r9,r9,17025                            
ffc07ecc:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
ffc07ed0:	41 9e 03 ac 	beq-    cr7,ffc0827c <rtems_fdisk_ioctl+0x47c> <== NEVER TAKEN
ffc07ed4:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
ffc07ed8:	40 9d 03 6c 	ble-    cr7,ffc08244 <rtems_fdisk_ioctl+0x444> <== ALWAYS TAKEN
      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]);    
ffc07edc:	48 02 11 1d 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc07ee0:	83 fb 29 78 	lwz     r31,10616(r27)                         <== NOT EXECUTED
ffc07ee4:	7c 7d 1b 78 	mr      r29,r3                                 <== NOT EXECUTED
 */                                                                   
static int                                                            
rtems_fdisk_erase_used (rtems_flashdisk* fd)                          
{                                                                     
  rtems_fdisk_segment_ctl* sc;                                        
  int                      latched_ret = 0;                           
ffc07ee8:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
      case RTEMS_FDISK_IOCTL_COMPACT:                                 
        errno = rtems_fdisk_compact (&rtems_flashdisks[minor]);       
        break;                                                        
                                                                      
      case RTEMS_FDISK_IOCTL_ERASE_USED:                              
        errno = rtems_fdisk_erase_used (&rtems_flashdisks[minor]);    
ffc07eec:	7f ff e2 14 	add     r31,r31,r28                            <== NOT EXECUTED
    if (!queue->head)                                                 
      queue->tail = 0;                                                
                                                                      
    queue->count--;                                                   
                                                                      
    sc->next = 0;                                                     
ffc07ef0:	3b 40 00 00 	li      r26,0                                  <== NOT EXECUTED
 * Pop the head of the segment control queue.                         
 */                                                                   
static rtems_fdisk_segment_ctl*                                       
rtems_fdisk_segment_queue_pop_head (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  if (queue->head)                                                    
ffc07ef4:	81 3f 00 4c 	lwz     r9,76(r31)                             <== NOT EXECUTED
  {                                                                   
    /*                                                                
     * The segment will either end up on the available queue or       
     * the failed queue.                                              
     */                                                               
    int ret = rtems_fdisk_erase_segment (fd, sc);                     
ffc07ef8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
 * Pop the head of the segment control queue.                         
 */                                                                   
static rtems_fdisk_segment_ctl*                                       
rtems_fdisk_segment_queue_pop_head (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  if (queue->head)                                                    
ffc07efc:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
  {                                                                   
    /*                                                                
     * The segment will either end up on the available queue or       
     * the failed queue.                                              
     */                                                               
    int ret = rtems_fdisk_erase_segment (fd, sc);                     
ffc07f00:	7d 24 4b 78 	mr      r4,r9                                  <== NOT EXECUTED
 * Pop the head of the segment control queue.                         
 */                                                                   
static rtems_fdisk_segment_ctl*                                       
rtems_fdisk_segment_queue_pop_head (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  if (queue->head)                                                    
ffc07f04:	41 9e 00 50 	beq-    cr7,ffc07f54 <rtems_fdisk_ioctl+0x154> <== NOT EXECUTED
  {                                                                   
    rtems_fdisk_segment_ctl* sc = queue->head;                        
                                                                      
    queue->head = sc->next;                                           
ffc07f08:	81 49 00 00 	lwz     r10,0(r9)                              <== NOT EXECUTED
    if (!queue->head)                                                 
ffc07f0c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
{                                                                     
  if (queue->head)                                                    
  {                                                                   
    rtems_fdisk_segment_ctl* sc = queue->head;                        
                                                                      
    queue->head = sc->next;                                           
ffc07f10:	91 5f 00 4c 	stw     r10,76(r31)                            <== NOT EXECUTED
    if (!queue->head)                                                 
ffc07f14:	41 9e 04 58 	beq-    cr7,ffc0836c <rtems_fdisk_ioctl+0x56c> <== NOT EXECUTED
      queue->tail = 0;                                                
                                                                      
    queue->count--;                                                   
ffc07f18:	81 5f 00 54 	lwz     r10,84(r31)                            <== NOT EXECUTED
ffc07f1c:	39 4a ff ff 	addi    r10,r10,-1                             <== NOT EXECUTED
ffc07f20:	91 5f 00 54 	stw     r10,84(r31)                            <== NOT EXECUTED
                                                                      
    sc->next = 0;                                                     
ffc07f24:	93 49 00 00 	stw     r26,0(r9)                              <== NOT EXECUTED
  {                                                                   
    /*                                                                
     * The segment will either end up on the available queue or       
     * the failed queue.                                              
     */                                                               
    int ret = rtems_fdisk_erase_segment (fd, sc);                     
ffc07f28:	4b ff e9 09 	bl      ffc06830 <rtems_fdisk_erase_segment>   <== NOT EXECUTED
    if (ret && !latched_ret)                                          
ffc07f2c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              <== NOT EXECUTED
ffc07f30:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc07f34:	41 a2 ff c0 	beq-    ffc07ef4 <rtems_fdisk_ioctl+0xf4>      <== NOT EXECUTED
ffc07f38:	40 be ff bc 	bne-    cr7,ffc07ef4 <rtems_fdisk_ioctl+0xf4>  <== NOT EXECUTED
 * Pop the head of the segment control queue.                         
 */                                                                   
static rtems_fdisk_segment_ctl*                                       
rtems_fdisk_segment_queue_pop_head (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  if (queue->head)                                                    
ffc07f3c:	81 3f 00 4c 	lwz     r9,76(r31)                             <== NOT EXECUTED
    /*                                                                
     * The segment will either end up on the available queue or       
     * the failed queue.                                              
     */                                                               
    int ret = rtems_fdisk_erase_segment (fd, sc);                     
    if (ret && !latched_ret)                                          
ffc07f40:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
  {                                                                   
    /*                                                                
     * The segment will either end up on the available queue or       
     * the failed queue.                                              
     */                                                               
    int ret = rtems_fdisk_erase_segment (fd, sc);                     
ffc07f44:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
 * Pop the head of the segment control queue.                         
 */                                                                   
static rtems_fdisk_segment_ctl*                                       
rtems_fdisk_segment_queue_pop_head (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  if (queue->head)                                                    
ffc07f48:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
  {                                                                   
    /*                                                                
     * The segment will either end up on the available queue or       
     * the failed queue.                                              
     */                                                               
    int ret = rtems_fdisk_erase_segment (fd, sc);                     
ffc07f4c:	7d 24 4b 78 	mr      r4,r9                                  <== NOT EXECUTED
 * Pop the head of the segment control queue.                         
 */                                                                   
static rtems_fdisk_segment_ctl*                                       
rtems_fdisk_segment_queue_pop_head (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  if (queue->head)                                                    
ffc07f50:	40 9e ff b8 	bne+    cr7,ffc07f08 <rtems_fdisk_ioctl+0x108> <== NOT EXECUTED
ffc07f54:	81 3b 29 78 	lwz     r9,10616(r27)                          <== 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]);    
ffc07f58:	93 dd 00 00 	stw     r30,0(r29)                             <== NOT EXECUTED
ffc07f5c:	7f 89 e2 14 	add     r28,r9,r28                             <== NOT EXECUTED
      default:                                                        
        rtems_blkdev_ioctl (dd, req, argp);                           
        break;                                                        
    }                                                                 
                                                                      
    sc = rtems_semaphore_release (rtems_flashdisks[minor].lock);      
ffc07f60:	80 7c 00 64 	lwz     r3,100(r28)                            <== NOT EXECUTED
ffc07f64:	48 00 80 19 	bl      ffc0ff7c <rtems_semaphore_release>     <== NOT EXECUTED
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc07f68:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc07f6c:	41 be 00 10 	beq+    cr7,ffc07f7c <rtems_fdisk_ioctl+0x17c> <== NOT EXECUTED
      errno = EIO;                                                    
ffc07f70:	48 02 10 89 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc07f74:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc07f78:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
  }                                                                   
                                                                      
  return errno == 0 ? 0 : -1;                                         
ffc07f7c:	48 02 10 7d 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc07f80:	81 23 00 00 	lwz     r9,0(r3)                               <== NOT EXECUTED
ffc07f84:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc07f88:	40 9e 02 b4 	bne-    cr7,ffc0823c <rtems_fdisk_ioctl+0x43c> <== NOT EXECUTED
ffc07f8c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc07f90:	80 01 00 a4 	lwz     r0,164(r1)                             
ffc07f94:	81 81 00 54 	lwz     r12,84(r1)                             
ffc07f98:	7c 08 03 a6 	mtlr    r0                                     
ffc07f9c:	81 c1 00 58 	lwz     r14,88(r1)                             
ffc07fa0:	81 e1 00 5c 	lwz     r15,92(r1)                             
ffc07fa4:	7d 80 81 20 	mtcrf   8,r12                                  
ffc07fa8:	82 01 00 60 	lwz     r16,96(r1)                             
ffc07fac:	82 21 00 64 	lwz     r17,100(r1)                            
ffc07fb0:	82 41 00 68 	lwz     r18,104(r1)                            
ffc07fb4:	82 61 00 6c 	lwz     r19,108(r1)                            
ffc07fb8:	82 81 00 70 	lwz     r20,112(r1)                            
ffc07fbc:	82 a1 00 74 	lwz     r21,116(r1)                            
ffc07fc0:	82 c1 00 78 	lwz     r22,120(r1)                            
ffc07fc4:	82 e1 00 7c 	lwz     r23,124(r1)                            
ffc07fc8:	83 01 00 80 	lwz     r24,128(r1)                            
ffc07fcc:	83 21 00 84 	lwz     r25,132(r1)                            
ffc07fd0:	83 41 00 88 	lwz     r26,136(r1)                            
ffc07fd4:	83 61 00 8c 	lwz     r27,140(r1)                            
ffc07fd8:	83 81 00 90 	lwz     r28,144(r1)                            
ffc07fdc:	83 a1 00 94 	lwz     r29,148(r1)                            
ffc07fe0:	83 c1 00 98 	lwz     r30,152(r1)                            
ffc07fe4:	83 e1 00 9c 	lwz     r31,156(r1)                            
ffc07fe8:	38 21 00 a0 	addi    r1,r1,160                              
ffc07fec:	4e 80 00 20 	blr                                            
  if (sc != RTEMS_SUCCESSFUL)                                         
    errno = EIO;                                                      
  else                                                                
  {                                                                   
    errno = 0;                                                        
    switch (req)                                                      
ffc07ff0:	61 29 42 85 	ori     r9,r9,17029                            
ffc07ff4:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
ffc07ff8:	41 9e 03 7c 	beq-    cr7,ffc08374 <rtems_fdisk_ioctl+0x574> 
ffc07ffc:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
ffc08000:	41 9c 02 6c 	blt-    cr7,ffc0826c <rtems_fdisk_ioctl+0x46c> <== NEVER TAKEN
ffc08004:	6f e9 c0 18 	xoris   r9,r31,49176                           
ffc08008:	2f 89 42 01 	cmpwi   cr7,r9,16897                           
ffc0800c:	40 9e 02 44 	bne-    cr7,ffc08250 <rtems_fdisk_ioctl+0x450> 
    {                                                                 
      case RTEMS_BLKIO_REQUEST:                                       
        if ((minor >= rtems_flashdisk_count) ||                       
ffc08010:	81 33 00 04 	lwz     r9,4(r19)                              
ffc08014:	7f 89 c8 40 	cmplw   cr7,r9,r25                             
ffc08018:	40 9d 08 54 	ble-    cr7,ffc0886c <rtems_fdisk_ioctl+0xa6c> <== NEVER TAKEN
            (rtems_flashdisks[minor].device_count == 0))              
ffc0801c:	81 3b 29 78 	lwz     r9,10616(r27)                          
ffc08020:	7d 29 e2 14 	add     r9,r9,r28                              
  {                                                                   
    errno = 0;                                                        
    switch (req)                                                      
    {                                                                 
      case RTEMS_BLKIO_REQUEST:                                       
        if ((minor >= rtems_flashdisk_count) ||                       
ffc08024:	81 29 00 30 	lwz     r9,48(r9)                              
ffc08028:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0802c:	41 9e 08 40 	beq-    cr7,ffc0886c <rtems_fdisk_ioctl+0xa6c> <== NEVER TAKEN
        {                                                             
          errno = ENODEV;                                             
        }                                                             
        else                                                          
        {                                                             
          switch (r->req)                                             
ffc08030:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc08034:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08038:	41 9e 0e 50 	beq-    cr7,ffc08e88 <rtems_fdisk_ioctl+0x1088>
ffc0803c:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc08040:	41 9e 08 4c 	beq-    cr7,ffc0888c <rtems_fdisk_ioctl+0xa8c> <== ALWAYS TAKEN
            case RTEMS_BLKDEV_REQ_WRITE:                              
              errno = rtems_fdisk_write (&rtems_flashdisks[minor], r);
              break;                                                  
                                                                      
            default:                                                  
              errno = EINVAL;                                         
ffc08044:	48 02 0f b5 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc08048:	81 3b 29 78 	lwz     r9,10616(r27)                          <== NOT EXECUTED
ffc0804c:	39 40 00 16 	li      r10,22                                 <== NOT EXECUTED
ffc08050:	91 43 00 00 	stw     r10,0(r3)                              <== NOT EXECUTED
ffc08054:	7f 89 e2 14 	add     r28,r9,r28                             <== NOT EXECUTED
              break;                                                  
ffc08058:	48 00 01 c4 	b       ffc0821c <rtems_fdisk_ioctl+0x41c>     <== 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],
ffc0805c:	48 02 0f 9d 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc08060:	81 3b 29 78 	lwz     r9,10616(r27)                          <== NOT EXECUTED
ffc08064:	7f 89 e2 14 	add     r28,r9,r28                             <== NOT EXECUTED
{                                                                     
  uint32_t i;                                                         
  uint32_t j;                                                         
                                                                      
  data->block_size     = fd->block_size;                              
  data->block_count    = fd->block_count;                             
ffc08068:	81 3c 00 1c 	lwz     r9,28(r28)                             <== NOT EXECUTED
                             rtems_fdisk_monitor_data* data)          
{                                                                     
  uint32_t i;                                                         
  uint32_t j;                                                         
                                                                      
  data->block_size     = fd->block_size;                              
ffc0806c:	80 fc 00 14 	lwz     r7,20(r28)                             <== 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++)                               
ffc08070:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== 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;                          
ffc08074:	81 5c 00 20 	lwz     r10,32(r28)                            <== NOT EXECUTED
  data->device_count   = fd->device_count;                            
ffc08078:	81 1c 00 30 	lwz     r8,48(r28)                             <== NOT EXECUTED
                             rtems_fdisk_monitor_data* data)          
{                                                                     
  uint32_t i;                                                         
  uint32_t j;                                                         
                                                                      
  data->block_size     = fd->block_size;                              
ffc0807c:	90 fe 00 00 	stw     r7,0(r30)                              <== NOT EXECUTED
  data->block_count    = fd->block_count;                             
ffc08080:	91 3e 00 04 	stw     r9,4(r30)                              <== NOT EXECUTED
  data->unavail_blocks = fd->unavail_blocks;                          
ffc08084:	91 5e 00 08 	stw     r10,8(r30)                             <== NOT EXECUTED
  data->device_count   = fd->device_count;                            
ffc08088:	91 1e 00 0c 	stw     r8,12(r30)                             <== NOT EXECUTED
                                                                      
  data->blocks_used = 0;                                              
ffc0808c:	93 5e 00 18 	stw     r26,24(r30)                            <== NOT EXECUTED
  for (i = 0; i < fd->block_count; i++)                               
ffc08090:	41 9e 00 40 	beq-    cr7,ffc080d0 <rtems_fdisk_ioctl+0x2d0> <== 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)   
ffc08094:	55 29 18 38 	rlwinm  r9,r9,3,0,28                           <== NOT EXECUTED
ffc08098:	80 fc 00 18 	lwz     r7,24(r28)                             <== NOT EXECUTED
ffc0809c:	39 49 ff f8 	addi    r10,r9,-8                              <== NOT EXECUTED
ffc080a0:	55 4a e8 fe 	rlwinm  r10,r10,29,3,31                        <== NOT EXECUTED
ffc080a4:	39 4a 00 01 	addi    r10,r10,1                              <== NOT EXECUTED
ffc080a8:	7d 49 03 a6 	mtctr   r10                                    <== NOT EXECUTED
ffc080ac:	39 20 00 00 	li      r9,0                                   <== 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++)                               
    if (fd->blocks[i].segment)                                        
ffc080b0:	7d 47 48 2e 	lwzx    r10,r7,r9                              <== NOT EXECUTED
ffc080b4:	39 29 00 08 	addi    r9,r9,8                                <== NOT EXECUTED
ffc080b8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
ffc080bc:	41 9e 00 10 	beq-    cr7,ffc080cc <rtems_fdisk_ioctl+0x2cc> <== NOT EXECUTED
      data->blocks_used++;                                            
ffc080c0:	81 5e 00 18 	lwz     r10,24(r30)                            <== NOT EXECUTED
ffc080c4:	39 4a 00 01 	addi    r10,r10,1                              <== NOT EXECUTED
ffc080c8:	91 5e 00 18 	stw     r10,24(r30)                            <== 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++)                               
ffc080cc:	42 00 ff e4 	bdnz+   ffc080b0 <rtems_fdisk_ioctl+0x2b0>     <== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc080d0:	81 3c 00 34 	lwz     r9,52(r28)                             <== NOT EXECUTED
rtems_fdisk_segment_count_queue (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
ffc080d4:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
ffc080d8:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc080dc:	41 9e 00 14 	beq-    cr7,ffc080f0 <rtems_fdisk_ioctl+0x2f0> <== NOT EXECUTED
  {                                                                   
    count++;                                                          
    sc = sc->next;                                                    
ffc080e0:	81 29 00 00 	lwz     r9,0(r9)                               <== NOT EXECUTED
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
  {                                                                   
    count++;                                                          
ffc080e4:	39 4a 00 01 	addi    r10,r10,1                              <== NOT EXECUTED
rtems_fdisk_segment_count_queue (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
ffc080e8:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc080ec:	40 9e ff f4 	bne+    cr7,ffc080e0 <rtems_fdisk_ioctl+0x2e0> <== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc080f0:	81 3c 00 40 	lwz     r9,64(r28)                             <== NOT EXECUTED
  data->blocks_used = 0;                                              
  for (i = 0; i < fd->block_count; i++)                               
    if (fd->blocks[i].segment)                                        
      data->blocks_used++;                                            
                                                                      
  data->segs_available = rtems_fdisk_segment_count_queue (&fd->available);
ffc080f4:	91 5e 00 1c 	stw     r10,28(r30)                            <== NOT EXECUTED
rtems_fdisk_segment_count_queue (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
ffc080f8:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
ffc080fc:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc08100:	41 9e 00 14 	beq-    cr7,ffc08114 <rtems_fdisk_ioctl+0x314> <== NOT EXECUTED
  {                                                                   
    count++;                                                          
    sc = sc->next;                                                    
ffc08104:	81 29 00 00 	lwz     r9,0(r9)                               <== NOT EXECUTED
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
  {                                                                   
    count++;                                                          
ffc08108:	39 4a 00 01 	addi    r10,r10,1                              <== NOT EXECUTED
rtems_fdisk_segment_count_queue (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
ffc0810c:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc08110:	40 9e ff f4 	bne+    cr7,ffc08104 <rtems_fdisk_ioctl+0x304> <== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc08114:	81 3c 00 58 	lwz     r9,88(r28)                             <== NOT EXECUTED
  for (i = 0; i < fd->block_count; i++)                               
    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); 
ffc08118:	91 5e 00 20 	stw     r10,32(r30)                            <== NOT EXECUTED
rtems_fdisk_segment_count_queue (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
ffc0811c:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
ffc08120:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc08124:	41 9e 00 14 	beq-    cr7,ffc08138 <rtems_fdisk_ioctl+0x338> <== NOT EXECUTED
  {                                                                   
    count++;                                                          
    sc = sc->next;                                                    
ffc08128:	81 29 00 00 	lwz     r9,0(r9)                               <== NOT EXECUTED
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
  {                                                                   
    count++;                                                          
ffc0812c:	39 4a 00 01 	addi    r10,r10,1                              <== NOT EXECUTED
rtems_fdisk_segment_count_queue (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
ffc08130:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc08134:	40 9e ff f4 	bne+    cr7,ffc08128 <rtems_fdisk_ioctl+0x328> <== 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++)                              
ffc08138:	2f 88 00 00 	cmpwi   cr7,r8,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);
ffc0813c:	91 5e 00 24 	stw     r10,36(r30)                            <== NOT EXECUTED
                                                                      
  data->segment_count = 0;                                            
ffc08140:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc08144:	91 3e 00 10 	stw     r9,16(r30)                             <== NOT EXECUTED
  data->page_count    = 0;                                            
ffc08148:	91 3e 00 14 	stw     r9,20(r30)                             <== NOT EXECUTED
  data->pages_desc    = 0;                                            
ffc0814c:	91 3e 00 2c 	stw     r9,44(r30)                             <== NOT EXECUTED
  data->pages_active  = 0;                                            
ffc08150:	91 3e 00 30 	stw     r9,48(r30)                             <== NOT EXECUTED
  data->pages_used    = 0;                                            
ffc08154:	91 3e 00 34 	stw     r9,52(r30)                             <== NOT EXECUTED
  data->pages_bad     = 0;                                            
ffc08158:	91 3e 00 38 	stw     r9,56(r30)                             <== NOT EXECUTED
  data->seg_erases    = 0;                                            
ffc0815c:	91 3e 00 28 	stw     r9,40(r30)                             <== NOT EXECUTED
                                                                      
  for (i = 0; i < fd->device_count; i++)                              
ffc08160:	41 9e 00 ac 	beq-    cr7,ffc0820c <rtems_fdisk_ioctl+0x40c> <== NOT EXECUTED
ffc08164:	83 1c 00 2c 	lwz     r24,44(r28)                            <== 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)   
ffc08168:	1d 08 00 0c 	mulli   r8,r8,12                               <== NOT EXECUTED
ffc0816c:	3a e0 00 00 	li      r23,0                                  <== NOT EXECUTED
ffc08170:	7e d8 42 14 	add     r22,r24,r8                             <== 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;              
ffc08174:	81 58 00 04 	lwz     r10,4(r24)                             <== NOT EXECUTED
                                                                      
    for (j = 0; j < fd->devices[i].segment_count; j++)                
ffc08178:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
  data->pages_bad     = 0;                                            
  data->seg_erases    = 0;                                            
                                                                      
  for (i = 0; i < fd->device_count; i++)                              
  {                                                                   
    data->segment_count += fd->devices[i].segment_count;              
ffc0817c:	7e f7 52 14 	add     r23,r23,r10                            <== NOT EXECUTED
                                                                      
    for (j = 0; j < fd->devices[i].segment_count; j++)                
ffc08180:	41 9e 00 7c 	beq-    cr7,ffc081fc <rtems_fdisk_ioctl+0x3fc> <== 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)   
ffc08184:	1f 2a 00 30 	mulli   r25,r10,48                             <== NOT EXECUTED
ffc08188:	81 38 00 00 	lwz     r9,0(r24)                              <== NOT EXECUTED
ffc0818c:	80 9e 00 14 	lwz     r4,20(r30)                             <== NOT EXECUTED
ffc08190:	80 be 00 2c 	lwz     r5,44(r30)                             <== NOT EXECUTED
ffc08194:	7f 29 ca 14 	add     r25,r9,r25                             <== NOT EXECUTED
ffc08198:	80 de 00 30 	lwz     r6,48(r30)                             <== NOT EXECUTED
ffc0819c:	80 fe 00 34 	lwz     r7,52(r30)                             <== NOT EXECUTED
ffc081a0:	81 1e 00 38 	lwz     r8,56(r30)                             <== NOT EXECUTED
ffc081a4:	81 5e 00 28 	lwz     r10,40(r30)                            <== 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;                                
ffc081a8:	83 49 00 14 	lwz     r26,20(r9)                             <== NOT EXECUTED
      data->pages_desc   += sc->pages_desc;                           
ffc081ac:	83 69 00 18 	lwz     r27,24(r9)                             <== NOT EXECUTED
      data->pages_active += sc->pages_active;                         
ffc081b0:	83 a9 00 1c 	lwz     r29,28(r9)                             <== 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;                                
ffc081b4:	7c 84 d2 14 	add     r4,r4,r26                              <== NOT EXECUTED
      data->pages_desc   += sc->pages_desc;                           
      data->pages_active += sc->pages_active;                         
      data->pages_used   += sc->pages_used;                           
ffc081b8:	83 e9 00 20 	lwz     r31,32(r9)                             <== 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;                           
ffc081bc:	7c a5 da 14 	add     r5,r5,r27                              <== NOT EXECUTED
      data->pages_active += sc->pages_active;                         
      data->pages_used   += sc->pages_used;                           
      data->pages_bad    += sc->pages_bad;                            
ffc081c0:	80 09 00 24 	lwz     r0,36(r9)                              <== 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;                         
ffc081c4:	7c c6 ea 14 	add     r6,r6,r29                              <== NOT EXECUTED
      data->pages_used   += sc->pages_used;                           
      data->pages_bad    += sc->pages_bad;                            
      data->seg_erases   += sc->erased;                               
ffc081c8:	81 69 00 2c 	lwz     r11,44(r9)                             <== NOT EXECUTED
ffc081cc:	39 29 00 30 	addi    r9,r9,48                               <== 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++)                
ffc081d0:	7f 89 c8 00 	cmpw    cr7,r9,r25                             <== 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;                           
ffc081d4:	7c e7 fa 14 	add     r7,r7,r31                              <== NOT EXECUTED
      data->pages_bad    += sc->pages_bad;                            
ffc081d8:	7d 08 02 14 	add     r8,r8,r0                               <== NOT EXECUTED
      data->seg_erases   += sc->erased;                               
ffc081dc:	7d 4a 5a 14 	add     r10,r10,r11                            <== 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++)                
ffc081e0:	40 9e ff c8 	bne+    cr7,ffc081a8 <rtems_fdisk_ioctl+0x3a8> <== NOT EXECUTED
ffc081e4:	90 9e 00 14 	stw     r4,20(r30)                             <== NOT EXECUTED
ffc081e8:	90 be 00 2c 	stw     r5,44(r30)                             <== NOT EXECUTED
ffc081ec:	90 de 00 30 	stw     r6,48(r30)                             <== NOT EXECUTED
ffc081f0:	90 fe 00 34 	stw     r7,52(r30)                             <== NOT EXECUTED
ffc081f4:	91 1e 00 38 	stw     r8,56(r30)                             <== NOT EXECUTED
ffc081f8:	91 5e 00 28 	stw     r10,40(r30)                            <== NOT EXECUTED
ffc081fc:	3b 18 00 0c 	addi    r24,r24,12                             <== 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++)                              
ffc08200:	7f 98 b0 00 	cmpw    cr7,r24,r22                            <== NOT EXECUTED
ffc08204:	40 9e ff 70 	bne+    cr7,ffc08174 <rtems_fdisk_ioctl+0x374> <== NOT EXECUTED
ffc08208:	92 fe 00 10 	stw     r23,16(r30)                            <== NOT EXECUTED
      data->pages_bad    += sc->pages_bad;                            
      data->seg_erases   += sc->erased;                               
    }                                                                 
  }                                                                   
                                                                      
  data->info_level = fd->info_level;                                  
ffc0820c:	81 3c 00 6c 	lwz     r9,108(r28)                            <== NOT EXECUTED
ffc08210:	91 3e 00 3c 	stw     r9,60(r30)                             <== 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],
ffc08214:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc08218:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
      default:                                                        
        rtems_blkdev_ioctl (dd, req, argp);                           
        break;                                                        
    }                                                                 
                                                                      
    sc = rtems_semaphore_release (rtems_flashdisks[minor].lock);      
ffc0821c:	80 7c 00 64 	lwz     r3,100(r28)                            
ffc08220:	48 00 7d 5d 	bl      ffc0ff7c <rtems_semaphore_release>     
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc08224:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc08228:	40 be fd 48 	bne-    cr7,ffc07f70 <rtems_fdisk_ioctl+0x170> <== NEVER TAKEN
      errno = EIO;                                                    
  }                                                                   
                                                                      
  return errno == 0 ? 0 : -1;                                         
ffc0822c:	48 02 0d cd 	bl      ffc28ff8 <__errno>                     
ffc08230:	81 23 00 00 	lwz     r9,0(r3)                               
ffc08234:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08238:	41 9e fd 54 	beq+    cr7,ffc07f8c <rtems_fdisk_ioctl+0x18c> 
ffc0823c:	38 60 ff ff 	li      r3,-1                                  
ffc08240:	4b ff fd 50 	b       ffc07f90 <rtems_fdisk_ioctl+0x190>     
  if (sc != RTEMS_SUCCESSFUL)                                         
    errno = EIO;                                                      
  else                                                                
  {                                                                   
    errno = 0;                                                        
    switch (req)                                                      
ffc08244:	6f e9 20 00 	xoris   r9,r31,8192                            
ffc08248:	2f 89 42 80 	cmpwi   cr7,r9,17024                           
ffc0824c:	41 9e 00 54 	beq-    cr7,ffc082a0 <rtems_fdisk_ioctl+0x4a0> <== NEVER TAKEN
      case RTEMS_FDISK_IOCTL_PRINT_STATUS:                            
        errno = rtems_fdisk_print_status (&rtems_flashdisks[minor]);  
        break;                                                        
                                                                      
      default:                                                        
        rtems_blkdev_ioctl (dd, req, argp);                           
ffc08250:	7f a3 eb 78 	mr      r3,r29                                 
ffc08254:	7f e4 fb 78 	mr      r4,r31                                 
ffc08258:	7f c5 f3 78 	mr      r5,r30                                 
ffc0825c:	48 01 2e fd 	bl      ffc1b158 <rtems_blkdev_ioctl>          
ffc08260:	81 3b 29 78 	lwz     r9,10616(r27)                          
ffc08264:	7f 89 e2 14 	add     r28,r9,r28                             
        break;                                                        
ffc08268:	4b ff ff b4 	b       ffc0821c <rtems_fdisk_ioctl+0x41c>     
        errno = rtems_fdisk_monitoring_data (&rtems_flashdisks[minor],
                                             (rtems_fdisk_monitor_data*) argp);
        break;                                                        
                                                                      
      case RTEMS_FDISK_IOCTL_INFO_LEVEL:                              
        rtems_flashdisks[minor].info_level = (uintptr_t) argp;        
ffc0826c:	81 3b 29 78 	lwz     r9,10616(r27)                          <== NOT EXECUTED
ffc08270:	7f 89 e2 14 	add     r28,r9,r28                             <== NOT EXECUTED
ffc08274:	93 dc 00 6c 	stw     r30,108(r28)                           <== NOT EXECUTED
        break;                                                        
ffc08278:	4b ff ff a4 	b       ffc0821c <rtems_fdisk_ioctl+0x41c>     <== NOT EXECUTED
      case RTEMS_FDISK_IOCTL_ERASE_DISK:                              
        errno = rtems_fdisk_erase_disk (&rtems_flashdisks[minor]);    
        break;                                                        
                                                                      
      case RTEMS_FDISK_IOCTL_COMPACT:                                 
        errno = rtems_fdisk_compact (&rtems_flashdisks[minor]);       
ffc0827c:	48 02 0d 7d 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc08280:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
ffc08284:	80 7b 29 78 	lwz     r3,10616(r27)                          <== NOT EXECUTED
ffc08288:	7c 63 e2 14 	add     r3,r3,r28                              <== NOT EXECUTED
ffc0828c:	4b ff f3 3d 	bl      ffc075c8 <rtems_fdisk_compact>         <== NOT EXECUTED
ffc08290:	81 3b 29 78 	lwz     r9,10616(r27)                          <== NOT EXECUTED
ffc08294:	90 7f 00 00 	stw     r3,0(r31)                              <== NOT EXECUTED
ffc08298:	7f 89 e2 14 	add     r28,r9,r28                             <== NOT EXECUTED
        break;                                                        
ffc0829c:	4b ff ff 80 	b       ffc0821c <rtems_fdisk_ioctl+0x41c>     <== NOT EXECUTED
          }                                                           
        }                                                             
        break;                                                        
                                                                      
      case RTEMS_FDISK_IOCTL_ERASE_DISK:                              
        errno = rtems_fdisk_erase_disk (&rtems_flashdisks[minor]);    
ffc082a0:	48 02 0d 59 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc082a4:	83 fb 29 78 	lwz     r31,10616(r27)                         <== NOT EXECUTED
{                                                                     
  uint32_t device;                                                    
  int      ret;                                                       
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "erase-disk");                                
ffc082a8:	3c 80 ff c4 	lis     r4,-60                                 <== NOT EXECUTED
          }                                                           
        }                                                             
        break;                                                        
                                                                      
      case RTEMS_FDISK_IOCTL_ERASE_DISK:                              
        errno = rtems_fdisk_erase_disk (&rtems_flashdisks[minor]);    
ffc082ac:	7f ff e2 14 	add     r31,r31,r28                            <== NOT EXECUTED
ffc082b0:	7c 7a 1b 78 	mr      r26,r3                                 <== NOT EXECUTED
{                                                                     
  uint32_t device;                                                    
  int      ret;                                                       
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "erase-disk");                                
ffc082b4:	38 84 b2 28 	addi    r4,r4,-19928                           <== NOT EXECUTED
ffc082b8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc082bc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc082c0:	4b ff e0 b5 	bl      ffc06374 <rtems_fdisk_info>            <== NOT EXECUTED
 */                                                                   
static int                                                            
rtems_fdisk_erase_flash (const rtems_flashdisk* fd)                   
{                                                                     
  uint32_t device;                                                    
  for (device = 0; device < fd->device_count; device++)               
ffc082c4:	81 3f 00 30 	lwz     r9,48(r31)                             <== NOT EXECUTED
ffc082c8:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc082cc:	41 9e 0e fc 	beq-    cr7,ffc091c8 <rtems_fdisk_ioctl+0x13c8><== NOT EXECUTED
ffc082d0:	3e e0 ff c4 	lis     r23,-60                                <== NOT EXECUTED
ffc082d4:	3f 20 ff c4 	lis     r25,-60                                <== NOT EXECUTED
ffc082d8:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
ffc082dc:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
ffc082e0:	3a f7 b2 34 	addi    r23,r23,-19916                         <== NOT EXECUTED
ffc082e4:	3b 39 b2 48 	addi    r25,r25,-19896                         <== NOT EXECUTED
ffc082e8:	48 00 00 10 	b       ffc082f8 <rtems_fdisk_ioctl+0x4f8>     <== NOT EXECUTED
ffc082ec:	81 5f 00 30 	lwz     r10,48(r31)                            <== NOT EXECUTED
ffc082f0:	7f 9e 50 40 	cmplw   cr7,r30,r10                            <== NOT EXECUTED
ffc082f4:	40 9c 0e 78 	bge-    cr7,ffc0916c <rtems_fdisk_ioctl+0x136c><== NOT EXECUTED
  {                                                                   
    int ret;                                                          
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " erase-flash:%02d", device);               
ffc082f8:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc082fc:	7e e4 bb 78 	mr      r4,r23                                 <== NOT EXECUTED
ffc08300:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc08304:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc08308:	4b ff e0 6d 	bl      ffc06374 <rtems_fdisk_info>            <== NOT EXECUTED
 */                                                                   
static int                                                            
rtems_fdisk_device_erase (const rtems_flashdisk* fd, uint32_t device) 
{                                                                     
  const rtems_fdisk_driver_handlers* ops;                             
  ops = fd->devices[device].descriptor->flash_ops;                    
ffc0830c:	81 3f 00 2c 	lwz     r9,44(r31)                             <== NOT EXECUTED
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, " device-erase: %02d", device);             
ffc08310:	7f c5 f3 78 	mr      r5,r30                                 <== 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;                    
ffc08314:	7d 29 ea 14 	add     r9,r9,r29                              <== NOT EXECUTED
ffc08318:	81 29 00 08 	lwz     r9,8(r9)                               <== NOT EXECUTED
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, " device-erase: %02d", device);             
ffc0831c:	7f 24 cb 78 	mr      r4,r25                                 <== NOT EXECUTED
ffc08320:	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;                    
ffc08324:	83 09 00 08 	lwz     r24,8(r9)                              <== NOT EXECUTED
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, " device-erase: %02d", device);             
ffc08328:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc0832c:	4b ff e1 41 	bl      ffc0646c <rtems_fdisk_printf>          <== NOT EXECUTED
#endif                                                                
  return ops->erase_device (fd->devices[device].descriptor, device);  
ffc08330:	81 3f 00 2c 	lwz     r9,44(r31)                             <== NOT EXECUTED
ffc08334:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
 */                                                                   
static int                                                            
rtems_fdisk_erase_flash (const rtems_flashdisk* fd)                   
{                                                                     
  uint32_t device;                                                    
  for (device = 0; device < fd->device_count; device++)               
ffc08338:	3b de 00 01 	addi    r30,r30,1                              <== NOT EXECUTED
  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);             
#endif                                                                
  return ops->erase_device (fd->devices[device].descriptor, device);  
ffc0833c:	7d 49 ea 14 	add     r10,r9,r29                             <== NOT EXECUTED
ffc08340:	81 38 00 14 	lwz     r9,20(r24)                             <== NOT EXECUTED
ffc08344:	80 6a 00 08 	lwz     r3,8(r10)                              <== NOT EXECUTED
ffc08348:	3b bd 00 0c 	addi    r29,r29,12                             <== NOT EXECUTED
ffc0834c:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc08350:	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)                                                     
ffc08354:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc08358:	41 82 ff 94 	beq+    ffc082ec <rtems_fdisk_ioctl+0x4ec>     <== NOT EXECUTED
ffc0835c:	81 5b 29 78 	lwz     r10,10616(r27)                         <== NOT EXECUTED
          }                                                           
        }                                                             
        break;                                                        
                                                                      
      case RTEMS_FDISK_IOCTL_ERASE_DISK:                              
        errno = rtems_fdisk_erase_disk (&rtems_flashdisks[minor]);    
ffc08360:	90 7a 00 00 	stw     r3,0(r26)                              <== NOT EXECUTED
ffc08364:	7f 8a e2 14 	add     r28,r10,r28                            <== NOT EXECUTED
        break;                                                        
ffc08368:	4b ff fe b4 	b       ffc0821c <rtems_fdisk_ioctl+0x41c>     <== NOT EXECUTED
  {                                                                   
    rtems_fdisk_segment_ctl* sc = queue->head;                        
                                                                      
    queue->head = sc->next;                                           
    if (!queue->head)                                                 
      queue->tail = 0;                                                
ffc0836c:	91 5f 00 50 	stw     r10,80(r31)                            <== NOT EXECUTED
ffc08370:	4b ff fb a8 	b       ffc07f18 <rtems_fdisk_ioctl+0x118>     <== NOT EXECUTED
      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]);  
ffc08374:	48 02 0c 85 	bl      ffc28ff8 <__errno>                     
ffc08378:	81 3b 29 78 	lwz     r9,10616(r27)                          
  uint32_t count;                                                     
  uint32_t device;                                                    
                                                                      
  fd->info_level = 3;                                                 
                                                                      
  rtems_fdisk_printf (fd,                                             
ffc0837c:	3c 80 ff c4 	lis     r4,-60                                 
      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]);  
ffc08380:	90 61 00 30 	stw     r3,48(r1)                              
ffc08384:	7e 29 e2 14 	add     r17,r9,r28                             
  uint32_t count;                                                     
  uint32_t device;                                                    
                                                                      
  fd->info_level = 3;                                                 
                                                                      
  rtems_fdisk_printf (fd,                                             
ffc08388:	7c a9 e0 2e 	lwzx    r5,r9,r28                              
  uint32_t current_info_level = fd->info_level;                       
  uint32_t total;                                                     
  uint32_t count;                                                     
  uint32_t device;                                                    
                                                                      
  fd->info_level = 3;                                                 
ffc0838c:	39 20 00 03 	li      r9,3                                   
 */                                                                   
static int                                                            
rtems_fdisk_print_status (rtems_flashdisk* fd)                        
{                                                                     
#if RTEMS_FDISK_TRACE                                                 
  uint32_t current_info_level = fd->info_level;                       
ffc08390:	81 71 00 6c 	lwz     r11,108(r17)                           
  uint32_t count;                                                     
  uint32_t device;                                                    
                                                                      
  fd->info_level = 3;                                                 
                                                                      
  rtems_fdisk_printf (fd,                                             
ffc08394:	38 84 b2 5c 	addi    r4,r4,-19876                           
  uint32_t current_info_level = fd->info_level;                       
  uint32_t total;                                                     
  uint32_t count;                                                     
  uint32_t device;                                                    
                                                                      
  fd->info_level = 3;                                                 
ffc08398:	91 31 00 6c 	stw     r9,108(r17)                            
                                                                      
  rtems_fdisk_printf (fd,                                             
ffc0839c:	7e 23 8b 78 	mr      r3,r17                                 
rtems_fdisk_segment_count_queue (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
ffc083a0:	3b e0 00 00 	li      r31,0                                  
  uint32_t count;                                                     
  uint32_t device;                                                    
                                                                      
  fd->info_level = 3;                                                 
                                                                      
  rtems_fdisk_printf (fd,                                             
ffc083a4:	80 d1 00 04 	lwz     r6,4(r17)                              
 */                                                                   
static int                                                            
rtems_fdisk_print_status (rtems_flashdisk* fd)                        
{                                                                     
#if RTEMS_FDISK_TRACE                                                 
  uint32_t current_info_level = fd->info_level;                       
ffc083a8:	91 61 00 34 	stw     r11,52(r1)                             
  uint32_t count;                                                     
  uint32_t device;                                                    
                                                                      
  fd->info_level = 3;                                                 
                                                                      
  rtems_fdisk_printf (fd,                                             
ffc083ac:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc083b0:	4b ff e0 bd 	bl      ffc0646c <rtems_fdisk_printf>          
                      "Flash Disk Driver Status : %d.%d", fd->major, fd->minor);
                                                                      
  rtems_fdisk_printf (fd, "Block count\t%d", fd->block_count);        
ffc083b4:	3c 80 ff c4 	lis     r4,-60                                 
ffc083b8:	80 b1 00 1c 	lwz     r5,28(r17)                             
ffc083bc:	38 84 b2 80 	addi    r4,r4,-19840                           
ffc083c0:	7e 23 8b 78 	mr      r3,r17                                 
ffc083c4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc083c8:	4b ff e0 a5 	bl      ffc0646c <rtems_fdisk_printf>          
  rtems_fdisk_printf (fd, "Unavail blocks\t%d", fd->unavail_blocks);  
ffc083cc:	80 b1 00 20 	lwz     r5,32(r17)                             
ffc083d0:	3c 80 ff c4 	lis     r4,-60                                 
ffc083d4:	38 84 b2 90 	addi    r4,r4,-19824                           
ffc083d8:	7e 23 8b 78 	mr      r3,r17                                 
ffc083dc:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc083e0:	4b ff e0 8d 	bl      ffc0646c <rtems_fdisk_printf>          
  rtems_fdisk_printf (fd, "Starvation threshold\t%d", fd->starvation_threshold);
ffc083e4:	80 b1 00 24 	lwz     r5,36(r17)                             
ffc083e8:	3c 80 ff c4 	lis     r4,-60                                 
ffc083ec:	38 84 b2 a4 	addi    r4,r4,-19804                           
ffc083f0:	7e 23 8b 78 	mr      r3,r17                                 
ffc083f4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc083f8:	4b ff e0 75 	bl      ffc0646c <rtems_fdisk_printf>          
  rtems_fdisk_printf (fd, "Starvations\t%d", fd->starvations);        
ffc083fc:	80 b1 00 70 	lwz     r5,112(r17)                            
ffc08400:	3c 80 ff c4 	lis     r4,-60                                 
ffc08404:	7e 23 8b 78 	mr      r3,r17                                 
ffc08408:	38 84 b2 bc 	addi    r4,r4,-19780                           
ffc0840c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc08410:	4b ff e0 5d 	bl      ffc0646c <rtems_fdisk_printf>          
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc08414:	81 31 00 34 	lwz     r9,52(r17)                             
rtems_fdisk_segment_count_queue (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
ffc08418:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0841c:	41 9e 00 14 	beq-    cr7,ffc08430 <rtems_fdisk_ioctl+0x630> <== NEVER TAKEN
  {                                                                   
    count++;                                                          
    sc = sc->next;                                                    
ffc08420:	81 29 00 00 	lwz     r9,0(r9)                               
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
  {                                                                   
    count++;                                                          
ffc08424:	3b ff 00 01 	addi    r31,r31,1                              
rtems_fdisk_segment_count_queue (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
ffc08428:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0842c:	40 9e ff f4 	bne+    cr7,ffc08420 <rtems_fdisk_ioctl+0x620> <== NEVER TAKEN
  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);           
  total = count;                                                      
  rtems_fdisk_printf (fd, "Available queue\t%ld (%ld)",               
ffc08430:	80 d1 00 3c 	lwz     r6,60(r17)                             
ffc08434:	3c 80 ff c4 	lis     r4,-60                                 
ffc08438:	7e 23 8b 78 	mr      r3,r17                                 
ffc0843c:	38 84 b2 cc 	addi    r4,r4,-19764                           
ffc08440:	7f e5 fb 78 	mr      r5,r31                                 
ffc08444:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc08448:	4b ff e0 25 	bl      ffc0646c <rtems_fdisk_printf>          
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0844c:	81 51 00 40 	lwz     r10,64(r17)                            
rtems_fdisk_segment_count_queue (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
ffc08450:	39 20 00 00 	li      r9,0                                   
ffc08454:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc08458:	41 9e 00 14 	beq-    cr7,ffc0846c <rtems_fdisk_ioctl+0x66c> <== NEVER TAKEN
  {                                                                   
    count++;                                                          
    sc = sc->next;                                                    
ffc0845c:	81 4a 00 00 	lwz     r10,0(r10)                             
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
  {                                                                   
    count++;                                                          
ffc08460:	39 29 00 01 	addi    r9,r9,1                                
rtems_fdisk_segment_count_queue (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
ffc08464:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc08468:	40 9e ff f4 	bne+    cr7,ffc0845c <rtems_fdisk_ioctl+0x65c> 
  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;                                                     
  rtems_fdisk_printf (fd, "Used queue\t%ld (%ld)",                    
ffc0846c:	80 d1 00 48 	lwz     r6,72(r17)                             
ffc08470:	3c 80 ff c4 	lis     r4,-60                                 
ffc08474:	7d 25 4b 78 	mr      r5,r9                                  
ffc08478:	7e 23 8b 78 	mr      r3,r17                                 
ffc0847c:	38 84 b2 e8 	addi    r4,r4,-19736                           
  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;                                                     
ffc08480:	7f e9 fa 14 	add     r31,r9,r31                             
  rtems_fdisk_printf (fd, "Used queue\t%ld (%ld)",                    
ffc08484:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc08488:	4b ff df e5 	bl      ffc0646c <rtems_fdisk_printf>          
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0848c:	81 51 00 4c 	lwz     r10,76(r17)                            
rtems_fdisk_segment_count_queue (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
ffc08490:	39 20 00 00 	li      r9,0                                   
ffc08494:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc08498:	41 9e 00 14 	beq-    cr7,ffc084ac <rtems_fdisk_ioctl+0x6ac> <== ALWAYS TAKEN
  {                                                                   
    count++;                                                          
    sc = sc->next;                                                    
ffc0849c:	81 4a 00 00 	lwz     r10,0(r10)                             <== NOT EXECUTED
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
  {                                                                   
    count++;                                                          
ffc084a0:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
rtems_fdisk_segment_count_queue (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
ffc084a4:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
ffc084a8:	40 9e ff f4 	bne+    cr7,ffc0849c <rtems_fdisk_ioctl+0x69c> <== NOT EXECUTED
  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;                                                     
  rtems_fdisk_printf (fd, "Erase queue\t%ld (%ld)",                   
ffc084ac:	80 d1 00 54 	lwz     r6,84(r17)                             
ffc084b0:	3c 80 ff c4 	lis     r4,-60                                 
ffc084b4:	7d 25 4b 78 	mr      r5,r9                                  
ffc084b8:	7e 23 8b 78 	mr      r3,r17                                 
ffc084bc:	38 84 b3 00 	addi    r4,r4,-19712                           
  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;                                                     
ffc084c0:	7f ff 4a 14 	add     r31,r31,r9                             
  rtems_fdisk_printf (fd, "Erase queue\t%ld (%ld)",                   
ffc084c4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc084c8:	4b ff df a5 	bl      ffc0646c <rtems_fdisk_printf>          
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc084cc:	81 51 00 58 	lwz     r10,88(r17)                            
rtems_fdisk_segment_count_queue (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
ffc084d0:	39 20 00 00 	li      r9,0                                   
ffc084d4:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc084d8:	41 9e 00 14 	beq-    cr7,ffc084ec <rtems_fdisk_ioctl+0x6ec> <== ALWAYS TAKEN
  {                                                                   
    count++;                                                          
    sc = sc->next;                                                    
ffc084dc:	81 4a 00 00 	lwz     r10,0(r10)                             <== NOT EXECUTED
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
  {                                                                   
    count++;                                                          
ffc084e0:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
rtems_fdisk_segment_count_queue (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
ffc084e4:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
ffc084e8:	40 9e ff f4 	bne+    cr7,ffc084dc <rtems_fdisk_ioctl+0x6dc> <== NOT EXECUTED
  total += count;                                                     
  rtems_fdisk_printf (fd, "Erase queue\t%ld (%ld)",                   
                      count, rtems_fdisk_segment_queue_count (&fd->erase));
  count = rtems_fdisk_segment_count_queue (&fd->failed);              
  total += count;                                                     
  rtems_fdisk_printf (fd, "Failed queue\t%ld (%ld)",                  
ffc084ec:	80 d1 00 60 	lwz     r6,96(r17)                             
ffc084f0:	3c 80 ff c4 	lis     r4,-60                                 
ffc084f4:	7d 25 4b 78 	mr      r5,r9                                  
ffc084f8:	7e 23 8b 78 	mr      r3,r17                                 
ffc084fc:	38 84 b3 18 	addi    r4,r4,-19688                           
  count = rtems_fdisk_segment_count_queue (&fd->erase);               
  total += count;                                                     
  rtems_fdisk_printf (fd, "Erase queue\t%ld (%ld)",                   
                      count, rtems_fdisk_segment_queue_count (&fd->erase));
  count = rtems_fdisk_segment_count_queue (&fd->failed);              
  total += count;                                                     
ffc08500:	7f ff 4a 14 	add     r31,r31,r9                             
  rtems_fdisk_printf (fd, "Failed queue\t%ld (%ld)",                  
ffc08504:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc08508:	4b ff df 65 	bl      ffc0646c <rtems_fdisk_printf>          
                      count, rtems_fdisk_segment_queue_count (&fd->failed));
                                                                      
  count = 0;                                                          
  for (device = 0; device < fd->device_count; device++)               
ffc0850c:	81 31 00 30 	lwz     r9,48(r17)                             
ffc08510:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08514:	41 9e 03 70 	beq-    cr7,ffc08884 <rtems_fdisk_ioctl+0xa84> <== NEVER TAKEN
ffc08518:	81 51 00 2c 	lwz     r10,44(r17)                            
 * @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)   
ffc0851c:	1d 29 00 0c 	mulli   r9,r9,12                               
  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;                                                          
ffc08520:	38 c0 00 00 	li      r6,0                                   
 * @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)   
ffc08524:	7d 29 52 14 	add     r9,r9,r10                              
  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++)               
    count += fd->devices[device].segment_count;                       
ffc08528:	81 0a 00 04 	lwz     r8,4(r10)                              
ffc0852c:	39 4a 00 0c 	addi    r10,r10,12                             
  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++)               
ffc08530:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
    count += fd->devices[device].segment_count;                       
ffc08534:	7c c6 42 14 	add     r6,r6,r8                               
  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++)               
ffc08538:	40 9e ff f0 	bne+    cr7,ffc08528 <rtems_fdisk_ioctl+0x728> <== NEVER TAKEN
    count += fd->devices[device].segment_count;                       
                                                                      
  rtems_fdisk_printf (fd, "Queue total\t%ld of %ld, %s", total, count,
ffc0853c:	7f 9f 30 00 	cmpw    cr7,r31,r6                             
ffc08540:	41 9e 09 3c 	beq-    cr7,ffc08e7c <rtems_fdisk_ioctl+0x107c><== ALWAYS TAKEN
ffc08544:	3c e0 ff c4 	lis     r7,-60                                 <== NOT EXECUTED
ffc08548:	38 e7 ae 58 	addi    r7,r7,-20904                           <== NOT EXECUTED
ffc0854c:	3c 80 ff c4 	lis     r4,-60                                 
ffc08550:	38 84 b3 30 	addi    r4,r4,-19664                           
ffc08554:	7f e5 fb 78 	mr      r5,r31                                 
ffc08558:	7e 23 8b 78 	mr      r3,r17                                 
ffc0855c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc08560:	4b ff df 0d 	bl      ffc0646c <rtems_fdisk_printf>          
                      total == count ? "ok" : "MISSING");             
                                                                      
  rtems_fdisk_printf (fd, "Device count\t%d", fd->device_count);      
ffc08564:	80 b1 00 30 	lwz     r5,48(r17)                             
ffc08568:	3c 80 ff c4 	lis     r4,-60                                 
ffc0856c:	7e 23 8b 78 	mr      r3,r17                                 
ffc08570:	38 84 b3 4c 	addi    r4,r4,-19636                           
ffc08574:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc08578:	4b ff de f5 	bl      ffc0646c <rtems_fdisk_printf>          
                                                                      
  for (device = 0; device < fd->device_count; device++)               
ffc0857c:	81 31 00 30 	lwz     r9,48(r17)                             
ffc08580:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08584:	41 9e 02 2c 	beq-    cr7,ffc087b0 <rtems_fdisk_ioctl+0x9b0> <== NEVER TAKEN
ffc08588:	3e 60 ff c4 	lis     r19,-60                                
ffc0858c:	3e 80 ff c4 	lis     r20,-60                                
ffc08590:	3f 00 ff c4 	lis     r24,-60                                
                                                                      
        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,                                   
ffc08594:	3f 20 ff c4 	lis     r25,-60                                
  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++)               
ffc08598:	3b 40 00 00 	li      r26,0                                  
ffc0859c:	3a e0 00 00 	li      r23,0                                  
ffc085a0:	3a 73 b3 5c 	addi    r19,r19,-19620                         
ffc085a4:	3a 94 b3 6c 	addi    r20,r20,-19604                         
ffc085a8:	3b 18 b3 b0 	addi    r24,r24,-19536                         
                                                                      
        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,                                   
ffc085ac:	3b 39 b3 80 	addi    r25,r25,-19584                         
  for (device = 0; device < fd->device_count; device++)               
  {                                                                   
    uint32_t block;                                                   
    uint32_t seg;                                                     
                                                                      
    rtems_fdisk_printf (fd, " Device\t\t%ld", device);                
ffc085b0:	7e 64 9b 78 	mr      r4,r19                                 
ffc085b4:	7e e5 bb 78 	mr      r5,r23                                 
ffc085b8:	7e 23 8b 78 	mr      r3,r17                                 
ffc085bc:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc085c0:	4b ff de ad 	bl      ffc0646c <rtems_fdisk_printf>          
    rtems_fdisk_printf (fd, "  Segment count\t%ld",                   
ffc085c4:	81 31 00 2c 	lwz     r9,44(r17)                             
ffc085c8:	7e 23 8b 78 	mr      r3,r17                                 
ffc085cc:	7d 29 d2 14 	add     r9,r9,r26                              
ffc085d0:	80 a9 00 04 	lwz     r5,4(r9)                               
ffc085d4:	7e 84 a3 78 	mr      r4,r20                                 
ffc085d8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc085dc:	4b ff de 91 	bl      ffc0646c <rtems_fdisk_printf>          
                        fd->devices[device].segment_count);           
                                                                      
    for (seg = 0; seg < fd->devices[device].segment_count; seg++)     
ffc085e0:	81 31 00 2c 	lwz     r9,44(r17)                             
ffc085e4:	7d 29 d2 14 	add     r9,r9,r26                              
ffc085e8:	81 49 00 04 	lwz     r10,4(r9)                              
ffc085ec:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc085f0:	41 9e 01 ac 	beq-    cr7,ffc0879c <rtems_fdisk_ioctl+0x99c> <== NEVER TAKEN
ffc085f4:	3b a0 00 00 	li      r29,0                                  
ffc085f8:	3b c0 00 00 	li      r30,0                                  
    {                                                                 
      rtems_fdisk_segment_ctl* sc = &fd->devices[device].segments[seg];
ffc085fc:	82 49 00 00 	lwz     r18,0(r9)                              
      uint32_t                 active = 0;                            
      uint32_t                 used = 0;                              
      bool                     is_active = false;                     
      char                     queues[5];                             
                                                                      
      rtems_fdisk_queue_status (fd, sc, queues);                      
ffc08600:	7e 23 8b 78 	mr      r3,r17                                 
ffc08604:	38 a1 00 20 	addi    r5,r1,32                               
    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];
ffc08608:	7e 52 ea 14 	add     r18,r18,r29                            
      uint32_t                 active = 0;                            
      uint32_t                 used = 0;                              
      bool                     is_active = false;                     
      char                     queues[5];                             
                                                                      
      rtems_fdisk_queue_status (fd, sc, queues);                      
ffc0860c:	7e 44 93 78 	mr      r4,r18                                 
ffc08610:	4b ff dc 5d 	bl      ffc0626c <rtems_fdisk_queue_status>    
                                                                      
      for (page = 0; page < sc->pages; page++)                        
ffc08614:	80 f2 00 14 	lwz     r7,20(r18)                             
ffc08618:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc0861c:	41 9e 02 38 	beq-    cr7,ffc08854 <rtems_fdisk_ioctl+0xa54> <== NEVER TAKEN
ffc08620:	80 d1 00 1c 	lwz     r6,28(r17)                             
      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;                     
ffc08624:	39 e0 00 00 	li      r15,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;                            
ffc08628:	39 c0 00 00 	li      r14,0                                  
ffc0862c:	2f 86 00 00 	cmpwi   cr7,r6,0                               
ffc08630:	7c ca 33 78 	mr      r10,r6                                 
      uint32_t                 used = 0;                              
ffc08634:	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;                            
ffc08638:	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++)                        
ffc0863c:	3a 00 00 00 	li      r16,0                                  
      {                                                               
        if (rtems_fdisk_page_desc_erased (&sc->page_descriptors[page]))
ffc08640:	81 12 00 10 	lwz     r8,16(r18)                             
 * @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)   
ffc08644:	56 05 18 38 	rlwinm  r5,r16,3,0,28                          
static bool                                                           
rtems_fdisk_page_desc_erased (const rtems_fdisk_page_desc* pd)        
{                                                                     
  return ((pd->crc == 0xffff) &&                                      
          (pd->flags == 0xffff) &&                                    
          (pd->block == 0xffffffff)) ? true : false;                  
ffc08648:	7c 88 28 2e 	lwzx    r4,r8,r5                               
                                                                      
      rtems_fdisk_queue_status (fd, sc, queues);                      
                                                                      
      for (page = 0; page < sc->pages; page++)                        
      {                                                               
        if (rtems_fdisk_page_desc_erased (&sc->page_descriptors[page]))
ffc0864c:	7d 08 2a 14 	add     r8,r8,r5                               
static bool                                                           
rtems_fdisk_page_desc_erased (const rtems_fdisk_page_desc* pd)        
{                                                                     
  return ((pd->crc == 0xffff) &&                                      
          (pd->flags == 0xffff) &&                                    
          (pd->block == 0xffffffff)) ? true : false;                  
ffc08650:	2f 04 ff ff 	cmpwi   cr6,r4,-1                              
ffc08654:	41 9a 01 d8 	beq-    cr6,ffc0882c <rtems_fdisk_ioctl+0xa2c> 
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc08658:	a1 08 00 02 	lhz     r8,2(r8)                               
                                                                      
      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],
ffc0865c:	71 09 00 01 	andi.   r9,r8,1                                
ffc08660:	40 82 00 14 	bne-    ffc08674 <rtems_fdisk_ioctl+0x874>     <== NEVER TAKEN
                                                  RTEMS_FDISK_PAGE_ACTIVE))
        {                                                             
          if (rtems_fdisk_page_desc_flags_set (&sc->page_descriptors[page],
ffc08664:	55 08 07 bc 	rlwinm  r8,r8,0,30,30                          
ffc08668:	71 09 ff ff 	andi.   r9,r8,65535                            
ffc0866c:	40 82 01 d4 	bne-    ffc08840 <rtems_fdisk_ioctl+0xa40>     
                                               RTEMS_FDISK_PAGE_USED))
            used++;                                                   
ffc08670:	3a b5 00 01 	addi    r21,r21,1                              
            active++;                                                 
            is_active = true;                                         
          }                                                           
        }                                                             
                                                                      
        for (block = 0; block < fd->block_count; block++)             
ffc08674:	41 9e 00 7c 	beq-    cr7,ffc086f0 <rtems_fdisk_ioctl+0x8f0> <== NEVER TAKEN
        {                                                             
          if ((fd->blocks[block].segment == sc) &&                    
              (fd->blocks[block].page == page) && !is_active)         
ffc08678:	2e 0f 00 00 	cmpwi   cr4,r15,0                              
            active++;                                                 
            is_active = true;                                         
          }                                                           
        }                                                             
                                                                      
        for (block = 0; block < fd->block_count; block++)             
ffc0867c:	3b e0 00 00 	li      r31,0                                  
ffc08680:	48 00 00 14 	b       ffc08694 <rtems_fdisk_ioctl+0x894>     
ffc08684:	3b ff 00 01 	addi    r31,r31,1                              
ffc08688:	7f 9f 30 40 	cmplw   cr7,r31,r6                             
ffc0868c:	7c ca 33 78 	mr      r10,r6                                 
ffc08690:	40 9c 00 58 	bge-    cr7,ffc086e8 <rtems_fdisk_ioctl+0x8e8> 
        {                                                             
          if ((fd->blocks[block].segment == sc) &&                    
ffc08694:	81 51 00 18 	lwz     r10,24(r17)                            
 * @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)   
ffc08698:	57 e8 18 38 	rlwinm  r8,r31,3,0,28                          
          }                                                           
        }                                                             
                                                                      
        for (block = 0; block < fd->block_count; block++)             
        {                                                             
          if ((fd->blocks[block].segment == sc) &&                    
ffc0869c:	7c ea 40 2e 	lwzx    r7,r10,r8                              
ffc086a0:	7d 4a 42 14 	add     r10,r10,r8                             
ffc086a4:	7f 92 38 00 	cmpw    cr7,r18,r7                             
ffc086a8:	40 9e ff dc 	bne+    cr7,ffc08684 <rtems_fdisk_ioctl+0x884> 
ffc086ac:	81 4a 00 04 	lwz     r10,4(r10)                             
ffc086b0:	7f 90 50 00 	cmpw    cr7,r16,r10                            
ffc086b4:	40 9e ff d0 	bne+    cr7,ffc08684 <rtems_fdisk_ioctl+0x884> 
              (fd->blocks[block].page == page) && !is_active)         
ffc086b8:	40 92 ff cc 	bne+    cr4,ffc08684 <rtems_fdisk_ioctl+0x884> <== ALWAYS TAKEN
            rtems_fdisk_printf (fd,                                   
ffc086bc:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
ffc086c0:	7e 23 8b 78 	mr      r3,r17                                 <== NOT EXECUTED
ffc086c4:	7f 24 cb 78 	mr      r4,r25                                 <== NOT EXECUTED
ffc086c8:	7e 05 83 78 	mr      r5,r16                                 <== NOT EXECUTED
ffc086cc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc086d0:	4b ff dd 9d 	bl      ffc0646c <rtems_fdisk_printf>          <== NOT EXECUTED
ffc086d4:	80 d1 00 1c 	lwz     r6,28(r17)                             <== NOT EXECUTED
            active++;                                                 
            is_active = true;                                         
          }                                                           
        }                                                             
                                                                      
        for (block = 0; block < fd->block_count; block++)             
ffc086d8:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
ffc086dc:	7f 9f 30 40 	cmplw   cr7,r31,r6                             <== NOT EXECUTED
ffc086e0:	7c ca 33 78 	mr      r10,r6                                 <== NOT EXECUTED
ffc086e4:	41 9c ff b0 	blt+    cr7,ffc08694 <rtems_fdisk_ioctl+0x894> <== NOT EXECUTED
ffc086e8:	2f 86 00 00 	cmpwi   cr7,r6,0                               
ffc086ec:	80 f2 00 14 	lwz     r7,20(r18)                             
      bool                     is_active = false;                     
      char                     queues[5];                             
                                                                      
      rtems_fdisk_queue_status (fd, sc, queues);                      
                                                                      
      for (page = 0; page < sc->pages; page++)                        
ffc086f0:	3a 10 00 01 	addi    r16,r16,1                              
ffc086f4:	7f 10 38 40 	cmplw   cr6,r16,r7                             
ffc086f8:	41 98 ff 48 	blt+    cr6,ffc08640 <rtems_fdisk_ioctl+0x840> 
                                page, block);                         
        }                                                             
      }                                                               
                                                                      
      count = 0;                                                      
      for (block = 0; block < fd->block_count; block++)               
ffc086fc:	41 9e 01 50 	beq-    cr7,ffc0884c <rtems_fdisk_ioctl+0xa4c> <== NEVER TAKEN
 * @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)   
ffc08700:	55 4a 18 38 	rlwinm  r10,r10,3,0,28                         
ffc08704:	80 b1 00 18 	lwz     r5,24(r17)                             
ffc08708:	39 0a ff f8 	addi    r8,r10,-8                              
ffc0870c:	55 08 e8 fe 	rlwinm  r8,r8,29,3,31                          
ffc08710:	39 08 00 01 	addi    r8,r8,1                                
ffc08714:	7d 09 03 a6 	mtctr   r8                                     
ffc08718:	39 40 00 00 	li      r10,0                                  
ffc0871c:	38 c0 00 00 	li      r6,0                                   
      }                                                               
                                                                      
      count = 0;                                                      
      for (block = 0; block < fd->block_count; block++)               
      {                                                               
        if (fd->blocks[block].segment == sc)                          
ffc08720:	7d 05 50 2e 	lwzx    r8,r5,r10                              
ffc08724:	39 4a 00 08 	addi    r10,r10,8                              
          count++;                                                    
ffc08728:	7e 4b 42 78 	xor     r11,r18,r8                             
ffc0872c:	21 6b 00 00 	subfic  r11,r11,0                              
ffc08730:	7d 66 01 94 	addze   r11,r6                                 
ffc08734:	7d 66 5b 78 	mr      r6,r11                                 
                                page, block);                         
        }                                                             
      }                                                               
                                                                      
      count = 0;                                                      
      for (block = 0; block < fd->block_count; block++)               
ffc08738:	42 00 ff e8 	bdnz+   ffc08720 <rtems_fdisk_ioctl+0x920>     
                          " 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),
ffc0873c:	81 52 00 20 	lwz     r10,32(r18)                            
      {                                                               
        if (fd->blocks[block].segment == sc)                          
          count++;                                                    
      }                                                               
                                                                      
      rtems_fdisk_printf (fd, "  %3ld %s p:%3ld a:%3ld/%3ld" \        
ffc08740:	7f c5 f3 78 	mr      r5,r30                                 
                          " 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 +             
ffc08744:	81 12 00 1c 	lwz     r8,28(r18)                             
      {                                                               
        if (fd->blocks[block].segment == sc)                          
          count++;                                                    
      }                                                               
                                                                      
      rtems_fdisk_printf (fd, "  %3ld %s p:%3ld a:%3ld/%3ld" \        
ffc08748:	7e 23 8b 78 	mr      r3,r17                                 
ffc0874c:	92 a1 00 08 	stw     r21,8(r1)                              
ffc08750:	7f 04 c3 78 	mr      r4,r24                                 
                                                                      
    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++)     
ffc08754:	3b de 00 01 	addi    r30,r30,1                              
      {                                                               
        if (fd->blocks[block].segment == sc)                          
          count++;                                                    
      }                                                               
                                                                      
      rtems_fdisk_printf (fd, "  %3ld %s p:%3ld a:%3ld/%3ld" \        
ffc08758:	92 c1 00 0c 	stw     r22,12(r1)                             
ffc0875c:	3b bd 00 30 	addi    r29,r29,48                             
 * @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)   
ffc08760:	81 32 00 24 	lwz     r9,36(r18)                             
      {                                                               
        if (fd->blocks[block].segment == sc)                          
          count++;                                                    
      }                                                               
                                                                      
      rtems_fdisk_printf (fd, "  %3ld %s p:%3ld a:%3ld/%3ld" \        
ffc08764:	90 c1 00 14 	stw     r6,20(r1)                              
ffc08768:	38 c1 00 20 	addi    r6,r1,32                               
 * @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)   
ffc0876c:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc08770:	7d 29 42 14 	add     r9,r9,r8                               
      {                                                               
        if (fd->blocks[block].segment == sc)                          
          count++;                                                    
      }                                                               
                                                                      
      rtems_fdisk_printf (fd, "  %3ld %s p:%3ld a:%3ld/%3ld" \        
ffc08774:	7d 29 38 50 	subf    r9,r9,r7                               
ffc08778:	91 21 00 10 	stw     r9,16(r1)                              
ffc0877c:	7d c9 73 78 	mr      r9,r14                                 
ffc08780:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc08784:	4b ff dc e9 	bl      ffc0646c <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++)     
ffc08788:	81 31 00 2c 	lwz     r9,44(r17)                             
ffc0878c:	7d 29 d2 14 	add     r9,r9,r26                              
ffc08790:	81 49 00 04 	lwz     r10,4(r9)                              
ffc08794:	7f 9e 50 40 	cmplw   cr7,r30,r10                            
ffc08798:	41 9c fe 64 	blt+    cr7,ffc085fc <rtems_fdisk_ioctl+0x7fc> 
  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++)               
ffc0879c:	81 31 00 30 	lwz     r9,48(r17)                             
ffc087a0:	3a f7 00 01 	addi    r23,r23,1                              
ffc087a4:	3b 5a 00 0c 	addi    r26,r26,12                             
ffc087a8:	7f 97 48 40 	cmplw   cr7,r23,r9                             
ffc087ac:	41 9c fe 04 	blt+    cr7,ffc085b0 <rtems_fdisk_ioctl+0x7b0> <== NEVER TAKEN
                          count);                                     
    }                                                                 
  }                                                                   
                                                                      
  {                                                                   
    rtems_fdisk_segment_ctl* sc = fd->used.head;                      
ffc087b0:	83 f1 00 40 	lwz     r31,64(r17)                            
    int count = 0;                                                    
    rtems_fdisk_printf (fd, "Used List:");                            
ffc087b4:	3c 80 ff c4 	lis     r4,-60                                 
ffc087b8:	7e 23 8b 78 	mr      r3,r17                                 
ffc087bc:	38 84 b3 ec 	addi    r4,r4,-19476                           
ffc087c0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc087c4:	4b ff dc a9 	bl      ffc0646c <rtems_fdisk_printf>          
    while (sc)                                                        
ffc087c8:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc087cc:	41 9e 00 40 	beq-    cr7,ffc0880c <rtems_fdisk_ioctl+0xa0c> <== NEVER TAKEN
ffc087d0:	3f a0 ff c4 	lis     r29,-60                                
ffc087d4:	3b c0 00 00 	li      r30,0                                  
ffc087d8:	3b bd b3 f8 	addi    r29,r29,-19464                         
    {                                                                 
      rtems_fdisk_printf (fd, "  %3d %02d:%03d u:%3ld",               
ffc087dc:	80 df 00 08 	lwz     r6,8(r31)                              
ffc087e0:	7f c5 f3 78 	mr      r5,r30                                 
ffc087e4:	80 ff 00 0c 	lwz     r7,12(r31)                             
ffc087e8:	7e 23 8b 78 	mr      r3,r17                                 
ffc087ec:	81 1f 00 20 	lwz     r8,32(r31)                             
ffc087f0:	7f a4 eb 78 	mr      r4,r29                                 
                          count, sc->device, sc->segment, sc->pages_used);
      sc = sc->next;                                                  
      count++;                                                        
ffc087f4:	3b de 00 01 	addi    r30,r30,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",               
ffc087f8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc087fc:	4b ff dc 71 	bl      ffc0646c <rtems_fdisk_printf>          
                          count, sc->device, sc->segment, sc->pages_used);
      sc = sc->next;                                                  
ffc08800:	83 ff 00 00 	lwz     r31,0(r31)                             
                                                                      
  {                                                                   
    rtems_fdisk_segment_ctl* sc = fd->used.head;                      
    int count = 0;                                                    
    rtems_fdisk_printf (fd, "Used List:");                            
    while (sc)                                                        
ffc08804:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc08808:	40 9e ff d4 	bne+    cr7,ffc087dc <rtems_fdisk_ioctl+0x9dc> 
ffc0880c:	81 3b 29 78 	lwz     r9,10616(r27)                          
                          count, sc->device, sc->segment, sc->pages_used);
      sc = sc->next;                                                  
      count++;                                                        
    }                                                                 
  }                                                                   
  fd->info_level = current_info_level;                                
ffc08810:	82 41 00 34 	lwz     r18,52(r1)                             
      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]);  
ffc08814:	81 61 00 30 	lwz     r11,48(r1)                             
ffc08818:	7f 89 e2 14 	add     r28,r9,r28                             
ffc0881c:	39 20 00 00 	li      r9,0                                   
                          count, sc->device, sc->segment, sc->pages_used);
      sc = sc->next;                                                  
      count++;                                                        
    }                                                                 
  }                                                                   
  fd->info_level = current_info_level;                                
ffc08820:	92 51 00 6c 	stw     r18,108(r17)                           
      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]);  
ffc08824:	91 2b 00 00 	stw     r9,0(r11)                              
        break;                                                        
ffc08828:	4b ff f9 f4 	b       ffc0821c <rtems_fdisk_ioctl+0x41c>     
static bool                                                           
rtems_fdisk_page_desc_erased (const rtems_fdisk_page_desc* pd)        
{                                                                     
  return ((pd->crc == 0xffff) &&                                      
          (pd->flags == 0xffff) &&                                    
          (pd->block == 0xffffffff)) ? true : false;                  
ffc0882c:	80 a8 00 04 	lwz     r5,4(r8)                               
ffc08830:	2f 05 ff ff 	cmpwi   cr6,r5,-1                              
ffc08834:	40 9a fe 24 	bne+    cr6,ffc08658 <rtems_fdisk_ioctl+0x858> <== NEVER TAKEN
      rtems_fdisk_queue_status (fd, sc, queues);                      
                                                                      
      for (page = 0; page < sc->pages; page++)                        
      {                                                               
        if (rtems_fdisk_page_desc_erased (&sc->page_descriptors[page]))
          erased++;                                                   
ffc08838:	3a d6 00 01 	addi    r22,r22,1                              
ffc0883c:	4b ff fe 38 	b       ffc08674 <rtems_fdisk_ioctl+0x874>     
          if (rtems_fdisk_page_desc_flags_set (&sc->page_descriptors[page],
                                               RTEMS_FDISK_PAGE_USED))
            used++;                                                   
          else                                                        
          {                                                           
            active++;                                                 
ffc08840:	39 ce 00 01 	addi    r14,r14,1                              
            is_active = true;                                         
ffc08844:	39 e0 00 01 	li      r15,1                                  
ffc08848:	4b ff fe 2c 	b       ffc08674 <rtems_fdisk_ioctl+0x874>     
                                page, block);                         
        }                                                             
      }                                                               
                                                                      
      count = 0;                                                      
      for (block = 0; block < fd->block_count; block++)               
ffc0884c:	38 c0 00 00 	li      r6,0                                   <== NOT EXECUTED
ffc08850:	4b ff fe ec 	b       ffc0873c <rtems_fdisk_ioctl+0x93c>     <== NOT EXECUTED
ffc08854:	81 51 00 1c 	lwz     r10,28(r17)                            <== NOT EXECUTED
    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;                            
ffc08858:	39 c0 00 00 	li      r14,0                                  <== NOT EXECUTED
      uint32_t                 used = 0;                              
ffc0885c:	3a a0 00 00 	li      r21,0                                  <== NOT EXECUTED
                                                                      
    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;                            
ffc08860:	3a c0 00 00 	li      r22,0                                  <== NOT EXECUTED
ffc08864:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
ffc08868:	4b ff fe 94 	b       ffc086fc <rtems_fdisk_ioctl+0x8fc>     <== NOT EXECUTED
    {                                                                 
      case RTEMS_BLKIO_REQUEST:                                       
        if ((minor >= rtems_flashdisk_count) ||                       
            (rtems_flashdisks[minor].device_count == 0))              
        {                                                             
          errno = ENODEV;                                             
ffc0886c:	48 02 07 8d 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc08870:	81 3b 29 78 	lwz     r9,10616(r27)                          <== NOT EXECUTED
ffc08874:	39 40 00 13 	li      r10,19                                 <== NOT EXECUTED
ffc08878:	91 43 00 00 	stw     r10,0(r3)                              <== NOT EXECUTED
ffc0887c:	7f 89 e2 14 	add     r28,r9,r28                             <== NOT EXECUTED
ffc08880:	4b ff f9 9c 	b       ffc0821c <rtems_fdisk_ioctl+0x41c>     <== NOT EXECUTED
  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;                                                          
ffc08884:	38 c0 00 00 	li      r6,0                                   <== NOT EXECUTED
ffc08888:	4b ff fc b4 	b       ffc0853c <rtems_fdisk_ioctl+0x73c>     <== NOT EXECUTED
            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);
ffc0888c:	48 02 07 6d 	bl      ffc28ff8 <__errno>                     
ffc08890:	83 fb 29 78 	lwz     r31,10616(r27)                         
ffc08894:	81 3e 00 10 	lwz     r9,16(r30)                             
ffc08898:	7c 6e 1b 78 	mr      r14,r3                                 
ffc0889c:	7f ff e2 14 	add     r31,r31,r28                            
 * @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)   
ffc088a0:	3b 1e 00 28 	addi    r24,r30,40                             
ffc088a4:	3a 80 00 01 	li      r20,1                                  
{                                                                     
  rtems_blkdev_sg_buffer* sg = req->bufs;                             
  uint32_t                buf;                                        
  int                     ret = 0;                                    
                                                                      
  for (buf = 0; (ret == 0) && (buf < req->bufnum); buf++, sg++)       
ffc088a8:	39 54 ff ff 	addi    r10,r20,-1                             
ffc088ac:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc088b0:	40 9c 09 40 	bge-    cr7,ffc091f0 <rtems_fdisk_ioctl+0x13f0>
  {                                                                   
    uint8_t* data;                                                    
    uint32_t fb;                                                      
    uint32_t b;                                                       
    fb = sg->length / fd->block_size;                                 
ffc088b4:	81 f8 ff f4 	lwz     r15,-12(r24)                           
ffc088b8:	81 5f 00 14 	lwz     r10,20(r31)                            
    data = sg->buffer;                                                
ffc088bc:	82 f8 ff f8 	lwz     r23,-8(r24)                            
  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;                                 
ffc088c0:	7d ef 53 96 	divwu   r15,r15,r10                            
    data = sg->buffer;                                                
    for (b = 0; b < fb; b++, data += fd->block_size)                  
ffc088c4:	2f 8f 00 00 	cmpwi   cr7,r15,0                              
ffc088c8:	41 9e 03 ec 	beq-    cr7,ffc08cb4 <rtems_fdisk_ioctl+0xeb4> <== NEVER TAKEN
ffc088cc:	3a c0 00 00 	li      r22,0                                  
    {                                                                 
      ret = rtems_fdisk_write_block (fd, sg->block + b, data);        
ffc088d0:	83 58 ff f0 	lwz     r26,-16(r24)                           
  rtems_fdisk_page_desc*   pd;                                        
  uint32_t                 page;                                      
  int                      ret;                                       
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "write-block:%d", block);                     
ffc088d4:	3e 40 ff c4 	lis     r18,-60                                
ffc088d8:	80 92 a9 90 	lwz     r4,-22128(r18)                         
ffc088dc:	7f e3 fb 78 	mr      r3,r31                                 
    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);        
ffc088e0:	7f 56 d2 14 	add     r26,r22,r26                            
  rtems_fdisk_page_desc*   pd;                                        
  uint32_t                 page;                                      
  int                      ret;                                       
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, "write-block:%d", block);                     
ffc088e4:	7f 45 d3 78 	mr      r5,r26                                 
ffc088e8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc088ec:	4b ff da 89 	bl      ffc06374 <rtems_fdisk_info>            
                                                                      
  /*                                                                  
   * Broken out to allow info messages when testing.                  
   */                                                                 
                                                                      
  if (block >= (fd->block_count - fd->unavail_blocks))                
ffc088f0:	81 5f 00 1c 	lwz     r10,28(r31)                            
ffc088f4:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc088f8:	7d 29 50 50 	subf    r9,r9,r10                              
ffc088fc:	7f 9a 48 40 	cmplw   cr7,r26,r9                             
ffc08900:	40 9c 04 18 	bge-    cr7,ffc08d18 <rtems_fdisk_ioctl+0xf18> <== NEVER TAKEN
  {                                                                   
    rtems_fdisk_error ("write-block: block out of range: %d", block); 
    return EIO;                                                       
  }                                                                   
                                                                      
  bc = &fd->blocks[block];                                            
ffc08904:	82 3f 00 18 	lwz     r17,24(r31)                            
ffc08908:	57 52 18 38 	rlwinm  r18,r26,3,0,28                         
                                                                      
  /*                                                                  
   * Does the page exist in flash ?                                   
   */                                                                 
  if (bc->segment)                                                    
ffc0890c:	7f b1 90 2e 	lwzx    r29,r17,r18                            
  {                                                                   
    rtems_fdisk_error ("write-block: block out of range: %d", block); 
    return EIO;                                                       
  }                                                                   
                                                                      
  bc = &fd->blocks[block];                                            
ffc08910:	7f 31 92 14 	add     r25,r17,r18                            
                                                                      
  /*                                                                  
   * Does the page exist in flash ?                                   
   */                                                                 
  if (bc->segment)                                                    
ffc08914:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc08918:	41 9e 01 a8 	beq-    cr7,ffc08ac0 <rtems_fdisk_ioctl+0xcc0> 
  {                                                                   
    sc = bc->segment;                                                 
    pd = &sc->page_descriptors[bc->page];                             
ffc0891c:	80 f9 00 04 	lwz     r7,4(r25)                              
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " write:%02d-%03d-%03d: flag used",         
ffc08920:	3d 00 ff c4 	lis     r8,-60                                 
   * Does the page exist in flash ?                                   
   */                                                                 
  if (bc->segment)                                                    
  {                                                                   
    sc = bc->segment;                                                 
    pd = &sc->page_descriptors[bc->page];                             
ffc08924:	81 3d 00 10 	lwz     r9,16(r29)                             
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " write:%02d-%03d-%03d: flag used",         
ffc08928:	7f e3 fb 78 	mr      r3,r31                                 
ffc0892c:	80 88 a9 94 	lwz     r4,-22124(r8)                          
   * Does the page exist in flash ?                                   
   */                                                                 
  if (bc->segment)                                                    
  {                                                                   
    sc = bc->segment;                                                 
    pd = &sc->page_descriptors[bc->page];                             
ffc08930:	54 f5 18 38 	rlwinm  r21,r7,3,0,28                          
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " write:%02d-%03d-%03d: flag used",         
ffc08934:	80 bd 00 08 	lwz     r5,8(r29)                              
   * Does the page exist in flash ?                                   
   */                                                                 
  if (bc->segment)                                                    
  {                                                                   
    sc = bc->segment;                                                 
    pd = &sc->page_descriptors[bc->page];                             
ffc08938:	7e a9 aa 14 	add     r21,r9,r21                             
                                                                      
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, " write:%02d-%03d-%03d: flag used",         
ffc0893c:	80 dd 00 0c 	lwz     r6,12(r29)                             
ffc08940:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc08944:	4b ff da 31 	bl      ffc06374 <rtems_fdisk_info>            
#endif                                                                
                                                                      
    /*                                                                
     * The page exists in flash so see if the page has been changed.  
     */                                                               
    if (rtems_fdisk_seg_verify_page (fd, sc->device, sc->segment,     
ffc08948:	81 5d 00 08 	lwz     r10,8(r29)                             
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;            
ffc0894c:	81 1f 00 2c 	lwz     r8,44(r31)                             
ffc08950:	1c ea 00 0c 	mulli   r7,r10,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,     
ffc08954:	81 3d 00 0c 	lwz     r9,12(r29)                             
ffc08958:	80 bd 00 18 	lwz     r5,24(r29)                             
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;            
ffc0895c:	7c 68 38 2e 	lwzx    r3,r8,r7                               
ffc08960:	7d 08 3a 14 	add     r8,r8,r7                               
#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,     
ffc08964:	80 d9 00 04 	lwz     r6,4(r25)                              
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;            
ffc08968:	1c 89 00 30 	mulli   r4,r9,48                               
                             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);
ffc0896c:	82 1f 00 14 	lwz     r16,20(r31)                            
                        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;                    
ffc08970:	81 08 00 08 	lwz     r8,8(r8)                               
#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,     
ffc08974:	7c c5 32 14 	add     r6,r5,r6                               
                             uint32_t               device,           
                             uint32_t               segment,          
                             uint32_t               page,             
                             const void*            buffer)           
{                                                                     
  return rtems_fdisk_seg_verify (fd, device, segment,                 
ffc08978:	7d 66 81 d6 	mullw   r11,r6,r16                             
                        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;                    
ffc0897c:	81 88 00 08 	lwz     r12,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;            
ffc08980:	7d 03 22 14 	add     r8,r3,r4                               
ffc08984:	80 08 00 04 	lwz     r0,4(r8)                               
  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",     
ffc08988:	3d 00 ff c4 	lis     r8,-60                                 
ffc0898c:	80 88 a9 98 	lwz     r4,-22120(r8)                          
ffc08990:	7d 45 53 78 	mr      r5,r10                                 
ffc08994:	7d 26 4b 78 	mr      r6,r9                                  
ffc08998:	90 01 00 3c 	stw     r0,60(r1)                              
ffc0899c:	7d 67 5b 78 	mr      r7,r11                                 
ffc089a0:	7e 08 83 78 	mr      r8,r16                                 
ffc089a4:	91 21 00 48 	stw     r9,72(r1)                              
ffc089a8:	7f e3 fb 78 	mr      r3,r31                                 
ffc089ac:	91 41 00 44 	stw     r10,68(r1)                             
ffc089b0:	91 61 00 38 	stw     r11,56(r1)                             
ffc089b4:	91 81 00 40 	stw     r12,64(r1)                             
ffc089b8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc089bc:	4b ff da b1 	bl      ffc0646c <rtems_fdisk_printf>          
                      device, segment, offset, size);                 
#endif                                                                
  return ops->verify (sd, device, segment, offset, buffer, size);     
ffc089c0:	7e e7 bb 78 	mr      r7,r23                                 
ffc089c4:	81 81 00 40 	lwz     r12,64(r1)                             
ffc089c8:	7e 08 83 78 	mr      r8,r16                                 
ffc089cc:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc089d0:	81 8c 00 0c 	lwz     r12,12(r12)                            
ffc089d4:	81 41 00 44 	lwz     r10,68(r1)                             
ffc089d8:	7c 03 03 78 	mr      r3,r0                                  
ffc089dc:	81 21 00 48 	lwz     r9,72(r1)                              
ffc089e0:	7d 89 03 a6 	mtctr   r12                                    
ffc089e4:	81 61 00 38 	lwz     r11,56(r1)                             
ffc089e8:	7d 44 53 78 	mr      r4,r10                                 
ffc089ec:	7d 25 4b 78 	mr      r5,r9                                  
ffc089f0:	7d 66 5b 78 	mr      r6,r11                                 
ffc089f4:	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,     
ffc089f8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc089fc:	41 9e 03 cc 	beq-    cr7,ffc08dc8 <rtems_fdisk_ioctl+0xfc8> 
                                       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))             
ffc08a00:	81 5f 00 08 	lwz     r10,8(r31)                             
 * 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;                                                
ffc08a04:	a1 35 00 02 	lhz     r9,2(r21)                              
                                       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))             
ffc08a08:	71 48 00 08 	andi.   r8,r10,8                               
     * 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);
ffc08a0c:	81 59 00 04 	lwz     r10,4(r25)                             
 * 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;                                                
ffc08a10:	55 28 07 fa 	rlwinm  r8,r9,0,31,29                          
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)) +        
ffc08a14:	55 49 18 38 	rlwinm  r9,r10,3,0,28                          
 * 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;                                                
ffc08a18:	b1 15 00 02 	sth     r8,2(r21)                              
                                       rtems_fdisk_segment_ctl*     sc,
                                       uint32_t                     page,
                                       const rtems_fdisk_page_desc* page_desc)
{                                                                     
  uint32_t offset = ((page * sizeof (rtems_fdisk_page_desc)) +        
                     ((uint8_t*) &page_desc->flags) - ((uint8_t*) page_desc));
ffc08a1c:	39 29 00 02 	addi    r9,r9,2                                
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
ffc08a20:	41 82 03 10 	beq-    ffc08d30 <rtems_fdisk_ioctl+0xf30>     <== NEVER TAKEN
  {                                                                   
    uint16_t flash_flags;                                             
    int      ret;                                                     
    ret = rtems_fdisk_seg_read (fd, sc, offset,                       
ffc08a24:	80 9d 00 08 	lwz     r4,8(r29)                              
ffc08a28:	7d 26 4b 78 	mr      r6,r9                                  
ffc08a2c:	80 bd 00 0c 	lwz     r5,12(r29)                             
ffc08a30:	7f e3 fb 78 	mr      r3,r31                                 
ffc08a34:	38 e1 00 26 	addi    r7,r1,38                               
ffc08a38:	91 21 00 48 	stw     r9,72(r1)                              
ffc08a3c:	39 00 00 02 	li      r8,2                                   
ffc08a40:	91 41 00 44 	stw     r10,68(r1)                             
ffc08a44:	4b ff e3 cd 	bl      ffc06e10 <rtems_fdisk_seg_read.isra.14>
                                &flash_flags, sizeof (flash_flags));  
    if (ret)                                                          
ffc08a48:	7c 70 1b 79 	mr.     r16,r3                                 
ffc08a4c:	81 21 00 48 	lwz     r9,72(r1)                              
ffc08a50:	81 41 00 44 	lwz     r10,68(r1)                             
ffc08a54:	40 82 02 f8 	bne-    ffc08d4c <rtems_fdisk_ioctl+0xf4c>     <== NEVER TAKEN
      return ret;                                                     
    if ((flash_flags & page_desc->flags) != page_desc->flags)         
ffc08a58:	a1 15 00 02 	lhz     r8,2(r21)                              
ffc08a5c:	a0 e1 00 26 	lhz     r7,38(r1)                              
ffc08a60:	7c e6 40 38 	and     r6,r7,r8                               
ffc08a64:	7f 88 30 00 	cmpw    cr7,r8,r6                              
ffc08a68:	41 9e 02 c8 	beq-    cr7,ffc08d30 <rtems_fdisk_ioctl+0xf30> <== ALWAYS TAKEN
    {                                                                 
      rtems_fdisk_error ("  seg-write-page-flags: %02d-%03d-%03d: "   
ffc08a6c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc08a70:	80 9d 00 08 	lwz     r4,8(r29)                              <== NOT EXECUTED
ffc08a74:	80 bd 00 0c 	lwz     r5,12(r29)                             <== NOT EXECUTED
ffc08a78:	38 63 b0 80 	addi    r3,r3,-20352                           <== NOT EXECUTED
ffc08a7c:	7d 46 53 78 	mr      r6,r10                                 <== NOT EXECUTED
ffc08a80:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc08a84:	4b ff dc c5 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
                        strerror (ret), ret);                         
#endif                                                                
    }                                                                 
    else                                                              
    {                                                                 
      sc->pages_active--;                                             
ffc08a88:	81 5d 00 1c 	lwz     r10,28(r29)                            
      sc->pages_used++;                                               
ffc08a8c:	81 3d 00 20 	lwz     r9,32(r29)                             
                        strerror (ret), ret);                         
#endif                                                                
    }                                                                 
    else                                                              
    {                                                                 
      sc->pages_active--;                                             
ffc08a90:	39 4a ff ff 	addi    r10,r10,-1                             
      sc->pages_used++;                                               
ffc08a94:	39 29 00 01 	addi    r9,r9,1                                
                        strerror (ret), ret);                         
#endif                                                                
    }                                                                 
    else                                                              
    {                                                                 
      sc->pages_active--;                                             
ffc08a98:	91 5d 00 1c 	stw     r10,28(r29)                            
      sc->pages_used++;                                               
ffc08a9c:	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);                               
ffc08aa0:	7f e3 fb 78 	mr      r3,r31                                 
ffc08aa4:	7f a4 eb 78 	mr      r4,r29                                 
ffc08aa8:	4b ff df dd 	bl      ffc06a84 <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)            
ffc08aac:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc08ab0:	71 2a 00 02 	andi.   r10,r9,2                               
ffc08ab4:	40 a2 00 0c 	bne+    ffc08ac0 <rtems_fdisk_ioctl+0xcc0>     <== NEVER TAKEN
      rtems_fdisk_compact (fd);                                       
ffc08ab8:	7f e3 fb 78 	mr      r3,r31                                 
ffc08abc:	4b ff eb 0d 	bl      ffc075c8 <rtems_fdisk_compact>         
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc08ac0:	83 bf 00 34 	lwz     r29,52(r31)                            
rtems_fdisk_segment_count_queue (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
ffc08ac4:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc08ac8:	41 9e 01 f8 	beq-    cr7,ffc08cc0 <rtems_fdisk_ioctl+0xec0> <== NEVER TAKEN
ffc08acc:	7f a9 eb 78 	mr      r9,r29                                 
ffc08ad0:	39 40 00 00 	li      r10,0                                  
  {                                                                   
    count++;                                                          
    sc = sc->next;                                                    
ffc08ad4:	81 29 00 00 	lwz     r9,0(r9)                               
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
  {                                                                   
    count++;                                                          
ffc08ad8:	39 4a 00 01 	addi    r10,r10,1                              
rtems_fdisk_segment_count_queue (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  rtems_fdisk_segment_ctl* sc = queue->head;                          
  uint32_t                 count = 0;                                 
                                                                      
  while (sc)                                                          
ffc08adc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08ae0:	40 9e ff f4 	bne+    cr7,ffc08ad4 <rtems_fdisk_ioctl+0xcd4> 
  /*                                                                  
   * Is it time to compact the disk ?                                 
   *                                                                  
   * We override the background compaction configruation.             
   */                                                                 
  if (rtems_fdisk_segment_count_queue (&fd->available) <=             
ffc08ae4:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc08ae8:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc08aec:	40 9c 01 d4 	bge-    cr7,ffc08cc0 <rtems_fdisk_ioctl+0xec0> 
{                                                                     
  if (queue->head)                                                    
  {                                                                   
    rtems_fdisk_segment_ctl* sc = queue->head;                        
                                                                      
    queue->head = sc->next;                                           
ffc08af0:	81 3d 00 00 	lwz     r9,0(r29)                              
    if (!queue->head)                                                 
ffc08af4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
{                                                                     
  if (queue->head)                                                    
  {                                                                   
    rtems_fdisk_segment_ctl* sc = queue->head;                        
                                                                      
    queue->head = sc->next;                                           
ffc08af8:	91 3f 00 34 	stw     r9,52(r31)                             
    if (!queue->head)                                                 
ffc08afc:	41 9e 03 2c 	beq-    cr7,ffc08e28 <rtems_fdisk_ioctl+0x1028>
      queue->tail = 0;                                                
                                                                      
    queue->count--;                                                   
ffc08b00:	81 3f 00 3c 	lwz     r9,60(r31)                             
ffc08b04:	39 29 ff ff 	addi    r9,r9,-1                               
ffc08b08:	91 3f 00 3c 	stw     r9,60(r31)                             
                                                                      
    sc->next = 0;                                                     
ffc08b0c:	39 20 00 00 	li      r9,0                                   
ffc08b10:	91 3d 00 00 	stw     r9,0(r29)                              
      return ENOSPC;                                                  
    }                                                                 
  }                                                                   
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  if (fd->info_level >= 3)                                            
ffc08b14:	81 3f 00 6c 	lwz     r9,108(r31)                            
ffc08b18:	2b 89 00 02 	cmplwi  cr7,r9,2                               
ffc08b1c:	41 9d 02 d4 	bgt-    cr7,ffc08df0 <rtems_fdisk_ioctl+0xff0> <== NEVER TAKEN
   * Find the next avaliable page in the segment.                     
   */                                                                 
                                                                      
  pd = sc->page_descriptors;                                          
                                                                      
  for (page = 0; page < sc->pages; page++, pd++)                      
ffc08b20:	81 3d 00 14 	lwz     r9,20(r29)                             
                                                                      
  /*                                                                  
   * Find the next avaliable page in the segment.                     
   */                                                                 
                                                                      
  pd = sc->page_descriptors;                                          
ffc08b24:	82 bd 00 10 	lwz     r21,16(r29)                            
                                                                      
  for (page = 0; page < sc->pages; page++, pd++)                      
ffc08b28:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08b2c:	41 9e 02 6c 	beq-    cr7,ffc08d98 <rtems_fdisk_ioctl+0xf98> <== NEVER TAKEN
ffc08b30:	3a 00 00 00 	li      r16,0                                  
ffc08b34:	7d 29 03 a6 	mtctr   r9                                     
ffc08b38:	48 00 00 10 	b       ffc08b48 <rtems_fdisk_ioctl+0xd48>     
ffc08b3c:	3a 10 00 01 	addi    r16,r16,1                              
ffc08b40:	3a b5 00 08 	addi    r21,r21,8                              
ffc08b44:	42 40 02 54 	bdz-    ffc08d98 <rtems_fdisk_ioctl+0xf98>     
static bool                                                           
rtems_fdisk_page_desc_erased (const rtems_fdisk_page_desc* pd)        
{                                                                     
  return ((pd->crc == 0xffff) &&                                      
          (pd->flags == 0xffff) &&                                    
          (pd->block == 0xffffffff)) ? true : false;                  
ffc08b48:	81 55 00 00 	lwz     r10,0(r21)                             
ffc08b4c:	2f 8a ff ff 	cmpwi   cr7,r10,-1                             
ffc08b50:	40 9e ff ec 	bne+    cr7,ffc08b3c <rtems_fdisk_ioctl+0xd3c> 
ffc08b54:	81 55 00 04 	lwz     r10,4(r21)                             
ffc08b58:	2f 8a ff ff 	cmpwi   cr7,r10,-1                             
ffc08b5c:	40 9e ff e0 	bne+    cr7,ffc08b3c <rtems_fdisk_ioctl+0xd3c> <== NEVER TAKEN
                                                                      
  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); 
ffc08b60:	80 ff 00 14 	lwz     r7,20(r31)                             
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++)                           
ffc08b64:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc08b68:	41 9e 03 04 	beq-    cr7,ffc08e6c <rtems_fdisk_ioctl+0x106c><== NEVER TAKEN
 * 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;                                               
ffc08b6c:	7c e9 03 a6 	mtctr   r7                                     
ffc08b70:	39 40 00 00 	li      r10,0                                  
ffc08b74:	80 d3 00 08 	lwz     r6,8(r19)                              
 * @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)   
ffc08b78:	39 17 ff ff 	addi    r8,r23,-1                              
 * 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;                                               
ffc08b7c:	61 4a ff ff 	ori     r10,r10,65535                          
  uint32_t i;                                                         
                                                                      
  for (i = 0; i < page_size; i++, buffer++)                           
    cs = rtems_fdisk_calc_crc16 (cs, *buffer);                        
ffc08b80:	8c e8 00 01 	lbzu    r7,1(r8)                               
ffc08b84:	7c ea 52 78 	xor     r10,r7,r10                             
ffc08b88:	55 4a 0d fc 	rlwinm  r10,r10,1,23,30                        
ffc08b8c:	7d 46 52 2e 	lhzx    r10,r6,r10                             
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++)                           
ffc08b90:	42 00 ff f0 	bdnz+   ffc08b80 <rtems_fdisk_ioctl+0xd80>     
ffc08b94:	7d 48 53 78 	mr      r8,r10                                 
      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: " \    
ffc08b98:	80 fd 00 00 	lwz     r7,0(r29)                              
 * 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;                                                
ffc08b9c:	a0 75 00 02 	lhz     r3,2(r21)                              
      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: " \    
ffc08ba0:	2f 87 00 00 	cmpwi   cr7,r7,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); 
ffc08ba4:	b1 55 00 00 	sth     r10,0(r21)                             
 * 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;                                                
ffc08ba8:	54 63 04 3c 	rlwinm  r3,r3,0,16,30                          
      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: " \    
ffc08bac:	80 dd 00 08 	lwz     r6,8(r29)                              
  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;                                              
ffc08bb0:	93 55 00 04 	stw     r26,4(r21)                             
      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: " \    
ffc08bb4:	80 fd 00 0c 	lwz     r7,12(r29)                             
    if (rtems_fdisk_page_desc_erased (pd))                            
    {                                                                 
      pd->crc   = rtems_fdisk_page_checksum (buffer, fd->block_size); 
      pd->block = block;                                              
                                                                      
      bc->segment = sc;                                               
ffc08bb8:	7f b1 91 2e 	stwx    r29,r17,r18                            
      bc->page    = page;                                             
ffc08bbc:	92 19 00 04 	stw     r16,4(r25)                             
                                                                      
      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: " \    
ffc08bc0:	81 5d 00 1c 	lwz     r10,28(r29)                            
 * 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;                                                
ffc08bc4:	b0 75 00 02 	sth     r3,2(r21)                              
      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: " \    
ffc08bc8:	80 9d 00 20 	lwz     r4,32(r29)                             
ffc08bcc:	80 bd 00 24 	lwz     r5,36(r29)                             
ffc08bd0:	41 9e 02 90 	beq-    cr7,ffc08e60 <rtems_fdisk_ioctl+0x1060><== ALWAYS TAKEN
ffc08bd4:	3d 60 ff c4 	lis     r11,-60                                <== NOT EXECUTED
ffc08bd8:	39 6b aa 38 	addi    r11,r11,-21960                         <== NOT EXECUTED
ffc08bdc:	3e 40 ff c4 	lis     r18,-60                                
ffc08be0:	90 81 00 08 	stw     r4,8(r1)                               
ffc08be4:	90 a1 00 0c 	stw     r5,12(r1)                              
ffc08be8:	7f 45 d3 78 	mr      r5,r26                                 
ffc08bec:	80 92 a9 a0 	lwz     r4,-22112(r18)                         
ffc08bf0:	91 61 00 10 	stw     r11,16(r1)                             
ffc08bf4:	90 61 00 14 	stw     r3,20(r1)                              
ffc08bf8:	7f e3 fb 78 	mr      r3,r31                                 
ffc08bfc:	91 01 00 18 	stw     r8,24(r1)                              
ffc08c00:	7e 08 83 78 	mr      r8,r16                                 
ffc08c04:	93 41 00 1c 	stw     r26,28(r1)                             
ffc08c08:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc08c0c:	4b ff d7 69 	bl      ffc06374 <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);
ffc08c10:	80 bd 00 18 	lwz     r5,24(r29)                             
ffc08c14:	7f e3 fb 78 	mr      r3,r31                                 
ffc08c18:	7f a4 eb 78 	mr      r4,r29                                 
ffc08c1c:	7c b0 2a 14 	add     r5,r16,r5                              
ffc08c20:	7e e6 bb 78 	mr      r6,r23                                 
ffc08c24:	4b ff e3 71 	bl      ffc06f94 <rtems_fdisk_seg_write_page>  
      if (ret)                                                        
ffc08c28:	2e 03 00 00 	cmpwi   cr4,r3,0                               
ffc08c2c:	7c 7a 1b 78 	mr      r26,r3                                 
ffc08c30:	41 92 02 00 	beq-    cr4,ffc08e30 <rtems_fdisk_ioctl+0x1030><== ALWAYS TAKEN
      {                                                               
#if RTEMS_FDISK_TRACE                                                 
        rtems_fdisk_info (fd, "write-block:%02d-%03d-%03d: write page failed: " \
ffc08c34:	82 bd 00 08 	lwz     r21,8(r29)                             <== NOT EXECUTED
ffc08c38:	83 3d 00 0c 	lwz     r25,12(r29)                            <== NOT EXECUTED
ffc08c3c:	48 02 2f d9 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc08c40:	3d 20 ff c4 	lis     r9,-60                                 <== NOT EXECUTED
ffc08c44:	80 89 a9 a4 	lwz     r4,-22108(r9)                          <== NOT EXECUTED
ffc08c48:	7c 68 1b 78 	mr      r8,r3                                  <== NOT EXECUTED
ffc08c4c:	7e a5 ab 78 	mr      r5,r21                                 <== NOT EXECUTED
ffc08c50:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc08c54:	7f 26 cb 78 	mr      r6,r25                                 <== NOT EXECUTED
ffc08c58:	7e 07 83 78 	mr      r7,r16                                 <== NOT EXECUTED
ffc08c5c:	7f 49 d3 78 	mr      r9,r26                                 <== NOT EXECUTED
ffc08c60:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc08c64:	4b ff d7 11 	bl      ffc06374 <rtems_fdisk_info>            <== NOT EXECUTED
        {                                                             
          sc->pages_active++;                                         
        }                                                             
      }                                                               
                                                                      
      rtems_fdisk_queue_segment (fd, sc);                             
ffc08c68:	7f e3 fb 78 	mr      r3,r31                                 
ffc08c6c:	7f a4 eb 78 	mr      r4,r29                                 
ffc08c70:	4b ff de 15 	bl      ffc06a84 <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)                                                     
ffc08c74:	81 5f 00 28 	lwz     r10,40(r31)                            
ffc08c78:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc08c7c:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc08c80:	40 9c 00 18 	bge-    cr7,ffc08c98 <rtems_fdisk_ioctl+0xe98> 
    fd->starvations++;                                                
ffc08c84:	81 3f 00 70 	lwz     r9,112(r31)                            
      }                                                               
                                                                      
      rtems_fdisk_queue_segment (fd, sc);                             
                                                                      
      if (rtems_fdisk_is_erased_blocks_starvation (fd))               
        rtems_fdisk_compact (fd);                                     
ffc08c88:	7f e3 fb 78 	mr      r3,r31                                 
rtems_fdisk_is_erased_blocks_starvation (rtems_flashdisk* fd)         
{                                                                     
  bool starvation = fd->erased_blocks < fd->starvation_threshold;     
                                                                      
  if (starvation)                                                     
    fd->starvations++;                                                
ffc08c8c:	39 29 00 01 	addi    r9,r9,1                                
ffc08c90:	91 3f 00 70 	stw     r9,112(r31)                            
      }                                                               
                                                                      
      rtems_fdisk_queue_segment (fd, sc);                             
                                                                      
      if (rtems_fdisk_is_erased_blocks_starvation (fd))               
        rtems_fdisk_compact (fd);                                     
ffc08c94:	4b ff e9 35 	bl      ffc075c8 <rtems_fdisk_compact>         
    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)                                                        
ffc08c98:	40 92 00 58 	bne-    cr4,ffc08cf0 <rtems_fdisk_ioctl+0xef0> <== 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)                  
ffc08c9c:	3a d6 00 01 	addi    r22,r22,1                              
ffc08ca0:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc08ca4:	7f 96 78 00 	cmpw    cr7,r22,r15                            
ffc08ca8:	7e f7 4a 14 	add     r23,r23,r9                             
ffc08cac:	40 9e fc 24 	bne+    cr7,ffc088d0 <rtems_fdisk_ioctl+0xad0> <== NEVER TAKEN
ffc08cb0:	81 3e 00 10 	lwz     r9,16(r30)                             
ffc08cb4:	3b 18 00 10 	addi    r24,r24,16                             
ffc08cb8:	3a 94 00 01 	addi    r20,r20,1                              
ffc08cbc:	4b ff fb ec 	b       ffc088a8 <rtems_fdisk_ioctl+0xaa8>     
   *                                                                  
   * We override the background compaction configruation.             
   */                                                                 
  if (rtems_fdisk_segment_count_queue (&fd->available) <=             
      fd->avail_compact_segs)                                         
    rtems_fdisk_compact (fd);                                         
ffc08cc0:	7f e3 fb 78 	mr      r3,r31                                 
ffc08cc4:	4b ff e9 05 	bl      ffc075c8 <rtems_fdisk_compact>         
ffc08cc8:	83 bf 00 34 	lwz     r29,52(r31)                            
 * Pop the head of the segment control queue.                         
 */                                                                   
static rtems_fdisk_segment_ctl*                                       
rtems_fdisk_segment_queue_pop_head (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  if (queue->head)                                                    
ffc08ccc:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc08cd0:	40 be fe 20 	bne-    cr7,ffc08af0 <rtems_fdisk_ioctl+0xcf0> <== 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))                 
ffc08cd4:	81 3f 00 08 	lwz     r9,8(r31)                              <== NOT EXECUTED
ffc08cd8:	71 28 00 02 	andi.   r8,r9,2                                <== NOT EXECUTED
ffc08cdc:	40 82 04 fc 	bne-    ffc091d8 <rtems_fdisk_ioctl+0x13d8>    <== NOT EXECUTED
     */                                                               
    sc = rtems_fdisk_segment_queue_pop_head (&fd->available);         
                                                                      
    if (!sc)                                                          
    {                                                                 
      rtems_fdisk_error ("write-block: no available pages");          
ffc08ce0:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc08ce4:	38 63 b4 10 	addi    r3,r3,-19440                           <== NOT EXECUTED
ffc08ce8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc08cec:	4b ff da 5d 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
      if (ret)                                                        
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  rtems_blkdev_request_done (req, ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL);
ffc08cf0:	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);                                          
ffc08cf4:	81 3e 00 04 	lwz     r9,4(r30)                              
ffc08cf8:	7f c3 f3 78 	mr      r3,r30                                 
ffc08cfc:	7d 29 03 a6 	mtctr   r9                                     
ffc08d00:	4e 80 04 21 	bctrl                                          
ffc08d04:	81 3b 29 78 	lwz     r9,10616(r27)                          
            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);
ffc08d08:	39 40 00 00 	li      r10,0                                  
ffc08d0c:	91 4e 00 00 	stw     r10,0(r14)                             
ffc08d10:	7f 89 e2 14 	add     r28,r9,r28                             
              break;                                                  
ffc08d14:	4b ff f5 08 	b       ffc0821c <rtems_fdisk_ioctl+0x41c>     
   * Broken out to allow info messages when testing.                  
   */                                                                 
                                                                      
  if (block >= (fd->block_count - fd->unavail_blocks))                
  {                                                                   
    rtems_fdisk_error ("write-block: block out of range: %d", block); 
ffc08d18:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc08d1c:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc08d20:	38 63 af e0 	addi    r3,r3,-20512                           <== NOT EXECUTED
ffc08d24:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc08d28:	4b ff da 21 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
ffc08d2c:	4b ff ff c4 	b       ffc08cf0 <rtems_fdisk_ioctl+0xef0>     <== NOT EXECUTED
                         sc->device, sc->segment, page,               
                         flash_flags, page_desc->flags);              
      return ret;                                                     
    }                                                                 
  }                                                                   
  return rtems_fdisk_seg_write (fd, sc, offset,                       
ffc08d30:	7f e3 fb 78 	mr      r3,r31                                 
ffc08d34:	7f a4 eb 78 	mr      r4,r29                                 
ffc08d38:	7d 25 4b 78 	mr      r5,r9                                  
ffc08d3c:	38 d5 00 02 	addi    r6,r21,2                               
ffc08d40:	38 e0 00 02 	li      r7,2                                   
ffc08d44:	4b ff d8 21 	bl      ffc06564 <rtems_fdisk_seg_write>       
ffc08d48:	7c 70 1b 79 	mr.     r16,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)                                                          
ffc08d4c:	41 82 fd 3c 	beq+    ffc08a88 <rtems_fdisk_ioctl+0xc88>     <== ALWAYS TAKEN
    {                                                                 
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, " write:%02d-%03d-%03d: "      \          
ffc08d50:	80 bd 00 08 	lwz     r5,8(r29)                              <== NOT EXECUTED
ffc08d54:	7e 03 83 78 	mr      r3,r16                                 <== NOT EXECUTED
ffc08d58:	80 dd 00 0c 	lwz     r6,12(r29)                             <== NOT EXECUTED
ffc08d5c:	82 b9 00 04 	lwz     r21,4(r25)                             <== NOT EXECUTED
ffc08d60:	90 a1 00 38 	stw     r5,56(r1)                              <== NOT EXECUTED
ffc08d64:	90 c1 00 3c 	stw     r6,60(r1)                              <== NOT EXECUTED
ffc08d68:	48 02 2e ad 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc08d6c:	3c 80 ff c4 	lis     r4,-60                                 <== NOT EXECUTED
ffc08d70:	80 a1 00 38 	lwz     r5,56(r1)                              <== NOT EXECUTED
ffc08d74:	7c 68 1b 78 	mr      r8,r3                                  <== NOT EXECUTED
ffc08d78:	80 c1 00 3c 	lwz     r6,60(r1)                              <== NOT EXECUTED
ffc08d7c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc08d80:	38 84 b0 cc 	addi    r4,r4,-20276                           <== NOT EXECUTED
ffc08d84:	7e a7 ab 78 	mr      r7,r21                                 <== NOT EXECUTED
ffc08d88:	7e 09 83 78 	mr      r9,r16                                 <== NOT EXECUTED
ffc08d8c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc08d90:	4b ff d5 e5 	bl      ffc06374 <rtems_fdisk_info>            <== NOT EXECUTED
ffc08d94:	4b ff fd 0c 	b       ffc08aa0 <rtems_fdisk_ioctl+0xca0>     <== NOT EXECUTED
                                                                      
      return ret;                                                     
    }                                                                 
  }                                                                   
                                                                      
  rtems_fdisk_error ("write-block: no erased page descs in segment: %d-%d",
ffc08d98:	80 9d 00 08 	lwz     r4,8(r29)                              <== NOT EXECUTED
ffc08d9c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc08da0:	80 bd 00 0c 	lwz     r5,12(r29)                             <== NOT EXECUTED
ffc08da4:	38 63 b1 f4 	addi    r3,r3,-19980                           <== NOT EXECUTED
ffc08da8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc08dac:	4b ff d9 9d 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
                     sc->device, sc->segment);                        
                                                                      
  sc->failed = true;                                                  
ffc08db0:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc08db4:	91 3d 00 28 	stw     r9,40(r29)                             <== NOT EXECUTED
  rtems_fdisk_queue_segment (fd, sc);                                 
ffc08db8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc08dbc:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc08dc0:	4b ff dc c5 	bl      ffc06a84 <rtems_fdisk_queue_segment>   <== NOT EXECUTED
ffc08dc4:	4b ff ff 2c 	b       ffc08cf0 <rtems_fdisk_ioctl+0xef0>     <== NOT EXECUTED
     */                                                               
    if (rtems_fdisk_seg_verify_page (fd, sc->device, sc->segment,     
                                     bc->page + sc->pages_desc, buffer) == 0)
    {                                                                 
#if RTEMS_FDISK_TRACE                                                 
      rtems_fdisk_info (fd, "write-block:%d=>%02d-%03d-%03d: page verified",
ffc08dc8:	80 dd 00 08 	lwz     r6,8(r29)                              
ffc08dcc:	3c 80 ff c4 	lis     r4,-60                                 
ffc08dd0:	80 fd 00 0c 	lwz     r7,12(r29)                             
ffc08dd4:	7f e3 fb 78 	mr      r3,r31                                 
ffc08dd8:	81 19 00 04 	lwz     r8,4(r25)                              
ffc08ddc:	38 84 b0 50 	addi    r4,r4,-20400                           
ffc08de0:	7f 45 d3 78 	mr      r5,r26                                 
ffc08de4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc08de8:	4b ff d5 8d 	bl      ffc06374 <rtems_fdisk_info>            
ffc08dec:	4b ff fe b0 	b       ffc08c9c <rtems_fdisk_ioctl+0xe9c>     
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  if (fd->info_level >= 3)                                            
  {                                                                   
    char queues[5];                                                   
    rtems_fdisk_queue_status (fd, sc, queues);                        
ffc08df0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc08df4:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc08df8:	38 a1 00 20 	addi    r5,r1,32                               <== NOT EXECUTED
ffc08dfc:	4b ff d4 71 	bl      ffc0626c <rtems_fdisk_queue_status>    <== NOT EXECUTED
    rtems_fdisk_info (fd, " write:%d=>%02d-%03d: queue check: %s",    
ffc08e00:	3d 60 ff c4 	lis     r11,-60                                <== NOT EXECUTED
ffc08e04:	80 8b a9 9c 	lwz     r4,-22116(r11)                         <== NOT EXECUTED
ffc08e08:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc08e0c:	80 dd 00 08 	lwz     r6,8(r29)                              <== NOT EXECUTED
ffc08e10:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc08e14:	80 fd 00 0c 	lwz     r7,12(r29)                             <== NOT EXECUTED
ffc08e18:	39 01 00 20 	addi    r8,r1,32                               <== NOT EXECUTED
ffc08e1c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc08e20:	4b ff d5 55 	bl      ffc06374 <rtems_fdisk_info>            <== NOT EXECUTED
ffc08e24:	4b ff fc fc 	b       ffc08b20 <rtems_fdisk_ioctl+0xd20>     <== NOT EXECUTED
  {                                                                   
    rtems_fdisk_segment_ctl* sc = queue->head;                        
                                                                      
    queue->head = sc->next;                                           
    if (!queue->head)                                                 
      queue->tail = 0;                                                
ffc08e28:	91 3f 00 38 	stw     r9,56(r31)                             
ffc08e2c:	4b ff fc d4 	b       ffc08b00 <rtems_fdisk_ioctl+0xd00>     
                          strerror (ret), ret);                       
#endif                                                                
      }                                                               
      else                                                            
      {                                                               
        ret = rtems_fdisk_seg_write_page_desc (fd, sc, page, pd);     
ffc08e30:	7f e3 fb 78 	mr      r3,r31                                 
ffc08e34:	7f a4 eb 78 	mr      r4,r29                                 
ffc08e38:	7e 05 83 78 	mr      r5,r16                                 
ffc08e3c:	7e a6 ab 78 	mr      r6,r21                                 
ffc08e40:	4b ff e2 09 	bl      ffc07048 <rtems_fdisk_seg_write_page_desc>
        if (ret)                                                      
ffc08e44:	2e 03 00 00 	cmpwi   cr4,r3,0                               
ffc08e48:	7c 7a 1b 78 	mr      r26,r3                                 
ffc08e4c:	40 92 03 ac 	bne-    cr4,ffc091f8 <rtems_fdisk_ioctl+0x13f8><== NEVER TAKEN
                            strerror (ret), ret);                     
#endif                                                                
        }                                                             
        else                                                          
        {                                                             
          sc->pages_active++;                                         
ffc08e50:	81 3d 00 1c 	lwz     r9,28(r29)                             
ffc08e54:	39 29 00 01 	addi    r9,r9,1                                
ffc08e58:	91 3d 00 1c 	stw     r9,28(r29)                             
ffc08e5c:	4b ff fe 0c 	b       ffc08c68 <rtems_fdisk_ioctl+0xe68>     
      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: " \    
ffc08e60:	3e 40 ff c4 	lis     r18,-60                                
ffc08e64:	39 72 aa 3c 	addi    r11,r18,-21956                         
ffc08e68:	4b ff fd 74 	b       ffc08bdc <rtems_fdisk_ioctl+0xddc>     
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++)                           
ffc08e6c:	39 00 00 00 	li      r8,0                                   <== NOT EXECUTED
ffc08e70:	61 08 ff ff 	ori     r8,r8,65535                            <== NOT EXECUTED
 * 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;                                               
ffc08e74:	7d 0a 43 78 	mr      r10,r8                                 <== NOT EXECUTED
ffc08e78:	4b ff fd 20 	b       ffc08b98 <rtems_fdisk_ioctl+0xd98>     <== NOT EXECUTED
                                                                      
  count = 0;                                                          
  for (device = 0; device < fd->device_count; device++)               
    count += fd->devices[device].segment_count;                       
                                                                      
  rtems_fdisk_printf (fd, "Queue total\t%ld of %ld, %s", total, count,
ffc08e7c:	3c e0 ff c4 	lis     r7,-60                                 
ffc08e80:	38 e7 ae 54 	addi    r7,r7,-20908                           
ffc08e84:	4b ff f6 c8 	b       ffc0854c <rtems_fdisk_ioctl+0x74c>     
        else                                                          
        {                                                             
          switch (r->req)                                             
          {                                                           
            case RTEMS_BLKDEV_REQ_READ:                               
              errno = rtems_fdisk_read (&rtems_flashdisks[minor], r); 
ffc08e88:	48 02 01 71 	bl      ffc28ff8 <__errno>                     
ffc08e8c:	83 bb 29 78 	lwz     r29,10616(r27)                         
ffc08e90:	3d c0 ff c4 	lis     r14,-60                                
ffc08e94:	90 61 00 30 	stw     r3,48(r1)                              
                                                                      
  sc = fd->blocks[block].segment;                                     
  pd = &sc->page_descriptors[bc->page];                               
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd,                                               
ffc08e98:	3d e0 ff c4 	lis     r15,-60                                
ffc08e9c:	81 3e 00 10 	lwz     r9,16(r30)                             
        else                                                          
        {                                                             
          switch (r->req)                                             
          {                                                           
            case RTEMS_BLKDEV_REQ_READ:                               
              errno = rtems_fdisk_read (&rtems_flashdisks[minor], r); 
ffc08ea0:	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;                             
ffc08ea4:	3b 1e 00 18 	addi    r24,r30,24                             
  uint32_t                buf;                                        
  int                     ret = 0;                                    
                                                                      
  for (buf = 0; (ret == 0) && (buf < req->bufnum); buf++, sg++)       
ffc08ea8:	3a a0 00 00 	li      r21,0                                  
ffc08eac:	39 ce ae 60 	addi    r14,r14,-20896                         
                                                                      
  sc = fd->blocks[block].segment;                                     
  pd = &sc->page_descriptors[bc->page];                               
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd,                                               
ffc08eb0:	39 ef ae b8 	addi    r15,r15,-20808                         
ffc08eb4:	3e 00 ff c4 	lis     r16,-60                                
{                                                                     
  rtems_blkdev_sg_buffer* sg = req->bufs;                             
  uint32_t                buf;                                        
  int                     ret = 0;                                    
                                                                      
  for (buf = 0; (ret == 0) && (buf < req->bufnum); buf++, sg++)       
ffc08eb8:	7f 95 48 40 	cmplw   cr7,r21,r9                             
ffc08ebc:	40 9c 02 5c 	bge-    cr7,ffc09118 <rtems_fdisk_ioctl+0x1318>
  {                                                                   
    uint8_t* data;                                                    
    uint32_t fb;                                                      
    uint32_t b;                                                       
    fb = sg->length / fd->block_size;                                 
ffc08ec0:	82 98 00 04 	lwz     r20,4(r24)                             
ffc08ec4:	81 5d 00 14 	lwz     r10,20(r29)                            
    data = sg->buffer;                                                
ffc08ec8:	83 38 00 08 	lwz     r25,8(r24)                             
  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;                                 
ffc08ecc:	7e 94 53 96 	divwu   r20,r20,r10                            
    data = sg->buffer;                                                
    for (b = 0; b < fb; b++, data += fd->block_size)                  
ffc08ed0:	2f 94 00 00 	cmpwi   cr7,r20,0                              
ffc08ed4:	41 9e 02 38 	beq-    cr7,ffc0910c <rtems_fdisk_ioctl+0x130c><== NEVER TAKEN
ffc08ed8:	3a c0 00 00 	li      r22,0                                  
    {                                                                 
      ret = rtems_fdisk_read_block (fd, sg->block + b, data);         
ffc08edc:	83 58 00 00 	lwz     r26,0(r24)                             
  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);                      
ffc08ee0:	7f a3 eb 78 	mr      r3,r29                                 
ffc08ee4:	7d c4 73 78 	mr      r4,r14                                 
    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);         
ffc08ee8:	7f 56 d2 14 	add     r26,r22,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);                      
ffc08eec:	7f 45 d3 78 	mr      r5,r26                                 
ffc08ef0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc08ef4:	4b ff d4 81 	bl      ffc06374 <rtems_fdisk_info>            
                                                                      
  /*                                                                  
   * Broken out to allow info messages when testing.                  
   */                                                                 
                                                                      
  if (block >= (fd->block_count - fd->unavail_blocks))                
ffc08ef8:	81 5d 00 1c 	lwz     r10,28(r29)                            
ffc08efc:	81 3d 00 20 	lwz     r9,32(r29)                             
ffc08f00:	7d 29 50 50 	subf    r9,r9,r10                              
ffc08f04:	7f 9a 48 40 	cmplw   cr7,r26,r9                             
ffc08f08:	40 9c 01 a4 	bge-    cr7,ffc090ac <rtems_fdisk_ioctl+0x12ac><== NEVER TAKEN
  {                                                                   
    rtems_fdisk_error ("read-block: block out of range: %d", block);  
    return EIO;                                                       
  }                                                                   
                                                                      
  bc = &fd->blocks[block];                                            
ffc08f0c:	81 3d 00 18 	lwz     r9,24(r29)                             
ffc08f10:	57 57 18 38 	rlwinm  r23,r26,3,0,28                         
                                                                      
  if (!bc->segment)                                                   
ffc08f14:	7f e9 b8 2e 	lwzx    r31,r9,r23                             
  {                                                                   
    rtems_fdisk_error ("read-block: block out of range: %d", block);  
    return EIO;                                                       
  }                                                                   
                                                                      
  bc = &fd->blocks[block];                                            
ffc08f18:	7e e9 ba 14 	add     r23,r9,r23                             
                                                                      
  if (!bc->segment)                                                   
ffc08f1c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc08f20:	41 9e 01 ac 	beq-    cr7,ffc090cc <rtems_fdisk_ioctl+0x12cc>
                                                                      
  sc = fd->blocks[block].segment;                                     
  pd = &sc->page_descriptors[bc->page];                               
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd,                                               
ffc08f24:	81 3f 00 00 	lwz     r9,0(r31)                              
    memset (buffer, 0xff, fd->block_size);                            
    return 0;                                                         
  }                                                                   
                                                                      
  sc = fd->blocks[block].segment;                                     
  pd = &sc->page_descriptors[bc->page];                               
ffc08f28:	81 17 00 04 	lwz     r8,4(r23)                              
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd,                                               
ffc08f2c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    memset (buffer, 0xff, fd->block_size);                            
    return 0;                                                         
  }                                                                   
                                                                      
  sc = fd->blocks[block].segment;                                     
  pd = &sc->page_descriptors[bc->page];                               
ffc08f30:	82 3f 00 10 	lwz     r17,16(r31)                            
ffc08f34:	55 12 18 38 	rlwinm  r18,r8,3,0,28                          
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd,                                               
ffc08f38:	80 df 00 08 	lwz     r6,8(r31)                              
    memset (buffer, 0xff, fd->block_size);                            
    return 0;                                                         
  }                                                                   
                                                                      
  sc = fd->blocks[block].segment;                                     
  pd = &sc->page_descriptors[bc->page];                               
ffc08f3c:	7d 91 92 14 	add     r12,r17,r18                            
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd,                                               
ffc08f40:	80 ff 00 0c 	lwz     r7,12(r31)                             
ffc08f44:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc08f48:	81 5f 00 1c 	lwz     r10,28(r31)                            
ffc08f4c:	80 7f 00 20 	lwz     r3,32(r31)                             
ffc08f50:	80 9f 00 24 	lwz     r4,36(r31)                             
ffc08f54:	41 9e 01 70 	beq-    cr7,ffc090c4 <rtems_fdisk_ioctl+0x12c4>
ffc08f58:	3d 60 ff c4 	lis     r11,-60                                
ffc08f5c:	38 ab aa 38 	addi    r5,r11,-21960                          
ffc08f60:	90 61 00 08 	stw     r3,8(r1)                               
ffc08f64:	7f a3 eb 78 	mr      r3,r29                                 
ffc08f68:	90 81 00 0c 	stw     r4,12(r1)                              
ffc08f6c:	7d e4 7b 78 	mr      r4,r15                                 
ffc08f70:	90 a1 00 10 	stw     r5,16(r1)                              
ffc08f74:	7f 45 d3 78 	mr      r5,r26                                 
ffc08f78:	a1 6c 00 02 	lhz     r11,2(r12)                             
ffc08f7c:	91 61 00 14 	stw     r11,20(r1)                             
ffc08f80:	7d 71 92 2e 	lhzx    r11,r17,r18                            
ffc08f84:	91 61 00 18 	stw     r11,24(r1)                             
ffc08f88:	81 6c 00 04 	lwz     r11,4(r12)                             
ffc08f8c:	91 81 00 40 	stw     r12,64(r1)                             
ffc08f90:	91 61 00 1c 	stw     r11,28(r1)                             
ffc08f94:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc08f98:	4b ff d3 dd 	bl      ffc06374 <rtems_fdisk_info>            
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc08f9c:	81 81 00 40 	lwz     r12,64(r1)                             
ffc08fa0:	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))  
ffc08fa4:	71 28 00 01 	andi.   r8,r9,1                                
ffc08fa8:	40 82 00 58 	bne-    ffc09000 <rtems_fdisk_ioctl+0x1200>    <== NEVER TAKEN
  {                                                                   
    if (rtems_fdisk_page_desc_flags_clear (pd, RTEMS_FDISK_PAGE_USED))
ffc08fac:	71 2a 00 02 	andi.   r10,r9,2                               
ffc08fb0:	40 82 00 74 	bne-    ffc09024 <rtems_fdisk_ioctl+0x1224>    <== ALWAYS TAKEN
      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",
ffc08fb4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc08fb8:	80 bf 00 08 	lwz     r5,8(r31)                              <== NOT EXECUTED
ffc08fbc:	80 df 00 0c 	lwz     r6,12(r31)                             <== NOT EXECUTED
ffc08fc0:	38 63 af 6c 	addi    r3,r3,-20628                           <== NOT EXECUTED
ffc08fc4:	80 f7 00 04 	lwz     r7,4(r23)                              <== NOT EXECUTED
ffc08fc8:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc08fcc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc08fd0:	4b ff d7 79 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
      if (ret)                                                        
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  rtems_blkdev_request_done (req, ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL);
ffc08fd4:	38 80 00 1b 	li      r4,27                                  <== NOT EXECUTED
ffc08fd8:	81 3e 00 04 	lwz     r9,4(r30)                              
ffc08fdc:	7f c3 f3 78 	mr      r3,r30                                 
ffc08fe0:	7d 29 03 a6 	mtctr   r9                                     
ffc08fe4:	4e 80 04 21 	bctrl                                          
ffc08fe8:	81 3b 29 78 	lwz     r9,10616(r27)                          
        else                                                          
        {                                                             
          switch (r->req)                                             
          {                                                           
            case RTEMS_BLKDEV_REQ_READ:                               
              errno = rtems_fdisk_read (&rtems_flashdisks[minor], r); 
ffc08fec:	81 61 00 30 	lwz     r11,48(r1)                             
ffc08ff0:	39 40 00 00 	li      r10,0                                  
ffc08ff4:	7f 89 e2 14 	add     r28,r9,r28                             
ffc08ff8:	91 4b 00 00 	stw     r10,0(r11)                             
              break;                                                  
ffc08ffc:	4b ff f2 20 	b       ffc0821c <rtems_fdisk_ioctl+0x41c>     
                         block, sc->device, sc->segment, bc->page);   
    }                                                                 
  }                                                                   
  else                                                                
  {                                                                   
    rtems_fdisk_error ("read-block: block page not active: %d: %d-%d-%d",
ffc09000:	80 bf 00 08 	lwz     r5,8(r31)                              <== NOT EXECUTED
ffc09004:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc09008:	80 df 00 0c 	lwz     r6,12(r31)                             <== NOT EXECUTED
ffc0900c:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc09010:	80 f7 00 04 	lwz     r7,4(r23)                              <== NOT EXECUTED
ffc09014:	38 63 af a0 	addi    r3,r3,-20576                           <== NOT EXECUTED
ffc09018:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc0901c:	4b ff d7 2d 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
ffc09020:	4b ff ff b4 	b       ffc08fd4 <rtems_fdisk_ioctl+0x11d4>    <== NOT EXECUTED
                                                                      
      /*                                                              
       * 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,                    
ffc09024:	81 37 00 04 	lwz     r9,4(r23)                              
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,                                
ffc09028:	7f a3 eb 78 	mr      r3,r29                                 
                                                                      
      /*                                                              
       * 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,                    
ffc0902c:	81 5f 00 18 	lwz     r10,24(r31)                            
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,                                
ffc09030:	7f 27 cb 78 	mr      r7,r25                                 
                               page * fd->block_size, buffer, fd->block_size);
ffc09034:	81 1d 00 14 	lwz     r8,20(r29)                             
                                                                      
      /*                                                              
       * 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,                    
ffc09038:	7c ca 4a 14 	add     r6,r10,r9                              
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,                                
ffc0903c:	80 9f 00 08 	lwz     r4,8(r31)                              
ffc09040:	7c c6 41 d6 	mullw   r6,r6,r8                               
ffc09044:	80 bf 00 0c 	lwz     r5,12(r31)                             
ffc09048:	4b ff dd c9 	bl      ffc06e10 <rtems_fdisk_seg_read.isra.14>
       * driver. This skips the page descriptors.                     
       */                                                             
      int ret = rtems_fdisk_seg_read_page (fd, sc,                    
                                           bc->page + sc->pages_desc, buffer);
                                                                      
      if (ret)                                                        
ffc0904c:	7c 69 1b 79 	mr.     r9,r3                                  
ffc09050:	40 82 00 dc 	bne-    ffc0912c <rtems_fdisk_ioctl+0x132c>    <== NEVER TAKEN
                          strerror (ret), ret);                       
#endif                                                                
        return ret;                                                   
      }                                                               
                                                                      
      cs = rtems_fdisk_page_checksum (buffer, fd->block_size);        
ffc09054:	81 3d 00 14 	lwz     r9,20(r29)                             
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++)                           
ffc09058:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0905c:	41 9e 00 c4 	beq-    cr7,ffc09120 <rtems_fdisk_ioctl+0x1320><== NEVER TAKEN
 * 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;                                               
ffc09060:	7d 29 03 a6 	mtctr   r9                                     
ffc09064:	38 a0 00 00 	li      r5,0                                   
ffc09068:	81 13 00 08 	lwz     r8,8(r19)                              
 * @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)   
ffc0906c:	39 59 ff ff 	addi    r10,r25,-1                             
 * 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;                                               
ffc09070:	60 a5 ff ff 	ori     r5,r5,65535                            
  uint32_t i;                                                         
                                                                      
  for (i = 0; i < page_size; i++, buffer++)                           
    cs = rtems_fdisk_calc_crc16 (cs, *buffer);                        
ffc09074:	8c ea 00 01 	lbzu    r7,1(r10)                              
ffc09078:	7c e7 2a 78 	xor     r7,r7,r5                               
ffc0907c:	54 e7 0d fc 	rlwinm  r7,r7,1,23,30                          
ffc09080:	7c a8 3a 2e 	lhzx    r5,r8,r7                               
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++)                           
ffc09084:	42 00 ff f0 	bdnz+   ffc09074 <rtems_fdisk_ioctl+0x1274>    
        return ret;                                                   
      }                                                               
                                                                      
      cs = rtems_fdisk_page_checksum (buffer, fd->block_size);        
                                                                      
      if (cs == pd->crc)                                              
ffc09088:	7c d1 92 2e 	lhzx    r6,r17,r18                             
ffc0908c:	7f 85 30 00 	cmpw    cr7,r5,r6                              
ffc09090:	41 9e 00 68 	beq-    cr7,ffc090f8 <rtems_fdisk_ioctl+0x12f8><== ALWAYS TAKEN
        return 0;                                                     
                                                                      
      rtems_fdisk_error ("read-block: crc failure: %d: buffer:%04x page:%04x",
ffc09094:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc09098:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc0909c:	38 63 af 38 	addi    r3,r3,-20680                           <== NOT EXECUTED
ffc090a0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc090a4:	4b ff d6 a5 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
ffc090a8:	4b ff ff 2c 	b       ffc08fd4 <rtems_fdisk_ioctl+0x11d4>    <== NOT EXECUTED
   * Broken out to allow info messages when testing.                  
   */                                                                 
                                                                      
  if (block >= (fd->block_count - fd->unavail_blocks))                
  {                                                                   
    rtems_fdisk_error ("read-block: block out of range: %d", block);  
ffc090ac:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc090b0:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc090b4:	38 63 ae 70 	addi    r3,r3,-20880                           <== NOT EXECUTED
ffc090b8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc090bc:	4b ff d6 8d 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
ffc090c0:	4b ff ff 14 	b       ffc08fd4 <rtems_fdisk_ioctl+0x11d4>    <== NOT EXECUTED
                                                                      
  sc = fd->blocks[block].segment;                                     
  pd = &sc->page_descriptors[bc->page];                               
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd,                                               
ffc090c4:	38 b0 aa 3c 	addi    r5,r16,-21956                          
ffc090c8:	4b ff fe 98 	b       ffc08f60 <rtems_fdisk_ioctl+0x1160>    
  bc = &fd->blocks[block];                                            
                                                                      
  if (!bc->segment)                                                   
  {                                                                   
#if RTEMS_FDISK_TRACE                                                 
    rtems_fdisk_info (fd, "read-block: no segment mapping: %d", block);
ffc090cc:	3d 00 ff c4 	lis     r8,-60                                 
ffc090d0:	80 88 a9 8c 	lwz     r4,-22132(r8)                          
ffc090d4:	7f 45 d3 78 	mr      r5,r26                                 
ffc090d8:	7f a3 eb 78 	mr      r3,r29                                 
ffc090dc:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc090e0:	4b ff d2 95 	bl      ffc06374 <rtems_fdisk_info>            
#endif                                                                
    memset (buffer, 0xff, fd->block_size);                            
ffc090e4:	80 bd 00 14 	lwz     r5,20(r29)                             
ffc090e8:	7f 23 cb 78 	mr      r3,r25                                 
ffc090ec:	38 80 00 ff 	li      r4,255                                 
ffc090f0:	48 02 17 4d 	bl      ffc2a83c <memset>                      
ffc090f4:	81 3d 00 14 	lwz     r9,20(r29)                             
    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)                  
ffc090f8:	3a d6 00 01 	addi    r22,r22,1                              
ffc090fc:	7f 96 a0 00 	cmpw    cr7,r22,r20                            
ffc09100:	7f 39 4a 14 	add     r25,r25,r9                             
ffc09104:	40 9e fd d8 	bne+    cr7,ffc08edc <rtems_fdisk_ioctl+0x10dc><== NEVER TAKEN
ffc09108:	81 3e 00 10 	lwz     r9,16(r30)                             
{                                                                     
  rtems_blkdev_sg_buffer* sg = req->bufs;                             
  uint32_t                buf;                                        
  int                     ret = 0;                                    
                                                                      
  for (buf = 0; (ret == 0) && (buf < req->bufnum); buf++, sg++)       
ffc0910c:	3a b5 00 01 	addi    r21,r21,1                              
ffc09110:	3b 18 00 10 	addi    r24,r24,16                             
ffc09114:	4b ff fd a4 	b       ffc08eb8 <rtems_fdisk_ioctl+0x10b8>    
      if (ret)                                                        
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  rtems_blkdev_request_done (req, ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL);
ffc09118:	38 80 00 00 	li      r4,0                                   
ffc0911c:	4b ff fe bc 	b       ffc08fd8 <rtems_fdisk_ioctl+0x11d8>    
 * 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;                                               
ffc09120:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc09124:	60 a5 ff ff 	ori     r5,r5,65535                            <== NOT EXECUTED
ffc09128:	4b ff ff 60 	b       ffc09088 <rtems_fdisk_ioctl+0x1288>    <== NOT EXECUTED
                                           bc->page + sc->pages_desc, buffer);
                                                                      
      if (ret)                                                        
      {                                                               
#if RTEMS_FDISK_TRACE                                                 
        rtems_fdisk_info (fd,                                         
ffc0912c:	83 3f 00 08 	lwz     r25,8(r31)                             <== NOT EXECUTED
ffc09130:	83 5f 00 0c 	lwz     r26,12(r31)                            <== NOT EXECUTED
ffc09134:	83 f7 00 04 	lwz     r31,4(r23)                             <== NOT EXECUTED
ffc09138:	91 21 00 48 	stw     r9,72(r1)                              <== NOT EXECUTED
ffc0913c:	48 02 2a d9 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc09140:	3c 80 ff c4 	lis     r4,-60                                 <== NOT EXECUTED
ffc09144:	81 21 00 48 	lwz     r9,72(r1)                              <== NOT EXECUTED
ffc09148:	7c 68 1b 78 	mr      r8,r3                                  <== NOT EXECUTED
ffc0914c:	38 84 af 00 	addi    r4,r4,-20736                           <== NOT EXECUTED
ffc09150:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc09154:	7f 25 cb 78 	mr      r5,r25                                 <== NOT EXECUTED
ffc09158:	7f 46 d3 78 	mr      r6,r26                                 <== NOT EXECUTED
ffc0915c:	7f e7 fb 78 	mr      r7,r31                                 <== NOT EXECUTED
ffc09160:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc09164:	4b ff d2 11 	bl      ffc06374 <rtems_fdisk_info>            <== NOT EXECUTED
ffc09168:	4b ff fe 6c 	b       ffc08fd4 <rtems_fdisk_ioctl+0x11d4>    <== NOT EXECUTED
                                                                      
  ret = rtems_fdisk_erase_flash (fd);                                 
                                                                      
  if (ret == 0)                                                       
  {                                                                   
    for (device = 0; device < fd->device_count; device++)             
ffc0916c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
ffc09170:	41 be f1 ec 	beq-    cr7,ffc0835c <rtems_fdisk_ioctl+0x55c> <== NOT EXECUTED
    {                                                                 
      if (!fd->devices[device].segments)                              
ffc09174:	81 3f 00 2c 	lwz     r9,44(r31)                             <== NOT EXECUTED
ffc09178:	81 29 00 00 	lwz     r9,0(r9)                               <== NOT EXECUTED
ffc0917c:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc09180:	41 9e 00 50 	beq-    cr7,ffc091d0 <rtems_fdisk_ioctl+0x13d0><== NOT EXECUTED
ffc09184:	3b a0 00 0c 	li      r29,12                                 <== NOT EXECUTED
ffc09188:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
ffc0918c:	48 00 00 24 	b       ffc091b0 <rtems_fdisk_ioctl+0x13b0>    <== NOT EXECUTED
                                                                      
  ret = rtems_fdisk_erase_flash (fd);                                 
                                                                      
  if (ret == 0)                                                       
  {                                                                   
    for (device = 0; device < fd->device_count; device++)             
ffc09190:	81 5f 00 30 	lwz     r10,48(r31)                            <== NOT EXECUTED
ffc09194:	7f 9e 50 40 	cmplw   cr7,r30,r10                            <== NOT EXECUTED
ffc09198:	40 bc f1 c4 	bge-    cr7,ffc0835c <rtems_fdisk_ioctl+0x55c> <== NOT EXECUTED
    {                                                                 
      if (!fd->devices[device].segments)                              
ffc0919c:	81 3f 00 2c 	lwz     r9,44(r31)                             <== NOT EXECUTED
ffc091a0:	7d 29 e8 2e 	lwzx    r9,r9,r29                              <== NOT EXECUTED
ffc091a4:	3b bd 00 0c 	addi    r29,r29,12                             <== NOT EXECUTED
ffc091a8:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc091ac:	41 9e 00 24 	beq-    cr7,ffc091d0 <rtems_fdisk_ioctl+0x13d0><== NOT EXECUTED
        return ENOMEM;                                                
                                                                      
      ret = rtems_fdisk_recover_block_mappings (fd);                  
ffc091b0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc091b4:	4b ff e8 01 	bl      ffc079b4 <rtems_fdisk_recover_block_mappings><== NOT EXECUTED
                                                                      
  ret = rtems_fdisk_erase_flash (fd);                                 
                                                                      
  if (ret == 0)                                                       
  {                                                                   
    for (device = 0; device < fd->device_count; device++)             
ffc091b8:	3b de 00 01 	addi    r30,r30,1                              <== NOT EXECUTED
    {                                                                 
      if (!fd->devices[device].segments)                              
        return ENOMEM;                                                
                                                                      
      ret = rtems_fdisk_recover_block_mappings (fd);                  
      if (ret)                                                        
ffc091bc:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc091c0:	41 82 ff d0 	beq+    ffc09190 <rtems_fdisk_ioctl+0x1390>    <== NOT EXECUTED
ffc091c4:	4b ff f1 98 	b       ffc0835c <rtems_fdisk_ioctl+0x55c>     <== NOT EXECUTED
 */                                                                   
static int                                                            
rtems_fdisk_erase_flash (const rtems_flashdisk* fd)                   
{                                                                     
  uint32_t device;                                                    
  for (device = 0; device < fd->device_count; device++)               
ffc091c8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc091cc:	4b ff f1 90 	b       ffc0835c <rtems_fdisk_ioctl+0x55c>     <== NOT EXECUTED
  if (ret == 0)                                                       
  {                                                                   
    for (device = 0; device < fd->device_count; device++)             
    {                                                                 
      if (!fd->devices[device].segments)                              
        return ENOMEM;                                                
ffc091d0:	38 60 00 0c 	li      r3,12                                  <== NOT EXECUTED
ffc091d4:	4b ff f1 88 	b       ffc0835c <rtems_fdisk_ioctl+0x55c>     <== NOT EXECUTED
    /*                                                                
     * 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))                 
      rtems_fdisk_compact (fd);                                       
ffc091d8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc091dc:	4b ff e3 ed 	bl      ffc075c8 <rtems_fdisk_compact>         <== NOT EXECUTED
 * Pop the head of the segment control queue.                         
 */                                                                   
static rtems_fdisk_segment_ctl*                                       
rtems_fdisk_segment_queue_pop_head (rtems_fdisk_segment_ctl_queue* queue)
{                                                                     
  if (queue->head)                                                    
ffc091e0:	83 bf 00 34 	lwz     r29,52(r31)                            <== NOT EXECUTED
ffc091e4:	2f 9d 00 00 	cmpwi   cr7,r29,0                              <== NOT EXECUTED
ffc091e8:	40 9e f9 08 	bne+    cr7,ffc08af0 <rtems_fdisk_ioctl+0xcf0> <== NOT EXECUTED
ffc091ec:	4b ff fa f4 	b       ffc08ce0 <rtems_fdisk_ioctl+0xee0>     <== NOT EXECUTED
      if (ret)                                                        
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  rtems_blkdev_request_done (req, ret ? RTEMS_IO_ERROR : RTEMS_SUCCESSFUL);
ffc091f0:	38 80 00 00 	li      r4,0                                   
ffc091f4:	4b ff fb 00 	b       ffc08cf4 <rtems_fdisk_ioctl+0xef4>     
      {                                                               
        ret = rtems_fdisk_seg_write_page_desc (fd, sc, page, pd);     
        if (ret)                                                      
        {                                                             
#if RTEMS_FDISK_TRACE                                                 
          rtems_fdisk_info (fd, "write-block:%02d-%03d-%03d: "  \     
ffc091f8:	82 5d 00 08 	lwz     r18,8(r29)                             <== NOT EXECUTED
ffc091fc:	82 bd 00 0c 	lwz     r21,12(r29)                            <== NOT EXECUTED
ffc09200:	83 39 00 04 	lwz     r25,4(r25)                             <== NOT EXECUTED
ffc09204:	48 02 2a 11 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc09208:	3d 40 ff c4 	lis     r10,-60                                <== NOT EXECUTED
ffc0920c:	80 8a a9 a8 	lwz     r4,-22104(r10)                         <== NOT EXECUTED
ffc09210:	7c 68 1b 78 	mr      r8,r3                                  <== NOT EXECUTED
ffc09214:	7e 45 93 78 	mr      r5,r18                                 <== NOT EXECUTED
ffc09218:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc0921c:	7e a6 ab 78 	mr      r6,r21                                 <== NOT EXECUTED
ffc09220:	7f 27 cb 78 	mr      r7,r25                                 <== NOT EXECUTED
ffc09224:	7f 49 d3 78 	mr      r9,r26                                 <== NOT EXECUTED
ffc09228:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc0922c:	4b ff d1 49 	bl      ffc06374 <rtems_fdisk_info>            <== NOT EXECUTED
ffc09230:	4b ff fa 38 	b       ffc08c68 <rtems_fdisk_ioctl+0xe68>     <== NOT EXECUTED
                                                                      

ffc0646c <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, ...) {
ffc0646c:	94 21 ff 80 	stwu    r1,-128(r1)                            
ffc06470:	7c 08 02 a6 	mflr    r0                                     
ffc06474:	93 a1 00 74 	stw     r29,116(r1)                            
ffc06478:	90 01 00 84 	stw     r0,132(r1)                             
ffc0647c:	93 c1 00 78 	stw     r30,120(r1)                            
ffc06480:	93 e1 00 7c 	stw     r31,124(r1)                            
ffc06484:	90 a1 00 18 	stw     r5,24(r1)                              
ffc06488:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc0648c:	90 e1 00 20 	stw     r7,32(r1)                              
ffc06490:	91 01 00 24 	stw     r8,36(r1)                              
ffc06494:	91 21 00 28 	stw     r9,40(r1)                              
ffc06498:	91 41 00 2c 	stw     r10,44(r1)                             
ffc0649c:	40 86 00 24 	bne-    cr1,ffc064c0 <rtems_fdisk_printf+0x54> <== ALWAYS TAKEN
ffc064a0:	d8 21 00 30 	stfd    f1,48(r1)                              <== NOT EXECUTED
ffc064a4:	d8 41 00 38 	stfd    f2,56(r1)                              <== NOT EXECUTED
ffc064a8:	d8 61 00 40 	stfd    f3,64(r1)                              <== NOT EXECUTED
ffc064ac:	d8 81 00 48 	stfd    f4,72(r1)                              <== NOT EXECUTED
ffc064b0:	d8 a1 00 50 	stfd    f5,80(r1)                              <== NOT EXECUTED
ffc064b4:	d8 c1 00 58 	stfd    f6,88(r1)                              <== NOT EXECUTED
ffc064b8:	d8 e1 00 60 	stfd    f7,96(r1)                              <== NOT EXECUTED
ffc064bc:	d9 01 00 68 	stfd    f8,104(r1)                             <== NOT EXECUTED
  int ret = 0;                                                        
  if (fd->info_level >= 3)                                            
ffc064c0:	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, ...)
{                                                                     
ffc064c4:	7c 9d 23 78 	mr      r29,r4                                 
  int ret = 0;                                                        
ffc064c8:	3b e0 00 00 	li      r31,0                                  
  if (fd->info_level >= 3)                                            
ffc064cc:	2b 89 00 02 	cmplwi  cr7,r9,2                               
ffc064d0:	40 bd 00 74 	ble+    cr7,ffc06544 <rtems_fdisk_printf+0xd8> 
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
    fprintf (stdout, "fdisk:");                                       
ffc064d4:	3f c0 00 00 	lis     r30,0                                  
{                                                                     
  int ret = 0;                                                        
  if (fd->info_level >= 3)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc064d8:	9b e1 00 09 	stb     r31,9(r1)                              
    fprintf (stdout, "fdisk:");                                       
ffc064dc:	3c 60 ff c4 	lis     r3,-60                                 
ffc064e0:	81 3e 28 0c 	lwz     r9,10252(r30)                          
ffc064e4:	38 80 00 01 	li      r4,1                                   
ffc064e8:	38 a0 00 06 	li      r5,6                                   
ffc064ec:	80 c9 00 08 	lwz     r6,8(r9)                               
{                                                                     
  int ret = 0;                                                        
  if (fd->info_level >= 3)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc064f0:	39 20 00 02 	li      r9,2                                   
ffc064f4:	99 21 00 08 	stb     r9,8(r1)                               
ffc064f8:	39 21 00 88 	addi    r9,r1,136                              
    fprintf (stdout, "fdisk:");                                       
ffc064fc:	38 63 a9 ac 	addi    r3,r3,-22100                           
{                                                                     
  int ret = 0;                                                        
  if (fd->info_level >= 3)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc06500:	91 21 00 0c 	stw     r9,12(r1)                              
ffc06504:	39 21 00 10 	addi    r9,r1,16                               
ffc06508:	91 21 00 10 	stw     r9,16(r1)                              
    fprintf (stdout, "fdisk:");                                       
ffc0650c:	48 02 3f 19 	bl      ffc2a424 <fwrite>                      
    ret =  vfprintf (stdout, format, args);                           
ffc06510:	7f a4 eb 78 	mr      r4,r29                                 
ffc06514:	81 3e 28 0c 	lwz     r9,10252(r30)                          
ffc06518:	38 a1 00 08 	addi    r5,r1,8                                
ffc0651c:	80 69 00 08 	lwz     r3,8(r9)                               
ffc06520:	48 02 ca ed 	bl      ffc3300c <vfprintf>                    
    fprintf (stdout, "\n");                                           
ffc06524:	81 3e 28 0c 	lwz     r9,10252(r30)                          
  if (fd->info_level >= 3)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
    fprintf (stdout, "fdisk:");                                       
    ret =  vfprintf (stdout, format, args);                           
ffc06528:	7c 7f 1b 78 	mr      r31,r3                                 
    fprintf (stdout, "\n");                                           
ffc0652c:	80 89 00 08 	lwz     r4,8(r9)                               
ffc06530:	38 60 00 0a 	li      r3,10                                  
ffc06534:	48 02 35 b9 	bl      ffc29aec <fputc>                       
    fflush (stdout);                                                  
ffc06538:	81 3e 28 0c 	lwz     r9,10252(r30)                          
ffc0653c:	80 69 00 08 	lwz     r3,8(r9)                               
ffc06540:	48 02 2f 81 	bl      ffc294c0 <fflush>                      
    va_end (args);                                                    
  }                                                                   
  return ret;                                                         
}                                                                     
ffc06544:	80 01 00 84 	lwz     r0,132(r1)                             
ffc06548:	7f e3 fb 78 	mr      r3,r31                                 
ffc0654c:	83 a1 00 74 	lwz     r29,116(r1)                            
ffc06550:	7c 08 03 a6 	mtlr    r0                                     
ffc06554:	83 c1 00 78 	lwz     r30,120(r1)                            
ffc06558:	83 e1 00 7c 	lwz     r31,124(r1)                            
ffc0655c:	38 21 00 80 	addi    r1,r1,128                              
ffc06560:	4e 80 00 20 	blr                                            
                                                                      

ffc06a84 <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) {
ffc06a84:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc06a88:	7c 08 02 a6 	mflr    r0                                     
ffc06a8c:	90 01 00 24 	stw     r0,36(r1)                              
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, " queue-seg:%02d-%03d: p=%d a=%d u=%d b=%d f=%s n=%s",
ffc06a90:	81 24 00 28 	lwz     r9,40(r4)                              
 * @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)
{                                                                     
ffc06a94:	93 c1 00 18 	stw     r30,24(r1)                             
ffc06a98:	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",
ffc06a9c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
 * @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)
{                                                                     
ffc06aa0:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc06aa4:	7c 9f 23 78 	mr      r31,r4                                 
ffc06aa8:	93 81 00 10 	stw     r28,16(r1)                             
ffc06aac:	93 a1 00 14 	stw     r29,20(r1)                             
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, " queue-seg:%02d-%03d: p=%d a=%d u=%d b=%d f=%s n=%s",
ffc06ab0:	80 a4 00 08 	lwz     r5,8(r4)                               
ffc06ab4:	80 c4 00 0c 	lwz     r6,12(r4)                              
ffc06ab8:	80 e4 00 14 	lwz     r7,20(r4)                              
ffc06abc:	81 04 00 1c 	lwz     r8,28(r4)                              
ffc06ac0:	81 24 00 20 	lwz     r9,32(r4)                              
ffc06ac4:	81 44 00 24 	lwz     r10,36(r4)                             
ffc06ac8:	41 9e 00 b0 	beq-    cr7,ffc06b78 <rtems_fdisk_queue_segment+0xf4><== ALWAYS TAKEN
ffc06acc:	80 7f 00 00 	lwz     r3,0(r31)                              <== NOT EXECUTED
ffc06ad0:	3c 80 ff c4 	lis     r4,-60                                 <== NOT EXECUTED
ffc06ad4:	38 84 aa 30 	addi    r4,r4,-21968                           <== NOT EXECUTED
ffc06ad8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc06adc:	41 9e 00 b0 	beq-    cr7,ffc06b8c <rtems_fdisk_queue_segment+0x108><== NOT EXECUTED
ffc06ae0:	3d 60 ff c4 	lis     r11,-60                                
ffc06ae4:	90 81 00 08 	stw     r4,8(r1)                               
ffc06ae8:	39 6b aa 38 	addi    r11,r11,-21960                         
ffc06aec:	91 61 00 0c 	stw     r11,12(r1)                             
ffc06af0:	3c 80 ff c4 	lis     r4,-60                                 
ffc06af4:	7f c3 f3 78 	mr      r3,r30                                 
ffc06af8:	38 84 aa 44 	addi    r4,r4,-21948                           
ffc06afc:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc06b00:	4b ff f8 75 	bl      ffc06374 <rtems_fdisk_info>            
                                                                      
  /*                                                                  
   * If the segment has failed then check the failed queue and append 
   * if not failed.                                                   
   */                                                                 
  if (sc->failed)                                                     
ffc06b04:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc06b08:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06b0c:	41 9e 00 b0 	beq-    cr7,ffc06bbc <rtems_fdisk_queue_segment+0x138><== ALWAYS TAKEN
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc06b10:	81 3e 00 58 	lwz     r9,88(r30)                             <== 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)                                                          
ffc06b14:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc06b18:	41 9e 02 24 	beq-    cr7,ffc06d3c <rtems_fdisk_queue_segment+0x2b8><== NOT EXECUTED
  {                                                                   
    if (it == sc)                                                     
ffc06b1c:	7f 9f 48 00 	cmpw    cr7,r31,r9                             <== NOT EXECUTED
ffc06b20:	40 be 00 0c 	bne+    cr7,ffc06b2c <rtems_fdisk_queue_segment+0xa8><== NOT EXECUTED
ffc06b24:	48 00 00 34 	b       ffc06b58 <rtems_fdisk_queue_segment+0xd4><== NOT EXECUTED
ffc06b28:	41 9a 00 30 	beq-    cr6,ffc06b58 <rtems_fdisk_queue_segment+0xd4><== NOT EXECUTED
      return true;                                                    
    it = it->next;                                                    
ffc06b2c:	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)                                                          
ffc06b30:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
  {                                                                   
    if (it == sc)                                                     
ffc06b34:	7f 1f 48 00 	cmpw    cr6,r31,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)                                                          
ffc06b38:	40 9e ff f0 	bne+    cr7,ffc06b28 <rtems_fdisk_queue_segment+0xa4><== NOT EXECUTED
  {                                                                   
    sc->next = 0;                                                     
                                                                      
    if (queue->head)                                                  
    {                                                                 
      queue->tail->next = sc;                                         
ffc06b3c:	81 5e 00 5c 	lwz     r10,92(r30)                            <== NOT EXECUTED
rtems_fdisk_segment_queue_push_tail (rtems_fdisk_segment_ctl_queue* queue,
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = 0;                                                     
ffc06b40:	91 3f 00 00 	stw     r9,0(r31)                              <== NOT EXECUTED
                                                                      
    if (queue->head)                                                  
    {                                                                 
      queue->tail->next = sc;                                         
ffc06b44:	93 ea 00 00 	stw     r31,0(r10)                             <== NOT EXECUTED
      queue->tail       = sc;                                         
ffc06b48:	93 fe 00 5c 	stw     r31,92(r30)                            <== NOT EXECUTED
    else                                                              
    {                                                                 
      queue->head = queue->tail = sc;                                 
    }                                                                 
                                                                      
    queue->count++;                                                   
ffc06b4c:	81 3e 00 60 	lwz     r9,96(r30)                             <== NOT EXECUTED
ffc06b50:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
ffc06b54:	91 3e 00 60 	stw     r9,96(r30)                             <== NOT EXECUTED
    if (seg)                                                          
      rtems_fdisk_segment_queue_insert_before (&fd->available, seg, sc);
    else                                                              
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
  }                                                                   
}                                                                     
ffc06b58:	80 01 00 24 	lwz     r0,36(r1)                              
ffc06b5c:	83 81 00 10 	lwz     r28,16(r1)                             
ffc06b60:	7c 08 03 a6 	mtlr    r0                                     
ffc06b64:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc06b68:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc06b6c:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc06b70:	38 21 00 20 	addi    r1,r1,32                               
ffc06b74:	4e 80 00 20 	blr                                            
 */                                                                   
static void                                                           
rtems_fdisk_queue_segment (rtems_flashdisk* fd, rtems_fdisk_segment_ctl* sc)
{                                                                     
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_info (fd, " queue-seg:%02d-%03d: p=%d a=%d u=%d b=%d f=%s n=%s",
ffc06b78:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc06b7c:	3c 80 ff c4 	lis     r4,-60                                 
ffc06b80:	38 84 c6 e4 	addi    r4,r4,-14620                           
ffc06b84:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06b88:	40 9e ff 58 	bne+    cr7,ffc06ae0 <rtems_fdisk_queue_segment+0x5c>
ffc06b8c:	3d 60 ff c4 	lis     r11,-60                                
ffc06b90:	90 81 00 08 	stw     r4,8(r1)                               
ffc06b94:	39 6b aa 3c 	addi    r11,r11,-21956                         
ffc06b98:	91 61 00 0c 	stw     r11,12(r1)                             
ffc06b9c:	3c 80 ff c4 	lis     r4,-60                                 
ffc06ba0:	7f c3 f3 78 	mr      r3,r30                                 
ffc06ba4:	38 84 aa 44 	addi    r4,r4,-21948                           
ffc06ba8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc06bac:	4b ff f7 c9 	bl      ffc06374 <rtems_fdisk_info>            
                                                                      
  /*                                                                  
   * If the segment has failed then check the failed queue and append 
   * if not failed.                                                   
   */                                                                 
  if (sc->failed)                                                     
ffc06bb0:	81 3f 00 28 	lwz     r9,40(r31)                             
ffc06bb4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06bb8:	40 9e ff 58 	bne+    cr7,ffc06b10 <rtems_fdisk_queue_segment+0x8c><== NEVER TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   * Remove the queue from the available or used queue.               
   */                                                                 
  rtems_fdisk_segment_queue_remove (&fd->available, sc);              
ffc06bbc:	3b be 00 34 	addi    r29,r30,52                             
ffc06bc0:	7f a3 eb 78 	mr      r3,r29                                 
ffc06bc4:	7f e4 fb 78 	mr      r4,r31                                 
  rtems_fdisk_segment_queue_remove (&fd->used, sc);                   
ffc06bc8:	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);              
ffc06bcc:	4b ff f6 21 	bl      ffc061ec <rtems_fdisk_segment_queue_remove>
  rtems_fdisk_segment_queue_remove (&fd->used, sc);                   
ffc06bd0:	7f 83 e3 78 	mr      r3,r28                                 
ffc06bd4:	7f e4 fb 78 	mr      r4,r31                                 
ffc06bd8:	4b ff f6 15 	bl      ffc061ec <rtems_fdisk_segment_queue_remove>
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
ffc06bdc:	81 1f 00 1c 	lwz     r8,28(r31)                             
ffc06be0:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc06be4:	81 5f 00 24 	lwz     r10,36(r31)                            
ffc06be8:	80 ff 00 14 	lwz     r7,20(r31)                             
ffc06bec:	7c c9 42 14 	add     r6,r9,r8                               
ffc06bf0:	7d 46 52 14 	add     r10,r6,r10                             
   * 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)                      
ffc06bf4:	7f 87 50 00 	cmpw    cr7,r7,r10                             
ffc06bf8:	41 9e 00 b0 	beq-    cr7,ffc06ca8 <rtems_fdisk_queue_segment+0x224>
     * 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;                
ffc06bfc:	80 9e 00 34 	lwz     r4,52(r30)                             
                                                                      
    while (seg)                                                       
ffc06c00:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc06c04:	41 9e 01 50 	beq-    cr7,ffc06d54 <rtems_fdisk_queue_segment+0x2d0>
 *                                                                    
 * @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)
ffc06c08:	81 24 00 24 	lwz     r9,36(r4)                              
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
ffc06c0c:	7c ea 38 50 	subf    r7,r10,r7                              
 *                                                                    
 * @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)
ffc06c10:	80 c4 00 20 	lwz     r6,32(r4)                              
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
ffc06c14:	81 04 00 14 	lwz     r8,20(r4)                              
 *                                                                    
 * @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)
ffc06c18:	7c c6 4a 14 	add     r6,r6,r9                               
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
ffc06c1c:	81 24 00 1c 	lwz     r9,28(r4)                              
ffc06c20:	7d 06 40 50 	subf    r8,r6,r8                               
ffc06c24:	7d 29 40 50 	subf    r9,r9,r8                               
     */                                                               
    rtems_fdisk_segment_ctl* seg = fd->available.head;                
                                                                      
    while (seg)                                                       
    {                                                                 
      if (rtems_fdisk_seg_pages_available (sc) <                      
ffc06c28:	7f 87 48 40 	cmplw   cr7,r7,r9                              
ffc06c2c:	40 bc 00 50 	bge+    cr7,ffc06c7c <rtems_fdisk_queue_segment+0x1f8>
        break;                                                        
      seg = seg->next;                                                
    }                                                                 
                                                                      
    if (seg)                                                          
      rtems_fdisk_segment_queue_insert_before (&fd->available, seg, sc);
ffc06c30:	7f a3 eb 78 	mr      r3,r29                                 
    else                                                              
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
  }                                                                   
}                                                                     
ffc06c34:	80 01 00 24 	lwz     r0,36(r1)                              
        break;                                                        
      seg = seg->next;                                                
    }                                                                 
                                                                      
    if (seg)                                                          
      rtems_fdisk_segment_queue_insert_before (&fd->available, seg, sc);
ffc06c38:	7f e5 fb 78 	mr      r5,r31                                 
    else                                                              
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
  }                                                                   
}                                                                     
ffc06c3c:	83 81 00 10 	lwz     r28,16(r1)                             
ffc06c40:	7c 08 03 a6 	mtlr    r0                                     
ffc06c44:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc06c48:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc06c4c:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc06c50:	38 21 00 20 	addi    r1,r1,32                               
        break;                                                        
      seg = seg->next;                                                
    }                                                                 
                                                                      
    if (seg)                                                          
      rtems_fdisk_segment_queue_insert_before (&fd->available, seg, sc);
ffc06c54:	4b ff fd 98 	b       ffc069ec <rtems_fdisk_segment_queue_insert_before>
 *                                                                    
 * @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)
ffc06c58:	81 24 00 20 	lwz     r9,32(r4)                              
ffc06c5c:	81 04 00 24 	lwz     r8,36(r4)                              
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
ffc06c60:	81 44 00 14 	lwz     r10,20(r4)                             
 *                                                                    
 * @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)
ffc06c64:	7d 08 4a 14 	add     r8,r8,r9                               
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
ffc06c68:	81 24 00 1c 	lwz     r9,28(r4)                              
ffc06c6c:	7d 48 50 50 	subf    r10,r8,r10                             
ffc06c70:	7d 29 50 50 	subf    r9,r9,r10                              
     */                                                               
    rtems_fdisk_segment_ctl* seg = fd->available.head;                
                                                                      
    while (seg)                                                       
    {                                                                 
      if (rtems_fdisk_seg_pages_available (sc) <                      
ffc06c74:	7f 87 48 40 	cmplw   cr7,r7,r9                              
ffc06c78:	41 bc ff b8 	blt-    cr7,ffc06c30 <rtems_fdisk_queue_segment+0x1ac><== NEVER TAKEN
          rtems_fdisk_seg_pages_available (seg))                      
        break;                                                        
      seg = seg->next;                                                
ffc06c7c:	80 84 00 00 	lwz     r4,0(r4)                               
     * 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)                                                       
ffc06c80:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc06c84:	40 9e ff d4 	bne+    cr7,ffc06c58 <rtems_fdisk_queue_segment+0x1d4>
  {                                                                   
    sc->next = 0;                                                     
                                                                      
    if (queue->head)                                                  
    {                                                                 
      queue->tail->next = sc;                                         
ffc06c88:	81 3e 00 38 	lwz     r9,56(r30)                             
rtems_fdisk_segment_queue_push_tail (rtems_fdisk_segment_ctl_queue* queue,
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = 0;                                                     
ffc06c8c:	90 9f 00 00 	stw     r4,0(r31)                              
                                                                      
    if (queue->head)                                                  
    {                                                                 
      queue->tail->next = sc;                                         
ffc06c90:	93 e9 00 00 	stw     r31,0(r9)                              
      queue->tail       = sc;                                         
ffc06c94:	93 fe 00 38 	stw     r31,56(r30)                            
    else                                                              
    {                                                                 
      queue->head = queue->tail = sc;                                 
    }                                                                 
                                                                      
    queue->count++;                                                   
ffc06c98:	81 3e 00 3c 	lwz     r9,60(r30)                             
ffc06c9c:	39 29 00 01 	addi    r9,r9,1                                
ffc06ca0:	91 3e 00 3c 	stw     r9,60(r30)                             
ffc06ca4:	4b ff fe b4 	b       ffc06b58 <rtems_fdisk_queue_segment+0xd4>
   * to background erase perform the erase now.                       
   *                                                                  
   */                                                                 
  if (rtems_fdisk_seg_pages_available (sc) == 0)                      
  {                                                                   
    if (sc->pages_active)                                             
ffc06ca8:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc06cac:	41 9e 00 58 	beq-    cr7,ffc06d04 <rtems_fdisk_queue_segment+0x280><== 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;                   
ffc06cb0:	80 9e 00 40 	lwz     r4,64(r30)                             
                                                                      
      while (seg)                                                     
ffc06cb4:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc06cb8:	41 9e 00 e0 	beq-    cr7,ffc06d98 <rtems_fdisk_queue_segment+0x314>
      {                                                               
        if (sc->pages_used > seg->pages_used)                         
ffc06cbc:	81 44 00 20 	lwz     r10,32(r4)                             
ffc06cc0:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc06cc4:	40 bd 00 14 	ble+    cr7,ffc06cd8 <rtems_fdisk_queue_segment+0x254>
ffc06cc8:	48 00 00 84 	b       ffc06d4c <rtems_fdisk_queue_segment+0x2c8>
ffc06ccc:	81 44 00 20 	lwz     r10,32(r4)                             
ffc06cd0:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc06cd4:	41 9c 00 78 	blt-    cr7,ffc06d4c <rtems_fdisk_queue_segment+0x2c8>
          break;                                                      
        seg = seg->next;                                              
ffc06cd8:	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)                                                     
ffc06cdc:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc06ce0:	40 9e ff ec 	bne+    cr7,ffc06ccc <rtems_fdisk_queue_segment+0x248>
  {                                                                   
    sc->next = 0;                                                     
                                                                      
    if (queue->head)                                                  
    {                                                                 
      queue->tail->next = sc;                                         
ffc06ce4:	81 3e 00 44 	lwz     r9,68(r30)                             
rtems_fdisk_segment_queue_push_tail (rtems_fdisk_segment_ctl_queue* queue,
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = 0;                                                     
ffc06ce8:	90 9f 00 00 	stw     r4,0(r31)                              
                                                                      
    if (queue->head)                                                  
    {                                                                 
      queue->tail->next = sc;                                         
ffc06cec:	93 e9 00 00 	stw     r31,0(r9)                              
      queue->tail       = sc;                                         
ffc06cf0:	93 fe 00 44 	stw     r31,68(r30)                            
    else                                                              
    {                                                                 
      queue->head = queue->tail = sc;                                 
    }                                                                 
                                                                      
    queue->count++;                                                   
ffc06cf4:	81 3e 00 48 	lwz     r9,72(r30)                             
ffc06cf8:	39 29 00 01 	addi    r9,r9,1                                
ffc06cfc:	91 3e 00 48 	stw     r9,72(r30)                             
ffc06d00:	4b ff fe 58 	b       ffc06b58 <rtems_fdisk_queue_segment+0xd4>
      else                                                            
        rtems_fdisk_segment_queue_push_tail (&fd->used, sc);          
    }                                                                 
    else                                                              
    {                                                                 
      if ((fd->flags & RTEMS_FDISK_BACKGROUND_ERASE))                 
ffc06d04:	81 3e 00 08 	lwz     r9,8(r30)                              <== NOT EXECUTED
ffc06d08:	71 2a 00 01 	andi.   r10,r9,1                               <== NOT EXECUTED
ffc06d0c:	41 82 00 58 	beq-    ffc06d64 <rtems_fdisk_queue_segment+0x2e0><== NOT EXECUTED
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = 0;                                                     
                                                                      
    if (queue->head)                                                  
ffc06d10:	81 3e 00 4c 	lwz     r9,76(r30)                             <== NOT EXECUTED
rtems_fdisk_segment_queue_push_tail (rtems_fdisk_segment_ctl_queue* queue,
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = 0;                                                     
ffc06d14:	91 1f 00 00 	stw     r8,0(r31)                              <== NOT EXECUTED
                                                                      
    if (queue->head)                                                  
ffc06d18:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc06d1c:	41 9e 00 70 	beq-    cr7,ffc06d8c <rtems_fdisk_queue_segment+0x308><== NOT EXECUTED
    {                                                                 
      queue->tail->next = sc;                                         
ffc06d20:	81 3e 00 50 	lwz     r9,80(r30)                             <== NOT EXECUTED
ffc06d24:	93 e9 00 00 	stw     r31,0(r9)                              <== NOT EXECUTED
      queue->tail       = sc;                                         
ffc06d28:	93 fe 00 50 	stw     r31,80(r30)                            <== NOT EXECUTED
    else                                                              
    {                                                                 
      queue->head = queue->tail = sc;                                 
    }                                                                 
                                                                      
    queue->count++;                                                   
ffc06d2c:	81 3e 00 54 	lwz     r9,84(r30)                             <== NOT EXECUTED
ffc06d30:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
ffc06d34:	91 3e 00 54 	stw     r9,84(r30)                             <== NOT EXECUTED
ffc06d38:	4b ff fe 20 	b       ffc06b58 <rtems_fdisk_queue_segment+0xd4><== NOT EXECUTED
rtems_fdisk_segment_queue_push_tail (rtems_fdisk_segment_ctl_queue* queue,
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = 0;                                                     
ffc06d3c:	91 3f 00 00 	stw     r9,0(r31)                              <== NOT EXECUTED
      queue->tail->next = sc;                                         
      queue->tail       = sc;                                         
    }                                                                 
    else                                                              
    {                                                                 
      queue->head = queue->tail = sc;                                 
ffc06d40:	93 fe 00 5c 	stw     r31,92(r30)                            <== NOT EXECUTED
ffc06d44:	93 fe 00 58 	stw     r31,88(r30)                            <== NOT EXECUTED
ffc06d48:	4b ff fe 04 	b       ffc06b4c <rtems_fdisk_queue_segment+0xc8><== NOT EXECUTED
          break;                                                      
        seg = seg->next;                                              
      }                                                               
                                                                      
      if (seg)                                                        
        rtems_fdisk_segment_queue_insert_before (&fd->used, seg, sc); 
ffc06d4c:	7f 83 e3 78 	mr      r3,r28                                 
ffc06d50:	4b ff fe e4 	b       ffc06c34 <rtems_fdisk_queue_segment+0x1b0>
rtems_fdisk_segment_queue_push_tail (rtems_fdisk_segment_ctl_queue* queue,
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = 0;                                                     
ffc06d54:	90 9f 00 00 	stw     r4,0(r31)                              
      queue->tail->next = sc;                                         
      queue->tail       = sc;                                         
    }                                                                 
    else                                                              
    {                                                                 
      queue->head = queue->tail = sc;                                 
ffc06d58:	93 fe 00 38 	stw     r31,56(r30)                            
ffc06d5c:	93 fe 00 34 	stw     r31,52(r30)                            
ffc06d60:	4b ff ff 38 	b       ffc06c98 <rtems_fdisk_queue_segment+0x214>
    if (seg)                                                          
      rtems_fdisk_segment_queue_insert_before (&fd->available, seg, sc);
    else                                                              
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
  }                                                                   
}                                                                     
ffc06d64:	80 01 00 24 	lwz     r0,36(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);                           
ffc06d68:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
    if (seg)                                                          
      rtems_fdisk_segment_queue_insert_before (&fd->available, seg, sc);
    else                                                              
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
  }                                                                   
}                                                                     
ffc06d6c:	83 81 00 10 	lwz     r28,16(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);                           
ffc06d70:	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);       
  }                                                                   
}                                                                     
ffc06d74:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc06d78:	83 a1 00 14 	lwz     r29,20(r1)                             <== NOT EXECUTED
ffc06d7c:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc06d80:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc06d84:	38 21 00 20 	addi    r1,r1,32                               <== 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);                           
ffc06d88:	4b ff fa a8 	b       ffc06830 <rtems_fdisk_erase_segment>   <== NOT EXECUTED
      queue->tail->next = sc;                                         
      queue->tail       = sc;                                         
    }                                                                 
    else                                                              
    {                                                                 
      queue->head = queue->tail = sc;                                 
ffc06d8c:	93 fe 00 50 	stw     r31,80(r30)                            <== NOT EXECUTED
ffc06d90:	93 fe 00 4c 	stw     r31,76(r30)                            <== NOT EXECUTED
ffc06d94:	4b ff ff 98 	b       ffc06d2c <rtems_fdisk_queue_segment+0x2a8><== NOT EXECUTED
rtems_fdisk_segment_queue_push_tail (rtems_fdisk_segment_ctl_queue* queue,
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = 0;                                                     
ffc06d98:	90 9f 00 00 	stw     r4,0(r31)                              
      queue->tail->next = sc;                                         
      queue->tail       = sc;                                         
    }                                                                 
    else                                                              
    {                                                                 
      queue->head = queue->tail = sc;                                 
ffc06d9c:	93 fe 00 44 	stw     r31,68(r30)                            
ffc06da0:	93 fe 00 40 	stw     r31,64(r30)                            
ffc06da4:	4b ff ff 50 	b       ffc06cf4 <rtems_fdisk_queue_segment+0x270>
                                                                      

ffc0626c <rtems_fdisk_queue_status>: } rtems_flashdisk_count = rtems_flashdisk_configuration_size; return RTEMS_SUCCESSFUL; }
ffc0626c:	81 23 00 34 	lwz     r9,52(r3)                              
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)                                                          
ffc06270:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06274:	41 9e 00 24 	beq-    cr7,ffc06298 <rtems_fdisk_queue_status+0x2c><== NEVER TAKEN
  {                                                                   
    if (it == sc)                                                     
ffc06278:	7f 89 20 00 	cmpw    cr7,r9,r4                              
ffc0627c:	40 be 00 0c 	bne+    cr7,ffc06288 <rtems_fdisk_queue_status+0x1c>
ffc06280:	48 00 00 c8 	b       ffc06348 <rtems_fdisk_queue_status+0xdc>
ffc06284:	41 9a 00 c4 	beq-    cr6,ffc06348 <rtems_fdisk_queue_status+0xdc><== NOT EXECUTED
      return true;                                                    
    it = it->next;                                                    
ffc06288:	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)                                                          
ffc0628c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
  {                                                                   
    if (it == sc)                                                     
ffc06290:	7f 04 48 00 	cmpw    cr6,r4,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)                                                          
ffc06294:	40 9e ff f0 	bne+    cr7,ffc06284 <rtems_fdisk_queue_status+0x18><== NEVER TAKEN
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' : '-';
ffc06298:	39 20 00 2d 	li      r9,45                                  
ffc0629c:	99 25 00 00 	stb     r9,0(r5)                               
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc062a0:	81 23 00 40 	lwz     r9,64(r3)                              
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)                                                          
ffc062a4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc062a8:	41 9e 00 24 	beq-    cr7,ffc062cc <rtems_fdisk_queue_status+0x60><== NEVER TAKEN
  {                                                                   
    if (it == sc)                                                     
ffc062ac:	7f 84 48 00 	cmpw    cr7,r4,r9                              
ffc062b0:	40 be 00 0c 	bne+    cr7,ffc062bc <rtems_fdisk_queue_status+0x50>
ffc062b4:	48 00 00 b8 	b       ffc0636c <rtems_fdisk_queue_status+0x100>
ffc062b8:	41 9a 00 b4 	beq-    cr6,ffc0636c <rtems_fdisk_queue_status+0x100>
      return true;                                                    
    it = it->next;                                                    
ffc062bc:	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)                                                          
ffc062c0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
  {                                                                   
    if (it == sc)                                                     
ffc062c4:	7f 04 48 00 	cmpw    cr6,r4,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)                                                          
ffc062c8:	40 9e ff f0 	bne+    cr7,ffc062b8 <rtems_fdisk_queue_status+0x4c>
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' : '-';
ffc062cc:	39 20 00 2d 	li      r9,45                                  
ffc062d0:	99 25 00 01 	stb     r9,1(r5)                               
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc062d4:	81 23 00 4c 	lwz     r9,76(r3)                              
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)                                                          
ffc062d8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc062dc:	41 9e 00 24 	beq-    cr7,ffc06300 <rtems_fdisk_queue_status+0x94><== ALWAYS TAKEN
  {                                                                   
    if (it == sc)                                                     
ffc062e0:	7f 84 48 00 	cmpw    cr7,r4,r9                              <== NOT EXECUTED
ffc062e4:	40 be 00 0c 	bne+    cr7,ffc062f0 <rtems_fdisk_queue_status+0x84><== NOT EXECUTED
ffc062e8:	48 00 00 7c 	b       ffc06364 <rtems_fdisk_queue_status+0xf8><== NOT EXECUTED
ffc062ec:	41 9a 00 78 	beq-    cr6,ffc06364 <rtems_fdisk_queue_status+0xf8><== NOT EXECUTED
      return true;                                                    
    it = it->next;                                                    
ffc062f0:	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)                                                          
ffc062f4:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
  {                                                                   
    if (it == sc)                                                     
ffc062f8:	7f 04 48 00 	cmpw    cr6,r4,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)                                                          
ffc062fc:	40 9e ff f0 	bne+    cr7,ffc062ec <rtems_fdisk_queue_status+0x80><== NOT EXECUTED
                          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' : '-';
ffc06300:	39 20 00 2d 	li      r9,45                                  
ffc06304:	99 25 00 02 	stb     r9,2(r5)                               
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc06308:	81 23 00 58 	lwz     r9,88(r3)                              
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)                                                          
ffc0630c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06310:	41 9e 00 24 	beq-    cr7,ffc06334 <rtems_fdisk_queue_status+0xc8><== ALWAYS TAKEN
  {                                                                   
    if (it == sc)                                                     
ffc06314:	7f 84 48 00 	cmpw    cr7,r4,r9                              <== NOT EXECUTED
ffc06318:	40 be 00 0c 	bne+    cr7,ffc06324 <rtems_fdisk_queue_status+0xb8><== NOT EXECUTED
ffc0631c:	48 00 00 34 	b       ffc06350 <rtems_fdisk_queue_status+0xe4><== NOT EXECUTED
ffc06320:	41 9a 00 30 	beq-    cr6,ffc06350 <rtems_fdisk_queue_status+0xe4><== NOT EXECUTED
      return true;                                                    
    it = it->next;                                                    
ffc06324:	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)                                                          
ffc06328:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
  {                                                                   
    if (it == sc)                                                     
ffc0632c:	7f 04 48 00 	cmpw    cr6,r4,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)                                                          
ffc06330:	40 9e ff f0 	bne+    cr7,ffc06320 <rtems_fdisk_queue_status+0xb4><== NOT EXECUTED
                          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' : '-';
ffc06334:	39 20 00 2d 	li      r9,45                                  
ffc06338:	99 25 00 03 	stb     r9,3(r5)                               
  queues[4] = '\0';                                                   
ffc0633c:	39 20 00 00 	li      r9,0                                   
ffc06340:	99 25 00 04 	stb     r9,4(r5)                               
ffc06344:	4e 80 00 20 	blr                                            
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' : '-';
ffc06348:	39 20 00 41 	li      r9,65                                  
ffc0634c:	4b ff ff 50 	b       ffc0629c <rtems_fdisk_queue_status+0x30>
  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' : '-';
ffc06350:	39 20 00 46 	li      r9,70                                  <== NOT EXECUTED
ffc06354:	99 25 00 03 	stb     r9,3(r5)                               <== NOT EXECUTED
  queues[4] = '\0';                                                   
ffc06358:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc0635c:	99 25 00 04 	stb     r9,4(r5)                               <== NOT EXECUTED
ffc06360:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                          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' : '-';
ffc06364:	39 20 00 45 	li      r9,69                                  <== NOT EXECUTED
ffc06368:	4b ff ff 9c 	b       ffc06304 <rtems_fdisk_queue_status+0x98><== NOT EXECUTED
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' : '-';
ffc0636c:	39 20 00 55 	li      r9,85                                  
ffc06370:	4b ff ff 60 	b       ffc062d0 <rtems_fdisk_queue_status+0x64>
                                                                      

ffc079b4 <rtems_fdisk_recover_block_mappings>: /** * Recover the block mappings from the devices. */ static int rtems_fdisk_recover_block_mappings (rtems_flashdisk* fd) {
ffc079b4:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc079b8:	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));
ffc079bc:	38 80 00 00 	li      r4,0                                   
/**                                                                   
 * Recover the block mappings from the devices.                       
 */                                                                   
static int                                                            
rtems_fdisk_recover_block_mappings (rtems_flashdisk* fd)              
{                                                                     
ffc079c0:	90 01 00 4c 	stw     r0,76(r1)                              
ffc079c4:	93 e1 00 44 	stw     r31,68(r1)                             
 * Initialise the segment control queue.                              
 */                                                                   
static void                                                           
rtems_fdisk_segment_queue_init (rtems_fdisk_segment_ctl_queue* queue) 
{                                                                     
  queue->head = queue->tail = 0;                                      
ffc079c8:	3b e0 00 00 	li      r31,0                                  
  rtems_fdisk_segment_queue_init (&fd->failed);                       
                                                                      
  /*                                                                  
   * Clear the lock mappings.                                         
   */                                                                 
  memset (fd->blocks, 0, fd->block_count * sizeof (rtems_fdisk_block_ctl));
ffc079cc:	80 a3 00 1c 	lwz     r5,28(r3)                              
/**                                                                   
 * Recover the block mappings from the devices.                       
 */                                                                   
static int                                                            
rtems_fdisk_recover_block_mappings (rtems_flashdisk* fd)              
{                                                                     
ffc079d0:	92 41 00 10 	stw     r18,16(r1)                             
ffc079d4:	7c 72 1b 78 	mr      r18,r3                                 
  rtems_fdisk_segment_queue_init (&fd->failed);                       
                                                                      
  /*                                                                  
   * Clear the lock mappings.                                         
   */                                                                 
  memset (fd->blocks, 0, fd->block_count * sizeof (rtems_fdisk_block_ctl));
ffc079d8:	54 a5 18 38 	rlwinm  r5,r5,3,0,28                           
/**                                                                   
 * Recover the block mappings from the devices.                       
 */                                                                   
static int                                                            
rtems_fdisk_recover_block_mappings (rtems_flashdisk* fd)              
{                                                                     
ffc079dc:	92 61 00 14 	stw     r19,20(r1)                             
ffc079e0:	92 81 00 18 	stw     r20,24(r1)                             
ffc079e4:	92 a1 00 1c 	stw     r21,28(r1)                             
ffc079e8:	92 c1 00 20 	stw     r22,32(r1)                             
ffc079ec:	92 e1 00 24 	stw     r23,36(r1)                             
ffc079f0:	93 01 00 28 	stw     r24,40(r1)                             
ffc079f4:	93 21 00 2c 	stw     r25,44(r1)                             
ffc079f8:	93 41 00 30 	stw     r26,48(r1)                             
ffc079fc:	93 61 00 34 	stw     r27,52(r1)                             
ffc07a00:	93 81 00 38 	stw     r28,56(r1)                             
ffc07a04:	93 a1 00 3c 	stw     r29,60(r1)                             
ffc07a08:	93 c1 00 40 	stw     r30,64(r1)                             
 * Initialise the segment control queue.                              
 */                                                                   
static void                                                           
rtems_fdisk_segment_queue_init (rtems_fdisk_segment_ctl_queue* queue) 
{                                                                     
  queue->head = queue->tail = 0;                                      
ffc07a0c:	93 e3 00 38 	stw     r31,56(r3)                             
ffc07a10:	93 e3 00 34 	stw     r31,52(r3)                             
  queue->count = 0;                                                   
ffc07a14:	93 e3 00 3c 	stw     r31,60(r3)                             
 * Initialise the segment control queue.                              
 */                                                                   
static void                                                           
rtems_fdisk_segment_queue_init (rtems_fdisk_segment_ctl_queue* queue) 
{                                                                     
  queue->head = queue->tail = 0;                                      
ffc07a18:	93 e3 00 44 	stw     r31,68(r3)                             
ffc07a1c:	93 e3 00 40 	stw     r31,64(r3)                             
  queue->count = 0;                                                   
ffc07a20:	93 e3 00 48 	stw     r31,72(r3)                             
 * Initialise the segment control queue.                              
 */                                                                   
static void                                                           
rtems_fdisk_segment_queue_init (rtems_fdisk_segment_ctl_queue* queue) 
{                                                                     
  queue->head = queue->tail = 0;                                      
ffc07a24:	93 e3 00 50 	stw     r31,80(r3)                             
ffc07a28:	93 e3 00 4c 	stw     r31,76(r3)                             
  queue->count = 0;                                                   
ffc07a2c:	93 e3 00 54 	stw     r31,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;                                      
ffc07a30:	93 e3 00 5c 	stw     r31,92(r3)                             
ffc07a34:	93 e3 00 58 	stw     r31,88(r3)                             
  queue->count = 0;                                                   
ffc07a38:	93 e3 00 60 	stw     r31,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));
ffc07a3c:	80 63 00 18 	lwz     r3,24(r3)                              
ffc07a40:	48 02 2d fd 	bl      ffc2a83c <memset>                      
  /*                                                                  
   * Scan each segment or each device recovering the valid pages.     
   */                                                                 
  fd->erased_blocks = 0;                                              
  fd->starvation_threshold = 0;                                       
  for (device = 0; device < fd->device_count; device++)               
ffc07a44:	80 f2 00 30 	lwz     r7,48(r18)                             
  memset (fd->blocks, 0, fd->block_count * sizeof (rtems_fdisk_block_ctl));
                                                                      
  /*                                                                  
   * Scan each segment or each device recovering the valid pages.     
   */                                                                 
  fd->erased_blocks = 0;                                              
ffc07a48:	93 f2 00 28 	stw     r31,40(r18)                            
  fd->starvation_threshold = 0;                                       
  for (device = 0; device < fd->device_count; device++)               
ffc07a4c:	2f 87 00 00 	cmpwi   cr7,r7,0                               
                                                                      
  /*                                                                  
   * Scan each segment or each device recovering the valid pages.     
   */                                                                 
  fd->erased_blocks = 0;                                              
  fd->starvation_threshold = 0;                                       
ffc07a50:	93 f2 00 24 	stw     r31,36(r18)                            
  for (device = 0; device < fd->device_count; device++)               
ffc07a54:	41 9e 01 ec 	beq-    cr7,ffc07c40 <rtems_fdisk_recover_block_mappings+0x28c><== NEVER TAKEN
ffc07a58:	3e e0 ff c4 	lis     r23,-60                                
ffc07a5c:	81 52 00 2c 	lwz     r10,44(r18)                            
            ++fd->erased_blocks;                                      
          }                                                           
          else                                                        
          {                                                           
#if RTEMS_FDISK_TRACE                                                 
            rtems_fdisk_warning (fd, "page not blank: %d-%d-%d",      
ffc07a60:	3e a0 ff c4 	lis     r21,-60                                
            ret = rtems_fdisk_seg_write_page_desc (fd, sc,            
                                                   page, pd);         
                                                                      
            if (ret)                                                  
            {                                                         
              rtems_fdisk_error ("forcing page to used failed: %d-%d-%d",
ffc07a64:	3e 60 ff c4 	lis     r19,-60                                
               * 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: " \      
ffc07a68:	3e c0 ff c4 	lis     r22,-60                                
          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,                                
ffc07a6c:	3e 80 ff c4 	lis     r20,-60                                
  /*                                                                  
   * 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++)               
ffc07a70:	3b 00 00 00 	li      r24,0                                  
ffc07a74:	3b 40 00 00 	li      r26,0                                  
  {                                                                   
    uint32_t segment;                                                 
    for (segment = 0; segment < fd->devices[device].segment_count; segment++)
ffc07a78:	3b 60 00 00 	li      r27,0                                  
ffc07a7c:	3a f7 ad 4c 	addi    r23,r23,-21172                         
            ++fd->erased_blocks;                                      
          }                                                           
          else                                                        
          {                                                           
#if RTEMS_FDISK_TRACE                                                 
            rtems_fdisk_warning (fd, "page not blank: %d-%d-%d",      
ffc07a80:	3a b5 ad b4 	addi    r21,r21,-21068                         
            ret = rtems_fdisk_seg_write_page_desc (fd, sc,            
                                                   page, pd);         
                                                                      
            if (ret)                                                  
            {                                                         
              rtems_fdisk_error ("forcing page to used failed: %d-%d-%d",
ffc07a84:	3a 73 ad d0 	addi    r19,r19,-21040                         
               * 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: " \      
ffc07a88:	3a d6 ae 24 	addi    r22,r22,-20956                         
          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,                                
ffc07a8c:	3a 94 ad f8 	addi    r20,r20,-21000                         
  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++)
ffc07a90:	7d 2a c2 14 	add     r9,r10,r24                             
ffc07a94:	81 09 00 04 	lwz     r8,4(r9)                               
ffc07a98:	3b 20 00 00 	li      r25,0                                  
ffc07a9c:	3b 80 00 00 	li      r28,0                                  
ffc07aa0:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc07aa4:	41 9e 01 8c 	beq-    cr7,ffc07c30 <rtems_fdisk_recover_block_mappings+0x27c><== NEVER TAKEN
    {                                                                 
      rtems_fdisk_segment_ctl*        sc = &fd->devices[device].segments[segment];
ffc07aa8:	83 c9 00 00 	lwz     r30,0(r9)                              
      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);
ffc07aac:	7e 43 93 78 	mr      r3,r18                                 
ffc07ab0:	7e e4 bb 78 	mr      r4,r23                                 
  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];
ffc07ab4:	7f de ca 14 	add     r30,r30,r25                            
      const rtems_fdisk_segment_desc* sd = sc->descriptor;            
ffc07ab8:	83 fe 00 04 	lwz     r31,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);
ffc07abc:	7f 45 d3 78 	mr      r5,r26                                 
ffc07ac0:	7f 86 e3 78 	mr      r6,r28                                 
ffc07ac4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07ac8:	4b ff e8 ad 	bl      ffc06374 <rtems_fdisk_info>            
#endif                                                                
                                                                      
      sc->pages_desc = rtems_fdisk_page_desc_pages (sd, fd->block_size);
ffc07acc:	81 32 00 14 	lwz     r9,20(r18)                             
 */                                                                   
static uint32_t                                                       
rtems_fdisk_pages_in_segment (const rtems_fdisk_segment_desc* sd,     
                              uint32_t                        page_size)
{                                                                     
  return sd->size / page_size;                                        
ffc07ad0:	81 5f 00 08 	lwz     r10,8(r31)                             
#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)                       
ffc07ad4:	80 f2 00 24 	lwz     r7,36(r18)                             
 */                                                                   
static uint32_t                                                       
rtems_fdisk_pages_in_segment (const rtems_fdisk_segment_desc* sd,     
                              uint32_t                        page_size)
{                                                                     
  return sd->size / page_size;                                        
ffc07ad8:	7d 4a 4b 96 	divwu   r10,r10,r9                             
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);            
ffc07adc:	55 48 18 38 	rlwinm  r8,r10,3,0,28                          
  return ((bytes - 1) / page_size) + 1;                               
ffc07ae0:	39 08 ff ff 	addi    r8,r8,-1                               
ffc07ae4:	7d 08 4b 96 	divwu   r8,r8,r9                               
ffc07ae8:	39 08 00 01 	addi    r8,r8,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;
ffc07aec:	7d 48 50 50 	subf    r10,r8,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);
ffc07af0:	91 1e 00 18 	stw     r8,24(r30)                             
      sc->pages =                                                     
        rtems_fdisk_pages_in_segment (sd, fd->block_size) - sc->pages_desc;
      if (sc->pages > fd->starvation_threshold)                       
ffc07af4:	7f 8a 38 40 	cmplw   cr7,r10,r7                             
#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 =                                                     
ffc07af8:	91 5e 00 14 	stw     r10,20(r30)                            
        rtems_fdisk_pages_in_segment (sd, fd->block_size) - sc->pages_desc;
      if (sc->pages > fd->starvation_threshold)                       
ffc07afc:	40 9d 00 08 	ble-    cr7,ffc07b04 <rtems_fdisk_recover_block_mappings+0x150>
        fd->starvation_threshold = sc->pages;                         
ffc07b00:	91 52 00 24 	stw     r10,36(r18)                            
      sc->pages_used   = 0;                                           
      sc->pages_bad    = 0;                                           
                                                                      
      sc->failed = false;                                             
                                                                      
      if (!sc->page_descriptors)                                      
ffc07b04:	83 fe 00 10 	lwz     r31,16(r30)                            
        sc->page_descriptors = malloc (sc->pages_desc * fd->block_size);
ffc07b08:	7d 08 49 d6 	mullw   r8,r8,r9                               
      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;                                           
ffc07b0c:	93 7e 00 1c 	stw     r27,28(r30)                            
      sc->pages_used   = 0;                                           
      sc->pages_bad    = 0;                                           
                                                                      
      sc->failed = false;                                             
                                                                      
      if (!sc->page_descriptors)                                      
ffc07b10:	2f 9f 00 00 	cmpwi   cr7,r31,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;                                           
ffc07b14:	93 7e 00 20 	stw     r27,32(r30)                            
      sc->pages_bad    = 0;                                           
ffc07b18:	93 7e 00 24 	stw     r27,36(r30)                            
                                                                      
      sc->failed = false;                                             
ffc07b1c:	93 7e 00 28 	stw     r27,40(r30)                            
                                                                      
      if (!sc->page_descriptors)                                      
ffc07b20:	41 9e 02 40 	beq-    cr7,ffc07d60 <rtems_fdisk_recover_block_mappings+0x3ac><== ALWAYS TAKEN
       * 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,              
ffc07b24:	80 9e 00 08 	lwz     r4,8(r30)                              
ffc07b28:	7e 43 93 78 	mr      r3,r18                                 
ffc07b2c:	80 be 00 0c 	lwz     r5,12(r30)                             
ffc07b30:	38 c0 00 00 	li      r6,0                                   
ffc07b34:	7f e7 fb 78 	mr      r7,r31                                 
ffc07b38:	4b ff f2 d9 	bl      ffc06e10 <rtems_fdisk_seg_read.isra.14>
                                  sc->pages_desc * fd->block_size);   
                                                                      
      if (ret)                                                        
ffc07b3c:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc07b40:	40 82 02 50 	bne-    ffc07d90 <rtems_fdisk_recover_block_mappings+0x3dc><== NEVER TAKEN
       * 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++)                  
ffc07b44:	80 fe 00 14 	lwz     r7,20(r30)                             
ffc07b48:	3b a0 00 00 	li      r29,0                                  
ffc07b4c:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc07b50:	40 be 00 24 	bne+    cr7,ffc07b74 <rtems_fdisk_recover_block_mappings+0x1c0><== ALWAYS TAKEN
ffc07b54:	48 00 00 b0 	b       ffc07c04 <rtems_fdisk_recover_block_mappings+0x250><== NOT EXECUTED
        }                                                             
        else                                                          
        {                                                             
          if (rtems_fdisk_page_desc_flags_set (pd, RTEMS_FDISK_PAGE_USED))
          {                                                           
            sc->pages_used++;                                         
ffc07b58:	81 3e 00 20 	lwz     r9,32(r30)                             <== NOT EXECUTED
ffc07b5c:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
ffc07b60:	91 3e 00 20 	stw     r9,32(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++)                  
ffc07b64:	3b bd 00 01 	addi    r29,r29,1                              
ffc07b68:	7f 87 e8 40 	cmplw   cr7,r7,r29                             
ffc07b6c:	3b ff 00 08 	addi    r31,r31,8                              
ffc07b70:	40 9d 00 94 	ble-    cr7,ffc07c04 <rtems_fdisk_recover_block_mappings+0x250>
static bool                                                           
rtems_fdisk_page_desc_erased (const rtems_fdisk_page_desc* pd)        
{                                                                     
  return ((pd->crc == 0xffff) &&                                      
          (pd->flags == 0xffff) &&                                    
          (pd->block == 0xffffffff)) ? true : false;                  
ffc07b74:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc07b78:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc07b7c:	41 9e 00 cc 	beq-    cr7,ffc07c48 <rtems_fdisk_recover_block_mappings+0x294><== ALWAYS TAKEN
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc07b80:	a1 3f 00 02 	lhz     r9,2(r31)                              <== NOT EXECUTED
            sc->pages_used++;                                         
          }                                                           
        }                                                             
        else                                                          
        {                                                             
          if (rtems_fdisk_page_desc_flags_set (pd, RTEMS_FDISK_PAGE_USED))
ffc07b84:	55 2a 07 bc 	rlwinm  r10,r9,0,30,30                         <== NOT EXECUTED
ffc07b88:	71 48 ff ff 	andi.   r8,r10,65535                           <== NOT EXECUTED
ffc07b8c:	41 a2 ff cc 	beq-    ffc07b58 <rtems_fdisk_recover_block_mappings+0x1a4><== NOT EXECUTED
          {                                                           
            sc->pages_used++;                                         
          }                                                           
          else if (rtems_fdisk_page_desc_flags_set (pd, RTEMS_FDISK_PAGE_ACTIVE))
ffc07b90:	71 28 00 01 	andi.   r8,r9,1                                <== NOT EXECUTED
ffc07b94:	40 82 00 fc 	bne-    ffc07c90 <rtems_fdisk_recover_block_mappings+0x2dc><== NOT EXECUTED
          {                                                           
            if (pd->block >= fd->block_count)                         
ffc07b98:	81 1f 00 04 	lwz     r8,4(r31)                              <== NOT EXECUTED
ffc07b9c:	81 32 00 1c 	lwz     r9,28(r18)                             <== NOT EXECUTED
ffc07ba0:	7f 88 48 40 	cmplw   cr7,r8,r9                              <== NOT EXECUTED
ffc07ba4:	40 9c 01 58 	bge-    cr7,ffc07cfc <rtems_fdisk_recover_block_mappings+0x348><== 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)                   
ffc07ba8:	81 52 00 18 	lwz     r10,24(r18)                            <== NOT EXECUTED
ffc07bac:	55 08 18 38 	rlwinm  r8,r8,3,0,28                           <== NOT EXECUTED
ffc07bb0:	7d 2a 40 2e 	lwzx    r9,r10,r8                              <== NOT EXECUTED
ffc07bb4:	7c ca 42 14 	add     r6,r10,r8                              <== NOT EXECUTED
ffc07bb8:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc07bbc:	41 9e 01 70 	beq-    cr7,ffc07d2c <rtems_fdisk_recover_block_mappings+0x378><== 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: " \      
ffc07bc0:	80 89 00 08 	lwz     r4,8(r9)                               <== NOT EXECUTED
ffc07bc4:	7f 47 d3 78 	mr      r7,r26                                 <== NOT EXECUTED
ffc07bc8:	80 a9 00 0c 	lwz     r5,12(r9)                              <== NOT EXECUTED
ffc07bcc:	7e c3 b3 78 	mr      r3,r22                                 <== NOT EXECUTED
ffc07bd0:	80 c6 00 04 	lwz     r6,4(r6)                               <== NOT EXECUTED
ffc07bd4:	7f a9 eb 78 	mr      r9,r29                                 <== NOT EXECUTED
ffc07bd8:	7f 88 e3 78 	mr      r8,r28                                 <== NOT EXECUTED
ffc07bdc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07be0:	4b ff eb 69 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
ffc07be4:	80 fe 00 14 	lwz     r7,20(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++)                  
ffc07be8:	3b bd 00 01 	addi    r29,r29,1                              <== NOT EXECUTED
              rtems_fdisk_error ("duplicate block: %d-%d-%d: " \      
                                 "duplicate: %d-%d-%d",               
                                 bsc->device, bsc->segment,           
                                 fd->blocks[pd->block].page,          
                                 device, segment, page);              
              sc->pages_bad++;                                        
ffc07bec:	81 3e 00 24 	lwz     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++)                  
ffc07bf0:	7f 87 e8 40 	cmplw   cr7,r7,r29                             <== NOT EXECUTED
              rtems_fdisk_error ("duplicate block: %d-%d-%d: " \      
                                 "duplicate: %d-%d-%d",               
                                 bsc->device, bsc->segment,           
                                 fd->blocks[pd->block].page,          
                                 device, segment, page);              
              sc->pages_bad++;                                        
ffc07bf4:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
ffc07bf8:	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++)                  
ffc07bfc:	3b ff 00 08 	addi    r31,r31,8                              <== NOT EXECUTED
ffc07c00:	41 9d ff 74 	bgt+    cr7,ffc07b74 <rtems_fdisk_recover_block_mappings+0x1c0><== NOT EXECUTED
      }                                                               
                                                                      
      /*                                                              
       * Place the segment on to the correct queue.                   
       */                                                             
      rtems_fdisk_queue_segment (fd, sc);                             
ffc07c04:	7e 43 93 78 	mr      r3,r18                                 
ffc07c08:	7f c4 f3 78 	mr      r4,r30                                 
ffc07c0c:	4b ff ee 79 	bl      ffc06a84 <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++)
ffc07c10:	81 52 00 2c 	lwz     r10,44(r18)                            
ffc07c14:	3b 9c 00 01 	addi    r28,r28,1                              
ffc07c18:	7d 2a c2 14 	add     r9,r10,r24                             
ffc07c1c:	81 09 00 04 	lwz     r8,4(r9)                               
ffc07c20:	3b 39 00 30 	addi    r25,r25,48                             
ffc07c24:	7f 88 e0 40 	cmplw   cr7,r8,r28                             
ffc07c28:	41 9d fe 80 	bgt+    cr7,ffc07aa8 <rtems_fdisk_recover_block_mappings+0xf4>
ffc07c2c:	80 f2 00 30 	lwz     r7,48(r18)                             
  /*                                                                  
   * 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++)               
ffc07c30:	3b 5a 00 01 	addi    r26,r26,1                              
ffc07c34:	7f 87 d0 40 	cmplw   cr7,r7,r26                             
ffc07c38:	3b 18 00 0c 	addi    r24,r24,12                             
ffc07c3c:	41 9d fe 54 	bgt+    cr7,ffc07a90 <rtems_fdisk_recover_block_mappings+0xdc><== NEVER TAKEN
       */                                                             
      rtems_fdisk_queue_segment (fd, sc);                             
    }                                                                 
  }                                                                   
                                                                      
  return 0;                                                           
ffc07c40:	3b a0 00 00 	li      r29,0                                  
ffc07c44:	48 00 01 70 	b       ffc07db4 <rtems_fdisk_recover_block_mappings+0x400>
static bool                                                           
rtems_fdisk_page_desc_erased (const rtems_fdisk_page_desc* pd)        
{                                                                     
  return ((pd->crc == 0xffff) &&                                      
          (pd->flags == 0xffff) &&                                    
          (pd->block == 0xffffffff)) ? true : false;                  
ffc07c48:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc07c4c:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc07c50:	40 9e ff 30 	bne+    cr7,ffc07b80 <rtems_fdisk_recover_block_mappings+0x1cc><== NEVER TAKEN
        if (rtems_fdisk_page_desc_erased (pd))                        
        {                                                             
          /*                                                          
           * Is the page erased ?                                     
           */                                                         
          ret = rtems_fdisk_seg_blank_check_page (fd, sc,             
ffc07c54:	81 3e 00 18 	lwz     r9,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,                         
ffc07c58:	7e 43 93 78 	mr      r3,r18                                 
                                      page * fd->block_size, fd->block_size);
ffc07c5c:	80 f2 00 14 	lwz     r7,20(r18)                             
        if (rtems_fdisk_page_desc_erased (pd))                        
        {                                                             
          /*                                                          
           * Is the page erased ?                                     
           */                                                         
          ret = rtems_fdisk_seg_blank_check_page (fd, sc,             
ffc07c60:	7c dd 4a 14 	add     r6,r29,r9                              
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,                         
ffc07c64:	80 9e 00 08 	lwz     r4,8(r30)                              
ffc07c68:	7c c6 39 d6 	mullw   r6,r6,r7                               
ffc07c6c:	80 be 00 0c 	lwz     r5,12(r30)                             
ffc07c70:	4b ff f2 69 	bl      ffc06ed8 <rtems_fdisk_seg_blank_check.isra.15>
           * Is the page erased ?                                     
           */                                                         
          ret = rtems_fdisk_seg_blank_check_page (fd, sc,             
                                                  page + sc->pages_desc);
                                                                      
          if (ret == 0)                                               
ffc07c74:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07c78:	40 9e 00 28 	bne-    cr7,ffc07ca0 <rtems_fdisk_recover_block_mappings+0x2ec><== NEVER TAKEN
          {                                                           
            ++fd->erased_blocks;                                      
ffc07c7c:	81 32 00 28 	lwz     r9,40(r18)                             
ffc07c80:	80 fe 00 14 	lwz     r7,20(r30)                             
ffc07c84:	39 29 00 01 	addi    r9,r9,1                                
ffc07c88:	91 32 00 28 	stw     r9,40(r18)                             
ffc07c8c:	4b ff fe d8 	b       ffc07b64 <rtems_fdisk_recover_block_mappings+0x1b0>
               */                                                     
              sc->pages_active++;                                     
            }                                                         
          }                                                           
          else                                                        
            sc->pages_bad++;                                          
ffc07c90:	81 3e 00 24 	lwz     r9,36(r30)                             <== NOT EXECUTED
ffc07c94:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
ffc07c98:	91 3e 00 24 	stw     r9,36(r30)                             <== NOT EXECUTED
ffc07c9c:	4b ff fe c8 	b       ffc07b64 <rtems_fdisk_recover_block_mappings+0x1b0><== NOT EXECUTED
            ++fd->erased_blocks;                                      
          }                                                           
          else                                                        
          {                                                           
#if RTEMS_FDISK_TRACE                                                 
            rtems_fdisk_warning (fd, "page not blank: %d-%d-%d",      
ffc07ca0:	81 1f 00 04 	lwz     r8,4(r31)                              <== NOT EXECUTED
ffc07ca4:	7e a4 ab 78 	mr      r4,r21                                 <== NOT EXECUTED
ffc07ca8:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc07cac:	7f 86 e3 78 	mr      r6,r28                                 <== NOT EXECUTED
ffc07cb0:	7f a7 eb 78 	mr      r7,r29                                 <== NOT EXECUTED
ffc07cb4:	7e 43 93 78 	mr      r3,r18                                 <== NOT EXECUTED
ffc07cb8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07cbc:	4b ff e9 95 	bl      ffc06650 <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;                                                
ffc07cc0:	a1 3f 00 02 	lhz     r9,2(r31)                              <== 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,            
ffc07cc4:	7e 43 93 78 	mr      r3,r18                                 <== 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;                                                
ffc07cc8:	55 29 07 fa 	rlwinm  r9,r9,0,31,29                          <== NOT EXECUTED
ffc07ccc:	b1 3f 00 02 	sth     r9,2(r31)                              <== 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,            
ffc07cd0:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc07cd4:	7f a5 eb 78 	mr      r5,r29                                 <== NOT EXECUTED
ffc07cd8:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
ffc07cdc:	4b ff f3 6d 	bl      ffc07048 <rtems_fdisk_seg_write_page_desc><== NOT EXECUTED
                                                   page, pd);         
                                                                      
            if (ret)                                                  
ffc07ce0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc07ce4:	40 9e 00 60 	bne-    cr7,ffc07d44 <rtems_fdisk_recover_block_mappings+0x390><== NOT EXECUTED
            {                                                         
              rtems_fdisk_error ("forcing page to used failed: %d-%d-%d",
                                 device, segment, page);              
            }                                                         
                                                                      
            sc->pages_used++;                                         
ffc07ce8:	81 3e 00 20 	lwz     r9,32(r30)                             <== NOT EXECUTED
ffc07cec:	80 fe 00 14 	lwz     r7,20(r30)                             <== NOT EXECUTED
ffc07cf0:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
ffc07cf4:	91 3e 00 20 	stw     r9,32(r30)                             <== NOT EXECUTED
ffc07cf8:	4b ff fe 6c 	b       ffc07b64 <rtems_fdisk_recover_block_mappings+0x1b0><== NOT EXECUTED
          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,                                
ffc07cfc:	7f a7 eb 78 	mr      r7,r29                                 <== NOT EXECUTED
ffc07d00:	7e 43 93 78 	mr      r3,r18                                 <== NOT EXECUTED
ffc07d04:	7e 84 a3 78 	mr      r4,r20                                 <== NOT EXECUTED
ffc07d08:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc07d0c:	7f 86 e3 78 	mr      r6,r28                                 <== NOT EXECUTED
ffc07d10:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07d14:	4b ff e9 3d 	bl      ffc06650 <rtems_fdisk_warning>         <== NOT EXECUTED
                                   "invalid block number: %d-%d-%d: block: %d",
                                   device, segment, page, pd->block); 
#endif                                                                
              sc->pages_bad++;                                        
ffc07d18:	81 3e 00 24 	lwz     r9,36(r30)                             <== NOT EXECUTED
ffc07d1c:	80 fe 00 14 	lwz     r7,20(r30)                             <== NOT EXECUTED
ffc07d20:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
ffc07d24:	91 3e 00 24 	stw     r9,36(r30)                             <== NOT EXECUTED
ffc07d28:	4b ff fe 3c 	b       ffc07b64 <rtems_fdisk_recover_block_mappings+0x1b0><== NOT EXECUTED
              fd->blocks[pd->block].page    = page;                   
                                                                      
              /*                                                      
               * The page is active.                                  
               */                                                     
              sc->pages_active++;                                     
ffc07d2c:	81 3e 00 1c 	lwz     r9,28(r30)                             <== NOT EXECUTED
            {                                                         
              /**                                                     
               * @todo                                                
               * Add start up crc checks here.                        
               */                                                     
              fd->blocks[pd->block].segment = sc;                     
ffc07d30:	7f ca 41 2e 	stwx    r30,r10,r8                             <== NOT EXECUTED
              fd->blocks[pd->block].page    = page;                   
                                                                      
              /*                                                      
               * The page is active.                                  
               */                                                     
              sc->pages_active++;                                     
ffc07d34:	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;                   
ffc07d38:	93 a6 00 04 	stw     r29,4(r6)                              <== NOT EXECUTED
                                                                      
              /*                                                      
               * The page is active.                                  
               */                                                     
              sc->pages_active++;                                     
ffc07d3c:	91 3e 00 1c 	stw     r9,28(r30)                             <== NOT EXECUTED
ffc07d40:	4b ff fe 24 	b       ffc07b64 <rtems_fdisk_recover_block_mappings+0x1b0><== NOT EXECUTED
            ret = rtems_fdisk_seg_write_page_desc (fd, sc,            
                                                   page, pd);         
                                                                      
            if (ret)                                                  
            {                                                         
              rtems_fdisk_error ("forcing page to used failed: %d-%d-%d",
ffc07d44:	7e 63 9b 78 	mr      r3,r19                                 <== NOT EXECUTED
ffc07d48:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc07d4c:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc07d50:	7f a6 eb 78 	mr      r6,r29                                 <== NOT EXECUTED
ffc07d54:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07d58:	4b ff e9 f1 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
ffc07d5c:	4b ff ff 8c 	b       ffc07ce8 <rtems_fdisk_recover_block_mappings+0x334><== NOT EXECUTED
      sc->pages_bad    = 0;                                           
                                                                      
      sc->failed = false;                                             
                                                                      
      if (!sc->page_descriptors)                                      
        sc->page_descriptors = malloc (sc->pages_desc * fd->block_size);
ffc07d60:	7d 03 43 78 	mr      r3,r8                                  
ffc07d64:	91 01 00 08 	stw     r8,8(r1)                               
ffc07d68:	48 00 2d 2d 	bl      ffc0aa94 <malloc>                      
                                                                      
      if (!sc->page_descriptors)                                      
ffc07d6c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
      sc->pages_bad    = 0;                                           
                                                                      
      sc->failed = false;                                             
                                                                      
      if (!sc->page_descriptors)                                      
        sc->page_descriptors = malloc (sc->pages_desc * fd->block_size);
ffc07d70:	90 7e 00 10 	stw     r3,16(r30)                             
ffc07d74:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
      if (!sc->page_descriptors)                                      
ffc07d78:	81 01 00 08 	lwz     r8,8(r1)                               
ffc07d7c:	40 9e fd a8 	bne+    cr7,ffc07b24 <rtems_fdisk_recover_block_mappings+0x170><== ALWAYS TAKEN
        rtems_fdisk_abort ("no memory for page descriptors");         
ffc07d80:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc07d84:	38 63 ad 2c 	addi    r3,r3,-21204                           <== NOT EXECUTED
ffc07d88:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07d8c:	48 00 1a 49 	bl      ffc097d4 <rtems_fdisk_abort.constprop.16><== NOT EXECUTED
      ret = rtems_fdisk_seg_read (fd, sc, 0, (void*) pd,              
                                  sc->pages_desc * fd->block_size);   
                                                                      
      if (ret)                                                        
      {                                                               
        rtems_fdisk_error ("recover-block-mappings:%02d-%03d: " \     
ffc07d90:	48 02 3e 85 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc07d94:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc07d98:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc07d9c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc07da0:	38 63 ad 70 	addi    r3,r3,-21136                           <== NOT EXECUTED
ffc07da4:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc07da8:	7f a7 eb 78 	mr      r7,r29                                 <== NOT EXECUTED
ffc07dac:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07db0:	4b ff e9 99 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
      rtems_fdisk_queue_segment (fd, sc);                             
    }                                                                 
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc07db4:	80 01 00 4c 	lwz     r0,76(r1)                              
ffc07db8:	7f a3 eb 78 	mr      r3,r29                                 
ffc07dbc:	82 41 00 10 	lwz     r18,16(r1)                             
ffc07dc0:	7c 08 03 a6 	mtlr    r0                                     
ffc07dc4:	82 61 00 14 	lwz     r19,20(r1)                             
ffc07dc8:	82 81 00 18 	lwz     r20,24(r1)                             
ffc07dcc:	82 a1 00 1c 	lwz     r21,28(r1)                             
ffc07dd0:	82 c1 00 20 	lwz     r22,32(r1)                             
ffc07dd4:	82 e1 00 24 	lwz     r23,36(r1)                             
ffc07dd8:	83 01 00 28 	lwz     r24,40(r1)                             
ffc07ddc:	83 21 00 2c 	lwz     r25,44(r1)                             
ffc07de0:	83 41 00 30 	lwz     r26,48(r1)                             
ffc07de4:	83 61 00 34 	lwz     r27,52(r1)                             
ffc07de8:	83 81 00 38 	lwz     r28,56(r1)                             
ffc07dec:	83 a1 00 3c 	lwz     r29,60(r1)                             
ffc07df0:	83 c1 00 40 	lwz     r30,64(r1)                             
ffc07df4:	83 e1 00 44 	lwz     r31,68(r1)                             
ffc07df8:	38 21 00 48 	addi    r1,r1,72                               
ffc07dfc:	4e 80 00 20 	blr                                            
                                                                      

ffc070f0 <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) {
ffc070f0:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc070f4:	7c 08 02 a6 	mflr    r0                                     
ffc070f8:	90 01 00 4c 	stw     r0,76(r1)                              
  int      ret;                                                       
  uint32_t spage;                                                     
  uint32_t used = 0;                                                  
  uint32_t active = 0;                                                
                                                                      
  for (spage = 0; spage < ssc->pages; spage++)                        
ffc070fc:	81 04 00 14 	lwz     r8,20(r4)                              
static int                                                            
rtems_fdisk_recycle_segment (rtems_flashdisk*         fd,             
                                    rtems_fdisk_segment_ctl* ssc,     
                                    rtems_fdisk_segment_ctl* dsc,     
                                    uint32_t *pages)                  
{                                                                     
ffc07100:	93 01 00 28 	stw     r24,40(r1)                             
ffc07104:	7c d8 33 78 	mr      r24,r6                                 
  int      ret;                                                       
  uint32_t spage;                                                     
  uint32_t used = 0;                                                  
  uint32_t active = 0;                                                
                                                                      
  for (spage = 0; spage < ssc->pages; spage++)                        
ffc07108:	2f 88 00 00 	cmpwi   cr7,r8,0                               
static int                                                            
rtems_fdisk_recycle_segment (rtems_flashdisk*         fd,             
                                    rtems_fdisk_segment_ctl* ssc,     
                                    rtems_fdisk_segment_ctl* dsc,     
                                    uint32_t *pages)                  
{                                                                     
ffc0710c:	93 61 00 34 	stw     r27,52(r1)                             
ffc07110:	7c 7b 1b 78 	mr      r27,r3                                 
ffc07114:	93 81 00 38 	stw     r28,56(r1)                             
ffc07118:	7c 9c 23 78 	mr      r28,r4                                 
ffc0711c:	92 41 00 10 	stw     r18,16(r1)                             
ffc07120:	92 61 00 14 	stw     r19,20(r1)                             
ffc07124:	92 81 00 18 	stw     r20,24(r1)                             
ffc07128:	92 a1 00 1c 	stw     r21,28(r1)                             
ffc0712c:	92 c1 00 20 	stw     r22,32(r1)                             
ffc07130:	92 e1 00 24 	stw     r23,36(r1)                             
ffc07134:	93 21 00 2c 	stw     r25,44(r1)                             
ffc07138:	93 41 00 30 	stw     r26,48(r1)                             
ffc0713c:	93 a1 00 3c 	stw     r29,60(r1)                             
ffc07140:	93 c1 00 40 	stw     r30,64(r1)                             
ffc07144:	93 e1 00 44 	stw     r31,68(r1)                             
  int      ret;                                                       
  uint32_t spage;                                                     
  uint32_t used = 0;                                                  
  uint32_t active = 0;                                                
                                                                      
  for (spage = 0; spage < ssc->pages; spage++)                        
ffc07148:	41 9e 04 6c 	beq-    cr7,ffc075b4 <rtems_fdisk_recycle_segment+0x4c4><== NEVER TAKEN
        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",
ffc0714c:	3e a0 ff c4 	lis     r21,-60                                
                           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",
ffc07150:	3e c0 ff c4 	lis     r22,-60                                
ffc07154:	7c be 2b 78 	mr      r30,r5                                 
  int      ret;                                                       
  uint32_t spage;                                                     
  uint32_t used = 0;                                                  
  uint32_t active = 0;                                                
                                                                      
  for (spage = 0; spage < ssc->pages; spage++)                        
ffc07158:	3a e0 00 00 	li      r23,0                                  
ffc0715c:	3b 20 00 00 	li      r25,0                                  
ffc07160:	3b a0 00 00 	li      r29,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",
ffc07164:	3a b5 ab 14 	addi    r21,r21,-21740                         
                           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",
ffc07168:	3a d6 ab 3c 	addi    r22,r22,-21700                         
                                                                      
  for (spage = 0; spage < ssc->pages; spage++)                        
  {                                                                   
    rtems_fdisk_page_desc* spd = &ssc->page_descriptors[spage];       
                                                                      
    if (!dsc && ssc->pages_active > 0)                                
ffc0716c:	2f 9e 00 00 	cmpwi   cr7,r30,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];       
ffc07170:	80 bc 00 10 	lwz     r5,16(r28)                             
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
  }                                                                   
}                                                                     
                                                                      
static int                                                            
rtems_fdisk_recycle_segment (rtems_flashdisk*         fd,             
ffc07174:	57 aa 18 38 	rlwinm  r10,r29,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];       
ffc07178:	7f 45 52 14 	add     r26,r5,r10                             
                                                                      
    if (!dsc && ssc->pages_active > 0)                                
ffc0717c:	41 9e 02 78 	beq-    cr7,ffc073f4 <rtems_fdisk_recycle_segment+0x304>
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc07180:	a0 7a 00 02 	lhz     r3,2(r26)                              
    {                                                                 
      rtems_fdisk_error ("recycle: no available dst segment");        
      return EIO;                                                     
    }                                                                 
                                                                      
    if (rtems_fdisk_page_desc_flags_set (spd, RTEMS_FDISK_PAGE_ACTIVE) &&
ffc07184:	70 69 00 01 	andi.   r9,r3,1                                
ffc07188:	40 82 01 b0 	bne-    ffc07338 <rtems_fdisk_recycle_segment+0x248><== NEVER TAKEN
ffc0718c:	54 63 07 bc 	rlwinm  r3,r3,0,30,30                          
ffc07190:	70 69 ff ff 	andi.   r9,r3,65535                            
ffc07194:	41 82 01 a4 	beq-    ffc07338 <rtems_fdisk_recycle_segment+0x248>
  }                                                                   
                                                                      
  rtems_flashdisk_count = rtems_flashdisk_configuration_size;         
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc07198:	81 1e 00 14 	lwz     r8,20(r30)                             
ffc0719c:	80 fe 00 10 	lwz     r7,16(r30)                             
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++)                      
ffc071a0:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc071a4:	41 9e 02 74 	beq-    cr7,ffc07418 <rtems_fdisk_recycle_segment+0x328><== NEVER TAKEN
ffc071a8:	7c eb 3b 78 	mr      r11,r7                                 
ffc071ac:	7d 09 03 a6 	mtctr   r8                                     
ffc071b0:	3b e0 00 00 	li      r31,0                                  
ffc071b4:	48 00 00 10 	b       ffc071c4 <rtems_fdisk_recycle_segment+0xd4>
ffc071b8:	3b ff 00 01 	addi    r31,r31,1                              
ffc071bc:	39 6b 00 08 	addi    r11,r11,8                              
ffc071c0:	42 40 02 58 	bdz-    ffc07418 <rtems_fdisk_recycle_segment+0x328>
static bool                                                           
rtems_fdisk_page_desc_erased (const rtems_fdisk_page_desc* pd)        
{                                                                     
  return ((pd->crc == 0xffff) &&                                      
          (pd->flags == 0xffff) &&                                    
          (pd->block == 0xffffffff)) ? true : false;                  
ffc071c4:	81 4b 00 00 	lwz     r10,0(r11)                             
ffc071c8:	2f 8a ff ff 	cmpwi   cr7,r10,-1                             
ffc071cc:	40 9e ff ec 	bne+    cr7,ffc071b8 <rtems_fdisk_recycle_segment+0xc8>
ffc071d0:	81 2b 00 04 	lwz     r9,4(r11)                              
ffc071d4:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc071d8:	40 9e ff e0 	bne+    cr7,ffc071b8 <rtems_fdisk_recycle_segment+0xc8><== NEVER TAKEN
      dpage = rtems_fdisk_seg_next_available_page (dsc);              
      dpd   = &dsc->page_descriptors[dpage];                          
                                                                      
      active++;                                                       
                                                                      
      if (dpage >= dsc->pages)                                        
ffc071dc:	7f 88 f8 40 	cmplw   cr7,r8,r31                             
      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];                          
ffc071e0:	57 f3 18 38 	rlwinm  r19,r31,3,0,28                         
ffc071e4:	7e 67 9a 14 	add     r19,r7,r19                             
                                                                      
      active++;                                                       
ffc071e8:	3a f7 00 01 	addi    r23,r23,1                              
                                                                      
      if (dpage >= dsc->pages)                                        
ffc071ec:	40 9d 02 2c 	ble-    cr7,ffc07418 <rtems_fdisk_recycle_segment+0x328><== NEVER TAKEN
        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",
ffc071f0:	80 bc 00 08 	lwz     r5,8(r28)                              
ffc071f4:	7e a4 ab 78 	mr      r4,r21                                 
ffc071f8:	80 dc 00 0c 	lwz     r6,12(r28)                             
ffc071fc:	7f a7 eb 78 	mr      r7,r29                                 
ffc07200:	81 1e 00 08 	lwz     r8,8(r30)                              
ffc07204:	7f ea fb 78 	mr      r10,r31                                
ffc07208:	81 3e 00 0c 	lwz     r9,12(r30)                             
ffc0720c:	7f 63 db 78 	mr      r3,r27                                 
ffc07210:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07214:	4b ff f1 61 	bl      ffc06374 <rtems_fdisk_info>            
                        ssc->device, ssc->segment, spage,             
                        dsc->device, dsc->segment, dpage);            
#endif                                                                
      ret = rtems_fdisk_seg_copy_page (fd, ssc,                       
ffc07218:	82 9c 00 18 	lwz     r20,24(r28)                            
ffc0721c:	82 5e 00 18 	lwz     r18,24(r30)                            
                           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",
ffc07220:	7e c4 b3 78 	mr      r4,r22                                 
#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,                       
ffc07224:	7e 9d a2 14 	add     r20,r29,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",
ffc07228:	80 bc 00 08 	lwz     r5,8(r28)                              
ffc0722c:	80 dc 00 0c 	lwz     r6,12(r28)                             
#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,                       
ffc07230:	7e 5f 92 14 	add     r18,r31,r18                            
                           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",
ffc07234:	81 1e 00 08 	lwz     r8,8(r30)                              
ffc07238:	7e 87 a3 78 	mr      r7,r20                                 
ffc0723c:	81 3e 00 0c 	lwz     r9,12(r30)                             
ffc07240:	7e 4a 93 78 	mr      r10,r18                                
ffc07244:	7f 63 db 78 	mr      r3,r27                                 
ffc07248:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc0724c:	4b ff f2 21 	bl      ffc0646c <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);
ffc07250:	81 1b 00 14 	lwz     r8,20(r27)                             
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,                                
ffc07254:	80 9c 00 08 	lwz     r4,8(r28)                              
ffc07258:	7f 63 db 78 	mr      r3,r27                                 
ffc0725c:	7c d4 41 d6 	mullw   r6,r20,r8                              
ffc07260:	80 bc 00 0c 	lwz     r5,12(r28)                             
ffc07264:	80 fb 00 68 	lwz     r7,104(r27)                            
ffc07268:	4b ff fb a9 	bl      ffc06e10 <rtems_fdisk_seg_read.isra.14>
                      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)                                                            
ffc0726c:	7c 74 1b 79 	mr.     r20,r3                                 
ffc07270:	41 82 02 18 	beq-    ffc07488 <rtems_fdisk_recycle_segment+0x398><== ALWAYS TAKEN
                                       spage + ssc->pages_desc,       
                                       dsc,                           
                                       dpage + dsc->pages_desc);      
      if (ret)                                                        
      {                                                               
        rtems_fdisk_error ("recycle: %02d-%03d-%03d=>" \              
ffc07274:	7e 83 a3 78 	mr      r3,r20                                 <== NOT EXECUTED
ffc07278:	82 fc 00 0c 	lwz     r23,12(r28)                            <== NOT EXECUTED
ffc0727c:	83 1e 00 08 	lwz     r24,8(r30)                             <== NOT EXECUTED
ffc07280:	83 3e 00 0c 	lwz     r25,12(r30)                            <== NOT EXECUTED
ffc07284:	83 5c 00 08 	lwz     r26,8(r28)                             <== NOT EXECUTED
ffc07288:	48 02 49 8d 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc0728c:	7c 6a 1b 78 	mr      r10,r3                                 <== NOT EXECUTED
ffc07290:	92 81 00 08 	stw     r20,8(r1)                              <== NOT EXECUTED
ffc07294:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc07298:	7e e5 bb 78 	mr      r5,r23                                 <== NOT EXECUTED
ffc0729c:	7f a6 eb 78 	mr      r6,r29                                 <== NOT EXECUTED
ffc072a0:	7f 07 c3 78 	mr      r7,r24                                 <== NOT EXECUTED
ffc072a4:	7f 28 cb 78 	mr      r8,r25                                 <== NOT EXECUTED
ffc072a8:	7f e9 fb 78 	mr      r9,r31                                 <== NOT EXECUTED
ffc072ac:	38 63 ab 6c 	addi    r3,r3,-21652                           <== NOT EXECUTED
                                             dsc,                     
                                             dpage, dpd);             
                                                                      
      if (ret)                                                        
      {                                                               
        rtems_fdisk_error ("recycle: %02d-%03d-%03d=>"   \            
ffc072b0:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc072b4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc072b8:	4b ff f4 91 	bl      ffc06748 <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);                          
ffc072bc:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc072c0:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc072c4:	4b ff f7 c1 	bl      ffc06a84 <rtems_fdisk_queue_segment>   <== NOT EXECUTED
  if (sc)                                                             
  {                                                                   
    sc->next = queue->head;                                           
    queue->head = sc;                                                 
                                                                      
    if (queue->tail == 0)                                             
ffc072c8:	81 5b 00 44 	lwz     r10,68(r27)                            <== NOT EXECUTED
rtems_fdisk_segment_queue_push_head (rtems_fdisk_segment_ctl_queue* queue,
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = queue->head;                                           
ffc072cc:	81 3b 00 40 	lwz     r9,64(r27)                             <== NOT EXECUTED
    queue->head = sc;                                                 
                                                                      
    if (queue->tail == 0)                                             
ffc072d0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
rtems_fdisk_segment_queue_push_head (rtems_fdisk_segment_ctl_queue* queue,
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = queue->head;                                           
ffc072d4:	91 3c 00 00 	stw     r9,0(r28)                              <== NOT EXECUTED
    queue->head = sc;                                                 
ffc072d8:	93 9b 00 40 	stw     r28,64(r27)                            <== NOT EXECUTED
                                                                      
    if (queue->tail == 0)                                             
ffc072dc:	41 9e 02 d0 	beq-    cr7,ffc075ac <rtems_fdisk_recycle_segment+0x4bc><== NOT EXECUTED
      queue->tail = sc;                                               
    queue->count++;                                                   
ffc072e0:	81 3b 00 48 	lwz     r9,72(r27)                             <== NOT EXECUTED
ffc072e4:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
ffc072e8:	91 3b 00 48 	stw     r9,72(r27)                             <== NOT EXECUTED
  }                                                                   
                                                                      
  ret = rtems_fdisk_erase_segment (fd, ssc);                          
                                                                      
  return ret;                                                         
}                                                                     
ffc072ec:	80 01 00 4c 	lwz     r0,76(r1)                              <== NOT EXECUTED
ffc072f0:	7e 83 a3 78 	mr      r3,r20                                 <== NOT EXECUTED
ffc072f4:	82 41 00 10 	lwz     r18,16(r1)                             <== NOT EXECUTED
ffc072f8:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc072fc:	82 61 00 14 	lwz     r19,20(r1)                             <== NOT EXECUTED
ffc07300:	82 81 00 18 	lwz     r20,24(r1)                             <== NOT EXECUTED
ffc07304:	82 a1 00 1c 	lwz     r21,28(r1)                             <== NOT EXECUTED
ffc07308:	82 c1 00 20 	lwz     r22,32(r1)                             <== NOT EXECUTED
ffc0730c:	82 e1 00 24 	lwz     r23,36(r1)                             <== NOT EXECUTED
ffc07310:	83 01 00 28 	lwz     r24,40(r1)                             <== NOT EXECUTED
ffc07314:	83 21 00 2c 	lwz     r25,44(r1)                             <== NOT EXECUTED
ffc07318:	83 41 00 30 	lwz     r26,48(r1)                             <== NOT EXECUTED
ffc0731c:	83 61 00 34 	lwz     r27,52(r1)                             <== NOT EXECUTED
ffc07320:	83 81 00 38 	lwz     r28,56(r1)                             <== NOT EXECUTED
ffc07324:	83 a1 00 3c 	lwz     r29,60(r1)                             <== NOT EXECUTED
ffc07328:	83 c1 00 40 	lwz     r30,64(r1)                             <== NOT EXECUTED
ffc0732c:	83 e1 00 44 	lwz     r31,68(r1)                             <== NOT EXECUTED
ffc07330:	38 21 00 48 	addi    r1,r1,72                               <== NOT EXECUTED
ffc07334:	4e 80 00 20 	blr                                            <== NOT EXECUTED
static bool                                                           
rtems_fdisk_page_desc_erased (const rtems_fdisk_page_desc* pd)        
{                                                                     
  return ((pd->crc == 0xffff) &&                                      
          (pd->flags == 0xffff) &&                                    
          (pd->block == 0xffffffff)) ? true : false;                  
ffc07338:	7d 25 50 2e 	lwzx    r9,r5,r10                              
ffc0733c:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc07340:	41 9e 00 98 	beq-    cr7,ffc073d8 <rtems_fdisk_recycle_segment+0x2e8><== NEVER TAKEN
    {                                                                 
      --fd->erased_blocks;                                            
    }                                                                 
    else                                                              
    {                                                                 
      used++;                                                         
ffc07344:	3b 39 00 01 	addi    r25,r25,1                              
  int      ret;                                                       
  uint32_t spage;                                                     
  uint32_t used = 0;                                                  
  uint32_t active = 0;                                                
                                                                      
  for (spage = 0; spage < ssc->pages; spage++)                        
ffc07348:	3b bd 00 01 	addi    r29,r29,1                              
ffc0734c:	7f 88 e8 40 	cmplw   cr7,r8,r29                             
ffc07350:	41 9d fe 1c 	bgt+    cr7,ffc0716c <rtems_fdisk_recycle_segment+0x7c>
      used++;                                                         
    }                                                                 
  }                                                                   
                                                                      
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "ssc end: %d-%d: p=%ld, a=%ld, u=%ld",      
ffc07354:	80 bc 00 08 	lwz     r5,8(r28)                              
ffc07358:	3c 80 ff c4 	lis     r4,-60                                 
ffc0735c:	80 dc 00 0c 	lwz     r6,12(r28)                             
ffc07360:	38 84 ab f4 	addi    r4,r4,-21516                           
ffc07364:	7f 63 db 78 	mr      r3,r27                                 
ffc07368:	7f 07 c3 78 	mr      r7,r24                                 
ffc0736c:	7e e8 bb 78 	mr      r8,r23                                 
ffc07370:	7f 29 cb 78 	mr      r9,r25                                 
ffc07374:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc07378:	4b ff f0 f5 	bl      ffc0646c <rtems_fdisk_printf>          
                      ssc->device, ssc->segment,                      
                      pages, active, used);                           
#endif                                                                
  if (ssc->pages_active != 0)                                         
ffc0737c:	80 9c 00 1c 	lwz     r4,28(r28)                             
ffc07380:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc07384:	40 9e 01 d8 	bne-    cr7,ffc0755c <rtems_fdisk_recycle_segment+0x46c><== NEVER TAKEN
  }                                                                   
                                                                      
  ret = rtems_fdisk_erase_segment (fd, ssc);                          
                                                                      
  return ret;                                                         
}                                                                     
ffc07388:	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);                          
ffc0738c:	7f 63 db 78 	mr      r3,r27                                 
                                                                      
  return ret;                                                         
}                                                                     
ffc07390:	82 41 00 10 	lwz     r18,16(r1)                             
  {                                                                   
    rtems_fdisk_error ("compacting: ssc pages not 0: %d",             
                       ssc->pages_active);                            
  }                                                                   
                                                                      
  ret = rtems_fdisk_erase_segment (fd, ssc);                          
ffc07394:	7f 84 e3 78 	mr      r4,r28                                 
                                                                      
  return ret;                                                         
}                                                                     
ffc07398:	7c 08 03 a6 	mtlr    r0                                     
ffc0739c:	82 61 00 14 	lwz     r19,20(r1)                             
ffc073a0:	82 81 00 18 	lwz     r20,24(r1)                             
ffc073a4:	82 a1 00 1c 	lwz     r21,28(r1)                             
ffc073a8:	82 c1 00 20 	lwz     r22,32(r1)                             
ffc073ac:	82 e1 00 24 	lwz     r23,36(r1)                             
ffc073b0:	83 01 00 28 	lwz     r24,40(r1)                             
ffc073b4:	83 21 00 2c 	lwz     r25,44(r1)                             
ffc073b8:	83 41 00 30 	lwz     r26,48(r1)                             
ffc073bc:	83 61 00 34 	lwz     r27,52(r1)                             
ffc073c0:	83 81 00 38 	lwz     r28,56(r1)                             
ffc073c4:	83 a1 00 3c 	lwz     r29,60(r1)                             
ffc073c8:	83 c1 00 40 	lwz     r30,64(r1)                             
ffc073cc:	83 e1 00 44 	lwz     r31,68(r1)                             
ffc073d0:	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);                          
ffc073d4:	4b ff f4 5c 	b       ffc06830 <rtems_fdisk_erase_segment>   
static bool                                                           
rtems_fdisk_page_desc_erased (const rtems_fdisk_page_desc* pd)        
{                                                                     
  return ((pd->crc == 0xffff) &&                                      
          (pd->flags == 0xffff) &&                                    
          (pd->block == 0xffffffff)) ? true : false;                  
ffc073d8:	81 3a 00 04 	lwz     r9,4(r26)                              <== NOT EXECUTED
ffc073dc:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              <== NOT EXECUTED
ffc073e0:	40 9e ff 64 	bne+    cr7,ffc07344 <rtems_fdisk_recycle_segment+0x254><== NOT EXECUTED
                                                                      
      (*pages)--;                                                     
    }                                                                 
    else if (rtems_fdisk_page_desc_erased (spd))                      
    {                                                                 
      --fd->erased_blocks;                                            
ffc073e4:	81 3b 00 28 	lwz     r9,40(r27)                             <== NOT EXECUTED
ffc073e8:	39 29 ff ff 	addi    r9,r9,-1                               <== NOT EXECUTED
ffc073ec:	91 3b 00 28 	stw     r9,40(r27)                             <== NOT EXECUTED
ffc073f0:	4b ff ff 58 	b       ffc07348 <rtems_fdisk_recycle_segment+0x258><== NOT EXECUTED
                                                                      
  for (spage = 0; spage < ssc->pages; spage++)                        
  {                                                                   
    rtems_fdisk_page_desc* spd = &ssc->page_descriptors[spage];       
                                                                      
    if (!dsc && ssc->pages_active > 0)                                
ffc073f4:	81 3c 00 1c 	lwz     r9,28(r28)                             
ffc073f8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc073fc:	41 9e fd 84 	beq+    cr7,ffc07180 <rtems_fdisk_recycle_segment+0x90><== ALWAYS TAKEN
    {                                                                 
      rtems_fdisk_error ("recycle: no available dst segment");        
ffc07400:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc07404:	38 63 aa c0 	addi    r3,r3,-21824                           <== NOT EXECUTED
ffc07408:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc0740c:	4b ff f3 3d 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
      return EIO;                                                     
ffc07410:	3a 80 00 05 	li      r20,5                                  <== NOT EXECUTED
ffc07414:	4b ff fe d8 	b       ffc072ec <rtems_fdisk_recycle_segment+0x1fc><== NOT EXECUTED
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
  }                                                                   
}                                                                     
                                                                      
static int                                                            
rtems_fdisk_recycle_segment (rtems_flashdisk*         fd,             
ffc07418:	81 5e 00 1c 	lwz     r10,28(r30)                            <== NOT EXECUTED
                                                                      
      active++;                                                       
                                                                      
      if (dpage >= dsc->pages)                                        
      {                                                               
        rtems_fdisk_error ("recycle: %02d-%03d: " \                   
ffc0741c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
  }                                                                   
}                                                                     
                                                                      
static int                                                            
rtems_fdisk_recycle_segment (rtems_flashdisk*         fd,             
ffc07420:	80 de 00 20 	lwz     r6,32(r30)                             <== NOT EXECUTED
                                                                      
      active++;                                                       
                                                                      
      if (dpage >= dsc->pages)                                        
      {                                                               
        rtems_fdisk_error ("recycle: %02d-%03d: " \                   
ffc07424:	38 63 aa e4 	addi    r3,r3,-21788                           <== NOT EXECUTED
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
  }                                                                   
}                                                                     
                                                                      
static int                                                            
rtems_fdisk_recycle_segment (rtems_flashdisk*         fd,             
ffc07428:	81 3e 00 24 	lwz     r9,36(r30)                             <== NOT EXECUTED
ffc0742c:	7c c6 52 14 	add     r6,r6,r10                              <== NOT EXECUTED
                                                                      
      active++;                                                       
                                                                      
      if (dpage >= dsc->pages)                                        
      {                                                               
        rtems_fdisk_error ("recycle: %02d-%03d: " \                   
ffc07430:	80 9e 00 08 	lwz     r4,8(r30)                              <== NOT EXECUTED
      rtems_fdisk_segment_queue_push_tail (&fd->available, sc);       
  }                                                                   
}                                                                     
                                                                      
static int                                                            
rtems_fdisk_recycle_segment (rtems_flashdisk*         fd,             
ffc07434:	7c c6 4a 14 	add     r6,r6,r9                               <== NOT EXECUTED
                                                                      
      active++;                                                       
                                                                      
      if (dpage >= dsc->pages)                                        
      {                                                               
        rtems_fdisk_error ("recycle: %02d-%03d: " \                   
ffc07438:	80 be 00 0c 	lwz     r5,12(r30)                             <== NOT EXECUTED
ffc0743c:	7c c6 40 50 	subf    r6,r6,r8                               <== NOT EXECUTED
ffc07440:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07444:	4b ff f3 05 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
                           "no page desc available: %d",              
                           dsc->device, dsc->segment,                 
                           rtems_fdisk_seg_pages_available (dsc));    
        dsc->failed = true;                                           
ffc07448:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc0744c:	91 3e 00 28 	stw     r9,40(r30)                             <== NOT EXECUTED
        rtems_fdisk_queue_segment (fd, dsc);                          
ffc07450:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc07454:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc07458:	4b ff f6 2d 	bl      ffc06a84 <rtems_fdisk_queue_segment>   <== NOT EXECUTED
  if (sc)                                                             
  {                                                                   
    sc->next = queue->head;                                           
    queue->head = sc;                                                 
                                                                      
    if (queue->tail == 0)                                             
ffc0745c:	81 5b 00 44 	lwz     r10,68(r27)                            <== NOT EXECUTED
rtems_fdisk_segment_queue_push_head (rtems_fdisk_segment_ctl_queue* queue,
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = queue->head;                                           
ffc07460:	81 3b 00 40 	lwz     r9,64(r27)                             <== NOT EXECUTED
    queue->head = sc;                                                 
                                                                      
    if (queue->tail == 0)                                             
ffc07464:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
rtems_fdisk_segment_queue_push_head (rtems_fdisk_segment_ctl_queue* queue,
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = queue->head;                                           
ffc07468:	91 3c 00 00 	stw     r9,0(r28)                              <== NOT EXECUTED
    queue->head = sc;                                                 
ffc0746c:	93 9b 00 40 	stw     r28,64(r27)                            <== NOT EXECUTED
                                                                      
    if (queue->tail == 0)                                             
ffc07470:	41 9e 01 50 	beq-    cr7,ffc075c0 <rtems_fdisk_recycle_segment+0x4d0><== NOT EXECUTED
      queue->tail = sc;                                               
    queue->count++;                                                   
ffc07474:	81 3b 00 48 	lwz     r9,72(r27)                             <== NOT EXECUTED
                           dsc->device, dsc->segment,                 
                           rtems_fdisk_seg_pages_available (dsc));    
        dsc->failed = true;                                           
        rtems_fdisk_queue_segment (fd, dsc);                          
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return EIO;                                                   
ffc07478:	3a 80 00 05 	li      r20,5                                  <== NOT EXECUTED
    sc->next = queue->head;                                           
    queue->head = sc;                                                 
                                                                      
    if (queue->tail == 0)                                             
      queue->tail = sc;                                               
    queue->count++;                                                   
ffc0747c:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
ffc07480:	91 3b 00 48 	stw     r9,72(r27)                             <== NOT EXECUTED
ffc07484:	4b ff fe 68 	b       ffc072ec <rtems_fdisk_recycle_segment+0x1fc><== NOT EXECUTED
#endif                                                                
  ret = rtems_fdisk_seg_read_page (fd, src_sc, src_page,              
                                   fd->copy_buffer);                  
  if (ret)                                                            
    return ret;                                                       
  return rtems_fdisk_seg_write_page (fd, dst_sc, dst_page,            
ffc07488:	80 db 00 68 	lwz     r6,104(r27)                            
ffc0748c:	7f 63 db 78 	mr      r3,r27                                 
ffc07490:	7f c4 f3 78 	mr      r4,r30                                 
ffc07494:	7e 45 93 78 	mr      r5,r18                                 
ffc07498:	4b ff fa fd 	bl      ffc06f94 <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)                                                        
ffc0749c:	7c 74 1b 79 	mr.     r20,r3                                 
ffc074a0:	40 a2 fd d4 	bne-    ffc07274 <rtems_fdisk_recycle_segment+0x184><== NEVER TAKEN
        rtems_fdisk_queue_segment (fd, dsc);                          
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return ret;                                                   
      }                                                               
                                                                      
      *dpd = *spd;                                                    
ffc074a4:	81 3a 00 00 	lwz     r9,0(r26)                              
                                                                      
      ret = rtems_fdisk_seg_write_page_desc (fd,                      
ffc074a8:	7f 63 db 78 	mr      r3,r27                                 
        rtems_fdisk_queue_segment (fd, dsc);                          
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return ret;                                                   
      }                                                               
                                                                      
      *dpd = *spd;                                                    
ffc074ac:	81 5a 00 04 	lwz     r10,4(r26)                             
                                                                      
      ret = rtems_fdisk_seg_write_page_desc (fd,                      
ffc074b0:	7f c4 f3 78 	mr      r4,r30                                 
        rtems_fdisk_queue_segment (fd, dsc);                          
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return ret;                                                   
      }                                                               
                                                                      
      *dpd = *spd;                                                    
ffc074b4:	91 33 00 00 	stw     r9,0(r19)                              
                                                                      
      ret = rtems_fdisk_seg_write_page_desc (fd,                      
ffc074b8:	7f e5 fb 78 	mr      r5,r31                                 
ffc074bc:	7e 66 9b 78 	mr      r6,r19                                 
        rtems_fdisk_queue_segment (fd, dsc);                          
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return ret;                                                   
      }                                                               
                                                                      
      *dpd = *spd;                                                    
ffc074c0:	91 53 00 04 	stw     r10,4(r19)                             
                                                                      
      ret = rtems_fdisk_seg_write_page_desc (fd,                      
ffc074c4:	4b ff fb 85 	bl      ffc07048 <rtems_fdisk_seg_write_page_desc>
                                             dsc,                     
                                             dpage, dpd);             
                                                                      
      if (ret)                                                        
ffc074c8:	7c 74 1b 79 	mr.     r20,r3                                 
ffc074cc:	40 82 00 a4 	bne-    ffc07570 <rtems_fdisk_recycle_segment+0x480><== NEVER TAKEN
        rtems_fdisk_queue_segment (fd, dsc);                          
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return ret;                                                   
      }                                                               
                                                                      
      dsc->pages_active++;                                            
ffc074d0:	81 3e 00 1c 	lwz     r9,28(r30)                             
      fd->blocks[spd->block].page    = dpage;                         
                                                                      
      /*                                                              
       * Place the segment on to the correct queue.                   
       */                                                             
      rtems_fdisk_queue_segment (fd, dsc);                            
ffc074d4:	7f 63 db 78 	mr      r3,r27                                 
       */                                                             
                                                                      
      ssc->pages_active--;                                            
      ssc->pages_used++;                                              
                                                                      
      fd->blocks[spd->block].segment = dsc;                           
ffc074d8:	81 5a 00 04 	lwz     r10,4(r26)                             
      fd->blocks[spd->block].page    = dpage;                         
                                                                      
      /*                                                              
       * Place the segment on to the correct queue.                   
       */                                                             
      rtems_fdisk_queue_segment (fd, dsc);                            
ffc074dc:	7f c4 f3 78 	mr      r4,r30                                 
        rtems_fdisk_queue_segment (fd, dsc);                          
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return ret;                                                   
      }                                                               
                                                                      
      dsc->pages_active++;                                            
ffc074e0:	39 29 00 01 	addi    r9,r9,1                                
       * We do the stats to make sure everything is as it should      
       * be.                                                          
       */                                                             
                                                                      
      ssc->pages_active--;                                            
      ssc->pages_used++;                                              
ffc074e4:	81 1c 00 20 	lwz     r8,32(r28)                             
        rtems_fdisk_queue_segment (fd, dsc);                          
        rtems_fdisk_segment_queue_push_head (&fd->used, ssc);         
        return ret;                                                   
      }                                                               
                                                                      
      dsc->pages_active++;                                            
ffc074e8:	91 3e 00 1c 	stw     r9,28(r30)                             
       */                                                             
                                                                      
      ssc->pages_active--;                                            
      ssc->pages_used++;                                              
                                                                      
      fd->blocks[spd->block].segment = dsc;                           
ffc074ec:	55 4a 18 38 	rlwinm  r10,r10,3,0,28                         
       * We do the stats to make sure everything is as it should      
       * be.                                                          
       */                                                             
                                                                      
      ssc->pages_active--;                                            
      ssc->pages_used++;                                              
ffc074f0:	39 08 00 01 	addi    r8,r8,1                                
                                                                      
      fd->blocks[spd->block].segment = dsc;                           
ffc074f4:	81 3b 00 18 	lwz     r9,24(r27)                             
       * 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--;                                            
ffc074f8:	80 fc 00 1c 	lwz     r7,28(r28)                             
      ssc->pages_used++;                                              
                                                                      
      fd->blocks[spd->block].segment = dsc;                           
ffc074fc:	7c c9 52 14 	add     r6,r9,r10                              
       * We do the stats to make sure everything is as it should      
       * be.                                                          
       */                                                             
                                                                      
      ssc->pages_active--;                                            
      ssc->pages_used++;                                              
ffc07500:	91 1c 00 20 	stw     r8,32(r28)                             
       * 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--;                                            
ffc07504:	38 e7 ff ff 	addi    r7,r7,-1                               
ffc07508:	90 fc 00 1c 	stw     r7,28(r28)                             
      ssc->pages_used++;                                              
                                                                      
      fd->blocks[spd->block].segment = dsc;                           
ffc0750c:	7f c9 51 2e 	stwx    r30,r9,r10                             
      fd->blocks[spd->block].page    = dpage;                         
ffc07510:	93 e6 00 04 	stw     r31,4(r6)                              
                                                                      
      /*                                                              
       * Place the segment on to the correct queue.                   
       */                                                             
      rtems_fdisk_queue_segment (fd, dsc);                            
ffc07514:	4b ff f5 71 	bl      ffc06a84 <rtems_fdisk_queue_segment>   
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
ffc07518:	81 3e 00 1c 	lwz     r9,28(r30)                             
ffc0751c:	81 1e 00 20 	lwz     r8,32(r30)                             
ffc07520:	81 5e 00 24 	lwz     r10,36(r30)                            
ffc07524:	7d 08 4a 14 	add     r8,r8,r9                               
                                                                      
      /*                                                              
       * Get new destination segment if necessary.                    
       */                                                             
      dst_pages = rtems_fdisk_seg_pages_available (dsc);              
      if (dst_pages == 0)                                             
ffc07528:	81 3e 00 14 	lwz     r9,20(r30)                             
 * active, used and bad pages.                                        
 */                                                                   
static uint32_t                                                       
rtems_fdisk_seg_pages_available (const rtems_fdisk_segment_ctl* sc)   
{                                                                     
  return sc->pages - (sc->pages_active + sc->pages_used + sc->pages_bad);
ffc0752c:	7d 48 52 14 	add     r10,r8,r10                             
                                                                      
      /*                                                              
       * Get new destination segment if necessary.                    
       */                                                             
      dst_pages = rtems_fdisk_seg_pages_available (dsc);              
      if (dst_pages == 0)                                             
ffc07530:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc07534:	41 9e 00 18 	beq-    cr7,ffc0754c <rtems_fdisk_recycle_segment+0x45c>
        dsc = rtems_fdisk_seg_most_available (&fd->available);        
                                                                      
      (*pages)--;                                                     
ffc07538:	81 38 00 00 	lwz     r9,0(r24)                              
ffc0753c:	39 29 ff ff 	addi    r9,r9,-1                               
ffc07540:	91 38 00 00 	stw     r9,0(r24)                              
ffc07544:	81 1c 00 14 	lwz     r8,20(r28)                             
      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))
    {                                                                 
ffc07548:	4b ff fe 00 	b       ffc07348 <rtems_fdisk_recycle_segment+0x258>
      /*                                                              
       * Get new destination segment if necessary.                    
       */                                                             
      dst_pages = rtems_fdisk_seg_pages_available (dsc);              
      if (dst_pages == 0)                                             
        dsc = rtems_fdisk_seg_most_available (&fd->available);        
ffc0754c:	80 7b 00 34 	lwz     r3,52(r27)                             
ffc07550:	4b ff f8 59 	bl      ffc06da8 <rtems_fdisk_seg_most_available.isra.12>
ffc07554:	7c 7e 1b 78 	mr      r30,r3                                 
ffc07558:	4b ff ff e0 	b       ffc07538 <rtems_fdisk_recycle_segment+0x448>
                      ssc->device, ssc->segment,                      
                      pages, active, used);                           
#endif                                                                
  if (ssc->pages_active != 0)                                         
  {                                                                   
    rtems_fdisk_error ("compacting: ssc pages not 0: %d",             
ffc0755c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc07560:	38 63 ac 18 	addi    r3,r3,-21480                           <== NOT EXECUTED
ffc07564:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc07568:	4b ff f1 e1 	bl      ffc06748 <rtems_fdisk_error>           <== NOT EXECUTED
ffc0756c:	4b ff fe 1c 	b       ffc07388 <rtems_fdisk_recycle_segment+0x298><== NOT EXECUTED
                                             dsc,                     
                                             dpage, dpd);             
                                                                      
      if (ret)                                                        
      {                                                               
        rtems_fdisk_error ("recycle: %02d-%03d-%03d=>"   \            
ffc07570:	82 fc 00 0c 	lwz     r23,12(r28)                            <== NOT EXECUTED
ffc07574:	83 1e 00 08 	lwz     r24,8(r30)                             <== NOT EXECUTED
ffc07578:	83 3e 00 0c 	lwz     r25,12(r30)                            <== NOT EXECUTED
ffc0757c:	83 5c 00 08 	lwz     r26,8(r28)                             <== NOT EXECUTED
ffc07580:	48 02 46 95 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc07584:	7c 6a 1b 78 	mr      r10,r3                                 <== NOT EXECUTED
ffc07588:	92 81 00 08 	stw     r20,8(r1)                              <== NOT EXECUTED
ffc0758c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc07590:	7e e5 bb 78 	mr      r5,r23                                 <== NOT EXECUTED
ffc07594:	7f a6 eb 78 	mr      r6,r29                                 <== NOT EXECUTED
ffc07598:	7f 07 c3 78 	mr      r7,r24                                 <== NOT EXECUTED
ffc0759c:	7f 28 cb 78 	mr      r8,r25                                 <== NOT EXECUTED
ffc075a0:	7f e9 fb 78 	mr      r9,r31                                 <== NOT EXECUTED
ffc075a4:	38 63 ab b0 	addi    r3,r3,-21584                           <== NOT EXECUTED
ffc075a8:	4b ff fd 08 	b       ffc072b0 <rtems_fdisk_recycle_segment+0x1c0><== NOT EXECUTED
  {                                                                   
    sc->next = queue->head;                                           
    queue->head = sc;                                                 
                                                                      
    if (queue->tail == 0)                                             
      queue->tail = sc;                                               
ffc075ac:	93 9b 00 44 	stw     r28,68(r27)                            <== NOT EXECUTED
ffc075b0:	4b ff fd 30 	b       ffc072e0 <rtems_fdisk_recycle_segment+0x1f0><== NOT EXECUTED
                                    uint32_t *pages)                  
{                                                                     
  int      ret;                                                       
  uint32_t spage;                                                     
  uint32_t used = 0;                                                  
  uint32_t active = 0;                                                
ffc075b4:	3a e0 00 00 	li      r23,0                                  <== NOT EXECUTED
                                    rtems_fdisk_segment_ctl* dsc,     
                                    uint32_t *pages)                  
{                                                                     
  int      ret;                                                       
  uint32_t spage;                                                     
  uint32_t used = 0;                                                  
ffc075b8:	3b 20 00 00 	li      r25,0                                  <== NOT EXECUTED
ffc075bc:	4b ff fd 98 	b       ffc07354 <rtems_fdisk_recycle_segment+0x264><== NOT EXECUTED
  {                                                                   
    sc->next = queue->head;                                           
    queue->head = sc;                                                 
                                                                      
    if (queue->tail == 0)                                             
      queue->tail = sc;                                               
ffc075c0:	93 9b 00 44 	stw     r28,68(r27)                            <== NOT EXECUTED
ffc075c4:	4b ff fe b0 	b       ffc07474 <rtems_fdisk_recycle_segment+0x384><== NOT EXECUTED
                                                                      

ffc06564 <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) {
ffc06564:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc06568:	7c 08 02 a6 	mflr    r0                                     
ffc0656c:	90 01 00 2c 	stw     r0,44(r1)                              
ffc06570:	93 c1 00 20 	stw     r30,32(r1)                             
  int ret;                                                            
  uint32_t                           device;                          
  uint32_t                           segment;                         
  const rtems_fdisk_segment_desc*    sd;                              
  const rtems_fdisk_driver_handlers* ops;                             
  device = sc->device;                                                
ffc06574:	83 c4 00 08 	lwz     r30,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;            
ffc06578:	81 23 00 2c 	lwz     r9,44(r3)                              
ffc0657c:	1d 5e 00 0c 	mulli   r10,r30,12                             
rtems_fdisk_seg_write (const rtems_flashdisk*   fd,                   
                       rtems_fdisk_segment_ctl* sc,                   
                       uint32_t                 offset,               
                       const void*              buffer,               
                       uint32_t                 size)                 
{                                                                     
ffc06580:	93 e1 00 24 	stw     r31,36(r1)                             
  uint32_t                           device;                          
  uint32_t                           segment;                         
  const rtems_fdisk_segment_desc*    sd;                              
  const rtems_fdisk_driver_handlers* ops;                             
  device = sc->device;                                                
  segment = sc->segment;                                              
ffc06584:	83 e4 00 0c 	lwz     r31,12(r4)                             
rtems_fdisk_seg_write (const rtems_flashdisk*   fd,                   
                       rtems_fdisk_segment_ctl* sc,                   
                       uint32_t                 offset,               
                       const void*              buffer,               
                       uint32_t                 size)                 
{                                                                     
ffc06588:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc0658c:	7c 9d 23 78 	mr      r29,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;            
ffc06590:	1d 1f 00 30 	mulli   r8,r31,48                              
ffc06594:	7c 89 50 2e 	lwzx    r4,r9,r10                              
ffc06598:	7d 29 52 14 	add     r9,r9,r10                              
rtems_fdisk_seg_write (const rtems_flashdisk*   fd,                   
                       rtems_fdisk_segment_ctl* sc,                   
                       uint32_t                 offset,               
                       const void*              buffer,               
                       uint32_t                 size)                 
{                                                                     
ffc0659c:	93 41 00 10 	stw     r26,16(r1)                             
static const rtems_fdisk_segment_desc*                                
rtems_fdisk_seg_descriptor (const rtems_flashdisk* fd,                
                            uint32_t               device,            
                            uint32_t               segment)           
{                                                                     
  return fd->devices[device].segments[segment].descriptor;            
ffc065a0:	7d 44 42 14 	add     r10,r4,r8                              
  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;                    
ffc065a4:	81 29 00 08 	lwz     r9,8(r9)                               
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "  seg-write: %02d-%03d: o=%08x s=%d",      
ffc065a8:	3c 80 ff c4 	lis     r4,-60                                 
rtems_fdisk_seg_write (const rtems_flashdisk*   fd,                   
                       rtems_fdisk_segment_ctl* sc,                   
                       uint32_t                 offset,               
                       const void*              buffer,               
                       uint32_t                 size)                 
{                                                                     
ffc065ac:	93 61 00 14 	stw     r27,20(r1)                             
ffc065b0:	7c bb 2b 78 	mr      r27,r5                                 
  device = sc->device;                                                
  segment = sc->segment;                                              
  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",      
ffc065b4:	38 84 a9 b4 	addi    r4,r4,-22092                           
rtems_fdisk_seg_write (const rtems_flashdisk*   fd,                   
                       rtems_fdisk_segment_ctl* sc,                   
                       uint32_t                 offset,               
                       const void*              buffer,               
                       uint32_t                 size)                 
{                                                                     
ffc065b8:	93 81 00 18 	stw     r28,24(r1)                             
ffc065bc:	7c fc 3b 78 	mr      r28,r7                                 
  device = sc->device;                                                
  segment = sc->segment;                                              
  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",      
ffc065c0:	7f c5 f3 78 	mr      r5,r30                                 
  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;                    
ffc065c4:	83 49 00 08 	lwz     r26,8(r9)                              
#if RTEMS_FDISK_TRACE                                                 
  rtems_fdisk_printf (fd, "  seg-write: %02d-%03d: o=%08x s=%d",      
ffc065c8:	7f 67 db 78 	mr      r7,r27                                 
rtems_fdisk_seg_write (const rtems_flashdisk*   fd,                   
                       rtems_fdisk_segment_ctl* sc,                   
                       uint32_t                 offset,               
                       const void*              buffer,               
                       uint32_t                 size)                 
{                                                                     
ffc065cc:	93 21 00 0c 	stw     r25,12(r1)                             
  device = sc->device;                                                
  segment = sc->segment;                                              
  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",      
ffc065d0:	7f 88 e3 78 	mr      r8,r28                                 
rtems_fdisk_seg_write (const rtems_flashdisk*   fd,                   
                       rtems_fdisk_segment_ctl* sc,                   
                       uint32_t                 offset,               
                       const void*              buffer,               
                       uint32_t                 size)                 
{                                                                     
ffc065d4:	7c d9 33 78 	mr      r25,r6                                 
  device = sc->device;                                                
  segment = sc->segment;                                              
  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",      
ffc065d8:	7f e6 fb 78 	mr      r6,r31                                 
rtems_fdisk_seg_write (const rtems_flashdisk*   fd,                   
                       rtems_fdisk_segment_ctl* sc,                   
                       uint32_t                 offset,               
                       const void*              buffer,               
                       uint32_t                 size)                 
{                                                                     
ffc065dc:	93 01 00 08 	stw     r24,8(r1)                              
static const rtems_fdisk_segment_desc*                                
rtems_fdisk_seg_descriptor (const rtems_flashdisk* fd,                
                            uint32_t               device,            
                            uint32_t               segment)           
{                                                                     
  return fd->devices[device].segments[segment].descriptor;            
ffc065e0:	83 0a 00 04 	lwz     r24,4(r10)                             
  device = sc->device;                                                
  segment = sc->segment;                                              
  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",      
ffc065e4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc065e8:	4b ff fe 85 	bl      ffc0646c <rtems_fdisk_printf>          
                      device, segment, offset, size);                 
#endif                                                                
  ret = ops->write (sd, device, segment, offset, buffer, size);       
ffc065ec:	81 3a 00 04 	lwz     r9,4(r26)                              
ffc065f0:	7f c4 f3 78 	mr      r4,r30                                 
ffc065f4:	7f 03 c3 78 	mr      r3,r24                                 
ffc065f8:	7f e5 fb 78 	mr      r5,r31                                 
ffc065fc:	7d 29 03 a6 	mtctr   r9                                     
ffc06600:	7f 66 db 78 	mr      r6,r27                                 
ffc06604:	7f 27 cb 78 	mr      r7,r25                                 
ffc06608:	7f 88 e3 78 	mr      r8,r28                                 
ffc0660c:	4e 80 04 21 	bctrl                                          
  if (ret)                                                            
ffc06610:	2c 03 00 00 	cmpwi   r3,0                                   
ffc06614:	41 82 00 0c 	beq-    ffc06620 <rtems_fdisk_seg_write+0xbc>  <== ALWAYS TAKEN
    sc->failed = true;                                                
ffc06618:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc0661c:	91 3d 00 28 	stw     r9,40(r29)                             <== NOT EXECUTED
                                                                      
  return ret;                                                         
}                                                                     
ffc06620:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc06624:	83 01 00 08 	lwz     r24,8(r1)                              
ffc06628:	7c 08 03 a6 	mtlr    r0                                     
ffc0662c:	83 21 00 0c 	lwz     r25,12(r1)                             
ffc06630:	83 41 00 10 	lwz     r26,16(r1)                             
ffc06634:	83 61 00 14 	lwz     r27,20(r1)                             
ffc06638:	83 81 00 18 	lwz     r28,24(r1)                             
ffc0663c:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc06640:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc06644:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc06648:	38 21 00 28 	addi    r1,r1,40                               
ffc0664c:	4e 80 00 20 	blr                                            
                                                                      

ffc06f94 <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) {
ffc06f94:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc06f98:	7c 08 02 a6 	mflr    r0                                     
ffc06f9c:	90 01 00 1c 	stw     r0,28(r1)                              
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
ffc06fa0:	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)          
{                                                                     
ffc06fa4:	93 81 00 08 	stw     r28,8(r1)                              
ffc06fa8:	7c dc 33 78 	mr      r28,r6                                 
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
ffc06fac:	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)          
{                                                                     
ffc06fb0:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc06fb4:	7c bd 2b 78 	mr      r29,r5                                 
ffc06fb8:	93 c1 00 10 	stw     r30,16(r1)                             
ffc06fbc:	7c 9e 23 78 	mr      r30,r4                                 
ffc06fc0:	93 e1 00 14 	stw     r31,20(r1)                             
ffc06fc4:	7c 7f 1b 78 	mr      r31,r3                                 
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
ffc06fc8:	41 82 00 20 	beq-    ffc06fe8 <rtems_fdisk_seg_write_page+0x54><== NEVER TAKEN
rtems_fdisk_seg_blank_check_page (const rtems_flashdisk*   fd,        
                                  rtems_fdisk_segment_ctl* sc,        
                                  uint32_t                 page)      
{                                                                     
  return rtems_fdisk_seg_blank_check (fd, sc,                         
                                      page * fd->block_size, fd->block_size);
ffc06fcc:	80 e3 00 14 	lwz     r7,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,                         
ffc06fd0:	80 84 00 08 	lwz     r4,8(r4)                               
ffc06fd4:	7c c5 39 d6 	mullw   r6,r5,r7                               
ffc06fd8:	80 be 00 0c 	lwz     r5,12(r30)                             
ffc06fdc:	4b ff fe fd 	bl      ffc06ed8 <rtems_fdisk_seg_blank_check.isra.15>
                            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)                                                          
ffc06fe0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06fe4:	40 9e 00 44 	bne-    cr7,ffc07028 <rtems_fdisk_seg_write_page+0x94><== NEVER TAKEN
      return ret;                                                     
  }                                                                   
  --fd->erased_blocks;                                                
  return rtems_fdisk_seg_write (fd, sc,                               
                                page * fd->block_size, buffer, fd->block_size);
}                                                                     
ffc06fe8:	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,                               
ffc06fec:	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;                                                
ffc06ff0:	81 3f 00 28 	lwz     r9,40(r31)                             
  return rtems_fdisk_seg_write (fd, sc,                               
ffc06ff4:	7f c4 f3 78 	mr      r4,r30                                 
                                page * fd->block_size, buffer, fd->block_size);
ffc06ff8:	80 ff 00 14 	lwz     r7,20(r31)                             
}                                                                     
ffc06ffc:	7c 08 03 a6 	mtlr    r0                                     
  {                                                                   
    int ret = rtems_fdisk_seg_blank_check_page (fd, sc, page);        
    if (ret)                                                          
      return ret;                                                     
  }                                                                   
  --fd->erased_blocks;                                                
ffc07000:	39 29 ff ff 	addi    r9,r9,-1                               
  return rtems_fdisk_seg_write (fd, sc,                               
                                page * fd->block_size, buffer, fd->block_size);
}                                                                     
ffc07004:	83 c1 00 10 	lwz     r30,16(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,                               
ffc07008:	7c bd 39 d6 	mullw   r5,r29,r7                              
  {                                                                   
    int ret = rtems_fdisk_seg_blank_check_page (fd, sc, page);        
    if (ret)                                                          
      return ret;                                                     
  }                                                                   
  --fd->erased_blocks;                                                
ffc0700c:	91 3f 00 28 	stw     r9,40(r31)                             
  return rtems_fdisk_seg_write (fd, sc,                               
                                page * fd->block_size, buffer, fd->block_size);
}                                                                     
ffc07010:	83 a1 00 0c 	lwz     r29,12(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,                               
ffc07014:	7f 86 e3 78 	mr      r6,r28                                 
                                page * fd->block_size, buffer, fd->block_size);
}                                                                     
ffc07018:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0701c:	83 81 00 08 	lwz     r28,8(r1)                              
ffc07020:	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,                               
ffc07024:	4b ff f5 40 	b       ffc06564 <rtems_fdisk_seg_write>       
                                page * fd->block_size, buffer, fd->block_size);
}                                                                     
ffc07028:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
ffc0702c:	83 81 00 08 	lwz     r28,8(r1)                              <== NOT EXECUTED
ffc07030:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc07034:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc07038:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc0703c:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc07040:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc07044:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc07048 <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) {
ffc07048:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0704c:	7c 08 02 a6 	mflr    r0                                     
ffc07050:	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))             
ffc07054:	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)
{                                                                     
ffc07058:	93 81 00 08 	stw     r28,8(r1)                              
ffc0705c:	7c dc 33 78 	mr      r28,r6                                 
  uint32_t offset = page * sizeof (rtems_fdisk_page_desc);            
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
ffc07060:	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)
{                                                                     
ffc07064:	93 a1 00 0c 	stw     r29,12(r1)                             
  uint32_t offset = page * sizeof (rtems_fdisk_page_desc);            
ffc07068:	54 bd 18 38 	rlwinm  r29,r5,3,0,28                          
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)
{                                                                     
ffc0706c:	93 c1 00 10 	stw     r30,16(r1)                             
ffc07070:	7c 7e 1b 78 	mr      r30,r3                                 
ffc07074:	93 e1 00 14 	stw     r31,20(r1)                             
ffc07078:	7c 9f 23 78 	mr      r31,r4                                 
  uint32_t offset = page * sizeof (rtems_fdisk_page_desc);            
  if ((fd->flags & RTEMS_FDISK_BLANK_CHECK_BEFORE_WRITE))             
ffc0707c:	41 82 00 20 	beq-    ffc0709c <rtems_fdisk_seg_write_page_desc+0x54><== NEVER TAKEN
  {                                                                   
    int ret = rtems_fdisk_seg_blank_check (fd, sc,                    
ffc07080:	80 84 00 08 	lwz     r4,8(r4)                               
ffc07084:	7f a6 eb 78 	mr      r6,r29                                 
ffc07088:	80 bf 00 0c 	lwz     r5,12(r31)                             
ffc0708c:	38 e0 00 08 	li      r7,8                                   
ffc07090:	4b ff fe 49 	bl      ffc06ed8 <rtems_fdisk_seg_blank_check.isra.15>
                                           offset,                    
                                           sizeof (rtems_fdisk_page_desc));
    if (ret)                                                          
ffc07094:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07098:	40 9e 00 38 	bne-    cr7,ffc070d0 <rtems_fdisk_seg_write_page_desc+0x88><== NEVER TAKEN
      return ret;                                                     
  }                                                                   
  return rtems_fdisk_seg_write (fd, sc, offset,                       
                                page_desc, sizeof (rtems_fdisk_page_desc));
}                                                                     
ffc0709c:	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,                       
ffc070a0:	7f c3 f3 78 	mr      r3,r30                                 
ffc070a4:	7f e4 fb 78 	mr      r4,r31                                 
                                page_desc, sizeof (rtems_fdisk_page_desc));
}                                                                     
ffc070a8:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc070ac:	7c 08 03 a6 	mtlr    r0                                     
ffc070b0:	83 e1 00 14 	lwz     r31,20(r1)                             
                                           offset,                    
                                           sizeof (rtems_fdisk_page_desc));
    if (ret)                                                          
      return ret;                                                     
  }                                                                   
  return rtems_fdisk_seg_write (fd, sc, offset,                       
ffc070b4:	7f a5 eb 78 	mr      r5,r29                                 
                                page_desc, sizeof (rtems_fdisk_page_desc));
}                                                                     
ffc070b8:	83 a1 00 0c 	lwz     r29,12(r1)                             
                                           offset,                    
                                           sizeof (rtems_fdisk_page_desc));
    if (ret)                                                          
      return ret;                                                     
  }                                                                   
  return rtems_fdisk_seg_write (fd, sc, offset,                       
ffc070bc:	7f 86 e3 78 	mr      r6,r28                                 
                                page_desc, sizeof (rtems_fdisk_page_desc));
}                                                                     
ffc070c0:	83 81 00 08 	lwz     r28,8(r1)                              
                                           offset,                    
                                           sizeof (rtems_fdisk_page_desc));
    if (ret)                                                          
      return ret;                                                     
  }                                                                   
  return rtems_fdisk_seg_write (fd, sc, offset,                       
ffc070c4:	38 e0 00 08 	li      r7,8                                   
                                page_desc, sizeof (rtems_fdisk_page_desc));
}                                                                     
ffc070c8:	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,                       
ffc070cc:	4b ff f4 98 	b       ffc06564 <rtems_fdisk_seg_write>       
                                page_desc, sizeof (rtems_fdisk_page_desc));
}                                                                     
ffc070d0:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
ffc070d4:	83 81 00 08 	lwz     r28,8(r1)                              <== NOT EXECUTED
ffc070d8:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc070dc:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc070e0:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc070e4:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc070e8:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc070ec:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc069ec <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)
ffc069ec:	2c 04 00 00 	cmpwi   r4,0                                   
ffc069f0:	41 82 00 34 	beq-    ffc06a24 <rtems_fdisk_segment_queue_insert_before+0x38><== NEVER TAKEN
  {                                                                   
    rtems_fdisk_segment_ctl** prev = &queue->head;                    
    rtems_fdisk_segment_ctl*  it = queue->head;                       
ffc069f4:	81 43 00 00 	lwz     r10,0(r3)                              
                                                                      
    while (it)                                                        
ffc069f8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc069fc:	41 9e 00 28 	beq-    cr7,ffc06a24 <rtems_fdisk_segment_queue_insert_before+0x38><== NEVER TAKEN
    {                                                                 
      if (item == it)                                                 
ffc06a00:	7f 84 50 00 	cmpw    cr7,r4,r10                             
ffc06a04:	40 be 00 10 	bne+    cr7,ffc06a14 <rtems_fdisk_segment_queue_insert_before+0x28>
ffc06a08:	48 00 00 54 	b       ffc06a5c <rtems_fdisk_segment_queue_insert_before+0x70>
ffc06a0c:	41 9a 00 54 	beq-    cr6,ffc06a60 <rtems_fdisk_segment_queue_insert_before+0x74><== ALWAYS TAKEN
ffc06a10:	7d 2a 4b 78 	mr      r10,r9                                 <== NOT EXECUTED
        queue->count++;                                               
        return;                                                       
      }                                                               
                                                                      
      prev = &it->next;                                               
      it = it->next;                                                  
ffc06a14:	81 2a 00 00 	lwz     r9,0(r10)                              
  if (item)                                                           
  {                                                                   
    rtems_fdisk_segment_ctl** prev = &queue->head;                    
    rtems_fdisk_segment_ctl*  it = queue->head;                       
                                                                      
    while (it)                                                        
ffc06a18:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    {                                                                 
      if (item == it)                                                 
ffc06a1c:	7f 04 48 00 	cmpw    cr6,r4,r9                              
  if (item)                                                           
  {                                                                   
    rtems_fdisk_segment_ctl** prev = &queue->head;                    
    rtems_fdisk_segment_ctl*  it = queue->head;                       
                                                                      
    while (it)                                                        
ffc06a20:	40 9e ff ec 	bne+    cr7,ffc06a0c <rtems_fdisk_segment_queue_insert_before+0x20><== ALWAYS TAKEN
 */                                                                   
static void                                                           
rtems_fdisk_segment_queue_push_tail (rtems_fdisk_segment_ctl_queue* queue,
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
ffc06a24:	2f 85 00 00 	cmpwi   cr7,r5,0                               <== NOT EXECUTED
ffc06a28:	4d 9e 00 20 	beqlr   cr7                                    <== NOT EXECUTED
  {                                                                   
    sc->next = 0;                                                     
                                                                      
    if (queue->head)                                                  
ffc06a2c:	81 23 00 00 	lwz     r9,0(r3)                               <== NOT EXECUTED
rtems_fdisk_segment_queue_push_tail (rtems_fdisk_segment_ctl_queue* queue,
                                     rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (sc)                                                             
  {                                                                   
    sc->next = 0;                                                     
ffc06a30:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
ffc06a34:	91 45 00 00 	stw     r10,0(r5)                              <== NOT EXECUTED
                                                                      
    if (queue->head)                                                  
ffc06a38:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc06a3c:	41 9e 00 3c 	beq-    cr7,ffc06a78 <rtems_fdisk_segment_queue_insert_before+0x8c><== NOT EXECUTED
    {                                                                 
      queue->tail->next = sc;                                         
ffc06a40:	81 23 00 04 	lwz     r9,4(r3)                               <== NOT EXECUTED
ffc06a44:	90 a9 00 00 	stw     r5,0(r9)                               <== NOT EXECUTED
      queue->tail       = sc;                                         
ffc06a48:	90 a3 00 04 	stw     r5,4(r3)                               <== NOT EXECUTED
    else                                                              
    {                                                                 
      queue->head = queue->tail = sc;                                 
    }                                                                 
                                                                      
    queue->count++;                                                   
ffc06a4c:	81 23 00 08 	lwz     r9,8(r3)                               <== NOT EXECUTED
ffc06a50:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
ffc06a54:	91 23 00 08 	stw     r9,8(r3)                               <== NOT EXECUTED
ffc06a58:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                         rtems_fdisk_segment_ctl*       item,
                                         rtems_fdisk_segment_ctl*       sc)
{                                                                     
  if (item)                                                           
  {                                                                   
    rtems_fdisk_segment_ctl** prev = &queue->head;                    
ffc06a5c:	7c 6a 1b 78 	mr      r10,r3                                 
    {                                                                 
      if (item == it)                                                 
      {                                                               
        sc->next = item;                                              
        *prev = sc;                                                   
        queue->count++;                                               
ffc06a60:	81 23 00 08 	lwz     r9,8(r3)                               
                                                                      
    while (it)                                                        
    {                                                                 
      if (item == it)                                                 
      {                                                               
        sc->next = item;                                              
ffc06a64:	90 85 00 00 	stw     r4,0(r5)                               
        *prev = sc;                                                   
        queue->count++;                                               
ffc06a68:	39 29 00 01 	addi    r9,r9,1                                
    while (it)                                                        
    {                                                                 
      if (item == it)                                                 
      {                                                               
        sc->next = item;                                              
        *prev = sc;                                                   
ffc06a6c:	90 aa 00 00 	stw     r5,0(r10)                              
        queue->count++;                                               
ffc06a70:	91 23 00 08 	stw     r9,8(r3)                               
        return;                                                       
ffc06a74:	4e 80 00 20 	blr                                            
      queue->tail->next = sc;                                         
      queue->tail       = sc;                                         
    }                                                                 
    else                                                              
    {                                                                 
      queue->head = queue->tail = sc;                                 
ffc06a78:	90 a3 00 04 	stw     r5,4(r3)                               <== NOT EXECUTED
ffc06a7c:	90 a3 00 00 	stw     r5,0(r3)                               <== NOT EXECUTED
ffc06a80:	4b ff ff cc 	b       ffc06a4c <rtems_fdisk_segment_queue_insert_before+0x60><== NOT EXECUTED
                                                                      

ffc061ec <rtems_fdisk_segment_queue_remove>: static void rtems_fdisk_segment_queue_remove (rtems_fdisk_segment_ctl_queue* queue, rtems_fdisk_segment_ctl* sc) { rtems_fdisk_segment_ctl* prev = 0; rtems_fdisk_segment_ctl* it = queue->head;
ffc061ec:	81 43 00 00 	lwz     r10,0(r3)                              
                                                                      
  /*                                                                  
   * Do not change sc->next as sc could be on another queue.          
   */                                                                 
                                                                      
  while (it)                                                          
ffc061f0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc061f4:	4d 9e 00 20 	beqlr   cr7                                    
  {                                                                   
    if (sc == it)                                                     
ffc061f8:	7f 8a 20 00 	cmpw    cr7,r10,r4                             
ffc061fc:	40 be 00 10 	bne+    cr7,ffc0620c <rtems_fdisk_segment_queue_remove+0x20>
ffc06200:	48 00 00 54 	b       ffc06254 <rtems_fdisk_segment_queue_remove+0x68>
ffc06204:	41 9a 00 1c 	beq-    cr6,ffc06220 <rtems_fdisk_segment_queue_remove+0x34>
ffc06208:	7d 2a 4b 78 	mr      r10,r9                                 
      queue->count--;                                                 
      break;                                                          
    }                                                                 
                                                                      
    prev = it;                                                        
    it = it->next;                                                    
ffc0620c:	81 2a 00 00 	lwz     r9,0(r10)                              
                                                                      
  /*                                                                  
   * Do not change sc->next as sc could be on another queue.          
   */                                                                 
                                                                      
  while (it)                                                          
ffc06210:	2f 89 00 00 	cmpwi   cr7,r9,0                               
  {                                                                   
    if (sc == it)                                                     
ffc06214:	7f 04 48 00 	cmpw    cr6,r4,r9                              
                                                                      
  /*                                                                  
   * Do not change sc->next as sc could be on another queue.          
   */                                                                 
                                                                      
  while (it)                                                          
ffc06218:	40 9e ff ec 	bne+    cr7,ffc06204 <rtems_fdisk_segment_queue_remove+0x18>
ffc0621c:	4e 80 00 20 	blr                                            
          queue->tail = 0;                                            
      }                                                               
      else                                                            
      {                                                               
        prev->next = sc->next;                                        
        if (queue->tail == sc)                                        
ffc06220:	81 03 00 04 	lwz     r8,4(r3)                               
        if (queue->head == 0)                                         
          queue->tail = 0;                                            
      }                                                               
      else                                                            
      {                                                               
        prev->next = sc->next;                                        
ffc06224:	81 24 00 00 	lwz     r9,0(r4)                               
        if (queue->tail == sc)                                        
ffc06228:	7f 88 20 00 	cmpw    cr7,r8,r4                              
        if (queue->head == 0)                                         
          queue->tail = 0;                                            
      }                                                               
      else                                                            
      {                                                               
        prev->next = sc->next;                                        
ffc0622c:	91 2a 00 00 	stw     r9,0(r10)                              
        if (queue->tail == sc)                                        
ffc06230:	41 9e 00 1c 	beq-    cr7,ffc0624c <rtems_fdisk_segment_queue_remove+0x60><== ALWAYS TAKEN
          queue->tail = prev;                                         
      }                                                               
      sc->next = 0;                                                   
      queue->count--;                                                 
ffc06234:	81 23 00 08 	lwz     r9,8(r3)                               
      {                                                               
        prev->next = sc->next;                                        
        if (queue->tail == sc)                                        
          queue->tail = prev;                                         
      }                                                               
      sc->next = 0;                                                   
ffc06238:	39 40 00 00 	li      r10,0                                  
ffc0623c:	91 44 00 00 	stw     r10,0(r4)                              
      queue->count--;                                                 
ffc06240:	39 29 ff ff 	addi    r9,r9,-1                               
ffc06244:	91 23 00 08 	stw     r9,8(r3)                               
      break;                                                          
ffc06248:	4e 80 00 20 	blr                                            
      }                                                               
      else                                                            
      {                                                               
        prev->next = sc->next;                                        
        if (queue->tail == sc)                                        
          queue->tail = prev;                                         
ffc0624c:	91 43 00 04 	stw     r10,4(r3)                              
ffc06250:	4b ff ff e4 	b       ffc06234 <rtems_fdisk_segment_queue_remove+0x48>
  {                                                                   
    if (sc == it)                                                     
    {                                                                 
      if (prev == 0)                                                  
      {                                                               
        queue->head = sc->next;                                       
ffc06254:	81 24 00 00 	lwz     r9,0(r4)                               
        if (queue->head == 0)                                         
ffc06258:	2f 89 00 00 	cmpwi   cr7,r9,0                               
  {                                                                   
    if (sc == it)                                                     
    {                                                                 
      if (prev == 0)                                                  
      {                                                               
        queue->head = sc->next;                                       
ffc0625c:	91 23 00 00 	stw     r9,0(r3)                               
        if (queue->head == 0)                                         
ffc06260:	40 9e ff d4 	bne+    cr7,ffc06234 <rtems_fdisk_segment_queue_remove+0x48>
          queue->tail = 0;                                            
ffc06264:	91 23 00 04 	stw     r9,4(r3)                               
ffc06268:	4b ff ff cc 	b       ffc06234 <rtems_fdisk_segment_queue_remove+0x48>
                                                                      

ffc06650 <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, ...) {
ffc06650:	94 21 ff 80 	stwu    r1,-128(r1)                            <== NOT EXECUTED
ffc06654:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc06658:	93 a1 00 74 	stw     r29,116(r1)                            <== NOT EXECUTED
ffc0665c:	90 01 00 84 	stw     r0,132(r1)                             <== NOT EXECUTED
ffc06660:	93 c1 00 78 	stw     r30,120(r1)                            <== NOT EXECUTED
ffc06664:	93 e1 00 7c 	stw     r31,124(r1)                            <== NOT EXECUTED
ffc06668:	90 a1 00 18 	stw     r5,24(r1)                              <== NOT EXECUTED
ffc0666c:	90 c1 00 1c 	stw     r6,28(r1)                              <== NOT EXECUTED
ffc06670:	90 e1 00 20 	stw     r7,32(r1)                              <== NOT EXECUTED
ffc06674:	91 01 00 24 	stw     r8,36(r1)                              <== NOT EXECUTED
ffc06678:	91 21 00 28 	stw     r9,40(r1)                              <== NOT EXECUTED
ffc0667c:	91 41 00 2c 	stw     r10,44(r1)                             <== NOT EXECUTED
ffc06680:	40 86 00 24 	bne-    cr1,ffc066a4 <rtems_fdisk_warning+0x54><== NOT EXECUTED
ffc06684:	d8 21 00 30 	stfd    f1,48(r1)                              <== NOT EXECUTED
ffc06688:	d8 41 00 38 	stfd    f2,56(r1)                              <== NOT EXECUTED
ffc0668c:	d8 61 00 40 	stfd    f3,64(r1)                              <== NOT EXECUTED
ffc06690:	d8 81 00 48 	stfd    f4,72(r1)                              <== NOT EXECUTED
ffc06694:	d8 a1 00 50 	stfd    f5,80(r1)                              <== NOT EXECUTED
ffc06698:	d8 c1 00 58 	stfd    f6,88(r1)                              <== NOT EXECUTED
ffc0669c:	d8 e1 00 60 	stfd    f7,96(r1)                              <== NOT EXECUTED
ffc066a0:	d9 01 00 68 	stfd    f8,104(r1)                             <== NOT EXECUTED
  int ret = 0;                                                        
  if (fd->info_level >= 1)                                            
ffc066a4:	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, ...)
{                                                                     
ffc066a8:	7c 9d 23 78 	mr      r29,r4                                 <== NOT EXECUTED
  int ret = 0;                                                        
ffc066ac:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
  if (fd->info_level >= 1)                                            
ffc066b0:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc066b4:	41 be 00 74 	beq+    cr7,ffc06728 <rtems_fdisk_warning+0xd8><== NOT EXECUTED
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
    fprintf (stdout, "fdisk:warning:");                               
ffc066b8:	3f c0 00 00 	lis     r30,0                                  <== NOT EXECUTED
{                                                                     
  int ret = 0;                                                        
  if (fd->info_level >= 1)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc066bc:	9b e1 00 09 	stb     r31,9(r1)                              <== NOT EXECUTED
    fprintf (stdout, "fdisk:warning:");                               
ffc066c0:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc066c4:	81 3e 28 0c 	lwz     r9,10252(r30)                          <== NOT EXECUTED
ffc066c8:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc066cc:	38 a0 00 0e 	li      r5,14                                  <== NOT EXECUTED
ffc066d0:	80 c9 00 08 	lwz     r6,8(r9)                               <== NOT EXECUTED
{                                                                     
  int ret = 0;                                                        
  if (fd->info_level >= 1)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc066d4:	39 20 00 02 	li      r9,2                                   <== NOT EXECUTED
ffc066d8:	99 21 00 08 	stb     r9,8(r1)                               <== NOT EXECUTED
ffc066dc:	39 21 00 88 	addi    r9,r1,136                              <== NOT EXECUTED
    fprintf (stdout, "fdisk:warning:");                               
ffc066e0:	38 63 a9 d8 	addi    r3,r3,-22056                           <== NOT EXECUTED
{                                                                     
  int ret = 0;                                                        
  if (fd->info_level >= 1)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
ffc066e4:	91 21 00 0c 	stw     r9,12(r1)                              <== NOT EXECUTED
ffc066e8:	39 21 00 10 	addi    r9,r1,16                               <== NOT EXECUTED
ffc066ec:	91 21 00 10 	stw     r9,16(r1)                              <== NOT EXECUTED
    fprintf (stdout, "fdisk:warning:");                               
ffc066f0:	48 02 3d 35 	bl      ffc2a424 <fwrite>                      <== NOT EXECUTED
    ret =  vfprintf (stdout, format, args);                           
ffc066f4:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc066f8:	81 3e 28 0c 	lwz     r9,10252(r30)                          <== NOT EXECUTED
ffc066fc:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc06700:	80 69 00 08 	lwz     r3,8(r9)                               <== NOT EXECUTED
ffc06704:	48 02 c9 09 	bl      ffc3300c <vfprintf>                    <== NOT EXECUTED
    fprintf (stdout, "\n");                                           
ffc06708:	81 3e 28 0c 	lwz     r9,10252(r30)                          <== NOT EXECUTED
  if (fd->info_level >= 1)                                            
  {                                                                   
    va_list args;                                                     
    va_start (args, format);                                          
    fprintf (stdout, "fdisk:warning:");                               
    ret =  vfprintf (stdout, format, args);                           
ffc0670c:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
    fprintf (stdout, "\n");                                           
ffc06710:	80 89 00 08 	lwz     r4,8(r9)                               <== NOT EXECUTED
ffc06714:	38 60 00 0a 	li      r3,10                                  <== NOT EXECUTED
ffc06718:	48 02 33 d5 	bl      ffc29aec <fputc>                       <== NOT EXECUTED
    fflush (stdout);                                                  
ffc0671c:	81 3e 28 0c 	lwz     r9,10252(r30)                          <== NOT EXECUTED
ffc06720:	80 69 00 08 	lwz     r3,8(r9)                               <== NOT EXECUTED
ffc06724:	48 02 2d 9d 	bl      ffc294c0 <fflush>                      <== NOT EXECUTED
    va_end (args);                                                    
  }                                                                   
  return ret;                                                         
}                                                                     
ffc06728:	80 01 00 84 	lwz     r0,132(r1)                             <== NOT EXECUTED
ffc0672c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc06730:	83 a1 00 74 	lwz     r29,116(r1)                            <== NOT EXECUTED
ffc06734:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc06738:	83 c1 00 78 	lwz     r30,120(r1)                            <== NOT EXECUTED
ffc0673c:	83 e1 00 7c 	lwz     r31,124(r1)                            <== NOT EXECUTED
ffc06740:	38 21 00 80 	addi    r1,r1,128                              <== NOT EXECUTED
ffc06744:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc06630 <rtems_filesystem_do_unmount>: } void rtems_filesystem_do_unmount( rtems_filesystem_mount_table_entry_t *mt_entry ) {
ffc06630:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc06634:	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 );
ffc06638:	38 80 00 00 	li      r4,0                                   
ffc0663c:	93 c1 00 08 	stw     r30,8(r1)                              
ffc06640:	3f c0 00 00 	lis     r30,0                                  
ffc06644:	38 a0 00 00 	li      r5,0                                   
ffc06648:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0664c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc06650:	80 7e 28 54 	lwz     r3,10324(r30)                          
ffc06654:	90 01 00 14 	stw     r0,20(r1)                              
ffc06658:	48 00 33 c9 	bl      ffc09a20 <rtems_semaphore_obtain>      
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc0665c:	81 3f 00 00 	lwz     r9,0(r31)                              
  previous       = the_node->previous;                                
ffc06660:	81 5f 00 04 	lwz     r10,4(r31)                             
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
ffc06664:	80 7e 28 54 	lwz     r3,10324(r30)                          
  next->previous = previous;                                          
ffc06668:	91 49 00 04 	stw     r10,4(r9)                              
  previous->next = next;                                              
ffc0666c:	91 2a 00 00 	stw     r9,0(r10)                              
ffc06670:	48 00 35 51 	bl      ffc09bc0 <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);  
ffc06674:	80 7f 00 20 	lwz     r3,32(r31)                             
ffc06678:	48 00 02 0d 	bl      ffc06884 <rtems_filesystem_global_location_release>
  (*mt_entry->ops->fsunmount_me_h)(mt_entry);                         
ffc0667c:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc06680:	7f e3 fb 78 	mr      r3,r31                                 
ffc06684:	81 29 00 3c 	lwz     r9,60(r9)                              
ffc06688:	7d 29 03 a6 	mtctr   r9                                     
ffc0668c:	4e 80 04 21 	bctrl                                          
                                                                      
  if (mt_entry->unmount_task != 0) {                                  
ffc06690:	80 7f 00 3c 	lwz     r3,60(r31)                             
ffc06694:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06698:	41 9e 00 14 	beq-    cr7,ffc066ac <rtems_filesystem_do_unmount+0x7c><== 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 ); 
ffc0669c:	3c 80 80 00 	lis     r4,-32768                              
ffc066a0:	48 00 36 01 	bl      ffc09ca0 <rtems_event_system_send>     
    rtems_status_code sc =                                            
      rtems_event_transient_send(mt_entry->unmount_task);             
    if (sc != RTEMS_SUCCESSFUL) {                                     
ffc066a4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc066a8:	40 9e 00 20 	bne-    cr7,ffc066c8 <rtems_filesystem_do_unmount+0x98><== NEVER TAKEN
      rtems_fatal_error_occurred(0xdeadbeef);                         
    }                                                                 
  }                                                                   
                                                                      
  free(mt_entry);                                                     
}                                                                     
ffc066ac:	80 01 00 14 	lwz     r0,20(r1)                              
    if (sc != RTEMS_SUCCESSFUL) {                                     
      rtems_fatal_error_occurred(0xdeadbeef);                         
    }                                                                 
  }                                                                   
                                                                      
  free(mt_entry);                                                     
ffc066b0:	7f e3 fb 78 	mr      r3,r31                                 
}                                                                     
ffc066b4:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc066b8:	7c 08 03 a6 	mtlr    r0                                     
ffc066bc:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc066c0:	38 21 00 10 	addi    r1,r1,16                               
    if (sc != RTEMS_SUCCESSFUL) {                                     
      rtems_fatal_error_occurred(0xdeadbeef);                         
    }                                                                 
  }                                                                   
                                                                      
  free(mt_entry);                                                     
ffc066c4:	4b ff e4 a4 	b       ffc04b68 <free>                        
                                                                      
  if (mt_entry->unmount_task != 0) {                                  
    rtems_status_code sc =                                            
      rtems_event_transient_send(mt_entry->unmount_task);             
    if (sc != RTEMS_SUCCESSFUL) {                                     
      rtems_fatal_error_occurred(0xdeadbeef);                         
ffc066c8:	3c 60 de ad 	lis     r3,-8531                               <== NOT EXECUTED
ffc066cc:	60 63 be ef 	ori     r3,r3,48879                            <== NOT EXECUTED
ffc066d0:	48 00 3c cd 	bl      ffc0a39c <rtems_fatal_error_occurred>  <== NOT EXECUTED
                                                                      

ffc0f480 <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 ) {
ffc0f480:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0f484:	7c 08 02 a6 	mflr    r0                                     
            } else {                                                  
              /* This is the root file system */                      
              status = (*config->eval_token)(ctx, arg, ".", 1);       
            }                                                         
          } else {                                                    
            status = (*config->eval_token)(ctx, arg, "..", 2);        
ffc0f488:	3d 20 ff c2 	lis     r9,-62                                 
void rtems_filesystem_eval_path_generic(                              
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const rtems_filesystem_eval_path_generic_config *config             
)                                                                     
{                                                                     
ffc0f48c:	93 01 00 08 	stw     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);        
ffc0f490:	3b 09 00 84 	addi    r24,r9,132                             
                ¤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);       
ffc0f494:	3d 20 ff c2 	lis     r9,-62                                 
void rtems_filesystem_eval_path_generic(                              
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const rtems_filesystem_eval_path_generic_config *config             
)                                                                     
{                                                                     
ffc0f498:	90 01 00 2c 	stw     r0,44(r1)                              
ffc0f49c:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc0f4a0:	93 c1 00 20 	stw     r30,32(r1)                             
ffc0f4a4:	93 21 00 0c 	stw     r25,12(r1)                             
                ¤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);       
ffc0f4a8:	3b 29 fd 28 	addi    r25,r9,-728                            
void rtems_filesystem_eval_path_generic(                              
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const rtems_filesystem_eval_path_generic_config *config             
)                                                                     
{                                                                     
ffc0f4ac:	93 41 00 10 	stw     r26,16(r1)                             
              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 =              
ffc0f4b0:	3b 43 00 18 	addi    r26,r3,24                              
void rtems_filesystem_eval_path_generic(                              
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const rtems_filesystem_eval_path_generic_config *config             
)                                                                     
{                                                                     
ffc0f4b4:	93 61 00 14 	stw     r27,20(r1)                             
ffc0f4b8:	7c 9b 23 78 	mr      r27,r4                                 
ffc0f4bc:	93 81 00 18 	stw     r28,24(r1)                             
ffc0f4c0:	7c bc 2b 78 	mr      r28,r5                                 
ffc0f4c4:	93 e1 00 24 	stw     r31,36(r1)                             
ffc0f4c8:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_filesystem_eval_path_context_t *ctx,                          
  const char **token,                                                 
  size_t *tokenlen                                                    
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_next_token(ctx);                         
ffc0f4cc:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f4d0:	48 00 03 0d 	bl      ffc0f7dc <rtems_filesystem_eval_path_next_token>
  *token = ctx->token;                                                
  *tokenlen = ctx->tokenlen;                                          
ffc0f4d4:	83 df 00 0c 	lwz     r30,12(r31)                            
  const char **token,                                                 
  size_t *tokenlen                                                    
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_next_token(ctx);                         
  *token = ctx->token;                                                
ffc0f4d8:	83 bf 00 08 	lwz     r29,8(r31)                             
    const char *token;                                                
    size_t tokenlen;                                                  
                                                                      
    rtems_filesystem_eval_path_get_next_token(ctx, &token, &tokenlen);
                                                                      
    if (tokenlen > 0) {                                               
ffc0f4dc:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0f4e0:	40 9e 00 34 	bne-    cr7,ffc0f514 <rtems_filesystem_eval_path_generic+0x94>
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;               
    }                                                                 
  }                                                                   
}                                                                     
ffc0f4e4:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc0f4e8:	83 01 00 08 	lwz     r24,8(r1)                              
ffc0f4ec:	7c 08 03 a6 	mtlr    r0                                     
ffc0f4f0:	83 21 00 0c 	lwz     r25,12(r1)                             
ffc0f4f4:	83 41 00 10 	lwz     r26,16(r1)                             
ffc0f4f8:	83 61 00 14 	lwz     r27,20(r1)                             
ffc0f4fc:	83 81 00 18 	lwz     r28,24(r1)                             
ffc0f500:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0f504:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0f508:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0f50c:	38 21 00 28 	addi    r1,r1,40                               
ffc0f510:	4e 80 00 20 	blr                                            
    size_t tokenlen;                                                  
                                                                      
    rtems_filesystem_eval_path_get_next_token(ctx, &token, &tokenlen);
                                                                      
    if (tokenlen > 0) {                                               
      if ((*config->is_directory)(ctx, arg)) {                        
ffc0f514:	81 3c 00 00 	lwz     r9,0(r28)                              
ffc0f518:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f51c:	7f 64 db 78 	mr      r4,r27                                 
ffc0f520:	7d 29 03 a6 	mtctr   r9                                     
ffc0f524:	4e 80 04 21 	bctrl                                          
ffc0f528:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f52c:	41 9e 00 44 	beq-    cr7,ffc0f570 <rtems_filesystem_eval_path_generic+0xf0>
static inline bool rtems_filesystem_is_current_directory(             
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 1 && token [0] == '.';                           
ffc0f530:	2f 9e 00 01 	cmpwi   cr7,r30,1                              
ffc0f534:	41 9e 00 d8 	beq-    cr7,ffc0f60c <rtems_filesystem_eval_path_generic+0x18c>
static inline bool rtems_filesystem_is_parent_directory(              
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 2 && token [0] == '.' && token [1] == '.';       
ffc0f538:	2f 9e 00 02 	cmpwi   cr7,r30,2                              
ffc0f53c:	41 9e 01 2c 	beq-    cr7,ffc0f668 <rtems_filesystem_eval_path_generic+0x1e8>
            }                                                         
          } else {                                                    
            status = (*config->eval_token)(ctx, arg, "..", 2);        
          }                                                           
        } else {                                                      
          status = (*config->eval_token)(ctx, arg, token, tokenlen);  
ffc0f540:	81 3c 00 04 	lwz     r9,4(r28)                              
ffc0f544:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f548:	7f 64 db 78 	mr      r4,r27                                 
ffc0f54c:	7f a5 eb 78 	mr      r5,r29                                 
ffc0f550:	7d 29 03 a6 	mtctr   r9                                     
ffc0f554:	7f c6 f3 78 	mr      r6,r30                                 
ffc0f558:	4e 80 04 21 	bctrl                                          
        }                                                             
                                                                      
        if (status == RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY) {  
ffc0f55c:	2f 83 00 02 	cmpwi   cr7,r3,2                               
ffc0f560:	41 9e 00 48 	beq-    cr7,ffc0f5a8 <rtems_filesystem_eval_path_generic+0x128>
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
    RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;                      
                                                                      
  while (status == RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE) {     
ffc0f564:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f568:	41 9e ff 64 	beq+    cr7,ffc0f4cc <rtems_filesystem_eval_path_generic+0x4c>
ffc0f56c:	4b ff ff 78 	b       ffc0f4e4 <rtems_filesystem_eval_path_generic+0x64>
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;               
    }                                                                 
  }                                                                   
}                                                                     
ffc0f570:	80 01 00 2c 	lwz     r0,44(r1)                              
              rtems_filesystem_eval_path_error(ctx, ENOENT);          
            }                                                         
          }                                                           
        }                                                             
      } else {                                                        
        rtems_filesystem_eval_path_error(ctx, ENOTDIR);               
ffc0f574:	7f e3 fb 78 	mr      r3,r31                                 
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;               
    }                                                                 
  }                                                                   
}                                                                     
ffc0f578:	83 01 00 08 	lwz     r24,8(r1)                              
              rtems_filesystem_eval_path_error(ctx, ENOENT);          
            }                                                         
          }                                                           
        }                                                             
      } else {                                                        
        rtems_filesystem_eval_path_error(ctx, ENOTDIR);               
ffc0f57c:	38 80 00 14 	li      r4,20                                  
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;               
    }                                                                 
  }                                                                   
}                                                                     
ffc0f580:	7c 08 03 a6 	mtlr    r0                                     
ffc0f584:	83 21 00 0c 	lwz     r25,12(r1)                             
ffc0f588:	83 41 00 10 	lwz     r26,16(r1)                             
ffc0f58c:	83 61 00 14 	lwz     r27,20(r1)                             
ffc0f590:	83 81 00 18 	lwz     r28,24(r1)                             
ffc0f594:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0f598:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0f59c:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0f5a0:	38 21 00 28 	addi    r1,r1,40                               
              rtems_filesystem_eval_path_error(ctx, ENOENT);          
            }                                                         
          }                                                           
        }                                                             
      } else {                                                        
        rtems_filesystem_eval_path_error(ctx, ENOTDIR);               
ffc0f5a4:	4b ff 68 98 	b       ffc05e3c <rtems_filesystem_eval_path_error>
        } else {                                                      
          status = (*config->eval_token)(ctx, arg, token, tokenlen);  
        }                                                             
                                                                      
        if (status == RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY) {  
          if (rtems_filesystem_eval_path_has_path(ctx)) {             
ffc0f5a8:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc0f5ac:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f5b0:	41 9e ff 34 	beq+    cr7,ffc0f4e4 <rtems_filesystem_eval_path_generic+0x64>
            int eval_flags;                                           
                                                                      
            rtems_filesystem_eval_path_eat_delimiter(ctx);            
ffc0f5b4:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f5b8:	48 00 01 cd 	bl      ffc0f784 <rtems_filesystem_eval_path_eat_delimiter>
            eval_flags = rtems_filesystem_eval_path_get_flags(ctx);   
            if (                                                      
              (eval_flags & RTEMS_FS_ACCEPT_RESIDUAL_DELIMITERS) == 0 
ffc0f5bc:	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 (                                                      
ffc0f5c0:	71 2a 00 80 	andi.   r10,r9,128                             
ffc0f5c4:	41 82 00 10 	beq-    ffc0f5d4 <rtems_filesystem_eval_path_generic+0x154>
              (eval_flags & RTEMS_FS_ACCEPT_RESIDUAL_DELIMITERS) == 0 
                || rtems_filesystem_eval_path_has_path(ctx)           
ffc0f5c8:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc0f5cc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f5d0:	41 be ff 14 	beq-    cr7,ffc0f4e4 <rtems_filesystem_eval_path_generic+0x64>
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;               
    }                                                                 
  }                                                                   
}                                                                     
ffc0f5d4:	80 01 00 2c 	lwz     r0,44(r1)                              
            eval_flags = rtems_filesystem_eval_path_get_flags(ctx);   
            if (                                                      
              (eval_flags & RTEMS_FS_ACCEPT_RESIDUAL_DELIMITERS) == 0 
                || rtems_filesystem_eval_path_has_path(ctx)           
            ) {                                                       
              rtems_filesystem_eval_path_error(ctx, ENOENT);          
ffc0f5d8:	7f e3 fb 78 	mr      r3,r31                                 
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;               
    }                                                                 
  }                                                                   
}                                                                     
ffc0f5dc:	83 01 00 08 	lwz     r24,8(r1)                              
            eval_flags = rtems_filesystem_eval_path_get_flags(ctx);   
            if (                                                      
              (eval_flags & RTEMS_FS_ACCEPT_RESIDUAL_DELIMITERS) == 0 
                || rtems_filesystem_eval_path_has_path(ctx)           
            ) {                                                       
              rtems_filesystem_eval_path_error(ctx, ENOENT);          
ffc0f5e0:	38 80 00 02 	li      r4,2                                   
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;               
    }                                                                 
  }                                                                   
}                                                                     
ffc0f5e4:	7c 08 03 a6 	mtlr    r0                                     
ffc0f5e8:	83 21 00 0c 	lwz     r25,12(r1)                             
ffc0f5ec:	83 41 00 10 	lwz     r26,16(r1)                             
ffc0f5f0:	83 61 00 14 	lwz     r27,20(r1)                             
ffc0f5f4:	83 81 00 18 	lwz     r28,24(r1)                             
ffc0f5f8:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0f5fc:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0f600:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0f604:	38 21 00 28 	addi    r1,r1,40                               
              rtems_filesystem_eval_path_error(ctx, ENOENT);          
            }                                                         
          }                                                           
        }                                                             
      } else {                                                        
        rtems_filesystem_eval_path_error(ctx, ENOTDIR);               
ffc0f608:	4b ff 68 34 	b       ffc05e3c <rtems_filesystem_eval_path_error>
static inline bool rtems_filesystem_is_current_directory(             
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 1 && token [0] == '.';                           
ffc0f60c:	89 3d 00 00 	lbz     r9,0(r29)                              
ffc0f610:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
ffc0f614:	40 9e ff 2c 	bne+    cr7,ffc0f540 <rtems_filesystem_eval_path_generic+0xc0>
    rtems_filesystem_eval_path_get_next_token(ctx, &token, &tokenlen);
                                                                      
    if (tokenlen > 0) {                                               
      if ((*config->is_directory)(ctx, arg)) {                        
        if (rtems_filesystem_is_current_directory(token, tokenlen)) { 
          if (rtems_filesystem_eval_path_has_path(ctx)) {             
ffc0f618:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc0f61c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f620:	40 9e 01 00 	bne-    cr7,ffc0f720 <rtems_filesystem_eval_path_generic+0x2a0>
            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) {   
ffc0f624:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc0f628:	71 2a 01 00 	andi.   r10,r9,256                             
ffc0f62c:	41 82 00 f4 	beq-    ffc0f720 <rtems_filesystem_eval_path_generic+0x2a0>
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;               
    }                                                                 
  }                                                                   
}                                                                     
ffc0f630:	80 01 00 2c 	lwz     r0,44(r1)                              
            int eval_flags = rtems_filesystem_eval_path_get_flags(ctx);
                                                                      
            if ((eval_flags & RTEMS_FS_REJECT_TERMINAL_DOT) == 0) {   
              status = (*config->eval_token)(ctx, arg, ".", 1);       
            } else {                                                  
              rtems_filesystem_eval_path_error(ctx, EINVAL);          
ffc0f634:	7f e3 fb 78 	mr      r3,r31                                 
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;               
    }                                                                 
  }                                                                   
}                                                                     
ffc0f638:	83 01 00 08 	lwz     r24,8(r1)                              
            int eval_flags = rtems_filesystem_eval_path_get_flags(ctx);
                                                                      
            if ((eval_flags & RTEMS_FS_REJECT_TERMINAL_DOT) == 0) {   
              status = (*config->eval_token)(ctx, arg, ".", 1);       
            } else {                                                  
              rtems_filesystem_eval_path_error(ctx, EINVAL);          
ffc0f63c:	38 80 00 16 	li      r4,22                                  
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;               
    }                                                                 
  }                                                                   
}                                                                     
ffc0f640:	7c 08 03 a6 	mtlr    r0                                     
ffc0f644:	83 21 00 0c 	lwz     r25,12(r1)                             
ffc0f648:	83 41 00 10 	lwz     r26,16(r1)                             
ffc0f64c:	83 61 00 14 	lwz     r27,20(r1)                             
ffc0f650:	83 81 00 18 	lwz     r28,24(r1)                             
ffc0f654:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0f658:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0f65c:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0f660:	38 21 00 28 	addi    r1,r1,40                               
              rtems_filesystem_eval_path_error(ctx, ENOENT);          
            }                                                         
          }                                                           
        }                                                             
      } else {                                                        
        rtems_filesystem_eval_path_error(ctx, ENOTDIR);               
ffc0f664:	4b ff 67 d8 	b       ffc05e3c <rtems_filesystem_eval_path_error>
static inline bool rtems_filesystem_is_parent_directory(              
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 2 && token [0] == '.' && token [1] == '.';       
ffc0f668:	89 3d 00 00 	lbz     r9,0(r29)                              
ffc0f66c:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
ffc0f670:	40 9e fe d0 	bne+    cr7,ffc0f540 <rtems_filesystem_eval_path_generic+0xc0>
ffc0f674:	89 3d 00 01 	lbz     r9,1(r29)                              
ffc0f678:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
ffc0f67c:	40 9e fe c4 	bne+    cr7,ffc0f540 <rtems_filesystem_eval_path_generic+0xc0><== NEVER TAKEN
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;               
    }                                                                 
  }                                                                   
}                                                                     
ffc0f680:	80 9f 00 30 	lwz     r4,48(r31)                             
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;
ffc0f684:	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 );           
ffc0f688:	81 44 00 14 	lwz     r10,20(r4)                             
ffc0f68c:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc0f690:	41 9e 00 d0 	beq-    cr7,ffc0f760 <rtems_filesystem_eval_path_generic+0x2e0>
{                                                                     
  const rtems_filesystem_mount_table_entry_t *mt_entry = loc->mt_entry;
  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 );      
ffc0f694:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc0f698:	7f 43 d3 78 	mr      r3,r26                                 
ffc0f69c:	80 89 00 24 	lwz     r4,36(r9)                              
ffc0f6a0:	81 4a 00 10 	lwz     r10,16(r10)                            
ffc0f6a4:	7d 49 03 a6 	mtctr   r10                                    
ffc0f6a8:	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)) {                        
ffc0f6ac:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f6b0:	41 9e 00 90 	beq-    cr7,ffc0f740 <rtems_filesystem_eval_path_generic+0x2c0>
            if (currentloc->mt_entry->mt_point_node != NULL) {        
ffc0f6b4:	80 9f 00 2c 	lwz     r4,44(r31)                             
ffc0f6b8:	81 24 00 20 	lwz     r9,32(r4)                              
ffc0f6bc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f6c0:	41 9e 00 60 	beq-    cr7,ffc0f720 <rtems_filesystem_eval_path_generic+0x2a0><== NEVER TAKEN
                                                                      
static inline void rtems_filesystem_eval_path_put_back_token(         
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  size_t tokenlen = ctx->tokenlen;                                    
ffc0f6c4:	81 3f 00 0c 	lwz     r9,12(r31)                             
              rtems_filesystem_eval_path_put_back_token(ctx);         
              rtems_filesystem_eval_path_restart(                     
ffc0f6c8:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
  ctx->path -= tokenlen;                                              
ffc0f6cc:	81 1f 00 00 	lwz     r8,0(r31)                              
ffc0f6d0:	38 84 00 20 	addi    r4,r4,32                               
  ctx->pathlen += tokenlen;                                           
ffc0f6d4:	81 5f 00 04 	lwz     r10,4(r31)                             
      }                                                               
    } else {                                                          
      status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_DONE;               
    }                                                                 
  }                                                                   
}                                                                     
ffc0f6d8:	80 01 00 2c 	lwz     r0,44(r1)                              
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  size_t tokenlen = ctx->tokenlen;                                    
                                                                      
  ctx->path -= tokenlen;                                              
ffc0f6dc:	7d 09 40 50 	subf    r8,r9,r8                               
  ctx->pathlen += tokenlen;                                           
ffc0f6e0:	7d 2a 4a 14 	add     r9,r10,r9                              
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  size_t tokenlen = ctx->tokenlen;                                    
                                                                      
  ctx->path -= tokenlen;                                              
ffc0f6e4:	91 1f 00 00 	stw     r8,0(r31)                              
ffc0f6e8:	7c 08 03 a6 	mtlr    r0                                     
  ctx->pathlen += tokenlen;                                           
ffc0f6ec:	91 3f 00 04 	stw     r9,4(r31)                              
  ctx->tokenlen = 0;                                                  
ffc0f6f0:	39 20 00 00 	li      r9,0                                   
ffc0f6f4:	91 3f 00 0c 	stw     r9,12(r31)                             
ffc0f6f8:	83 01 00 08 	lwz     r24,8(r1)                              
ffc0f6fc:	83 21 00 0c 	lwz     r25,12(r1)                             
ffc0f700:	83 41 00 10 	lwz     r26,16(r1)                             
ffc0f704:	83 61 00 14 	lwz     r27,20(r1)                             
ffc0f708:	83 81 00 18 	lwz     r28,24(r1)                             
ffc0f70c:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0f710:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0f714:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0f718:	38 21 00 28 	addi    r1,r1,40                               
            /* This prevents the escape from a chroot() environment */
            status = (*config->eval_token)(ctx, arg, ".", 1);         
          } else if (is_fs_root(currentloc)) {                        
            if (currentloc->mt_entry->mt_point_node != NULL) {        
              rtems_filesystem_eval_path_put_back_token(ctx);         
              rtems_filesystem_eval_path_restart(                     
ffc0f71c:	4b ff 6c c0 	b       ffc063dc <rtems_filesystem_eval_path_restart>
          rtems_filesystem_location_info_t *currentloc =              
            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);         
ffc0f720:	81 3c 00 04 	lwz     r9,4(r28)                              
ffc0f724:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f728:	7f 64 db 78 	mr      r4,r27                                 
ffc0f72c:	7f 25 cb 78 	mr      r5,r25                                 
ffc0f730:	7d 29 03 a6 	mtctr   r9                                     
ffc0f734:	38 c0 00 01 	li      r6,1                                   
ffc0f738:	4e 80 04 21 	bctrl                                          
ffc0f73c:	4b ff fe 20 	b       ffc0f55c <rtems_filesystem_eval_path_generic+0xdc>
            } else {                                                  
              /* This is the root file system */                      
              status = (*config->eval_token)(ctx, arg, ".", 1);       
            }                                                         
          } else {                                                    
            status = (*config->eval_token)(ctx, arg, "..", 2);        
ffc0f740:	81 3c 00 04 	lwz     r9,4(r28)                              
ffc0f744:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f748:	7f 64 db 78 	mr      r4,r27                                 
ffc0f74c:	7f 05 c3 78 	mr      r5,r24                                 
ffc0f750:	7d 29 03 a6 	mtctr   r9                                     
ffc0f754:	38 c0 00 02 	li      r6,2                                   
ffc0f758:	4e 80 04 21 	bctrl                                          
ffc0f75c:	4b ff fe 00 	b       ffc0f55c <rtems_filesystem_eval_path_generic+0xdc>
{                                                                     
  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 );           
ffc0f760:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc0f764:	7f 43 d3 78 	mr      r3,r26                                 
ffc0f768:	81 29 00 10 	lwz     r9,16(r9)                              
ffc0f76c:	7d 29 03 a6 	mtctr   r9                                     
ffc0f770:	4e 80 04 21 	bctrl                                          
ffc0f774:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f778:	40 be ff a8 	bne-    cr7,ffc0f720 <rtems_filesystem_eval_path_generic+0x2a0>
ffc0f77c:	81 3f 00 2c 	lwz     r9,44(r31)                             
ffc0f780:	4b ff ff 14 	b       ffc0f694 <rtems_filesystem_eval_path_generic+0x214>
                                                                      

ffc0f7dc <rtems_filesystem_eval_path_next_token>: } void rtems_filesystem_eval_path_next_token( rtems_filesystem_eval_path_context_t *ctx ) {
ffc0f7dc:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0f7e0:	7c 08 02 a6 	mflr    r0                                     
ffc0f7e4:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0f7e8:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0f7ec:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_filesystem_eval_path_eat_delimiter(ctx);                      
ffc0f7f0:	4b ff ff 95 	bl      ffc0f784 <rtems_filesystem_eval_path_eat_delimiter>
  ctx->pathlen = (size_t) (end - current);                            
}                                                                     
                                                                      
static void next_token(rtems_filesystem_eval_path_context_t *ctx)     
{                                                                     
  const char *begin = ctx->path;                                      
ffc0f7f4:	81 1f 00 00 	lwz     r8,0(r31)                              
  const char *end = begin + ctx->pathlen;                             
ffc0f7f8:	80 df 00 04 	lwz     r6,4(r31)                              
ffc0f7fc:	7c c8 32 14 	add     r6,r8,r6                               
  const char *current = begin;                                        
                                                                      
  while (current != end && !rtems_filesystem_is_delimiter(*current)) {
ffc0f800:	7f 88 30 00 	cmpw    cr7,r8,r6                              
ffc0f804:	41 9e 00 a0 	beq-    cr7,ffc0f8a4 <rtems_filesystem_eval_path_next_token+0xc8>
ffc0f808:	89 28 00 00 	lbz     r9,0(r8)                               
ffc0f80c:	2f 89 00 2f 	cmpwi   cr7,r9,47                              
ffc0f810:	41 9e 00 94 	beq-    cr7,ffc0f8a4 <rtems_filesystem_eval_path_next_token+0xc8><== NEVER TAKEN
ffc0f814:	2f 89 00 5c 	cmpwi   cr7,r9,92                              
ffc0f818:	7d 48 30 50 	subf    r10,r8,r6                              
ffc0f81c:	7d 09 43 78 	mr      r9,r8                                  
ffc0f820:	7d 49 03 a6 	mtctr   r10                                    
ffc0f824:	40 be 00 38 	bne+    cr7,ffc0f85c <rtems_filesystem_eval_path_next_token+0x80><== ALWAYS TAKEN
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_eat_delimiter(ctx);                      
  next_token(ctx);                                                    
}                                                                     
ffc0f828:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
ffc0f82c:	7d 07 43 78 	mr      r7,r8                                  <== NOT EXECUTED
ffc0f830:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
                                                                      
  while (current != end && !rtems_filesystem_is_delimiter(*current)) {
    ++current;                                                        
  }                                                                   
                                                                      
  ctx->path = current;                                                
ffc0f834:	91 3f 00 00 	stw     r9,0(r31)                              <== NOT EXECUTED
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_eat_delimiter(ctx);                      
  next_token(ctx);                                                    
}                                                                     
ffc0f838:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
  while (current != end && !rtems_filesystem_is_delimiter(*current)) {
    ++current;                                                        
  }                                                                   
                                                                      
  ctx->path = current;                                                
  ctx->pathlen = (size_t) (end - current);                            
ffc0f83c:	7c e7 30 50 	subf    r7,r7,r6                               <== NOT EXECUTED
ffc0f840:	90 ff 00 04 	stw     r7,4(r31)                              <== NOT EXECUTED
  ctx->token = begin;                                                 
ffc0f844:	91 1f 00 08 	stw     r8,8(r31)                              <== NOT EXECUTED
  ctx->tokenlen = (size_t) (current - begin);                         
ffc0f848:	91 5f 00 0c 	stw     r10,12(r31)                            <== NOT EXECUTED
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_eat_delimiter(ctx);                      
  next_token(ctx);                                                    
}                                                                     
ffc0f84c:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc0f850:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc0f854:	4e 80 00 20 	blr                                            <== NOT EXECUTED
ffc0f858:	41 9a 00 1c 	beq-    cr6,ffc0f874 <rtems_filesystem_eval_path_next_token+0x98>
  const char *begin = ctx->path;                                      
  const char *end = begin + ctx->pathlen;                             
  const char *current = begin;                                        
                                                                      
  while (current != end && !rtems_filesystem_is_delimiter(*current)) {
    ++current;                                                        
ffc0f85c:	39 29 00 01 	addi    r9,r9,1                                
{                                                                     
  const char *begin = ctx->path;                                      
  const char *end = begin + ctx->pathlen;                             
  const char *current = begin;                                        
                                                                      
  while (current != end && !rtems_filesystem_is_delimiter(*current)) {
ffc0f860:	42 40 00 78 	bdz-    ffc0f8d8 <rtems_filesystem_eval_path_next_token+0xfc>
ffc0f864:	89 49 00 00 	lbz     r10,0(r9)                              
ffc0f868:	2f 8a 00 2f 	cmpwi   cr7,r10,47                             
ffc0f86c:	2f 0a 00 5c 	cmpwi   cr6,r10,92                             
ffc0f870:	40 9e ff e8 	bne+    cr7,ffc0f858 <rtems_filesystem_eval_path_next_token+0x7c>
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_eat_delimiter(ctx);                      
  next_token(ctx);                                                    
}                                                                     
ffc0f874:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0f878:	7d 27 4b 78 	mr      r7,r9                                  
ffc0f87c:	7d 48 48 50 	subf    r10,r8,r9                              
                                                                      
  while (current != end && !rtems_filesystem_is_delimiter(*current)) {
    ++current;                                                        
  }                                                                   
                                                                      
  ctx->path = current;                                                
ffc0f880:	91 3f 00 00 	stw     r9,0(r31)                              
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_eat_delimiter(ctx);                      
  next_token(ctx);                                                    
}                                                                     
ffc0f884:	7c 08 03 a6 	mtlr    r0                                     
  while (current != end && !rtems_filesystem_is_delimiter(*current)) {
    ++current;                                                        
  }                                                                   
                                                                      
  ctx->path = current;                                                
  ctx->pathlen = (size_t) (end - current);                            
ffc0f888:	7c e7 30 50 	subf    r7,r7,r6                               
ffc0f88c:	90 ff 00 04 	stw     r7,4(r31)                              
  ctx->token = begin;                                                 
ffc0f890:	91 1f 00 08 	stw     r8,8(r31)                              
  ctx->tokenlen = (size_t) (current - begin);                         
ffc0f894:	91 5f 00 0c 	stw     r10,12(r31)                            
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_eat_delimiter(ctx);                      
  next_token(ctx);                                                    
}                                                                     
ffc0f898:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0f89c:	38 21 00 10 	addi    r1,r1,16                               
ffc0f8a0:	4e 80 00 20 	blr                                            
ffc0f8a4:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0f8a8:	7d 07 43 78 	mr      r7,r8                                  
ffc0f8ac:	7d 09 43 78 	mr      r9,r8                                  
    ++current;                                                        
  }                                                                   
                                                                      
  ctx->path = current;                                                
  ctx->pathlen = (size_t) (end - current);                            
  ctx->token = begin;                                                 
ffc0f8b0:	91 1f 00 08 	stw     r8,8(r31)                              
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_eat_delimiter(ctx);                      
  next_token(ctx);                                                    
}                                                                     
ffc0f8b4:	7c 08 03 a6 	mtlr    r0                                     
ffc0f8b8:	39 40 00 00 	li      r10,0                                  
  while (current != end && !rtems_filesystem_is_delimiter(*current)) {
    ++current;                                                        
  }                                                                   
                                                                      
  ctx->path = current;                                                
  ctx->pathlen = (size_t) (end - current);                            
ffc0f8bc:	7c e7 30 50 	subf    r7,r7,r6                               
                                                                      
  while (current != end && !rtems_filesystem_is_delimiter(*current)) {
    ++current;                                                        
  }                                                                   
                                                                      
  ctx->path = current;                                                
ffc0f8c0:	91 3f 00 00 	stw     r9,0(r31)                              
  ctx->pathlen = (size_t) (end - current);                            
ffc0f8c4:	90 ff 00 04 	stw     r7,4(r31)                              
  ctx->token = begin;                                                 
  ctx->tokenlen = (size_t) (current - begin);                         
ffc0f8c8:	91 5f 00 0c 	stw     r10,12(r31)                            
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_eat_delimiter(ctx);                      
  next_token(ctx);                                                    
}                                                                     
ffc0f8cc:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0f8d0:	38 21 00 10 	addi    r1,r1,16                               
ffc0f8d4:	4e 80 00 20 	blr                                            
ffc0f8d8:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0f8dc:	7c c7 33 78 	mr      r7,r6                                  
ffc0f8e0:	7d 48 30 50 	subf    r10,r8,r6                              
                                                                      
  while (current != end && !rtems_filesystem_is_delimiter(*current)) {
    ++current;                                                        
  }                                                                   
                                                                      
  ctx->path = current;                                                
ffc0f8e4:	91 3f 00 00 	stw     r9,0(r31)                              
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_eat_delimiter(ctx);                      
  next_token(ctx);                                                    
}                                                                     
ffc0f8e8:	7c 08 03 a6 	mtlr    r0                                     
  while (current != end && !rtems_filesystem_is_delimiter(*current)) {
    ++current;                                                        
  }                                                                   
                                                                      
  ctx->path = current;                                                
  ctx->pathlen = (size_t) (end - current);                            
ffc0f8ec:	7c e7 30 50 	subf    r7,r7,r6                               
ffc0f8f0:	90 ff 00 04 	stw     r7,4(r31)                              
  ctx->token = begin;                                                 
ffc0f8f4:	91 1f 00 08 	stw     r8,8(r31)                              
  ctx->tokenlen = (size_t) (current - begin);                         
ffc0f8f8:	91 5f 00 0c 	stw     r10,12(r31)                            
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_eat_delimiter(ctx);                      
  next_token(ctx);                                                    
}                                                                     
ffc0f8fc:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0f900:	38 21 00 10 	addi    r1,r1,16                               
ffc0f904:	4e 80 00 20 	blr                                            
                                                                      

ffc0647c <rtems_filesystem_eval_path_recursive>: void rtems_filesystem_eval_path_recursive( rtems_filesystem_eval_path_context_t *ctx, const char *path, size_t pathlen ) {
ffc0647c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc06480:	7c 08 02 a6 	mflr    r0                                     
ffc06484:	93 a1 00 14 	stw     r29,20(r1)                             
  if (pathlen > 0) {                                                  
ffc06488:	7c bd 2b 79 	mr.     r29,r5                                 
void rtems_filesystem_eval_path_recursive(                            
  rtems_filesystem_eval_path_context_t *ctx,                          
  const char *path,                                                   
  size_t pathlen                                                      
)                                                                     
{                                                                     
ffc0648c:	90 01 00 24 	stw     r0,36(r1)                              
ffc06490:	93 61 00 0c 	stw     r27,12(r1)                             
ffc06494:	93 81 00 10 	stw     r28,16(r1)                             
ffc06498:	93 c1 00 18 	stw     r30,24(r1)                             
ffc0649c:	93 e1 00 1c 	stw     r31,28(r1)                             
  if (pathlen > 0) {                                                  
ffc064a0:	41 82 00 b4 	beq-    ffc06554 <rtems_filesystem_eval_path_recursive+0xd8><== NEVER TAKEN
    if (ctx->recursionlevel < RTEMS_FILESYSTEM_SYMLOOP_MAX) {         
ffc064a4:	81 23 00 14 	lwz     r9,20(r3)                              
ffc064a8:	7c 7f 1b 78 	mr      r31,r3                                 
ffc064ac:	2f 89 00 1f 	cmpwi   cr7,r9,31                              
ffc064b0:	41 9d 00 cc 	bgt-    cr7,ffc0657c <rtems_filesystem_eval_path_recursive+0x100>
      const char *saved_path = ctx->path;                             
      size_t saved_pathlen = ctx->pathlen;                            
                                                                      
      if (rtems_filesystem_is_delimiter(path [0])) {                  
ffc064b4:	89 44 00 00 	lbz     r10,0(r4)                              
ffc064b8:	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;                             
ffc064bc:	83 83 00 00 	lwz     r28,0(r3)                              
  gid_t node_gid                                                      
);                                                                    
                                                                      
static inline bool rtems_filesystem_is_delimiter(char c)              
{                                                                     
  return c == '/' || c == '\\';                                       
ffc064c0:	2f 8a 00 2f 	cmpwi   cr7,r10,47                             
      size_t saved_pathlen = ctx->pathlen;                            
ffc064c4:	83 63 00 04 	lwz     r27,4(r3)                              
ffc064c8:	41 9e 00 78 	beq-    cr7,ffc06540 <rtems_filesystem_eval_path_recursive+0xc4>
ffc064cc:	2f 8a 00 5c 	cmpwi   cr7,r10,92                             
ffc064d0:	41 9e 00 70 	beq-    cr7,ffc06540 <rtems_filesystem_eval_path_recursive+0xc4><== NEVER TAKEN
      }                                                               
                                                                      
      ctx->path = path;                                               
      ctx->pathlen = pathlen;                                         
                                                                      
      ++ctx->recursionlevel;                                          
ffc064d4:	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;                                               
ffc064d8:	93 df 00 00 	stw     r30,0(r31)                             
      ctx->pathlen = pathlen;                                         
ffc064dc:	93 bf 00 04 	stw     r29,4(r31)                             
                                                                      
      ++ctx->recursionlevel;                                          
ffc064e0:	91 3f 00 14 	stw     r9,20(r31)                             
      while (ctx->pathlen > 0) {                                      
        (*ctx->currentloc.mt_entry->ops->eval_path_h)(ctx);           
ffc064e4:	81 3f 00 2c 	lwz     r9,44(r31)                             
ffc064e8:	7f e3 fb 78 	mr      r3,r31                                 
ffc064ec:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc064f0:	81 29 00 08 	lwz     r9,8(r9)                               
ffc064f4:	7d 29 03 a6 	mtctr   r9                                     
ffc064f8:	4e 80 04 21 	bctrl                                          
                                                                      
      ctx->path = path;                                               
      ctx->pathlen = pathlen;                                         
                                                                      
      ++ctx->recursionlevel;                                          
      while (ctx->pathlen > 0) {                                      
ffc064fc:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc06500:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06504:	40 9e ff e0 	bne+    cr7,ffc064e4 <rtems_filesystem_eval_path_recursive+0x68>
      rtems_filesystem_eval_path_error(ctx, ELOOP);                   
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error(ctx, ENOENT);                    
  }                                                                   
}                                                                     
ffc06508:	80 01 00 24 	lwz     r0,36(r1)                              
                                                                      
      ++ctx->recursionlevel;                                          
      while (ctx->pathlen > 0) {                                      
        (*ctx->currentloc.mt_entry->ops->eval_path_h)(ctx);           
      }                                                               
      --ctx->recursionlevel;                                          
ffc0650c:	81 3f 00 14 	lwz     r9,20(r31)                             
      rtems_filesystem_eval_path_error(ctx, ELOOP);                   
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error(ctx, ENOENT);                    
  }                                                                   
}                                                                     
ffc06510:	7c 08 03 a6 	mtlr    r0                                     
      while (ctx->pathlen > 0) {                                      
        (*ctx->currentloc.mt_entry->ops->eval_path_h)(ctx);           
      }                                                               
      --ctx->recursionlevel;                                          
                                                                      
      ctx->path = saved_path;                                         
ffc06514:	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;                                          
ffc06518:	39 29 ff ff 	addi    r9,r9,-1                               
                                                                      
      ctx->path = saved_path;                                         
      ctx->pathlen = saved_pathlen;                                   
ffc0651c:	93 7f 00 04 	stw     r27,4(r31)                             
                                                                      
      ++ctx->recursionlevel;                                          
      while (ctx->pathlen > 0) {                                      
        (*ctx->currentloc.mt_entry->ops->eval_path_h)(ctx);           
      }                                                               
      --ctx->recursionlevel;                                          
ffc06520:	91 3f 00 14 	stw     r9,20(r31)                             
      rtems_filesystem_eval_path_error(ctx, ELOOP);                   
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error(ctx, ENOENT);                    
  }                                                                   
}                                                                     
ffc06524:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc06528:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0652c:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc06530:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc06534:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc06538:	38 21 00 20 	addi    r1,r1,32                               
ffc0653c:	4e 80 00 20 	blr                                            
    if (ctx->recursionlevel < RTEMS_FILESYSTEM_SYMLOOP_MAX) {         
      const char *saved_path = ctx->path;                             
      size_t saved_pathlen = ctx->pathlen;                            
                                                                      
      if (rtems_filesystem_is_delimiter(path [0])) {                  
        rtems_filesystem_eval_path_restart(ctx, &ctx->rootloc);       
ffc06540:	7f e3 fb 78 	mr      r3,r31                                 
ffc06544:	38 9f 00 30 	addi    r4,r31,48                              
ffc06548:	4b ff fe 95 	bl      ffc063dc <rtems_filesystem_eval_path_restart>
ffc0654c:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc06550:	4b ff ff 84 	b       ffc064d4 <rtems_filesystem_eval_path_recursive+0x58>
      rtems_filesystem_eval_path_error(ctx, ELOOP);                   
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error(ctx, ENOENT);                    
  }                                                                   
}                                                                     
ffc06554:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
      ctx->pathlen = saved_pathlen;                                   
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ELOOP);                   
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error(ctx, ENOENT);                    
ffc06558:	38 80 00 02 	li      r4,2                                   <== NOT EXECUTED
  }                                                                   
}                                                                     
ffc0655c:	83 61 00 0c 	lwz     r27,12(r1)                             <== NOT EXECUTED
ffc06560:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc06564:	83 81 00 10 	lwz     r28,16(r1)                             <== NOT EXECUTED
ffc06568:	83 a1 00 14 	lwz     r29,20(r1)                             <== NOT EXECUTED
ffc0656c:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc06570:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc06574:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
      ctx->pathlen = saved_pathlen;                                   
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ELOOP);                   
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error(ctx, ENOENT);                    
ffc06578:	4b ff f8 c4 	b       ffc05e3c <rtems_filesystem_eval_path_error><== NOT EXECUTED
  }                                                                   
}                                                                     
ffc0657c:	80 01 00 24 	lwz     r0,36(r1)                              
      --ctx->recursionlevel;                                          
                                                                      
      ctx->path = saved_path;                                         
      ctx->pathlen = saved_pathlen;                                   
    } else {                                                          
      rtems_filesystem_eval_path_error(ctx, ELOOP);                   
ffc06580:	38 80 00 5c 	li      r4,92                                  
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error(ctx, ENOENT);                    
  }                                                                   
}                                                                     
ffc06584:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc06588:	7c 08 03 a6 	mtlr    r0                                     
ffc0658c:	83 81 00 10 	lwz     r28,16(r1)                             
ffc06590:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc06594:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc06598:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0659c:	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);                    
ffc065a0:	4b ff f8 9c 	b       ffc05e3c <rtems_filesystem_eval_path_error>
                                                                      

ffc0621c <rtems_filesystem_eval_path_start_with_parent>: const char *path, int eval_flags, rtems_filesystem_location_info_t *parentloc, int parent_eval_flags ) {
ffc0621c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc06220:	7c 08 02 a6 	mflr    r0                                     
ffc06224:	93 c1 00 20 	stw     r30,32(r1)                             
ffc06228:	7c 7e 1b 78 	mr      r30,r3                                 
  size_t pathlen = strlen(path);                                      
ffc0622c:	7c 83 23 78 	mr      r3,r4                                  
  const char *path,                                                   
  int eval_flags,                                                     
  rtems_filesystem_location_info_t *parentloc,                        
  int parent_eval_flags                                               
)                                                                     
{                                                                     
ffc06230:	93 21 00 0c 	stw     r25,12(r1)                             
ffc06234:	7c f9 3b 78 	mr      r25,r7                                 
ffc06238:	93 41 00 10 	stw     r26,16(r1)                             
ffc0623c:	7c da 33 78 	mr      r26,r6                                 
ffc06240:	93 61 00 14 	stw     r27,20(r1)                             
ffc06244:	7c bb 2b 78 	mr      r27,r5                                 
ffc06248:	93 e1 00 24 	stw     r31,36(r1)                             
ffc0624c:	7c 9f 23 78 	mr      r31,r4                                 
ffc06250:	90 01 00 2c 	stw     r0,44(r1)                              
ffc06254:	93 81 00 18 	stw     r28,24(r1)                             
ffc06258:	93 a1 00 1c 	stw     r29,28(r1)                             
  size_t pathlen = strlen(path);                                      
ffc0625c:	48 00 e6 71 	bl      ffc148cc <strlen>                      
                                                                      
#include <rtems/libio_.h>                                             
                                                                      
static size_t get_parentpathlen(const char *path, size_t pathlen)     
{                                                                     
  while (pathlen > 0) {                                               
ffc06260:	2c 03 00 00 	cmpwi   r3,0                                   
ffc06264:	41 82 00 dc 	beq-    ffc06340 <rtems_filesystem_eval_path_start_with_parent+0x124>
    size_t i = pathlen - 1;                                           
ffc06268:	39 43 ff ff 	addi    r10,r3,-1                              
                                                                      
    if (rtems_filesystem_is_delimiter(path [i])) {                    
ffc0626c:	7d 3f 50 ae 	lbzx    r9,r31,r10                             
  gid_t node_gid                                                      
);                                                                    
                                                                      
static inline bool rtems_filesystem_is_delimiter(char c)              
{                                                                     
  return c == '/' || c == '\\';                                       
ffc06270:	2f 89 00 2f 	cmpwi   cr7,r9,47                              
ffc06274:	41 9e 00 10 	beq-    cr7,ffc06284 <rtems_filesystem_eval_path_start_with_parent+0x68>
ffc06278:	2f 89 00 5c 	cmpwi   cr7,r9,92                              
ffc0627c:	7c 69 03 a6 	mtctr   r3                                     
ffc06280:	40 be 00 18 	bne+    cr7,ffc06298 <rtems_filesystem_eval_path_start_with_parent+0x7c><== ALWAYS TAKEN
ffc06284:	7c 65 1b 78 	mr      r5,r3                                  
ffc06288:	3b 80 00 00 	li      r28,0                                  
ffc0628c:	48 00 00 2c 	b       ffc062b8 <rtems_filesystem_eval_path_start_with_parent+0x9c>
ffc06290:	41 9a 00 20 	beq-    cr6,ffc062b0 <rtems_filesystem_eval_path_start_with_parent+0x94><== NEVER TAKEN
#include <rtems/libio_.h>                                             
                                                                      
static size_t get_parentpathlen(const char *path, size_t pathlen)     
{                                                                     
  while (pathlen > 0) {                                               
    size_t i = pathlen - 1;                                           
ffc06294:	7d 0a 43 78 	mr      r10,r8                                 
ffc06298:	39 0a ff ff 	addi    r8,r10,-1                              
                                                                      
#include <rtems/libio_.h>                                             
                                                                      
static size_t get_parentpathlen(const char *path, size_t pathlen)     
{                                                                     
  while (pathlen > 0) {                                               
ffc0629c:	42 40 00 8c 	bdz-    ffc06328 <rtems_filesystem_eval_path_start_with_parent+0x10c>
    size_t i = pathlen - 1;                                           
                                                                      
    if (rtems_filesystem_is_delimiter(path [i])) {                    
ffc062a0:	7d 3f 40 ae 	lbzx    r9,r31,r8                              
ffc062a4:	2f 89 00 2f 	cmpwi   cr7,r9,47                              
ffc062a8:	2f 09 00 5c 	cmpwi   cr6,r9,92                              
ffc062ac:	40 9e ff e4 	bne+    cr7,ffc06290 <rtems_filesystem_eval_path_start_with_parent+0x74>
ffc062b0:	7f 8a 18 50 	subf    r28,r10,r3                             
ffc062b4:	7d 45 53 78 	mr      r5,r10                                 
      parentpath = ".";                                               
      parentpathlen = 1;                                              
      name = path;                                                    
      namelen = pathlen;                                              
    } else {                                                          
      name = path + parentpathlen;                                    
ffc062b8:	7f bf 2a 14 	add     r29,r31,r5                             
  rtems_filesystem_location_info_t *parentloc,                        
  int parent_eval_flags                                               
)                                                                     
{                                                                     
  size_t pathlen = strlen(path);                                      
  const char *parentpath = path;                                      
ffc062bc:	7f e4 fb 78 	mr      r4,r31                                 
  currentloc = eval_path_start(                                       
    ctx,                                                              
    parentpath,                                                       
    parentpathlen,                                                    
    parent_eval_flags,                                                
    &rtems_filesystem_root,                                           
ffc062c0:	3d 20 00 00 	lis     r9,0                                   
ffc062c4:	81 09 27 d8 	lwz     r8,10200(r9)                           
      name = path + parentpathlen;                                    
      namelen = pathlen - parentpathlen;                              
    }                                                                 
  }                                                                   
                                                                      
  currentloc = eval_path_start(                                       
ffc062c8:	7f 26 cb 78 	mr      r6,r25                                 
ffc062cc:	7f c3 f3 78 	mr      r3,r30                                 
ffc062d0:	38 e8 00 04 	addi    r7,r8,4                                
ffc062d4:	4b ff fd 89 	bl      ffc0605c <eval_path_start>             
ffc062d8:	7c 64 1b 78 	mr      r4,r3                                  
    parent_eval_flags,                                                
    &rtems_filesystem_root,                                           
    &rtems_filesystem_current                                         
  );                                                                  
                                                                      
  rtems_filesystem_location_clone(parentloc, currentloc);             
ffc062dc:	7f 43 d3 78 	mr      r3,r26                                 
ffc062e0:	48 00 89 39 	bl      ffc0ec18 <rtems_filesystem_location_clone>
                                                                      
  ctx->path = name;                                                   
ffc062e4:	93 be 00 00 	stw     r29,0(r30)                             
  ctx->pathlen = namelen;                                             
  ctx->flags = eval_flags;                                            
                                                                      
  rtems_filesystem_eval_path_continue(ctx);                           
ffc062e8:	7f c3 f3 78 	mr      r3,r30                                 
  );                                                                  
                                                                      
  rtems_filesystem_location_clone(parentloc, currentloc);             
                                                                      
  ctx->path = name;                                                   
  ctx->pathlen = namelen;                                             
ffc062ec:	93 9e 00 04 	stw     r28,4(r30)                             
  ctx->flags = eval_flags;                                            
ffc062f0:	93 7e 00 10 	stw     r27,16(r30)                            
                                                                      
  rtems_filesystem_eval_path_continue(ctx);                           
ffc062f4:	4b ff fc cd 	bl      ffc05fc0 <rtems_filesystem_eval_path_continue>
                                                                      
  return &ctx->currentloc;                                            
}                                                                     
ffc062f8:	80 01 00 2c 	lwz     r0,44(r1)                              
  ctx->pathlen = namelen;                                             
  ctx->flags = eval_flags;                                            
                                                                      
  rtems_filesystem_eval_path_continue(ctx);                           
                                                                      
  return &ctx->currentloc;                                            
ffc062fc:	38 7e 00 18 	addi    r3,r30,24                              
}                                                                     
ffc06300:	83 21 00 0c 	lwz     r25,12(r1)                             
ffc06304:	7c 08 03 a6 	mtlr    r0                                     
ffc06308:	83 41 00 10 	lwz     r26,16(r1)                             
ffc0630c:	83 61 00 14 	lwz     r27,20(r1)                             
ffc06310:	83 81 00 18 	lwz     r28,24(r1)                             
ffc06314:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc06318:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0631c:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc06320:	38 21 00 28 	addi    r1,r1,40                               
ffc06324:	4e 80 00 20 	blr                                            
                                                                      
  if (pathlen > 0) {                                                  
    if (parentpathlen == 0) {                                         
      parentpath = ".";                                               
      parentpathlen = 1;                                              
      name = path;                                                    
ffc06328:	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 = ".";                                               
ffc0632c:	3f e0 ff c2 	lis     r31,-62                                
                                                                      
#include <rtems/libio_.h>                                             
                                                                      
static size_t get_parentpathlen(const char *path, size_t pathlen)     
{                                                                     
  while (pathlen > 0) {                                               
ffc06330:	7c 7c 1b 78 	mr      r28,r3                                 
  const rtems_filesystem_location_info_t *currentloc = NULL;          
                                                                      
  if (pathlen > 0) {                                                  
    if (parentpathlen == 0) {                                         
      parentpath = ".";                                               
      parentpathlen = 1;                                              
ffc06334:	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 = ".";                                               
ffc06338:	38 9f fd 28 	addi    r4,r31,-728                            
ffc0633c:	4b ff ff 84 	b       ffc062c0 <rtems_filesystem_eval_path_start_with_parent+0xa4>
  rtems_filesystem_location_info_t *parentloc,                        
  int parent_eval_flags                                               
)                                                                     
{                                                                     
  size_t pathlen = strlen(path);                                      
  const char *parentpath = path;                                      
ffc06340:	7f e4 fb 78 	mr      r4,r31                                 
  size_t parentpathlen = get_parentpathlen(path, pathlen);            
  const char *name = NULL;                                            
  size_t namelen = 0;                                                 
ffc06344:	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;                                            
ffc06348:	3b a0 00 00 	li      r29,0                                  
    }                                                                 
                                                                      
    pathlen = i;                                                      
  }                                                                   
                                                                      
  return 0;                                                           
ffc0634c:	38 a0 00 00 	li      r5,0                                   
ffc06350:	4b ff ff 70 	b       ffc062c0 <rtems_filesystem_eval_path_start_with_parent+0xa4>
                                                                      

ffc0f0b4 <rtems_filesystem_get_mount_handler>: find_arg fa = { .type = type, .mount_h = NULL }; if ( type != NULL ) {
ffc0f0b4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
                                                                      
rtems_filesystem_fsmount_me_t                                         
rtems_filesystem_get_mount_handler(                                   
  const char *type                                                    
)                                                                     
{                                                                     
ffc0f0b8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0f0bc:	7c 08 02 a6 	mflr    r0                                     
  find_arg fa = {                                                     
ffc0f0c0:	39 20 00 00 	li      r9,0                                   
ffc0f0c4:	90 61 00 08 	stw     r3,8(r1)                               
                                                                      
rtems_filesystem_fsmount_me_t                                         
rtems_filesystem_get_mount_handler(                                   
  const char *type                                                    
)                                                                     
{                                                                     
ffc0f0c8:	90 01 00 1c 	stw     r0,28(r1)                              
  find_arg fa = {                                                     
ffc0f0cc:	91 21 00 0c 	stw     r9,12(r1)                              
    .type = type,                                                     
    .mount_h = NULL                                                   
  };                                                                  
                                                                      
  if ( type != NULL ) {                                               
ffc0f0d0:	41 9e 00 28 	beq-    cr7,ffc0f0f8 <rtems_filesystem_get_mount_handler+0x44><== NEVER TAKEN
    rtems_filesystem_iterate( find_handler, &fa );                    
ffc0f0d4:	3c 60 ff c1 	lis     r3,-63                                 
ffc0f0d8:	38 81 00 08 	addi    r4,r1,8                                
ffc0f0dc:	38 63 ef 40 	addi    r3,r3,-4288                            
ffc0f0e0:	4b ff fe d1 	bl      ffc0efb0 <rtems_filesystem_iterate>    
  }                                                                   
                                                                      
  return fa.mount_h;                                                  
}                                                                     
ffc0f0e4:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0f0e8:	80 61 00 0c 	lwz     r3,12(r1)                              
ffc0f0ec:	7c 08 03 a6 	mtlr    r0                                     
ffc0f0f0:	38 21 00 18 	addi    r1,r1,24                               
ffc0f0f4:	4e 80 00 20 	blr                                            
ffc0f0f8:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
  find_arg fa = {                                                     
    .type = type,                                                     
    .mount_h = NULL                                                   
  };                                                                  
                                                                      
  if ( type != NULL ) {                                               
ffc0f0fc:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
    rtems_filesystem_iterate( find_handler, &fa );                    
  }                                                                   
                                                                      
  return fa.mount_h;                                                  
}                                                                     
ffc0f100:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0f104:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc0f108:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc068f8 <rtems_filesystem_global_location_obtain>: } rtems_filesystem_global_location_t *rtems_filesystem_global_location_obtain( rtems_filesystem_global_location_t *const *global_loc_ptr ) {
ffc068f8:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc068fc:	7c 08 02 a6 	mflr    r0                                     
ffc06900:	93 a1 00 14 	stw     r29,20(r1)                             
  rtems_filesystem_mt_entry_declare_lock_context(lock_context);       
  rtems_filesystem_global_location_t *global_loc;                     
                                                                      
  if (deferred_released_global_locations != NULL) {                   
ffc06904:	3f a0 00 00 	lis     r29,0                                  
ffc06908:	81 3d 29 34 	lwz     r9,10548(r29)                          
}                                                                     
                                                                      
rtems_filesystem_global_location_t *rtems_filesystem_global_location_obtain(
  rtems_filesystem_global_location_t *const *global_loc_ptr           
)                                                                     
{                                                                     
ffc0690c:	93 41 00 08 	stw     r26,8(r1)                              
ffc06910:	7c 7a 1b 78 	mr      r26,r3                                 
  rtems_filesystem_mt_entry_declare_lock_context(lock_context);       
  rtems_filesystem_global_location_t *global_loc;                     
                                                                      
  if (deferred_released_global_locations != NULL) {                   
ffc06914:	2f 89 00 00 	cmpwi   cr7,r9,0                               
}                                                                     
                                                                      
rtems_filesystem_global_location_t *rtems_filesystem_global_location_obtain(
  rtems_filesystem_global_location_t *const *global_loc_ptr           
)                                                                     
{                                                                     
ffc06918:	90 01 00 24 	stw     r0,36(r1)                              
ffc0691c:	93 61 00 0c 	stw     r27,12(r1)                             
ffc06920:	93 81 00 10 	stw     r28,16(r1)                             
ffc06924:	93 c1 00 18 	stw     r30,24(r1)                             
ffc06928:	93 e1 00 1c 	stw     r31,28(r1)                             
  rtems_filesystem_mt_entry_declare_lock_context(lock_context);       
  rtems_filesystem_global_location_t *global_loc;                     
                                                                      
  if (deferred_released_global_locations != NULL) {                   
ffc0692c:	41 9e 00 6c 	beq-    cr7,ffc06998 <rtems_filesystem_global_location_obtain+0xa0>
   *                                                                  
   * 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;                  
ffc06930:	3f c0 00 00 	lis     r30,0                                  
ffc06934:	81 3e 28 68 	lwz     r9,10344(r30)                          
                                                                      
    ++level;                                                          
ffc06938:	39 29 00 01 	addi    r9,r9,1                                
    _Thread_Dispatch_disable_level = level;                           
ffc0693c:	91 3e 28 68 	stw     r9,10344(r30)                          
                                                                      
  do {                                                                
    int count = 0;                                                    
                                                                      
    _Thread_Disable_dispatch();                                       
    current = deferred_released_global_locations;                     
ffc06940:	83 fd 29 34 	lwz     r31,10548(r29)                         
    if (current != NULL) {                                            
ffc06944:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc06948:	41 9e 00 4c 	beq-    cr7,ffc06994 <rtems_filesystem_global_location_obtain+0x9c><== NEVER TAKEN
ffc0694c:	3b bd 29 34 	addi    r29,r29,10548                          
ffc06950:	3b de 28 68 	addi    r30,r30,10344                          
      deferred_released_global_locations = current->deferred_released_next;
      count = current->deferred_released_count;                       
      current->deferred_released_next = NULL;                         
ffc06954:	3b 80 00 00 	li      r28,0                                  
    int count = 0;                                                    
                                                                      
    _Thread_Disable_dispatch();                                       
    current = deferred_released_global_locations;                     
    if (current != NULL) {                                            
      deferred_released_global_locations = current->deferred_released_next;
ffc06958:	81 3f 00 1c 	lwz     r9,28(r31)                             
      count = current->deferred_released_count;                       
ffc0695c:	83 7f 00 20 	lwz     r27,32(r31)                            
      current->deferred_released_next = NULL;                         
ffc06960:	93 9f 00 1c 	stw     r28,28(r31)                            
      current->deferred_released_count = 0;                           
ffc06964:	93 9f 00 20 	stw     r28,32(r31)                            
    int count = 0;                                                    
                                                                      
    _Thread_Disable_dispatch();                                       
    current = deferred_released_global_locations;                     
    if (current != NULL) {                                            
      deferred_released_global_locations = current->deferred_released_next;
ffc06968:	91 3d 00 00 	stw     r9,0(r29)                              
      count = current->deferred_released_count;                       
      current->deferred_released_next = NULL;                         
      current->deferred_released_count = 0;                           
    }                                                                 
    _Thread_Enable_dispatch();                                        
ffc0696c:	48 00 61 55 	bl      ffc0cac0 <_Thread_Enable_dispatch>     
                                                                      
    if (current != NULL) {                                            
      release_with_count(current, count);                             
ffc06970:	7f e3 fb 78 	mr      r3,r31                                 
ffc06974:	7f 64 db 78 	mr      r4,r27                                 
ffc06978:	4b ff fe 21 	bl      ffc06798 <release_with_count>          
   *                                                                  
   * 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;                  
ffc0697c:	81 3e 00 00 	lwz     r9,0(r30)                              
                                                                      
    ++level;                                                          
ffc06980:	39 29 00 01 	addi    r9,r9,1                                
    _Thread_Dispatch_disable_level = level;                           
ffc06984:	91 3e 00 00 	stw     r9,0(r30)                              
                                                                      
  do {                                                                
    int count = 0;                                                    
                                                                      
    _Thread_Disable_dispatch();                                       
    current = deferred_released_global_locations;                     
ffc06988:	83 fd 00 00 	lwz     r31,0(r29)                             
    if (current != NULL) {                                            
ffc0698c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc06990:	40 9e ff c8 	bne+    cr7,ffc06958 <rtems_filesystem_global_location_obtain+0x60><== NEVER TAKEN
      deferred_released_global_locations = current->deferred_released_next;
      count = current->deferred_released_count;                       
      current->deferred_released_next = NULL;                         
      current->deferred_released_count = 0;                           
    }                                                                 
    _Thread_Enable_dispatch();                                        
ffc06994:	48 00 61 2d 	bl      ffc0cac0 <_Thread_Enable_dispatch>     
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc06998:	7f e0 00 a6 	mfmsr   r31                                    
ffc0699c:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc069a0:	7f e9 48 78 	andc    r9,r31,r9                              
ffc069a4:	7d 20 01 24 	mtmsr   r9                                     
  if (deferred_released_global_locations != NULL) {                   
    deferred_release();                                               
  }                                                                   
                                                                      
  rtems_filesystem_mt_entry_lock(lock_context);                       
  global_loc = *global_loc_ptr;                                       
ffc069a8:	80 7a 00 00 	lwz     r3,0(r26)                              
  if (global_loc == NULL || !global_loc->location.mt_entry->mounted) {
ffc069ac:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc069b0:	41 9e 00 14 	beq-    cr7,ffc069c4 <rtems_filesystem_global_location_obtain+0xcc>
ffc069b4:	81 23 00 14 	lwz     r9,20(r3)                              
ffc069b8:	89 29 00 28 	lbz     r9,40(r9)                              
ffc069bc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc069c0:	40 9e 00 18 	bne-    cr7,ffc069d8 <rtems_filesystem_global_location_obtain+0xe0>
    global_loc = &rtems_filesystem_global_location_null;              
    errno = ENXIO;                                                    
ffc069c4:	48 00 c6 b5 	bl      ffc13078 <__errno>                     
ffc069c8:	39 20 00 06 	li      r9,6                                   
ffc069cc:	91 23 00 00 	stw     r9,0(r3)                               
  }                                                                   
                                                                      
  rtems_filesystem_mt_entry_lock(lock_context);                       
  global_loc = *global_loc_ptr;                                       
  if (global_loc == NULL || !global_loc->location.mt_entry->mounted) {
    global_loc = &rtems_filesystem_global_location_null;              
ffc069d0:	3c 60 00 00 	lis     r3,0                                   
ffc069d4:	38 63 21 98 	addi    r3,r3,8600                             
    errno = ENXIO;                                                    
  }                                                                   
  ++global_loc->reference_count;                                      
ffc069d8:	81 23 00 18 	lwz     r9,24(r3)                              
ffc069dc:	39 29 00 01 	addi    r9,r9,1                                
ffc069e0:	91 23 00 18 	stw     r9,24(r3)                              
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc069e4:	7f e0 01 24 	mtmsr   r31                                    
  rtems_filesystem_mt_entry_unlock(lock_context);                     
                                                                      
  return global_loc;                                                  
}                                                                     
ffc069e8:	80 01 00 24 	lwz     r0,36(r1)                              
ffc069ec:	83 41 00 08 	lwz     r26,8(r1)                              
ffc069f0:	7c 08 03 a6 	mtlr    r0                                     
ffc069f4:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc069f8:	83 81 00 10 	lwz     r28,16(r1)                             
ffc069fc:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc06a00:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc06a04:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc06a08:	38 21 00 20 	addi    r1,r1,32                               
ffc06a0c:	4e 80 00 20 	blr                                            
                                                                      

ffc04744 <rtems_filesystem_initialize>: { int rv = 0; const rtems_filesystem_mount_configuration *root_config = &rtems_filesystem_root_configuration; rv = mount(
ffc04744:	3d 40 ff c2 	lis     r10,-62                                
/*                                                                    
 *  Default mode for created files.                                   
 */                                                                   
                                                                      
void rtems_filesystem_initialize( void )                              
{                                                                     
ffc04748:	94 21 ff f8 	stwu    r1,-8(r1)                              
  int rv = 0;                                                         
  const rtems_filesystem_mount_configuration *root_config =           
    &rtems_filesystem_root_configuration;                             
                                                                      
  rv = mount(                                                         
ffc0474c:	39 2a eb 40 	addi    r9,r10,-5312                           
/*                                                                    
 *  Default mode for created files.                                   
 */                                                                   
                                                                      
void rtems_filesystem_initialize( void )                              
{                                                                     
ffc04750:	7c 08 02 a6 	mflr    r0                                     
  int rv = 0;                                                         
  const rtems_filesystem_mount_configuration *root_config =           
    &rtems_filesystem_root_configuration;                             
                                                                      
  rv = mount(                                                         
ffc04754:	80 6a eb 40 	lwz     r3,-5312(r10)                          
ffc04758:	80 89 00 04 	lwz     r4,4(r9)                               
ffc0475c:	80 a9 00 08 	lwz     r5,8(r9)                               
ffc04760:	80 c9 00 0c 	lwz     r6,12(r9)                              
ffc04764:	80 e9 00 10 	lwz     r7,16(r9)                              
/*                                                                    
 *  Default mode for created files.                                   
 */                                                                   
                                                                      
void rtems_filesystem_initialize( void )                              
{                                                                     
ffc04768:	90 01 00 0c 	stw     r0,12(r1)                              
  int rv = 0;                                                         
  const rtems_filesystem_mount_configuration *root_config =           
    &rtems_filesystem_root_configuration;                             
                                                                      
  rv = mount(                                                         
ffc0476c:	48 00 0a 85 	bl      ffc051f0 <mount>                       
    root_config->target,                                              
    root_config->filesystemtype,                                      
    root_config->options,                                             
    root_config->data                                                 
  );                                                                  
  if ( rv != 0 )                                                      
ffc04770:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04774:	40 9e 00 2c 	bne-    cr7,ffc047a0 <rtems_filesystem_initialize+0x5c><== NEVER TAKEN
   *                                                                  
   *  NOTE: UNIX root is 755 and owned by root/root (0/0).  It is actually
   *        created that way by the IMFS.                             
   */                                                                 
                                                                      
  rv = mkdir( "/dev", 0777);                                          
ffc04778:	3c 60 ff c2 	lis     r3,-62                                 
ffc0477c:	38 63 f8 04 	addi    r3,r3,-2044                            
ffc04780:	38 80 01 ff 	li      r4,511                                 
ffc04784:	48 00 09 3d 	bl      ffc050c0 <mkdir>                       
  if ( rv != 0 )                                                      
ffc04788:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0478c:	40 9e 00 20 	bne-    cr7,ffc047ac <rtems_filesystem_initialize+0x68><== NEVER TAKEN
   *  it will be mounted onto is created.  Moreover, if it is going to
   *  use a device, then it is REALLY unfair to attempt this          
   *  before device drivers are initialized.  So we return via a base 
   *  filesystem image and nothing auto-mounted at this point.        
   */                                                                 
}                                                                     
ffc04790:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc04794:	38 21 00 08 	addi    r1,r1,8                                
ffc04798:	7c 08 03 a6 	mtlr    r0                                     
ffc0479c:	4e 80 00 20 	blr                                            
    root_config->filesystemtype,                                      
    root_config->options,                                             
    root_config->data                                                 
  );                                                                  
  if ( rv != 0 )                                                      
    rtems_fatal_error_occurred( 0xABCD0002 );                         
ffc047a0:	3c 60 ab cd 	lis     r3,-21555                              <== NOT EXECUTED
ffc047a4:	60 63 00 02 	ori     r3,r3,2                                <== NOT EXECUTED
ffc047a8:	48 00 5b f5 	bl      ffc0a39c <rtems_fatal_error_occurred>  <== NOT EXECUTED
   *        created that way by the IMFS.                             
   */                                                                 
                                                                      
  rv = mkdir( "/dev", 0777);                                          
  if ( rv != 0 )                                                      
    rtems_fatal_error_occurred( 0xABCD0003 );                         
ffc047ac:	3c 60 ab cd 	lis     r3,-21555                              <== NOT EXECUTED
ffc047b0:	60 63 00 03 	ori     r3,r3,3                                <== NOT EXECUTED
ffc047b4:	48 00 5b e9 	bl      ffc0a39c <rtems_fatal_error_occurred>  <== NOT EXECUTED
                                                                      

ffc0efb0 <rtems_filesystem_iterate>: bool rtems_filesystem_iterate( rtems_per_filesystem_routine routine, void *routine_arg ) {
ffc0efb0:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0efb4:	7c 08 02 a6 	mflr    r0                                     
ffc0efb8:	93 e1 00 1c 	stw     r31,28(r1)                             
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
ffc0efbc:	3f e0 ff c2 	lis     r31,-62                                
ffc0efc0:	81 3f eb 54 	lwz     r9,-5292(r31)                          
ffc0efc4:	3b ff eb 54 	addi    r31,r31,-5292                          
                                                                      
bool rtems_filesystem_iterate(                                        
  rtems_per_filesystem_routine routine,                               
  void *routine_arg                                                   
)                                                                     
{                                                                     
ffc0efc8:	93 81 00 10 	stw     r28,16(r1)                             
ffc0efcc:	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;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
ffc0efd0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
                                                                      
bool rtems_filesystem_iterate(                                        
  rtems_per_filesystem_routine routine,                               
  void *routine_arg                                                   
)                                                                     
{                                                                     
ffc0efd4:	93 a1 00 14 	stw     r29,20(r1)                             
ffc0efd8:	7c 7d 1b 78 	mr      r29,r3                                 
ffc0efdc:	90 01 00 24 	stw     r0,36(r1)                              
ffc0efe0:	93 41 00 08 	stw     r26,8(r1)                              
ffc0efe4:	93 61 00 0c 	stw     r27,12(r1)                             
ffc0efe8:	93 c1 00 18 	stw     r30,24(r1)                             
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
ffc0efec:	40 be 00 0c 	bne+    cr7,ffc0eff8 <rtems_filesystem_iterate+0x48><== ALWAYS TAKEN
ffc0eff0:	48 00 00 34 	b       ffc0f024 <rtems_filesystem_iterate+0x74><== NOT EXECUTED
ffc0eff4:	40 9e 00 94 	bne-    cr7,ffc0f088 <rtems_filesystem_iterate+0xd8>
    stop = (*routine)( table_entry, routine_arg );                    
ffc0eff8:	7f e3 fb 78 	mr      r3,r31                                 
ffc0effc:	7f a9 03 a6 	mtctr   r29                                    
ffc0f000:	7f 84 e3 78 	mr      r4,r28                                 
ffc0f004:	4e 80 04 21 	bctrl                                          
{                                                                     
  const rtems_filesystem_table_t *table_entry = &rtems_filesystem_table [0];
  rtems_chain_node *node = NULL;                                      
  bool stop = false;                                                  
                                                                      
  while ( table_entry->type && !stop ) {                              
ffc0f008:	85 3f 00 08 	lwzu    r9,8(r31)                              
    stop = (*routine)( table_entry, routine_arg );                    
ffc0f00c:	7c 7e 1b 78 	mr      r30,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 ) {                              
ffc0f010:	2f 09 00 00 	cmpwi   cr6,r9,0                               
ffc0f014:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f018:	40 9a ff dc 	bne+    cr6,ffc0eff4 <rtems_filesystem_iterate+0x44>
    stop = (*routine)( table_entry, routine_arg );                    
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
ffc0f01c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f020:	40 9e 00 68 	bne-    cr7,ffc0f088 <rtems_filesystem_iterate+0xd8>
 */                                                                   
#include <rtems/userenv.h>                                            
                                                                      
static inline void rtems_libio_lock( void )                           
{                                                                     
  rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
ffc0f024:	3f 40 00 00 	lis     r26,0                                  
ffc0f028:	80 7a 28 54 	lwz     r3,10324(r26)                          
ffc0f02c:	38 80 00 00 	li      r4,0                                   
ffc0f030:	38 a0 00 00 	li      r5,0                                   
ffc0f034:	4b ff a9 ed 	bl      ffc09a20 <rtems_semaphore_obtain>      
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc0f038:	3d 20 00 00 	lis     r9,0                                   
ffc0f03c:	3b 69 22 14 	addi    r27,r9,8724                            
ffc0f040:	83 e9 22 14 	lwz     r31,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 ));            
ffc0f044:	3b 7b 00 04 	addi    r27,r27,4                              
    rtems_libio_lock();                                               
    for (                                                             
ffc0f048:	7f 9f d8 00 	cmpw    cr7,r31,r27                            
ffc0f04c:	3b c0 00 00 	li      r30,0                                  
ffc0f050:	40 be 00 0c 	bne+    cr7,ffc0f05c <rtems_filesystem_iterate+0xac>
ffc0f054:	48 00 00 2c 	b       ffc0f080 <rtems_filesystem_iterate+0xd0>
      node = rtems_chain_first( &filesystem_chain );                  
      !rtems_chain_is_tail( &filesystem_chain, node ) && !stop;       
ffc0f058:	40 9a 00 28 	bne-    cr6,ffc0f080 <rtems_filesystem_iterate+0xd0><== NEVER TAKEN
      node = rtems_chain_next( node )                                 
    ) {                                                               
      const filesystem_node *fsn = (filesystem_node *) node;          
                                                                      
      stop = (*routine)( &fsn->entry, routine_arg );                  
ffc0f05c:	38 7f 00 08 	addi    r3,r31,8                               
ffc0f060:	7f a9 03 a6 	mtctr   r29                                    
ffc0f064:	7f 84 e3 78 	mr      r4,r28                                 
ffc0f068:	4e 80 04 21 	bctrl                                          
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
ffc0f06c:	83 ff 00 00 	lwz     r31,0(r31)                             
      !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 );                  
ffc0f070:	7c 7e 1b 78 	mr      r30,r3                                 
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
ffc0f074:	7f 9f d8 00 	cmpw    cr7,r31,r27                            
      node = rtems_chain_first( &filesystem_chain );                  
      !rtems_chain_is_tail( &filesystem_chain, node ) && !stop;       
ffc0f078:	2f 03 00 00 	cmpwi   cr6,r3,0                               
    ++table_entry;                                                    
  }                                                                   
                                                                      
  if ( !stop ) {                                                      
    rtems_libio_lock();                                               
    for (                                                             
ffc0f07c:	40 9e ff dc 	bne+    cr7,ffc0f058 <rtems_filesystem_iterate+0xa8>
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
ffc0f080:	80 7a 28 54 	lwz     r3,10324(r26)                          
ffc0f084:	4b ff ab 3d 	bl      ffc09bc0 <rtems_semaphore_release>     
    }                                                                 
    rtems_libio_unlock();                                             
  }                                                                   
                                                                      
  return stop;                                                        
}                                                                     
ffc0f088:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0f08c:	7f c3 f3 78 	mr      r3,r30                                 
ffc0f090:	83 41 00 08 	lwz     r26,8(r1)                              
ffc0f094:	7c 08 03 a6 	mtlr    r0                                     
ffc0f098:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0f09c:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0f0a0:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0f0a4:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0f0a8:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0f0ac:	38 21 00 20 	addi    r1,r1,32                               
ffc0f0b0:	4e 80 00 20 	blr                                            
                                                                      

ffc066d4 <rtems_filesystem_location_remove_from_mt_entry>: static inline uint32_t ppc_interrupt_disable( void ) { uint32_t level; uint32_t mask; __asm__ volatile (
ffc066d4:	7c c0 00 a6 	mfmsr   r6                                     
ffc066d8:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc066dc:	7c c9 48 78 	andc    r9,r6,r9                               
ffc066e0:	7d 20 01 24 	mtmsr   r9                                     
  rtems_filesystem_mt_entry_declare_lock_context(lock_context);       
  bool do_unmount;                                                    
                                                                      
  rtems_filesystem_mt_entry_lock(lock_context);                       
  rtems_chain_extract_unprotected(&loc->mt_entry_node);               
  do_unmount = rtems_filesystem_is_ready_for_unmount(loc->mt_entry);  
ffc066e4:	81 23 00 14 	lwz     r9,20(r3)                              
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc066e8:	81 43 00 00 	lwz     r10,0(r3)                              
  rtems_filesystem_mount_table_entry_t *mt_entry                      
)                                                                     
{                                                                     
  bool ready = !mt_entry->mounted                                     
    && rtems_chain_has_only_one_node( &mt_entry->location_chain )     
    && mt_entry->mt_fs_root->reference_count == 1;                    
ffc066ec:	88 e9 00 28 	lbz     r7,40(r9)                              
  previous       = the_node->previous;                                
ffc066f0:	81 03 00 04 	lwz     r8,4(r3)                               
ffc066f4:	2f 87 00 00 	cmpwi   cr7,r7,0                               
  next->previous = previous;                                          
ffc066f8:	91 0a 00 04 	stw     r8,4(r10)                              
                                                                      
static inline bool rtems_filesystem_is_ready_for_unmount(             
  rtems_filesystem_mount_table_entry_t *mt_entry                      
)                                                                     
{                                                                     
  bool ready = !mt_entry->mounted                                     
ffc066fc:	38 e0 00 00 	li      r7,0                                   
  previous->next = next;                                              
ffc06700:	91 48 00 00 	stw     r10,0(r8)                              
    && rtems_chain_has_only_one_node( &mt_entry->location_chain )     
    && mt_entry->mt_fs_root->reference_count == 1;                    
ffc06704:	40 9e 00 14 	bne-    cr7,ffc06718 <rtems_filesystem_location_remove_from_mt_entry+0x44>
static inline bool rtems_filesystem_is_ready_for_unmount(             
  rtems_filesystem_mount_table_entry_t *mt_entry                      
)                                                                     
{                                                                     
  bool ready = !mt_entry->mounted                                     
    && rtems_chain_has_only_one_node( &mt_entry->location_chain )     
ffc06708:	81 09 00 14 	lwz     r8,20(r9)                              
ffc0670c:	81 49 00 1c 	lwz     r10,28(r9)                             
ffc06710:	7f 88 50 00 	cmpw    cr7,r8,r10                             
ffc06714:	41 9e 00 18 	beq-    cr7,ffc0672c <rtems_filesystem_location_remove_from_mt_entry+0x58>
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc06718:	7c c0 01 24 	mtmsr   r6                                     
  rtems_filesystem_mt_entry_unlock(lock_context);                     
                                                                      
  if (do_unmount) {                                                   
ffc0671c:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc06720:	4d be 00 20 	beqlr+  cr7                                    
    rtems_filesystem_do_unmount(loc->mt_entry);                       
ffc06724:	80 63 00 14 	lwz     r3,20(r3)                              <== NOT EXECUTED
ffc06728:	4b ff ff 08 	b       ffc06630 <rtems_filesystem_do_unmount> <== NOT EXECUTED
    && mt_entry->mt_fs_root->reference_count == 1;                    
ffc0672c:	81 49 00 24 	lwz     r10,36(r9)                             
ffc06730:	81 4a 00 18 	lwz     r10,24(r10)                            
ffc06734:	2f 8a 00 01 	cmpwi   cr7,r10,1                              
ffc06738:	40 9e ff e0 	bne+    cr7,ffc06718 <rtems_filesystem_location_remove_from_mt_entry+0x44><== ALWAYS TAKEN
RTEMS_INLINE_ROUTINE void _Chain_Initialize_empty(                    
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
ffc0673c:	39 49 00 14 	addi    r10,r9,20                              <== NOT EXECUTED
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc06740:	90 e9 00 18 	stw     r7,24(r9)                              <== 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 );                        
ffc06744:	39 09 00 18 	addi    r8,r9,24                               <== NOT EXECUTED
                                                                      
static inline bool rtems_filesystem_is_ready_for_unmount(             
  rtems_filesystem_mount_table_entry_t *mt_entry                      
)                                                                     
{                                                                     
  bool ready = !mt_entry->mounted                                     
ffc06748:	38 e0 00 01 	li      r7,1                                   <== NOT EXECUTED
                                                                      
  head->next = tail;                                                  
ffc0674c:	91 09 00 14 	stw     r8,20(r9)                              <== NOT EXECUTED
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc06750:	91 49 00 1c 	stw     r10,28(r9)                             <== NOT EXECUTED
ffc06754:	4b ff ff c4 	b       ffc06718 <rtems_filesystem_location_remove_from_mt_entry+0x44><== NOT EXECUTED
                                                                      

ffc06a10 <rtems_filesystem_location_transform_to_global>: } rtems_filesystem_global_location_t *rtems_filesystem_location_transform_to_global( rtems_filesystem_location_info_t *loc ) {
ffc06a10:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc06a14:	7c 08 02 a6 	mflr    r0                                     
ffc06a18:	93 c1 00 18 	stw     r30,24(r1)                             
ffc06a1c:	7c 7e 1b 78 	mr      r30,r3                                 
  rtems_filesystem_global_location_t *global_loc = malloc(sizeof(*global_loc));
ffc06a20:	38 60 00 24 	li      r3,36                                  
}                                                                     
                                                                      
rtems_filesystem_global_location_t *rtems_filesystem_location_transform_to_global(
  rtems_filesystem_location_info_t *loc                               
)                                                                     
{                                                                     
ffc06a24:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc06a28:	90 01 00 24 	stw     r0,36(r1)                              
  rtems_filesystem_global_location_t *global_loc = malloc(sizeof(*global_loc));
ffc06a2c:	4b ff e5 69 	bl      ffc04f94 <malloc>                      
                                                                      
  if (global_loc != NULL) {                                           
ffc06a30:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc06a34:	41 82 00 44 	beq-    ffc06a78 <rtems_filesystem_location_transform_to_global+0x68><== NEVER TAKEN
    global_loc->reference_count = 1;                                  
    global_loc->deferred_released_next = NULL;                        
ffc06a38:	39 20 00 00 	li      r9,0                                   
)                                                                     
{                                                                     
  rtems_filesystem_global_location_t *global_loc = malloc(sizeof(*global_loc));
                                                                      
  if (global_loc != NULL) {                                           
    global_loc->reference_count = 1;                                  
ffc06a3c:	39 40 00 01 	li      r10,1                                  
    global_loc->deferred_released_next = NULL;                        
ffc06a40:	91 3f 00 1c 	stw     r9,28(r31)                             
    global_loc->deferred_released_count = 0;                          
    rtems_filesystem_location_copy(&global_loc->location, loc);       
ffc06a44:	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;                                  
ffc06a48:	91 5f 00 18 	stw     r10,24(r31)                            
    global_loc->deferred_released_next = NULL;                        
    global_loc->deferred_released_count = 0;                          
ffc06a4c:	91 3f 00 20 	stw     r9,32(r31)                             
    rtems_filesystem_location_copy(&global_loc->location, loc);       
ffc06a50:	4b ff fb 55 	bl      ffc065a4 <rtems_filesystem_location_copy>
    rtems_filesystem_location_remove_from_mt_entry(loc);              
ffc06a54:	7f c3 f3 78 	mr      r3,r30                                 
ffc06a58:	4b ff fc 7d 	bl      ffc066d4 <rtems_filesystem_location_remove_from_mt_entry>
    global_loc = rtems_filesystem_global_location_obtain_null();      
    errno = ENOMEM;                                                   
  }                                                                   
                                                                      
  return global_loc;                                                  
}                                                                     
ffc06a5c:	80 01 00 24 	lwz     r0,36(r1)                              
ffc06a60:	7f e3 fb 78 	mr      r3,r31                                 
ffc06a64:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc06a68:	7c 08 03 a6 	mtlr    r0                                     
ffc06a6c:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc06a70:	38 21 00 20 	addi    r1,r1,32                               
ffc06a74:	4e 80 00 20 	blr                                            
    global_loc->deferred_released_next = NULL;                        
    global_loc->deferred_released_count = 0;                          
    rtems_filesystem_location_copy(&global_loc->location, loc);       
    rtems_filesystem_location_remove_from_mt_entry(loc);              
  } else {                                                            
    rtems_filesystem_location_free(loc);                              
ffc06a78:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc06a7c:	48 00 82 0d 	bl      ffc0ec88 <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;              
ffc06a80:	7c 23 0b 78 	mr      r3,r1                                  <== NOT EXECUTED
ffc06a84:	97 e3 00 08 	stwu    r31,8(r3)                              <== NOT EXECUTED
                                                                      
  return rtems_filesystem_global_location_obtain( &global_loc );      
ffc06a88:	4b ff fe 71 	bl      ffc068f8 <rtems_filesystem_global_location_obtain><== NOT EXECUTED
ffc06a8c:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
    global_loc = rtems_filesystem_global_location_obtain_null();      
    errno = ENOMEM;                                                   
ffc06a90:	48 00 c5 e9 	bl      ffc13078 <__errno>                     <== NOT EXECUTED
  }                                                                   
                                                                      
  return global_loc;                                                  
}                                                                     
ffc06a94:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
    rtems_filesystem_location_copy(&global_loc->location, loc);       
    rtems_filesystem_location_remove_from_mt_entry(loc);              
  } else {                                                            
    rtems_filesystem_location_free(loc);                              
    global_loc = rtems_filesystem_global_location_obtain_null();      
    errno = ENOMEM;                                                   
ffc06a98:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc06a9c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
  }                                                                   
                                                                      
  return global_loc;                                                  
}                                                                     
ffc06aa0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc06aa4:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc06aa8:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc06aac:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc06ab0:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc06ab4:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc050d0 <rtems_filesystem_mknod>: const char *name, size_t namelen, mode_t mode, dev_t dev ) {
ffc050d0:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc050d4:	7c 08 02 a6 	mflr    r0                                     
  int rv = 0;                                                         
                                                                      
  mode &= ~rtems_filesystem_umask;                                    
ffc050d8:	3d 20 00 00 	lis     r9,0                                   
  const char *name,                                                   
  size_t namelen,                                                     
  mode_t mode,                                                        
  dev_t dev                                                           
)                                                                     
{                                                                     
ffc050dc:	90 01 00 0c 	stw     r0,12(r1)                              
  int rv = 0;                                                         
                                                                      
  mode &= ~rtems_filesystem_umask;                                    
ffc050e0:	81 29 27 d8 	lwz     r9,10200(r9)                           
ffc050e4:	81 29 00 08 	lwz     r9,8(r9)                               
ffc050e8:	7c c6 48 78 	andc    r6,r6,r9                               
                                                                      
  switch (mode & S_IFMT) {                                            
ffc050ec:	54 c9 04 26 	rlwinm  r9,r6,0,16,19                          
ffc050f0:	2f 89 40 00 	cmpwi   cr7,r9,16384                           
ffc050f4:	41 9e 00 50 	beq-    cr7,ffc05144 <rtems_filesystem_mknod+0x74>
ffc050f8:	2b 89 40 00 	cmplwi  cr7,r9,16384                           
ffc050fc:	40 9d 00 38 	ble-    cr7,ffc05134 <rtems_filesystem_mknod+0x64>
ffc05100:	2f 89 60 00 	cmpwi   cr7,r9,24576                           
ffc05104:	41 9e 00 40 	beq-    cr7,ffc05144 <rtems_filesystem_mknod+0x74>
ffc05108:	6d 2a ff ff 	xoris   r10,r9,65535                           
ffc0510c:	2f 8a 80 00 	cmpwi   cr7,r10,-32768                         
ffc05110:	41 9e 00 34 	beq-    cr7,ffc05144 <rtems_filesystem_mknod+0x74><== ALWAYS TAKEN
    case S_IFDIR:                                                     
    case S_IFIFO:                                                     
    case S_IFREG:                                                     
      break;                                                          
    default:                                                          
      errno = EINVAL;                                                 
ffc05114:	48 00 df 65 	bl      ffc13078 <__errno>                     
                                                                      
    rv = (*ops->mknod_h)( parentloc, name, namelen, mode, dev );      
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc05118:	80 01 00 0c 	lwz     r0,12(r1)                              
    case S_IFDIR:                                                     
    case S_IFIFO:                                                     
    case S_IFREG:                                                     
      break;                                                          
    default:                                                          
      errno = EINVAL;                                                 
ffc0511c:	39 20 00 16 	li      r9,22                                  
                                                                      
    rv = (*ops->mknod_h)( parentloc, name, namelen, mode, dev );      
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc05120:	7c 08 03 a6 	mtlr    r0                                     
    case S_IFDIR:                                                     
    case S_IFIFO:                                                     
    case S_IFREG:                                                     
      break;                                                          
    default:                                                          
      errno = EINVAL;                                                 
ffc05124:	91 23 00 00 	stw     r9,0(r3)                               
                                                                      
    rv = (*ops->mknod_h)( parentloc, name, namelen, mode, dev );      
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc05128:	38 60 ff ff 	li      r3,-1                                  
ffc0512c:	38 21 00 08 	addi    r1,r1,8                                
ffc05130:	4e 80 00 20 	blr                                            
{                                                                     
  int rv = 0;                                                         
                                                                      
  mode &= ~rtems_filesystem_umask;                                    
                                                                      
  switch (mode & S_IFMT) {                                            
ffc05134:	2f 89 10 00 	cmpwi   cr7,r9,4096                            
ffc05138:	41 9e 00 0c 	beq-    cr7,ffc05144 <rtems_filesystem_mknod+0x74>
ffc0513c:	2f 89 20 00 	cmpwi   cr7,r9,8192                            
ffc05140:	40 9e ff d4 	bne+    cr7,ffc05114 <rtems_filesystem_mknod+0x44>
      rv = -1;                                                        
      break;                                                          
  }                                                                   
                                                                      
  if ( rv == 0 ) {                                                    
    const rtems_filesystem_operations_table *ops = parentloc->mt_entry->ops;
ffc05144:	81 23 00 14 	lwz     r9,20(r3)                              
                                                                      
    rv = (*ops->mknod_h)( parentloc, name, namelen, mode, dev );      
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc05148:	80 01 00 0c 	lwz     r0,12(r1)                              
  }                                                                   
                                                                      
  if ( rv == 0 ) {                                                    
    const rtems_filesystem_operations_table *ops = parentloc->mt_entry->ops;
                                                                      
    rv = (*ops->mknod_h)( parentloc, name, namelen, mode, dev );      
ffc0514c:	81 29 00 0c 	lwz     r9,12(r9)                              
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc05150:	7c 08 03 a6 	mtlr    r0                                     
  }                                                                   
                                                                      
  if ( rv == 0 ) {                                                    
    const rtems_filesystem_operations_table *ops = parentloc->mt_entry->ops;
                                                                      
    rv = (*ops->mknod_h)( parentloc, name, namelen, mode, dev );      
ffc05154:	81 29 00 18 	lwz     r9,24(r9)                              
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc05158:	38 21 00 08 	addi    r1,r1,8                                
  }                                                                   
                                                                      
  if ( rv == 0 ) {                                                    
    const rtems_filesystem_operations_table *ops = parentloc->mt_entry->ops;
                                                                      
    rv = (*ops->mknod_h)( parentloc, name, namelen, mode, dev );      
ffc0515c:	7d 29 03 a6 	mtctr   r9                                     
ffc05160:	4e 80 04 20 	bctr                                           
                                                                      

ffc0f22c <rtems_filesystem_unregister>: int rtems_filesystem_unregister( const char *type ) {
ffc0f22c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0f230:	7c 08 02 a6 	mflr    r0                                     
ffc0f234:	93 a1 00 0c 	stw     r29,12(r1)                             
  rtems_chain_node *node = NULL;                                      
                                                                      
  if ( type == NULL ) {                                               
ffc0f238:	7c 7d 1b 79 	mr.     r29,r3                                 
                                                                      
int                                                                   
rtems_filesystem_unregister(                                          
  const char *type                                                    
)                                                                     
{                                                                     
ffc0f23c:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0f240:	93 81 00 08 	stw     r28,8(r1)                              
ffc0f244:	93 c1 00 10 	stw     r30,16(r1)                             
ffc0f248:	93 e1 00 14 	stw     r31,20(r1)                             
  rtems_chain_node *node = NULL;                                      
                                                                      
  if ( type == NULL ) {                                               
ffc0f24c:	41 82 00 c8 	beq-    ffc0f314 <rtems_filesystem_unregister+0xe8>
 */                                                                   
#include <rtems/userenv.h>                                            
                                                                      
static inline void rtems_libio_lock( void )                           
{                                                                     
  rtems_semaphore_obtain( rtems_libio_semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
ffc0f250:	3f 80 00 00 	lis     r28,0                                  
ffc0f254:	80 7c 28 54 	lwz     r3,10324(r28)                          
ffc0f258:	38 80 00 00 	li      r4,0                                   
ffc0f25c:	38 a0 00 00 	li      r5,0                                   
ffc0f260:	4b ff a7 c1 	bl      ffc09a20 <rtems_semaphore_obtain>      
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc0f264:	3d 20 00 00 	lis     r9,0                                   
ffc0f268:	3b c9 22 14 	addi    r30,r9,8724                            
ffc0f26c:	83 e9 22 14 	lwz     r31,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 ));            
ffc0f270:	3b de 00 04 	addi    r30,r30,4                              
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
ffc0f274:	7f 9f f0 00 	cmpw    cr7,r31,r30                            
ffc0f278:	40 be 00 14 	bne+    cr7,ffc0f28c <rtems_filesystem_unregister+0x60>
ffc0f27c:	48 00 00 60 	b       ffc0f2dc <rtems_filesystem_unregister+0xb0>
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
ffc0f280:	83 ff 00 00 	lwz     r31,0(r31)                             
  if ( type == NULL ) {                                               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  rtems_libio_lock();                                                 
  for (                                                               
ffc0f284:	7f 9f f0 00 	cmpw    cr7,r31,r30                            
ffc0f288:	41 9e 00 54 	beq-    cr7,ffc0f2dc <rtems_filesystem_unregister+0xb0><== ALWAYS TAKEN
    !rtems_chain_is_tail( &filesystem_chain, node );                  
    node = rtems_chain_next( node )                                   
  ) {                                                                 
    filesystem_node *fsn = (filesystem_node *) node;                  
                                                                      
    if ( strcmp( fsn->entry.type, type ) == 0 ) {                     
ffc0f28c:	80 7f 00 08 	lwz     r3,8(r31)                              
ffc0f290:	7f a4 eb 78 	mr      r4,r29                                 
ffc0f294:	48 00 51 11 	bl      ffc143a4 <strcmp>                      
ffc0f298:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0f29c:	40 9e ff e4 	bne+    cr7,ffc0f280 <rtems_filesystem_unregister+0x54>
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
ffc0f2a0:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f2a4:	48 00 13 4d 	bl      ffc105f0 <_Chain_Extract>              
      rtems_chain_extract( node );                                    
      free( fsn );                                                    
ffc0f2a8:	7f e3 fb 78 	mr      r3,r31                                 
ffc0f2ac:	4b ff 58 bd 	bl      ffc04b68 <free>                        
}                                                                     
                                                                      
static inline void rtems_libio_unlock( void )                         
{                                                                     
  rtems_semaphore_release( rtems_libio_semaphore );                   
ffc0f2b0:	80 7c 28 54 	lwz     r3,10324(r28)                          
ffc0f2b4:	4b ff a9 0d 	bl      ffc09bc0 <rtems_semaphore_release>     
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
ffc0f2b8:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0f2bc:	83 81 00 08 	lwz     r28,8(r1)                              
    if ( strcmp( fsn->entry.type, type ) == 0 ) {                     
      rtems_chain_extract( node );                                    
      free( fsn );                                                    
      rtems_libio_unlock();                                           
                                                                      
      return 0;                                                       
ffc0f2c0:	38 60 00 00 	li      r3,0                                   
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
}                                                                     
ffc0f2c4:	7c 08 03 a6 	mtlr    r0                                     
ffc0f2c8:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0f2cc:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0f2d0:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0f2d4:	38 21 00 18 	addi    r1,r1,24                               
ffc0f2d8:	4e 80 00 20 	blr                                            
ffc0f2dc:	80 7c 28 54 	lwz     r3,10324(r28)                          
ffc0f2e0:	4b ff a8 e1 	bl      ffc09bc0 <rtems_semaphore_release>     
      return 0;                                                       
    }                                                                 
  }                                                                   
  rtems_libio_unlock();                                               
                                                                      
  rtems_set_errno_and_return_minus_one( ENOENT );                     
ffc0f2e4:	48 00 3d 95 	bl      ffc13078 <__errno>                     
ffc0f2e8:	39 20 00 02 	li      r9,2                                   
ffc0f2ec:	91 23 00 00 	stw     r9,0(r3)                               
ffc0f2f0:	38 60 ff ff 	li      r3,-1                                  
}                                                                     
ffc0f2f4:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0f2f8:	83 81 00 08 	lwz     r28,8(r1)                              
ffc0f2fc:	7c 08 03 a6 	mtlr    r0                                     
ffc0f300:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0f304:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0f308:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0f30c:	38 21 00 18 	addi    r1,r1,24                               
ffc0f310:	4e 80 00 20 	blr                                            
)                                                                     
{                                                                     
  rtems_chain_node *node = NULL;                                      
                                                                      
  if ( type == NULL ) {                                               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc0f314:	48 00 3d 65 	bl      ffc13078 <__errno>                     
ffc0f318:	39 20 00 16 	li      r9,22                                  
ffc0f31c:	91 23 00 00 	stw     r9,0(r3)                               
ffc0f320:	38 60 ff ff 	li      r3,-1                                  
ffc0f324:	4b ff ff d0 	b       ffc0f2f4 <rtems_filesystem_unregister+0xc8>
                                                                      

ffc05274 <rtems_gxx_key_create>: int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *)) {
ffc05274:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc05278:	7c 08 02 a6 	mflr    r0                                     
ffc0527c:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc05280:	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 ) );
ffc05284:	38 60 00 08 	li      r3,8                                   
  }                                                                   
  return 0;                                                           
}                                                                     
                                                                      
int rtems_gxx_key_create (__gthread_key_t *key, void (*dtor) (void *))
{                                                                     
ffc05288:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0528c:	93 c1 00 10 	stw     r30,16(r1)                             
ffc05290:	7c 9e 23 78 	mr      r30,r4                                 
ffc05294:	93 e1 00 14 	stw     r31,20(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 ) );
ffc05298:	48 00 05 69 	bl      ffc05800 <malloc>                      
ffc0529c:	7c 7f 1b 78 	mr      r31,r3                                 
  *key = new_key;                                                     
ffc052a0:	90 7d 00 00 	stw     r3,0(r29)                              
  new_key->val  = NULL;                                               
ffc052a4:	39 20 00 00 	li      r9,0                                   
      "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 );
ffc052a8:	38 60 00 00 	li      r3,0                                   
ffc052ac:	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;                                               
ffc052b0:	91 3f 00 00 	stw     r9,0(r31)                              
      "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 );
ffc052b4:	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;                                               
ffc052b8:	93 df 00 04 	stw     r30,4(r31)                             
      "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 );
ffc052bc:	48 00 57 bd 	bl      ffc0aa78 <rtems_task_variable_add>     
  if ( status == RTEMS_SUCCESSFUL )                                   
ffc052c0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc052c4:	40 9e 00 24 	bne-    cr7,ffc052e8 <rtems_gxx_key_create+0x74><== NEVER TAKEN
    return 0;                                                         
ffc052c8:	38 60 00 00 	li      r3,0                                   
                                                                      
  free( new_key );                                                    
  return -1;                                                          
}                                                                     
ffc052cc:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc052d0:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc052d4:	7c 08 03 a6 	mtlr    r0                                     
ffc052d8:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc052dc:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc052e0:	38 21 00 18 	addi    r1,r1,24                               
ffc052e4:	4e 80 00 20 	blr                                            
  /* 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;                                                         
                                                                      
  free( new_key );                                                    
ffc052e8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc052ec:	4b ff fd 15 	bl      ffc05000 <free>                        <== NOT EXECUTED
  return -1;                                                          
ffc052f0:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc052f4:	4b ff ff d8 	b       ffc052cc <rtems_gxx_key_create+0x58>   <== NOT EXECUTED
                                                                      

ffc05308 <rtems_gxx_key_delete>: int rtems_gxx_key_delete (__gthread_key_t key) {
ffc05308:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0530c:	7c 08 02 a6 	mflr    r0                                     
  #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 );    
ffc05310:	7c 64 1b 78 	mr      r4,r3                                  
  key->val  = 0;                                                      
  return 0;                                                           
}                                                                     
                                                                      
int rtems_gxx_key_delete (__gthread_key_t key)                        
{                                                                     
ffc05314:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc05318:	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 );    
ffc0531c:	38 60 00 00 	li      r3,0                                   
  key->val  = 0;                                                      
  return 0;                                                           
}                                                                     
                                                                      
int rtems_gxx_key_delete (__gthread_key_t key)                        
{                                                                     
ffc05320:	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 );    
ffc05324:	48 00 58 49 	bl      ffc0ab6c <rtems_task_variable_delete>  
  if ( status == RTEMS_SUCCESSFUL ) {                                 
ffc05328:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0532c:	40 9e 00 14 	bne-    cr7,ffc05340 <rtems_gxx_key_delete+0x38><== NEVER TAKEN
    /* Hmm - hopefully all tasks using this key have gone away... */  
    if ( key ) free( *(void **)key );                                 
ffc05330:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc05334:	41 9e 00 0c 	beq-    cr7,ffc05340 <rtems_gxx_key_delete+0x38><== NEVER TAKEN
ffc05338:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc0533c:	4b ff fc c5 	bl      ffc05000 <free>                        
    return 0;                                                         
  }                                                                   
  key = NULL;                                                         
  return 0;                                                           
}                                                                     
ffc05340:	80 01 00 14 	lwz     r0,20(r1)                              
ffc05344:	38 60 00 00 	li      r3,0                                   
ffc05348:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0534c:	7c 08 03 a6 	mtlr    r0                                     
ffc05350:	38 21 00 10 	addi    r1,r1,16                               
ffc05354:	4e 80 00 20 	blr                                            
                                                                      

ffc05490 <rtems_gxx_mutex_lock>: printk( "gxx_wrappers: mutex init complete =%X\n", *mutex ); #endif } int rtems_gxx_mutex_lock (__gthread_mutex_t *mutex) {
ffc05490:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc05494:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: lock mutex=%X\n", *mutex );                
  #endif                                                              
                                                                      
  status = rtems_semaphore_obtain(                                    
ffc05498:	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)                   
{                                                                     
ffc0549c:	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(                                    
ffc054a0:	38 a0 00 00 	li      r5,0                                   
ffc054a4:	80 63 00 00 	lwz     r3,0(r3)                               
ffc054a8:	48 00 4d 49 	bl      ffc0a1f0 <rtems_semaphore_obtain>      
    *(rtems_id *)mutex,                                               
    RTEMS_WAIT,                                                       
    RTEMS_NO_TIMEOUT                                                  
  );                                                                  
  if ( status == RTEMS_SUCCESSFUL )                                   
ffc054ac:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc054b0:	40 9e 00 14 	bne-    cr7,ffc054c4 <rtems_gxx_mutex_lock+0x34><== NEVER TAKEN
    return 0;                                                         
  return -1;                                                          
}                                                                     
ffc054b4:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc054b8:	38 21 00 08 	addi    r1,r1,8                                
ffc054bc:	7c 08 03 a6 	mtlr    r0                                     
ffc054c0:	4e 80 00 20 	blr                                            
    RTEMS_WAIT,                                                       
    RTEMS_NO_TIMEOUT                                                  
  );                                                                  
  if ( status == RTEMS_SUCCESSFUL )                                   
    return 0;                                                         
  return -1;                                                          
ffc054c4:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc054c8:	4b ff ff ec 	b       ffc054b4 <rtems_gxx_mutex_lock+0x24>   <== NOT EXECUTED
                                                                      

ffc05500 <rtems_gxx_mutex_trylock>: } int rtems_gxx_mutex_trylock (__gthread_mutex_t *mutex) {
ffc05500:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc05504:	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);
ffc05508:	38 80 00 01 	li      r4,1                                   
    return 0;                                                         
  return -1;                                                          
}                                                                     
                                                                      
int rtems_gxx_mutex_trylock (__gthread_mutex_t *mutex)                
{                                                                     
ffc0550c:	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);
ffc05510:	38 a0 00 00 	li      r5,0                                   
ffc05514:	80 63 00 00 	lwz     r3,0(r3)                               
ffc05518:	48 00 4c d9 	bl      ffc0a1f0 <rtems_semaphore_obtain>      
  if ( status == RTEMS_SUCCESSFUL )                                   
ffc0551c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05520:	40 9e 00 14 	bne-    cr7,ffc05534 <rtems_gxx_mutex_trylock+0x34><== NEVER TAKEN
    return 0;                                                         
  return -1;                                                          
}                                                                     
ffc05524:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc05528:	38 21 00 08 	addi    r1,r1,8                                
ffc0552c:	7c 08 03 a6 	mtlr    r0                                     
ffc05530:	4e 80 00 20 	blr                                            
  #endif                                                              
                                                                      
  status = rtems_semaphore_obtain (*(rtems_id *)mutex, RTEMS_NO_WAIT, 0);
  if ( status == RTEMS_SUCCESSFUL )                                   
    return 0;                                                         
  return -1;                                                          
ffc05534:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc05538:	4b ff ff ec 	b       ffc05524 <rtems_gxx_mutex_trylock+0x24><== NOT EXECUTED
                                                                      

ffc0553c <rtems_gxx_mutex_unlock>: } int rtems_gxx_mutex_unlock (__gthread_mutex_t *mutex) {
ffc0553c:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc05540:	7c 08 02 a6 	mflr    r0                                     
ffc05544:	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 );             
ffc05548:	80 63 00 00 	lwz     r3,0(r3)                               
ffc0554c:	48 00 4e 45 	bl      ffc0a390 <rtems_semaphore_release>     
  if ( status == RTEMS_SUCCESSFUL )                                   
ffc05550:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05554:	40 9e 00 14 	bne-    cr7,ffc05568 <rtems_gxx_mutex_unlock+0x2c><== NEVER TAKEN
    return 0;                                                         
  return -1;                                                          
}                                                                     
ffc05558:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc0555c:	38 21 00 08 	addi    r1,r1,8                                
ffc05560:	7c 08 03 a6 	mtlr    r0                                     
ffc05564:	4e 80 00 20 	blr                                            
  #endif                                                              
                                                                      
  status = rtems_semaphore_release( *(rtems_id *)mutex );             
  if ( status == RTEMS_SUCCESSFUL )                                   
    return 0;                                                         
  return -1;                                                          
ffc05568:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc0556c:	4b ff ff ec 	b       ffc05558 <rtems_gxx_mutex_unlock+0x1c> <== NOT EXECUTED
                                                                      

ffc051ac <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)) {
ffc051ac:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc051b0:	7c 08 02 a6 	mflr    r0                                     
ffc051b4:	90 01 00 24 	stw     r0,36(r1)                              
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: once=%x, func=%x\n", *once, func );        
  #endif                                                              
                                                                      
  if ( *(volatile __gthread_once_t *)once == 0 ) {                    
ffc051b8:	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))       
{                                                                     
ffc051bc:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc051c0:	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 ) {                    
ffc051c4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
                                                                      
/* uncomment this if you need to debug this interface */              
/*#define DEBUG_GXX_WRAPPERS 1*/                                      
                                                                      
int rtems_gxx_once(__gthread_once_t *once, void (*func) (void))       
{                                                                     
ffc051c8:	93 c1 00 18 	stw     r30,24(r1)                             
  #ifdef DEBUG_GXX_WRAPPERS                                           
    printk( "gxx_wrappers: once=%x, func=%x\n", *once, func );        
  #endif                                                              
                                                                      
  if ( *(volatile __gthread_once_t *)once == 0 ) {                    
ffc051cc:	41 9e 00 20 	beq-    cr7,ffc051ec <rtems_gxx_once+0x40>     
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
    if ( o == 0 )                                                     
      (*func)();                                                      
  }                                                                   
  return 0;                                                           
}                                                                     
ffc051d0:	80 01 00 24 	lwz     r0,36(r1)                              
ffc051d4:	38 60 00 00 	li      r3,0                                   
ffc051d8:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc051dc:	7c 08 03 a6 	mtlr    r0                                     
ffc051e0:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc051e4:	38 21 00 20 	addi    r1,r1,32                               
ffc051e8:	4e 80 00 20 	blr                                            
ffc051ec:	7c 9e 23 78 	mr      r30,r4                                 
                                                                      
  if ( *(volatile __gthread_once_t *)once == 0 ) {                    
    rtems_mode saveMode;                                              
    __gthread_once_t o;                                               
                                                                      
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
ffc051f0:	38 60 01 00 	li      r3,256                                 
ffc051f4:	38 80 01 00 	li      r4,256                                 
ffc051f8:	38 a1 00 08 	addi    r5,r1,8                                
ffc051fc:	48 00 55 e9 	bl      ffc0a7e4 <rtems_task_mode>             
    if ( (o = *(volatile __gthread_once_t *)once) == 0 ) {            
ffc05200:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc05204:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc05208:	40 9e 00 40 	bne-    cr7,ffc05248 <rtems_gxx_once+0x9c>     <== NEVER TAKEN
      *(volatile __gthread_once_t *)once = 1;                         
ffc0520c:	39 20 00 01 	li      r9,1                                   
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
ffc05210:	80 61 00 08 	lwz     r3,8(r1)                               
    rtems_mode saveMode;                                              
    __gthread_once_t o;                                               
                                                                      
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
    if ( (o = *(volatile __gthread_once_t *)once) == 0 ) {            
      *(volatile __gthread_once_t *)once = 1;                         
ffc05214:	91 3f 00 00 	stw     r9,0(r31)                              
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
ffc05218:	38 a1 00 08 	addi    r5,r1,8                                
ffc0521c:	38 80 01 00 	li      r4,256                                 
ffc05220:	48 00 55 c5 	bl      ffc0a7e4 <rtems_task_mode>             
    if ( o == 0 )                                                     
      (*func)();                                                      
ffc05224:	7f c9 03 a6 	mtctr   r30                                    
ffc05228:	4e 80 04 21 	bctrl                                          
  }                                                                   
  return 0;                                                           
}                                                                     
ffc0522c:	80 01 00 24 	lwz     r0,36(r1)                              
ffc05230:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc05234:	38 60 00 00 	li      r3,0                                   
ffc05238:	7c 08 03 a6 	mtlr    r0                                     
ffc0523c:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc05240:	38 21 00 20 	addi    r1,r1,32                               
ffc05244:	4e 80 00 20 	blr                                            
                                                                      
    rtems_task_mode(RTEMS_NO_PREEMPT, RTEMS_PREEMPT_MASK, &saveMode); 
    if ( (o = *(volatile __gthread_once_t *)once) == 0 ) {            
      *(volatile __gthread_once_t *)once = 1;                         
    }                                                                 
    rtems_task_mode(saveMode, RTEMS_PREEMPT_MASK, &saveMode);         
ffc05248:	80 61 00 08 	lwz     r3,8(r1)                               <== NOT EXECUTED
ffc0524c:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc05250:	38 80 01 00 	li      r4,256                                 <== NOT EXECUTED
ffc05254:	48 00 55 91 	bl      ffc0a7e4 <rtems_task_mode>             <== NOT EXECUTED
    if ( o == 0 )                                                     
      (*func)();                                                      
  }                                                                   
  return 0;                                                           
}                                                                     
ffc05258:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
ffc0525c:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc05260:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc05264:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc05268:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc0526c:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc05270:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc053e8 <rtems_gxx_setspecific>: #endif return p; } int rtems_gxx_setspecific(__gthread_key_t key, const void *ptr) {
ffc053e8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc053ec:	7c 08 02 a6 	mflr    r0                                     
ffc053f0:	90 01 00 14 	stw     r0,20(r1)                              
ffc053f4:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc053f8:	7c 7f 1b 78 	mr      r31,r3                                 
      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 );
ffc053fc:	80 a3 00 04 	lwz     r5,4(r3)                               
ffc05400:	38 60 00 00 	li      r3,0                                   
  #endif                                                              
  return p;                                                           
}                                                                     
                                                                      
int rtems_gxx_setspecific(__gthread_key_t key, const void *ptr)       
{                                                                     
ffc05404:	93 c1 00 08 	stw     r30,8(r1)                              
ffc05408:	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 );
ffc0540c:	7f e4 fb 78 	mr      r4,r31                                 
ffc05410:	48 00 56 69 	bl      ffc0aa78 <rtems_task_variable_add>     
  if ( status == RTEMS_SUCCESSFUL ) {                                 
ffc05414:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc05418:	40 9e 00 20 	bne-    cr7,ffc05438 <rtems_gxx_setspecific+0x50><== NEVER TAKEN
    /* now let's set the proper value */                              
    key->val =  (void *)ptr;                                          
ffc0541c:	93 df 00 00 	stw     r30,0(r31)                             
    return 0;                                                         
  }                                                                   
  return -1;                                                          
}                                                                     
ffc05420:	80 01 00 14 	lwz     r0,20(r1)                              
ffc05424:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc05428:	7c 08 03 a6 	mtlr    r0                                     
ffc0542c:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc05430:	38 21 00 10 	addi    r1,r1,16                               
ffc05434:	4e 80 00 20 	blr                                            
  if ( status == RTEMS_SUCCESSFUL ) {                                 
    /* now let's set the proper value */                              
    key->val =  (void *)ptr;                                          
    return 0;                                                         
  }                                                                   
  return -1;                                                          
ffc05438:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc0543c:	4b ff ff e4 	b       ffc05420 <rtems_gxx_setspecific+0x38>  <== NOT EXECUTED
                                                                      

ffc09740 <rtems_heap_allocate_aligned_with_boundary>: size_t size, uintptr_t alignment, uintptr_t boundary ) { if (
ffc09740:	3d 20 00 00 	lis     r9,0                                   
void *rtems_heap_allocate_aligned_with_boundary(                      
  size_t size,                                                        
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
ffc09744:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc09748:	7c 08 02 a6 	mflr    r0                                     
  if (                                                                
ffc0974c:	81 29 28 ec 	lwz     r9,10476(r9)                           
void *rtems_heap_allocate_aligned_with_boundary(                      
  size_t size,                                                        
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
ffc09750:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc09754:	7c bd 2b 78 	mr      r29,r5                                 
  if (                                                                
ffc09758:	2f 89 00 03 	cmpwi   cr7,r9,3                               
void *rtems_heap_allocate_aligned_with_boundary(                      
  size_t size,                                                        
  uintptr_t alignment,                                                
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
ffc0975c:	93 c1 00 10 	stw     r30,16(r1)                             
ffc09760:	7c 9e 23 78 	mr      r30,r4                                 
ffc09764:	93 e1 00 14 	stw     r31,20(r1)                             
ffc09768:	7c 7f 1b 78 	mr      r31,r3                                 
ffc0976c:	90 01 00 1c 	stw     r0,28(r1)                              
  if (                                                                
ffc09770:	41 9e 00 38 	beq-    cr7,ffc097a8 <rtems_heap_allocate_aligned_with_boundary+0x68><== ALWAYS TAKEN
      && !malloc_is_system_state_OK()                                 
  ) {                                                                 
    return NULL;                                                      
  }                                                                   
                                                                      
  malloc_deferred_frees_process();                                    
ffc09774:	4b ff eb ad 	bl      ffc08320 <malloc_deferred_frees_process>
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment,                                                        
    boundary                                                          
  );                                                                  
}                                                                     
ffc09778:	80 01 00 1c 	lwz     r0,28(r1)                              
                                                                      
  malloc_deferred_frees_process();                                    
                                                                      
  /* FIXME: Statistics, boundary checks */                            
                                                                      
  return _Protected_heap_Allocate_aligned_with_boundary(              
ffc0977c:	3d 20 00 00 	lis     r9,0                                   
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment,                                                        
    boundary                                                          
  );                                                                  
}                                                                     
ffc09780:	7c 08 03 a6 	mtlr    r0                                     
                                                                      
  malloc_deferred_frees_process();                                    
                                                                      
  /* FIXME: Statistics, boundary checks */                            
                                                                      
  return _Protected_heap_Allocate_aligned_with_boundary(              
ffc09784:	7f e4 fb 78 	mr      r4,r31                                 
ffc09788:	7f c5 f3 78 	mr      r5,r30                                 
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment,                                                        
    boundary                                                          
  );                                                                  
}                                                                     
ffc0978c:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc09790:	83 c1 00 10 	lwz     r30,16(r1)                             
                                                                      
  malloc_deferred_frees_process();                                    
                                                                      
  /* FIXME: Statistics, boundary checks */                            
                                                                      
  return _Protected_heap_Allocate_aligned_with_boundary(              
ffc09794:	7f a6 eb 78 	mr      r6,r29                                 
ffc09798:	80 69 27 d4 	lwz     r3,10196(r9)                           
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment,                                                        
    boundary                                                          
  );                                                                  
}                                                                     
ffc0979c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc097a0:	38 21 00 18 	addi    r1,r1,24                               
                                                                      
  malloc_deferred_frees_process();                                    
                                                                      
  /* FIXME: Statistics, boundary checks */                            
                                                                      
  return _Protected_heap_Allocate_aligned_with_boundary(              
ffc097a4:	48 00 74 6c 	b       ffc10c10 <_Protected_heap_Allocate_aligned_with_boundary>
  uintptr_t boundary                                                  
)                                                                     
{                                                                     
  if (                                                                
    _System_state_Is_up( _System_state_Get() )                        
      && !malloc_is_system_state_OK()                                 
ffc097a8:	4b ff eb 4d 	bl      ffc082f4 <malloc_is_system_state_OK>   
ffc097ac:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc097b0:	40 9e ff c4 	bne+    cr7,ffc09774 <rtems_heap_allocate_aligned_with_boundary+0x34>
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment,                                                        
    boundary                                                          
  );                                                                  
}                                                                     
ffc097b4:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc097b8:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc097bc:	7c 08 03 a6 	mtlr    r0                                     
ffc097c0:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc097c4:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc097c8:	38 21 00 18 	addi    r1,r1,24                               
ffc097cc:	4e 80 00 20 	blr                                            
                                                                      

ffc05968 <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;
ffc05968:	3d 20 00 00 	lis     r9,0                                   
                                                                      
void *rtems_heap_extend_via_sbrk(                                     
  Heap_Control *heap,                                                 
  size_t alloc_size                                                   
)                                                                     
{                                                                     
ffc0596c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc05970:	7c 08 02 a6 	mflr    r0                                     
  ptrdiff_t sbrk_amount = RTEMS_Malloc_Sbrk_amount;                   
ffc05974:	81 29 28 4c 	lwz     r9,10316(r9)                           
                                                                      
void *rtems_heap_extend_via_sbrk(                                     
  Heap_Control *heap,                                                 
  size_t alloc_size                                                   
)                                                                     
{                                                                     
ffc05978:	93 c1 00 10 	stw     r30,16(r1)                             
  ptrdiff_t sbrk_amount = RTEMS_Malloc_Sbrk_amount;                   
  ptrdiff_t sbrk_size = (ptrdiff_t) alloc_size;                       
  ptrdiff_t misaligned = sbrk_size % sbrk_amount;                     
ffc0597c:	7f c4 4b d6 	divw    r30,r4,r9                              
                                                                      
void *rtems_heap_extend_via_sbrk(                                     
  Heap_Control *heap,                                                 
  size_t alloc_size                                                   
)                                                                     
{                                                                     
ffc05980:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc05984:	93 e1 00 14 	stw     r31,20(r1)                             
ffc05988:	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;                     
ffc0598c:	7f de 49 d6 	mullw   r30,r30,r9                             
                                                                      
void *rtems_heap_extend_via_sbrk(                                     
  Heap_Control *heap,                                                 
  size_t alloc_size                                                   
)                                                                     
{                                                                     
ffc05990:	7c 9f 23 78 	mr      r31,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 ) {                                            
ffc05994:	7d 5e 20 51 	subf.   r10,r30,r4                             
                                                                      
void *rtems_heap_extend_via_sbrk(                                     
  Heap_Control *heap,                                                 
  size_t alloc_size                                                   
)                                                                     
{                                                                     
ffc05998:	7c 7d 1b 78 	mr      r29,r3                                 
  ptrdiff_t sbrk_amount = RTEMS_Malloc_Sbrk_amount;                   
  ptrdiff_t sbrk_size = (ptrdiff_t) alloc_size;                       
ffc0599c:	7c 9e 23 78 	mr      r30,r4                                 
  ptrdiff_t misaligned = sbrk_size % sbrk_amount;                     
  void *return_this = NULL;                                           
                                                                      
  if ( misaligned != 0 ) {                                            
ffc059a0:	41 82 00 0c 	beq-    ffc059ac <rtems_heap_extend_via_sbrk+0x44>
    sbrk_size += sbrk_amount - misaligned;                            
ffc059a4:	7f ca 48 50 	subf    r30,r10,r9                             
ffc059a8:	7f c4 f2 14 	add     r30,r4,r30                             
  }                                                                   
                                                                      
  if ( sbrk_size > 0 && sbrk_amount > 0 ) {                           
ffc059ac:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc059b0:	40 9d 00 78 	ble-    cr7,ffc05a28 <rtems_heap_extend_via_sbrk+0xc0><== NEVER TAKEN
ffc059b4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc059b8:	40 9d 00 70 	ble-    cr7,ffc05a28 <rtems_heap_extend_via_sbrk+0xc0><== NEVER TAKEN
    void *area_begin = sbrk( sbrk_size );                             
ffc059bc:	7f c3 f3 78 	mr      r3,r30                                 
ffc059c0:	4b ff aa f9 	bl      ffc004b8 <sbrk>                        
                                                                      
    if ( area_begin != (void *) -1 ) {                                
ffc059c4:	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 );                             
ffc059c8:	7c 64 1b 78 	mr      r4,r3                                  
                                                                      
    if ( area_begin != (void *) -1 ) {                                
ffc059cc:	41 9e 00 5c 	beq-    cr7,ffc05a28 <rtems_heap_extend_via_sbrk+0xc0><== NEVER TAKEN
      bool ok = _Protected_heap_Extend( heap, area_begin, sbrk_size );
ffc059d0:	7f a3 eb 78 	mr      r3,r29                                 
ffc059d4:	7f c5 f3 78 	mr      r5,r30                                 
ffc059d8:	48 00 5f 75 	bl      ffc0b94c <_Protected_heap_Extend>      
                                                                      
      if ( ok ) {                                                     
ffc059dc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc059e0:	41 9e 00 40 	beq-    cr7,ffc05a20 <rtems_heap_extend_via_sbrk+0xb8><== ALWAYS TAKEN
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return return_this;                                                 
}                                                                     
ffc059e4:	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 );                         
ffc059e8:	3d 20 00 00 	lis     r9,0                                   <== NOT EXECUTED
ffc059ec:	81 49 2c 98 	lwz     r10,11416(r9)                          <== NOT EXECUTED
ffc059f0:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return return_this;                                                 
}                                                                     
ffc059f4:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc059f8:	83 a1 00 0c 	lwz     r29,12(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 );                         
ffc059fc:	7f de 52 14 	add     r30,r30,r10                            <== NOT EXECUTED
ffc05a00:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc05a04:	93 c9 2c 98 	stw     r30,11416(r9)                          <== NOT EXECUTED
ffc05a08:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return return_this;                                                 
}                                                                     
ffc05a0c:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc05a10:	38 c0 00 00 	li      r6,0                                   <== NOT EXECUTED
ffc05a14:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc05a18:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc05a1c:	48 00 5e c4 	b       ffc0b8e0 <_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 );                                           
ffc05a20:	7c 7e 00 d0 	neg     r3,r30                                 
ffc05a24:	4b ff aa 95 	bl      ffc004b8 <sbrk>                        
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return return_this;                                                 
}                                                                     
ffc05a28:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc05a2c:	38 60 00 00 	li      r3,0                                   
ffc05a30:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc05a34:	7c 08 03 a6 	mtlr    r0                                     
ffc05a38:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc05a3c:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc05a40:	38 21 00 18 	addi    r1,r1,24                               
ffc05a44:	4e 80 00 20 	blr                                            
                                                                      

ffc06e44 <rtems_ide_part_table_free>: * N/A */ void rtems_ide_part_table_free(rtems_disk_desc_t *disk_desc) { partition_table_free( disk_desc );
ffc06e44:	4b ff f9 30 	b       ffc06774 <partition_table_free>        <== NOT EXECUTED
                                                                      

ffc06e48 <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 );
ffc06e48:	4b ff fd 6c 	b       ffc06bb4 <partition_table_get>         <== NOT EXECUTED
                                                                      

ffc06e4c <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) {
ffc06e4c:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc06e50:	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));
ffc06e54:	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)                 
{                                                                     
ffc06e58:	93 81 00 30 	stw     r28,48(r1)                             
ffc06e5c:	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));
ffc06e60:	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)                 
{                                                                     
ffc06e64:	92 c1 00 18 	stw     r22,24(r1)                             
    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)                                            
    {                                                                 
        return RTEMS_NO_MEMORY;                                       
ffc06e68:	3a c0 00 1a 	li      r22,26                                 
 *      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)                 
{                                                                     
ffc06e6c:	93 a1 00 34 	stw     r29,52(r1)                             
ffc06e70:	90 01 00 44 	stw     r0,68(r1)                              
ffc06e74:	92 e1 00 1c 	stw     r23,28(r1)                             
ffc06e78:	93 01 00 20 	stw     r24,32(r1)                             
ffc06e7c:	93 21 00 24 	stw     r25,36(r1)                             
ffc06e80:	93 41 00 28 	stw     r26,40(r1)                             
ffc06e84:	93 61 00 2c 	stw     r27,44(r1)                             
ffc06e88:	93 c1 00 38 	stw     r30,56(r1)                             
ffc06e8c:	93 e1 00 3c 	stw     r31,60(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));
ffc06e90:	48 00 0a 35 	bl      ffc078c4 <calloc>                      
    if (disk_desc == NULL)                                            
ffc06e94:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc06e98:	41 82 00 d8 	beq-    ffc06f70 <rtems_ide_part_table_initialize+0x124><== NEVER TAKEN
    {                                                                 
        return RTEMS_NO_MEMORY;                                       
    }                                                                 
                                                                      
    /* get partition table */                                         
    rc = partition_table_get(dev_name, disk_desc);                    
ffc06e9c:	7f 83 e3 78 	mr      r3,r28                                 
ffc06ea0:	7f a4 eb 78 	mr      r4,r29                                 
ffc06ea4:	4b ff fd 11 	bl      ffc06bb4 <partition_table_get>         
    if (rc != RTEMS_SUCCESSFUL)                                       
ffc06ea8:	7c 76 1b 79 	mr.     r22,r3                                 
ffc06eac:	40 82 01 00 	bne-    ffc06fac <rtems_ide_part_table_initialize+0x160><== NEVER TAKEN
    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);                
ffc06eb0:	3f 60 ff c3 	lis     r27,-61                                
    /* 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);      
ffc06eb4:	83 3d 00 00 	lwz     r25,0(r29)                             
                                                                      
        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);
ffc06eb8:	3f 00 ff c3 	lis     r24,-61                                
    /* 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);      
ffc06ebc:	83 5d 00 04 	lwz     r26,4(r29)                             
 *      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)                 
ffc06ec0:	3b dd 00 24 	addi    r30,r29,36                             
     */                                                               
                                                                      
    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++) 
ffc06ec4:	3b e0 00 00 	li      r31,0                                  
    {                                                                 
        sprintf(name, "%s%d", dev_name, part_num + 1);                
ffc06ec8:	3b 7b 9f c8 	addi    r27,r27,-24632                         
                                                                      
        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);
ffc06ecc:	3e e0 00 00 	lis     r23,0                                  
ffc06ed0:	3b 18 9f d0 	addi    r24,r24,-24624                         
     */                                                               
                                                                      
    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++) 
ffc06ed4:	81 3d 00 24 	lwz     r9,36(r29)                             
    {                                                                 
        sprintf(name, "%s%d", dev_name, part_num + 1);                
ffc06ed8:	7f 64 db 78 	mr      r4,r27                                 
ffc06edc:	7f 85 e3 78 	mr      r5,r28                                 
     */                                                               
                                                                      
    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++) 
ffc06ee0:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
    {                                                                 
        sprintf(name, "%s%d", dev_name, part_num + 1);                
ffc06ee4:	3b ff 00 01 	addi    r31,r31,1                              
ffc06ee8:	38 61 00 08 	addi    r3,r1,8                                
ffc06eec:	7f e6 fb 78 	mr      r6,r31                                 
     */                                                               
                                                                      
    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++) 
ffc06ef0:	40 9c 00 78 	bge-    cr7,ffc06f68 <rtems_ide_part_table_initialize+0x11c>
    {                                                                 
        sprintf(name, "%s%d", dev_name, part_num + 1);                
ffc06ef4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc06ef8:	48 01 45 a1 	bl      ffc1b498 <sprintf>                     
        dev = rtems_filesystem_make_dev_t(major, ++minor);            
                                                                      
        part_desc = disk_desc->partitions[part_num];                  
ffc06efc:	85 5e 00 04 	lwzu    r10,4(r30)                             
        if (part_desc == NULL)                                        
        {                                                             
            continue;                                                 
        }                                                             
                                                                      
        rc = rtems_disk_create_log(dev, disk_desc->dev, part_desc->start,
ffc06f00:	39 21 00 08 	addi    r9,r1,8                                
    {                                                                 
        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)                                        
ffc06f04:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
        {                                                             
            continue;                                                 
        }                                                             
                                                                      
        rc = rtems_disk_create_log(dev, disk_desc->dev, part_desc->start,
ffc06f08:	7f 23 cb 78 	mr      r3,r25                                 
 *      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)                 
ffc06f0c:	7c 9f d2 14 	add     r4,r31,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)                                        
ffc06f10:	41 be ff c4 	beq-    cr7,ffc06ed4 <rtems_ide_part_table_initialize+0x88>
        {                                                             
            continue;                                                 
        }                                                             
                                                                      
        rc = rtems_disk_create_log(dev, disk_desc->dev, part_desc->start,
ffc06f14:	80 dd 00 04 	lwz     r6,4(r29)                              
ffc06f18:	80 bd 00 00 	lwz     r5,0(r29)                              
ffc06f1c:	80 ea 00 04 	lwz     r7,4(r10)                              
ffc06f20:	81 0a 00 08 	lwz     r8,8(r10)                              
ffc06f24:	4b ff f0 95 	bl      ffc05fb8 <rtems_disk_create_log>       
                                   part_desc->size, name);            
        if (rc != RTEMS_SUCCESSFUL)                                   
ffc06f28:	7c 66 1b 79 	mr.     r6,r3                                  
ffc06f2c:	41 82 ff a8 	beq+    ffc06ed4 <rtems_ide_part_table_initialize+0x88><== ALWAYS TAKEN
        {                                                             
            fprintf(stdout,"Cannot create device %s, error code %d\n", name, rc);
ffc06f30:	81 37 27 ec 	lwz     r9,10220(r23)                          <== NOT EXECUTED
ffc06f34:	7f 04 c3 78 	mr      r4,r24                                 <== NOT EXECUTED
ffc06f38:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc06f3c:	80 69 00 08 	lwz     r3,8(r9)                               <== NOT EXECUTED
ffc06f40:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc06f44:	48 01 3a 9d 	bl      ffc1a9e0 <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++) 
ffc06f48:	81 3d 00 24 	lwz     r9,36(r29)                             <== NOT EXECUTED
    {                                                                 
        sprintf(name, "%s%d", dev_name, part_num + 1);                
ffc06f4c:	7f 64 db 78 	mr      r4,r27                                 <== 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++) 
ffc06f50:	7f 9f 48 00 	cmpw    cr7,r31,r9                             <== NOT EXECUTED
    {                                                                 
        sprintf(name, "%s%d", dev_name, part_num + 1);                
ffc06f54:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
ffc06f58:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc06f5c:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc06f60:	7f e6 fb 78 	mr      r6,r31                                 <== 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++) 
ffc06f64:	41 9c ff 90 	blt+    cr7,ffc06ef4 <rtems_ide_part_table_initialize+0xa8><== NOT EXECUTED
            fprintf(stdout,"Cannot create device %s, error code %d\n", name, rc);
            continue;                                                 
        }                                                             
    }                                                                 
                                                                      
    partition_table_free(disk_desc);                                  
ffc06f68:	7f a3 eb 78 	mr      r3,r29                                 
ffc06f6c:	4b ff f8 09 	bl      ffc06774 <partition_table_free>        
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc06f70:	80 01 00 44 	lwz     r0,68(r1)                              
ffc06f74:	7e c3 b3 78 	mr      r3,r22                                 
ffc06f78:	82 e1 00 1c 	lwz     r23,28(r1)                             
ffc06f7c:	7c 08 03 a6 	mtlr    r0                                     
ffc06f80:	82 c1 00 18 	lwz     r22,24(r1)                             
ffc06f84:	83 01 00 20 	lwz     r24,32(r1)                             
ffc06f88:	83 21 00 24 	lwz     r25,36(r1)                             
ffc06f8c:	83 41 00 28 	lwz     r26,40(r1)                             
ffc06f90:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc06f94:	83 81 00 30 	lwz     r28,48(r1)                             
ffc06f98:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc06f9c:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc06fa0:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc06fa4:	38 21 00 40 	addi    r1,r1,64                               
ffc06fa8:	4e 80 00 20 	blr                                            
                                                                      
    /* get partition table */                                         
    rc = partition_table_get(dev_name, disk_desc);                    
    if (rc != RTEMS_SUCCESSFUL)                                       
    {                                                                 
        free(disk_desc);                                              
ffc06fac:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc06fb0:	48 00 0a 25 	bl      ffc079d4 <free>                        <== NOT EXECUTED
    }                                                                 
                                                                      
    partition_table_free(disk_desc);                                  
                                                                      
    return RTEMS_SUCCESSFUL;                                          
}                                                                     
ffc06fb4:	80 01 00 44 	lwz     r0,68(r1)                              <== NOT EXECUTED
ffc06fb8:	7e c3 b3 78 	mr      r3,r22                                 <== NOT EXECUTED
ffc06fbc:	82 e1 00 1c 	lwz     r23,28(r1)                             <== NOT EXECUTED
ffc06fc0:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc06fc4:	82 c1 00 18 	lwz     r22,24(r1)                             <== NOT EXECUTED
ffc06fc8:	83 01 00 20 	lwz     r24,32(r1)                             <== NOT EXECUTED
ffc06fcc:	83 21 00 24 	lwz     r25,36(r1)                             <== NOT EXECUTED
ffc06fd0:	83 41 00 28 	lwz     r26,40(r1)                             <== NOT EXECUTED
ffc06fd4:	83 61 00 2c 	lwz     r27,44(r1)                             <== NOT EXECUTED
ffc06fd8:	83 81 00 30 	lwz     r28,48(r1)                             <== NOT EXECUTED
ffc06fdc:	83 a1 00 34 	lwz     r29,52(r1)                             <== NOT EXECUTED
ffc06fe0:	83 c1 00 38 	lwz     r30,56(r1)                             <== NOT EXECUTED
ffc06fe4:	83 e1 00 3c 	lwz     r31,60(r1)                             <== NOT EXECUTED
ffc06fe8:	38 21 00 40 	addi    r1,r1,64                               <== NOT EXECUTED
ffc06fec:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc0b998 <rtems_io_register_driver>: rtems_device_major_number *registered_major ) { rtems_device_major_number major_limit = _IO_Number_of_drivers; if ( rtems_interrupt_is_in_progress() )
ffc0b998:	3d 20 00 00 	lis     r9,0                                   
ffc0b99c:	81 49 32 08 	lwz     r10,12808(r9)                          
  rtems_device_major_number         major,                            
  const rtems_driver_address_table *driver_table,                     
  rtems_device_major_number        *registered_major                  
)                                                                     
{                                                                     
  rtems_device_major_number major_limit = _IO_Number_of_drivers;      
ffc0b9a0:	3d 20 00 00 	lis     r9,0                                   
ffc0b9a4:	81 09 28 5c 	lwz     r8,10332(r9)                           
                                                                      
  if ( rtems_interrupt_is_in_progress() )                             
ffc0b9a8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0b9ac:	41 9e 00 0c 	beq-    cr7,ffc0b9b8 <rtems_io_register_driver+0x20>
    return RTEMS_CALLED_FROM_ISR;                                     
ffc0b9b0:	38 60 00 12 	li      r3,18                                  
  _IO_Driver_address_table [major] = *driver_table;                   
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
}                                                                     
ffc0b9b4:	4e 80 00 20 	blr                                            
  rtems_device_major_number major_limit = _IO_Number_of_drivers;      
                                                                      
  if ( rtems_interrupt_is_in_progress() )                             
    return RTEMS_CALLED_FROM_ISR;                                     
                                                                      
  if ( registered_major == NULL )                                     
ffc0b9b8:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc0b9bc:	41 9e 00 50 	beq-    cr7,ffc0ba0c <rtems_io_register_driver+0x74>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  /* Set it to an invalid value */                                    
  *registered_major = major_limit;                                    
                                                                      
  if ( driver_table == NULL )                                         
ffc0b9c0:	2f 84 00 00 	cmpwi   cr7,r4,0                               
                                                                      
  if ( registered_major == NULL )                                     
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  /* Set it to an invalid value */                                    
  *registered_major = major_limit;                                    
ffc0b9c4:	91 05 00 00 	stw     r8,0(r5)                               
                                                                      
  if ( driver_table == NULL )                                         
ffc0b9c8:	41 9e 00 44 	beq-    cr7,ffc0ba0c <rtems_io_register_driver+0x74>
rtems_status_code rtems_io_register_driver(                           
  rtems_device_major_number         major,                            
  const rtems_driver_address_table *driver_table,                     
  rtems_device_major_number        *registered_major                  
)                                                                     
{                                                                     
ffc0b9cc:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0b9d0:	7c 08 02 a6 	mflr    r0                                     
ffc0b9d4:	90 01 00 14 	stw     r0,20(r1)                              
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0b9d8:	81 44 00 00 	lwz     r10,0(r4)                              
rtems_status_code rtems_io_register_driver(                           
  rtems_device_major_number         major,                            
  const rtems_driver_address_table *driver_table,                     
  rtems_device_major_number        *registered_major                  
)                                                                     
{                                                                     
ffc0b9dc:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0b9e0:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0b9e4:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0b9e8:	41 9e 00 2c 	beq-    cr7,ffc0ba14 <rtems_io_register_driver+0x7c>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( rtems_io_is_empty_table( driver_table ) )                      
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( major >= major_limit )                                         
ffc0b9ec:	7f 88 f8 40 	cmplw   cr7,r8,r31                             
    return RTEMS_INVALID_NUMBER;                                      
ffc0b9f0:	38 60 00 0a 	li      r3,10                                  
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( rtems_io_is_empty_table( driver_table ) )                      
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( major >= major_limit )                                         
ffc0b9f4:	41 9d 00 34 	bgt-    cr7,ffc0ba28 <rtems_io_register_driver+0x90>
  _IO_Driver_address_table [major] = *driver_table;                   
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
}                                                                     
ffc0b9f8:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0b9fc:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0ba00:	7c 08 03 a6 	mtlr    r0                                     
ffc0ba04:	38 21 00 10 	addi    r1,r1,16                               
ffc0ba08:	4e 80 00 20 	blr                                            
                                                                      
  /* Set it to an invalid value */                                    
  *registered_major = major_limit;                                    
                                                                      
  if ( driver_table == NULL )                                         
    return RTEMS_INVALID_ADDRESS;                                     
ffc0ba0c:	38 60 00 09 	li      r3,9                                   
ffc0ba10:	4e 80 00 20 	blr                                            
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0ba14:	81 44 00 04 	lwz     r10,4(r4)                              
ffc0ba18:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0ba1c:	40 9e ff d0 	bne+    cr7,ffc0b9ec <rtems_io_register_driver+0x54>
                                                                      
  if ( driver_table == NULL )                                         
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( rtems_io_is_empty_table( driver_table ) )                      
    return RTEMS_INVALID_ADDRESS;                                     
ffc0ba20:	38 60 00 09 	li      r3,9                                   
ffc0ba24:	4b ff ff d4 	b       ffc0b9f8 <rtems_io_register_driver+0x60>
   *                                                                  
   * 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;                  
ffc0ba28:	3d 40 00 00 	lis     r10,0                                  
ffc0ba2c:	81 0a 28 20 	lwz     r8,10272(r10)                          
                                                                      
    ++level;                                                          
ffc0ba30:	39 08 00 01 	addi    r8,r8,1                                
    _Thread_Dispatch_disable_level = level;                           
ffc0ba34:	91 0a 28 20 	stw     r8,10272(r10)                          
  if ( major >= major_limit )                                         
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( major == 0 ) {                                                 
ffc0ba38:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0ba3c:	41 9e 00 2c 	beq-    cr7,ffc0ba68 <rtems_io_register_driver+0xd0>
      _Thread_Enable_dispatch();                                      
      return sc;                                                      
    }                                                                 
    major = *registered_major;                                        
  } else {                                                            
    rtems_driver_address_table *const table = _IO_Driver_address_table + major;
ffc0ba40:	3d 00 00 00 	lis     r8,0                                   
ffc0ba44:	1d 5f 00 18 	mulli   r10,r31,24                             
ffc0ba48:	81 28 28 60 	lwz     r9,10336(r8)                           
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0ba4c:	7c e9 50 2e 	lwzx    r7,r9,r10                              
      _Thread_Enable_dispatch();                                      
      return sc;                                                      
    }                                                                 
    major = *registered_major;                                        
  } else {                                                            
    rtems_driver_address_table *const table = _IO_Driver_address_table + major;
ffc0ba50:	7d 29 52 14 	add     r9,r9,r10                              
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0ba54:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc0ba58:	41 9e 00 cc 	beq-    cr7,ffc0bb24 <rtems_io_register_driver+0x18c>
    major = *registered_major;                                        
  } else {                                                            
    rtems_driver_address_table *const table = _IO_Driver_address_table + major;
                                                                      
    if ( !rtems_io_is_empty_table( table ) ) {                        
      _Thread_Enable_dispatch();                                      
ffc0ba5c:	48 00 26 a9 	bl      ffc0e104 <_Thread_Enable_dispatch>     
      return RTEMS_RESOURCE_IN_USE;                                   
ffc0ba60:	38 60 00 0c 	li      r3,12                                  
ffc0ba64:	4b ff ff 94 	b       ffc0b9f8 <rtems_io_register_driver+0x60>
                                                                      
static rtems_status_code rtems_io_obtain_major_number(                
  rtems_device_major_number *major                                    
)                                                                     
{                                                                     
  rtems_device_major_number n = _IO_Number_of_drivers;                
ffc0ba68:	80 e9 28 5c 	lwz     r7,10332(r9)                           
  rtems_device_major_number m = 0;                                    
                                                                      
  /* major is error checked by caller */                              
                                                                      
  for ( m = 0; m < n; ++m ) {                                         
ffc0ba6c:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc0ba70:	41 9e 00 a4 	beq-    cr7,ffc0bb14 <rtems_io_register_driver+0x17c><== NEVER TAKEN
ffc0ba74:	3d 00 00 00 	lis     r8,0                                   
ffc0ba78:	7c e9 03 a6 	mtctr   r7                                     
ffc0ba7c:	81 28 28 60 	lwz     r9,10336(r8)                           
ffc0ba80:	48 00 00 10 	b       ffc0ba90 <rtems_io_register_driver+0xf8>
ffc0ba84:	3b ff 00 01 	addi    r31,r31,1                              
ffc0ba88:	39 29 00 18 	addi    r9,r9,24                               
ffc0ba8c:	42 40 00 88 	bdz-    ffc0bb14 <rtems_io_register_driver+0x17c>
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0ba90:	81 49 00 00 	lwz     r10,0(r9)                              
ffc0ba94:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0ba98:	40 9e ff ec 	bne+    cr7,ffc0ba84 <rtems_io_register_driver+0xec>
ffc0ba9c:	81 49 00 04 	lwz     r10,4(r9)                              
ffc0baa0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0baa4:	40 9e ff e0 	bne+    cr7,ffc0ba84 <rtems_io_register_driver+0xec>
  }                                                                   
                                                                      
  /* Assigns invalid value in case of failure */                      
  *major = m;                                                         
                                                                      
  if ( m != n )                                                       
ffc0baa8:	7f 87 f8 00 	cmpw    cr7,r7,r31                             
    if ( rtems_io_is_empty_table( table ) )                           
      break;                                                          
  }                                                                   
                                                                      
  /* Assigns invalid value in case of failure */                      
  *major = m;                                                         
ffc0baac:	93 e5 00 00 	stw     r31,0(r5)                              
ffc0bab0:	1d 5f 00 18 	mulli   r10,r31,24                             
                                                                      
  if ( m != n )                                                       
ffc0bab4:	41 9e 00 64 	beq-    cr7,ffc0bb18 <rtems_io_register_driver+0x180><== NEVER TAKEN
    }                                                                 
                                                                      
    *registered_major = major;                                        
  }                                                                   
                                                                      
  _IO_Driver_address_table [major] = *driver_table;                   
ffc0bab8:	81 08 28 60 	lwz     r8,10336(r8)                           
ffc0babc:	80 64 00 04 	lwz     r3,4(r4)                               
ffc0bac0:	80 a4 00 08 	lwz     r5,8(r4)                               
ffc0bac4:	7d 28 52 14 	add     r9,r8,r10                              
ffc0bac8:	80 e4 00 00 	lwz     r7,0(r4)                               
ffc0bacc:	80 c4 00 0c 	lwz     r6,12(r4)                              
ffc0bad0:	7c e8 51 2e 	stwx    r7,r8,r10                              
ffc0bad4:	90 69 00 04 	stw     r3,4(r9)                               
ffc0bad8:	90 a9 00 08 	stw     r5,8(r9)                               
ffc0badc:	90 c9 00 0c 	stw     r6,12(r9)                              
ffc0bae0:	81 04 00 10 	lwz     r8,16(r4)                              
ffc0bae4:	81 44 00 14 	lwz     r10,20(r4)                             
ffc0bae8:	91 09 00 10 	stw     r8,16(r9)                              
ffc0baec:	91 49 00 14 	stw     r10,20(r9)                             
                                                                      
  _Thread_Enable_dispatch();                                          
ffc0baf0:	48 00 26 15 	bl      ffc0e104 <_Thread_Enable_dispatch>     
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
}                                                                     
ffc0baf4:	80 01 00 14 	lwz     r0,20(r1)                              
                                                                      
  _IO_Driver_address_table [major] = *driver_table;                   
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
ffc0baf8:	7f e3 fb 78 	mr      r3,r31                                 
}                                                                     
ffc0bafc:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0bb00:	7c 08 03 a6 	mtlr    r0                                     
                                                                      
  _IO_Driver_address_table [major] = *driver_table;                   
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
ffc0bb04:	38 80 00 00 	li      r4,0                                   
ffc0bb08:	38 a0 00 00 	li      r5,0                                   
}                                                                     
ffc0bb0c:	38 21 00 10 	addi    r1,r1,16                               
                                                                      
  _IO_Driver_address_table [major] = *driver_table;                   
                                                                      
  _Thread_Enable_dispatch();                                          
                                                                      
  return rtems_io_initialize( major, 0, NULL );                       
ffc0bb10:	48 00 9d 84 	b       ffc15894 <rtems_io_initialize>         
    if ( rtems_io_is_empty_table( table ) )                           
      break;                                                          
  }                                                                   
                                                                      
  /* Assigns invalid value in case of failure */                      
  *major = m;                                                         
ffc0bb14:	93 e5 00 00 	stw     r31,0(r5)                              
                                                                      
  if ( major == 0 ) {                                                 
    rtems_status_code sc = rtems_io_obtain_major_number( registered_major );
                                                                      
    if ( sc != RTEMS_SUCCESSFUL ) {                                   
      _Thread_Enable_dispatch();                                      
ffc0bb18:	48 00 25 ed 	bl      ffc0e104 <_Thread_Enable_dispatch>     
  *major = m;                                                         
                                                                      
  if ( m != n )                                                       
    return RTEMS_SUCCESSFUL;                                          
                                                                      
  return RTEMS_TOO_MANY;                                              
ffc0bb1c:	38 60 00 05 	li      r3,5                                   
  if ( major == 0 ) {                                                 
    rtems_status_code sc = rtems_io_obtain_major_number( registered_major );
                                                                      
    if ( sc != RTEMS_SUCCESSFUL ) {                                   
      _Thread_Enable_dispatch();                                      
      return sc;                                                      
ffc0bb20:	4b ff fe d8 	b       ffc0b9f8 <rtems_io_register_driver+0x60>
                                                                      
static inline bool rtems_io_is_empty_table(                           
  const rtems_driver_address_table *table                             
)                                                                     
{                                                                     
  return table->initialization_entry == NULL && table->open_entry == NULL;
ffc0bb24:	81 29 00 04 	lwz     r9,4(r9)                               
ffc0bb28:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0bb2c:	40 9e ff 30 	bne+    cr7,ffc0ba5c <rtems_io_register_driver+0xc4>
    if ( !rtems_io_is_empty_table( table ) ) {                        
      _Thread_Enable_dispatch();                                      
      return RTEMS_RESOURCE_IN_USE;                                   
    }                                                                 
                                                                      
    *registered_major = major;                                        
ffc0bb30:	93 e5 00 00 	stw     r31,0(r5)                              
ffc0bb34:	4b ff ff 84 	b       ffc0bab8 <rtems_io_register_driver+0x120>
                                                                      

ffc0d020 <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) {
ffc0d020:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0d024:	7c 08 02 a6 	mflr    r0                                     
ffc0d028:	93 a1 00 14 	stw     r29,20(r1)                             
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
ffc0d02c:	7c 7d 1b 79 	mr.     r29,r3                                 
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
{                                                                     
ffc0d030:	90 01 00 24 	stw     r0,36(r1)                              
ffc0d034:	93 61 00 0c 	stw     r27,12(r1)                             
ffc0d038:	93 81 00 10 	stw     r28,16(r1)                             
ffc0d03c:	93 c1 00 18 	stw     r30,24(r1)                             
ffc0d040:	93 e1 00 1c 	stw     r31,28(r1)                             
  uint32_t             i;                                             
  uint32_t             api_index;                                     
  Thread_Control      *the_thread;                                    
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
ffc0d044:	41 82 00 68 	beq-    ffc0d0ac <rtems_iterate_over_all_threads+0x8c><== NEVER TAKEN
ffc0d048:	3f 80 00 00 	lis     r28,0                                  
ffc0d04c:	3b 9c 30 78 	addi    r28,r28,12408                          
#endif                                                                
                                                                      
#include <rtems/system.h>                                             
#include <rtems/score/thread.h>                                       
                                                                      
void rtems_iterate_over_all_threads(rtems_per_thread_routine routine) 
ffc0d050:	3b 7c 00 0c 	addi    r27,r28,12                             
    #if !defined(RTEMS_POSIX_API) || defined(RTEMS_DEBUG)             
      if ( !_Objects_Information_table[ api_index ] )                 
        continue;                                                     
    #endif                                                            
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
ffc0d054:	85 3c 00 04 	lwzu    r9,4(r28)                              
ffc0d058:	83 c9 00 04 	lwz     r30,4(r9)                              
    if ( !information )                                               
ffc0d05c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc0d060:	41 9e 00 44 	beq-    cr7,ffc0d0a4 <rtems_iterate_over_all_threads+0x84>
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
ffc0d064:	a1 1e 00 10 	lhz     r8,16(r30)                             
ffc0d068:	71 09 ff ff 	andi.   r9,r8,65535                            
ffc0d06c:	41 82 00 38 	beq-    ffc0d0a4 <rtems_iterate_over_all_threads+0x84>
ffc0d070:	3b e0 00 01 	li      r31,1                                  
      the_thread = (Thread_Control *)information->local_table[ i ];   
ffc0d074:	81 3e 00 1c 	lwz     r9,28(r30)                             
ffc0d078:	57 ea 10 3a 	rlwinm  r10,r31,2,0,29                         
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( !information )                                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
ffc0d07c:	3b ff 00 01 	addi    r31,r31,1                              
      the_thread = (Thread_Control *)information->local_table[ i ];   
ffc0d080:	7c 69 50 2e 	lwzx    r3,r9,r10                              
                                                                      
      if ( !the_thread )                                              
ffc0d084:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0d088:	41 9e 00 10 	beq-    cr7,ffc0d098 <rtems_iterate_over_all_threads+0x78>
	continue;                                                            
                                                                      
      (*routine)(the_thread);                                         
ffc0d08c:	7f a9 03 a6 	mtctr   r29                                    
ffc0d090:	4e 80 04 21 	bctrl                                          
ffc0d094:	a1 1e 00 10 	lhz     r8,16(r30)                             
                                                                      
    information = _Objects_Information_table[ api_index ][ 1 ];       
    if ( !information )                                               
      continue;                                                       
                                                                      
    for ( i=1 ; i <= information->maximum ; i++ ) {                   
ffc0d098:	55 09 04 3e 	clrlwi  r9,r8,16                               
ffc0d09c:	7f 89 f8 40 	cmplw   cr7,r9,r31                             
ffc0d0a0:	40 9c ff d4 	bge+    cr7,ffc0d074 <rtems_iterate_over_all_threads+0x54>
  Objects_Information *information;                                   
                                                                      
  if ( !routine )                                                     
    return;                                                           
                                                                      
  for ( api_index = 1 ; api_index <= OBJECTS_APIS_LAST ; api_index++ ) {
ffc0d0a4:	7f 9c d8 00 	cmpw    cr7,r28,r27                            
ffc0d0a8:	40 9e ff ac 	bne+    cr7,ffc0d054 <rtems_iterate_over_all_threads+0x34>
                                                                      
      (*routine)(the_thread);                                         
    }                                                                 
  }                                                                   
                                                                      
}                                                                     
ffc0d0ac:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0d0b0:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0d0b4:	7c 08 03 a6 	mtlr    r0                                     
ffc0d0b8:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0d0bc:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0d0c0:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0d0c4:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0d0c8:	38 21 00 20 	addi    r1,r1,32                               
ffc0d0cc:	4e 80 00 20 	blr                                            
                                                                      

ffc04d14 <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 ) {
ffc04d14:	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)                                  
ffc04d18:	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 )                                         
{                                                                     
ffc04d1c:	7c 08 02 a6 	mflr    r0                                     
ffc04d20:	93 e1 00 0c 	stw     r31,12(r1)                             
    rtems_status_code rc;                                             
    uint32_t i;                                                       
    rtems_libio_t *iop;                                               
                                                                      
    if (rtems_libio_number_iops > 0)                                  
ffc04d24:	83 e9 27 98 	lwz     r31,10136(r9)                          
rtems_id           rtems_libio_semaphore;                             
rtems_libio_t     *rtems_libio_iops;                                  
rtems_libio_t     *rtems_libio_iop_freelist;                          
                                                                      
void rtems_libio_init( void )                                         
{                                                                     
ffc04d28:	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)                                  
ffc04d2c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc04d30:	41 9e 00 64 	beq-    cr7,ffc04d94 <rtems_libio_init+0x80>   <== NEVER TAKEN
    {                                                                 
        rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
ffc04d34:	7f e3 fb 78 	mr      r3,r31                                 
ffc04d38:	38 80 00 38 	li      r4,56                                  
ffc04d3c:	4b ff fa 7d 	bl      ffc047b8 <calloc>                      
ffc04d40:	3d 20 00 00 	lis     r9,0                                   
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
ffc04d44:	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,
ffc04d48:	90 69 28 4c 	stw     r3,10316(r9)                           
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
ffc04d4c:	41 9e 00 b0 	beq-    cr7,ffc04dfc <rtems_libio_init+0xe8>   
            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++)  
ffc04d50:	2b 9f 00 01 	cmplwi  cr7,r31,1                              
        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;            
ffc04d54:	3d 20 00 00 	lis     r9,0                                   
ffc04d58:	90 69 28 50 	stw     r3,10320(r9)                           
        for (i = 0 ; (i + 1) < rtems_libio_number_iops ; i++, iop++)  
ffc04d5c:	40 9d 00 30 	ble-    cr7,ffc04d8c <rtems_libio_init+0x78>   
ffc04d60:	3b ff ff ff 	addi    r31,r31,-1                             
ffc04d64:	7f e9 03 a6 	mtctr   r31                                    
ffc04d68:	7c 69 1b 78 	mr      r9,r3                                  
ffc04d6c:	39 40 00 01 	li      r10,1                                  
          iop->data1 = iop + 1;                                       
ffc04d70:	39 29 00 38 	addi    r9,r9,56                               
ffc04d74:	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++)  
ffc04d78:	39 4a 00 01 	addi    r10,r10,1                              
ffc04d7c:	42 00 ff f4 	bdnz+   ffc04d70 <rtems_libio_init+0x5c>       
                                                                      
rtems_id           rtems_libio_semaphore;                             
rtems_libio_t     *rtems_libio_iops;                                  
rtems_libio_t     *rtems_libio_iop_freelist;                          
                                                                      
void rtems_libio_init( void )                                         
ffc04d80:	39 4a ff ff 	addi    r10,r10,-1                             
ffc04d84:	1d 4a 00 38 	mulli   r10,r10,56                             
ffc04d88:	7c 63 52 14 	add     r3,r3,r10                              
            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++)  
          iop->data1 = iop + 1;                                       
        iop->data1 = NULL;                                            
ffc04d8c:	39 20 00 00 	li      r9,0                                   
ffc04d90:	91 23 00 30 	stw     r9,48(r3)                              
  /*                                                                  
   *  Create the binary semaphore used to provide mutual exclusion    
   *  on the IOP Table.                                               
   */                                                                 
                                                                      
  rc = rtems_semaphore_create(                                        
ffc04d94:	3c 60 4c 42 	lis     r3,19522                               
ffc04d98:	3c e0 00 00 	lis     r7,0                                   
ffc04d9c:	60 63 49 4f 	ori     r3,r3,18767                            
ffc04da0:	38 80 00 01 	li      r4,1                                   
ffc04da4:	38 a0 00 54 	li      r5,84                                  
ffc04da8:	38 c0 00 00 	li      r6,0                                   
ffc04dac:	38 e7 28 54 	addi    r7,r7,10324                            
ffc04db0:	48 00 49 5d 	bl      ffc0970c <rtems_semaphore_create>      
    1,                                                                
    RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, 
    RTEMS_NO_PRIORITY,                                                
    &rtems_libio_semaphore                                            
  );                                                                  
  if ( rc != RTEMS_SUCCESSFUL )                                       
ffc04db4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc04db8:	40 9e 00 40 	bne-    cr7,ffc04df8 <rtems_libio_init+0xe4>   <== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Initialize the base file system infrastructure.                 
   */                                                                 
                                                                      
  if (rtems_fs_init_helper)                                           
ffc04dbc:	3d 20 00 00 	lis     r9,0                                   
ffc04dc0:	81 29 27 9c 	lwz     r9,10140(r9)                           
ffc04dc4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04dc8:	41 9e 00 1c 	beq-    cr7,ffc04de4 <rtems_libio_init+0xd0>   
     (* rtems_fs_init_helper)();                                      
}                                                                     
ffc04dcc:	80 01 00 14 	lwz     r0,20(r1)                              
  /*                                                                  
   *  Initialize the base file system infrastructure.                 
   */                                                                 
                                                                      
  if (rtems_fs_init_helper)                                           
     (* rtems_fs_init_helper)();                                      
ffc04dd0:	7d 29 03 a6 	mtctr   r9                                     
}                                                                     
ffc04dd4:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc04dd8:	7c 08 03 a6 	mtlr    r0                                     
ffc04ddc:	38 21 00 10 	addi    r1,r1,16                               
  /*                                                                  
   *  Initialize the base file system infrastructure.                 
   */                                                                 
                                                                      
  if (rtems_fs_init_helper)                                           
     (* rtems_fs_init_helper)();                                      
ffc04de0:	4e 80 04 20 	bctr                                           
}                                                                     
ffc04de4:	80 01 00 14 	lwz     r0,20(r1)                              
ffc04de8:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc04dec:	7c 08 03 a6 	mtlr    r0                                     
ffc04df0:	38 21 00 10 	addi    r1,r1,16                               
ffc04df4:	4e 80 00 20 	blr                                            
    RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY | RTEMS_PRIORITY, 
    RTEMS_NO_PRIORITY,                                                
    &rtems_libio_semaphore                                            
  );                                                                  
  if ( rc != RTEMS_SUCCESSFUL )                                       
    rtems_fatal_error_occurred( rc );                                 
ffc04df8:	48 00 55 a5 	bl      ffc0a39c <rtems_fatal_error_occurred>  <== NOT EXECUTED
    if (rtems_libio_number_iops > 0)                                  
    {                                                                 
        rtems_libio_iops = (rtems_libio_t *) calloc(rtems_libio_number_iops,
                                                    sizeof(rtems_libio_t));
        if (rtems_libio_iops == NULL)                                 
            rtems_fatal_error_occurred(RTEMS_NO_MEMORY);              
ffc04dfc:	38 60 00 1a 	li      r3,26                                  
ffc04e00:	48 00 55 9d 	bl      ffc0a39c <rtems_fatal_error_occurred>  
                                                                      

ffc06554 <rtems_libio_set_private_env>: } rtems_status_code rtems_libio_set_private_env(void) {
ffc06554:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc06558:	7c 08 02 a6 	mflr    r0                                     
ffc0655c:	93 61 00 0c 	stw     r27,12(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_id self_task_id = rtems_task_self();                          
  rtems_user_env_t *old_env = rtems_current_user_env;                 
ffc06560:	3f 60 00 00 	lis     r27,0                                  
  free_user_env(env);                                                 
  _Thread_Enable_dispatch();                                          
}                                                                     
                                                                      
rtems_status_code rtems_libio_set_private_env(void)                   
{                                                                     
ffc06564:	93 81 00 10 	stw     r28,16(r1)                             
ffc06568:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc0656c:	90 01 00 24 	stw     r0,36(r1)                              
ffc06570:	93 a1 00 14 	stw     r29,20(r1)                             
ffc06574:	93 c1 00 18 	stw     r30,24(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_id self_task_id = rtems_task_self();                          
ffc06578:	48 00 20 31 	bl      ffc085a8 <rtems_task_self>             
  rtems_user_env_t *old_env = rtems_current_user_env;                 
  bool uses_global_env = old_env == &rtems_global_user_env;           
  bool uses_shared_env = old_env->task_id != self_task_id;            
                                                                      
  if (uses_global_env || uses_shared_env) {                           
ffc0657c:	3d 20 00 00 	lis     r9,0                                   
                                                                      
rtems_status_code rtems_libio_set_private_env(void)                   
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_id self_task_id = rtems_task_self();                          
  rtems_user_env_t *old_env = rtems_current_user_env;                 
ffc06580:	83 fb 27 68 	lwz     r31,10088(r27)                         
  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) {                           
ffc06584:	39 29 21 38 	addi    r9,r9,8504                             
}                                                                     
                                                                      
rtems_status_code rtems_libio_set_private_env(void)                   
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_id self_task_id = rtems_task_self();                          
ffc06588:	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) {                           
ffc0658c:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
{                                                                     
  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;            
ffc06590:	81 5f 00 24 	lwz     r10,36(r31)                            
                                                                      
  if (uses_global_env || uses_shared_env) {                           
ffc06594:	41 9e 00 0c 	beq-    cr7,ffc065a0 <rtems_libio_set_private_env+0x4c>
ffc06598:	7f 83 50 00 	cmpw    cr7,r3,r10                             
ffc0659c:	41 9e 00 d4 	beq-    cr7,ffc06670 <rtems_libio_set_private_env+0x11c>
    rtems_user_env_t *new_env = calloc(1, sizeof(*new_env));          
ffc065a0:	38 60 00 01 	li      r3,1                                   
ffc065a4:	38 80 00 2c 	li      r4,44                                  
ffc065a8:	48 00 5d 35 	bl      ffc0c2dc <calloc>                      
                                                                      
      if (sc != RTEMS_SUCCESSFUL) {                                   
        free_user_env(new_env);                                       
      }                                                               
    } else {                                                          
      sc = RTEMS_NO_MEMORY;                                           
ffc065ac:	3b c0 00 1a 	li      r30,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) {                                            
ffc065b0:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc065b4:	41 82 00 80 	beq-    ffc06634 <rtems_libio_set_private_env+0xe0>
      *new_env = *old_env;                                            
ffc065b8:	7f e4 fb 78 	mr      r4,r31                                 
ffc065bc:	38 a0 00 2c 	li      r5,44                                  
ffc065c0:	48 00 95 71 	bl      ffc0fb30 <memcpy>                      
      new_env->reference_count = 1;                                   
ffc065c4:	39 20 00 01 	li      r9,1                                   
ffc065c8:	91 3d 00 28 	stw     r9,40(r29)                             
      new_env->task_id = self_task_id;                                
      new_env->root_directory =                                       
        rtems_filesystem_global_location_obtain(&old_env->root_directory);
ffc065cc:	38 7f 00 04 	addi    r3,r31,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;                                
ffc065d0:	93 9d 00 24 	stw     r28,36(r29)                            
      new_env->root_directory =                                       
        rtems_filesystem_global_location_obtain(&old_env->root_directory);
ffc065d4:	48 00 10 55 	bl      ffc07628 <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 =                                       
ffc065d8:	90 7d 00 04 	stw     r3,4(r29)                              
        rtems_filesystem_global_location_obtain(&old_env->root_directory);
      new_env->current_directory =                                    
        rtems_filesystem_global_location_obtain(&old_env->current_directory);
ffc065dc:	7f e3 fb 78 	mr      r3,r31                                 
ffc065e0:	48 00 10 49 	bl      ffc07628 <rtems_filesystem_global_location_obtain>
      rtems_fatal_error_occurred(0xdeadbeef);                         
    }                                                                 
                                                                      
    rtems_current_user_env = &rtems_global_user_env;                  
  }                                                                   
}                                                                     
ffc065e4:	81 5d 00 04 	lwz     r10,4(r29)                             
      *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 =                                    
ffc065e8:	90 7d 00 00 	stw     r3,0(r29)                              
        rtems_filesystem_global_location_obtain(&old_env->current_directory);
                                                                      
      if (                                                            
ffc065ec:	3d 20 ff c1 	lis     r9,-63                                 
ffc065f0:	39 29 5a 0c 	addi    r9,r9,23052                            
ffc065f4:	81 4a 00 10 	lwz     r10,16(r10)                            
ffc065f8:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc065fc:	41 9e 00 a0 	beq-    cr7,ffc0669c <rtems_libio_set_private_env+0x148>
        !rtems_filesystem_global_location_is_null(new_env->root_directory)
          && !rtems_filesystem_global_location_is_null(new_env->current_directory)
ffc06600:	81 43 00 10 	lwz     r10,16(r3)                             
ffc06604:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc06608:	41 9e 00 94 	beq-    cr7,ffc0669c <rtems_libio_set_private_env+0x148><== NEVER TAKEN
      ) {                                                             
        sc = rtems_task_variable_add(                                 
ffc0660c:	3c a0 ff c0 	lis     r5,-64                                 
ffc06610:	38 60 00 00 	li      r3,0                                   
ffc06614:	38 9b 27 68 	addi    r4,r27,10088                           
ffc06618:	38 a5 64 b0 	addi    r5,r5,25776                            
ffc0661c:	48 00 20 3d 	bl      ffc08658 <rtems_task_variable_add>     
          RTEMS_SELF,                                                 
          (void **) &rtems_current_user_env,                          
          free_user_env                                               
        );                                                            
        if (sc == RTEMS_SUCCESSFUL) {                                 
ffc06620:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc06624:	41 82 00 38 	beq-    ffc0665c <rtems_libio_set_private_env+0x108>
          free_user_env_protected(old_env);                           
          rtems_current_user_env = new_env;                           
        } else {                                                      
          sc = RTEMS_TOO_MANY;                                        
ffc06628:	3b c0 00 05 	li      r30,5                                  
      } else {                                                        
        sc = RTEMS_UNSATISFIED;                                       
      }                                                               
                                                                      
      if (sc != RTEMS_SUCCESSFUL) {                                   
        free_user_env(new_env);                                       
ffc0662c:	7f a3 eb 78 	mr      r3,r29                                 
ffc06630:	4b ff fe 81 	bl      ffc064b0 <free_user_env>               
      sc = RTEMS_NO_MEMORY;                                           
    }                                                                 
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc06634:	80 01 00 24 	lwz     r0,36(r1)                              
ffc06638:	7f c3 f3 78 	mr      r3,r30                                 
ffc0663c:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc06640:	7c 08 03 a6 	mtlr    r0                                     
ffc06644:	83 81 00 10 	lwz     r28,16(r1)                             
ffc06648:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0664c:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc06650:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc06654:	38 21 00 20 	addi    r1,r1,32                               
ffc06658:	4e 80 00 20 	blr                                            
          RTEMS_SELF,                                                 
          (void **) &rtems_current_user_env,                          
          free_user_env                                               
        );                                                            
        if (sc == RTEMS_SUCCESSFUL) {                                 
          free_user_env_protected(old_env);                           
ffc0665c:	7f e3 fb 78 	mr      r3,r31                                 
ffc06660:	4b ff fe c5 	bl      ffc06524 <free_user_env_protected>     
          rtems_current_user_env = new_env;                           
ffc06664:	3d 20 00 00 	lis     r9,0                                   
ffc06668:	93 a9 27 68 	stw     r29,10088(r9)                          
ffc0666c:	4b ff ff c8 	b       ffc06634 <rtems_libio_set_private_env+0xe0>
      sc = RTEMS_NO_MEMORY;                                           
    }                                                                 
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc06670:	80 01 00 24 	lwz     r0,36(r1)                              
  _Thread_Enable_dispatch();                                          
}                                                                     
                                                                      
rtems_status_code rtems_libio_set_private_env(void)                   
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc06674:	3b c0 00 00 	li      r30,0                                  
      sc = RTEMS_NO_MEMORY;                                           
    }                                                                 
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc06678:	7f c3 f3 78 	mr      r3,r30                                 
ffc0667c:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc06680:	7c 08 03 a6 	mtlr    r0                                     
ffc06684:	83 81 00 10 	lwz     r28,16(r1)                             
ffc06688:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0668c:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc06690:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc06694:	38 21 00 20 	addi    r1,r1,32                               
ffc06698:	4e 80 00 20 	blr                                            
          rtems_current_user_env = new_env;                           
        } else {                                                      
          sc = RTEMS_TOO_MANY;                                        
        }                                                             
      } else {                                                        
        sc = RTEMS_UNSATISFIED;                                       
ffc0669c:	3b c0 00 0d 	li      r30,13                                 
ffc066a0:	4b ff ff 8c 	b       ffc0662c <rtems_libio_set_private_env+0xd8>
                                                                      

ffc066a4 <rtems_libio_share_private_env>: return sc; } rtems_status_code rtems_libio_share_private_env(rtems_id task_id) {
ffc066a4:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc066a8:	7c 08 02 a6 	mflr    r0                                     
ffc066ac:	93 c1 00 20 	stw     r30,32(r1)                             
ffc066b0:	7c 7e 1b 78 	mr      r30,r3                                 
ffc066b4:	93 e1 00 24 	stw     r31,36(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc066b8:	3b e0 00 00 	li      r31,0                                  
                                                                      
  return sc;                                                          
}                                                                     
                                                                      
rtems_status_code rtems_libio_share_private_env(rtems_id task_id)     
{                                                                     
ffc066bc:	90 01 00 2c 	stw     r0,44(r1)                              
ffc066c0:	93 a1 00 1c 	stw     r29,28(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
  rtems_id self_task_id = rtems_task_self();                          
ffc066c4:	48 00 1e e5 	bl      ffc085a8 <rtems_task_self>             
                                                                      
  if (task_id != RTEMS_SELF && self_task_id != task_id) {             
ffc066c8:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc066cc:	41 9e 00 80 	beq-    cr7,ffc0674c <rtems_libio_share_private_env+0xa8>
ffc066d0:	7f 83 f0 00 	cmpw    cr7,r3,r30                             
  return sc;                                                          
}                                                                     
                                                                      
rtems_status_code rtems_libio_share_private_env(rtems_id task_id)     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc066d4:	3b e0 00 00 	li      r31,0                                  
  rtems_id self_task_id = rtems_task_self();                          
                                                                      
  if (task_id != RTEMS_SELF && self_task_id != task_id) {             
ffc066d8:	41 9e 00 74 	beq-    cr7,ffc0674c <rtems_libio_share_private_env+0xa8>
   *                                                                  
   * 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;                  
ffc066dc:	3d 20 00 00 	lis     r9,0                                   
ffc066e0:	81 49 27 fc 	lwz     r10,10236(r9)                          
                                                                      
    ++level;                                                          
ffc066e4:	39 4a 00 01 	addi    r10,r10,1                              
    _Thread_Dispatch_disable_level = level;                           
ffc066e8:	91 49 27 fc 	stw     r10,10236(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(                                     
ffc066ec:	3f a0 00 00 	lis     r29,0                                  
ffc066f0:	3b fd 27 68 	addi    r31,r29,10088                          
ffc066f4:	7f c3 f3 78 	mr      r3,r30                                 
ffc066f8:	7f e4 fb 78 	mr      r4,r31                                 
ffc066fc:	38 a1 00 08 	addi    r5,r1,8                                
ffc06700:	48 00 21 15 	bl      ffc08814 <rtems_task_variable_get>     
      task_id,                                                        
      (void *) &rtems_current_user_env,                               
      (void *) &env                                                   
    );                                                                
    if (sc == RTEMS_SUCCESSFUL) {                                     
ffc06704:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc06708:	40 9e 00 64 	bne-    cr7,ffc0676c <rtems_libio_share_private_env+0xc8>
      ++env->reference_count;                                         
ffc0670c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc06710:	81 49 00 28 	lwz     r10,40(r9)                             
ffc06714:	39 4a 00 01 	addi    r10,r10,1                              
ffc06718:	91 49 00 28 	stw     r10,40(r9)                             
    } else {                                                          
      sc = RTEMS_UNSATISFIED;                                         
    }                                                                 
    _Thread_Enable_dispatch();                                        
ffc0671c:	48 00 45 e9 	bl      ffc0ad04 <_Thread_Enable_dispatch>     
                                                                      
    if (sc == RTEMS_SUCCESSFUL) {                                     
      sc = rtems_task_variable_add(                                   
ffc06720:	3c a0 ff c0 	lis     r5,-64                                 
ffc06724:	7f e4 fb 78 	mr      r4,r31                                 
ffc06728:	38 60 00 00 	li      r3,0                                   
ffc0672c:	38 a5 64 b0 	addi    r5,r5,25776                            
ffc06730:	48 00 1f 29 	bl      ffc08658 <rtems_task_variable_add>     
        RTEMS_SELF,                                                   
        (void **) &rtems_current_user_env,                            
        free_user_env                                                 
      );                                                              
      if (sc == RTEMS_SUCCESSFUL) {                                   
ffc06734:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc06738:	40 82 00 5c 	bne-    ffc06794 <rtems_libio_share_private_env+0xf0><== NEVER TAKEN
        free_user_env_protected(rtems_current_user_env);              
ffc0673c:	80 7d 27 68 	lwz     r3,10088(r29)                          
ffc06740:	4b ff fd e5 	bl      ffc06524 <free_user_env_protected>     
        rtems_current_user_env = env;                                 
ffc06744:	81 21 00 08 	lwz     r9,8(r1)                               
ffc06748:	91 3d 27 68 	stw     r9,10088(r29)                          
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0674c:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc06750:	7f e3 fb 78 	mr      r3,r31                                 
ffc06754:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc06758:	7c 08 03 a6 	mtlr    r0                                     
ffc0675c:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc06760:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc06764:	38 21 00 28 	addi    r1,r1,40                               
ffc06768:	4e 80 00 20 	blr                                            
    if (sc == RTEMS_SUCCESSFUL) {                                     
      ++env->reference_count;                                         
    } else {                                                          
      sc = RTEMS_UNSATISFIED;                                         
    }                                                                 
    _Thread_Enable_dispatch();                                        
ffc0676c:	48 00 45 99 	bl      ffc0ad04 <_Thread_Enable_dispatch>     
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc06770:	80 01 00 2c 	lwz     r0,44(r1)                              
      (void *) &env                                                   
    );                                                                
    if (sc == RTEMS_SUCCESSFUL) {                                     
      ++env->reference_count;                                         
    } else {                                                          
      sc = RTEMS_UNSATISFIED;                                         
ffc06774:	3b e0 00 0d 	li      r31,13                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc06778:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0677c:	7c 08 03 a6 	mtlr    r0                                     
ffc06780:	7f e3 fb 78 	mr      r3,r31                                 
ffc06784:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc06788:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0678c:	38 21 00 28 	addi    r1,r1,40                               
ffc06790:	4e 80 00 20 	blr                                            
      );                                                              
      if (sc == RTEMS_SUCCESSFUL) {                                   
        free_user_env_protected(rtems_current_user_env);              
        rtems_current_user_env = env;                                 
      } else {                                                        
        free_user_env_protected(env);                                 
ffc06794:	80 61 00 08 	lwz     r3,8(r1)                               <== NOT EXECUTED
        sc = RTEMS_TOO_MANY;                                          
ffc06798:	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);                                 
ffc0679c:	4b ff fd 89 	bl      ffc06524 <free_user_env_protected>     <== NOT EXECUTED
ffc067a0:	4b ff ff ac 	b       ffc0674c <rtems_libio_share_private_env+0xa8><== NOT EXECUTED
                                                                      

ffc0ee08 <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 ) {
ffc0ee08:	54 69 07 7c 	rlwinm  r9,r3,0,29,30                          
ffc0ee0c:	2f 89 00 06 	cmpwi   cr7,r9,6                               
    fcntl_flags |= O_RDWR;                                            
ffc0ee10:	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 ) { 
ffc0ee14:	41 9e 00 10 	beq-    cr7,ffc0ee24 <rtems_libio_to_fcntl_flags+0x1c>
    fcntl_flags |= O_RDWR;                                            
  } else if ( (flags & LIBIO_FLAGS_READ) == LIBIO_FLAGS_READ) {       
ffc0ee18:	70 69 00 02 	andi.   r9,r3,2                                
    fcntl_flags |= O_RDONLY;                                          
ffc0ee1c:	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) {       
ffc0ee20:	41 82 00 30 	beq-    ffc0ee50 <rtems_libio_to_fcntl_flags+0x48><== NEVER TAKEN
    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 ) {     
ffc0ee24:	70 6a 00 01 	andi.   r10,r3,1                               
ffc0ee28:	41 82 00 08 	beq-    ffc0ee30 <rtems_libio_to_fcntl_flags+0x28>
    fcntl_flags |= O_NONBLOCK;                                        
ffc0ee2c:	61 29 40 00 	ori     r9,r9,16384                            
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_APPEND) == LIBIO_FLAGS_APPEND ) {         
ffc0ee30:	70 6a 02 00 	andi.   r10,r3,512                             
ffc0ee34:	41 82 00 08 	beq-    ffc0ee3c <rtems_libio_to_fcntl_flags+0x34>
    fcntl_flags |= O_APPEND;                                          
ffc0ee38:	61 29 00 08 	ori     r9,r9,8                                
  }                                                                   
                                                                      
  if ( (flags & LIBIO_FLAGS_CREATE) == LIBIO_FLAGS_CREATE ) {         
ffc0ee3c:	70 6a 04 00 	andi.   r10,r3,1024                            
ffc0ee40:	41 82 00 08 	beq-    ffc0ee48 <rtems_libio_to_fcntl_flags+0x40>
    fcntl_flags |= O_CREAT;                                           
ffc0ee44:	61 29 02 00 	ori     r9,r9,512                              
  }                                                                   
                                                                      
  return fcntl_flags;                                                 
}                                                                     
ffc0ee48:	7d 23 4b 78 	mr      r3,r9                                  
ffc0ee4c:	4e 80 00 20 	blr                                            
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;                                            
ffc0ee50:	54 69 f7 fe 	rlwinm  r9,r3,30,31,31                         <== NOT EXECUTED
ffc0ee54:	4b ff ff d0 	b       ffc0ee24 <rtems_libio_to_fcntl_flags+0x1c><== NOT EXECUTED
                                                                      

ffc067a4 <rtems_libio_use_global_env>: return sc; } void rtems_libio_use_global_env(void) {
ffc067a4:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc067a8:	7c 08 02 a6 	mflr    r0                                     
ffc067ac:	93 e1 00 0c 	stw     r31,12(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) {                                             
ffc067b0:	3f e0 00 00 	lis     r31,0                                  
ffc067b4:	38 9f 27 68 	addi    r4,r31,10088                           
                                                                      
  return sc;                                                          
}                                                                     
                                                                      
void rtems_libio_use_global_env(void)                                 
{                                                                     
ffc067b8:	93 c1 00 08 	stw     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) {                                             
ffc067bc:	3f c0 00 00 	lis     r30,0                                  
ffc067c0:	3b de 21 38 	addi    r30,r30,8504                           
ffc067c4:	81 3f 27 68 	lwz     r9,10088(r31)                          
                                                                      
  return sc;                                                          
}                                                                     
                                                                      
void rtems_libio_use_global_env(void)                                 
{                                                                     
ffc067c8:	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) {                                             
ffc067cc:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc067d0:	41 9e 00 18 	beq-    cr7,ffc067e8 <rtems_libio_use_global_env+0x44>
    sc = rtems_task_variable_delete(                                  
ffc067d4:	38 60 00 00 	li      r3,0                                   
ffc067d8:	48 00 1f 75 	bl      ffc0874c <rtems_task_variable_delete>  
      RTEMS_SELF,                                                     
      (void **) &rtems_current_user_env                               
    );                                                                
    if (sc != RTEMS_SUCCESSFUL) {                                     
ffc067dc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc067e0:	40 9e 00 20 	bne-    cr7,ffc06800 <rtems_libio_use_global_env+0x5c><== NEVER TAKEN
      rtems_fatal_error_occurred(0xdeadbeef);                         
    }                                                                 
                                                                      
    rtems_current_user_env = &rtems_global_user_env;                  
ffc067e4:	93 df 27 68 	stw     r30,10088(r31)                         
  }                                                                   
}                                                                     
ffc067e8:	80 01 00 14 	lwz     r0,20(r1)                              
ffc067ec:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc067f0:	7c 08 03 a6 	mtlr    r0                                     
ffc067f4:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc067f8:	38 21 00 10 	addi    r1,r1,16                               
ffc067fc:	4e 80 00 20 	blr                                            
    sc = rtems_task_variable_delete(                                  
      RTEMS_SELF,                                                     
      (void **) &rtems_current_user_env                               
    );                                                                
    if (sc != RTEMS_SUCCESSFUL) {                                     
      rtems_fatal_error_occurred(0xdeadbeef);                         
ffc06800:	3c 60 de ad 	lis     r3,-8531                               <== NOT EXECUTED
ffc06804:	60 63 be ef 	ori     r3,r3,48879                            <== NOT EXECUTED
ffc06808:	48 00 22 8d 	bl      ffc08a94 <rtems_fatal_error_occurred>  <== NOT EXECUTED
                                                                      

ffc08714 <rtems_malloc_statistics_at_free>: * size and thus we skip updating the statistics. */ static void rtems_malloc_statistics_at_free( void *pointer ) {
ffc08714:	94 21 ff e8 	stwu    r1,-24(r1)                             
  uintptr_t size;                                                     
                                                                      
  if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
ffc08718:	3d 20 00 00 	lis     r9,0                                   
 *  size and thus we skip updating the statistics.                    
 */                                                                   
static void rtems_malloc_statistics_at_free(                          
  void *pointer                                                       
)                                                                     
{                                                                     
ffc0871c:	7c 08 02 a6 	mflr    r0                                     
ffc08720:	7c 64 1b 78 	mr      r4,r3                                  
  uintptr_t size;                                                     
                                                                      
  if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
ffc08724:	80 69 27 d4 	lwz     r3,10196(r9)                           
ffc08728:	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                                                       
)                                                                     
{                                                                     
ffc0872c:	90 01 00 1c 	stw     r0,28(r1)                              
  uintptr_t size;                                                     
                                                                      
  if (_Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &size) ) {
ffc08730:	48 00 86 19 	bl      ffc10d48 <_Protected_heap_Get_block_size>
ffc08734:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc08738:	41 9e 00 2c 	beq-    cr7,ffc08764 <rtems_malloc_statistics_at_free+0x50><== NEVER TAKEN
    MSBUMP(lifetime_freed, size);                                     
ffc0873c:	3c e0 00 00 	lis     r7,0                                   
ffc08740:	81 61 00 08 	lwz     r11,8(r1)                              
ffc08744:	38 e7 34 a8 	addi    r7,r7,13480                            
ffc08748:	81 07 00 28 	lwz     r8,40(r7)                              
ffc0874c:	39 40 00 00 	li      r10,0                                  
ffc08750:	81 27 00 2c 	lwz     r9,44(r7)                              
ffc08754:	7d 6b 48 14 	addc    r11,r11,r9                             
ffc08758:	7d 4a 41 14 	adde    r10,r10,r8                             
ffc0875c:	91 47 00 28 	stw     r10,40(r7)                             
ffc08760:	91 67 00 2c 	stw     r11,44(r7)                             
  }                                                                   
}                                                                     
ffc08764:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc08768:	38 21 00 18 	addi    r1,r1,24                               
ffc0876c:	7c 08 03 a6 	mtlr    r0                                     
ffc08770:	4e 80 00 20 	blr                                            
                                                                      

ffc08774 <rtems_malloc_statistics_at_malloc>: { uintptr_t actual_size = 0; uint32_t current_depth; rtems_malloc_statistics_t *s = &rtems_malloc_statistics; if ( !pointer )
ffc08774:	7c 64 1b 79 	mr.     r4,r3                                  
}                                                                     
                                                                      
static void rtems_malloc_statistics_at_malloc(                        
  void *pointer                                                       
)                                                                     
{                                                                     
ffc08778:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0877c:	7c 08 02 a6 	mflr    r0                                     
  uintptr_t actual_size = 0;                                          
ffc08780:	39 20 00 00 	li      r9,0                                   
ffc08784:	91 21 00 08 	stw     r9,8(r1)                               
}                                                                     
                                                                      
static void rtems_malloc_statistics_at_malloc(                        
  void *pointer                                                       
)                                                                     
{                                                                     
ffc08788:	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 )                                                     
ffc0878c:	41 82 00 54 	beq-    ffc087e0 <rtems_malloc_statistics_at_malloc+0x6c><== NEVER TAKEN
    return;                                                           
                                                                      
  _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
ffc08790:	3d 20 00 00 	lis     r9,0                                   
ffc08794:	80 69 27 d4 	lwz     r3,10196(r9)                           
ffc08798:	38 a1 00 08 	addi    r5,r1,8                                
ffc0879c:	48 00 85 ad 	bl      ffc10d48 <_Protected_heap_Get_block_size>
                                                                      
  MSBUMP(lifetime_allocated, actual_size);                            
ffc087a0:	3c e0 00 00 	lis     r7,0                                   
ffc087a4:	38 e7 34 a8 	addi    r7,r7,13480                            
ffc087a8:	81 61 00 08 	lwz     r11,8(r1)                              
ffc087ac:	81 07 00 20 	lwz     r8,32(r7)                              
ffc087b0:	39 40 00 00 	li      r10,0                                  
ffc087b4:	81 27 00 24 	lwz     r9,36(r7)                              
                                                                      
  current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
ffc087b8:	80 c7 00 2c 	lwz     r6,44(r7)                              
  if ( !pointer )                                                     
    return;                                                           
                                                                      
  _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
                                                                      
  MSBUMP(lifetime_allocated, actual_size);                            
ffc087bc:	7d 6b 48 14 	addc    r11,r11,r9                             
ffc087c0:	7d 4a 41 14 	adde    r10,r10,r8                             
                                                                      
  current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
  if (current_depth > s->max_depth)                                   
ffc087c4:	81 07 00 18 	lwz     r8,24(r7)                              
  if ( !pointer )                                                     
    return;                                                           
                                                                      
  _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
                                                                      
  MSBUMP(lifetime_allocated, actual_size);                            
ffc087c8:	91 47 00 20 	stw     r10,32(r7)                             
                                                                      
  current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
ffc087cc:	7d 26 58 50 	subf    r9,r6,r11                              
  if (current_depth > s->max_depth)                                   
ffc087d0:	7f 89 40 40 	cmplw   cr7,r9,r8                              
  if ( !pointer )                                                     
    return;                                                           
                                                                      
  _Protected_heap_Get_block_size(RTEMS_Malloc_Heap, pointer, &actual_size);
                                                                      
  MSBUMP(lifetime_allocated, actual_size);                            
ffc087d4:	91 67 00 24 	stw     r11,36(r7)                             
                                                                      
  current_depth = (uint32_t) (s->lifetime_allocated - s->lifetime_freed);
  if (current_depth > s->max_depth)                                   
ffc087d8:	40 9d 00 08 	ble-    cr7,ffc087e0 <rtems_malloc_statistics_at_malloc+0x6c>
      s->max_depth = current_depth;                                   
ffc087dc:	91 27 00 18 	stw     r9,24(r7)                              
}                                                                     
ffc087e0:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc087e4:	38 21 00 18 	addi    r1,r1,24                               
ffc087e8:	7c 08 03 a6 	mtlr    r0                                     
ffc087ec:	4e 80 00 20 	blr                                            
                                                                      

ffc1421c <rtems_memalign>: int rtems_memalign( void **pointer, size_t alignment, size_t size ) {
ffc1421c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc14220:	7c 08 02 a6 	mflr    r0                                     
ffc14224:	93 e1 00 14 	stw     r31,20(r1)                             
  void *return_this;                                                  
                                                                      
  /*                                                                  
   *  Parameter error checks                                          
   */                                                                 
  if ( !pointer )                                                     
ffc14228:	7c 7f 1b 79 	mr.     r31,r3                                 
int rtems_memalign(                                                   
  void   **pointer,                                                   
  size_t   alignment,                                                 
  size_t   size                                                       
)                                                                     
{                                                                     
ffc1422c:	90 01 00 1c 	stw     r0,28(r1)                              
ffc14230:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc14234:	93 c1 00 10 	stw     r30,16(r1)                             
  void *return_this;                                                  
                                                                      
  /*                                                                  
   *  Parameter error checks                                          
   */                                                                 
  if ( !pointer )                                                     
ffc14238:	41 82 00 9c 	beq-    ffc142d4 <rtems_memalign+0xb8>         
  *pointer = NULL;                                                    
                                                                      
  /*                                                                  
   *  Do not attempt to allocate memory if not in correct system state.
   */                                                                 
  if ( _System_state_Is_up(_System_state_Get()) &&                    
ffc1423c:	3d 20 00 00 	lis     r9,0                                   
ffc14240:	81 29 28 48 	lwz     r9,10312(r9)                           
ffc14244:	7c 9e 23 78 	mr      r30,r4                                 
ffc14248:	7c bd 2b 78 	mr      r29,r5                                 
ffc1424c:	2f 89 00 03 	cmpwi   cr7,r9,3                               
   *  Parameter error checks                                          
   */                                                                 
  if ( !pointer )                                                     
    return EINVAL;                                                    
                                                                      
  *pointer = NULL;                                                    
ffc14250:	39 20 00 00 	li      r9,0                                   
ffc14254:	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()) &&                    
ffc14258:	41 9e 00 70 	beq-    cr7,ffc142c8 <rtems_memalign+0xac>     
    return EINVAL;                                                    
                                                                      
  /*                                                                  
   *  If some free's have been deferred, then do them now.            
   */                                                                 
  malloc_deferred_frees_process();                                    
ffc1425c:	4b ff 1f a9 	bl      ffc06204 <malloc_deferred_frees_process>
  Heap_Control *heap,                                                 
  uintptr_t size,                                                     
  uintptr_t alignment                                                 
)                                                                     
{                                                                     
  return                                                              
ffc14260:	3d 20 00 00 	lis     r9,0                                   
ffc14264:	80 69 27 50 	lwz     r3,10064(r9)                           
ffc14268:	7f c5 f3 78 	mr      r5,r30                                 
ffc1426c:	7f a4 eb 78 	mr      r4,r29                                 
ffc14270:	38 c0 00 00 	li      r6,0                                   
ffc14274:	4b ff 90 41 	bl      ffc0d2b4 <_Protected_heap_Allocate_aligned_with_boundary>
  return_this = _Protected_heap_Allocate_aligned(                     
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment                                                         
  );                                                                  
  if ( !return_this )                                                 
ffc14278:	7c 7e 1b 79 	mr.     r30,r3                                 
    return ENOMEM;                                                    
ffc1427c:	38 60 00 0c 	li      r3,12                                  
  return_this = _Protected_heap_Allocate_aligned(                     
    RTEMS_Malloc_Heap,                                                
    size,                                                             
    alignment                                                         
  );                                                                  
  if ( !return_this )                                                 
ffc14280:	41 82 00 2c 	beq-    ffc142ac <rtems_memalign+0x90>         
    return ENOMEM;                                                    
                                                                      
  /*                                                                  
   *  If configured, update the more involved statistics              
   */                                                                 
  if ( rtems_malloc_statistics_helpers )                              
ffc14284:	3d 20 00 00 	lis     r9,0                                   
ffc14288:	81 29 27 c8 	lwz     r9,10184(r9)                           
ffc1428c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc14290:	41 9e 00 14 	beq-    cr7,ffc142a4 <rtems_memalign+0x88>     
    (*rtems_malloc_statistics_helpers->at_malloc)(pointer);           
ffc14294:	81 29 00 04 	lwz     r9,4(r9)                               
ffc14298:	7f e3 fb 78 	mr      r3,r31                                 
ffc1429c:	7d 29 03 a6 	mtctr   r9                                     
ffc142a0:	4e 80 04 21 	bctrl                                          
                                                                      
  *pointer = return_this;                                             
ffc142a4:	93 df 00 00 	stw     r30,0(r31)                             
  return 0;                                                           
ffc142a8:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc142ac:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc142b0:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc142b4:	7c 08 03 a6 	mtlr    r0                                     
ffc142b8:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc142bc:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc142c0:	38 21 00 18 	addi    r1,r1,24                               
ffc142c4:	4e 80 00 20 	blr                                            
                                                                      
  /*                                                                  
   *  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() )                                 
ffc142c8:	4b ff 1f 11 	bl      ffc061d8 <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()) &&                    
ffc142cc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc142d0:	40 be ff 8c 	bne-    cr7,ffc1425c <rtems_memalign+0x40>     <== ALWAYS TAKEN
  if ( rtems_malloc_statistics_helpers )                              
    (*rtems_malloc_statistics_helpers->at_malloc)(pointer);           
                                                                      
  *pointer = return_this;                                             
  return 0;                                                           
}                                                                     
ffc142d4:	80 01 00 1c 	lwz     r0,28(r1)                              
                                                                      
  /*                                                                  
   *  Parameter error checks                                          
   */                                                                 
  if ( !pointer )                                                     
    return EINVAL;                                                    
ffc142d8:	38 60 00 16 	li      r3,22                                  
  if ( rtems_malloc_statistics_helpers )                              
    (*rtems_malloc_statistics_helpers->at_malloc)(pointer);           
                                                                      
  *pointer = return_this;                                             
  return 0;                                                           
}                                                                     
ffc142dc:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc142e0:	7c 08 03 a6 	mtlr    r0                                     
ffc142e4:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc142e8:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc142ec:	38 21 00 18 	addi    r1,r1,24                               
ffc142f0:	4e 80 00 20 	blr                                            
                                                                      

ffc0bbcc <rtems_mkdir>: return (retval); } int rtems_mkdir(const char *path, mode_t mode) {
ffc0bbcc:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc0bbd0:	7d 80 00 26 	mfcr    r12                                    
ffc0bbd4:	7c 08 02 a6 	mflr    r0                                     
ffc0bbd8:	93 41 00 60 	stw     r26,96(r1)                             
ffc0bbdc:	7c 9a 23 78 	mr      r26,r4                                 
ffc0bbe0:	93 a1 00 6c 	stw     r29,108(r1)                            
ffc0bbe4:	90 01 00 7c 	stw     r0,124(r1)                             
ffc0bbe8:	93 21 00 5c 	stw     r25,92(r1)                             
ffc0bbec:	93 61 00 64 	stw     r27,100(r1)                            
ffc0bbf0:	93 81 00 68 	stw     r28,104(r1)                            
ffc0bbf4:	93 c1 00 70 	stw     r30,112(r1)                            
ffc0bbf8:	93 e1 00 74 	stw     r31,116(r1)                            
ffc0bbfc:	91 81 00 58 	stw     r12,88(r1)                             
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
ffc0bc00:	48 01 fb ad 	bl      ffc2b7ac <strdup>                      
                                                                      
  if (dup_path != NULL) {                                             
ffc0bc04:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc0bc08:	41 82 01 8c 	beq-    ffc0bd94 <rtems_mkdir+0x1c8>           
  char *p;                                                            
                                                                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
ffc0bc0c:	89 3d 00 00 	lbz     r9,0(r29)                              
ffc0bc10:	7f bf eb 78 	mr      r31,r29                                
ffc0bc14:	2f 89 00 2f 	cmpwi   cr7,r9,47                              
ffc0bc18:	41 9e 01 58 	beq-    cr7,ffc0bd70 <rtems_mkdir+0x1a4>       
    ++p;                                                              
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
ffc0bc1c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
  char *p;                                                            
                                                                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
ffc0bc20:	3b 80 00 00 	li      r28,0                                  
ffc0bc24:	39 40 00 01 	li      r10,1                                  
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
ffc0bc28:	3b 60 00 2f 	li      r27,47                                 
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
      last = 1;                                                       
    else if (p[0] != '/')                                             
      continue;                                                       
    *p = '\0';                                                        
ffc0bc2c:	3b 20 00 00 	li      r25,0                                  
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
ffc0bc30:	41 9e 00 18 	beq-    cr7,ffc0bc48 <rtems_mkdir+0x7c>        <== NEVER TAKEN
      last = 1;                                                       
    else if (p[0] != '/')                                             
ffc0bc34:	2f 89 00 2f 	cmpwi   cr7,r9,47                              
ffc0bc38:	41 9e 00 a4 	beq-    cr7,ffc0bcdc <rtems_mkdir+0x110>       
ffc0bc3c:	8d 3f 00 01 	lbzu    r9,1(r31)                              
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
ffc0bc40:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0bc44:	40 be ff f0 	bne-    cr7,ffc0bc34 <rtems_mkdir+0x68>        
    else if (p[0] != '/')                                             
      continue;                                                       
    *p = '\0';                                                        
    if (!last && p[1] == '\0')                                        
      last = 1;                                                       
    if (first) {                                                      
ffc0bc48:	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';                                                        
ffc0bc4c:	99 3f 00 00 	stb     r9,0(r31)                              
ffc0bc50:	3b c0 00 01 	li      r30,1                                  
    if (!last && p[1] == '\0')                                        
      last = 1;                                                       
    if (first) {                                                      
ffc0bc54:	41 be 00 a0 	beq+    cr7,ffc0bcf4 <rtems_mkdir+0x128>       
      oumask = umask(0);                                              
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
      (void)umask(numask);                                            
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
ffc0bc58:	2e 1e 00 00 	cmpwi   cr4,r30,0                              
       *    mkdir [-m mode] dir                                       
       *                                                              
       * We change the user's umask and then restore it,              
       * instead of doing chmod's.                                    
       */                                                             
      oumask = umask(0);                                              
ffc0bc5c:	38 60 00 00 	li      r3,0                                   
ffc0bc60:	48 00 31 f5 	bl      ffc0ee54 <umask>                       
ffc0bc64:	7c 7c 1b 78 	mr      r28,r3                                 
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
      (void)umask(numask);                                            
ffc0bc68:	54 63 06 ae 	rlwinm  r3,r3,0,26,23                          
ffc0bc6c:	48 00 31 e9 	bl      ffc0ee54 <umask>                       
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
ffc0bc70:	41 b2 00 8c 	beq+    cr4,ffc0bcfc <rtems_mkdir+0x130>       
      (void)umask(oumask);                                            
ffc0bc74:	7f 83 e3 78 	mr      r3,r28                                 
ffc0bc78:	48 00 31 dd 	bl      ffc0ee54 <umask>                       
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
ffc0bc7c:	7f a3 eb 78 	mr      r3,r29                                 
ffc0bc80:	7f 44 d3 78 	mr      r4,r26                                 
ffc0bc84:	4b ff ef 3d 	bl      ffc0abc0 <mkdir>                       
ffc0bc88:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0bc8c:	41 9c 00 94 	blt-    cr7,ffc0bd20 <rtems_mkdir+0x154>       
ffc0bc90:	3b e0 00 01 	li      r31,1                                  
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
                                                                      
  if (dup_path != NULL) {                                             
    success = build(dup_path, mode);                                  
    free(dup_path);                                                   
ffc0bc94:	7f a3 eb 78 	mr      r3,r29                                 
ffc0bc98:	4b ff e6 65 	bl      ffc0a2fc <free>                        
  }                                                                   
                                                                      
  return success != 0 ? 0 : -1;                                       
ffc0bc9c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0bca0:	38 60 00 00 	li      r3,0                                   
ffc0bca4:	41 9e 00 f0 	beq-    cr7,ffc0bd94 <rtems_mkdir+0x1c8>       <== NEVER TAKEN
}                                                                     
ffc0bca8:	80 01 00 7c 	lwz     r0,124(r1)                             
ffc0bcac:	81 81 00 58 	lwz     r12,88(r1)                             
ffc0bcb0:	7c 08 03 a6 	mtlr    r0                                     
ffc0bcb4:	83 21 00 5c 	lwz     r25,92(r1)                             
ffc0bcb8:	83 41 00 60 	lwz     r26,96(r1)                             
ffc0bcbc:	7d 80 81 20 	mtcrf   8,r12                                  
ffc0bcc0:	83 61 00 64 	lwz     r27,100(r1)                            
ffc0bcc4:	83 81 00 68 	lwz     r28,104(r1)                            
ffc0bcc8:	83 a1 00 6c 	lwz     r29,108(r1)                            
ffc0bccc:	83 c1 00 70 	lwz     r30,112(r1)                            
ffc0bcd0:	83 e1 00 74 	lwz     r31,116(r1)                            
ffc0bcd4:	38 21 00 78 	addi    r1,r1,120                              
ffc0bcd8:	4e 80 00 20 	blr                                            
    else if (p[0] != '/')                                             
      continue;                                                       
    *p = '\0';                                                        
    if (!last && p[1] == '\0')                                        
      last = 1;                                                       
    if (first) {                                                      
ffc0bcdc:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
    if (p[0] == '\0')                                                 
      last = 1;                                                       
    else if (p[0] != '/')                                             
      continue;                                                       
    *p = '\0';                                                        
    if (!last && p[1] == '\0')                                        
ffc0bce0:	8b df 00 01 	lbz     r30,1(r31)                             
  for (first = 1, last = 0; !last ; ++p) {                            
    if (p[0] == '\0')                                                 
      last = 1;                                                       
    else if (p[0] != '/')                                             
      continue;                                                       
    *p = '\0';                                                        
ffc0bce4:	9b 3f 00 00 	stb     r25,0(r31)                             
    if (!last && p[1] == '\0')                                        
ffc0bce8:	7f de 00 34 	cntlzw  r30,r30                                
ffc0bcec:	57 de d9 7e 	rlwinm  r30,r30,27,5,31                        
      last = 1;                                                       
    if (first) {                                                      
ffc0bcf0:	40 be ff 68 	bne-    cr7,ffc0bc58 <rtems_mkdir+0x8c>        
      oumask = umask(0);                                              
      numask = oumask & ~(S_IWUSR | S_IXUSR);                         
      (void)umask(numask);                                            
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
ffc0bcf4:	2e 1e 00 00 	cmpwi   cr4,r30,0                              
ffc0bcf8:	40 b2 ff 7c 	bne-    cr4,ffc0bc74 <rtems_mkdir+0xa8>        
      (void)umask(oumask);                                            
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
ffc0bcfc:	7f a3 eb 78 	mr      r3,r29                                 
ffc0bd00:	38 80 01 ff 	li      r4,511                                 
ffc0bd04:	4b ff ee bd 	bl      ffc0abc0 <mkdir>                       
ffc0bd08:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0bd0c:	41 9c 00 14 	blt-    cr7,ffc0bd20 <rtems_mkdir+0x154>       
        retval = 0;                                                   
        break;                                                        
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
ffc0bd10:	9b 7f 00 00 	stb     r27,0(r31)                             
ffc0bd14:	39 40 00 00 	li      r10,0                                  
ffc0bd18:	8d 3f 00 01 	lbzu    r9,1(r31)                              
ffc0bd1c:	4b ff ff 24 	b       ffc0bc40 <rtems_mkdir+0x74>            
      first = 0;                                                      
    }                                                                 
    if (last)                                                         
      (void)umask(oumask);                                            
    if (mkdir(path, last ? omode : S_IRWXU | S_IRWXG | S_IRWXO) < 0) {
      if (errno == EEXIST || errno == EISDIR) {                       
ffc0bd20:	48 01 d2 d9 	bl      ffc28ff8 <__errno>                     
ffc0bd24:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0bd28:	2f 89 00 11 	cmpwi   cr7,r9,17                              
ffc0bd2c:	41 9e 00 14 	beq-    cr7,ffc0bd40 <rtems_mkdir+0x174>       
ffc0bd30:	48 01 d2 c9 	bl      ffc28ff8 <__errno>                     
ffc0bd34:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0bd38:	2f 89 00 15 	cmpwi   cr7,r9,21                              
ffc0bd3c:	40 9e 00 84 	bne-    cr7,ffc0bdc0 <rtems_mkdir+0x1f4>       <== ALWAYS TAKEN
        if (stat(path, &sb) < 0) {                                    
ffc0bd40:	7f a3 eb 78 	mr      r3,r29                                 
ffc0bd44:	38 81 00 08 	addi    r4,r1,8                                
ffc0bd48:	48 00 00 81 	bl      ffc0bdc8 <stat>                        
ffc0bd4c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0bd50:	41 9c 00 70 	blt-    cr7,ffc0bdc0 <rtems_mkdir+0x1f4>       <== NEVER TAKEN
          retval = 0;                                                 
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
ffc0bd54:	81 21 00 14 	lwz     r9,20(r1)                              
ffc0bd58:	55 29 04 26 	rlwinm  r9,r9,0,16,19                          
ffc0bd5c:	2f 89 40 00 	cmpwi   cr7,r9,16384                           
ffc0bd60:	40 9e 00 1c 	bne-    cr7,ffc0bd7c <rtems_mkdir+0x1b0>       
          else                                                        
            errno = ENOTDIR;                                          
          retval = 0;                                                 
          break;                                                      
        }                                                             
        if (last)                                                     
ffc0bd64:	41 b2 ff ac 	beq-    cr4,ffc0bd10 <rtems_mkdir+0x144>       
          retval = 2;                                                 
ffc0bd68:	3b e0 00 02 	li      r31,2                                  
ffc0bd6c:	4b ff ff 28 	b       ffc0bc94 <rtems_mkdir+0xc8>            
ffc0bd70:	89 3d 00 01 	lbz     r9,1(r29)                              
                                                                      
  p = path;                                                           
  oumask = 0;                                                         
  retval = 1;                                                         
  if (p[0] == '/')    /* Skip leading '/'. */                         
    ++p;                                                              
ffc0bd74:	3b fd 00 01 	addi    r31,r29,1                              
ffc0bd78:	4b ff fe a4 	b       ffc0bc1c <rtems_mkdir+0x50>            
      if (errno == EEXIST || errno == EISDIR) {                       
        if (stat(path, &sb) < 0) {                                    
          retval = 0;                                                 
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
          if (last)                                                   
ffc0bd7c:	41 92 00 20 	beq-    cr4,ffc0bd9c <rtems_mkdir+0x1d0>       
            errno = EEXIST;                                           
ffc0bd80:	48 01 d2 79 	bl      ffc28ff8 <__errno>                     
ffc0bd84:	39 20 00 11 	li      r9,17                                  
ffc0bd88:	91 23 00 00 	stw     r9,0(r3)                               
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
                                                                      
  if (dup_path != NULL) {                                             
    success = build(dup_path, mode);                                  
    free(dup_path);                                                   
ffc0bd8c:	7f a3 eb 78 	mr      r3,r29                                 
ffc0bd90:	4b ff e5 6d 	bl      ffc0a2fc <free>                        
  }                                                                   
                                                                      
  return success != 0 ? 0 : -1;                                       
ffc0bd94:	38 60 ff ff 	li      r3,-1                                  
ffc0bd98:	4b ff ff 10 	b       ffc0bca8 <rtems_mkdir+0xdc>            
          break;                                                      
        } else if (!S_ISDIR(sb.st_mode)) {                            
          if (last)                                                   
            errno = EEXIST;                                           
          else                                                        
            errno = ENOTDIR;                                          
ffc0bd9c:	48 01 d2 5d 	bl      ffc28ff8 <__errno>                     
ffc0bda0:	39 20 00 14 	li      r9,20                                  
ffc0bda4:	91 23 00 00 	stw     r9,0(r3)                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
  }                                                                   
  if (!first && !last)                                                
    (void)umask(oumask);                                              
ffc0bda8:	7f 83 e3 78 	mr      r3,r28                                 
ffc0bdac:	48 00 30 a9 	bl      ffc0ee54 <umask>                       
  int success = 0;                                                    
  char *dup_path = strdup(path);                                      
                                                                      
  if (dup_path != NULL) {                                             
    success = build(dup_path, mode);                                  
    free(dup_path);                                                   
ffc0bdb0:	7f a3 eb 78 	mr      r3,r29                                 
ffc0bdb4:	4b ff e5 49 	bl      ffc0a2fc <free>                        
  }                                                                   
                                                                      
  return success != 0 ? 0 : -1;                                       
ffc0bdb8:	38 60 ff ff 	li      r3,-1                                  
ffc0bdbc:	4b ff fe ec 	b       ffc0bca8 <rtems_mkdir+0xdc>            
      }                                                               
    }                                                                 
    if (!last)                                                        
        *p = '/';                                                     
  }                                                                   
  if (!first && !last)                                                
ffc0bdc0:	41 92 ff e8 	beq+    cr4,ffc0bda8 <rtems_mkdir+0x1dc>       <== NEVER TAKEN
ffc0bdc4:	4b ff ff ec 	b       ffc0bdb0 <rtems_mkdir+0x1e4>           
                                                                      

ffc0b7c8 <rtems_object_get_class_information>: rtems_status_code rtems_object_get_class_information( int the_api, int the_class, rtems_object_api_class_information *info ) {
ffc0b7c8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0b7cc:	7c 08 02 a6 	mflr    r0                                     
ffc0b7d0:	93 e1 00 0c 	stw     r31,12(r1)                             
  int                  i;                                             
                                                                      
  /*                                                                  
   * Validate parameters and look up information structure.           
   */                                                                 
  if ( !info )                                                        
ffc0b7d4:	7c bf 2b 79 	mr.     r31,r5                                 
rtems_status_code rtems_object_get_class_information(                 
  int                                 the_api,                        
  int                                 the_class,                      
  rtems_object_api_class_information *info                            
)                                                                     
{                                                                     
ffc0b7d8:	90 01 00 14 	stw     r0,20(r1)                              
  int                  i;                                             
                                                                      
  /*                                                                  
   * Validate parameters and look up information structure.           
   */                                                                 
  if ( !info )                                                        
ffc0b7dc:	41 82 00 90 	beq-    ffc0b86c <rtems_object_get_class_information+0xa4>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  obj_info = _Objects_Get_information( the_api, the_class );          
ffc0b7e0:	54 84 04 3e 	clrlwi  r4,r4,16                               
ffc0b7e4:	48 00 23 f5 	bl      ffc0dbd8 <_Objects_Get_information>    
  if ( !obj_info )                                                    
ffc0b7e8:	7c 69 1b 79 	mr.     r9,r3                                  
    return RTEMS_INVALID_NUMBER;                                      
ffc0b7ec:	38 60 00 0a 	li      r3,10                                  
   */                                                                 
  if ( !info )                                                        
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  obj_info = _Objects_Get_information( the_api, the_class );          
  if ( !obj_info )                                                    
ffc0b7f0:	41 82 00 68 	beq-    ffc0b858 <rtems_object_get_class_information+0x90>
   * Return information about this object class to the user.          
   */                                                                 
  info->minimum_id  = obj_info->minimum_id;                           
  info->maximum_id  = obj_info->maximum_id;                           
  info->auto_extend = obj_info->auto_extend;                          
  info->maximum     = obj_info->maximum;                              
ffc0b7f4:	a0 c9 00 10 	lhz     r6,16(r9)                              
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  /*                                                                  
   * Return information about this object class to the user.          
   */                                                                 
  info->minimum_id  = obj_info->minimum_id;                           
ffc0b7f8:	80 e9 00 08 	lwz     r7,8(r9)                               
  info->maximum_id  = obj_info->maximum_id;                           
  info->auto_extend = obj_info->auto_extend;                          
  info->maximum     = obj_info->maximum;                              
                                                                      
  for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )               
ffc0b7fc:	2f 86 00 00 	cmpwi   cr7,r6,0                               
                                                                      
  /*                                                                  
   * Return information about this object class to the user.          
   */                                                                 
  info->minimum_id  = obj_info->minimum_id;                           
  info->maximum_id  = obj_info->maximum_id;                           
ffc0b800:	81 09 00 0c 	lwz     r8,12(r9)                              
  info->auto_extend = obj_info->auto_extend;                          
ffc0b804:	89 49 00 12 	lbz     r10,18(r9)                             
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  /*                                                                  
   * Return information about this object class to the user.          
   */                                                                 
  info->minimum_id  = obj_info->minimum_id;                           
ffc0b808:	90 ff 00 00 	stw     r7,0(r31)                              
  info->maximum_id  = obj_info->maximum_id;                           
ffc0b80c:	91 1f 00 04 	stw     r8,4(r31)                              
  info->auto_extend = obj_info->auto_extend;                          
ffc0b810:	99 5f 00 0c 	stb     r10,12(r31)                            
  info->maximum     = obj_info->maximum;                              
ffc0b814:	90 df 00 08 	stw     r6,8(r31)                              
                                                                      
  for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )               
ffc0b818:	41 9e 00 6c 	beq-    cr7,ffc0b884 <rtems_object_get_class_information+0xbc><== NEVER TAKEN
ffc0b81c:	80 89 00 1c 	lwz     r4,28(r9)                              
ffc0b820:	39 00 00 01 	li      r8,1                                   
ffc0b824:	39 20 00 01 	li      r9,1                                   
ffc0b828:	39 40 00 00 	li      r10,0                                  
ffc0b82c:	39 29 00 01 	addi    r9,r9,1                                
ffc0b830:	7f 86 48 40 	cmplw   cr7,r6,r9                              
    if ( !obj_info->local_table[i] )                                  
ffc0b834:	55 08 10 3a 	rlwinm  r8,r8,2,0,29                           
ffc0b838:	7c e4 40 2e 	lwzx    r7,r4,r8                               
  info->minimum_id  = obj_info->minimum_id;                           
  info->maximum_id  = obj_info->maximum_id;                           
  info->auto_extend = obj_info->auto_extend;                          
  info->maximum     = obj_info->maximum;                              
                                                                      
  for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )               
ffc0b83c:	7d 28 4b 78 	mr      r8,r9                                  
    if ( !obj_info->local_table[i] )                                  
      unallocated++;                                                  
ffc0b840:	20 a7 00 00 	subfic  r5,r7,0                                
ffc0b844:	7c aa 01 94 	addze   r5,r10                                 
ffc0b848:	7c aa 2b 78 	mr      r10,r5                                 
  info->minimum_id  = obj_info->minimum_id;                           
  info->maximum_id  = obj_info->maximum_id;                           
  info->auto_extend = obj_info->auto_extend;                          
  info->maximum     = obj_info->maximum;                              
                                                                      
  for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )               
ffc0b84c:	40 9c ff e0 	bge+    cr7,ffc0b82c <rtems_object_get_class_information+0x64>
    if ( !obj_info->local_table[i] )                                  
      unallocated++;                                                  
                                                                      
  info->unallocated = unallocated;                                    
ffc0b850:	91 5f 00 10 	stw     r10,16(r31)                            
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc0b854:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc0b858:	80 01 00 14 	lwz     r0,20(r1)                              
ffc0b85c:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0b860:	7c 08 03 a6 	mtlr    r0                                     
ffc0b864:	38 21 00 10 	addi    r1,r1,16                               
ffc0b868:	4e 80 00 20 	blr                                            
ffc0b86c:	80 01 00 14 	lwz     r0,20(r1)                              
                                                                      
  /*                                                                  
   * Validate parameters and look up information structure.           
   */                                                                 
  if ( !info )                                                        
    return RTEMS_INVALID_ADDRESS;                                     
ffc0b870:	38 60 00 09 	li      r3,9                                   
      unallocated++;                                                  
                                                                      
  info->unallocated = unallocated;                                    
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0b874:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0b878:	7c 08 03 a6 	mtlr    r0                                     
ffc0b87c:	38 21 00 10 	addi    r1,r1,16                               
ffc0b880:	4e 80 00 20 	blr                                            
  info->minimum_id  = obj_info->minimum_id;                           
  info->maximum_id  = obj_info->maximum_id;                           
  info->auto_extend = obj_info->auto_extend;                          
  info->maximum     = obj_info->maximum;                              
                                                                      
  for ( unallocated=0, i=1 ; i <= info->maximum ; i++ )               
ffc0b884:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
ffc0b888:	4b ff ff c8 	b       ffc0b850 <rtems_object_get_class_information+0x88><== NOT EXECUTED
                                                                      

ffc04acc <rtems_panic>: void rtems_panic( const char *printf_format, ... ) {
ffc04acc:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc04ad0:	7c 08 02 a6 	mflr    r0                                     
ffc04ad4:	90 81 00 1c 	stw     r4,28(r1)                              
ffc04ad8:	90 01 00 7c 	stw     r0,124(r1)                             
ffc04adc:	90 a1 00 20 	stw     r5,32(r1)                              
ffc04ae0:	90 c1 00 24 	stw     r6,36(r1)                              
ffc04ae4:	90 e1 00 28 	stw     r7,40(r1)                              
ffc04ae8:	91 01 00 2c 	stw     r8,44(r1)                              
ffc04aec:	91 21 00 30 	stw     r9,48(r1)                              
ffc04af0:	91 41 00 34 	stw     r10,52(r1)                             
ffc04af4:	40 86 00 24 	bne-    cr1,ffc04b18 <rtems_panic+0x4c>        <== ALWAYS TAKEN
ffc04af8:	d8 21 00 38 	stfd    f1,56(r1)                              <== NOT EXECUTED
ffc04afc:	d8 41 00 40 	stfd    f2,64(r1)                              <== NOT EXECUTED
ffc04b00:	d8 61 00 48 	stfd    f3,72(r1)                              <== NOT EXECUTED
ffc04b04:	d8 81 00 50 	stfd    f4,80(r1)                              <== NOT EXECUTED
ffc04b08:	d8 a1 00 58 	stfd    f5,88(r1)                              <== NOT EXECUTED
ffc04b0c:	d8 c1 00 60 	stfd    f6,96(r1)                              <== NOT EXECUTED
ffc04b10:	d8 e1 00 68 	stfd    f7,104(r1)                             <== NOT EXECUTED
ffc04b14:	d9 01 00 70 	stfd    f8,112(r1)                             <== NOT EXECUTED
  va_list arglist;                                                    
                                                                      
  va_start(arglist, printf_format);                                   
ffc04b18:	39 20 00 01 	li      r9,1                                   
ffc04b1c:	99 21 00 08 	stb     r9,8(r1)                               
ffc04b20:	39 20 00 00 	li      r9,0                                   
                                                                      
void rtems_panic(                                                     
  const char *printf_format,                                          
  ...                                                                 
)                                                                     
{                                                                     
ffc04b24:	7c 64 1b 78 	mr      r4,r3                                  
  va_list arglist;                                                    
                                                                      
  va_start(arglist, printf_format);                                   
ffc04b28:	99 21 00 09 	stb     r9,9(r1)                               
ffc04b2c:	39 21 00 80 	addi    r9,r1,128                              
  (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);     
ffc04b30:	38 a1 00 08 	addi    r5,r1,8                                
  ...                                                                 
)                                                                     
{                                                                     
  va_list arglist;                                                    
                                                                      
  va_start(arglist, printf_format);                                   
ffc04b34:	91 21 00 0c 	stw     r9,12(r1)                              
  (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);     
ffc04b38:	3c 60 20 00 	lis     r3,8192                                
  ...                                                                 
)                                                                     
{                                                                     
  va_list arglist;                                                    
                                                                      
  va_start(arglist, printf_format);                                   
ffc04b3c:	39 21 00 18 	addi    r9,r1,24                               
ffc04b40:	91 21 00 10 	stw     r9,16(r1)                              
  (void) rtems_verror(RTEMS_ERROR_PANIC, printf_format, arglist);     
ffc04b44:	4b ff fc fd 	bl      ffc04840 <rtems_verror>                
  va_end(arglist);                                                    
                                                                      
  rtems_error(0, "fatal error, exiting");                             
ffc04b48:	3c 80 ff c2 	lis     r4,-62                                 
ffc04b4c:	38 84 f9 a8 	addi    r4,r4,-1624                            
ffc04b50:	38 60 00 00 	li      r3,0                                   
ffc04b54:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04b58:	4b ff fe 9d 	bl      ffc049f4 <rtems_error>                 
  _exit(errno);                                                       
ffc04b5c:	48 00 e5 1d 	bl      ffc13078 <__errno>                     
ffc04b60:	80 63 00 00 	lwz     r3,0(r3)                               
ffc04b64:	48 00 0a d5 	bl      ffc05638 <_exit>                       
                                                                      

ffc0b374 <rtems_partition_create>: uint32_t length, uint32_t buffer_size, rtems_attribute attribute_set, rtems_id *id ) {
ffc0b374:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0b378:	7c 08 02 a6 	mflr    r0                                     
ffc0b37c:	93 c1 00 28 	stw     r30,40(r1)                             
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
ffc0b380:	7c 7e 1b 79 	mr.     r30,r3                                 
  uint32_t         length,                                            
  uint32_t         buffer_size,                                       
  rtems_attribute  attribute_set,                                     
  rtems_id        *id                                                 
)                                                                     
{                                                                     
ffc0b384:	90 01 00 34 	stw     r0,52(r1)                              
ffc0b388:	93 61 00 1c 	stw     r27,28(r1)                             
ffc0b38c:	93 81 00 20 	stw     r28,32(r1)                             
ffc0b390:	93 a1 00 24 	stw     r29,36(r1)                             
ffc0b394:	93 e1 00 2c 	stw     r31,44(r1)                             
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
ffc0b398:	40 82 00 2c 	bne-    ffc0b3c4 <rtems_partition_create+0x50> 
    return RTEMS_INVALID_NAME;                                        
ffc0b39c:	38 60 00 03 	li      r3,3                                   
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0b3a0:	80 01 00 34 	lwz     r0,52(r1)                              
ffc0b3a4:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc0b3a8:	7c 08 03 a6 	mtlr    r0                                     
ffc0b3ac:	83 81 00 20 	lwz     r28,32(r1)                             
ffc0b3b0:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc0b3b4:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc0b3b8:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc0b3bc:	38 21 00 30 	addi    r1,r1,48                               
ffc0b3c0:	4e 80 00 20 	blr                                            
  register Partition_Control *the_partition;                          
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !starting_address )                                            
ffc0b3c4:	2f 84 00 00 	cmpwi   cr7,r4,0                               
    return RTEMS_INVALID_ADDRESS;                                     
ffc0b3c8:	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 )                                            
ffc0b3cc:	41 be ff d4 	beq-    cr7,ffc0b3a0 <rtems_partition_create+0x2c>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !id )                                                          
ffc0b3d0:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc0b3d4:	41 be ff cc 	beq-    cr7,ffc0b3a0 <rtems_partition_create+0x2c><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( length == 0 || buffer_size == 0 || length < buffer_size ||     
ffc0b3d8:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc0b3dc:	7c bf 2b 78 	mr      r31,r5                                 
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
ffc0b3e0:	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 ||     
ffc0b3e4:	41 9e ff bc 	beq+    cr7,ffc0b3a0 <rtems_partition_create+0x2c>
ffc0b3e8:	2f 86 00 00 	cmpwi   cr7,r6,0                               
ffc0b3ec:	41 9e ff b4 	beq+    cr7,ffc0b3a0 <rtems_partition_create+0x2c>
ffc0b3f0:	7f 85 30 40 	cmplw   cr7,r5,r6                              
ffc0b3f4:	41 9c ff ac 	blt+    cr7,ffc0b3a0 <rtems_partition_create+0x2c>
ffc0b3f8:	70 c9 00 07 	andi.   r9,r6,7                                
ffc0b3fc:	40 82 ff a4 	bne+    ffc0b3a0 <rtems_partition_create+0x2c> 
         !_Partition_Is_buffer_size_aligned( buffer_size ) )          
    return RTEMS_INVALID_SIZE;                                        
                                                                      
  if ( !_Addresses_Is_aligned( starting_address ) )                   
ffc0b400:	70 9b 00 07 	andi.   r27,r4,7                               
                                                                      
  if ( !rtems_is_name_valid( name ) )                                 
    return RTEMS_INVALID_NAME;                                        
                                                                      
  if ( !starting_address )                                            
    return RTEMS_INVALID_ADDRESS;                                     
ffc0b404:	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 ) )                   
ffc0b408:	40 82 ff 98 	bne+    ffc0b3a0 <rtems_partition_create+0x2c> 
   *                                                                  
   * 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;                  
ffc0b40c:	3d 20 00 00 	lis     r9,0                                   
ffc0b410:	81 49 28 a8 	lwz     r10,10408(r9)                          
                                                                      
    ++level;                                                          
ffc0b414:	39 4a 00 01 	addi    r10,r10,1                              
    _Thread_Dispatch_disable_level = level;                           
ffc0b418:	91 49 28 a8 	stw     r10,10408(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 );
ffc0b41c:	3f 80 00 00 	lis     r28,0                                  
ffc0b420:	90 81 00 08 	stw     r4,8(r1)                               
ffc0b424:	3b 9c 54 e0 	addi    r28,r28,21728                          
ffc0b428:	7f 83 e3 78 	mr      r3,r28                                 
ffc0b42c:	90 c1 00 0c 	stw     r6,12(r1)                              
ffc0b430:	90 e1 00 10 	stw     r7,16(r1)                              
ffc0b434:	91 01 00 14 	stw     r8,20(r1)                              
ffc0b438:	48 00 23 71 	bl      ffc0d7a8 <_Objects_Allocate>           
                                                                      
  _Thread_Disable_dispatch();               /* prevents deletion */   
                                                                      
  the_partition = _Partition_Allocate();                              
                                                                      
  if ( !the_partition ) {                                             
ffc0b43c:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc0b440:	80 81 00 08 	lwz     r4,8(r1)                               
ffc0b444:	80 c1 00 0c 	lwz     r6,12(r1)                              
ffc0b448:	80 e1 00 10 	lwz     r7,16(r1)                              
ffc0b44c:	81 01 00 14 	lwz     r8,20(r1)                              
ffc0b450:	41 82 00 50 	beq-    ffc0b4a0 <rtems_partition_create+0x12c>
  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,        
ffc0b454:	7c bf 33 96 	divwu   r5,r31,r6                              
    _Thread_Enable_dispatch();                                        
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
ffc0b458:	90 9d 00 10 	stw     r4,16(r29)                             
  the_partition->length                = length;                      
  the_partition->buffer_size           = buffer_size;                 
ffc0b45c:	90 dd 00 18 	stw     r6,24(r29)                             
  the_partition->attribute_set         = attribute_set;               
ffc0b460:	90 fd 00 1c 	stw     r7,28(r29)                             
    return RTEMS_TOO_MANY;                                            
  }                                                                   
#endif                                                                
                                                                      
  the_partition->starting_address      = starting_address;            
  the_partition->length                = length;                      
ffc0b464:	93 fd 00 14 	stw     r31,20(r29)                            
  the_partition->buffer_size           = buffer_size;                 
  the_partition->attribute_set         = attribute_set;               
  the_partition->number_of_used_blocks = 0;                           
ffc0b468:	93 7d 00 20 	stw     r27,32(r29)                            
                                                                      
  _Chain_Initialize( &the_partition->Memory, starting_address,        
ffc0b46c:	91 01 00 14 	stw     r8,20(r1)                              
ffc0b470:	38 7d 00 24 	addi    r3,r29,36                              
ffc0b474:	48 00 17 19 	bl      ffc0cb8c <_Chain_Initialize>           
  Objects_Name         name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
ffc0b478:	81 3d 00 08 	lwz     r9,8(r29)                              
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc0b47c:	80 fc 00 1c 	lwz     r7,28(r28)                             
ffc0b480:	55 2a 13 ba 	rlwinm  r10,r9,2,14,29                         
ffc0b484:	7f a7 51 2e 	stwx    r29,r7,r10                             
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  the_object->name = name;                                            
ffc0b488:	93 dd 00 0c 	stw     r30,12(r29)                            
    &_Partition_Information,                                          
    &the_partition->Object,                                           
    (Objects_Name) name                                               
  );                                                                  
                                                                      
  *id = the_partition->Object.id;                                     
ffc0b48c:	81 01 00 14 	lwz     r8,20(r1)                              
ffc0b490:	91 28 00 00 	stw     r9,0(r8)                               
      name,                                                           
      0                  /* Not used */                               
    );                                                                
#endif                                                                
                                                                      
  _Thread_Enable_dispatch();                                          
ffc0b494:	48 00 3a f9 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
  return RTEMS_SUCCESSFUL;                                            
ffc0b498:	38 60 00 00 	li      r3,0                                   
ffc0b49c:	4b ff ff 04 	b       ffc0b3a0 <rtems_partition_create+0x2c> 
  _Thread_Disable_dispatch();               /* prevents deletion */   
                                                                      
  the_partition = _Partition_Allocate();                              
                                                                      
  if ( !the_partition ) {                                             
    _Thread_Enable_dispatch();                                        
ffc0b4a0:	48 00 3a ed 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
    return RTEMS_TOO_MANY;                                            
ffc0b4a4:	38 60 00 05 	li      r3,5                                   
ffc0b4a8:	4b ff fe f8 	b       ffc0b3a0 <rtems_partition_create+0x2c> 
                                                                      

ffc1a1a0 <rtems_partition_return_buffer>: rtems_status_code rtems_partition_return_buffer( rtems_id id, void *buffer ) {
ffc1a1a0:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc1a1a4:	7c 69 1b 78 	mr      r9,r3                                  
ffc1a1a8:	7c 08 02 a6 	mflr    r0                                     
RTEMS_INLINE_ROUTINE Partition_Control *_Partition_Get (              
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Partition_Control *)                                        
ffc1a1ac:	3c 60 00 00 	lis     r3,0                                   
ffc1a1b0:	93 c1 00 18 	stw     r30,24(r1)                             
ffc1a1b4:	38 63 6f 30 	addi    r3,r3,28464                            
ffc1a1b8:	7c 9e 23 78 	mr      r30,r4                                 
ffc1a1bc:	38 a1 00 08 	addi    r5,r1,8                                
ffc1a1c0:	90 01 00 24 	stw     r0,36(r1)                              
ffc1a1c4:	7d 24 4b 78 	mr      r4,r9                                  
ffc1a1c8:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc1a1cc:	48 00 67 dd 	bl      ffc209a8 <_Objects_Get>                
  register Partition_Control *the_partition;                          
  Objects_Locations           location;                               
                                                                      
  the_partition = _Partition_Get( id, &location );                    
  switch ( location ) {                                               
ffc1a1d0:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1a1d4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1a1d8:	40 9e 00 60 	bne-    cr7,ffc1a238 <rtems_partition_return_buffer+0x98>
)                                                                     
{                                                                     
  void *starting;                                                     
  void *ending;                                                       
                                                                      
  starting = the_partition->starting_address;                         
ffc1a1dc:	81 23 00 10 	lwz     r9,16(r3)                              
ffc1a1e0:	7c 7f 1b 78 	mr      r31,r3                                 
  ending   = _Addresses_Add_offset( starting, the_partition->length );
ffc1a1e4:	81 43 00 14 	lwz     r10,20(r3)                             
  const void *address,                                                
  const void *base,                                                   
  const void *limit                                                   
)                                                                     
{                                                                     
  return (address >= base && address <= limit);                       
ffc1a1e8:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc1a1ec:	41 9c 00 68 	blt-    cr7,ffc1a254 <rtems_partition_return_buffer+0xb4>
RTEMS_INLINE_ROUTINE void *_Addresses_Add_offset (                    
  const void *base,                                                   
  uintptr_t   offset                                                  
)                                                                     
{                                                                     
  return (void *)((uintptr_t)base + offset);                          
ffc1a1f0:	7d 49 52 14 	add     r10,r9,r10                             
  const void *address,                                                
  const void *base,                                                   
  const void *limit                                                   
)                                                                     
{                                                                     
  return (address >= base && address <= limit);                       
ffc1a1f4:	7f 9e 50 40 	cmplw   cr7,r30,r10                            
ffc1a1f8:	41 9d 00 5c 	bgt-    cr7,ffc1a254 <rtems_partition_return_buffer+0xb4><== NEVER TAKEN
  offset = (uint32_t) _Addresses_Subtract(                            
    the_buffer,                                                       
    the_partition->starting_address                                   
  );                                                                  
                                                                      
  return ((offset % the_partition->buffer_size) == 0);                
ffc1a1fc:	81 43 00 18 	lwz     r10,24(r3)                             
RTEMS_INLINE_ROUTINE int32_t _Addresses_Subtract (                    
  const void *left,                                                   
  const void *right                                                   
)                                                                     
{                                                                     
  return (int32_t) ((const char *) left - (const char *) right);      
ffc1a200:	7d 29 f0 50 	subf    r9,r9,r30                              
ffc1a204:	7d 09 53 96 	divwu   r8,r9,r10                              
ffc1a208:	7d 48 51 d6 	mullw   r10,r8,r10                             
                                                                      
  starting = the_partition->starting_address;                         
  ending   = _Addresses_Add_offset( starting, the_partition->length );
                                                                      
  return (                                                            
    _Addresses_Is_in_range( the_buffer, starting, ending ) &&         
ffc1a20c:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc1a210:	40 9e 00 44 	bne-    cr7,ffc1a254 <rtems_partition_return_buffer+0xb4>
RTEMS_INLINE_ROUTINE void _Partition_Free_buffer (                    
  Partition_Control *the_partition,                                   
  Chain_Node        *the_buffer                                       
)                                                                     
{                                                                     
  _Chain_Append( &the_partition->Memory, the_buffer );                
ffc1a214:	38 63 00 24 	addi    r3,r3,36                               
ffc1a218:	7f c4 f3 78 	mr      r4,r30                                 
ffc1a21c:	48 00 42 61 	bl      ffc1e47c <_Chain_Append>               
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( _Partition_Is_buffer_valid( buffer, the_partition ) ) {    
        _Partition_Free_buffer( the_partition, buffer );              
        the_partition->number_of_used_blocks -= 1;                    
ffc1a220:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc1a224:	39 29 ff ff 	addi    r9,r9,-1                               
ffc1a228:	91 3f 00 20 	stw     r9,32(r31)                             
        _Thread_Enable_dispatch();                                    
ffc1a22c:	48 00 78 65 	bl      ffc21a90 <_Thread_Enable_dispatch>     
        return RTEMS_SUCCESSFUL;                                      
ffc1a230:	38 60 00 00 	li      r3,0                                   
ffc1a234:	48 00 00 08 	b       ffc1a23c <rtems_partition_return_buffer+0x9c>
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc1a238:	38 60 00 04 	li      r3,4                                   
}                                                                     
ffc1a23c:	80 01 00 24 	lwz     r0,36(r1)                              
ffc1a240:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc1a244:	7c 08 03 a6 	mtlr    r0                                     
ffc1a248:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc1a24c:	38 21 00 20 	addi    r1,r1,32                               
ffc1a250:	4e 80 00 20 	blr                                            
        _Partition_Free_buffer( the_partition, buffer );              
        the_partition->number_of_used_blocks -= 1;                    
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
      _Thread_Enable_dispatch();                                      
ffc1a254:	48 00 78 3d 	bl      ffc21a90 <_Thread_Enable_dispatch>     
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc1a258:	80 01 00 24 	lwz     r0,36(r1)                              
ffc1a25c:	83 c1 00 18 	lwz     r30,24(r1)                             
        the_partition->number_of_used_blocks -= 1;                    
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
      _Thread_Enable_dispatch();                                      
      return RTEMS_INVALID_ADDRESS;                                   
ffc1a260:	38 60 00 09 	li      r3,9                                   
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc1a264:	7c 08 03 a6 	mtlr    r0                                     
ffc1a268:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc1a26c:	38 21 00 20 	addi    r1,r1,32                               
ffc1a270:	4e 80 00 20 	blr                                            
                                                                      

ffc09714 <rtems_printf_plugin>: #include <rtems/bspIo.h> #include <stdio.h> int rtems_printf_plugin(void *context, const char *format, ...) {
ffc09714:	94 21 ff 90 	stwu    r1,-112(r1)                            
ffc09718:	7c 08 02 a6 	mflr    r0                                     
ffc0971c:	90 a1 00 18 	stw     r5,24(r1)                              
ffc09720:	90 01 00 74 	stw     r0,116(r1)                             
ffc09724:	90 c1 00 1c 	stw     r6,28(r1)                              
ffc09728:	90 e1 00 20 	stw     r7,32(r1)                              
ffc0972c:	91 01 00 24 	stw     r8,36(r1)                              
ffc09730:	91 21 00 28 	stw     r9,40(r1)                              
ffc09734:	91 41 00 2c 	stw     r10,44(r1)                             
ffc09738:	40 86 00 24 	bne-    cr1,ffc0975c <rtems_printf_plugin+0x48><== ALWAYS TAKEN
ffc0973c:	d8 21 00 30 	stfd    f1,48(r1)                              <== NOT EXECUTED
ffc09740:	d8 41 00 38 	stfd    f2,56(r1)                              <== NOT EXECUTED
ffc09744:	d8 61 00 40 	stfd    f3,64(r1)                              <== NOT EXECUTED
ffc09748:	d8 81 00 48 	stfd    f4,72(r1)                              <== NOT EXECUTED
ffc0974c:	d8 a1 00 50 	stfd    f5,80(r1)                              <== NOT EXECUTED
ffc09750:	d8 c1 00 58 	stfd    f6,88(r1)                              <== NOT EXECUTED
ffc09754:	d8 e1 00 60 	stfd    f7,96(r1)                              <== NOT EXECUTED
ffc09758:	d9 01 00 68 	stfd    f8,104(r1)                             <== NOT EXECUTED
  int rv;                                                             
  va_list ap;                                                         
                                                                      
  va_start(ap, format);                                               
ffc0975c:	39 20 00 02 	li      r9,2                                   
ffc09760:	99 21 00 08 	stb     r9,8(r1)                               
ffc09764:	39 20 00 00 	li      r9,0                                   
  rv = vprintf(format, ap);                                           
ffc09768:	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);                                               
ffc0976c:	99 21 00 09 	stb     r9,9(r1)                               
ffc09770:	39 21 00 78 	addi    r9,r1,120                              
  rv = vprintf(format, ap);                                           
ffc09774:	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);                                               
ffc09778:	91 21 00 0c 	stw     r9,12(r1)                              
ffc0977c:	39 21 00 10 	addi    r9,r1,16                               
ffc09780:	91 21 00 10 	stw     r9,16(r1)                              
  rv = vprintf(format, ap);                                           
ffc09784:	48 01 05 21 	bl      ffc19ca4 <vprintf>                     
  va_end(ap);                                                         
                                                                      
  return rv;                                                          
}                                                                     
ffc09788:	80 01 00 74 	lwz     r0,116(r1)                             
ffc0978c:	38 21 00 70 	addi    r1,r1,112                              
ffc09790:	7c 08 03 a6 	mtlr    r0                                     
ffc09794:	4e 80 00 20 	blr                                            
                                                                      

ffc3f3f0 <rtems_rate_monotonic_period>: rtems_status_code rtems_rate_monotonic_period( rtems_id id, rtems_interval length ) {
ffc3f3f0:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc3f3f4:	7c 08 02 a6 	mflr    r0                                     
ffc3f3f8:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc3f3fc:	7c 7f 1b 78 	mr      r31,r3                                 
ffc3f400:	3c 60 00 00 	lis     r3,0                                   
ffc3f404:	93 a1 00 24 	stw     r29,36(r1)                             
ffc3f408:	38 63 6f 3c 	addi    r3,r3,28476                            
ffc3f40c:	7c 9d 23 78 	mr      r29,r4                                 
ffc3f410:	38 a1 00 08 	addi    r5,r1,8                                
ffc3f414:	90 01 00 34 	stw     r0,52(r1)                              
ffc3f418:	7f e4 fb 78 	mr      r4,r31                                 
ffc3f41c:	93 61 00 1c 	stw     r27,28(r1)                             
ffc3f420:	93 81 00 20 	stw     r28,32(r1)                             
ffc3f424:	93 c1 00 28 	stw     r30,40(r1)                             
ffc3f428:	4b fc be 6d 	bl      ffc0b294 <_Objects_Get>                
  rtems_rate_monotonic_period_states   local_state;                   
  ISR_Level                            level;                         
                                                                      
  the_period = _Rate_monotonic_Get( id, &location );                  
                                                                      
  switch ( location ) {                                               
ffc3f42c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc3f430:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc3f434:	40 9e 00 50 	bne-    cr7,ffc3f484 <rtems_rate_monotonic_period+0x94>
                                                                      
RTEMS_INLINE_ROUTINE bool _Thread_Is_executing (                      
  const Thread_Control *the_thread                                    
)                                                                     
{                                                                     
  return ( the_thread == _Thread_Executing );                         
ffc3f438:	3f 80 00 00 	lis     r28,0                                  
    case OBJECTS_LOCAL:                                               
      if ( !_Thread_Is_executing( the_period->owner ) ) {             
ffc3f43c:	81 43 00 40 	lwz     r10,64(r3)                             
ffc3f440:	3b 9c 69 20 	addi    r28,r28,26912                          
ffc3f444:	81 3c 00 10 	lwz     r9,16(r28)                             
ffc3f448:	7c 7e 1b 78 	mr      r30,r3                                 
ffc3f44c:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc3f450:	41 9e 00 60 	beq-    cr7,ffc3f4b0 <rtems_rate_monotonic_period+0xc0>
        _Thread_Enable_dispatch();                                    
ffc3f454:	4b fc ce 91 	bl      ffc0c2e4 <_Thread_Enable_dispatch>     
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc3f458:	80 01 00 34 	lwz     r0,52(r1)                              
                                                                      
  switch ( location ) {                                               
    case OBJECTS_LOCAL:                                               
      if ( !_Thread_Is_executing( the_period->owner ) ) {             
        _Thread_Enable_dispatch();                                    
        return RTEMS_NOT_OWNER_OF_RESOURCE;                           
ffc3f45c:	3b e0 00 17 	li      r31,23                                 
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc3f460:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc3f464:	7c 08 03 a6 	mtlr    r0                                     
ffc3f468:	7f e3 fb 78 	mr      r3,r31                                 
ffc3f46c:	83 81 00 20 	lwz     r28,32(r1)                             
ffc3f470:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc3f474:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc3f478:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc3f47c:	38 21 00 30 	addi    r1,r1,48                               
ffc3f480:	4e 80 00 20 	blr                                            
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc3f484:	3b e0 00 04 	li      r31,4                                  
}                                                                     
ffc3f488:	80 01 00 34 	lwz     r0,52(r1)                              
ffc3f48c:	7f e3 fb 78 	mr      r3,r31                                 
ffc3f490:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc3f494:	7c 08 03 a6 	mtlr    r0                                     
ffc3f498:	83 81 00 20 	lwz     r28,32(r1)                             
ffc3f49c:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc3f4a0:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc3f4a4:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc3f4a8:	38 21 00 30 	addi    r1,r1,48                               
ffc3f4ac:	4e 80 00 20 	blr                                            
      if ( !_Thread_Is_executing( the_period->owner ) ) {             
        _Thread_Enable_dispatch();                                    
        return RTEMS_NOT_OWNER_OF_RESOURCE;                           
      }                                                               
                                                                      
      if ( length == RTEMS_PERIOD_STATUS ) {                          
ffc3f4b0:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc3f4b4:	41 9e 00 80 	beq-    cr7,ffc3f534 <rtems_rate_monotonic_period+0x144>
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc3f4b8:	7f 60 00 a6 	mfmsr   r27                                    
ffc3f4bc:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc3f4c0:	7f 69 48 78 	andc    r9,r27,r9                              
ffc3f4c4:	7d 20 01 24 	mtmsr   r9                                     
        _Thread_Enable_dispatch();                                    
        return( return_value );                                       
      }                                                               
                                                                      
      _ISR_Disable( level );                                          
      if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {           
ffc3f4c8:	81 23 00 38 	lwz     r9,56(r3)                              
ffc3f4cc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc3f4d0:	41 9e 00 8c 	beq-    cr7,ffc3f55c <rtems_rate_monotonic_period+0x16c>
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_ACTIVE ) {             
ffc3f4d4:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc3f4d8:	41 9e 00 d4 	beq-    cr7,ffc3f5ac <rtems_rate_monotonic_period+0x1bc>
                                                                      
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_EXPIRED ) {            
ffc3f4dc:	2f 89 00 04 	cmpwi   cr7,r9,4                               
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc3f4e0:	3b e0 00 04 	li      r31,4                                  
                                                                      
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
                                                                      
      if ( the_period->state == RATE_MONOTONIC_EXPIRED ) {            
ffc3f4e4:	40 9e ff a4 	bne+    cr7,ffc3f488 <rtems_rate_monotonic_period+0x98><== NEVER TAKEN
        /*                                                            
         *  Update statistics from the concluding period              
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
ffc3f4e8:	4b ff fc d9 	bl      ffc3f1c0 <_Rate_monotonic_Update_statistics>
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc3f4ec:	7f 60 01 24 	mtmsr   r27                                    
                                                                      
        _ISR_Enable( level );                                         
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
ffc3f4f0:	39 20 00 02 	li      r9,2                                   
        the_period->next_length = length;                             
ffc3f4f4:	93 be 00 3c 	stw     r29,60(r30)                            
ffc3f4f8:	3c 60 00 00 	lis     r3,0                                   
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
                                                                      
        _ISR_Enable( level );                                         
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
ffc3f4fc:	91 3e 00 38 	stw     r9,56(r30)                             
ffc3f500:	38 63 65 28 	addi    r3,r3,25896                            
ffc3f504:	38 9e 00 10 	addi    r4,r30,16                              
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
ffc3f508:	93 be 00 1c 	stw     r29,28(r30)                            
        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;                                         
ffc3f50c:	3b e0 00 06 	li      r31,6                                  
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc3f510:	4b fc dd 79 	bl      ffc0d288 <_Watchdog_Insert>            
ffc3f514:	3d 20 00 00 	lis     r9,0                                   
ffc3f518:	81 29 20 c0 	lwz     r9,8384(r9)                            
ffc3f51c:	80 7e 00 40 	lwz     r3,64(r30)                             
ffc3f520:	80 9e 00 3c 	lwz     r4,60(r30)                             
ffc3f524:	7d 29 03 a6 	mtctr   r9                                     
ffc3f528:	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();                                    
ffc3f52c:	4b fc cd b9 	bl      ffc0c2e4 <_Thread_Enable_dispatch>     
ffc3f530:	4b ff ff 58 	b       ffc3f488 <rtems_rate_monotonic_period+0x98>
        _Thread_Enable_dispatch();                                    
        return RTEMS_NOT_OWNER_OF_RESOURCE;                           
      }                                                               
                                                                      
      if ( length == RTEMS_PERIOD_STATUS ) {                          
        switch ( the_period->state ) {                                
ffc3f534:	81 23 00 38 	lwz     r9,56(r3)                              
ffc3f538:	3b e0 00 00 	li      r31,0                                  
ffc3f53c:	2b 89 00 04 	cmplwi  cr7,r9,4                               
ffc3f540:	41 9d 00 14 	bgt-    cr7,ffc3f554 <rtems_rate_monotonic_period+0x164><== NEVER TAKEN
ffc3f544:	3d 40 ff c7 	lis     r10,-57                                
ffc3f548:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc3f54c:	39 4a b1 50 	addi    r10,r10,-20144                         
ffc3f550:	7f ea 48 2e 	lwzx    r31,r10,r9                             
          case RATE_MONOTONIC_ACTIVE:                                 
          default:              /* unreached -- only to remove warnings */
            return_value = RTEMS_SUCCESSFUL;                          
            break;                                                    
        }                                                             
        _Thread_Enable_dispatch();                                    
ffc3f554:	4b fc cd 91 	bl      ffc0c2e4 <_Thread_Enable_dispatch>     
ffc3f558:	4b ff ff 30 	b       ffc3f488 <rtems_rate_monotonic_period+0x98>
ffc3f55c:	7f 60 01 24 	mtmsr   r27                                    
                                                                      
      _ISR_Disable( level );                                          
      if ( the_period->state == RATE_MONOTONIC_INACTIVE ) {           
        _ISR_Enable( level );                                         
                                                                      
        the_period->next_length = length;                             
ffc3f560:	93 a3 00 3c 	stw     r29,60(r3)                             
                                                                      
        /*                                                            
         *  Baseline statistics information for the beginning of a period.
         */                                                           
        _Rate_monotonic_Initiate_statistics( the_period );            
ffc3f564:	4b ff fd ad 	bl      ffc3f310 <_Rate_monotonic_Initiate_statistics>
                                                                      
        the_period->state = RATE_MONOTONIC_ACTIVE;                    
ffc3f568:	39 40 00 02 	li      r10,2                                  
ffc3f56c:	91 5e 00 38 	stw     r10,56(r30)                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
ffc3f570:	3d 40 ff c4 	lis     r10,-60                                
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
ffc3f574:	39 20 00 00 	li      r9,0                                   
  the_watchdog->routine   = routine;                                  
ffc3f578:	39 4a f6 1c 	addi    r10,r10,-2532                          
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
ffc3f57c:	91 3e 00 18 	stw     r9,24(r30)                             
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc3f580:	3c 60 00 00 	lis     r3,0                                   
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
ffc3f584:	91 5e 00 2c 	stw     r10,44(r30)                            
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc3f588:	38 63 65 28 	addi    r3,r3,25896                            
ffc3f58c:	38 9e 00 10 	addi    r4,r30,16                              
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
  the_watchdog->id        = id;                                       
ffc3f590:	93 fe 00 30 	stw     r31,48(r30)                            
          NULL                                                        
        );                                                            
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
ffc3f594:	3b e0 00 00 	li      r31,0                                  
  the_watchdog->user_data = user_data;                                
ffc3f598:	91 3e 00 34 	stw     r9,52(r30)                             
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
ffc3f59c:	93 be 00 1c 	stw     r29,28(r30)                            
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc3f5a0:	4b fc dc e9 	bl      ffc0d288 <_Watchdog_Insert>            
          id,                                                         
          NULL                                                        
        );                                                            
                                                                      
        _Watchdog_Insert_ticks( &the_period->Timer, length );         
        _Thread_Enable_dispatch();                                    
ffc3f5a4:	4b fc cd 41 	bl      ffc0c2e4 <_Thread_Enable_dispatch>     
ffc3f5a8:	4b ff fe e0 	b       ffc3f488 <rtems_rate_monotonic_period+0x98>
                                                                      
      if ( the_period->state == RATE_MONOTONIC_ACTIVE ) {             
        /*                                                            
         *  Update statistics from the concluding period.             
         */                                                           
        _Rate_monotonic_Update_statistics( the_period );              
ffc3f5ac:	4b ff fc 15 	bl      ffc3f1c0 <_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;         
ffc3f5b0:	39 20 00 01 	li      r9,1                                   
ffc3f5b4:	91 3e 00 38 	stw     r9,56(r30)                             
        the_period->next_length = length;                             
ffc3f5b8:	93 be 00 3c 	stw     r29,60(r30)                            
ffc3f5bc:	7f 60 01 24 	mtmsr   r27                                    
                                                                      
        _ISR_Enable( level );                                         
                                                                      
        _Thread_Executing->Wait.id = the_period->Object.id;           
ffc3f5c0:	81 3c 00 10 	lwz     r9,16(r28)                             
        _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc3f5c4:	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;           
ffc3f5c8:	81 5e 00 08 	lwz     r10,8(r30)                             
        _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc3f5cc:	7d 23 4b 78 	mr      r3,r9                                  
        the_period->state = RATE_MONOTONIC_OWNER_IS_BLOCKING;         
        the_period->next_length = length;                             
                                                                      
        _ISR_Enable( level );                                         
                                                                      
        _Thread_Executing->Wait.id = the_period->Object.id;           
ffc3f5d0:	91 49 00 20 	stw     r10,32(r9)                             
        _Thread_Set_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc3f5d4:	4b fc d7 f9 	bl      ffc0cdcc <_Thread_Set_state>           
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc3f5d8:	7d 40 00 a6 	mfmsr   r10                                    
ffc3f5dc:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc3f5e0:	7d 49 48 78 	andc    r9,r10,r9                              
ffc3f5e4:	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;                  
ffc3f5e8:	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;                            
ffc3f5ec:	81 3e 00 38 	lwz     r9,56(r30)                             
          the_period->state = RATE_MONOTONIC_ACTIVE;                  
ffc3f5f0:	91 1e 00 38 	stw     r8,56(r30)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc3f5f4:	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 )   
ffc3f5f8:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc3f5fc:	41 9e 00 10 	beq-    cr7,ffc3f60c <rtems_rate_monotonic_period+0x21c><== NEVER TAKEN
          _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
                                                                      
        _Thread_Enable_dispatch();                                    
ffc3f600:	4b fc cc e5 	bl      ffc0c2e4 <_Thread_Enable_dispatch>     
        return RTEMS_SUCCESSFUL;                                      
ffc3f604:	3b e0 00 00 	li      r31,0                                  
ffc3f608:	4b ff fe 80 	b       ffc3f488 <rtems_rate_monotonic_period+0x98>
        /*                                                            
         *  If it did, then we want to unblock ourself and continue as
         *  if nothing happen.  The period was reset in the timeout routine.
         */                                                           
        if ( local_state == RATE_MONOTONIC_EXPIRED_WHILE_BLOCKING )   
          _Thread_Clear_state( _Thread_Executing, STATES_WAITING_FOR_PERIOD );
ffc3f60c:	80 7c 00 10 	lwz     r3,16(r28)                             <== NOT EXECUTED
ffc3f610:	38 80 40 00 	li      r4,16384                               <== NOT EXECUTED
ffc3f614:	4b fc c7 d1 	bl      ffc0bde4 <_Thread_Clear_state>         <== NOT EXECUTED
ffc3f618:	4b ff ff e8 	b       ffc3f600 <rtems_rate_monotonic_period+0x210><== NOT EXECUTED
                                                                      

ffc2f6d4 <rtems_rate_monotonic_report_statistics_with_plugin>: void rtems_rate_monotonic_report_statistics_with_plugin( void *context, rtems_printk_plugin_t print ) {
ffc2f6d4:	94 21 ff 70 	stwu    r1,-144(r1)                            
ffc2f6d8:	7c 08 02 a6 	mflr    r0                                     
ffc2f6dc:	93 c1 00 88 	stw     r30,136(r1)                            
  rtems_id                               id;                          
  rtems_rate_monotonic_period_statistics the_stats;                   
  rtems_rate_monotonic_period_status     the_status;                  
  char                                   name[5];                     
                                                                      
  if ( !print )                                                       
ffc2f6e0:	7c 9e 23 79 	mr.     r30,r4                                 
                                                                      
void rtems_rate_monotonic_report_statistics_with_plugin(              
  void                  *context,                                     
  rtems_printk_plugin_t  print                                        
)                                                                     
{                                                                     
ffc2f6e4:	90 01 00 94 	stw     r0,148(r1)                             
ffc2f6e8:	92 e1 00 6c 	stw     r23,108(r1)                            
ffc2f6ec:	93 01 00 70 	stw     r24,112(r1)                            
ffc2f6f0:	93 21 00 74 	stw     r25,116(r1)                            
ffc2f6f4:	93 41 00 78 	stw     r26,120(r1)                            
ffc2f6f8:	93 61 00 7c 	stw     r27,124(r1)                            
ffc2f6fc:	93 81 00 80 	stw     r28,128(r1)                            
ffc2f700:	93 a1 00 84 	stw     r29,132(r1)                            
ffc2f704:	93 e1 00 8c 	stw     r31,140(r1)                            
  rtems_id                               id;                          
  rtems_rate_monotonic_period_statistics the_stats;                   
  rtems_rate_monotonic_period_status     the_status;                  
  char                                   name[5];                     
                                                                      
  if ( !print )                                                       
ffc2f708:	41 82 01 5c 	beq-    ffc2f864 <rtems_rate_monotonic_report_statistics_with_plugin+0x190><== NEVER TAKEN
    return;                                                           
                                                                      
  (*print)( context, "Period information by period\n" );              
ffc2f70c:	3c 80 ff c7 	lis     r4,-57                                 
ffc2f710:	7f c9 03 a6 	mtctr   r30                                    
ffc2f714:	38 84 81 6c 	addi    r4,r4,-32404                           
ffc2f718:	7c 7c 1b 78 	mr      r28,r3                                 
                                                                      
  /*                                                                  
   * 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 ;                   
ffc2f71c:	3f a0 00 00 	lis     r29,0                                  
ffc2f720:	3b bd 6f 3c 	addi    r29,r29,28476                          
  char                                   name[5];                     
                                                                      
  if ( !print )                                                       
    return;                                                           
                                                                      
  (*print)( context, "Period information by period\n" );              
ffc2f724:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2f728:	4e 80 04 21 	bctrl                                          
  #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                          
    (*print)( context, "--- CPU times are in seconds ---\n" );        
ffc2f72c:	3c 80 ff c7 	lis     r4,-57                                 
ffc2f730:	38 84 81 8c 	addi    r4,r4,-32372                           
ffc2f734:	7f c9 03 a6 	mtctr   r30                                    
ffc2f738:	7f 83 e3 78 	mr      r3,r28                                 
ffc2f73c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2f740:	4e 80 04 21 	bctrl                                          
    (*print)( context, "--- Wall times are in seconds ---\n" );       
ffc2f744:	3c 80 ff c7 	lis     r4,-57                                 
ffc2f748:	38 84 81 b0 	addi    r4,r4,-32336                           
ffc2f74c:	7f c9 03 a6 	mtctr   r30                                    
ffc2f750:	7f 83 e3 78 	mr      r3,r28                                 
ffc2f754:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2f758:	4e 80 04 21 	bctrl                                          
  Be sure to test the various cases.                                  
  (*print)( context,"\                                                
1234567890123456789012345678901234567890123456789012345678901234567890123456789\
\n");                                                                 
*/                                                                    
  (*print)( context, "   ID     OWNER COUNT MISSED     "              
ffc2f75c:	3c 80 ff c7 	lis     r4,-57                                 
ffc2f760:	38 84 81 d4 	addi    r4,r4,-32300                           
ffc2f764:	7f c9 03 a6 	mtctr   r30                                    
ffc2f768:	7f 83 e3 78 	mr      r3,r28                                 
ffc2f76c:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2f770:	4e 80 04 21 	bctrl                                          
       #ifndef __RTEMS_USE_TICKS_FOR_STATISTICS__                     
          "          "                                                
       #endif                                                         
          "   WALL TIME\n"                                            
  );                                                                  
  (*print)( context, "                               "                
ffc2f774:	3c 80 ff c7 	lis     r4,-57                                 
ffc2f778:	7f 83 e3 78 	mr      r3,r28                                 
ffc2f77c:	7f c9 03 a6 	mtctr   r30                                    
ffc2f780:	38 84 82 20 	addi    r4,r4,-32224                           
ffc2f784:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2f788:	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 ;                   
ffc2f78c:	83 fd 00 08 	lwz     r31,8(r29)                             
ffc2f790:	81 3d 00 0c 	lwz     r9,12(r29)                             
ffc2f794:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
ffc2f798:	41 9d 00 cc 	bgt-    cr7,ffc2f864 <rtems_rate_monotonic_report_statistics_with_plugin+0x190><== NEVER TAKEN
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
ffc2f79c:	3f 20 ff c7 	lis     r25,-57                                
      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,                                              
ffc2f7a0:	3e e0 ff c7 	lis     r23,-57                                
ffc2f7a4:	3f 60 10 62 	lis     r27,4194                               
      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,                                              
ffc2f7a8:	3f 00 ff c7 	lis     r24,-57                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
ffc2f7ac:	3f 40 ff c7 	lis     r26,-57                                
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
ffc2f7b0:	3b 39 82 6c 	addi    r25,r25,-32148                         
      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,                                              
ffc2f7b4:	3a f7 82 84 	addi    r23,r23,-32124                         
ffc2f7b8:	63 7b 4d d3 	ori     r27,r27,19923                          
      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,                                              
ffc2f7bc:	3b 18 82 a4 	addi    r24,r24,-32092                         
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
ffc2f7c0:	3b 5a 9a 34 	addi    r26,r26,-26060                         
ffc2f7c4:	48 00 00 14 	b       ffc2f7d8 <rtems_rate_monotonic_report_statistics_with_plugin+0x104>
                                                                      
  /*                                                                  
   * 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 ;                   
ffc2f7c8:	81 3d 00 0c 	lwz     r9,12(r29)                             
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
ffc2f7cc:	3b ff 00 01 	addi    r31,r31,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 ;                   
ffc2f7d0:	7f 89 f8 40 	cmplw   cr7,r9,r31                             
ffc2f7d4:	41 9c 00 90 	blt-    cr7,ffc2f864 <rtems_rate_monotonic_report_statistics_with_plugin+0x190>
        id <= _Rate_monotonic_Information.maximum_id ;                
        id++ ) {                                                      
    status = rtems_rate_monotonic_get_statistics( id, &the_stats );   
ffc2f7d8:	7f e3 fb 78 	mr      r3,r31                                 
ffc2f7dc:	38 81 00 08 	addi    r4,r1,8                                
ffc2f7e0:	48 00 f5 39 	bl      ffc3ed18 <rtems_rate_monotonic_get_statistics>
    if ( status != RTEMS_SUCCESSFUL )                                 
ffc2f7e4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2f7e8:	40 9e ff e0 	bne+    cr7,ffc2f7c8 <rtems_rate_monotonic_report_statistics_with_plugin+0xf4>
    #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 );      
ffc2f7ec:	38 81 00 40 	addi    r4,r1,64                               
ffc2f7f0:	7f e3 fb 78 	mr      r3,r31                                 
ffc2f7f4:	48 00 f7 4d 	bl      ffc3ef40 <rtems_rate_monotonic_get_status>
    #endif                                                            
                                                                      
    rtems_object_get_name( the_status.owner, sizeof(name), name );    
ffc2f7f8:	80 61 00 40 	lwz     r3,64(r1)                              
ffc2f7fc:	38 a1 00 60 	addi    r5,r1,96                               
ffc2f800:	38 80 00 05 	li      r4,5                                   
ffc2f804:	4b fe 35 a1 	bl      ffc12da4 <rtems_object_get_name>       
                                                                      
    /*                                                                
     *  Print part of report line that is not dependent on granularity
     */                                                               
    (*print)( context,                                                
ffc2f808:	7f 24 cb 78 	mr      r4,r25                                 
ffc2f80c:	7f e5 fb 78 	mr      r5,r31                                 
ffc2f810:	80 e1 00 08 	lwz     r7,8(r1)                               
ffc2f814:	7f 83 e3 78 	mr      r3,r28                                 
ffc2f818:	81 01 00 0c 	lwz     r8,12(r1)                              
ffc2f81c:	38 c1 00 60 	addi    r6,r1,96                               
ffc2f820:	7f c9 03 a6 	mtctr   r30                                    
ffc2f824:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2f828:	4e 80 04 21 	bctrl                                          
    );                                                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
ffc2f82c:	81 21 00 08 	lwz     r9,8(r1)                               
      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 );
ffc2f830:	38 61 00 20 	addi    r3,r1,32                               
    );                                                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
ffc2f834:	2f 89 00 00 	cmpwi   cr7,r9,0                               
      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 );
ffc2f838:	38 a1 00 58 	addi    r5,r1,88                               
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
ffc2f83c:	7f 44 d3 78 	mr      r4,r26                                 
    );                                                                
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
ffc2f840:	40 9e 00 58 	bne-    cr7,ffc2f898 <rtems_rate_monotonic_report_statistics_with_plugin+0x1c4>
      (*print)( context, "\n" );                                      
ffc2f844:	7f 83 e3 78 	mr      r3,r28                                 
ffc2f848:	7f c9 03 a6 	mtctr   r30                                    
   * 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++ ) {                                                      
ffc2f84c:	3b ff 00 01 	addi    r31,r31,1                              
                                                                      
    /*                                                                
     *  If the count is zero, don't print statistics                  
     */                                                               
    if (the_stats.count == 0) {                                       
      (*print)( context, "\n" );                                      
ffc2f850:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2f854:	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 ;                   
ffc2f858:	81 3d 00 0c 	lwz     r9,12(r29)                             
ffc2f85c:	7f 89 f8 40 	cmplw   cr7,r9,r31                             
ffc2f860:	40 9c ff 78 	bge+    cr7,ffc2f7d8 <rtems_rate_monotonic_report_statistics_with_plugin+0x104><== ALWAYS TAKEN
        the_stats.min_wall_time, the_stats.max_wall_time, ival_wall, fval_wall
      );                                                              
    #endif                                                            
    }                                                                 
  }                                                                   
}                                                                     
ffc2f864:	80 01 00 94 	lwz     r0,148(r1)                             
ffc2f868:	82 e1 00 6c 	lwz     r23,108(r1)                            
ffc2f86c:	7c 08 03 a6 	mtlr    r0                                     
ffc2f870:	83 01 00 70 	lwz     r24,112(r1)                            
ffc2f874:	83 21 00 74 	lwz     r25,116(r1)                            
ffc2f878:	83 41 00 78 	lwz     r26,120(r1)                            
ffc2f87c:	83 61 00 7c 	lwz     r27,124(r1)                            
ffc2f880:	83 81 00 80 	lwz     r28,128(r1)                            
ffc2f884:	83 a1 00 84 	lwz     r29,132(r1)                            
ffc2f888:	83 c1 00 88 	lwz     r30,136(r1)                            
ffc2f88c:	83 e1 00 8c 	lwz     r31,140(r1)                            
ffc2f890:	38 21 00 90 	addi    r1,r1,144                              
ffc2f894:	4e 80 00 20 	blr                                            
      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 );
ffc2f898:	7d 24 4b 78 	mr      r4,r9                                  
ffc2f89c:	48 00 0f 15 	bl      ffc307b0 <_Timespec_Divide_by_integer> 
      (*print)( context,                                              
ffc2f8a0:	81 01 00 14 	lwz     r8,20(r1)                              
ffc2f8a4:	81 41 00 1c 	lwz     r10,28(r1)                             
ffc2f8a8:	7f c9 03 a6 	mtctr   r30                                    
ffc2f8ac:	80 61 00 5c 	lwz     r3,92(r1)                              
ffc2f8b0:	7d 68 d8 96 	mulhw   r11,r8,r27                             
ffc2f8b4:	80 e1 00 18 	lwz     r7,24(r1)                              
ffc2f8b8:	7c 03 d8 96 	mulhw   r0,r3,r27                              
ffc2f8bc:	81 21 00 58 	lwz     r9,88(r1)                              
ffc2f8c0:	80 a1 00 10 	lwz     r5,16(r1)                              
ffc2f8c4:	7c 8a d8 96 	mulhw   r4,r10,r27                             
ffc2f8c8:	7d 6b 36 70 	srawi   r11,r11,6                              
ffc2f8cc:	7d 06 fe 70 	srawi   r6,r8,31                               
ffc2f8d0:	7c 63 fe 70 	srawi   r3,r3,31                               
ffc2f8d4:	7c 88 36 70 	srawi   r8,r4,6                                
ffc2f8d8:	7d 44 fe 70 	srawi   r4,r10,31                              
ffc2f8dc:	7c 0a 36 70 	srawi   r10,r0,6                               
ffc2f8e0:	7c c6 58 50 	subf    r6,r6,r11                              
ffc2f8e4:	7d 04 40 50 	subf    r8,r4,r8                               
ffc2f8e8:	7d 43 50 50 	subf    r10,r3,r10                             
ffc2f8ec:	7e e4 bb 78 	mr      r4,r23                                 
ffc2f8f0:	7f 83 e3 78 	mr      r3,r28                                 
ffc2f8f4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2f8f8:	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);
ffc2f8fc:	80 81 00 08 	lwz     r4,8(r1)                               
ffc2f900:	38 61 00 38 	addi    r3,r1,56                               
ffc2f904:	38 a1 00 58 	addi    r5,r1,88                               
ffc2f908:	48 00 0e a9 	bl      ffc307b0 <_Timespec_Divide_by_integer> 
      (*print)( context,                                              
ffc2f90c:	81 01 00 2c 	lwz     r8,44(r1)                              
ffc2f910:	81 41 00 34 	lwz     r10,52(r1)                             
ffc2f914:	7f c9 03 a6 	mtctr   r30                                    
ffc2f918:	80 61 00 5c 	lwz     r3,92(r1)                              
ffc2f91c:	7d 88 d8 96 	mulhw   r12,r8,r27                             
ffc2f920:	80 a1 00 28 	lwz     r5,40(r1)                              
ffc2f924:	7d 6a d8 96 	mulhw   r11,r10,r27                            
ffc2f928:	80 e1 00 30 	lwz     r7,48(r1)                              
ffc2f92c:	81 21 00 58 	lwz     r9,88(r1)                              
ffc2f930:	7c 83 d8 96 	mulhw   r4,r3,r27                              
ffc2f934:	7d 40 fe 70 	srawi   r0,r10,31                              
ffc2f938:	7d 8c 36 70 	srawi   r12,r12,6                              
ffc2f93c:	7d 06 fe 70 	srawi   r6,r8,31                               
ffc2f940:	7c 8a 36 70 	srawi   r10,r4,6                               
ffc2f944:	7d 68 36 70 	srawi   r8,r11,6                               
ffc2f948:	7c 6b fe 70 	srawi   r11,r3,31                              
ffc2f94c:	7f 04 c3 78 	mr      r4,r24                                 
ffc2f950:	7f 83 e3 78 	mr      r3,r28                                 
ffc2f954:	7c c6 60 50 	subf    r6,r6,r12                              
ffc2f958:	7d 00 40 50 	subf    r8,r0,r8                               
ffc2f95c:	7d 4b 50 50 	subf    r10,r11,r10                            
ffc2f960:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2f964:	4e 80 04 21 	bctrl                                          
ffc2f968:	4b ff fe 60 	b       ffc2f7c8 <rtems_rate_monotonic_report_statistics_with_plugin+0xf4>
                                                                      

ffc2f97c <rtems_rate_monotonic_reset_all_statistics>: * * 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;
ffc2f97c:	3d 20 00 00 	lis     r9,0                                   
                                                                      
/*                                                                    
 *  rtems_rate_monotonic_reset_all_statistics                         
 */                                                                   
void rtems_rate_monotonic_reset_all_statistics( void )                
{                                                                     
ffc2f980:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc2f984:	7c 08 02 a6 	mflr    r0                                     
ffc2f988:	81 49 34 e4 	lwz     r10,13540(r9)                          
ffc2f98c:	90 01 00 14 	stw     r0,20(r1)                              
                                                                      
    ++level;                                                          
ffc2f990:	39 4a 00 01 	addi    r10,r10,1                              
ffc2f994:	93 c1 00 08 	stw     r30,8(r1)                              
ffc2f998:	93 e1 00 0c 	stw     r31,12(r1)                             
    _Thread_Dispatch_disable_level = level;                           
ffc2f99c:	91 49 34 e4 	stw     r10,13540(r9)                          
                                                                      
    /*                                                                
     * Cycle through all possible ids and try to reset each one.  If it
     * is a period that is inactive, we just get an error back.  No big deal.
     */                                                               
    for ( id=_Rate_monotonic_Information.minimum_id ;                 
ffc2f9a0:	3f c0 00 00 	lis     r30,0                                  
ffc2f9a4:	3b de 6f 3c 	addi    r30,r30,28476                          
ffc2f9a8:	83 fe 00 08 	lwz     r31,8(r30)                             
ffc2f9ac:	81 3e 00 0c 	lwz     r9,12(r30)                             
ffc2f9b0:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
ffc2f9b4:	41 9d 00 1c 	bgt-    cr7,ffc2f9d0 <rtems_rate_monotonic_reset_all_statistics+0x54><== NEVER TAKEN
          id <= _Rate_monotonic_Information.maximum_id ;              
          id++ ) {                                                    
      (void) rtems_rate_monotonic_reset_statistics( id );             
ffc2f9b8:	7f e3 fb 78 	mr      r3,r31                                 
ffc2f9bc:	48 00 00 2d 	bl      ffc2f9e8 <rtems_rate_monotonic_reset_statistics>
                                                                      
    /*                                                                
     * Cycle through all possible ids and try to reset each one.  If it
     * is a period that is inactive, we just get an error back.  No big deal.
     */                                                               
    for ( id=_Rate_monotonic_Information.minimum_id ;                 
ffc2f9c0:	81 3e 00 0c 	lwz     r9,12(r30)                             
          id <= _Rate_monotonic_Information.maximum_id ;              
          id++ ) {                                                    
ffc2f9c4:	3b ff 00 01 	addi    r31,r31,1                              
                                                                      
    /*                                                                
     * Cycle through all possible ids and try to reset each one.  If it
     * is a period that is inactive, we just get an error back.  No big deal.
     */                                                               
    for ( id=_Rate_monotonic_Information.minimum_id ;                 
ffc2f9c8:	7f 89 f8 40 	cmplw   cr7,r9,r31                             
ffc2f9cc:	40 9c ff ec 	bge+    cr7,ffc2f9b8 <rtems_rate_monotonic_reset_all_statistics+0x3c>
                                                                      
  /*                                                                  
   *  Done so exit thread dispatching disabled critical section.      
   */                                                                 
  _Thread_Enable_dispatch();                                          
}                                                                     
ffc2f9d0:	80 01 00 14 	lwz     r0,20(r1)                              
ffc2f9d4:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc2f9d8:	7c 08 03 a6 	mtlr    r0                                     
ffc2f9dc:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc2f9e0:	38 21 00 10 	addi    r1,r1,16                               
    }                                                                 
                                                                      
  /*                                                                  
   *  Done so exit thread dispatching disabled critical section.      
   */                                                                 
  _Thread_Enable_dispatch();                                          
ffc2f9e4:	4b fd c9 00 	b       ffc0c2e4 <_Thread_Enable_dispatch>     
                                                                      

ffc0ab28 <rtems_rbheap_allocate>: return big_enough; } void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size) {
ffc0ab28:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0ab2c:	7c 08 02 a6 	mflr    r0                                     
ffc0ab30:	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;                           
ffc0ab34:	81 23 00 30 	lwz     r9,48(r3)                              
                                                                      
  return big_enough;                                                  
}                                                                     
                                                                      
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{                                                                     
ffc0ab38:	93 c1 00 18 	stw     r30,24(r1)                             
                                                                      
#include <stdlib.h>                                                   
                                                                      
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)       
{                                                                     
  uintptr_t excess = value % alignment;                               
ffc0ab3c:	7f c4 4b 96 	divwu   r30,r4,r9                              
                                                                      
  return big_enough;                                                  
}                                                                     
                                                                      
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{                                                                     
ffc0ab40:	93 81 00 10 	stw     r28,16(r1)                             
ffc0ab44:	93 61 00 0c 	stw     r27,12(r1)                             
ffc0ab48:	93 a1 00 14 	stw     r29,20(r1)                             
ffc0ab4c:	93 e1 00 1c 	stw     r31,28(r1)                             
                                                                      
#include <stdlib.h>                                                   
                                                                      
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)       
{                                                                     
  uintptr_t excess = value % alignment;                               
ffc0ab50:	7f de 49 d6 	mullw   r30,r30,r9                             
                                                                      
  return big_enough;                                                  
}                                                                     
                                                                      
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{                                                                     
ffc0ab54:	7c 7c 1b 78 	mr      r28,r3                                 
                                                                      
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)       
{                                                                     
  uintptr_t excess = value % alignment;                               
                                                                      
  if (excess > 0) {                                                   
ffc0ab58:	7d 5e 20 51 	subf.   r10,r30,r4                             
ffc0ab5c:	40 82 00 ac 	bne-    ffc0ac08 <rtems_rbheap_allocate+0xe0>  <== NEVER TAKEN
  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) {                             
ffc0ab60:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc0ab64:	7c 9e 23 78 	mr      r30,r4                                 
ffc0ab68:	41 9e 00 2c 	beq-    cr7,ffc0ab94 <rtems_rbheap_allocate+0x6c>
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc0ab6c:	83 bc 00 00 	lwz     r29,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);        
ffc0ab70:	39 3c 00 04 	addi    r9,r28,4                               
  rtems_rbheap_chunk *big_enough = NULL;                              
                                                                      
  while (current != tail && big_enough == NULL) {                     
ffc0ab74:	7f 9d 48 00 	cmpw    cr7,r29,r9                             
ffc0ab78:	41 9e 00 1c 	beq-    cr7,ffc0ab94 <rtems_rbheap_allocate+0x6c>
    rtems_rbheap_chunk *free_chunk = (rtems_rbheap_chunk *) current;  
                                                                      
    if (free_chunk->size >= size) {                                   
ffc0ab7c:	83 fd 00 1c 	lwz     r31,28(r29)                            
ffc0ab80:	7f 9f f0 40 	cmplw   cr7,r31,r30                            
ffc0ab84:	40 9c 00 38 	bge-    cr7,ffc0abbc <rtems_rbheap_allocate+0x94>
  rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk));                 
                                                                      
  if (chunk != NULL) {                                                
    rtems_rbheap_add_to_spare_descriptor_chain(control, chunk);       
  }                                                                   
}                                                                     
ffc0ab88:	83 bd 00 00 	lwz     r29,0(r29)                             
{                                                                     
  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) {                     
ffc0ab8c:	7f 89 e8 00 	cmpw    cr7,r9,r29                             
ffc0ab90:	40 9e ff ec 	bne+    cr7,ffc0ab7c <rtems_rbheap_allocate+0x54><== NEVER TAKEN
  return big_enough;                                                  
}                                                                     
                                                                      
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{                                                                     
  void *ptr = NULL;                                                   
ffc0ab94:	38 60 00 00 	li      r3,0                                   
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return ptr;                                                         
}                                                                     
ffc0ab98:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0ab9c:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0aba0:	7c 08 03 a6 	mtlr    r0                                     
ffc0aba4:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0aba8:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0abac:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0abb0:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0abb4:	38 21 00 20 	addi    r1,r1,32                               
ffc0abb8:	4e 80 00 20 	blr                                            
    rtems_rbheap_chunk *free_chunk = search_free_chunk(free_chain, aligned_size);
                                                                      
    if (free_chunk != NULL) {                                         
      uintptr_t free_size = free_chunk->size;                         
                                                                      
      if (free_size > aligned_size) {                                 
ffc0abbc:	7f 9e f8 40 	cmplw   cr7,r30,r31                            
ffc0abc0:	41 9c 00 68 	blt-    cr7,ffc0ac28 <rtems_rbheap_allocate+0x100>
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return ptr;                                                         
}                                                                     
ffc0abc4:	80 01 00 24 	lwz     r0,36(r1)                              
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
ffc0abc8:	39 40 00 00 	li      r10,0                                  
)                                                                     
{                                                                     
  Chain_Node *next;                                                   
  Chain_Node *previous;                                               
                                                                      
  next           = the_node->next;                                    
ffc0abcc:	81 3d 00 00 	lwz     r9,0(r29)                              
ffc0abd0:	7c 08 03 a6 	mtlr    r0                                     
  previous       = the_node->previous;                                
ffc0abd4:	81 1d 00 04 	lwz     r8,4(r29)                              
          ptr = (void *) new_chunk->begin;                            
        }                                                             
      } else {                                                        
        rtems_chain_extract_unprotected(&free_chunk->chain_node);     
        rtems_chain_set_off_chain(&free_chunk->chain_node);           
        ptr = (void *) free_chunk->begin;                             
ffc0abd8:	80 7d 00 18 	lwz     r3,24(r29)                             
  next->previous = previous;                                          
ffc0abdc:	91 09 00 04 	stw     r8,4(r9)                               
  previous->next = next;                                              
ffc0abe0:	91 28 00 00 	stw     r9,0(r8)                               
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
ffc0abe4:	91 5d 00 04 	stw     r10,4(r29)                             
ffc0abe8:	91 5d 00 00 	stw     r10,0(r29)                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return ptr;                                                         
}                                                                     
ffc0abec:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0abf0:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0abf4:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0abf8:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0abfc:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0ac00:	38 21 00 20 	addi    r1,r1,32                               
ffc0ac04:	4e 80 00 20 	blr                                            
  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) {                             
ffc0ac08:	2f 84 00 00 	cmpwi   cr7,r4,0                               <== NOT EXECUTED
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)       
{                                                                     
  uintptr_t excess = value % alignment;                               
                                                                      
  if (excess > 0) {                                                   
    value += alignment - excess;                                      
ffc0ac0c:	7d 24 4a 14 	add     r9,r4,r9                               <== NOT EXECUTED
ffc0ac10:	7f ca 48 50 	subf    r30,r10,r9                             <== 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) {                             
ffc0ac14:	41 be ff 80 	beq-    cr7,ffc0ab94 <rtems_rbheap_allocate+0x6c><== NOT EXECUTED
ffc0ac18:	7f 84 f0 40 	cmplw   cr7,r4,r30                             <== NOT EXECUTED
ffc0ac1c:	40 9d ff 50 	ble+    cr7,ffc0ab6c <rtems_rbheap_allocate+0x44><== NOT EXECUTED
  return big_enough;                                                  
}                                                                     
                                                                      
void *rtems_rbheap_allocate(rtems_rbheap_control *control, size_t size)
{                                                                     
  void *ptr = NULL;                                                   
ffc0ac20:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc0ac24:	4b ff ff 74 	b       ffc0ab98 <rtems_rbheap_allocate+0x70>  <== NOT EXECUTED
                                                                      
    if (free_chunk != NULL) {                                         
      uintptr_t free_size = free_chunk->size;                         
                                                                      
      if (free_size > aligned_size) {                                 
        rtems_rbheap_chunk *new_chunk = get_chunk(control);           
ffc0ac28:	7f 83 e3 78 	mr      r3,r28                                 
ffc0ac2c:	4b ff fc 9d 	bl      ffc0a8c8 <get_chunk>                   
                                                                      
        if (new_chunk != NULL) {                                      
ffc0ac30:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc0ac34:	41 a2 ff 60 	beq-    ffc0ab94 <rtems_rbheap_allocate+0x6c>  <== 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;       
ffc0ac38:	81 5d 00 18 	lwz     r10,24(r29)                            
                                                                      
      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;         
ffc0ac3c:	7f fe f8 50 	subf    r31,r30,r31                            
ffc0ac40:	39 20 00 00 	li      r9,0                                   
                                                                      
          free_chunk->size = new_free_size;                           
ffc0ac44:	93 fd 00 1c 	stw     r31,28(r29)                            
          new_chunk->begin = free_chunk->begin + new_free_size;       
ffc0ac48:	7d 5f 52 14 	add     r10,r31,r10                            
          new_chunk->size = aligned_size;                             
ffc0ac4c:	93 db 00 1c 	stw     r30,28(r27)                            
static void insert_into_tree(                                         
  rtems_rbtree_control *tree,                                         
  rtems_rbheap_chunk *chunk                                           
)                                                                     
{                                                                     
  _RBTree_Insert_unprotected(tree, &chunk->tree_node);                
ffc0ac50:	38 7c 00 18 	addi    r3,r28,24                              
ffc0ac54:	38 9b 00 08 	addi    r4,r27,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;       
ffc0ac58:	91 5b 00 18 	stw     r10,24(r27)                            
ffc0ac5c:	91 3b 00 04 	stw     r9,4(r27)                              
ffc0ac60:	91 3b 00 00 	stw     r9,0(r27)                              
static void insert_into_tree(                                         
  rtems_rbtree_control *tree,                                         
  rtems_rbheap_chunk *chunk                                           
)                                                                     
{                                                                     
  _RBTree_Insert_unprotected(tree, &chunk->tree_node);                
ffc0ac64:	48 00 1f 1d 	bl      ffc0cb80 <_RBTree_Insert_unprotected>  
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return ptr;                                                         
}                                                                     
ffc0ac68:	80 01 00 24 	lwz     r0,36(r1)                              
          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;                            
ffc0ac6c:	80 7b 00 18 	lwz     r3,24(r27)                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return ptr;                                                         
}                                                                     
ffc0ac70:	7c 08 03 a6 	mtlr    r0                                     
ffc0ac74:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0ac78:	83 81 00 10 	lwz     r28,16(r1)                             
ffc0ac7c:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc0ac80:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0ac84:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0ac88:	38 21 00 20 	addi    r1,r1,32                               
ffc0ac8c:	4e 80 00 20 	blr                                            
                                                                      

ffc0ae08 <rtems_rbheap_extend_descriptors_with_malloc>: /* Do nothing */ } void rtems_rbheap_extend_descriptors_with_malloc(rtems_rbheap_control *control) {
ffc0ae08:	94 21 ff f0 	stwu    r1,-16(r1)                             <== NOT EXECUTED
ffc0ae0c:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc0ae10:	93 e1 00 0c 	stw     r31,12(r1)                             <== NOT EXECUTED
ffc0ae14:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
  rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk));                 
ffc0ae18:	38 60 00 20 	li      r3,32                                  <== NOT EXECUTED
{                                                                     
  /* Do nothing */                                                    
}                                                                     
                                                                      
void rtems_rbheap_extend_descriptors_with_malloc(rtems_rbheap_control *control)
{                                                                     
ffc0ae1c:	90 01 00 14 	stw     r0,20(r1)                              <== NOT EXECUTED
  rtems_rbheap_chunk *chunk = malloc(sizeof(*chunk));                 
ffc0ae20:	4b ff a6 05 	bl      ffc05424 <malloc>                      <== NOT EXECUTED
                                                                      
  if (chunk != NULL) {                                                
ffc0ae24:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc0ae28:	41 82 00 1c 	beq-    ffc0ae44 <rtems_rbheap_extend_descriptors_with_malloc+0x3c><== NOT EXECUTED
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
ffc0ae2c:	81 5f 00 0c 	lwz     r10,12(r31)                            <== 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);        
ffc0ae30:	39 1f 00 0c 	addi    r8,r31,12                              <== NOT EXECUTED
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc0ae34:	91 03 00 04 	stw     r8,4(r3)                               <== NOT EXECUTED
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
ffc0ae38:	90 7f 00 0c 	stw     r3,12(r31)                             <== NOT EXECUTED
  the_node->next        = before_node;                                
  before_node->previous = the_node;                                   
ffc0ae3c:	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;                                
ffc0ae40:	91 43 00 00 	stw     r10,0(r3)                              <== NOT EXECUTED
    rtems_rbheap_add_to_spare_descriptor_chain(control, chunk);       
  }                                                                   
}                                                                     
ffc0ae44:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
ffc0ae48:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc0ae4c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0ae50:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc0ae54:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc0ac90 <rtems_rbheap_free>: rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr) { rtems_status_code sc = RTEMS_SUCCESSFUL; if (ptr != NULL) {
ffc0ac90:	2c 04 00 00 	cmpwi   r4,0                                   
ffc0ac94:	41 82 00 f4 	beq-    ffc0ad88 <rtems_rbheap_free+0xf8>      
    _RBTree_Extract_unprotected(chunk_tree, &b->tree_node);           
  }                                                                   
}                                                                     
                                                                      
rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr)
{                                                                     
ffc0ac98:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc0ac9c:	7c 08 02 a6 	mflr    r0                                     
                                                                      
#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 };                        
ffc0aca0:	39 20 00 00 	li      r9,0                                   
    _RBTree_Extract_unprotected(chunk_tree, &b->tree_node);           
  }                                                                   
}                                                                     
                                                                      
rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr)
{                                                                     
ffc0aca4:	90 01 00 44 	stw     r0,68(r1)                              
ffc0aca8:	93 e1 00 3c 	stw     r31,60(r1)                             
RTEMS_INLINE_ROUTINE RBTree_Node *_RBTree_Find_unprotected(           
    RBTree_Control *the_rbtree,                                       
    RBTree_Node *the_node                                             
    )                                                                 
{                                                                     
  RBTree_Node* iter_node = the_rbtree->root;                          
ffc0acac:	83 e3 00 1c 	lwz     r31,28(r3)                             
ffc0acb0:	93 81 00 30 	stw     r28,48(r1)                             
ffc0acb4:	7c 7c 1b 78 	mr      r28,r3                                 
  RBTree_Node* found = NULL;                                          
  int compare_result;                                                 
  while (iter_node) {                                                 
ffc0acb8:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0acbc:	93 c1 00 38 	stw     r30,56(r1)                             
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (ptr != NULL) {                                                  
    rtems_chain_control *free_chain = &control->free_chunk_chain;     
    rtems_rbtree_control *chunk_tree = &control->chunk_tree;          
ffc0acc0:	3b c3 00 18 	addi    r30,r3,24                              
    _RBTree_Extract_unprotected(chunk_tree, &b->tree_node);           
  }                                                                   
}                                                                     
                                                                      
rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr)
{                                                                     
ffc0acc4:	93 61 00 2c 	stw     r27,44(r1)                             
ffc0acc8:	93 a1 00 34 	stw     r29,52(r1)                             
                                                                      
#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 };                        
ffc0accc:	91 21 00 08 	stw     r9,8(r1)                               
ffc0acd0:	91 21 00 0c 	stw     r9,12(r1)                              
ffc0acd4:	91 21 00 10 	stw     r9,16(r1)                              
ffc0acd8:	91 21 00 14 	stw     r9,20(r1)                              
ffc0acdc:	91 21 00 18 	stw     r9,24(r1)                              
ffc0ace0:	91 21 00 1c 	stw     r9,28(r1)                              
ffc0ace4:	91 21 00 24 	stw     r9,36(r1)                              
ffc0ace8:	90 81 00 20 	stw     r4,32(r1)                              
ffc0acec:	41 9e 01 10 	beq-    cr7,ffc0adfc <rtems_rbheap_free+0x16c> <== NEVER TAKEN
ffc0acf0:	3b a0 00 00 	li      r29,0                                  
    compare_result = the_rbtree->compare_function(the_node, iter_node);
ffc0acf4:	81 3e 00 10 	lwz     r9,16(r30)                             
ffc0acf8:	7f e4 fb 78 	mr      r4,r31                                 
ffc0acfc:	38 61 00 10 	addi    r3,r1,16                               
ffc0ad00:	7d 29 03 a6 	mtctr   r9                                     
ffc0ad04:	4e 80 04 21 	bctrl                                          
    if ( _RBTree_Is_equal( compare_result ) ) {                       
ffc0ad08:	2c 03 00 00 	cmpwi   r3,0                                   
                                                                      
RTEMS_INLINE_ROUTINE bool _RBTree_Is_greater(                         
  int compare_result                                                  
)                                                                     
{                                                                     
  return compare_result > 0;                                          
ffc0ad0c:	7c 6a fe 70 	srawi   r10,r3,31                              
ffc0ad10:	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];                                
ffc0ad14:	55 29 1f 7a 	rlwinm  r9,r9,3,29,29                          
ffc0ad18:	7d 3f 4a 14 	add     r9,r31,r9                              
  RBTree_Node* iter_node = the_rbtree->root;                          
  RBTree_Node* found = NULL;                                          
  int compare_result;                                                 
  while (iter_node) {                                                 
    compare_result = the_rbtree->compare_function(the_node, iter_node);
    if ( _RBTree_Is_equal( compare_result ) ) {                       
ffc0ad1c:	40 82 00 14 	bne-    ffc0ad30 <rtems_rbheap_free+0xa0>      
      found = iter_node;                                              
      if ( the_rbtree->is_unique )                                    
ffc0ad20:	89 5e 00 14 	lbz     r10,20(r30)                            
ffc0ad24:	7f fd fb 78 	mr      r29,r31                                
ffc0ad28:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc0ad2c:	40 9e 00 54 	bne-    cr7,ffc0ad80 <rtems_rbheap_free+0xf0>  <== ALWAYS TAKEN
        break;                                                        
    }                                                                 
                                                                      
    RBTree_Direction dir =                                            
      (RBTree_Direction) _RBTree_Is_greater( compare_result );        
    iter_node = iter_node->child[dir];                                
ffc0ad30:	83 e9 00 04 	lwz     r31,4(r9)                              
    )                                                                 
{                                                                     
  RBTree_Node* iter_node = the_rbtree->root;                          
  RBTree_Node* found = NULL;                                          
  int compare_result;                                                 
  while (iter_node) {                                                 
ffc0ad34:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0ad38:	40 9e ff bc 	bne+    cr7,ffc0acf4 <rtems_rbheap_free+0x64>  
  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) {                                         
ffc0ad3c:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
        check_and_merge(free_chain, chunk_tree, chunk, pred);         
      } else {                                                        
        sc = RTEMS_INCORRECT_STATE;                                   
      }                                                               
    } else {                                                          
      sc = RTEMS_INVALID_ID;                                          
ffc0ad40:	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) {                                         
ffc0ad44:	3b fd ff f8 	addi    r31,r29,-8                             
ffc0ad48:	41 9e 00 14 	beq-    cr7,ffc0ad5c <rtems_rbheap_free+0xcc>  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _Chain_Is_node_off_chain(                   
  const Chain_Node *node                                              
)                                                                     
{                                                                     
  return (node->next == NULL) && (node->previous == NULL);            
ffc0ad4c:	81 3d ff f8 	lwz     r9,-8(r29)                             
                                                                      
        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;                                   
ffc0ad50:	38 60 00 0e 	li      r3,14                                  
ffc0ad54:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ad58:	41 9e 00 38 	beq-    cr7,ffc0ad90 <rtems_rbheap_free+0x100> 
      sc = RTEMS_INVALID_ID;                                          
    }                                                                 
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0ad5c:	80 01 00 44 	lwz     r0,68(r1)                              
ffc0ad60:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc0ad64:	7c 08 03 a6 	mtlr    r0                                     
ffc0ad68:	83 81 00 30 	lwz     r28,48(r1)                             
ffc0ad6c:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc0ad70:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc0ad74:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc0ad78:	38 21 00 40 	addi    r1,r1,64                               
ffc0ad7c:	4e 80 00 20 	blr                                            
    compare_result = the_rbtree->compare_function(the_node, iter_node);
    if ( _RBTree_Is_equal( compare_result ) ) {                       
      found = iter_node;                                              
      if ( the_rbtree->is_unique )                                    
ffc0ad80:	7f fd fb 78 	mr      r29,r31                                
ffc0ad84:	4b ff ff b8 	b       ffc0ad3c <rtems_rbheap_free+0xac>      
  }                                                                   
}                                                                     
                                                                      
rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr)
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc0ad88:	38 60 00 00 	li      r3,0                                   
      sc = RTEMS_INVALID_ID;                                          
    }                                                                 
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0ad8c:	4e 80 00 20 	blr                                            
ffc0ad90:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc0ad94:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ad98:	40 9e ff c4 	bne+    cr7,ffc0ad5c <rtems_rbheap_free+0xcc>  <== NEVER TAKEN
static rtems_rbheap_chunk *get_next(                                  
  const rtems_rbheap_chunk *chunk,                                    
  RBTree_Direction dir                                                
)                                                                     
{                                                                     
  return rtems_rbheap_chunk_of_node(                                  
ffc0ad9c:	38 80 00 00 	li      r4,0                                   
ffc0ada0:	7f a3 eb 78 	mr      r3,r29                                 
ffc0ada4:	48 00 21 f5 	bl      ffc0cf98 <_RBTree_Next_unprotected>    
ffc0ada8:	38 80 00 01 	li      r4,1                                   
ffc0adac:	7c 7b 1b 78 	mr      r27,r3                                 
ffc0adb0:	7f a3 eb 78 	mr      r3,r29                                 
ffc0adb4:	48 00 21 e5 	bl      ffc0cf98 <_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);         
ffc0adb8:	7f c4 f3 78 	mr      r4,r30                                 
static rtems_rbheap_chunk *get_next(                                  
  const rtems_rbheap_chunk *chunk,                                    
  RBTree_Direction dir                                                
)                                                                     
{                                                                     
  return rtems_rbheap_chunk_of_node(                                  
ffc0adbc:	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);         
ffc0adc0:	7f e5 fb 78 	mr      r5,r31                                 
ffc0adc4:	7f 83 e3 78 	mr      r3,r28                                 
ffc0adc8:	4b ff fb 91 	bl      ffc0a958 <check_and_merge>             
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
ffc0adcc:	81 3c 00 00 	lwz     r9,0(r28)                              
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc0add0:	93 9f 00 04 	stw     r28,4(r31)                             
        add_to_chain(free_chain, chunk);                              
        check_and_merge(free_chain, chunk_tree, chunk, pred);         
ffc0add4:	7f 83 e3 78 	mr      r3,r28                                 
ffc0add8:	7f c4 f3 78 	mr      r4,r30                                 
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
ffc0addc:	93 fc 00 00 	stw     r31,0(r28)                             
ffc0ade0:	7f e5 fb 78 	mr      r5,r31                                 
ffc0ade4:	38 db ff f8 	addi    r6,r27,-8                              
  the_node->next        = before_node;                                
ffc0ade8:	91 3f 00 00 	stw     r9,0(r31)                              
  before_node->previous = the_node;                                   
ffc0adec:	93 e9 00 04 	stw     r31,4(r9)                              
ffc0adf0:	4b ff fb 69 	bl      ffc0a958 <check_and_merge>             
  }                                                                   
}                                                                     
                                                                      
rtems_status_code rtems_rbheap_free(rtems_rbheap_control *control, void *ptr)
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc0adf4:	38 60 00 00 	li      r3,0                                   
ffc0adf8:	4b ff ff 64 	b       ffc0ad5c <rtems_rbheap_free+0xcc>      
        check_and_merge(free_chain, chunk_tree, chunk, pred);         
      } else {                                                        
        sc = RTEMS_INCORRECT_STATE;                                   
      }                                                               
    } else {                                                          
      sc = RTEMS_INVALID_ID;                                          
ffc0adfc:	38 60 00 04 	li      r3,4                                   <== NOT EXECUTED
ffc0ae00:	4b ff ff 5c 	b       ffc0ad5c <rtems_rbheap_free+0xcc>      <== NOT EXECUTED
                                                                      

ffc0a9dc <rtems_rbheap_initialize>: void *handler_arg ) { rtems_status_code sc = RTEMS_SUCCESSFUL; if (alignment > 0) {
ffc0a9dc:	2c 06 00 00 	cmpwi   r6,0                                   
ffc0a9e0:	40 82 00 0c 	bne-    ffc0a9ec <rtems_rbheap_initialize+0x10>
      }                                                               
    } else {                                                          
      sc = RTEMS_INVALID_ADDRESS;                                     
    }                                                                 
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
ffc0a9e4:	38 60 00 0a 	li      r3,10                                  
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0a9e8:	4e 80 00 20 	blr                                            
                                                                      
#include <stdlib.h>                                                   
                                                                      
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)       
{                                                                     
  uintptr_t excess = value % alignment;                               
ffc0a9ec:	7d 24 33 96 	divwu   r9,r4,r6                               
  uintptr_t area_size,                                                
  uintptr_t alignment,                                                
  rtems_rbheap_extend_descriptors extend_descriptors,                 
  void *handler_arg                                                   
)                                                                     
{                                                                     
ffc0a9f0:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0a9f4:	7c 08 02 a6 	mflr    r0                                     
ffc0a9f8:	93 e1 00 14 	stw     r31,20(r1)                             
ffc0a9fc:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0aa00:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc0aa04:	93 c1 00 10 	stw     r30,16(r1)                             
                                                                      
#include <stdlib.h>                                                   
                                                                      
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)       
{                                                                     
  uintptr_t excess = value % alignment;                               
ffc0aa08:	7d 29 31 d6 	mullw   r9,r9,r6                               
ffc0aa0c:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
  if (excess > 0) {                                                   
ffc0aa10:	7d 49 20 51 	subf.   r10,r9,r4                              
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
                                                                      
  if (alignment > 0) {                                                
    uintptr_t begin = (uintptr_t) area_begin;                         
    uintptr_t end = begin + area_size;                                
ffc0aa14:	7c a5 22 14 	add     r5,r5,r4                               
                                                                      
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)       
{                                                                     
  uintptr_t excess = value % alignment;                               
                                                                      
  if (excess > 0) {                                                   
ffc0aa18:	41 82 00 f0 	beq-    ffc0ab08 <rtems_rbheap_initialize+0x12c>
    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) {
ffc0aa1c:	7f 84 28 40 	cmplw   cr7,r4,r5                              
        insert_into_tree(chunk_tree, first);                          
      } else {                                                        
        sc = RTEMS_NO_MEMORY;                                         
      }                                                               
    } else {                                                          
      sc = RTEMS_INVALID_ADDRESS;                                     
ffc0aa20:	38 60 00 09 	li      r3,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) {
ffc0aa24:	41 9c 00 20 	blt-    cr7,ffc0aa44 <rtems_rbheap_initialize+0x68>
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc0aa28:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0aa2c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0aa30:	7c 08 03 a6 	mtlr    r0                                     
ffc0aa34:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0aa38:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0aa3c:	38 21 00 18 	addi    r1,r1,24                               
ffc0aa40:	4e 80 00 20 	blr                                            
static uintptr_t align_up(uintptr_t alignment, uintptr_t value)       
{                                                                     
  uintptr_t excess = value % alignment;                               
                                                                      
  if (excess > 0) {                                                   
    value += alignment - excess;                                      
ffc0aa44:	7f c6 22 14 	add     r30,r6,r4                              
ffc0aa48:	7f ca f0 50 	subf    r30,r10,r30                            
    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) {
ffc0aa4c:	7f 84 f0 40 	cmplw   cr7,r4,r30                             
ffc0aa50:	41 9d ff d8 	bgt+    cr7,ffc0aa28 <rtems_rbheap_initialize+0x4c><== NEVER TAKEN
  return value;                                                       
}                                                                     
                                                                      
static uintptr_t align_down(uintptr_t alignment, uintptr_t value)     
{                                                                     
  uintptr_t excess = value % alignment;                               
ffc0aa54:	7c a5 33 96 	divwu   r5,r5,r6                               
                                                                      
  return value - excess;                                              
ffc0aa58:	7f a5 31 d6 	mullw   r29,r5,r6                              
    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) {
ffc0aa5c:	7f 9d f0 40 	cmplw   cr7,r29,r30                            
        insert_into_tree(chunk_tree, first);                          
      } else {                                                        
        sc = RTEMS_NO_MEMORY;                                         
      }                                                               
    } else {                                                          
      sc = RTEMS_INVALID_ADDRESS;                                     
ffc0aa60:	38 60 00 09 	li      r3,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) {
ffc0aa64:	40 9d ff c4 	ble+    cr7,ffc0aa28 <rtems_rbheap_initialize+0x4c>
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc0aa68:	39 20 00 00 	li      r9,0                                   
  tail->previous = head;                                              
ffc0aa6c:	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 );                        
ffc0aa70:	38 9f 00 04 	addi    r4,r31,4                               
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc0aa74:	91 3f 00 04 	stw     r9,4(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 );                        
ffc0aa78:	39 5f 00 0c 	addi    r10,r31,12                             
ffc0aa7c:	38 bf 00 10 	addi    r5,r31,16                              
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc0aa80:	91 3f 00 10 	stw     r9,16(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);                                     
ffc0aa84:	7f e3 fb 78 	mr      r3,r31                                 
    RBTree_Control          *the_rbtree,                              
    RBTree_Compare_function  compare_function,                        
    bool                     is_unique                                
    )                                                                 
{                                                                     
  the_rbtree->permanent_null   = NULL;                                
ffc0aa88:	91 3f 00 18 	stw     r9,24(r31)                             
  the_rbtree->root             = NULL;                                
ffc0aa8c:	91 3f 00 1c 	stw     r9,28(r31)                             
  the_rbtree->first[0]         = NULL;                                
ffc0aa90:	91 3f 00 20 	stw     r9,32(r31)                             
  the_rbtree->first[1]         = NULL;                                
ffc0aa94:	91 3f 00 24 	stw     r9,36(r31)                             
  the_rbtree->compare_function = compare_function;                    
ffc0aa98:	3d 20 ff c1 	lis     r9,-63                                 
ffc0aa9c:	39 29 a8 b8 	addi    r9,r9,-22344                           
ffc0aaa0:	91 3f 00 28 	stw     r9,40(r31)                             
  the_rbtree->is_unique        = is_unique;                           
ffc0aaa4:	39 20 00 01 	li      r9,1                                   
ffc0aaa8:	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;                                                  
ffc0aaac:	90 9f 00 00 	stw     r4,0(r31)                              
ffc0aab0:	90 bf 00 0c 	stw     r5,12(r31)                             
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc0aab4:	91 5f 00 14 	stw     r10,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;                                 
ffc0aab8:	90 df 00 30 	stw     r6,48(r31)                             
      control->handler_arg = handler_arg;                             
ffc0aabc:	91 1f 00 38 	stw     r8,56(r31)                             
      control->extend_descriptors = extend_descriptors;               
ffc0aac0:	90 ff 00 34 	stw     r7,52(r31)                             
                                                                      
      first = get_chunk(control);                                     
ffc0aac4:	4b ff fe 05 	bl      ffc0a8c8 <get_chunk>                   
      if (first != NULL) {                                            
ffc0aac8:	7c 69 1b 79 	mr.     r9,r3                                  
        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;                                         
ffc0aacc:	38 60 00 1a 	li      r3,26                                  
      control->alignment = alignment;                                 
      control->handler_arg = handler_arg;                             
      control->extend_descriptors = extend_descriptors;               
                                                                      
      first = get_chunk(control);                                     
      if (first != NULL) {                                            
ffc0aad0:	41 a2 ff 58 	beq-    ffc0aa28 <rtems_rbheap_initialize+0x4c>
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
  before_node           = after_node->next;                           
ffc0aad4:	81 5f 00 00 	lwz     r10,0(r31)                             
        first->begin = aligned_begin;                                 
        first->size = aligned_end - aligned_begin;                    
ffc0aad8:	7f be e8 50 	subf    r29,r30,r29                            
      control->handler_arg = handler_arg;                             
      control->extend_descriptors = extend_descriptors;               
                                                                      
      first = get_chunk(control);                                     
      if (first != NULL) {                                            
        first->begin = aligned_begin;                                 
ffc0aadc:	93 c9 00 18 	stw     r30,24(r9)                             
static void insert_into_tree(                                         
  rtems_rbtree_control *tree,                                         
  rtems_rbheap_chunk *chunk                                           
)                                                                     
{                                                                     
  _RBTree_Insert_unprotected(tree, &chunk->tree_node);                
ffc0aae0:	38 7f 00 18 	addi    r3,r31,24                              
ffc0aae4:	38 89 00 08 	addi    r4,r9,8                                
      control->extend_descriptors = extend_descriptors;               
                                                                      
      first = get_chunk(control);                                     
      if (first != NULL) {                                            
        first->begin = aligned_begin;                                 
        first->size = aligned_end - aligned_begin;                    
ffc0aae8:	93 a9 00 1c 	stw     r29,28(r9)                             
  Chain_Node *the_node                                                
)                                                                     
{                                                                     
  Chain_Node *before_node;                                            
                                                                      
  the_node->previous    = after_node;                                 
ffc0aaec:	93 e9 00 04 	stw     r31,4(r9)                              
  before_node           = after_node->next;                           
  after_node->next      = the_node;                                   
ffc0aaf0:	91 3f 00 00 	stw     r9,0(r31)                              
  the_node->next        = before_node;                                
  before_node->previous = the_node;                                   
ffc0aaf4:	91 2a 00 04 	stw     r9,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;                                
ffc0aaf8:	91 49 00 00 	stw     r10,0(r9)                              
static void insert_into_tree(                                         
  rtems_rbtree_control *tree,                                         
  rtems_rbheap_chunk *chunk                                           
)                                                                     
{                                                                     
  _RBTree_Insert_unprotected(tree, &chunk->tree_node);                
ffc0aafc:	48 00 20 85 	bl      ffc0cb80 <_RBTree_Insert_unprotected>  
  uintptr_t alignment,                                                
  rtems_rbheap_extend_descriptors extend_descriptors,                 
  void *handler_arg                                                   
)                                                                     
{                                                                     
  rtems_status_code sc = RTEMS_SUCCESSFUL;                            
ffc0ab00:	38 60 00 00 	li      r3,0                                   
ffc0ab04:	4b ff ff 24 	b       ffc0aa28 <rtems_rbheap_initialize+0x4c>
  return value;                                                       
}                                                                     
                                                                      
static uintptr_t align_down(uintptr_t alignment, uintptr_t value)     
{                                                                     
  uintptr_t excess = value % alignment;                               
ffc0ab08:	7f a5 33 96 	divwu   r29,r5,r6                              
    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) {
ffc0ab0c:	7f 84 28 40 	cmplw   cr7,r4,r5                              
                                                                      
static uintptr_t align_down(uintptr_t alignment, uintptr_t value)     
{                                                                     
  uintptr_t excess = value % alignment;                               
                                                                      
  return value - excess;                                              
ffc0ab10:	7f bd 31 d6 	mullw   r29,r29,r6                             
    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) {
ffc0ab14:	41 9c 00 0c 	blt-    cr7,ffc0ab20 <rtems_rbheap_initialize+0x144>
        insert_into_tree(chunk_tree, first);                          
      } else {                                                        
        sc = RTEMS_NO_MEMORY;                                         
      }                                                               
    } else {                                                          
      sc = RTEMS_INVALID_ADDRESS;                                     
ffc0ab18:	38 60 00 09 	li      r3,9                                   
ffc0ab1c:	4b ff ff 0c 	b       ffc0aa28 <rtems_rbheap_initialize+0x4c>
    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) {
ffc0ab20:	7c 9e 23 78 	mr      r30,r4                                 
ffc0ab24:	4b ff ff 38 	b       ffc0aa5c <rtems_rbheap_initialize+0x80>
                                                                      

ffc2050c <rtems_rfs_bitmap_create_search>: int rtems_rfs_bitmap_create_search (rtems_rfs_bitmap_control* control) {
ffc2050c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc20510:	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);                     
ffc20514:	38 81 00 08 	addi    r4,r1,8                                
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_bitmap_create_search (rtems_rfs_bitmap_control* control)    
{                                                                     
ffc20518:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc2051c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc20520:	90 01 00 24 	stw     r0,36(r1)                              
ffc20524:	93 c1 00 18 	stw     r30,24(r1)                             
  rtems_rfs_bitmap_map map;                                           
  size_t               size;                                          
  rtems_rfs_bitmap_bit bit;                                           
  int                  rc;                                            
                                                                      
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
ffc20528:	4b ff f7 91 	bl      ffc1fcb8 <rtems_rfs_bitmap_load_map>   
  if (rc > 0)                                                         
ffc2052c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc20530:	40 81 00 1c 	ble-    ffc2054c <rtems_rfs_bitmap_create_search+0x40>
      bit++;                                                          
    map++;                                                            
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc20534:	80 01 00 24 	lwz     r0,36(r1)                              
ffc20538:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc2053c:	7c 08 03 a6 	mtlr    r0                                     
ffc20540:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc20544:	38 21 00 20 	addi    r1,r1,32                               
ffc20548:	4e 80 00 20 	blr                                            
  if (rc > 0)                                                         
    return rc;                                                        
                                                                      
  control->free = 0;                                                  
  search_map = control->search_bits;                                  
  size = control->size;                                               
ffc2054c:	80 ff 00 0c 	lwz     r7,12(r31)                             
                                                                      
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
  if (rc > 0)                                                         
    return rc;                                                        
                                                                      
  control->free = 0;                                                  
ffc20550:	39 20 00 00 	li      r9,0                                   
  search_map = control->search_bits;                                  
ffc20554:	81 7f 00 14 	lwz     r11,20(r31)                            
  size = control->size;                                               
  bit = 0;                                                            
ffc20558:	38 80 00 00 	li      r4,0                                   
                                                                      
  *search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                       
  while (size)                                                        
ffc2055c:	2f 87 00 00 	cmpwi   cr7,r7,0                               
                                                                      
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
  if (rc > 0)                                                         
    return rc;                                                        
                                                                      
  control->free = 0;                                                  
ffc20560:	91 3f 00 10 	stw     r9,16(r31)                             
  search_map = control->search_bits;                                  
  size = control->size;                                               
  bit = 0;                                                            
                                                                      
  *search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                       
ffc20564:	39 20 ff ff 	li      r9,-1                                  
ffc20568:	91 2b 00 00 	stw     r9,0(r11)                              
                                                                      
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);                 
ffc2056c:	38 00 ff ff 	li      r0,-1                                  
 */                                                                   
static bool                                                           
rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target,               
                       rtems_rfs_bitmap_bit     bit)                  
{                                                                     
  return RTEMS_RFS_BITMAP_TEST_BIT (target, bit);                     
ffc20570:	38 c0 00 01 	li      r6,1                                   
ffc20574:	80 a1 00 08 	lwz     r5,8(r1)                               
  search_map = control->search_bits;                                  
  size = control->size;                                               
  bit = 0;                                                            
                                                                      
  *search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                       
  while (size)                                                        
ffc20578:	41 9e 00 78 	beq-    cr7,ffc205f0 <rtems_rfs_bitmap_create_search+0xe4><== NEVER TAKEN
  {                                                                   
    rtems_rfs_bitmap_element bits;                                    
    int                      available;                               
    if (size < rtems_rfs_bitmap_element_bits ())                      
ffc2057c:	2b 87 00 1f 	cmplwi  cr7,r7,31                              
ffc20580:	41 9d 00 8c 	bgt-    cr7,ffc2060c <rtems_rfs_bitmap_create_search+0x100>
{                                                                     
  /*                                                                  
   * Use the normal bit operators because we do not change the bits just merge
   * the 2 separate parts.                                            
   */                                                                 
  bits1 &= mask;                                                      
ffc20584:	81 25 00 00 	lwz     r9,0(r5)                               
                                                                      
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);                 
ffc20588:	21 07 00 20 	subfic  r8,r7,32                               
ffc2058c:	7c 08 44 30 	srw     r8,r0,r8                               
{                                                                     
  /*                                                                  
   * Use the normal bit operators because we do not change the bits just merge
   * the 2 separate parts.                                            
   */                                                                 
  bits1 &= mask;                                                      
ffc20590:	7d 08 48 38 	and     r8,r8,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;                                               
ffc20594:	7c e3 3b 78 	mr      r3,r7                                  
ffc20598:	7c e9 3b 78 	mr      r9,r7                                  
    {                                                                 
      bits      = *map;                                               
      available = rtems_rfs_bitmap_element_bits ();                   
    }                                                                 
                                                                      
    if (rtems_rfs_bitmap_match (bits, RTEMS_RFS_BITMAP_ELEMENT_SET))  
ffc2059c:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc205a0:	41 9e 00 34 	beq-    cr7,ffc205d4 <rtems_rfs_bitmap_create_search+0xc8>
ffc205a4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc205a8:	7d 29 03 a6 	mtctr   r9                                     
ffc205ac:	39 20 00 00 	li      r9,0                                   
ffc205b0:	40 9d 00 7c 	ble-    cr7,ffc2062c <rtems_rfs_bitmap_create_search+0x120><== NEVER TAKEN
 */                                                                   
static bool                                                           
rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target,               
                       rtems_rfs_bitmap_bit     bit)                  
{                                                                     
  return RTEMS_RFS_BITMAP_TEST_BIT (target, bit);                     
ffc205b4:	7c ca 48 30 	slw     r10,r6,r9                              
      rtems_rfs_bitmap_set (*search_map, bit);                        
    else                                                              
    {                                                                 
      int b;                                                          
      for (b = 0; b < available; b++)                                 
        if (!rtems_rfs_bitmap_test (bits, b))                         
ffc205b8:	7d 5e 40 39 	and.    r30,r10,r8                             
    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++)                                 
ffc205bc:	39 29 00 01 	addi    r9,r9,1                                
        if (!rtems_rfs_bitmap_test (bits, b))                         
ffc205c0:	41 82 00 10 	beq-    ffc205d0 <rtems_rfs_bitmap_create_search+0xc4>
          control->free++;                                            
ffc205c4:	81 5f 00 10 	lwz     r10,16(r31)                            
ffc205c8:	39 4a 00 01 	addi    r10,r10,1                              
ffc205cc:	91 5f 00 10 	stw     r10,16(r31)                            
    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++)                                 
ffc205d0:	42 00 ff e4 	bdnz+   ffc205b4 <rtems_rfs_bitmap_create_search+0xa8>
          control->free++;                                            
    }                                                                 
                                                                      
    size -= available;                                                
                                                                      
    if (bit == rtems_rfs_bitmap_element_bits ())                      
ffc205d4:	2f 84 00 20 	cmpwi   cr7,r4,32                              
      for (b = 0; b < available; b++)                                 
        if (!rtems_rfs_bitmap_test (bits, b))                         
          control->free++;                                            
    }                                                                 
                                                                      
    size -= available;                                                
ffc205d8:	7c e3 38 50 	subf    r7,r3,r7                               
                                                                      
    if (bit == rtems_rfs_bitmap_element_bits ())                      
ffc205dc:	41 9e 00 40 	beq-    cr7,ffc2061c <rtems_rfs_bitmap_create_search+0x110>
      bit = 0;                                                        
      search_map++;                                                   
      *search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                   
    }                                                                 
    else                                                              
      bit++;                                                          
ffc205e0:	38 84 00 01 	addi    r4,r4,1                                
  search_map = control->search_bits;                                  
  size = control->size;                                               
  bit = 0;                                                            
                                                                      
  *search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                       
  while (size)                                                        
ffc205e4:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc205e8:	38 a5 00 04 	addi    r5,r5,4                                
ffc205ec:	40 9e ff 90 	bne+    cr7,ffc2057c <rtems_rfs_bitmap_create_search+0x70>
      bit++;                                                          
    map++;                                                            
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc205f0:	80 01 00 24 	lwz     r0,36(r1)                              
    else                                                              
      bit++;                                                          
    map++;                                                            
  }                                                                   
                                                                      
  return 0;                                                           
ffc205f4:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc205f8:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc205fc:	7c 08 03 a6 	mtlr    r0                                     
ffc20600:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc20604:	38 21 00 20 	addi    r1,r1,32                               
ffc20608:	4e 80 00 20 	blr                                            
                                     rtems_rfs_bitmap_mask_section (0, size));
      available = size;                                               
    }                                                                 
    else                                                              
    {                                                                 
      bits      = *map;                                               
ffc2060c:	81 05 00 00 	lwz     r8,0(r5)                               
ffc20610:	38 60 00 20 	li      r3,32                                  
      available = rtems_rfs_bitmap_element_bits ();                   
ffc20614:	39 20 00 20 	li      r9,32                                  
ffc20618:	4b ff ff 84 	b       ffc2059c <rtems_rfs_bitmap_create_search+0x90>
                                                                      
    if (bit == rtems_rfs_bitmap_element_bits ())                      
    {                                                                 
      bit = 0;                                                        
      search_map++;                                                   
      *search_map = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                   
ffc2061c:	90 0b 00 04 	stw     r0,4(r11)                              
                                                                      
    size -= available;                                                
                                                                      
    if (bit == rtems_rfs_bitmap_element_bits ())                      
    {                                                                 
      bit = 0;                                                        
ffc20620:	38 80 00 00 	li      r4,0                                   
      search_map++;                                                   
ffc20624:	39 6b 00 04 	addi    r11,r11,4                              
ffc20628:	4b ff ff bc 	b       ffc205e4 <rtems_rfs_bitmap_create_search+0xd8>
ffc2062c:	39 40 00 01 	li      r10,1                                  <== NOT EXECUTED
ffc20630:	7d 49 03 a6 	mtctr   r10                                    <== NOT EXECUTED
ffc20634:	4b ff ff 80 	b       ffc205b4 <rtems_rfs_bitmap_create_search+0xa8><== NOT EXECUTED
                                                                      

ffc1fcb8 <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) {
ffc1fcb8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1fcbc:	7c 08 02 a6 	mflr    r0                                     
ffc1fcc0:	90 01 00 14 	stw     r0,20(r1)                              
  int rc;                                                             
                                                                      
  if (!control->buffer)                                               
ffc1fcc4:	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)             
{                                                                     
ffc1fcc8:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc1fccc:	7c 7f 1b 78 	mr      r31,r3                                 
  int rc;                                                             
                                                                      
  if (!control->buffer)                                               
ffc1fcd0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
 * @return int The error number (errno). No error if 0.               
 */                                                                   
static int                                                            
rtems_rfs_bitmap_load_map (rtems_rfs_bitmap_control* control,         
                           rtems_rfs_bitmap_map*     map)             
{                                                                     
ffc1fcd4:	93 c1 00 08 	stw     r30,8(r1)                              
  int rc;                                                             
                                                                      
  if (!control->buffer)                                               
    return ENXIO;                                                     
ffc1fcd8:	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)                                               
ffc1fcdc:	41 9e 00 3c 	beq-    cr7,ffc1fd18 <rtems_rfs_bitmap_load_map+0x60>
    return ENXIO;                                                     
                                                                      
  *map = NULL;                                                        
ffc1fce0:	39 20 00 00 	li      r9,0                                   
                                                                      
  rc = rtems_rfs_buffer_handle_request (control->fs,                  
ffc1fce4:	80 bf 00 08 	lwz     r5,8(r31)                              
  int rc;                                                             
                                                                      
  if (!control->buffer)                                               
    return ENXIO;                                                     
                                                                      
  *map = NULL;                                                        
ffc1fce8:	91 24 00 00 	stw     r9,0(r4)                               
ffc1fcec:	7c 9e 23 78 	mr      r30,r4                                 
                                                                      
  rc = rtems_rfs_buffer_handle_request (control->fs,                  
ffc1fcf0:	38 c0 00 01 	li      r6,1                                   
ffc1fcf4:	80 7f 00 04 	lwz     r3,4(r31)                              
ffc1fcf8:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc1fcfc:	48 00 22 1d 	bl      ffc21f18 <rtems_rfs_buffer_handle_request>
                                        control->buffer,              
                                        control->block,               
                                        true);                        
  if (rc)                                                             
ffc1fd00:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1fd04:	40 82 00 14 	bne-    ffc1fd18 <rtems_rfs_bitmap_load_map+0x60><== NEVER TAKEN
    return rc;                                                        
                                                                      
  *map = rtems_rfs_buffer_data (control->buffer);                     
ffc1fd08:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc1fd0c:	81 29 00 08 	lwz     r9,8(r9)                               
ffc1fd10:	81 29 00 1c 	lwz     r9,28(r9)                              
ffc1fd14:	91 3e 00 00 	stw     r9,0(r30)                              
  return 0;                                                           
}                                                                     
ffc1fd18:	80 01 00 14 	lwz     r0,20(r1)                              
ffc1fd1c:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc1fd20:	7c 08 03 a6 	mtlr    r0                                     
ffc1fd24:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc1fd28:	38 21 00 10 	addi    r1,r1,16                               
ffc1fd2c:	4e 80 00 20 	blr                                            
                                                                      

ffc203e8 <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) {
ffc203e8:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc203ec:	7d 80 00 26 	mfcr    r12                                    
ffc203f0:	7c 08 02 a6 	mflr    r0                                     
  int                  rc = 0;                                        
                                                                      
  /*                                                                  
   * By default we assume the allocation failed.                      
   */                                                                 
  *allocated = false;                                                 
ffc203f4:	39 20 00 00 	li      r9,0                                   
ffc203f8:	2d 84 00 00 	cmpwi   cr3,r4,0                               
int                                                                   
rtems_rfs_bitmap_map_alloc (rtems_rfs_bitmap_control* control,        
                            rtems_rfs_bitmap_bit      seed,           
                            bool*                     allocated,      
                            rtems_rfs_bitmap_bit*     bit)            
{                                                                     
ffc203fc:	93 61 00 0c 	stw     r27,12(r1)                             
ffc20400:	7c db 33 78 	mr      r27,r6                                 
ffc20404:	93 81 00 10 	stw     r28,16(r1)                             
ffc20408:	7c bc 2b 78 	mr      r28,r5                                 
ffc2040c:	93 a1 00 14 	stw     r29,20(r1)                             
ffc20410:	7c 7d 1b 78 	mr      r29,r3                                 
ffc20414:	93 c1 00 18 	stw     r30,24(r1)                             
   * 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;                                                  
ffc20418:	7c 9e 23 78 	mr      r30,r4                                 
int                                                                   
rtems_rfs_bitmap_map_alloc (rtems_rfs_bitmap_control* control,        
                            rtems_rfs_bitmap_bit      seed,           
                            bool*                     allocated,      
                            rtems_rfs_bitmap_bit*     bit)            
{                                                                     
ffc2041c:	93 e1 00 1c 	stw     r31,28(r1)                             
   * 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;                                                  
ffc20420:	7c 9f 23 78 	mr      r31,r4                                 
int                                                                   
rtems_rfs_bitmap_map_alloc (rtems_rfs_bitmap_control* control,        
                            rtems_rfs_bitmap_bit      seed,           
                            bool*                     allocated,      
                            rtems_rfs_bitmap_bit*     bit)            
{                                                                     
ffc20424:	90 01 00 24 	stw     r0,36(r1)                              
ffc20428:	91 81 00 08 	stw     r12,8(r1)                              
  int                  rc = 0;                                        
                                                                      
  /*                                                                  
   * By default we assume the allocation failed.                      
   */                                                                 
  *allocated = false;                                                 
ffc2042c:	99 25 00 00 	stb     r9,0(r5)                               
   * 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))          
ffc20430:	41 8c 00 64 	blt-    cr3,ffc20494 <rtems_rfs_bitmap_map_alloc+0xac><== NEVER TAKEN
ffc20434:	81 3d 00 0c 	lwz     r9,12(r29)                             
ffc20438:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
ffc2043c:	40 9c 00 58 	bge-    cr7,ffc20494 <rtems_rfs_bitmap_map_alloc+0xac>
    /*                                                                
     * Search up first so bits allocated in succession are grouped together.
     */                                                               
    if (upper_seed < control->size)                                   
    {                                                                 
      *bit = upper_seed;                                              
ffc20440:	93 fb 00 00 	stw     r31,0(r27)                             
      rc = rtems_rfs_search_map_for_clear_bit (control, bit, allocated,
ffc20444:	7f a3 eb 78 	mr      r3,r29                                 
ffc20448:	7f 64 db 78 	mr      r4,r27                                 
ffc2044c:	7f 85 e3 78 	mr      r5,r28                                 
ffc20450:	38 c0 00 01 	li      r6,1                                   
ffc20454:	4b ff f8 dd 	bl      ffc1fd30 <rtems_rfs_search_map_for_clear_bit.constprop.1>
                                               window, 1);            
      if ((rc > 0) || *allocated)                                     
ffc20458:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2045c:	41 9d 00 80 	bgt-    cr7,ffc204dc <rtems_rfs_bitmap_map_alloc+0xf4><== NEVER TAKEN
ffc20460:	89 3c 00 00 	lbz     r9,0(r28)                              
ffc20464:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc20468:	40 9e 00 74 	bne-    cr7,ffc204dc <rtems_rfs_bitmap_map_alloc+0xf4>
        break;                                                        
    }                                                                 
                                                                      
    if (lower_seed >= 0)                                              
ffc2046c:	2e 1e 00 00 	cmpwi   cr4,r30,0                              
ffc20470:	40 90 00 40 	bge-    cr4,ffc204b0 <rtems_rfs_bitmap_map_alloc+0xc8>
                                                                      
    /*                                                                
     * 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)                                   
ffc20474:	81 3d 00 0c 	lwz     r9,12(r29)                             
ffc20478:	7f 89 f8 40 	cmplw   cr7,r9,r31                             
ffc2047c:	40 9d 00 0c 	ble-    cr7,ffc20488 <rtems_rfs_bitmap_map_alloc+0xa0><== NEVER TAKEN
ffc20480:	3b ff 08 00 	addi    r31,r31,2048                           
ffc20484:	2d 9f 00 00 	cmpwi   cr3,r31,0                              
      upper_seed += window;                                           
    if (lower_seed >= 0)                                              
ffc20488:	41 b0 ff a8 	blt-    cr4,ffc20430 <rtems_rfs_bitmap_map_alloc+0x48>
      lower_seed -= window;                                           
ffc2048c:	3b de f8 00 	addi    r30,r30,-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))          
ffc20490:	40 8c ff a4 	bge+    cr3,ffc20434 <rtems_rfs_bitmap_map_alloc+0x4c><== ALWAYS TAKEN
         || ((lower_seed >= 0) && (lower_seed < control->size)))      
ffc20494:	2e 1e 00 00 	cmpwi   cr4,r30,0                              
ffc20498:	41 90 00 44 	blt-    cr4,ffc204dc <rtems_rfs_bitmap_map_alloc+0xf4>
ffc2049c:	81 3d 00 0c 	lwz     r9,12(r29)                             
ffc204a0:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc204a4:	40 9c 00 38 	bge-    cr7,ffc204dc <rtems_rfs_bitmap_map_alloc+0xf4>
  {                                                                   
    /*                                                                
     * Search up first so bits allocated in succession are grouped together.
     */                                                               
    if (upper_seed < control->size)                                   
ffc204a8:	7f 89 f8 40 	cmplw   cr7,r9,r31                             
ffc204ac:	41 bd ff 94 	bgt-    cr7,ffc20440 <rtems_rfs_bitmap_map_alloc+0x58><== NEVER TAKEN
        break;                                                        
    }                                                                 
                                                                      
    if (lower_seed >= 0)                                              
    {                                                                 
      *bit = lower_seed;                                              
ffc204b0:	93 db 00 00 	stw     r30,0(r27)                             
      rc = rtems_rfs_search_map_for_clear_bit (control, bit, allocated,
ffc204b4:	7f a3 eb 78 	mr      r3,r29                                 
ffc204b8:	7f 64 db 78 	mr      r4,r27                                 
ffc204bc:	7f 85 e3 78 	mr      r5,r28                                 
ffc204c0:	38 c0 ff ff 	li      r6,-1                                  
ffc204c4:	4b ff f8 6d 	bl      ffc1fd30 <rtems_rfs_search_map_for_clear_bit.constprop.1>
                                               window, -1);           
      if ((rc > 0) || *allocated)                                     
ffc204c8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc204cc:	41 9d 00 10 	bgt-    cr7,ffc204dc <rtems_rfs_bitmap_map_alloc+0xf4><== NEVER TAKEN
ffc204d0:	89 3c 00 00 	lbz     r9,0(r28)                              
ffc204d4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc204d8:	41 9e ff 9c 	beq+    cr7,ffc20474 <rtems_rfs_bitmap_map_alloc+0x8c>
    if (lower_seed >= 0)                                              
      lower_seed -= window;                                           
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc204dc:	80 01 00 24 	lwz     r0,36(r1)                              
ffc204e0:	38 60 00 00 	li      r3,0                                   
ffc204e4:	81 81 00 08 	lwz     r12,8(r1)                              
ffc204e8:	7c 08 03 a6 	mtlr    r0                                     
ffc204ec:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc204f0:	83 81 00 10 	lwz     r28,16(r1)                             
ffc204f4:	7d 81 81 20 	mtcrf   24,r12                                 
ffc204f8:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc204fc:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc20500:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc20504:	38 21 00 20 	addi    r1,r1,32                               
ffc20508:	4e 80 00 20 	blr                                            
                                                                      

ffc200cc <rtems_rfs_bitmap_map_clear>: } int rtems_rfs_bitmap_map_clear (rtems_rfs_bitmap_control* control, rtems_rfs_bitmap_bit bit) {
ffc200cc:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc200d0:	7c 08 02 a6 	mflr    r0                                     
ffc200d4:	93 c1 00 18 	stw     r30,24(r1)                             
ffc200d8:	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);                     
ffc200dc:	38 81 00 08 	addi    r4,r1,8                                
}                                                                     
                                                                      
int                                                                   
rtems_rfs_bitmap_map_clear (rtems_rfs_bitmap_control* control,        
                            rtems_rfs_bitmap_bit      bit)            
{                                                                     
ffc200e0:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc200e4:	7c 7f 1b 78 	mr      r31,r3                                 
ffc200e8:	90 01 00 24 	stw     r0,36(r1)                              
  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);                     
ffc200ec:	4b ff fb cd 	bl      ffc1fcb8 <rtems_rfs_bitmap_load_map>   
  if (rc > 0)                                                         
ffc200f0:	2c 03 00 00 	cmpwi   r3,0                                   
ffc200f4:	40 81 00 1c 	ble-    ffc20110 <rtems_rfs_bitmap_map_clear+0x44>
  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);                      
  control->free++;                                                    
  return 0;                                                           
}                                                                     
ffc200f8:	80 01 00 24 	lwz     r0,36(r1)                              
ffc200fc:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc20100:	7c 08 03 a6 	mtlr    r0                                     
ffc20104:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc20108:	38 21 00 20 	addi    r1,r1,32                               
ffc2010c:	4e 80 00 20 	blr                                            
  int                  offset;                                        
  int                  rc;                                            
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
  if (rc > 0)                                                         
    return rc;                                                        
  if (bit >= control->size)                                           
ffc20110:	81 3f 00 0c 	lwz     r9,12(r31)                             
    return EINVAL;                                                    
ffc20114:	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)                                           
ffc20118:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc2011c:	40 9c ff dc 	bge+    cr7,ffc200f8 <rtems_rfs_bitmap_map_clear+0x2c><== 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);
ffc20120:	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);               
ffc20124:	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);
ffc20128:	55 07 10 3a 	rlwinm  r7,r8,2,0,29                           
  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);                      
  control->free++;                                                    
  return 0;                                                           
}                                                                     
ffc2012c:	80 01 00 24 	lwz     r0,36(r1)                              
 */                                                                   
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);                  
ffc20130:	7d 46 38 2e 	lwzx    r10,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);
ffc20134:	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);              
ffc20138:	57 c5 06 fe 	clrlwi  r5,r30,27                              
  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);                      
  control->free++;                                                    
  return 0;                                                           
}                                                                     
ffc2013c:	7c 08 03 a6 	mtlr    r0                                     
  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);
ffc20140:	7d 25 28 30 	slw     r5,r9,r5                               
 */                                                                   
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);                  
ffc20144:	7d 45 2b 78 	or      r5,r10,r5                              
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
  if (rc > 0)                                                         
    return rc;                                                        
  if (bit >= control->size)                                           
    return EINVAL;                                                    
  search_map        = control->search_bits;                           
ffc20148:	81 5f 00 14 	lwz     r10,20(r31)                            
  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);               
ffc2014c:	7f de 56 70 	srawi   r30,r30,10                             
  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);
ffc20150:	7c a6 39 2e 	stwx    r5,r6,r7                               
  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);
ffc20154:	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);                  
ffc20158:	7c aa f0 2e 	lwzx    r5,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);               
ffc2015c:	55 08 06 fe 	clrlwi  r8,r8,27                               
  search_map[index] = rtems_rfs_bitmap_clear (search_map[index], 1 << offset);
  rtems_rfs_buffer_mark_dirty (control->buffer);                      
  control->free++;                                                    
ffc20160:	80 df 00 10 	lwz     r6,16(r31)                             
  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);
ffc20164:	7d 28 40 30 	slw     r8,r9,r8                               
  rtems_rfs_buffer_mark_dirty (control->buffer);                      
ffc20168:	80 ff 00 00 	lwz     r7,0(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);                  
ffc2016c:	7c a5 43 78 	or      r5,r5,r8                               
  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);                      
  control->free++;                                                    
ffc20170:	38 c6 00 01 	addi    r6,r6,1                                
  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);
ffc20174:	7c aa f1 2e 	stwx    r5,r10,r30                             
  rtems_rfs_buffer_mark_dirty (control->buffer);                      
  control->free++;                                                    
  return 0;                                                           
ffc20178:	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);                      
ffc2017c:	99 27 00 00 	stb     r9,0(r7)                               
  control->free++;                                                    
  return 0;                                                           
}                                                                     
ffc20180:	83 c1 00 18 	lwz     r30,24(r1)                             
  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);                      
  control->free++;                                                    
ffc20184:	90 df 00 10 	stw     r6,16(r31)                             
  return 0;                                                           
}                                                                     
ffc20188:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc2018c:	38 21 00 20 	addi    r1,r1,32                               
ffc20190:	4e 80 00 20 	blr                                            
                                                                      

ffc20304 <rtems_rfs_bitmap_map_clear_all>: int rtems_rfs_bitmap_map_clear_all (rtems_rfs_bitmap_control* control) {
ffc20304:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc20308:	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);                     
ffc2030c:	38 81 00 08 	addi    r4,r1,8                                
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_bitmap_map_clear_all (rtems_rfs_bitmap_control* control)    
{                                                                     
ffc20310:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc20314:	7c 7f 1b 78 	mr      r31,r3                                 
ffc20318:	90 01 00 24 	stw     r0,36(r1)                              
  rtems_rfs_bitmap_bit last_search_bit;                               
  size_t               elements;                                      
  int                  e;                                             
  int                  rc;                                            
                                                                      
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
ffc2031c:	4b ff f9 9d 	bl      ffc1fcb8 <rtems_rfs_bitmap_load_map>   
  if (rc > 0)                                                         
ffc20320:	2c 03 00 00 	cmpwi   r3,0                                   
ffc20324:	40 81 00 18 	ble-    ffc2033c <rtems_rfs_bitmap_map_clear_all+0x38>
                            rtems_rfs_bitmap_mask (last_search_bit)); 
                                                                      
  rtems_rfs_buffer_mark_dirty (control->buffer);                      
                                                                      
  return 0;                                                           
}                                                                     
ffc20328:	80 01 00 24 	lwz     r0,36(r1)                              
ffc2032c:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc20330:	7c 08 03 a6 	mtlr    r0                                     
ffc20334:	38 21 00 20 	addi    r1,r1,32                               
ffc20338:	4e 80 00 20 	blr                                            
                                                                      
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
  if (rc > 0)                                                         
    return rc;                                                        
                                                                      
  elements = rtems_rfs_bitmap_elements (control->size);               
ffc2033c:	80 bf 00 0c 	lwz     r5,12(r31)                             
                                                                      
  control->free = elements;                                           
                                                                      
  for (e = 0; e < elements; e++)                                      
ffc20340:	39 40 00 00 	li      r10,0                                  
ffc20344:	80 e1 00 08 	lwz     r7,8(r1)                               
ffc20348:	39 20 00 00 	li      r9,0                                   
                                                                      
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
  if (rc > 0)                                                         
    return rc;                                                        
                                                                      
  elements = rtems_rfs_bitmap_elements (control->size);               
ffc2034c:	38 a5 ff ff 	addi    r5,r5,-1                               
ffc20350:	54 a5 d9 7e 	rlwinm  r5,r5,27,5,31                          
ffc20354:	38 c5 00 01 	addi    r6,r5,1                                
                                                                      
  control->free = elements;                                           
                                                                      
  for (e = 0; e < elements; e++)                                      
    map[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                          
ffc20358:	7c c9 03 a6 	mtctr   r6                                     
  if (rc > 0)                                                         
    return rc;                                                        
                                                                      
  elements = rtems_rfs_bitmap_elements (control->size);               
                                                                      
  control->free = elements;                                           
ffc2035c:	90 df 00 10 	stw     r6,16(r31)                             
                                                                      
  for (e = 0; e < elements; e++)                                      
    map[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                          
ffc20360:	39 00 ff ff 	li      r8,-1                                  
ffc20364:	55 4a 10 3a 	rlwinm  r10,r10,2,0,29                         
                                                                      
  elements = rtems_rfs_bitmap_elements (control->size);               
                                                                      
  control->free = elements;                                           
                                                                      
  for (e = 0; e < elements; e++)                                      
ffc20368:	39 29 00 01 	addi    r9,r9,1                                
    map[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;                          
ffc2036c:	7d 07 51 2e 	stwx    r8,r7,r10                              
                                                                      
  elements = rtems_rfs_bitmap_elements (control->size);               
                                                                      
  control->free = elements;                                           
                                                                      
  for (e = 0; e < elements; e++)                                      
ffc20370:	7d 2a 4b 78 	mr      r10,r9                                 
ffc20374:	42 00 ff f0 	bdnz+   ffc20364 <rtems_rfs_bitmap_map_clear_all+0x60>
   * 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)                                           
ffc20378:	70 c9 00 1f 	andi.   r9,r6,31                               
ffc2037c:	38 80 ff ff 	li      r4,-1                                  
ffc20380:	41 82 00 0c 	beq-    ffc2038c <rtems_rfs_bitmap_map_clear_all+0x88>
ffc20384:	21 29 00 20 	subfic  r9,r9,32                               
ffc20388:	7c 84 4c 30 	srw     r4,r4,r9                               
    last_search_bit = rtems_rfs_bitmap_element_bits ();               
                                                                      
  elements = rtems_rfs_bitmap_elements (elements);                    
                                                                      
  for (e = 0; e < (elements - 1); e++)                                
ffc2038c:	54 a6 d9 7f 	rlwinm. r6,r5,27,5,31                          
ffc20390:	81 1f 00 14 	lwz     r8,20(r31)                             
ffc20394:	41 82 00 28 	beq-    ffc203bc <rtems_rfs_bitmap_map_clear_all+0xb8><== ALWAYS TAKEN
    control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;         
ffc20398:	7c c9 03 a6 	mtctr   r6                                     <== 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++)                                
ffc2039c:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
ffc203a0:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
    control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;         
ffc203a4:	38 e0 ff ff 	li      r7,-1                                  <== NOT EXECUTED
ffc203a8:	55 4a 10 3a 	rlwinm  r10,r10,2,0,29                         <== 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++)                                
ffc203ac:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
    control->search_bits[e] = RTEMS_RFS_BITMAP_ELEMENT_CLEAR;         
ffc203b0:	7c e8 51 2e 	stwx    r7,r8,r10                              <== 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++)                                
ffc203b4:	7d 2a 4b 78 	mr      r10,r9                                 <== NOT EXECUTED
ffc203b8:	42 00 ff f0 	bdnz+   ffc203a8 <rtems_rfs_bitmap_map_clear_all+0xa4><== NOT EXECUTED
                            rtems_rfs_bitmap_mask (last_search_bit)); 
                                                                      
  rtems_rfs_buffer_mark_dirty (control->buffer);                      
                                                                      
  return 0;                                                           
}                                                                     
ffc203bc:	80 01 00 24 	lwz     r0,36(r1)                              
  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] =                                
ffc203c0:	54 c6 10 3a 	rlwinm  r6,r6,2,0,29                           
    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);                      
ffc203c4:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc203c8:	39 40 00 01 	li      r10,1                                  
                                                                      
  return 0;                                                           
}                                                                     
ffc203cc:	7c 08 03 a6 	mtlr    r0                                     
  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] =                                
ffc203d0:	7c 88 31 2e 	stwx    r4,r8,r6                               
                            RTEMS_RFS_BITMAP_ELEMENT_SET,             
                            rtems_rfs_bitmap_mask (last_search_bit)); 
                                                                      
  rtems_rfs_buffer_mark_dirty (control->buffer);                      
                                                                      
  return 0;                                                           
ffc203d4:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc203d8:	83 e1 00 1c 	lwz     r31,28(r1)                             
  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);                      
ffc203dc:	99 49 00 00 	stb     r10,0(r9)                              
                                                                      
  return 0;                                                           
}                                                                     
ffc203e0:	38 21 00 20 	addi    r1,r1,32                               
ffc203e4:	4e 80 00 20 	blr                                            
                                                                      

ffc20010 <rtems_rfs_bitmap_map_set>: int rtems_rfs_bitmap_map_set (rtems_rfs_bitmap_control* control, rtems_rfs_bitmap_bit bit) {
ffc20010:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc20014:	7c 08 02 a6 	mflr    r0                                     
ffc20018:	93 c1 00 18 	stw     r30,24(r1)                             
ffc2001c:	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);                     
ffc20020:	38 81 00 08 	addi    r4,r1,8                                
}                                                                     
                                                                      
int                                                                   
rtems_rfs_bitmap_map_set (rtems_rfs_bitmap_control* control,          
                          rtems_rfs_bitmap_bit      bit)              
{                                                                     
ffc20024:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc20028:	7c 7f 1b 78 	mr      r31,r3                                 
ffc2002c:	90 01 00 24 	stw     r0,36(r1)                              
  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);                     
ffc20030:	4b ff fc 89 	bl      ffc1fcb8 <rtems_rfs_bitmap_load_map>   
  if (rc > 0)                                                         
ffc20034:	2c 03 00 00 	cmpwi   r3,0                                   
ffc20038:	40 81 00 1c 	ble-    ffc20054 <rtems_rfs_bitmap_map_set+0x44>
    search_map[index] = rtems_rfs_bitmap_set (search_map[index], 1 << offset);
    control->free--;                                                  
    rtems_rfs_buffer_mark_dirty (control->buffer);                    
  }                                                                   
  return 0;                                                           
}                                                                     
ffc2003c:	80 01 00 24 	lwz     r0,36(r1)                              
ffc20040:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc20044:	7c 08 03 a6 	mtlr    r0                                     
ffc20048:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc2004c:	38 21 00 20 	addi    r1,r1,32                               
ffc20050:	4e 80 00 20 	blr                                            
  int                  offset;                                        
  int                 rc;                                             
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
  if (rc > 0)                                                         
    return rc;                                                        
  if (bit >= control->size)                                           
ffc20054:	81 3f 00 0c 	lwz     r9,12(r31)                             
    return EINVAL;                                                    
ffc20058:	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)                                           
ffc2005c:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc20060:	40 9c ff dc 	bge+    cr7,ffc2003c <rtems_rfs_bitmap_map_set+0x2c><== 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);        
ffc20064:	81 01 00 08 	lwz     r8,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);                      
ffc20068:	7f c6 2e 70 	srawi   r6,r30,5                               
  offset     = rtems_rfs_bitmap_map_offset (bit);                     
  map[index] = rtems_rfs_bitmap_set (map[index], 1 << offset);        
ffc2006c:	54 ca 10 3a 	rlwinm  r10,r6,2,0,29                          
 */                                                                   
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);                    
ffc20070:	7c a8 50 2e 	lwzx    r5,r8,r10                              
    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);                     
ffc20074:	57 c7 06 fe 	clrlwi  r7,r30,27                              
  map[index] = rtems_rfs_bitmap_set (map[index], 1 << offset);        
ffc20078:	39 20 00 01 	li      r9,1                                   
ffc2007c:	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);                    
ffc20080:	7c a7 38 78 	andc    r7,r5,r7                               
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
  if (rc > 0)                                                         
    return rc;                                                        
  if (bit >= control->size)                                           
    return EINVAL;                                                    
  search_map = control->search_bits;                                  
ffc20084:	80 bf 00 14 	lwz     r5,20(r31)                             
  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))
ffc20088:	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);        
ffc2008c:	7c e8 51 2e 	stwx    r7,r8,r10                              
    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;                                                           
ffc20090:	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))
ffc20094:	40 be ff a8 	bne-    cr7,ffc2003c <rtems_rfs_bitmap_map_set+0x2c><== ALWAYS TAKEN
  {                                                                   
    bit = index;                                                      
    index  = rtems_rfs_bitmap_map_index (bit);                        
ffc20098:	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);
    control->free--;                                                  
ffc2009c:	81 5f 00 10 	lwz     r10,16(r31)                            <== 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);
ffc200a0:	57 de 10 3a 	rlwinm  r30,r30,2,0,29                         <== NOT EXECUTED
    control->free--;                                                  
    rtems_rfs_buffer_mark_dirty (control->buffer);                    
ffc200a4:	80 ff 00 00 	lwz     r7,0(r31)                              <== 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);                    
ffc200a8:	7d 05 f0 2e 	lwzx    r8,r5,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);                       
ffc200ac:	54 c6 06 fe 	clrlwi  r6,r6,27                               <== NOT EXECUTED
    search_map[index] = rtems_rfs_bitmap_set (search_map[index], 1 << offset);
ffc200b0:	7d 26 30 30 	slw     r6,r9,r6                               <== 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);                    
ffc200b4:	7d 08 30 78 	andc    r8,r8,r6                               <== NOT EXECUTED
  {                                                                   
    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);
    control->free--;                                                  
ffc200b8:	39 4a ff ff 	addi    r10,r10,-1                             <== 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);
ffc200bc:	7d 05 f1 2e 	stwx    r8,r5,r30                              <== NOT EXECUTED
    control->free--;                                                  
ffc200c0:	91 5f 00 10 	stw     r10,16(r31)                            <== NOT EXECUTED
    rtems_rfs_buffer_mark_dirty (control->buffer);                    
ffc200c4:	99 27 00 00 	stb     r9,0(r7)                               <== NOT EXECUTED
ffc200c8:	4b ff ff 74 	b       ffc2003c <rtems_rfs_bitmap_map_set+0x2c><== NOT EXECUTED
                                                                      

ffc20194 <rtems_rfs_bitmap_map_test>: int rtems_rfs_bitmap_map_test (rtems_rfs_bitmap_control* control, rtems_rfs_bitmap_bit bit, bool* state) {
ffc20194:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc20198:	7c 08 02 a6 	mflr    r0                                     
ffc2019c:	93 e1 00 24 	stw     r31,36(r1)                             
ffc201a0:	7c 9f 23 78 	mr      r31,r4                                 
  rtems_rfs_bitmap_map map;                                           
  int                  index;                                         
  int                  rc;                                            
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
ffc201a4:	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)           
{                                                                     
ffc201a8:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc201ac:	7c bd 2b 78 	mr      r29,r5                                 
ffc201b0:	93 c1 00 20 	stw     r30,32(r1)                             
ffc201b4:	7c 7e 1b 78 	mr      r30,r3                                 
ffc201b8:	90 01 00 2c 	stw     r0,44(r1)                              
  rtems_rfs_bitmap_map map;                                           
  int                  index;                                         
  int                  rc;                                            
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
ffc201bc:	4b ff fa fd 	bl      ffc1fcb8 <rtems_rfs_bitmap_load_map>   
  if (rc > 0)                                                         
ffc201c0:	2c 03 00 00 	cmpwi   r3,0                                   
ffc201c4:	40 81 00 20 	ble-    ffc201e4 <rtems_rfs_bitmap_map_test+0x50>
  if (bit >= control->size)                                           
    return EINVAL;                                                    
  index = rtems_rfs_bitmap_map_index (bit);                           
  *state = rtems_rfs_bitmap_test (map[index], bit);                   
  return 0;                                                           
}                                                                     
ffc201c8:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc201cc:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc201d0:	7c 08 03 a6 	mtlr    r0                                     
ffc201d4:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc201d8:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc201dc:	38 21 00 28 	addi    r1,r1,40                               
ffc201e0:	4e 80 00 20 	blr                                            
  int                  index;                                         
  int                  rc;                                            
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
  if (rc > 0)                                                         
    return rc;                                                        
  if (bit >= control->size)                                           
ffc201e4:	81 3e 00 0c 	lwz     r9,12(r30)                             
    return EINVAL;                                                    
ffc201e8:	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)                                           
ffc201ec:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
ffc201f0:	40 9c ff d8 	bge+    cr7,ffc201c8 <rtems_rfs_bitmap_map_test+0x34><== NEVER TAKEN
 */                                                                   
static bool                                                           
rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target,               
                       rtems_rfs_bitmap_bit     bit)                  
{                                                                     
  return RTEMS_RFS_BITMAP_TEST_BIT (target, bit);                     
ffc201f4:	81 21 00 08 	lwz     r9,8(r1)                               
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
  if (rc > 0)                                                         
    return rc;                                                        
  if (bit >= control->size)                                           
    return EINVAL;                                                    
  index = rtems_rfs_bitmap_map_index (bit);                           
ffc201f8:	7f ea 2e 70 	srawi   r10,r31,5                              
  *state = rtems_rfs_bitmap_test (map[index], bit);                   
ffc201fc:	55 4a 10 3a 	rlwinm  r10,r10,2,0,29                         
  return 0;                                                           
}                                                                     
ffc20200:	80 01 00 2c 	lwz     r0,44(r1)                              
 */                                                                   
static bool                                                           
rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target,               
                       rtems_rfs_bitmap_bit     bit)                  
{                                                                     
  return RTEMS_RFS_BITMAP_TEST_BIT (target, bit);                     
ffc20204:	7d 29 50 2e 	lwzx    r9,r9,r10                              
ffc20208:	39 40 00 01 	li      r10,1                                  
ffc2020c:	7d 5f f8 30 	slw     r31,r10,r31                            
  if (bit >= control->size)                                           
    return EINVAL;                                                    
  index = rtems_rfs_bitmap_map_index (bit);                           
  *state = rtems_rfs_bitmap_test (map[index], bit);                   
  return 0;                                                           
}                                                                     
ffc20210:	7c 08 03 a6 	mtlr    r0                                     
 */                                                                   
static bool                                                           
rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target,               
                       rtems_rfs_bitmap_bit     bit)                  
{                                                                     
  return RTEMS_RFS_BITMAP_TEST_BIT (target, bit);                     
ffc20214:	7f ea 48 39 	and.    r10,r31,r9                             
  if (bit >= control->size)                                           
    return EINVAL;                                                    
  index = rtems_rfs_bitmap_map_index (bit);                           
  *state = rtems_rfs_bitmap_test (map[index], bit);                   
  return 0;                                                           
}                                                                     
ffc20218:	83 c1 00 20 	lwz     r30,32(r1)                             
    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;                                                           
ffc2021c:	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);                     
ffc20220:	7f e0 00 26 	mfcr    r31                                    
ffc20224:	57 ff 1f fe 	rlwinm  r31,r31,3,31,31                        
ffc20228:	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;                                                           
}                                                                     
ffc2022c:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc20230:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc20234:	38 21 00 28 	addi    r1,r1,40                               
ffc20238:	4e 80 00 20 	blr                                            
                                                                      

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

ffc1ffe8 <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)
ffc1ffe8:	7f 84 18 40 	cmplw   cr7,r4,r3                              <== NOT EXECUTED
ffc1ffec:	40 9d 00 1c 	ble-    cr7,ffc20008 <rtems_rfs_bitmap_mask_section+0x20><== NOT EXECUTED
    mask = rtems_rfs_bitmap_mask (end - start) << start;              
ffc1fff0:	7c 83 20 50 	subf    r4,r3,r4                               <== 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);                 
ffc1fff4:	39 20 ff ff 	li      r9,-1                                  <== NOT EXECUTED
ffc1fff8:	20 84 00 20 	subfic  r4,r4,32                               <== NOT EXECUTED
ffc1fffc:	7d 24 24 30 	srw     r4,r9,r4                               <== NOT EXECUTED
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;              
ffc20000:	7c 83 18 30 	slw     r3,r4,r3                               <== NOT EXECUTED
ffc20004:	4e 80 00 20 	blr                                            <== NOT EXECUTED
}                                                                     
                                                                      
rtems_rfs_bitmap_element                                              
rtems_rfs_bitmap_mask_section (unsigned int start, unsigned int end)  
{                                                                     
  rtems_rfs_bitmap_element mask = 0;                                  
ffc20008:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
  if (end > start)                                                    
    mask = rtems_rfs_bitmap_mask (end - start) << start;              
  return mask;                                                        
}                                                                     
ffc2000c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc20898 <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) {
ffc20898:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc2089c:	7c 08 02 a6 	mflr    r0                                     
ffc208a0:	93 c1 00 18 	stw     r30,24(r1)                             
ffc208a4:	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);     
ffc208a8:	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)       
{                                                                     
ffc208ac:	93 61 00 0c 	stw     r27,12(r1)                             
ffc208b0:	7c bb 2b 78 	mr      r27,r5                                 
ffc208b4:	93 81 00 10 	stw     r28,16(r1)                             
ffc208b8:	7c 9c 23 78 	mr      r28,r4                                 
ffc208bc:	93 a1 00 14 	stw     r29,20(r1)                             
ffc208c0:	7c 7d 1b 78 	mr      r29,r3                                 
ffc208c4:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc208c8:	7c ff 3b 78 	mr      r31,r7                                 
ffc208cc:	90 01 00 24 	stw     r0,36(r1)                              
                                                                      
  /*                                                                  
   * 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);     
ffc208d0:	48 00 16 49 	bl      ffc21f18 <rtems_rfs_buffer_handle_request>
  if (rc > 0)                                                         
ffc208d4:	2c 03 00 00 	cmpwi   r3,0                                   
ffc208d8:	40 81 00 28 	ble-    ffc20900 <rtems_rfs_block_find_indirect+0x68><== ALWAYS TAKEN
    *result = 0;                                                      
    rc = EIO;                                                         
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc208dc:	80 01 00 24 	lwz     r0,36(r1)                              
ffc208e0:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc208e4:	7c 08 03 a6 	mtlr    r0                                     
ffc208e8:	83 81 00 10 	lwz     r28,16(r1)                             
ffc208ec:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc208f0:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc208f4:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc208f8:	38 21 00 20 	addi    r1,r1,32                               
ffc208fc:	4e 80 00 20 	blr                                            
   */                                                                 
  rc = rtems_rfs_buffer_handle_request (fs, buffer, block, true);     
  if (rc > 0)                                                         
    return rc;                                                        
                                                                      
  *result = rtems_rfs_block_get_number (buffer, offset);              
ffc20900:	81 5c 00 08 	lwz     r10,8(r28)                             
ffc20904:	57 c9 10 3a 	rlwinm  r9,r30,2,0,29                          
ffc20908:	81 0a 00 1c 	lwz     r8,28(r10)                             
ffc2090c:	7d 48 4a 14 	add     r10,r8,r9                              
ffc20910:	7d 28 48 ae 	lbzx    r9,r8,r9                               
ffc20914:	88 ea 00 03 	lbz     r7,3(r10)                              
ffc20918:	89 0a 00 01 	lbz     r8,1(r10)                              
ffc2091c:	55 29 c0 0e 	rlwinm  r9,r9,24,0,7                           
ffc20920:	89 4a 00 02 	lbz     r10,2(r10)                             
ffc20924:	7c e9 4b 78 	or      r9,r7,r9                               
ffc20928:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          
ffc2092c:	7d 29 43 78 	or      r9,r9,r8                               
ffc20930:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc20934:	7d 29 53 78 	or      r9,r9,r10                              
  if ((*result + 1) == 0)                                             
ffc20938:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc2093c:	41 9e 00 5c 	beq-    cr7,ffc20998 <rtems_rfs_block_find_indirect+0x100><== NEVER TAKEN
    *result = 0;                                                      
                                                                      
  if (*result >= rtems_rfs_fs_blocks (fs))                            
ffc20940:	81 5d 00 04 	lwz     r10,4(r29)                             
ffc20944:	38 60 00 00 	li      r3,0                                   
ffc20948:	91 3f 00 00 	stw     r9,0(r31)                              
ffc2094c:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc20950:	41 9d ff 8c 	bgt+    cr7,ffc208dc <rtems_rfs_block_find_indirect+0x44><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_FIND))                 
ffc20954:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc20958:	38 80 10 00 	li      r4,4096                                <== NOT EXECUTED
ffc2095c:	4b ff 75 41 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc20960:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc20964:	40 9e 00 3c 	bne-    cr7,ffc209a0 <rtems_rfs_block_find_indirect+0x108><== NOT EXECUTED
    *result = 0;                                                      
    rc = EIO;                                                         
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc20968:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
  if (*result >= rtems_rfs_fs_blocks (fs))                            
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_FIND))                 
      printf ("rtems-rfs: block-find: invalid block in table:"        
              " block=%" PRId32 ", indirect=%" PRId32 "/%d\n", *result, block, offset);
    *result = 0;                                                      
ffc2096c:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc20970:	91 3f 00 00 	stw     r9,0(r31)                              <== NOT EXECUTED
ffc20974:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
    rc = EIO;                                                         
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc20978:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc2097c:	83 61 00 0c 	lwz     r27,12(r1)                             <== NOT EXECUTED
ffc20980:	83 81 00 10 	lwz     r28,16(r1)                             <== NOT EXECUTED
ffc20984:	83 a1 00 14 	lwz     r29,20(r1)                             <== NOT EXECUTED
ffc20988:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc2098c:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc20990:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc20994:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  if (rc > 0)                                                         
    return rc;                                                        
                                                                      
  *result = rtems_rfs_block_get_number (buffer, offset);              
  if ((*result + 1) == 0)                                             
    *result = 0;                                                      
ffc20998:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc2099c:	4b ff ff a4 	b       ffc20940 <rtems_rfs_block_find_indirect+0xa8><== NOT EXECUTED
                                                                      
  if (*result >= rtems_rfs_fs_blocks (fs))                            
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_FIND))                 
      printf ("rtems-rfs: block-find: invalid block in table:"        
ffc209a0:	80 9f 00 00 	lwz     r4,0(r31)                              <== NOT EXECUTED
ffc209a4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc209a8:	7f 65 db 78 	mr      r5,r27                                 <== NOT EXECUTED
ffc209ac:	7f c6 f3 78 	mr      r6,r30                                 <== NOT EXECUTED
ffc209b0:	38 63 d0 5c 	addi    r3,r3,-12196                           <== NOT EXECUTED
ffc209b4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc209b8:	48 00 a0 e1 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc209bc:	4b ff ff ac 	b       ffc20968 <rtems_rfs_block_find_indirect+0xd0><== NOT EXECUTED
                                                                      

ffc20b48 <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) {
ffc20b48:	94 21 ff e8 	stwu    r1,-24(r1)                             <== NOT EXECUTED
ffc20b4c:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc20b50:	93 c1 00 10 	stw     r30,16(r1)                             <== NOT EXECUTED
ffc20b54:	7c be 2b 78 	mr      r30,r5                                 <== NOT EXECUTED
ffc20b58:	93 e1 00 14 	stw     r31,20(r1)                             <== NOT EXECUTED
ffc20b5c:	7c df 33 78 	mr      r31,r6                                 <== NOT EXECUTED
  if (pos == 0)                                                       
ffc20b60:	7f c9 fb 79 	or.     r9,r30,r31                             <== NOT EXECUTED
                                                                      
void                                                                  
rtems_rfs_block_get_block_size (rtems_rfs_file_system* fs,            
                                rtems_rfs_pos          pos,           
                                rtems_rfs_block_size*  size)          
{                                                                     
ffc20b64:	93 a1 00 0c 	stw     r29,12(r1)                             <== NOT EXECUTED
ffc20b68:	7c fd 3b 78 	mr      r29,r7                                 <== NOT EXECUTED
ffc20b6c:	90 01 00 1c 	stw     r0,28(r1)                              <== NOT EXECUTED
ffc20b70:	93 81 00 08 	stw     r28,8(r1)                              <== NOT EXECUTED
  if (pos == 0)                                                       
ffc20b74:	41 82 00 5c 	beq-    ffc20bd0 <rtems_rfs_block_get_block_size+0x88><== NOT EXECUTED
    rtems_rfs_block_set_size_zero (size);                             
  else                                                                
  {                                                                   
    size->count  = pos / rtems_rfs_fs_block_size (fs) + 1;            
ffc20b78:	83 83 00 08 	lwz     r28,8(r3)                              <== NOT EXECUTED
ffc20b7c:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc20b80:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc20b84:	7f 86 e3 78 	mr      r6,r28                                 <== NOT EXECUTED
ffc20b88:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc20b8c:	48 01 77 a5 	bl      ffc38330 <__udivdi3>                   <== NOT EXECUTED
    size->offset = pos % rtems_rfs_fs_block_size (fs);                
ffc20b90:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
{                                                                     
  if (pos == 0)                                                       
    rtems_rfs_block_set_size_zero (size);                             
  else                                                                
  {                                                                   
    size->count  = pos / rtems_rfs_fs_block_size (fs) + 1;            
ffc20b94:	38 84 00 01 	addi    r4,r4,1                                <== NOT EXECUTED
ffc20b98:	90 9d 00 00 	stw     r4,0(r29)                              <== NOT EXECUTED
    size->offset = pos % rtems_rfs_fs_block_size (fs);                
ffc20b9c:	7f 86 e3 78 	mr      r6,r28                                 <== NOT EXECUTED
ffc20ba0:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc20ba4:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc20ba8:	48 01 7b 81 	bl      ffc38728 <__umoddi3>                   <== NOT EXECUTED
  }                                                                   
}                                                                     
ffc20bac:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
  if (pos == 0)                                                       
    rtems_rfs_block_set_size_zero (size);                             
  else                                                                
  {                                                                   
    size->count  = pos / rtems_rfs_fs_block_size (fs) + 1;            
    size->offset = pos % rtems_rfs_fs_block_size (fs);                
ffc20bb0:	90 9d 00 04 	stw     r4,4(r29)                              <== NOT EXECUTED
  }                                                                   
}                                                                     
ffc20bb4:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc20bb8:	83 81 00 08 	lwz     r28,8(r1)                              <== NOT EXECUTED
ffc20bbc:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc20bc0:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc20bc4:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc20bc8:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc20bcc:	4e 80 00 20 	blr                                            <== NOT EXECUTED
ffc20bd0:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
ffc20bd4:	83 81 00 08 	lwz     r28,8(r1)                              <== NOT EXECUTED
ffc20bd8:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc20bdc:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc20be0:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc20be4:	83 e1 00 14 	lwz     r31,20(r1)                             <== 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;                                                    
ffc20be8:	91 27 00 00 	stw     r9,0(r7)                               <== NOT EXECUTED
ffc20bec:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
  size->offset = 0;                                                   
ffc20bf0:	91 27 00 04 	stw     r9,4(r7)                               <== NOT EXECUTED
ffc20bf4:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc20e48 <rtems_rfs_block_map_close>: int rtems_rfs_block_map_close (rtems_rfs_file_system* fs, rtems_rfs_block_map* map) {
ffc20e48:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc20e4c:	7c 08 02 a6 	mflr    r0                                     
ffc20e50:	90 01 00 1c 	stw     r0,28(r1)                              
  int rc = 0;                                                         
  int brc;                                                            
                                                                      
  if (map->dirty && map->inode)                                       
ffc20e54:	89 24 00 00 	lbz     r9,0(r4)                               
}                                                                     
                                                                      
int                                                                   
rtems_rfs_block_map_close (rtems_rfs_file_system* fs,                 
                           rtems_rfs_block_map*   map)                
{                                                                     
ffc20e58:	93 81 00 08 	stw     r28,8(r1)                              
ffc20e5c:	7c 7c 1b 78 	mr      r28,r3                                 
  int rc = 0;                                                         
  int brc;                                                            
                                                                      
  if (map->dirty && map->inode)                                       
ffc20e60:	2f 89 00 00 	cmpwi   cr7,r9,0                               
}                                                                     
                                                                      
int                                                                   
rtems_rfs_block_map_close (rtems_rfs_file_system* fs,                 
                           rtems_rfs_block_map*   map)                
{                                                                     
ffc20e64:	93 a1 00 0c 	stw     r29,12(r1)                             
  int rc = 0;                                                         
ffc20e68:	3b a0 00 00 	li      r29,0                                  
}                                                                     
                                                                      
int                                                                   
rtems_rfs_block_map_close (rtems_rfs_file_system* fs,                 
                           rtems_rfs_block_map*   map)                
{                                                                     
ffc20e6c:	93 e1 00 14 	stw     r31,20(r1)                             
ffc20e70:	7c 9f 23 78 	mr      r31,r4                                 
ffc20e74:	93 c1 00 10 	stw     r30,16(r1)                             
  int rc = 0;                                                         
  int brc;                                                            
                                                                      
  if (map->dirty && map->inode)                                       
ffc20e78:	41 9e 00 24 	beq-    cr7,ffc20e9c <rtems_rfs_block_map_close+0x54>
ffc20e7c:	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;                                                         
ffc20e80:	3b a0 00 00 	li      r29,0                                  
  int brc;                                                            
                                                                      
  if (map->dirty && map->inode)                                       
ffc20e84:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc20e88:	41 9e 00 14 	beq-    cr7,ffc20e9c <rtems_rfs_block_map_close+0x54><== NEVER TAKEN
  {                                                                   
    brc = rtems_rfs_inode_load (fs, map->inode);                      
ffc20e8c:	4b ff 4e 4d 	bl      ffc15cd8 <rtems_rfs_inode_load>        
    if (brc > 0)                                                      
ffc20e90:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc20e94:	7c 7d 1b 78 	mr      r29,r3                                 
ffc20e98:	40 9d 00 60 	ble-    cr7,ffc20ef8 <rtems_rfs_block_map_close+0xb0><== ALWAYS TAKEN
                                                                      
      map->dirty = false;                                             
    }                                                                 
  }                                                                   
                                                                      
  map->inode = NULL;                                                  
ffc20e9c:	3b c0 00 00 	li      r30,0                                  
ffc20ea0:	93 df 00 04 	stw     r30,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);                       
ffc20ea4:	38 9f 00 38 	addi    r4,r31,56                              
ffc20ea8:	7f 83 e3 78 	mr      r3,r28                                 
ffc20eac:	48 00 0e 59 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
  handle->dirty = false;                                              
ffc20eb0:	9b df 00 38 	stb     r30,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);                       
ffc20eb4:	7f 83 e3 78 	mr      r3,r28                                 
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc20eb8:	93 df 00 3c 	stw     r30,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);                       
ffc20ebc:	38 9f 00 44 	addi    r4,r31,68                              
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc20ec0:	93 df 00 40 	stw     r30,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);                       
ffc20ec4:	48 00 0e 41 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
    rc = brc;                                                         
  brc = rtems_rfs_buffer_handle_close (fs, &map->doubly_buffer);      
  if ((brc > 0) && (rc == 0))                                         
    rc = brc;                                                         
  return rc;                                                          
}                                                                     
ffc20ec8:	80 01 00 1c 	lwz     r0,28(r1)                              
  handle->dirty = false;                                              
ffc20ecc:	9b df 00 44 	stb     r30,68(r31)                            
ffc20ed0:	7f a3 eb 78 	mr      r3,r29                                 
ffc20ed4:	7c 08 03 a6 	mtlr    r0                                     
  handle->bnum  = 0;                                                  
ffc20ed8:	93 df 00 48 	stw     r30,72(r31)                            
  handle->buffer = NULL;                                              
ffc20edc:	93 df 00 4c 	stw     r30,76(r31)                            
ffc20ee0:	83 81 00 08 	lwz     r28,8(r1)                              
ffc20ee4:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc20ee8:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc20eec:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc20ef0:	38 21 00 18 	addi    r1,r1,24                               
ffc20ef4:	4e 80 00 20 	blr                                            
 */                                                                   
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);                      
ffc20ef8:	39 20 00 05 	li      r9,5                                   
ffc20efc:	7d 29 03 a6 	mtctr   r9                                     
                                                                      
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_block_map_close (rtems_rfs_file_system* fs,                 
ffc20f00:	38 df 00 20 	addi    r6,r31,32                              
ffc20f04:	38 e0 00 00 	li      r7,0                                   
ffc20f08:	38 00 00 01 	li      r0,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]);    
ffc20f0c:	81 3f 00 04 	lwz     r9,4(r31)                              
 * @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);       
ffc20f10:	39 07 00 04 	addi    r8,r7,4                                
ffc20f14:	85 46 00 04 	lwzu    r10,4(r6)                              
ffc20f18:	55 08 10 3a 	rlwinm  r8,r8,2,0,29                           
ffc20f1c:	80 a9 00 0c 	lwz     r5,12(r9)                              
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc20f20:	39 60 00 01 	li      r11,1                                  
 * @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);       
ffc20f24:	55 44 46 3e 	rlwinm  r4,r10,8,24,31                         
ffc20f28:	7c a5 42 14 	add     r5,r5,r8                               
ffc20f2c:	98 85 00 0c 	stb     r4,12(r5)                              
ffc20f30:	55 43 84 3e 	rlwinm  r3,r10,16,16,31                        
ffc20f34:	55 44 c2 3e 	rlwinm  r4,r10,24,8,31                         
ffc20f38:	80 a9 00 0c 	lwz     r5,12(r9)                              
                                                                      
    if (rc == 0)                                                      
    {                                                                 
      int b;                                                          
                                                                      
      for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                    
ffc20f3c:	38 e7 00 01 	addi    r7,r7,1                                
ffc20f40:	7c a5 42 14 	add     r5,r5,r8                               
ffc20f44:	98 65 00 0d 	stb     r3,13(r5)                              
ffc20f48:	80 a9 00 0c 	lwz     r5,12(r9)                              
ffc20f4c:	7c a5 42 14 	add     r5,r5,r8                               
ffc20f50:	98 85 00 0e 	stb     r4,14(r5)                              
ffc20f54:	80 a9 00 0c 	lwz     r5,12(r9)                              
ffc20f58:	7d 05 42 14 	add     r8,r5,r8                               
ffc20f5c:	99 48 00 0f 	stb     r10,15(r8)                             
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc20f60:	98 09 00 10 	stb     r0,16(r9)                              
ffc20f64:	42 00 ff a8 	bdnz+   ffc20f0c <rtems_rfs_block_map_close+0xc4>
        rtems_rfs_inode_set_block (map->inode, b, map->blocks[b]);    
      rtems_rfs_inode_set_block_count (map->inode, map->size.count);  
ffc20f68:	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);            
ffc20f6c:	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);  
ffc20f70:	81 5f 00 08 	lwz     r10,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);            
ffc20f74:	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);      
ffc20f78:	81 09 00 0c 	lwz     r8,12(r9)                              
ffc20f7c:	55 47 46 3e 	rlwinm  r7,r10,8,24,31                         
ffc20f80:	98 e8 00 0c 	stb     r7,12(r8)                              
ffc20f84:	55 46 84 3e 	rlwinm  r6,r10,16,16,31                        
ffc20f88:	55 47 c2 3e 	rlwinm  r7,r10,24,8,31                         
ffc20f8c:	81 09 00 0c 	lwz     r8,12(r9)                              
ffc20f90:	98 c8 00 0d 	stb     r6,13(r8)                              
ffc20f94:	81 09 00 0c 	lwz     r8,12(r9)                              
ffc20f98:	98 e8 00 0e 	stb     r7,14(r8)                              
ffc20f9c:	81 09 00 0c 	lwz     r8,12(r9)                              
ffc20fa0:	99 48 00 0f 	stb     r10,15(r8)                             
      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);
ffc20fa4:	81 1f 00 04 	lwz     r8,4(r31)                              
ffc20fa8:	81 5f 00 0c 	lwz     r10,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);    
ffc20fac:	80 e8 00 0c 	lwz     r7,12(r8)                              
ffc20fb0:	55 46 c6 3e 	rlwinm  r6,r10,24,24,31                        
 */                                                                   
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);      
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc20fb4:	99 69 00 10 	stb     r11,16(r9)                             
 */                                                                   
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);    
ffc20fb8:	98 c7 00 0a 	stb     r6,10(r7)                              
ffc20fbc:	81 28 00 0c 	lwz     r9,12(r8)                              
ffc20fc0:	99 49 00 0b 	stb     r10,11(r9)                             
      rtems_rfs_inode_set_last_map_block (map->inode, map->last_map_block);
ffc20fc4:	81 5f 00 04 	lwz     r10,4(r31)                             
ffc20fc8:	81 3f 00 1c 	lwz     r9,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);
ffc20fcc:	80 ea 00 0c 	lwz     r7,12(r10)                             
ffc20fd0:	55 24 46 3e 	rlwinm  r4,r9,8,24,31                          
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);    
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc20fd4:	99 68 00 10 	stb     r11,16(r8)                             
 * @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);
ffc20fd8:	55 26 84 3e 	rlwinm  r6,r9,16,16,31                         
ffc20fdc:	98 87 00 30 	stb     r4,48(r7)                              
ffc20fe0:	55 27 c2 3e 	rlwinm  r7,r9,24,8,31                          
ffc20fe4:	81 0a 00 0c 	lwz     r8,12(r10)                             
ffc20fe8:	98 c8 00 31 	stb     r6,49(r8)                              
ffc20fec:	81 0a 00 0c 	lwz     r8,12(r10)                             
ffc20ff0:	98 e8 00 32 	stb     r7,50(r8)                              
ffc20ff4:	81 0a 00 0c 	lwz     r8,12(r10)                             
ffc20ff8:	99 28 00 33 	stb     r9,51(r8)                              
      rtems_rfs_inode_set_last_data_block (map->inode, map->last_data_block);
ffc20ffc:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc21000:	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);
ffc21004:	80 e9 00 0c 	lwz     r7,12(r9)                              
ffc21008:	55 04 46 3e 	rlwinm  r4,r8,8,24,31                          
 */                                                                   
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);
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc2100c:	99 6a 00 10 	stb     r11,16(r10)                            
 * @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);
ffc21010:	55 06 84 3e 	rlwinm  r6,r8,16,16,31                         
ffc21014:	98 87 00 34 	stb     r4,52(r7)                              
ffc21018:	55 07 c2 3e 	rlwinm  r7,r8,24,8,31                          
ffc2101c:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc21020:	98 ca 00 35 	stb     r6,53(r10)                             
ffc21024:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc21028:	98 ea 00 36 	stb     r7,54(r10)                             
ffc2102c:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc21030:	99 0a 00 37 	stb     r8,55(r10)                             
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc21034:	99 69 00 10 	stb     r11,16(r9)                             
                                                                      
      brc = rtems_rfs_inode_unload (fs, map->inode, true);            
ffc21038:	80 9f 00 04 	lwz     r4,4(r31)                              
ffc2103c:	4b ff 4e 91 	bl      ffc15ecc <rtems_rfs_inode_unload>      
ffc21040:	7c 69 18 f8 	not     r9,r3                                  
ffc21044:	7d 29 fe 70 	srawi   r9,r9,31                               
ffc21048:	7c 7d 48 38 	and     r29,r3,r9                              
      if (brc > 0)                                                    
        rc = brc;                                                     
                                                                      
      map->dirty = false;                                             
ffc2104c:	39 20 00 00 	li      r9,0                                   
ffc21050:	99 3f 00 00 	stb     r9,0(r31)                              
ffc21054:	4b ff fe 48 	b       ffc20e9c <rtems_rfs_block_map_close+0x54>
                                                                      

ffc21058 <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) {
ffc21058:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc2105c:	7c 08 02 a6 	mflr    r0                                     
  int rc = 0;                                                         
                                                                      
  *block = 0;                                                         
ffc21060:	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)               
{                                                                     
ffc21064:	90 01 00 34 	stw     r0,52(r1)                              
ffc21068:	93 81 00 20 	stw     r28,32(r1)                             
ffc2106c:	7c 7c 1b 78 	mr      r28,r3                                 
ffc21070:	93 a1 00 24 	stw     r29,36(r1)                             
ffc21074:	7c dd 33 78 	mr      r29,r6                                 
ffc21078:	93 c1 00 28 	stw     r30,40(r1)                             
ffc2107c:	7c be 2b 78 	mr      r30,r5                                 
ffc21080:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc21084:	7c 9f 23 78 	mr      r31,r4                                 
ffc21088:	93 61 00 1c 	stw     r27,28(r1)                             
  int rc = 0;                                                         
                                                                      
  *block = 0;                                                         
ffc2108c:	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))          
ffc21090:	81 25 00 00 	lwz     r9,0(r5)                               
ffc21094:	81 44 00 08 	lwz     r10,8(r4)                              
ffc21098:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc2109c:	41 9e 00 34 	beq-    cr7,ffc210d0 <rtems_rfs_block_map_find+0x78>
ffc210a0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
    return ENXIO;                                                     
ffc210a4:	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))          
ffc210a8:	40 9e 00 28 	bne-    cr7,ffc210d0 <rtems_rfs_block_map_find+0x78><== ALWAYS TAKEN
    rtems_rfs_block_copy_bpos (&map->bpos, bpos);                     
    map->bpos.block = *block;                                         
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc210ac:	80 01 00 34 	lwz     r0,52(r1)                              
ffc210b0:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc210b4:	7c 08 03 a6 	mtlr    r0                                     
ffc210b8:	83 81 00 20 	lwz     r28,32(r1)                             
ffc210bc:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc210c0:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc210c4:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc210c8:	38 21 00 30 	addi    r1,r1,48                               
ffc210cc:	4e 80 00 20 	blr                                            
  *block = 0;                                                         
                                                                      
  /*                                                                  
   * Range checking here makes the remaining logic simpler.           
   */                                                                 
  if (rtems_rfs_block_pos_block_past_end (bpos, &map->size))          
ffc210d0:	7f 89 50 40 	cmplw   cr7,r9,r10                             
    return ENXIO;                                                     
ffc210d4:	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))          
ffc210d8:	40 9c ff d4 	bge+    cr7,ffc210ac <rtems_rfs_block_map_find+0x54>
    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))         
ffc210dc:	81 1f 00 10 	lwz     r8,16(r31)                             
ffc210e0:	7f 89 40 00 	cmpw    cr7,r9,r8                              
ffc210e4:	41 9e 00 68 	beq-    cr7,ffc2114c <rtems_rfs_block_map_find+0xf4>
    /*                                                                
     * 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)                    
ffc210e8:	2b 8a 00 05 	cmplwi  cr7,r10,5                              
ffc210ec:	41 9d 00 74 	bgt-    cr7,ffc21160 <rtems_rfs_block_map_find+0x108>
    {                                                                 
      *block = map->blocks[bpos->bno];                                
ffc210f0:	39 29 00 08 	addi    r9,r9,8                                
ffc210f4:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc210f8:	7d 3f 4a 14 	add     r9,r31,r9                              
ffc210fc:	81 29 00 04 	lwz     r9,4(r9)                               
ffc21100:	91 3d 00 00 	stw     r9,0(r29)                              
    }                                                                 
  }                                                                   
                                                                      
  if (rc == 0)                                                        
  {                                                                   
    rtems_rfs_block_copy_bpos (&map->bpos, bpos);                     
ffc21104:	81 1e 00 08 	lwz     r8,8(r30)                              
    map->bpos.block = *block;                                         
ffc21108:	38 60 00 00 	li      r3,0                                   
    }                                                                 
  }                                                                   
                                                                      
  if (rc == 0)                                                        
  {                                                                   
    rtems_rfs_block_copy_bpos (&map->bpos, bpos);                     
ffc2110c:	81 3e 00 04 	lwz     r9,4(r30)                              
ffc21110:	81 5e 00 00 	lwz     r10,0(r30)                             
    map->bpos.block = *block;                                         
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc21114:	80 01 00 34 	lwz     r0,52(r1)                              
    }                                                                 
  }                                                                   
                                                                      
  if (rc == 0)                                                        
  {                                                                   
    rtems_rfs_block_copy_bpos (&map->bpos, bpos);                     
ffc21118:	91 1f 00 18 	stw     r8,24(r31)                             
    map->bpos.block = *block;                                         
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc2111c:	7c 08 03 a6 	mtlr    r0                                     
    }                                                                 
  }                                                                   
                                                                      
  if (rc == 0)                                                        
  {                                                                   
    rtems_rfs_block_copy_bpos (&map->bpos, bpos);                     
ffc21120:	91 5f 00 10 	stw     r10,16(r31)                            
ffc21124:	91 3f 00 14 	stw     r9,20(r31)                             
    map->bpos.block = *block;                                         
ffc21128:	81 3d 00 00 	lwz     r9,0(r29)                              
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc2112c:	83 61 00 1c 	lwz     r27,28(r1)                             
  }                                                                   
                                                                      
  if (rc == 0)                                                        
  {                                                                   
    rtems_rfs_block_copy_bpos (&map->bpos, bpos);                     
    map->bpos.block = *block;                                         
ffc21130:	91 3f 00 18 	stw     r9,24(r31)                             
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc21134:	83 81 00 20 	lwz     r28,32(r1)                             
ffc21138:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc2113c:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc21140:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc21144:	38 21 00 30 	addi    r1,r1,48                               
ffc21148:	4e 80 00 20 	blr                                            
    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))         
ffc2114c:	81 1f 00 18 	lwz     r8,24(r31)                             
ffc21150:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc21154:	41 be ff 94 	beq-    cr7,ffc210e8 <rtems_rfs_block_map_find+0x90>
  {                                                                   
    *block = map->bpos.block;                                         
ffc21158:	91 1d 00 00 	stw     r8,0(r29)                              
ffc2115c:	4b ff ff a8 	b       ffc21104 <rtems_rfs_block_map_find+0xac>
       * 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;                      
ffc21160:	80 fc 00 34 	lwz     r7,52(r28)                             
      singly = bpos->bno / fs->blocks_per_block;                      
                                                                      
      if (map->size.count <= fs->block_map_singly_blocks)             
ffc21164:	80 dc 00 38 	lwz     r6,56(r28)                             
       * 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;                      
ffc21168:	7d 09 3b 96 	divwu   r8,r9,r7                               
      singly = bpos->bno / fs->blocks_per_block;                      
                                                                      
      if (map->size.count <= fs->block_map_singly_blocks)             
ffc2116c:	7f 86 50 40 	cmplw   cr7,r6,r10                             
       */                                                             
      rtems_rfs_block_no direct;                                      
      rtems_rfs_block_no singly;                                      
                                                                      
      direct = bpos->bno % fs->blocks_per_block;                      
      singly = bpos->bno / fs->blocks_per_block;                      
ffc21170:	91 01 00 08 	stw     r8,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;                      
ffc21174:	7c a8 39 d6 	mullw   r5,r8,r7                               
ffc21178:	7f 65 48 50 	subf    r27,r5,r9                              
      singly = bpos->bno / fs->blocks_per_block;                      
                                                                      
      if (map->size.count <= fs->block_map_singly_blocks)             
ffc2117c:	40 9c 00 70 	bge-    cr7,ffc211ec <rtems_rfs_block_map_find+0x194><== ALWAYS TAKEN
         * The map is doubly indirect.                                
         */                                                           
        rtems_rfs_block_no doubly;                                    
                                                                      
        doubly  = singly / fs->blocks_per_block;                      
        singly %= fs->blocks_per_block;                               
ffc21180:	7c 88 3b 96 	divwu   r4,r8,r7                               <== NOT EXECUTED
                                                                      
        if (map->size.count < fs->block_map_doubly_blocks)            
ffc21184:	80 7c 00 3c 	lwz     r3,60(r28)                             <== NOT EXECUTED
ffc21188:	7f 83 50 40 	cmplw   cr7,r3,r10                             <== NOT EXECUTED
         * The map is doubly indirect.                                
         */                                                           
        rtems_rfs_block_no doubly;                                    
                                                                      
        doubly  = singly / fs->blocks_per_block;                      
        singly %= fs->blocks_per_block;                               
ffc2118c:	7c e4 39 d6 	mullw   r7,r4,r7                               <== NOT EXECUTED
        {                                                             
          /*                                                          
           * This should never happen. Here so Joel can remove once his coverage
           * testing gets to the file systems.                        
           */                                                         
          rc = ENXIO;                                                 
ffc21190:	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;                               
ffc21194:	7c c7 40 50 	subf    r6,r7,r8                               <== NOT EXECUTED
ffc21198:	90 c1 00 08 	stw     r6,8(r1)                               <== NOT EXECUTED
                                                                      
        if (map->size.count < fs->block_map_doubly_blocks)            
ffc2119c:	40 9d ff 10 	ble+    cr7,ffc210ac <rtems_rfs_block_map_find+0x54><== NOT EXECUTED
        {                                                             
          rc = rtems_rfs_block_find_indirect (fs,                     
ffc211a0:	39 24 00 08 	addi    r9,r4,8                                <== NOT EXECUTED
ffc211a4:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           <== NOT EXECUTED
ffc211a8:	7d 3f 4a 14 	add     r9,r31,r9                              <== NOT EXECUTED
ffc211ac:	80 a9 00 04 	lwz     r5,4(r9)                               <== NOT EXECUTED
ffc211b0:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc211b4:	38 9f 00 44 	addi    r4,r31,68                              <== NOT EXECUTED
ffc211b8:	38 e1 00 08 	addi    r7,r1,8                                <== NOT EXECUTED
ffc211bc:	4b ff f6 dd 	bl      ffc20898 <rtems_rfs_block_find_indirect><== NOT EXECUTED
                                              &map->doubly_buffer,    
                                              map->blocks[doubly],    
                                              singly, &singly);       
          if (rc == 0)                                                
ffc211c0:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc211c4:	40 82 fe e8 	bne+    ffc210ac <rtems_rfs_block_map_find+0x54><== NOT EXECUTED
          {                                                           
            rc = rtems_rfs_block_find_indirect (fs,                   
ffc211c8:	80 a1 00 08 	lwz     r5,8(r1)                               <== NOT EXECUTED
ffc211cc:	7f 83 e3 78 	mr      r3,r28                                 
ffc211d0:	38 9f 00 38 	addi    r4,r31,56                              
ffc211d4:	7f 66 db 78 	mr      r6,r27                                 
ffc211d8:	7f a7 eb 78 	mr      r7,r29                                 
ffc211dc:	4b ff f6 bd 	bl      ffc20898 <rtems_rfs_block_find_indirect>
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if (rc == 0)                                                        
ffc211e0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc211e4:	40 9e fe c8 	bne+    cr7,ffc210ac <rtems_rfs_block_map_find+0x54><== NEVER TAKEN
ffc211e8:	4b ff ff 1c 	b       ffc21104 <rtems_rfs_block_map_find+0xac>
      {                                                               
        /*                                                            
         * This is a single indirect table of blocks anchored off a slot in the
         * inode.                                                     
         */                                                           
        rc = rtems_rfs_block_find_indirect (fs,                       
ffc211ec:	39 28 00 08 	addi    r9,r8,8                                
ffc211f0:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc211f4:	7d 3f 4a 14 	add     r9,r31,r9                              
ffc211f8:	80 a9 00 04 	lwz     r5,4(r9)                               
ffc211fc:	4b ff ff d0 	b       ffc211cc <rtems_rfs_block_map_find+0x174>
                                                                      

ffc21304 <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) {
ffc21304:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc21308:	7c 08 02 a6 	mflr    r0                                     
ffc2130c:	93 a1 00 3c 	stw     r29,60(r1)                             
ffc21310:	7c 7d 1b 78 	mr      r29,r3                                 
  int b;                                                              
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))               
ffc21314:	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)           
{                                                                     
ffc21318:	93 e1 00 44 	stw     r31,68(r1)                             
ffc2131c:	7c 9f 23 78 	mr      r31,r4                                 
  int b;                                                              
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))               
ffc21320:	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)           
{                                                                     
ffc21324:	93 21 00 2c 	stw     r25,44(r1)                             
ffc21328:	7c d9 33 78 	mr      r25,r6                                 
ffc2132c:	93 41 00 30 	stw     r26,48(r1)                             
ffc21330:	7c ba 2b 78 	mr      r26,r5                                 
ffc21334:	90 01 00 4c 	stw     r0,76(r1)                              
ffc21338:	92 81 00 18 	stw     r20,24(r1)                             
ffc2133c:	92 a1 00 1c 	stw     r21,28(r1)                             
ffc21340:	92 c1 00 20 	stw     r22,32(r1)                             
ffc21344:	92 e1 00 24 	stw     r23,36(r1)                             
ffc21348:	93 01 00 28 	stw     r24,40(r1)                             
ffc2134c:	93 61 00 34 	stw     r27,52(r1)                             
ffc21350:	93 81 00 38 	stw     r28,56(r1)                             
ffc21354:	93 c1 00 40 	stw     r30,64(r1)                             
  int b;                                                              
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))               
ffc21358:	4b ff 6b 45 	bl      ffc17e9c <rtems_rfs_trace>             
ffc2135c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc21360:	40 9e 03 a4 	bne-    cr7,ffc21704 <rtems_rfs_block_map_grow+0x400><== NEVER TAKEN
    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))
ffc21364:	81 5f 00 08 	lwz     r10,8(r31)                             
    return EFBIG;                                                     
ffc21368:	3b 80 00 1b 	li      r28,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))
ffc2136c:	81 3d 00 3c 	lwz     r9,60(r29)                             
ffc21370:	7d 5a 52 14 	add     r10,r26,r10                            
ffc21374:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc21378:	41 9c 00 48 	blt-    cr7,ffc213c0 <rtems_rfs_block_map_grow+0xbc><== ALWAYS TAKEN
    map->last_data_block = block;                                     
    map->dirty = true;                                                
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc2137c:	80 01 00 4c 	lwz     r0,76(r1)                              
ffc21380:	7f 83 e3 78 	mr      r3,r28                                 
ffc21384:	82 81 00 18 	lwz     r20,24(r1)                             
ffc21388:	7c 08 03 a6 	mtlr    r0                                     
ffc2138c:	82 a1 00 1c 	lwz     r21,28(r1)                             
ffc21390:	82 c1 00 20 	lwz     r22,32(r1)                             
ffc21394:	82 e1 00 24 	lwz     r23,36(r1)                             
ffc21398:	83 01 00 28 	lwz     r24,40(r1)                             
ffc2139c:	83 21 00 2c 	lwz     r25,44(r1)                             
ffc213a0:	83 41 00 30 	lwz     r26,48(r1)                             
ffc213a4:	83 61 00 34 	lwz     r27,52(r1)                             
ffc213a8:	83 81 00 38 	lwz     r28,56(r1)                             
ffc213ac:	83 a1 00 3c 	lwz     r29,60(r1)                             
ffc213b0:	83 c1 00 40 	lwz     r30,64(r1)                             
ffc213b4:	83 e1 00 44 	lwz     r31,68(r1)                             
ffc213b8:	38 21 00 48 	addi    r1,r1,72                               
ffc213bc:	4e 80 00 20 	blr                                            
                                                                      
  /*                                                                  
   * 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++)                                        
ffc213c0:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc213c4:	41 9e 03 5c 	beq-    cr7,ffc21720 <rtems_rfs_block_map_grow+0x41c><== NEVER TAKEN
ffc213c8:	80 9f 00 20 	lwz     r4,32(r31)                             
  map->last_map_block = new_block;                                    
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_block_map_grow (rtems_rfs_file_system* fs,                  
ffc213cc:	3b c0 00 00 	li      r30,0                                  
            return rc;                                                
          }                                                           
        }                                                             
      }                                                               
                                                                      
      rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
ffc213d0:	3b 60 00 01 	li      r27,1                                  
                                      singly,                         
                                      singly_block);                  
        }                                                             
        else                                                          
        {                                                             
          rc = rtems_rfs_buffer_handle_request (fs,                   
ffc213d4:	3a ff 00 44 	addi    r23,r31,68                             
          }                                                           
                                                                      
          singly_block = rtems_rfs_block_get_number (&map->doubly_buffer,
                                                     singly);         
                                                                      
          rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
ffc213d8:	3b 1f 00 38 	addi    r24,r31,56                             
ffc213dc:	48 00 00 48 	b       ffc21424 <rtems_rfs_block_map_grow+0x120>
                                       false, &block);                
    if (rc > 0)                                                       
      return rc;                                                      
                                                                      
    if (map->size.count < RTEMS_RFS_INODE_BLOCKS)                     
      map->blocks[map->size.count] = block;                           
ffc213e0:	39 27 00 08 	addi    r9,r7,8                                
ffc213e4:	80 81 00 0c 	lwz     r4,12(r1)                              
ffc213e8:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc213ec:	7d 3f 4a 14 	add     r9,r31,r9                              
ffc213f0:	90 89 00 04 	stw     r4,4(r9)                               
    }                                                                 
                                                                      
    map->size.count++;                                                
    map->size.offset = 0;                                             
                                                                      
    if (b == 0)                                                       
ffc213f4:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
      }                                                               
                                                                      
      rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
    }                                                                 
                                                                      
    map->size.count++;                                                
ffc213f8:	38 e7 00 01 	addi    r7,r7,1                                
    map->size.offset = 0;                                             
ffc213fc:	39 20 00 00 	li      r9,0                                   
      }                                                               
                                                                      
      rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
    }                                                                 
                                                                      
    map->size.count++;                                                
ffc21400:	90 ff 00 08 	stw     r7,8(r31)                              
    map->size.offset = 0;                                             
ffc21404:	91 3f 00 0c 	stw     r9,12(r31)                             
                                                                      
    if (b == 0)                                                       
ffc21408:	40 9e 00 08 	bne-    cr7,ffc21410 <rtems_rfs_block_map_grow+0x10c><== NEVER TAKEN
      *new_block = block;                                             
ffc2140c:	90 99 00 00 	stw     r4,0(r25)                              
                                                                      
  /*                                                                  
   * 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++)                                        
ffc21410:	3b de 00 01 	addi    r30,r30,1                              
    map->size.count++;                                                
    map->size.offset = 0;                                             
                                                                      
    if (b == 0)                                                       
      *new_block = block;                                             
    map->last_data_block = block;                                     
ffc21414:	90 9f 00 20 	stw     r4,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++)                                        
ffc21418:	7f 9e d0 00 	cmpw    cr7,r30,r26                            
    map->size.offset = 0;                                             
                                                                      
    if (b == 0)                                                       
      *new_block = block;                                             
    map->last_data_block = block;                                     
    map->dirty = true;                                                
ffc2141c:	9b 7f 00 00 	stb     r27,0(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++)                                        
ffc21420:	41 9e 03 00 	beq-    cr7,ffc21720 <rtems_rfs_block_map_grow+0x41c><== ALWAYS TAKEN
    /*                                                                
     * 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,      
ffc21424:	7f a3 eb 78 	mr      r3,r29                                 
ffc21428:	38 a0 00 00 	li      r5,0                                   
ffc2142c:	38 c1 00 0c 	addi    r6,r1,12                               
ffc21430:	4b ff 42 91 	bl      ffc156c0 <rtems_rfs_group_bitmap_alloc>
                                       false, &block);                
    if (rc > 0)                                                       
ffc21434:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc21438:	41 a1 ff 44 	bgt-    ffc2137c <rtems_rfs_block_map_grow+0x78>
      return rc;                                                      
                                                                      
    if (map->size.count < RTEMS_RFS_INODE_BLOCKS)                     
ffc2143c:	80 ff 00 08 	lwz     r7,8(r31)                              
ffc21440:	2b 87 00 04 	cmplwi  cr7,r7,4                               
ffc21444:	40 bd ff 9c 	ble-    cr7,ffc213e0 <rtems_rfs_block_map_grow+0xdc>
       * 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;                
ffc21448:	81 5d 00 34 	lwz     r10,52(r29)                            
      singly = map->size.count / fs->blocks_per_block;                
                                                                      
      if (map->size.count < fs->block_map_singly_blocks)              
ffc2144c:	81 3d 00 38 	lwz     r9,56(r29)                             
       * 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;                
ffc21450:	7d 07 53 96 	divwu   r8,r7,r10                              
      singly = map->size.count / fs->blocks_per_block;                
                                                                      
      if (map->size.count < fs->block_map_singly_blocks)              
ffc21454:	7f 87 48 40 	cmplw   cr7,r7,r9                              
       * 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;                
ffc21458:	7e c8 51 d6 	mullw   r22,r8,r10                             
ffc2145c:	7e d6 38 50 	subf    r22,r22,r7                             
      singly = map->size.count / fs->blocks_per_block;                
                                                                      
      if (map->size.count < fs->block_map_singly_blocks)              
ffc21460:	40 9c 00 ac 	bge-    cr7,ffc2150c <rtems_rfs_block_map_grow+0x208><== 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) ||                                          
ffc21464:	2f 96 00 00 	cmpwi   cr7,r22,0                              
ffc21468:	41 9e 02 08 	beq-    cr7,ffc21670 <rtems_rfs_block_map_grow+0x36c><== NEVER TAKEN
ffc2146c:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc21470:	40 9e 00 0c 	bne-    cr7,ffc2147c <rtems_rfs_block_map_grow+0x178><== NEVER TAKEN
            ((singly == 0) && (direct == RTEMS_RFS_INODE_BLOCKS)))    
ffc21474:	2f 96 00 05 	cmpwi   cr7,r22,5                              
ffc21478:	41 9e 01 f8 	beq-    cr7,ffc21670 <rtems_rfs_block_map_grow+0x36c>
                                                   &map->blocks[singly],
                                                   upping);           
        }                                                             
        else                                                          
        {                                                             
          rc = rtems_rfs_buffer_handle_request (fs,  &map->singly_buffer,
ffc2147c:	39 08 00 08 	addi    r8,r8,8                                
ffc21480:	55 08 10 3a 	rlwinm  r8,r8,2,0,29                           
ffc21484:	7d 1f 42 14 	add     r8,r31,r8                              
ffc21488:	80 a8 00 04 	lwz     r5,4(r8)                               
ffc2148c:	7f a3 eb 78 	mr      r3,r29                                 
ffc21490:	7f 04 c3 78 	mr      r4,r24                                 
ffc21494:	38 c0 00 01 	li      r6,1                                   
ffc21498:	48 00 0a 81 	bl      ffc21f18 <rtems_rfs_buffer_handle_request>
ffc2149c:	7c 7c 1b 78 	mr      r28,r3                                 
                                                map->blocks[singly], true);
        }                                                             
                                                                      
        if (rc > 0)                                                   
ffc214a0:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc214a4:	41 9d 01 b8 	bgt-    cr7,ffc2165c <rtems_rfs_block_map_grow+0x358><== NEVER TAKEN
            return rc;                                                
          }                                                           
        }                                                             
      }                                                               
                                                                      
      rtems_rfs_block_set_number (&map->singly_buffer, direct, block);
ffc214a8:	81 3f 00 40 	lwz     r9,64(r31)                             
ffc214ac:	89 01 00 0c 	lbz     r8,12(r1)                              
ffc214b0:	81 49 00 1c 	lwz     r10,28(r9)                             
ffc214b4:	56 c9 10 3a 	rlwinm  r9,r22,2,0,29                          
ffc214b8:	7d 0a 49 ae 	stbx    r8,r10,r9                              
ffc214bc:	81 5f 00 40 	lwz     r10,64(r31)                            
ffc214c0:	a1 01 00 0c 	lhz     r8,12(r1)                              
ffc214c4:	81 4a 00 1c 	lwz     r10,28(r10)                            
ffc214c8:	7d 4a 4a 14 	add     r10,r10,r9                             
ffc214cc:	99 0a 00 01 	stb     r8,1(r10)                              
ffc214d0:	81 5f 00 40 	lwz     r10,64(r31)                            
ffc214d4:	81 0a 00 1c 	lwz     r8,28(r10)                             
ffc214d8:	81 41 00 0c 	lwz     r10,12(r1)                             
ffc214dc:	7d 08 4a 14 	add     r8,r8,r9                               
ffc214e0:	55 4a c2 3e 	rlwinm  r10,r10,24,8,31                        
ffc214e4:	99 48 00 02 	stb     r10,2(r8)                              
ffc214e8:	81 5f 00 40 	lwz     r10,64(r31)                            
ffc214ec:	81 4a 00 1c 	lwz     r10,28(r10)                            
ffc214f0:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc214f4:	81 41 00 0c 	lwz     r10,12(r1)                             
ffc214f8:	99 49 00 03 	stb     r10,3(r9)                              
ffc214fc:	9b 7f 00 38 	stb     r27,56(r31)                            
ffc21500:	80 ff 00 08 	lwz     r7,8(r31)                              
ffc21504:	80 81 00 0c 	lwz     r4,12(r1)                              
ffc21508:	4b ff fe ec 	b       ffc213f4 <rtems_rfs_block_map_grow+0xf0>
         * Doubly indirect tables are being used.                     
         */                                                           
        rtems_rfs_block_no doubly;                                    
        rtems_rfs_block_no singly_block;                              
                                                                      
        doubly  = singly / fs->blocks_per_block;                      
ffc2150c:	7e a8 53 96 	divwu   r21,r8,r10                             <== 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)                                              
ffc21510:	2f 96 00 00 	cmpwi   cr7,r22,0                              <== NOT EXECUTED
         */                                                           
        rtems_rfs_block_no doubly;                                    
        rtems_rfs_block_no singly_block;                              
                                                                      
        doubly  = singly / fs->blocks_per_block;                      
        singly %= fs->blocks_per_block;                               
ffc21514:	7d 55 51 d6 	mullw   r10,r21,r10                            <== NOT EXECUTED
ffc21518:	7e 8a 40 50 	subf    r20,r10,r8                             <== 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)                                              
ffc2151c:	40 9e 00 c0 	bne-    cr7,ffc215dc <rtems_rfs_block_map_grow+0x2d8><== NOT EXECUTED
        {                                                             
          rc = rtems_rfs_block_map_indirect_alloc (fs, map,           
ffc21520:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc21524:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc21528:	7f 05 c3 78 	mr      r5,r24                                 <== NOT EXECUTED
ffc2152c:	38 c1 00 08 	addi    r6,r1,8                                <== NOT EXECUTED
ffc21530:	38 e0 00 00 	li      r7,0                                   <== NOT EXECUTED
ffc21534:	4b ff f1 9d 	bl      ffc206d0 <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
                                                   &map->singly_buffer,
                                                   &singly_block,     
                                                   false);            
          if (rc > 0)                                                 
ffc21538:	7c 7c 1b 79 	mr.     r28,r3                                 <== NOT EXECUTED
ffc2153c:	41 81 01 20 	bgt-    ffc2165c <rtems_rfs_block_map_grow+0x358><== 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) ||                                        
ffc21540:	2f 94 00 00 	cmpwi   cr7,r20,0                              <== NOT EXECUTED
ffc21544:	41 9e 01 60 	beq-    cr7,ffc216a4 <rtems_rfs_block_map_grow+0x3a0><== NOT EXECUTED
ffc21548:	2f 95 00 00 	cmpwi   cr7,r21,0                              <== NOT EXECUTED
ffc2154c:	40 9e 00 0c 	bne-    cr7,ffc21558 <rtems_rfs_block_map_grow+0x254><== NOT EXECUTED
              ((doubly == 0) && (singly == RTEMS_RFS_INODE_BLOCKS)))  
ffc21550:	2f 94 00 05 	cmpwi   cr7,r20,5                              <== NOT EXECUTED
ffc21554:	41 9e 01 50 	beq-    cr7,ffc216a4 <rtems_rfs_block_map_grow+0x3a0><== NOT EXECUTED
              return rc;                                              
            }                                                         
          }                                                           
          else                                                        
          {                                                           
            rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
ffc21558:	3a b5 00 08 	addi    r21,r21,8                              <== NOT EXECUTED
ffc2155c:	56 b5 10 3a 	rlwinm  r21,r21,2,0,29                         <== NOT EXECUTED
ffc21560:	7e bf aa 14 	add     r21,r31,r21                            <== NOT EXECUTED
ffc21564:	80 b5 00 04 	lwz     r5,4(r21)                              <== NOT EXECUTED
ffc21568:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc2156c:	7e e4 bb 78 	mr      r4,r23                                 <== NOT EXECUTED
ffc21570:	38 c0 00 01 	li      r6,1                                   <== NOT EXECUTED
ffc21574:	48 00 09 a5 	bl      ffc21f18 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
                                                  map->blocks[doubly], true);
            if (rc > 0)                                               
ffc21578:	7c 7c 1b 79 	mr.     r28,r3                                 <== NOT EXECUTED
ffc2157c:	41 81 01 64 	bgt-    ffc216e0 <rtems_rfs_block_map_grow+0x3dc><== NOT EXECUTED
              rtems_rfs_group_bitmap_free (fs, false, block);         
              return rc;                                              
            }                                                         
          }                                                           
                                                                      
          rtems_rfs_block_set_number (&map->doubly_buffer,            
ffc21580:	81 3f 00 4c 	lwz     r9,76(r31)                             <== NOT EXECUTED
ffc21584:	56 94 10 3a 	rlwinm  r20,r20,2,0,29                         <== NOT EXECUTED
ffc21588:	89 41 00 08 	lbz     r10,8(r1)                              <== NOT EXECUTED
ffc2158c:	81 29 00 1c 	lwz     r9,28(r9)                              <== NOT EXECUTED
ffc21590:	7d 49 a1 ae 	stbx    r10,r9,r20                             <== NOT EXECUTED
ffc21594:	81 3f 00 4c 	lwz     r9,76(r31)                             <== NOT EXECUTED
ffc21598:	a1 41 00 08 	lhz     r10,8(r1)                              <== NOT EXECUTED
ffc2159c:	81 29 00 1c 	lwz     r9,28(r9)                              <== NOT EXECUTED
ffc215a0:	7d 29 a2 14 	add     r9,r9,r20                              <== NOT EXECUTED
ffc215a4:	99 49 00 01 	stb     r10,1(r9)                              <== NOT EXECUTED
ffc215a8:	81 3f 00 4c 	lwz     r9,76(r31)                             <== NOT EXECUTED
ffc215ac:	81 49 00 1c 	lwz     r10,28(r9)                             <== NOT EXECUTED
ffc215b0:	81 21 00 08 	lwz     r9,8(r1)                               <== NOT EXECUTED
ffc215b4:	7d 4a a2 14 	add     r10,r10,r20                            <== NOT EXECUTED
ffc215b8:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          <== NOT EXECUTED
ffc215bc:	99 2a 00 02 	stb     r9,2(r10)                              <== NOT EXECUTED
ffc215c0:	81 3f 00 4c 	lwz     r9,76(r31)                             <== NOT EXECUTED
ffc215c4:	81 29 00 1c 	lwz     r9,28(r9)                              <== NOT EXECUTED
ffc215c8:	7e 89 a2 14 	add     r20,r9,r20                             <== NOT EXECUTED
ffc215cc:	81 21 00 08 	lwz     r9,8(r1)                               <== NOT EXECUTED
ffc215d0:	99 34 00 03 	stb     r9,3(r20)                              <== NOT EXECUTED
ffc215d4:	9b 7f 00 44 	stb     r27,68(r31)                            <== NOT EXECUTED
ffc215d8:	4b ff fe d0 	b       ffc214a8 <rtems_rfs_block_map_grow+0x1a4><== NOT EXECUTED
                                      singly,                         
                                      singly_block);                  
        }                                                             
        else                                                          
        {                                                             
          rc = rtems_rfs_buffer_handle_request (fs,                   
ffc215dc:	3a b5 00 08 	addi    r21,r21,8                              <== NOT EXECUTED
ffc215e0:	56 b5 10 3a 	rlwinm  r21,r21,2,0,29                         <== NOT EXECUTED
ffc215e4:	7e bf aa 14 	add     r21,r31,r21                            <== NOT EXECUTED
ffc215e8:	80 b5 00 04 	lwz     r5,4(r21)                              <== NOT EXECUTED
ffc215ec:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc215f0:	7e e4 bb 78 	mr      r4,r23                                 <== NOT EXECUTED
ffc215f4:	38 c0 00 01 	li      r6,1                                   <== NOT EXECUTED
ffc215f8:	48 00 09 21 	bl      ffc21f18 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
                                                &map->doubly_buffer,  
                                                map->blocks[doubly],  
                                                true);                
          if (rc > 0)                                                 
ffc215fc:	7c 7c 1b 79 	mr.     r28,r3                                 <== NOT EXECUTED
ffc21600:	41 81 00 5c 	bgt-    ffc2165c <rtems_rfs_block_map_grow+0x358><== NOT EXECUTED
          {                                                           
            rtems_rfs_group_bitmap_free (fs, false, block);           
            return rc;                                                
          }                                                           
                                                                      
          singly_block = rtems_rfs_block_get_number (&map->doubly_buffer,
ffc21604:	81 3f 00 4c 	lwz     r9,76(r31)                             <== NOT EXECUTED
ffc21608:	56 94 10 3a 	rlwinm  r20,r20,2,0,29                         <== NOT EXECUTED
                                                     singly);         
                                                                      
          rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
ffc2160c:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
          {                                                           
            rtems_rfs_group_bitmap_free (fs, false, block);           
            return rc;                                                
          }                                                           
                                                                      
          singly_block = rtems_rfs_block_get_number (&map->doubly_buffer,
ffc21610:	81 49 00 1c 	lwz     r10,28(r9)                             <== NOT EXECUTED
                                                     singly);         
                                                                      
          rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
ffc21614:	7f 04 c3 78 	mr      r4,r24                                 <== NOT EXECUTED
          {                                                           
            rtems_rfs_group_bitmap_free (fs, false, block);           
            return rc;                                                
          }                                                           
                                                                      
          singly_block = rtems_rfs_block_get_number (&map->doubly_buffer,
ffc21618:	7c ca a0 ae 	lbzx    r6,r10,r20                             <== NOT EXECUTED
ffc2161c:	7d 2a a2 14 	add     r9,r10,r20                             <== NOT EXECUTED
ffc21620:	88 e9 00 03 	lbz     r7,3(r9)                               <== NOT EXECUTED
ffc21624:	89 09 00 01 	lbz     r8,1(r9)                               <== NOT EXECUTED
ffc21628:	89 49 00 02 	lbz     r10,2(r9)                              <== NOT EXECUTED
ffc2162c:	54 c9 c0 0e 	rlwinm  r9,r6,24,0,7                           <== NOT EXECUTED
ffc21630:	7c e9 4b 78 	or      r9,r7,r9                               <== NOT EXECUTED
ffc21634:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          <== NOT EXECUTED
ffc21638:	7d 29 43 78 	or      r9,r9,r8                               <== NOT EXECUTED
ffc2163c:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         <== NOT EXECUTED
ffc21640:	7d 29 53 78 	or      r9,r9,r10                              <== NOT EXECUTED
                                                     singly);         
                                                                      
          rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
ffc21644:	7d 25 4b 78 	mr      r5,r9                                  <== NOT EXECUTED
          {                                                           
            rtems_rfs_group_bitmap_free (fs, false, block);           
            return rc;                                                
          }                                                           
                                                                      
          singly_block = rtems_rfs_block_get_number (&map->doubly_buffer,
ffc21648:	91 21 00 08 	stw     r9,8(r1)                               <== NOT EXECUTED
                                                     singly);         
                                                                      
          rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
ffc2164c:	38 c0 00 01 	li      r6,1                                   <== NOT EXECUTED
ffc21650:	48 00 08 c9 	bl      ffc21f18 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
                                                singly_block, true);  
          if (rc > 0)                                                 
ffc21654:	7c 7c 1b 79 	mr.     r28,r3                                 <== NOT EXECUTED
ffc21658:	40 81 fe 50 	ble+    ffc214a8 <rtems_rfs_block_map_grow+0x1a4><== NOT EXECUTED
          {                                                           
            rtems_rfs_group_bitmap_free (fs, false, block);           
ffc2165c:	80 a1 00 0c 	lwz     r5,12(r1)                              <== NOT EXECUTED
ffc21660:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc21664:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc21668:	4b ff 42 e5 	bl      ffc1594c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
ffc2166c:	4b ff fd 10 	b       ffc2137c <rtems_rfs_block_map_grow+0x78><== NOT EXECUTED
           */                                                         
          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],
ffc21670:	38 c8 00 08 	addi    r6,r8,8                                
ffc21674:	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,           
ffc21678:	68 e7 00 05 	xori    r7,r7,5                                
                                                   &map->singly_buffer,
                                                   &map->blocks[singly],
ffc2167c:	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,           
ffc21680:	7c e7 00 34 	cntlzw  r7,r7                                  
ffc21684:	7f a3 eb 78 	mr      r3,r29                                 
ffc21688:	7f e4 fb 78 	mr      r4,r31                                 
ffc2168c:	7f 05 c3 78 	mr      r5,r24                                 
ffc21690:	38 c6 00 04 	addi    r6,r6,4                                
ffc21694:	54 e7 d9 7e 	rlwinm  r7,r7,27,5,31                          
ffc21698:	4b ff f0 39 	bl      ffc206d0 <rtems_rfs_block_map_indirect_alloc>
ffc2169c:	7c 7c 1b 78 	mr      r28,r3                                 
         * move the direct blocks into the table and if not this is the first
         * entry of a new block.                                      
         */                                                           
        if ((direct == 0) ||                                          
            ((singly == 0) && (direct == RTEMS_RFS_INODE_BLOCKS)))    
        {                                                             
ffc216a0:	4b ff fe 00 	b       ffc214a0 <rtems_rfs_block_map_grow+0x19c>
           */                                                         
          if ((singly == 0) ||                                        
              ((doubly == 0) && (singly == RTEMS_RFS_INODE_BLOCKS)))  
          {                                                           
            bool upping;                                              
            upping = map->size.count == fs->block_map_singly_blocks;  
ffc216a4:	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],
ffc216a8:	38 d5 00 08 	addi    r6,r21,8                               <== NOT EXECUTED
           */                                                         
          if ((singly == 0) ||                                        
              ((doubly == 0) && (singly == RTEMS_RFS_INODE_BLOCKS)))  
          {                                                           
            bool upping;                                              
            upping = map->size.count == fs->block_map_singly_blocks;  
ffc216ac:	81 3d 00 38 	lwz     r9,56(r29)                             <== NOT EXECUTED
            rc = rtems_rfs_block_map_indirect_alloc (fs, map,         
                                                     &map->doubly_buffer,
                                                     &map->blocks[doubly],
ffc216b0:	54 c6 10 3a 	rlwinm  r6,r6,2,0,29                           <== NOT EXECUTED
ffc216b4:	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,         
ffc216b8:	7c e7 4a 78 	xor     r7,r7,r9                               <== NOT EXECUTED
ffc216bc:	7c e7 00 34 	cntlzw  r7,r7                                  <== NOT EXECUTED
ffc216c0:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc216c4:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc216c8:	7e e5 bb 78 	mr      r5,r23                                 <== NOT EXECUTED
ffc216cc:	38 c6 00 04 	addi    r6,r6,4                                <== NOT EXECUTED
ffc216d0:	54 e7 d9 7e 	rlwinm  r7,r7,27,5,31                          <== NOT EXECUTED
ffc216d4:	4b ff ef fd 	bl      ffc206d0 <rtems_rfs_block_map_indirect_alloc><== NOT EXECUTED
                                                     &map->doubly_buffer,
                                                     &map->blocks[doubly],
                                                     upping);         
            if (rc > 0)                                               
ffc216d8:	7c 7c 1b 79 	mr.     r28,r3                                 <== NOT EXECUTED
ffc216dc:	40 81 fe a4 	ble+    ffc21580 <rtems_rfs_block_map_grow+0x27c><== NOT EXECUTED
          {                                                           
            rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
                                                  map->blocks[doubly], true);
            if (rc > 0)                                               
            {                                                         
              rtems_rfs_group_bitmap_free (fs, false, singly_block);  
ffc216e0:	80 a1 00 08 	lwz     r5,8(r1)                               <== NOT EXECUTED
ffc216e4:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc216e8:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc216ec:	4b ff 42 61 	bl      ffc1594c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
              rtems_rfs_group_bitmap_free (fs, false, block);         
ffc216f0:	80 a1 00 0c 	lwz     r5,12(r1)                              <== NOT EXECUTED
ffc216f4:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc216f8:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc216fc:	4b ff 42 51 	bl      ffc1594c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
ffc21700:	4b ff fc 7c 	b       ffc2137c <rtems_rfs_block_map_grow+0x78><== NOT EXECUTED
                          rtems_rfs_block_no*    new_block)           
{                                                                     
  int b;                                                              
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))               
    printf ("rtems-rfs: block-map-grow: entry: blocks=%zd count=%" PRIu32 "\n",
ffc21704:	80 bf 00 08 	lwz     r5,8(r31)                              <== NOT EXECUTED
ffc21708:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc2170c:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc21710:	38 63 d0 a8 	addi    r3,r3,-12120                           <== NOT EXECUTED
ffc21714:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc21718:	48 00 93 81 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc2171c:	4b ff fc 48 	b       ffc21364 <rtems_rfs_block_map_grow+0x60><== NOT EXECUTED
      *new_block = block;                                             
    map->last_data_block = block;                                     
    map->dirty = true;                                                
  }                                                                   
                                                                      
  return 0;                                                           
ffc21720:	3b 80 00 00 	li      r28,0                                  
ffc21724:	4b ff fc 58 	b       ffc2137c <rtems_rfs_block_map_grow+0x78>
                                                                      

ffc206d0 <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) {
ffc206d0:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc206d4:	7c 08 02 a6 	mflr    r0                                     
ffc206d8:	90 01 00 34 	stw     r0,52(r1)                              
ffc206dc:	93 c1 00 28 	stw     r30,40(r1)                             
ffc206e0:	7c 9e 23 78 	mr      r30,r4                                 
  int                  rc;                                            
  /*                                                                  
   * Save the new block locally because upping can have *block pointing to the
   * slots which are cleared when upping.                             
   */                                                                 
  rc = rtems_rfs_group_bitmap_alloc (fs, map->last_map_block, false, &new_block);
ffc206e4:	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)  
{                                                                     
ffc206e8:	93 61 00 1c 	stw     r27,28(r1)                             
ffc206ec:	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);
ffc206f0:	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)  
{                                                                     
ffc206f4:	93 a1 00 24 	stw     r29,36(r1)                             
ffc206f8:	7c bd 2b 78 	mr      r29,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);
ffc206fc:	38 a0 00 00 	li      r5,0                                   
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)  
{                                                                     
ffc20700:	93 41 00 18 	stw     r26,24(r1)                             
ffc20704:	7c fa 3b 78 	mr      r26,r7                                 
ffc20708:	93 81 00 20 	stw     r28,32(r1)                             
ffc2070c:	7c 7c 1b 78 	mr      r28,r3                                 
ffc20710:	93 e1 00 2c 	stw     r31,44(r1)                             
  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);
ffc20714:	4b ff 4f ad 	bl      ffc156c0 <rtems_rfs_group_bitmap_alloc>
  if (rc > 0)                                                         
ffc20718:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc2071c:	40 81 00 30 	ble-    ffc2074c <rtems_rfs_block_map_indirect_alloc+0x7c><== ALWAYS TAKEN
  }                                                                   
  rtems_rfs_buffer_mark_dirty (buffer);                               
  *block = new_block;                                                 
  map->last_map_block = new_block;                                    
  return 0;                                                           
}                                                                     
ffc20720:	80 01 00 34 	lwz     r0,52(r1)                              
ffc20724:	7f e3 fb 78 	mr      r3,r31                                 
ffc20728:	83 41 00 18 	lwz     r26,24(r1)                             
ffc2072c:	7c 08 03 a6 	mtlr    r0                                     
ffc20730:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc20734:	83 81 00 20 	lwz     r28,32(r1)                             
ffc20738:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc2073c:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc20740:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc20744:	38 21 00 30 	addi    r1,r1,48                               
ffc20748:	4e 80 00 20 	blr                                            
   * slots which are cleared when upping.                             
   */                                                                 
  rc = rtems_rfs_group_bitmap_alloc (fs, map->last_map_block, false, &new_block);
  if (rc > 0)                                                         
    return rc;                                                        
  rc = rtems_rfs_buffer_handle_request (fs, buffer, new_block, false);
ffc2074c:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc20750:	7f 83 e3 78 	mr      r3,r28                                 
ffc20754:	7f a4 eb 78 	mr      r4,r29                                 
ffc20758:	38 c0 00 00 	li      r6,0                                   
ffc2075c:	48 00 17 bd 	bl      ffc21f18 <rtems_rfs_buffer_handle_request>
  if (rc > 0)                                                         
ffc20760:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc20764:	40 81 00 40 	ble-    ffc207a4 <rtems_rfs_block_map_indirect_alloc+0xd4><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_group_bitmap_free (fs, false, new_block);               
ffc20768:	80 a1 00 08 	lwz     r5,8(r1)                               <== NOT EXECUTED
ffc2076c:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc20770:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc20774:	4b ff 51 d9 	bl      ffc1594c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
  }                                                                   
  rtems_rfs_buffer_mark_dirty (buffer);                               
  *block = new_block;                                                 
  map->last_map_block = new_block;                                    
  return 0;                                                           
}                                                                     
ffc20778:	80 01 00 34 	lwz     r0,52(r1)                              <== NOT EXECUTED
ffc2077c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc20780:	83 41 00 18 	lwz     r26,24(r1)                             <== NOT EXECUTED
ffc20784:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc20788:	83 61 00 1c 	lwz     r27,28(r1)                             <== NOT EXECUTED
ffc2078c:	83 81 00 20 	lwz     r28,32(r1)                             <== NOT EXECUTED
ffc20790:	83 a1 00 24 	lwz     r29,36(r1)                             <== NOT EXECUTED
ffc20794:	83 c1 00 28 	lwz     r30,40(r1)                             <== NOT EXECUTED
ffc20798:	83 e1 00 2c 	lwz     r31,44(r1)                             <== NOT EXECUTED
ffc2079c:	38 21 00 30 	addi    r1,r1,48                               <== NOT EXECUTED
ffc207a0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_group_bitmap_free (fs, false, new_block);               
    return rc;                                                        
  }                                                                   
  memset (rtems_rfs_buffer_data (buffer), 0xff, rtems_rfs_fs_block_size (fs));
ffc207a4:	81 3d 00 08 	lwz     r9,8(r29)                              
ffc207a8:	38 80 00 ff 	li      r4,255                                 
ffc207ac:	80 bc 00 08 	lwz     r5,8(r28)                              
ffc207b0:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc207b4:	48 00 a0 89 	bl      ffc2a83c <memset>                      
  if (upping)                                                         
ffc207b8:	2f 9a 00 00 	cmpwi   cr7,r26,0                              
ffc207bc:	40 9e 00 20 	bne-    cr7,ffc207dc <rtems_rfs_block_map_indirect_alloc+0x10c><== ALWAYS TAKEN
    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;                                                 
ffc207c0:	81 21 00 08 	lwz     r9,8(r1)                               
              map->size.count);                                       
    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);                               
ffc207c4:	39 40 00 01 	li      r10,1                                  
ffc207c8:	99 5d 00 00 	stb     r10,0(r29)                             
  *block = new_block;                                                 
  map->last_map_block = new_block;                                    
  return 0;                                                           
ffc207cc:	3b e0 00 00 	li      r31,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;                                                 
ffc207d0:	91 3b 00 00 	stw     r9,0(r27)                              
  map->last_map_block = new_block;                                    
ffc207d4:	91 3e 00 1c 	stw     r9,28(r30)                             
ffc207d8:	4b ff ff 48 	b       ffc20720 <rtems_rfs_block_map_indirect_alloc+0x50>
  }                                                                   
  memset (rtems_rfs_buffer_data (buffer), 0xff, rtems_rfs_fs_block_size (fs));
  if (upping)                                                         
  {                                                                   
    int b;                                                            
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))             
ffc207dc:	38 60 00 00 	li      r3,0                                   
ffc207e0:	38 80 20 00 	li      r4,8192                                
ffc207e4:	4b ff 76 b9 	bl      ffc17e9c <rtems_rfs_trace>             
ffc207e8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc207ec:	40 9e 00 94 	bne-    cr7,ffc20880 <rtems_rfs_block_map_indirect_alloc+0x1b0><== NEVER TAKEN
      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]);         
ffc207f0:	39 00 00 05 	li      r8,5                                   
ffc207f4:	7d 09 03 a6 	mtctr   r8                                     
 * @param block The block number of the indirect block allocated.     
 * @param upping True is upping the map to the next indirect level.   
 * @return int The error number (errno). No error if 0.               
 */                                                                   
static int                                                            
rtems_rfs_block_map_indirect_alloc (rtems_rfs_file_system*   fs,      
ffc207f8:	39 5e 00 20 	addi    r10,r30,32                             
ffc207fc:	39 20 00 00 	li      r9,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]);         
ffc20800:	38 c0 00 01 	li      r6,1                                   
ffc20804:	81 1d 00 08 	lwz     r8,8(r29)                              
ffc20808:	84 ea 00 04 	lwzu    r7,4(r10)                              
ffc2080c:	81 08 00 1c 	lwz     r8,28(r8)                              
ffc20810:	54 e7 46 3e 	rlwinm  r7,r7,8,24,31                          
ffc20814:	7c e8 49 ae 	stbx    r7,r8,r9                               
ffc20818:	81 1d 00 08 	lwz     r8,8(r29)                              
ffc2081c:	a0 ea 00 00 	lhz     r7,0(r10)                              
ffc20820:	81 08 00 1c 	lwz     r8,28(r8)                              
ffc20824:	7d 08 4a 14 	add     r8,r8,r9                               
ffc20828:	98 e8 00 01 	stb     r7,1(r8)                               
ffc2082c:	81 1d 00 08 	lwz     r8,8(r29)                              
ffc20830:	80 ea 00 00 	lwz     r7,0(r10)                              
ffc20834:	81 08 00 1c 	lwz     r8,28(r8)                              
ffc20838:	54 e7 c2 3e 	rlwinm  r7,r7,24,8,31                          
ffc2083c:	7d 08 4a 14 	add     r8,r8,r9                               
ffc20840:	98 e8 00 02 	stb     r7,2(r8)                               
ffc20844:	81 1d 00 08 	lwz     r8,8(r29)                              
ffc20848:	80 ea 00 00 	lwz     r7,0(r10)                              
ffc2084c:	81 08 00 1c 	lwz     r8,28(r8)                              
ffc20850:	7d 08 4a 14 	add     r8,r8,r9                               
ffc20854:	98 e8 00 03 	stb     r7,3(r8)                               
ffc20858:	39 29 00 04 	addi    r9,r9,4                                
ffc2085c:	98 dd 00 00 	stb     r6,0(r29)                              
  {                                                                   
    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++)                      
ffc20860:	42 00 ff a4 	bdnz+   ffc20804 <rtems_rfs_block_map_indirect_alloc+0x134>
      rtems_rfs_block_set_number (buffer, b, map->blocks[b]);         
    memset (map->blocks, 0, sizeof (map->blocks));                    
ffc20864:	39 20 00 00 	li      r9,0                                   
ffc20868:	91 3e 00 24 	stw     r9,36(r30)                             
ffc2086c:	91 3e 00 28 	stw     r9,40(r30)                             
ffc20870:	91 3e 00 2c 	stw     r9,44(r30)                             
ffc20874:	91 3e 00 30 	stw     r9,48(r30)                             
ffc20878:	91 3e 00 34 	stw     r9,52(r30)                             
ffc2087c:	4b ff ff 44 	b       ffc207c0 <rtems_rfs_block_map_indirect_alloc+0xf0>
  memset (rtems_rfs_buffer_data (buffer), 0xff, rtems_rfs_fs_block_size (fs));
  if (upping)                                                         
  {                                                                   
    int b;                                                            
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_GROW))             
      printf ("rtems-rfs: block-map-grow: upping: block-count=%" PRId32 "\n",
ffc20880:	80 9e 00 08 	lwz     r4,8(r30)                              <== NOT EXECUTED
ffc20884:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc20888:	38 63 d0 28 	addi    r3,r3,-12248                           <== NOT EXECUTED
ffc2088c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc20890:	48 00 a2 09 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc20894:	4b ff ff 5c 	b       ffc207f0 <rtems_rfs_block_map_indirect_alloc+0x120><== NOT EXECUTED
                                                                      

ffc209c0 <rtems_rfs_block_map_indirect_shrink.isra.12>: * 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) ||
ffc209c0:	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,     
ffc209c4:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc209c8:	7c 08 02 a6 	mflr    r0                                     
ffc209cc:	7c 6a 1b 78 	mr      r10,r3                                 
ffc209d0:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc209d4:	7c 9f 23 78 	mr      r31,r4                                 
ffc209d8:	90 01 00 14 	stw     r0,20(r1)                              
ffc209dc:	93 c1 00 08 	stw     r30,8(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) ||                                                 
ffc209e0:	41 82 00 30 	beq-    ffc20a10 <rtems_rfs_block_map_indirect_shrink.isra.12+0x50><== NEVER TAKEN
ffc209e4:	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;                                                         
ffc209e8:	38 60 00 00 	li      r3,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) ||                                                 
ffc209ec:	40 9e 00 0c 	bne-    cr7,ffc209f8 <rtems_rfs_block_map_indirect_shrink.isra.12+0x38><== NEVER TAKEN
      ((indirect == 0) && (index == RTEMS_RFS_INODE_BLOCKS)))         
ffc209f0:	2f 87 00 05 	cmpwi   cr7,r7,5                               
ffc209f4:	41 9e 00 64 	beq-    cr7,ffc20a58 <rtems_rfs_block_map_indirect_shrink.isra.12+0x98>
                                                                      
    map->last_map_block = block_to_free;                              
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc209f8:	80 01 00 14 	lwz     r0,20(r1)                              
ffc209fc:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc20a00:	7c 08 03 a6 	mtlr    r0                                     
ffc20a04:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc20a08:	38 21 00 10 	addi    r1,r1,16                               
ffc20a0c:	4e 80 00 20 	blr                                            
   * 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];         
ffc20a10:	38 c6 00 08 	addi    r6,r6,8                                <== NOT EXECUTED
ffc20a14:	54 c6 10 3a 	rlwinm  r6,r6,2,0,29                           <== NOT EXECUTED
ffc20a18:	7c c4 32 14 	add     r6,r4,r6                               <== NOT EXECUTED
ffc20a1c:	83 c6 00 04 	lwz     r30,4(r6)                              <== NOT EXECUTED
    else                                                              
    {                                                                 
      /*                                                              
       * One less singly indirect block in the inode.                 
       */                                                             
      map->blocks[indirect] = 0;                                      
ffc20a20:	90 e6 00 04 	stw     r7,4(r6)                               <== NOT EXECUTED
    }                                                                 
                                                                      
    rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);      
ffc20a24:	7d 43 53 78 	mr      r3,r10                                 
ffc20a28:	38 80 00 00 	li      r4,0                                   
ffc20a2c:	7f c5 f3 78 	mr      r5,r30                                 
ffc20a30:	4b ff 4f 1d 	bl      ffc1594c <rtems_rfs_group_bitmap_free> 
    if (rc > 0)                                                       
ffc20a34:	2c 03 00 00 	cmpwi   r3,0                                   
ffc20a38:	41 81 ff c0 	bgt+    ffc209f8 <rtems_rfs_block_map_indirect_shrink.isra.12+0x38><== NEVER TAKEN
                                                                      
    map->last_map_block = block_to_free;                              
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc20a3c:	80 01 00 14 	lwz     r0,20(r1)                              
                                                                      
    rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);      
    if (rc > 0)                                                       
      return rc;                                                      
                                                                      
    map->last_map_block = block_to_free;                              
ffc20a40:	93 df 00 1c 	stw     r30,28(r31)                            
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc20a44:	7c 08 03 a6 	mtlr    r0                                     
ffc20a48:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc20a4c:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc20a50:	38 21 00 10 	addi    r1,r1,16                               
ffc20a54:	4e 80 00 20 	blr                                            
   * 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];         
ffc20a58:	38 e0 00 05 	li      r7,5                                   
ffc20a5c:	81 25 00 00 	lwz     r9,0(r5)                               
ffc20a60:	7c e9 03 a6 	mtctr   r7                                     
ffc20a64:	83 c4 00 24 	lwz     r30,36(r4)                             
ffc20a68:	81 29 00 1c 	lwz     r9,28(r9)                              
ffc20a6c:	39 00 00 00 	li      r8,0                                   
      /*                                                              
       * 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);      
ffc20a70:	88 89 00 00 	lbz     r4,0(r9)                               
ffc20a74:	88 c9 00 01 	lbz     r6,1(r9)                               
ffc20a78:	88 e9 00 03 	lbz     r7,3(r9)                               
ffc20a7c:	54 84 c0 0e 	rlwinm  r4,r4,24,0,7                           
ffc20a80:	88 a9 00 02 	lbz     r5,2(r9)                               
ffc20a84:	54 c6 80 1e 	rlwinm  r6,r6,16,0,15                          
ffc20a88:	7c 86 33 78 	or      r6,r4,r6                               
ffc20a8c:	7c c6 3b 78 	or      r6,r6,r7                               
ffc20a90:	54 a5 40 2e 	rlwinm  r5,r5,8,0,23                           
 * @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,     
ffc20a94:	7c ff 42 14 	add     r7,r31,r8                              
      /*                                                              
       * 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);      
ffc20a98:	7c c6 2b 78 	or      r6,r6,r5                               
ffc20a9c:	90 c7 00 24 	stw     r6,36(r7)                              
ffc20aa0:	39 29 00 04 	addi    r9,r9,4                                
ffc20aa4:	39 08 00 04 	addi    r8,r8,4                                
    {                                                                 
      /*                                                              
       * Move to direct inode access.                                 
       */                                                             
      int b;                                                          
      for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                    
ffc20aa8:	42 00 ff c8 	bdnz+   ffc20a70 <rtems_rfs_block_map_indirect_shrink.isra.12+0xb0>
ffc20aac:	4b ff ff 78 	b       ffc20a24 <rtems_rfs_block_map_indirect_shrink.isra.12+0x64>
                                                                      

ffc20c5c <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) {
ffc20c5c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc20c60:	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;                                                 
ffc20c64:	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)                
{                                                                     
ffc20c68:	93 c1 00 18 	stw     r30,24(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;                                                  
ffc20c6c:	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)                
{                                                                     
ffc20c70:	93 61 00 0c 	stw     r27,12(r1)                             
ffc20c74:	93 81 00 10 	stw     r28,16(r1)                             
ffc20c78:	7c 9c 23 78 	mr      r28,r4                                 
ffc20c7c:	93 a1 00 14 	stw     r29,20(r1)                             
ffc20c80:	7c 7d 1b 78 	mr      r29,r3                                 
ffc20c84:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc20c88:	7c bf 2b 78 	mr      r31,r5                                 
ffc20c8c:	90 01 00 24 	stw     r0,36(r1)                              
   * 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;                                                 
ffc20c90:	99 25 00 00 	stb     r9,0(r5)                               
  map->inode = NULL;                                                  
ffc20c94:	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;                                                    
ffc20c98:	93 c5 00 08 	stw     r30,8(r5)                              
  size->offset = 0;                                                   
ffc20c9c:	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;                                                      
ffc20ca0:	93 c5 00 10 	stw     r30,16(r5)                             
  bpos->boff = 0;                                                     
ffc20ca4:	93 c5 00 14 	stw     r30,20(r5)                             
  bpos->block = 0;                                                    
ffc20ca8:	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;                                              
ffc20cac:	9b c5 00 38 	stb     r30,56(r5)                             
  handle->bnum  = 0;                                                  
ffc20cb0:	93 c5 00 3c 	stw     r30,60(r5)                             
  handle->buffer = NULL;                                              
ffc20cb4:	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;                                              
ffc20cb8:	9b c5 00 44 	stb     r30,68(r5)                             
  handle->bnum  = 0;                                                  
ffc20cbc:	93 c5 00 48 	stw     r30,72(r5)                             
  handle->buffer = NULL;                                              
ffc20cc0:	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);                              
ffc20cc4:	4b ff 50 15 	bl      ffc15cd8 <rtems_rfs_inode_load>        
  if (rc > 0)                                                         
ffc20cc8:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc20ccc:	41 81 01 24 	bgt-    ffc20df0 <rtems_rfs_block_map_open+0x194><== 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++)                        
ffc20cd0:	39 20 00 05 	li      r9,5                                   
                                                                      
  /*                                                                  
   * Extract the block and block count data from the inode into the targets
   * byte order.                                                      
   */                                                                 
  map->inode = inode;                                                 
ffc20cd4:	93 9f 00 04 	stw     r28,4(r31)                             
  for (b = 0; b < RTEMS_RFS_INODE_BLOCKS; b++)                        
ffc20cd8:	7d 29 03 a6 	mtctr   r9                                     
  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,                 
ffc20cdc:	38 df 00 20 	addi    r6,r31,32                              
ffc20ce0:	81 5c 00 0c 	lwz     r10,12(r28)                            
  /*                                                                  
   * 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++)                        
ffc20ce4:	39 00 00 00 	li      r8,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]);      
ffc20ce8:	38 e8 00 04 	addi    r7,r8,4                                
ffc20cec:	54 e7 10 3a 	rlwinm  r7,r7,2,0,29                           
ffc20cf0:	7c ea 3a 14 	add     r7,r10,r7                              
ffc20cf4:	89 67 00 0c 	lbz     r11,12(r7)                             
ffc20cf8:	39 08 00 01 	addi    r8,r8,1                                
ffc20cfc:	88 07 00 0d 	lbz     r0,13(r7)                              
ffc20d00:	88 a7 00 0f 	lbz     r5,15(r7)                              
ffc20d04:	55 6b c0 0e 	rlwinm  r11,r11,24,0,7                         
ffc20d08:	88 e7 00 0e 	lbz     r7,14(r7)                              
ffc20d0c:	54 09 80 1e 	rlwinm  r9,r0,16,0,15                          
ffc20d10:	7d 69 4b 78 	or      r9,r11,r9                              
ffc20d14:	7d 29 2b 78 	or      r9,r9,r5                               
ffc20d18:	54 e7 40 2e 	rlwinm  r7,r7,8,0,23                           
ffc20d1c:	7d 29 3b 78 	or      r9,r9,r7                               
    map->blocks[b] = rtems_rfs_inode_get_block (inode, b);            
ffc20d20:	95 26 00 04 	stwu    r9,4(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++)                        
ffc20d24:	42 00 ff c4 	bdnz+   ffc20ce8 <rtems_rfs_block_map_open+0x8c>
 * @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);             
ffc20d28:	88 ca 00 0c 	lbz     r6,12(r10)                             
  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);                     
ffc20d2c:	7f a3 eb 78 	mr      r3,r29                                 
ffc20d30:	89 2a 00 0d 	lbz     r9,13(r10)                             
ffc20d34:	7f 84 e3 78 	mr      r4,r28                                 
ffc20d38:	88 ea 00 0f 	lbz     r7,15(r10)                             
ffc20d3c:	54 c6 c0 0e 	rlwinm  r6,r6,24,0,7                           
ffc20d40:	89 0a 00 0e 	lbz     r8,14(r10)                             
ffc20d44:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc20d48:	7c c9 4b 78 	or      r9,r6,r9                               
                                                                      
  return rc;                                                          
}                                                                     
ffc20d4c:	80 01 00 24 	lwz     r0,36(r1)                              
ffc20d50:	7d 29 3b 78 	or      r9,r9,r7                               
ffc20d54:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc20d58:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
ffc20d5c:	7c 08 03 a6 	mtlr    r0                                     
ffc20d60:	7d 29 43 78 	or      r9,r9,r8                               
ffc20d64:	83 81 00 10 	lwz     r28,16(r1)                             
   * 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);          
ffc20d68:	91 3f 00 08 	stw     r9,8(r31)                              
  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);                     
ffc20d6c:	38 a0 00 00 	li      r5,0                                   
 * @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);            
ffc20d70:	89 2a 00 0a 	lbz     r9,10(r10)                             
ffc20d74:	89 0a 00 0b 	lbz     r8,11(r10)                             
ffc20d78:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
                                                                      
  return rc;                                                          
}                                                                     
ffc20d7c:	83 a1 00 14 	lwz     r29,20(r1)                             
   */                                                                 
  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);          
  map->size.offset = rtems_rfs_inode_get_block_offset (inode);        
ffc20d80:	7d 29 43 78 	or      r9,r9,r8                               
  map->last_data_block = rtems_rfs_inode_get_last_data_block (inode); 
                                                                      
  rc = rtems_rfs_inode_unload (fs, inode, false);                     
                                                                      
  return rc;                                                          
}                                                                     
ffc20d84:	83 c1 00 18 	lwz     r30,24(r1)                             
   */                                                                 
  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);          
  map->size.offset = rtems_rfs_inode_get_block_offset (inode);        
ffc20d88:	91 3f 00 0c 	stw     r9,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);          
ffc20d8c:	88 ca 00 30 	lbz     r6,48(r10)                             
ffc20d90:	89 2a 00 31 	lbz     r9,49(r10)                             
ffc20d94:	88 ea 00 33 	lbz     r7,51(r10)                             
ffc20d98:	54 c6 c0 0e 	rlwinm  r6,r6,24,0,7                           
ffc20d9c:	89 0a 00 32 	lbz     r8,50(r10)                             
ffc20da0:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc20da4:	7c c9 4b 78 	or      r9,r6,r9                               
ffc20da8:	7d 29 3b 78 	or      r9,r9,r7                               
ffc20dac:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
ffc20db0:	7d 29 43 78 	or      r9,r9,r8                               
  map->last_map_block = rtems_rfs_inode_get_last_map_block (inode);   
ffc20db4:	91 3f 00 1c 	stw     r9,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);         
ffc20db8:	88 ea 00 34 	lbz     r7,52(r10)                             
ffc20dbc:	89 2a 00 35 	lbz     r9,53(r10)                             
ffc20dc0:	89 0a 00 37 	lbz     r8,55(r10)                             
ffc20dc4:	54 e7 c0 0e 	rlwinm  r7,r7,24,0,7                           
ffc20dc8:	89 4a 00 36 	lbz     r10,54(r10)                            
ffc20dcc:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc20dd0:	7c e9 4b 78 	or      r9,r7,r9                               
ffc20dd4:	7d 29 43 78 	or      r9,r9,r8                               
ffc20dd8:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc20ddc:	7d 29 53 78 	or      r9,r9,r10                              
  map->last_data_block = rtems_rfs_inode_get_last_data_block (inode); 
ffc20de0:	91 3f 00 20 	stw     r9,32(r31)                             
                                                                      
  rc = rtems_rfs_inode_unload (fs, inode, false);                     
                                                                      
  return rc;                                                          
}                                                                     
ffc20de4:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc20de8:	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);                     
ffc20dec:	4b ff 50 e0 	b       ffc15ecc <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);                       
ffc20df0:	38 9f 00 38 	addi    r4,r31,56                              <== NOT EXECUTED
ffc20df4:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc20df8:	48 00 0f 0d 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
ffc20dfc:	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);                       
ffc20e00:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc20e04:	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);                       
ffc20e08:	38 9f 00 44 	addi    r4,r31,68                              <== NOT EXECUTED
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc20e0c:	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);                       
ffc20e10:	48 00 0e f5 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
                                                                      
  return rc;                                                          
}                                                                     
ffc20e14:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
  handle->dirty = false;                                              
ffc20e18:	9b df 00 44 	stb     r30,68(r31)                            <== NOT EXECUTED
ffc20e1c:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc20e20:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc20e24:	93 df 00 48 	stw     r30,72(r31)                            <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc20e28:	93 df 00 4c 	stw     r30,76(r31)                            <== NOT EXECUTED
ffc20e2c:	83 61 00 0c 	lwz     r27,12(r1)                             <== NOT EXECUTED
ffc20e30:	83 81 00 10 	lwz     r28,16(r1)                             <== NOT EXECUTED
ffc20e34:	83 a1 00 14 	lwz     r29,20(r1)                             <== NOT EXECUTED
ffc20e38:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc20e3c:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc20e40:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc20e44:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc21728 <rtems_rfs_block_map_shrink>: int rtems_rfs_block_map_shrink (rtems_rfs_file_system* fs, rtems_rfs_block_map* map, size_t blocks) {
ffc21728:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc2172c:	7c 08 02 a6 	mflr    r0                                     
ffc21730:	93 c1 00 38 	stw     r30,56(r1)                             
ffc21734:	7c 7e 1b 78 	mr      r30,r3                                 
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_SHRINK))             
ffc21738:	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)            
{                                                                     
ffc2173c:	93 e1 00 3c 	stw     r31,60(r1)                             
ffc21740:	7c 9f 23 78 	mr      r31,r4                                 
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_SHRINK))             
ffc21744:	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)            
{                                                                     
ffc21748:	93 a1 00 34 	stw     r29,52(r1)                             
ffc2174c:	7c bd 2b 78 	mr      r29,r5                                 
ffc21750:	90 01 00 44 	stw     r0,68(r1)                              
ffc21754:	92 41 00 08 	stw     r18,8(r1)                              
ffc21758:	92 61 00 0c 	stw     r19,12(r1)                             
ffc2175c:	92 81 00 10 	stw     r20,16(r1)                             
ffc21760:	92 a1 00 14 	stw     r21,20(r1)                             
ffc21764:	92 c1 00 18 	stw     r22,24(r1)                             
ffc21768:	92 e1 00 1c 	stw     r23,28(r1)                             
ffc2176c:	93 01 00 20 	stw     r24,32(r1)                             
ffc21770:	93 21 00 24 	stw     r25,36(r1)                             
ffc21774:	93 41 00 28 	stw     r26,40(r1)                             
ffc21778:	93 61 00 2c 	stw     r27,44(r1)                             
ffc2177c:	93 81 00 30 	stw     r28,48(r1)                             
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_SHRINK))             
ffc21780:	4b ff 67 1d 	bl      ffc17e9c <rtems_rfs_trace>             
ffc21784:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc21788:	40 9e 02 d0 	bne-    cr7,ffc21a58 <rtems_rfs_block_map_shrink+0x330><== NEVER TAKEN
    printf ("rtems-rfs: block-map-shrink: entry: blocks=%zd count=%" PRIu32 "\n",
            blocks, map->size.count);                                 
                                                                      
  if (map->size.count == 0)                                           
ffc2178c:	81 5f 00 08 	lwz     r10,8(r31)                             
ffc21790:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc21794:	41 9e 02 b4 	beq-    cr7,ffc21a48 <rtems_rfs_block_map_shrink+0x320>
ffc21798:	7f 9d 50 40 	cmplw   cr7,r29,r10                            
ffc2179c:	41 9d 02 b4 	bgt-    cr7,ffc21a50 <rtems_rfs_block_map_shrink+0x328><== NEVER TAKEN
    return 0;                                                         
                                                                      
  if (blocks > map->size.count)                                       
    blocks = map->size.count;                                         
                                                                      
  while (blocks)                                                      
ffc217a0:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc217a4:	41 9e 02 d0 	beq-    cr7,ffc21a74 <rtems_rfs_block_map_shrink+0x34c><== NEVER TAKEN
      /*                                                              
       * We have less than RTEMS_RFS_INODE_BLOCKS so they are held in the
       * inode.                                                       
       */                                                             
      block_to_free = map->blocks[block];                             
      map->blocks[block] = 0;                                         
ffc217a8:	3b 40 00 00 	li      r26,0                                  
        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,
ffc217ac:	3a ff 00 44 	addi    r23,r31,68                             
                                             doubly_singly);          
                                                                      
        /*                                                            
         * Read the singly indirect table and get the block number.   
         */                                                           
        rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
ffc217b0:	3b 1f 00 38 	addi    r24,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);       
}                                                                     
ffc217b4:	3a bf 00 4c 	addi    r21,r31,76                             
ffc217b8:	3a df 00 40 	addi    r22,r31,64                             
    if (rc > 0)                                                       
      return rc;                                                      
    map->size.count--;                                                
    map->size.offset = 0;                                             
    map->last_data_block = block_to_free;                             
    map->dirty = true;                                                
ffc217bc:	3b 20 00 01 	li      r25,1                                  
ffc217c0:	48 00 00 50 	b       ffc21810 <rtems_rfs_block_map_shrink+0xe8>
    {                                                                 
      /*                                                              
       * We have less than RTEMS_RFS_INODE_BLOCKS so they are held in the
       * inode.                                                       
       */                                                             
      block_to_free = map->blocks[block];                             
ffc217c4:	39 4a 00 07 	addi    r10,r10,7                              
ffc217c8:	55 4a 10 3a 	rlwinm  r10,r10,2,0,29                         
ffc217cc:	7d 5f 52 14 	add     r10,r31,r10                            
ffc217d0:	83 8a 00 04 	lwz     r28,4(r10)                             
      map->blocks[block] = 0;                                         
ffc217d4:	93 4a 00 04 	stw     r26,4(r10)                             
      {                                                               
        rc = EIO;                                                     
        break;                                                        
      }                                                               
    }                                                                 
    rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);      
ffc217d8:	7f c3 f3 78 	mr      r3,r30                                 
ffc217dc:	38 80 00 00 	li      r4,0                                   
ffc217e0:	7f 85 e3 78 	mr      r5,r28                                 
ffc217e4:	4b ff 41 69 	bl      ffc1594c <rtems_rfs_group_bitmap_free> 
    if (rc > 0)                                                       
ffc217e8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc217ec:	41 81 01 5c 	bgt-    ffc21948 <rtems_rfs_block_map_shrink+0x220><== NEVER TAKEN
    return 0;                                                         
                                                                      
  if (blocks > map->size.count)                                       
    blocks = map->size.count;                                         
                                                                      
  while (blocks)                                                      
ffc217f0:	37 bd ff ff 	addic.  r29,r29,-1                             
      }                                                               
    }                                                                 
    rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);      
    if (rc > 0)                                                       
      return rc;                                                      
    map->size.count--;                                                
ffc217f4:	81 5f 00 08 	lwz     r10,8(r31)                             
    map->size.offset = 0;                                             
ffc217f8:	93 5f 00 0c 	stw     r26,12(r31)                            
      }                                                               
    }                                                                 
    rc = rtems_rfs_group_bitmap_free (fs, false, block_to_free);      
    if (rc > 0)                                                       
      return rc;                                                      
    map->size.count--;                                                
ffc217fc:	39 4a ff ff 	addi    r10,r10,-1                             
ffc21800:	91 5f 00 08 	stw     r10,8(r31)                             
    map->size.offset = 0;                                             
    map->last_data_block = block_to_free;                             
ffc21804:	93 9f 00 20 	stw     r28,32(r31)                            
    map->dirty = true;                                                
ffc21808:	9b 3f 00 00 	stb     r25,0(r31)                             
    return 0;                                                         
                                                                      
  if (blocks > map->size.count)                                       
    blocks = map->size.count;                                         
                                                                      
  while (blocks)                                                      
ffc2180c:	41 82 02 08 	beq-    ffc21a14 <rtems_rfs_block_map_shrink+0x2ec>
  {                                                                   
    rtems_rfs_block_no block;                                         
    rtems_rfs_block_no block_to_free;                                 
    int                rc;                                            
                                                                      
    block = map->size.count - 1;                                      
ffc21810:	39 2a ff ff 	addi    r9,r10,-1                              
                                                                      
    if (block < RTEMS_RFS_INODE_BLOCKS)                               
ffc21814:	2b 89 00 04 	cmplwi  cr7,r9,4                               
ffc21818:	40 bd ff ac 	ble-    cr7,ffc217c4 <rtems_rfs_block_map_shrink+0x9c>
       * table of block numbers.                                      
       */                                                             
      rtems_rfs_block_no direct;                                      
      rtems_rfs_block_no singly;                                      
                                                                      
      direct = block % fs->blocks_per_block;                          
ffc2181c:	81 1e 00 34 	lwz     r8,52(r30)                             
      singly = block / fs->blocks_per_block;                          
                                                                      
      if (block < fs->block_map_singly_blocks)                        
ffc21820:	80 fe 00 38 	lwz     r7,56(r30)                             
       * table of block numbers.                                      
       */                                                             
      rtems_rfs_block_no direct;                                      
      rtems_rfs_block_no singly;                                      
                                                                      
      direct = block % fs->blocks_per_block;                          
ffc21824:	7f 69 43 96 	divwu   r27,r9,r8                              
      singly = block / fs->blocks_per_block;                          
                                                                      
      if (block < fs->block_map_singly_blocks)                        
ffc21828:	7f 89 38 40 	cmplw   cr7,r9,r7                              
       * table of block numbers.                                      
       */                                                             
      rtems_rfs_block_no direct;                                      
      rtems_rfs_block_no singly;                                      
                                                                      
      direct = block % fs->blocks_per_block;                          
ffc2182c:	7e 9b 41 d6 	mullw   r20,r27,r8                             
ffc21830:	7e 94 48 50 	subf    r20,r20,r9                             
      singly = block / fs->blocks_per_block;                          
                                                                      
      if (block < fs->block_map_singly_blocks)                        
ffc21834:	41 9c 01 5c 	blt-    cr7,ffc21990 <rtems_rfs_block_map_shrink+0x268><== ALWAYS TAKEN
        rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
                                                  singly, direct);    
        if (rc)                                                       
          return rc;                                                  
      }                                                               
      else if (block < fs->block_map_doubly_blocks)                   
ffc21838:	80 fe 00 3c 	lwz     r7,60(r30)                             <== NOT EXECUTED
ffc2183c:	7f 89 38 40 	cmplw   cr7,r9,r7                              <== NOT EXECUTED
ffc21840:	40 9c 01 d4 	bge-    cr7,ffc21a14 <rtems_rfs_block_map_shrink+0x2ec><== 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;                
ffc21844:	7e 7b 43 96 	divwu   r19,r27,r8                             <== NOT EXECUTED
        doubly_singly = singly % fs->blocks_per_block;                
                                                                      
        rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
ffc21848:	39 33 00 08 	addi    r9,r19,8                               <== NOT EXECUTED
ffc2184c:	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;                
ffc21850:	7d 13 41 d6 	mullw   r8,r19,r8                              <== NOT EXECUTED
                                                                      
        rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
ffc21854:	7d 3f 4a 14 	add     r9,r31,r9                              <== NOT EXECUTED
ffc21858:	80 a9 00 04 	lwz     r5,4(r9)                               <== NOT EXECUTED
ffc2185c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc21860:	7e e4 bb 78 	mr      r4,r23                                 <== NOT EXECUTED
ffc21864:	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;                
ffc21868:	7f 68 d8 50 	subf    r27,r8,r27                             <== NOT EXECUTED
                                                                      
        rc = rtems_rfs_buffer_handle_request (fs, &map->doubly_buffer,
ffc2186c:	48 00 06 ad 	bl      ffc21f18 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
                                              map->blocks[doubly], true);
        if (rc > 0)                                                   
ffc21870:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc21874:	41 81 00 d4 	bgt-    ffc21948 <rtems_rfs_block_map_shrink+0x220><== NOT EXECUTED
          return rc;                                                  
                                                                      
        singly = rtems_rfs_block_get_number (&map->doubly_buffer,     
ffc21878:	81 3f 00 4c 	lwz     r9,76(r31)                             <== NOT EXECUTED
ffc2187c:	57 6a 10 3a 	rlwinm  r10,r27,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,
ffc21880:	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,     
ffc21884:	80 c9 00 1c 	lwz     r6,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,
ffc21888:	7f 04 c3 78 	mr      r4,r24                                 <== 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,     
ffc2188c:	7d 26 52 14 	add     r9,r6,r10                              <== NOT EXECUTED
ffc21890:	7e 46 50 ae 	lbzx    r18,r6,r10                             <== NOT EXECUTED
ffc21894:	89 09 00 03 	lbz     r8,3(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,
ffc21898:	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,     
ffc2189c:	89 49 00 01 	lbz     r10,1(r9)                              <== NOT EXECUTED
ffc218a0:	56 52 c0 0e 	rlwinm  r18,r18,24,0,7                         <== NOT EXECUTED
ffc218a4:	89 29 00 02 	lbz     r9,2(r9)                               <== NOT EXECUTED
ffc218a8:	7d 12 93 78 	or      r18,r8,r18                             <== NOT EXECUTED
ffc218ac:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        <== NOT EXECUTED
ffc218b0:	7e 52 53 78 	or      r18,r18,r10                            <== NOT EXECUTED
ffc218b4:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           <== NOT EXECUTED
ffc218b8:	7e 52 4b 78 	or      r18,r18,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,
ffc218bc:	7e 45 93 78 	mr      r5,r18                                 <== NOT EXECUTED
ffc218c0:	48 00 06 59 	bl      ffc21f18 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
                                              singly, true);          
        if (rc > 0)                                                   
ffc218c4:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc218c8:	41 81 00 80 	bgt-    ffc21948 <rtems_rfs_block_map_shrink+0x220><== NOT EXECUTED
          return rc;                                                  
                                                                      
        block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
ffc218cc:	81 3f 00 40 	lwz     r9,64(r31)                             <== NOT EXECUTED
ffc218d0:	56 8a 10 3a 	rlwinm  r10,r20,2,0,29                         <== NOT EXECUTED
                                                    direct);          
                                                                      
        if (direct == 0)                                              
ffc218d4:	2f 94 00 00 	cmpwi   cr7,r20,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,
ffc218d8:	81 09 00 1c 	lwz     r8,28(r9)                              <== NOT EXECUTED
ffc218dc:	7d 28 52 14 	add     r9,r8,r10                              <== NOT EXECUTED
ffc218e0:	7f 88 50 ae 	lbzx    r28,r8,r10                             <== NOT EXECUTED
ffc218e4:	89 09 00 03 	lbz     r8,3(r9)                               <== NOT EXECUTED
ffc218e8:	89 49 00 01 	lbz     r10,1(r9)                              <== NOT EXECUTED
ffc218ec:	57 9c c0 0e 	rlwinm  r28,r28,24,0,7                         <== NOT EXECUTED
ffc218f0:	89 29 00 02 	lbz     r9,2(r9)                               <== NOT EXECUTED
ffc218f4:	7d 1c e3 78 	or      r28,r8,r28                             <== NOT EXECUTED
ffc218f8:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        <== NOT EXECUTED
ffc218fc:	7f 9c 53 78 	or      r28,r28,r10                            <== NOT EXECUTED
ffc21900:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           <== NOT EXECUTED
ffc21904:	7f 9c 4b 78 	or      r28,r28,r9                             <== NOT EXECUTED
                                                    direct);          
                                                                      
        if (direct == 0)                                              
ffc21908:	40 9e fe d0 	bne+    cr7,ffc217d8 <rtems_rfs_block_map_shrink+0xb0><== NOT EXECUTED
        {                                                             
          rc = rtems_rfs_group_bitmap_free (fs, false, singly);       
ffc2190c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc21910:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc21914:	7e 45 93 78 	mr      r5,r18                                 <== NOT EXECUTED
ffc21918:	4b ff 40 35 	bl      ffc1594c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
          if (rc > 0)                                                 
ffc2191c:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc21920:	41 81 00 28 	bgt-    ffc21948 <rtems_rfs_block_map_shrink+0x220><== NOT EXECUTED
            return rc;                                                
                                                                      
          map->last_map_block = singly;                               
ffc21924:	92 5f 00 1c 	stw     r18,28(r31)                            <== NOT EXECUTED
                                                                      
          rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->doubly_buffer,
ffc21928:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc2192c:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc21930:	7e a5 ab 78 	mr      r5,r21                                 <== NOT EXECUTED
ffc21934:	7e 66 9b 78 	mr      r6,r19                                 <== NOT EXECUTED
ffc21938:	7f 67 db 78 	mr      r7,r27                                 <== NOT EXECUTED
ffc2193c:	4b ff f0 85 	bl      ffc209c0 <rtems_rfs_block_map_indirect_shrink.isra.12><== NOT EXECUTED
                                                    doubly, doubly_singly);
          if (rc)                                                     
ffc21940:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc21944:	41 82 fe 94 	beq+    ffc217d8 <rtems_rfs_block_map_shrink+0xb0><== NOT EXECUTED
   */                                                                 
  if (rtems_rfs_block_pos_past_end (&map->bpos, &map->size))          
    rtems_rfs_block_size_get_bpos (&map->size, &map->bpos);           
                                                                      
  return 0;                                                           
}                                                                     
ffc21948:	80 01 00 44 	lwz     r0,68(r1)                              
ffc2194c:	82 41 00 08 	lwz     r18,8(r1)                              
ffc21950:	7c 08 03 a6 	mtlr    r0                                     
ffc21954:	82 61 00 0c 	lwz     r19,12(r1)                             
ffc21958:	82 81 00 10 	lwz     r20,16(r1)                             
ffc2195c:	82 a1 00 14 	lwz     r21,20(r1)                             
ffc21960:	82 c1 00 18 	lwz     r22,24(r1)                             
ffc21964:	82 e1 00 1c 	lwz     r23,28(r1)                             
ffc21968:	83 01 00 20 	lwz     r24,32(r1)                             
ffc2196c:	83 21 00 24 	lwz     r25,36(r1)                             
ffc21970:	83 41 00 28 	lwz     r26,40(r1)                             
ffc21974:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc21978:	83 81 00 30 	lwz     r28,48(r1)                             
ffc2197c:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc21980:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc21984:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc21988:	38 21 00 40 	addi    r1,r1,64                               
ffc2198c:	4e 80 00 20 	blr                                            
      {                                                               
        /*                                                            
         * Request the indirect block and then obtain the block number from the
         * indirect block.                                            
         */                                                           
        rc = rtems_rfs_buffer_handle_request (fs, &map->singly_buffer,
ffc21990:	39 3b 00 08 	addi    r9,r27,8                               
ffc21994:	55 29 10 3a 	rlwinm  r9,r9,2,0,29                           
ffc21998:	7d 3f 4a 14 	add     r9,r31,r9                              
ffc2199c:	80 a9 00 04 	lwz     r5,4(r9)                               
ffc219a0:	7f c3 f3 78 	mr      r3,r30                                 
ffc219a4:	7f 04 c3 78 	mr      r4,r24                                 
ffc219a8:	38 c0 00 01 	li      r6,1                                   
ffc219ac:	48 00 05 6d 	bl      ffc21f18 <rtems_rfs_buffer_handle_request>
                                              map->blocks[singly], true);
        if (rc > 0)                                                   
ffc219b0:	2c 03 00 00 	cmpwi   r3,0                                   
ffc219b4:	41 a1 ff 94 	bgt-    ffc21948 <rtems_rfs_block_map_shrink+0x220><== NEVER TAKEN
          return rc;                                                  
                                                                      
        block_to_free = rtems_rfs_block_get_number (&map->singly_buffer,
ffc219b8:	81 3f 00 40 	lwz     r9,64(r31)                             
ffc219bc:	56 8a 10 3a 	rlwinm  r10,r20,2,0,29                         
                                                    direct);          
                                                                      
        rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
ffc219c0:	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,
ffc219c4:	81 09 00 1c 	lwz     r8,28(r9)                              
                                                    direct);          
                                                                      
        rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
ffc219c8:	7f e4 fb 78 	mr      r4,r31                                 
ffc219cc:	7e c5 b3 78 	mr      r5,r22                                 
        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,
ffc219d0:	7f 88 50 ae 	lbzx    r28,r8,r10                             
ffc219d4:	7d 28 52 14 	add     r9,r8,r10                              
ffc219d8:	89 09 00 03 	lbz     r8,3(r9)                               
                                                    direct);          
                                                                      
        rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
ffc219dc:	7f 66 db 78 	mr      r6,r27                                 
        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,
ffc219e0:	89 49 00 01 	lbz     r10,1(r9)                              
ffc219e4:	57 9c c0 0e 	rlwinm  r28,r28,24,0,7                         
ffc219e8:	89 29 00 02 	lbz     r9,2(r9)                               
ffc219ec:	7d 1c e3 78 	or      r28,r8,r28                             
ffc219f0:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc219f4:	7f 9c 53 78 	or      r28,r28,r10                            
ffc219f8:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
                                                    direct);          
                                                                      
        rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
ffc219fc:	7e 87 a3 78 	mr      r7,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,
ffc21a00:	7f 9c 4b 78 	or      r28,r28,r9                             
                                                    direct);          
                                                                      
        rc = rtems_rfs_block_map_indirect_shrink (fs, map, &map->singly_buffer,
ffc21a04:	4b ff ef bd 	bl      ffc209c0 <rtems_rfs_block_map_indirect_shrink.isra.12>
                                                  singly, direct);    
        if (rc)                                                       
ffc21a08:	2c 03 00 00 	cmpwi   r3,0                                   
ffc21a0c:	41 82 fd cc 	beq+    ffc217d8 <rtems_rfs_block_map_shrink+0xb0><== ALWAYS TAKEN
ffc21a10:	4b ff ff 38 	b       ffc21948 <rtems_rfs_block_map_shrink+0x220><== NOT EXECUTED
    map->last_data_block = block_to_free;                             
    map->dirty = true;                                                
    blocks--;                                                         
  }                                                                   
                                                                      
  if (map->size.count == 0)                                           
ffc21a14:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc21a18:	40 9e 00 5c 	bne-    cr7,ffc21a74 <rtems_rfs_block_map_shrink+0x34c>
  {                                                                   
    map->last_map_block = 0;                                          
ffc21a1c:	91 5f 00 1c 	stw     r10,28(r31)                            
    map->last_data_block = 0;                                         
ffc21a20:	91 5f 00 20 	stw     r10,32(r31)                            
ffc21a24:	81 3f 00 0c 	lwz     r9,12(r31)                             
                                                                      
  /*                                                                  
   * Keep the position inside the map.                                
   */                                                                 
  if (rtems_rfs_block_pos_past_end (&map->bpos, &map->size))          
    rtems_rfs_block_size_get_bpos (&map->size, &map->bpos);           
ffc21a28:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc21a2c:	91 3f 00 14 	stw     r9,20(r31)                             
ffc21a30:	39 20 00 00 	li      r9,0                                   
ffc21a34:	91 5f 00 10 	stw     r10,16(r31)                            
ffc21a38:	91 3f 00 18 	stw     r9,24(r31)                             
ffc21a3c:	41 9e 00 0c 	beq-    cr7,ffc21a48 <rtems_rfs_block_map_shrink+0x320><== ALWAYS TAKEN
ffc21a40:	39 4a ff ff 	addi    r10,r10,-1                             <== NOT EXECUTED
ffc21a44:	91 5f 00 10 	stw     r10,16(r31)                            <== NOT EXECUTED
                                                                      
  return 0;                                                           
ffc21a48:	38 60 00 00 	li      r3,0                                   
ffc21a4c:	4b ff fe fc 	b       ffc21948 <rtems_rfs_block_map_shrink+0x220>
ffc21a50:	7d 5d 53 78 	mr      r29,r10                                <== NOT EXECUTED
ffc21a54:	4b ff fd 4c 	b       ffc217a0 <rtems_rfs_block_map_shrink+0x78><== NOT EXECUTED
rtems_rfs_block_map_shrink (rtems_rfs_file_system* fs,                
                            rtems_rfs_block_map*   map,               
                            size_t                 blocks)            
{                                                                     
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BLOCK_MAP_SHRINK))             
    printf ("rtems-rfs: block-map-shrink: entry: blocks=%zd count=%" PRIu32 "\n",
ffc21a58:	80 bf 00 08 	lwz     r5,8(r31)                              <== NOT EXECUTED
ffc21a5c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc21a60:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc21a64:	38 63 d0 e0 	addi    r3,r3,-12064                           <== NOT EXECUTED
ffc21a68:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc21a6c:	48 00 90 2d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc21a70:	4b ff fd 1c 	b       ffc2178c <rtems_rfs_block_map_shrink+0x64><== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * Keep the position inside the map.                                
   */                                                                 
  if (rtems_rfs_block_pos_past_end (&map->bpos, &map->size))          
ffc21a74:	81 1f 00 10 	lwz     r8,16(r31)                             
ffc21a78:	7f 88 50 40 	cmplw   cr7,r8,r10                             
ffc21a7c:	40 bc ff a8 	bge-    cr7,ffc21a24 <rtems_rfs_block_map_shrink+0x2fc><== NEVER TAKEN
ffc21a80:	39 2a ff ff 	addi    r9,r10,-1                              
ffc21a84:	7f 89 40 00 	cmpw    cr7,r9,r8                              
ffc21a88:	40 9e ff c0 	bne+    cr7,ffc21a48 <rtems_rfs_block_map_shrink+0x320><== NEVER TAKEN
ffc21a8c:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc21a90:	81 1f 00 14 	lwz     r8,20(r31)                             
ffc21a94:	7f 88 48 40 	cmplw   cr7,r8,r9                              
ffc21a98:	41 9d ff 90 	bgt+    cr7,ffc21a28 <rtems_rfs_block_map_shrink+0x300><== ALWAYS TAKEN
    rtems_rfs_block_size_get_bpos (&map->size, &map->bpos);           
                                                                      
  return 0;                                                           
ffc21a9c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc21aa0:	4b ff fe a8 	b       ffc21948 <rtems_rfs_block_map_shrink+0x220><== NOT EXECUTED
                                                                      

ffc28b5c <rtems_rfs_buffer_bdbuf_release>: int rtems_rfs_buffer_bdbuf_release (rtems_rfs_buffer* buffer, bool modified) {
ffc28b5c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc28b60:	7d 80 00 26 	mfcr    r12                                    
ffc28b64:	7c 08 02 a6 	mflr    r0                                     
ffc28b68:	93 c1 00 10 	stw     r30,16(r1)                             
ffc28b6c:	7c 9e 23 78 	mr      r30,r4                                 
  rtems_status_code sc;                                               
  int               rc = 0;                                           
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))               
ffc28b70:	38 80 00 40 	li      r4,64                                  
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_bdbuf_release (rtems_rfs_buffer* buffer,             
                                bool              modified)           
{                                                                     
ffc28b74:	93 e1 00 14 	stw     r31,20(r1)                             
ffc28b78:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_status_code sc;                                               
  int               rc = 0;                                           
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))               
ffc28b7c:	38 60 00 00 	li      r3,0                                   
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_bdbuf_release (rtems_rfs_buffer* buffer,             
                                bool              modified)           
{                                                                     
ffc28b80:	90 01 00 1c 	stw     r0,28(r1)                              
ffc28b84:	2e 1e 00 00 	cmpwi   cr4,r30,0                              
ffc28b88:	91 81 00 0c 	stw     r12,12(r1)                             
  rtems_status_code sc;                                               
  int               rc = 0;                                           
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))               
ffc28b8c:	4b fe f3 11 	bl      ffc17e9c <rtems_rfs_trace>             
ffc28b90:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc28b94:	41 9e 00 28 	beq-    cr7,ffc28bbc <rtems_rfs_buffer_bdbuf_release+0x60><== ALWAYS TAKEN
    printf ("rtems-rfs: bdbuf-release: block=%" PRIuPTR " bdbuf=%" PRIu32 " %s\n",
ffc28b98:	80 9f 00 34 	lwz     r4,52(r31)                             <== NOT EXECUTED
ffc28b9c:	80 bf 00 18 	lwz     r5,24(r31)                             <== NOT EXECUTED
ffc28ba0:	40 92 00 88 	bne-    cr4,ffc28c28 <rtems_rfs_buffer_bdbuf_release+0xcc><== NOT EXECUTED
ffc28ba4:	3c c0 ff c4 	lis     r6,-60                                 <== NOT EXECUTED
ffc28ba8:	38 c6 c5 1c 	addi    r6,r6,-15076                           <== NOT EXECUTED
ffc28bac:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc28bb0:	38 63 e6 7c 	addi    r3,r3,-6532                            <== NOT EXECUTED
ffc28bb4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc28bb8:	48 00 1e e1 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            ((intptr_t) buffer->user),                                
            buffer->block, modified ? "(modified)" : "");             
                                                                      
  if (modified)                                                       
    sc = rtems_bdbuf_release_modified (buffer);                       
ffc28bbc:	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)                                                       
ffc28bc0:	41 92 00 34 	beq-    cr4,ffc28bf4 <rtems_rfs_buffer_bdbuf_release+0x98>
    sc = rtems_bdbuf_release_modified (buffer);                       
ffc28bc4:	4b ff 1e dd 	bl      ffc1aaa0 <rtems_bdbuf_release_modified>
  else                                                                
    sc = rtems_bdbuf_release (buffer);                                
                                                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc28bc8:	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;                                                         
ffc28bcc:	38 60 00 05 	li      r3,5                                   
  if (modified)                                                       
    sc = rtems_bdbuf_release_modified (buffer);                       
  else                                                                
    sc = rtems_bdbuf_release (buffer);                                
                                                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc28bd0:	41 9e 00 34 	beq-    cr7,ffc28c04 <rtems_rfs_buffer_bdbuf_release+0xa8><== ALWAYS TAKEN
#endif                                                                
    rc = EIO;                                                         
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc28bd4:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
ffc28bd8:	81 81 00 0c 	lwz     r12,12(r1)                             <== NOT EXECUTED
ffc28bdc:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc28be0:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc28be4:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc28be8:	7d 80 81 20 	mtcrf   8,r12                                  <== NOT EXECUTED
ffc28bec:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc28bf0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
            buffer->block, modified ? "(modified)" : "");             
                                                                      
  if (modified)                                                       
    sc = rtems_bdbuf_release_modified (buffer);                       
  else                                                                
    sc = rtems_bdbuf_release (buffer);                                
ffc28bf4:	4b ff 1d c1 	bl      ffc1a9b4 <rtems_bdbuf_release>         
                                                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc28bf8:	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;                                                         
ffc28bfc:	38 60 00 05 	li      r3,5                                   
  if (modified)                                                       
    sc = rtems_bdbuf_release_modified (buffer);                       
  else                                                                
    sc = rtems_bdbuf_release (buffer);                                
                                                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc28c00:	40 9e ff d4 	bne+    cr7,ffc28bd4 <rtems_rfs_buffer_bdbuf_release+0x78><== NEVER TAKEN
#endif                                                                
    rc = EIO;                                                         
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc28c04:	80 01 00 1c 	lwz     r0,28(r1)                              
int                                                                   
rtems_rfs_buffer_bdbuf_release (rtems_rfs_buffer* buffer,             
                                bool              modified)           
{                                                                     
  rtems_status_code sc;                                               
  int               rc = 0;                                           
ffc28c08:	38 60 00 00 	li      r3,0                                   
#endif                                                                
    rc = EIO;                                                         
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc28c0c:	81 81 00 0c 	lwz     r12,12(r1)                             
ffc28c10:	7c 08 03 a6 	mtlr    r0                                     
ffc28c14:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc28c18:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc28c1c:	7d 80 81 20 	mtcrf   8,r12                                  
ffc28c20:	38 21 00 18 	addi    r1,r1,24                               
ffc28c24:	4e 80 00 20 	blr                                            
{                                                                     
  rtems_status_code sc;                                               
  int               rc = 0;                                           
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))               
    printf ("rtems-rfs: bdbuf-release: block=%" PRIuPTR " bdbuf=%" PRIu32 " %s\n",
ffc28c28:	3c c0 ff c4 	lis     r6,-60                                 <== NOT EXECUTED
ffc28c2c:	38 c6 e6 70 	addi    r6,r6,-6544                            <== NOT EXECUTED
ffc28c30:	4b ff ff 7c 	b       ffc28bac <rtems_rfs_buffer_bdbuf_release+0x50><== NOT EXECUTED
                                                                      

ffc28afc <rtems_rfs_buffer_bdbuf_request>: rtems_rfs_buffer** buffer) { rtems_status_code sc; int rc = 0; if (read)
ffc28afc:	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)      
{                                                                     
ffc28b00:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc28b04:	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);  
ffc28b08:	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)      
{                                                                     
ffc28b0c:	90 01 00 0c 	stw     r0,12(r1)                              
  rtems_status_code sc;                                               
  int               rc = 0;                                           
                                                                      
  if (read)                                                           
    sc = rtems_bdbuf_read (rtems_rfs_fs_device (fs), block, buffer);  
ffc28b10:	80 63 00 10 	lwz     r3,16(r3)                              
                                rtems_rfs_buffer**       buffer)      
{                                                                     
  rtems_status_code sc;                                               
  int               rc = 0;                                           
                                                                      
  if (read)                                                           
ffc28b14:	41 9e 00 24 	beq-    cr7,ffc28b38 <rtems_rfs_buffer_bdbuf_request+0x3c>
    sc = rtems_bdbuf_read (rtems_rfs_fs_device (fs), block, buffer);  
ffc28b18:	4b ff 1c 5d 	bl      ffc1a774 <rtems_bdbuf_read>            
  else                                                                
    sc = rtems_bdbuf_get (rtems_rfs_fs_device (fs), block, buffer);   
                                                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc28b1c:	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;                                                         
ffc28b20:	38 60 00 05 	li      r3,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)                                         
ffc28b24:	41 9e 00 24 	beq-    cr7,ffc28b48 <rtems_rfs_buffer_bdbuf_request+0x4c><== ALWAYS TAKEN
#endif                                                                
    rc = EIO;                                                         
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc28b28:	80 01 00 0c 	lwz     r0,12(r1)                              <== NOT EXECUTED
ffc28b2c:	38 21 00 08 	addi    r1,r1,8                                <== NOT EXECUTED
ffc28b30:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc28b34:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  int               rc = 0;                                           
                                                                      
  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);   
ffc28b38:	4b ff 1a d1 	bl      ffc1a608 <rtems_bdbuf_get>             
                                                                      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc28b3c:	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;                                                         
ffc28b40:	38 60 00 05 	li      r3,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)                                         
ffc28b44:	40 9e ff e4 	bne+    cr7,ffc28b28 <rtems_rfs_buffer_bdbuf_request+0x2c><== NEVER TAKEN
#endif                                                                
    rc = EIO;                                                         
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc28b48:	80 01 00 0c 	lwz     r0,12(r1)                              
                                rtems_rfs_buffer_block   block,       
                                bool                     read,        
                                rtems_rfs_buffer**       buffer)      
{                                                                     
  rtems_status_code sc;                                               
  int               rc = 0;                                           
ffc28b4c:	38 60 00 00 	li      r3,0                                   
#endif                                                                
    rc = EIO;                                                         
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc28b50:	7c 08 03 a6 	mtlr    r0                                     
ffc28b54:	38 21 00 08 	addi    r1,r1,8                                
ffc28b58:	4e 80 00 20 	blr                                            
                                                                      

ffc226e8 <rtems_rfs_buffer_close>: return 0; } int rtems_rfs_buffer_close (rtems_rfs_file_system* fs) {
ffc226e8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc226ec:	7c 08 02 a6 	mflr    r0                                     
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))                 
ffc226f0:	38 80 00 10 	li      r4,16                                  
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_close (rtems_rfs_file_system* fs)                    
{                                                                     
ffc226f4:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc226f8:	7c 7f 1b 78 	mr      r31,r3                                 
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))                 
ffc226fc:	38 60 00 00 	li      r3,0                                   
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_close (rtems_rfs_file_system* fs)                    
{                                                                     
ffc22700:	90 01 00 14 	stw     r0,20(r1)                              
ffc22704:	93 c1 00 08 	stw     r30,8(r1)                              
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))                 
ffc22708:	4b ff 57 95 	bl      ffc17e9c <rtems_rfs_trace>             
ffc2270c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc22710:	40 9e 00 5c 	bne-    cr7,ffc2276c <rtems_rfs_buffer_close+0x84><== NEVER TAKEN
                                                                      
  /*                                                                  
   * 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));
ffc22714:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc22718:	7f e3 fb 78 	mr      r3,r31                                 
ffc2271c:	80 89 00 20 	lwz     r4,32(r9)                              
ffc22720:	4b ff fe 75 	bl      ffc22594 <rtems_rfs_buffer_setblksize> 
                                                                      
  if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))     
ffc22724:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc22728:	40 81 00 18 	ble-    ffc22740 <rtems_rfs_buffer_close+0x58> <== ALWAYS TAKEN
ffc2272c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc22730:	38 80 00 10 	li      r4,16                                  <== NOT EXECUTED
ffc22734:	4b ff 57 69 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc22738:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc2273c:	40 9e 00 40 	bne-    cr7,ffc2277c <rtems_rfs_buffer_close+0x94><== NOT EXECUTED
    printf ("rtems-rfs: buffer-close: set media block size failed: %d: %s\n",
            rc, strerror (rc));                                       
                                                                      
  if (close (fs->device) < 0)                                         
ffc22740:	80 7f 00 0c 	lwz     r3,12(r31)                             
ffc22744:	4b fe 7b 21 	bl      ffc0a264 <close>                       
ffc22748:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2274c:	41 9c 00 60 	blt-    cr7,ffc227ac <rtems_rfs_buffer_close+0xc4><== NEVER TAKEN
      printf ("rtems-rfs: buffer-close: file close failed: %d: %s\n", 
              rc, strerror (rc));                                     
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc22750:	80 01 00 14 	lwz     r0,20(r1)                              
ffc22754:	7f c3 f3 78 	mr      r3,r30                                 
ffc22758:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc2275c:	7c 08 03 a6 	mtlr    r0                                     
ffc22760:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc22764:	38 21 00 10 	addi    r1,r1,16                               
ffc22768:	4e 80 00 20 	blr                                            
rtems_rfs_buffer_close (rtems_rfs_file_system* fs)                    
{                                                                     
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))                 
    printf ("rtems-rfs: buffer-close: closing\n");                    
ffc2276c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc22770:	38 63 d5 84 	addi    r3,r3,-10876                           <== NOT EXECUTED
ffc22774:	48 00 86 8d 	bl      ffc2ae00 <puts>                        <== NOT EXECUTED
ffc22778:	4b ff ff 9c 	b       ffc22714 <rtems_rfs_buffer_close+0x2c> <== NOT EXECUTED
   * all buffers.                                                     
   */                                                                 
  rc = rtems_rfs_buffer_setblksize (fs, rtems_rfs_fs_media_block_size (fs));
                                                                      
  if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))     
    printf ("rtems-rfs: buffer-close: set media block size failed: %d: %s\n",
ffc2277c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc22780:	48 00 94 95 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc22784:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc22788:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc2278c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc22790:	38 63 d5 a8 	addi    r3,r3,-10840                           <== NOT EXECUTED
ffc22794:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc22798:	48 00 83 01 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
  if (close (fs->device) < 0)                                         
ffc2279c:	80 7f 00 0c 	lwz     r3,12(r31)                             <== NOT EXECUTED
ffc227a0:	4b fe 7a c5 	bl      ffc0a264 <close>                       <== NOT EXECUTED
ffc227a4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc227a8:	40 9c ff a8 	bge+    cr7,ffc22750 <rtems_rfs_buffer_close+0x68><== NOT EXECUTED
  {                                                                   
    rc = errno;                                                       
ffc227ac:	48 00 68 4d 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))               
ffc227b0:	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;                                                       
ffc227b4:	83 c3 00 00 	lwz     r30,0(r3)                              <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CLOSE))               
ffc227b8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc227bc:	4b ff 56 e1 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc227c0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc227c4:	41 9e ff 8c 	beq+    cr7,ffc22750 <rtems_rfs_buffer_close+0x68><== NOT EXECUTED
      printf ("rtems-rfs: buffer-close: file close failed: %d: %s\n", 
ffc227c8:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc227cc:	48 00 94 49 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc227d0:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc227d4:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc227d8:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc227dc:	38 63 d5 e8 	addi    r3,r3,-10776                           <== NOT EXECUTED
ffc227e0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc227e4:	48 00 82 b5 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc227e8:	4b ff ff 68 	b       ffc22750 <rtems_rfs_buffer_close+0x68> <== NOT EXECUTED
                                                                      

ffc21d04 <rtems_rfs_buffer_handle_release>: } int rtems_rfs_buffer_handle_release (rtems_rfs_file_system* fs, rtems_rfs_buffer_handle* handle) {
ffc21d04:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc21d08:	7c 08 02 a6 	mflr    r0                                     
ffc21d0c:	90 01 00 1c 	stw     r0,28(r1)                              
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_buffer_handle_has_block (handle))                     
ffc21d10:	81 24 00 08 	lwz     r9,8(r4)                               
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_handle_release (rtems_rfs_file_system*   fs,         
                                 rtems_rfs_buffer_handle* handle)     
{                                                                     
ffc21d14:	93 c1 00 10 	stw     r30,16(r1)                             
  int rc = 0;                                                         
ffc21d18:	3b c0 00 00 	li      r30,0                                  
                                                                      
  if (rtems_rfs_buffer_handle_has_block (handle))                     
ffc21d1c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_handle_release (rtems_rfs_file_system*   fs,         
                                 rtems_rfs_buffer_handle* handle)     
{                                                                     
ffc21d20:	93 e1 00 14 	stw     r31,20(r1)                             
ffc21d24:	7c 9f 23 78 	mr      r31,r4                                 
ffc21d28:	93 a1 00 0c 	stw     r29,12(r1)                             
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_buffer_handle_has_block (handle))                     
ffc21d2c:	41 9e 00 48 	beq-    cr7,ffc21d74 <rtems_rfs_buffer_handle_release+0x70>
ffc21d30:	7c 7d 1b 78 	mr      r29,r3                                 
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_RELEASE))      
ffc21d34:	38 80 02 00 	li      r4,512                                 
ffc21d38:	38 60 00 00 	li      r3,0                                   
ffc21d3c:	4b ff 61 61 	bl      ffc17e9c <rtems_rfs_trace>             
ffc21d40:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc21d44:	40 9e 00 50 	bne-    cr7,ffc21d94 <rtems_rfs_buffer_handle_release+0x90><== NEVER TAKEN
              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)                           
ffc21d48:	80 7f 00 08 	lwz     r3,8(r31)                              
ffc21d4c:	83 c3 00 30 	lwz     r30,48(r3)                             
ffc21d50:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc21d54:	40 9d 00 10 	ble-    cr7,ffc21d64 <rtems_rfs_buffer_handle_release+0x60><== NEVER TAKEN
      rtems_rfs_buffer_refs_down (handle);                            
ffc21d58:	3b de ff ff 	addi    r30,r30,-1                             
ffc21d5c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc21d60:	93 c3 00 30 	stw     r30,48(r3)                             
                                                                      
    if (rtems_rfs_buffer_refs (handle) == 0)                          
ffc21d64:	41 9e 00 74 	beq-    cr7,ffc21dd8 <rtems_rfs_buffer_handle_release+0xd4>
                                                                      
int                                                                   
rtems_rfs_buffer_handle_release (rtems_rfs_file_system*   fs,         
                                 rtems_rfs_buffer_handle* handle)     
{                                                                     
  int rc = 0;                                                         
ffc21d68:	3b c0 00 00 	li      r30,0                                  
          rtems_chain_append (&fs->release, rtems_rfs_buffer_link (handle));
          fs->release_count++;                                        
        }                                                             
      }                                                               
    }                                                                 
    handle->buffer = NULL;                                            
ffc21d6c:	39 20 00 00 	li      r9,0                                   
ffc21d70:	91 3f 00 08 	stw     r9,8(r31)                              
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc21d74:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc21d78:	7f c3 f3 78 	mr      r3,r30                                 
ffc21d7c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc21d80:	7c 08 03 a6 	mtlr    r0                                     
ffc21d84:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc21d88:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc21d8c:	38 21 00 18 	addi    r1,r1,24                               
ffc21d90:	4e 80 00 20 	blr                                            
  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",
ffc21d94:	89 3f 00 00 	lbz     r9,0(r31)                              <== NOT EXECUTED
ffc21d98:	80 9f 00 04 	lwz     r4,4(r31)                              <== NOT EXECUTED
ffc21d9c:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc21da0:	40 9e 00 98 	bne-    cr7,ffc21e38 <rtems_rfs_buffer_handle_release+0x134><== 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" : "");
ffc21da4:	81 3f 00 08 	lwz     r9,8(r31)                              <== 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",
ffc21da8:	3c a0 ff c4 	lis     r5,-60                                 <== NOT EXECUTED
ffc21dac:	38 a5 c5 1c 	addi    r5,r5,-15076                           <== 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" : "");
ffc21db0:	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",
ffc21db4:	2f 86 00 00 	cmpwi   cr7,r6,0                               <== NOT EXECUTED
ffc21db8:	40 9e 00 98 	bne-    cr7,ffc21e50 <rtems_rfs_buffer_handle_release+0x14c><== NOT EXECUTED
ffc21dbc:	3c e0 ff c4 	lis     r7,-60                                 <== NOT EXECUTED
ffc21dc0:	38 e7 d1 a0 	addi    r7,r7,-11872                           <== NOT EXECUTED
ffc21dc4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc21dc8:	38 63 d1 b0 	addi    r3,r3,-11856                           <== NOT EXECUTED
ffc21dcc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc21dd0:	48 00 8c c9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc21dd4:	4b ff ff 74 	b       ffc21d48 <rtems_rfs_buffer_handle_release+0x44><== NOT EXECUTED
ffc21dd8:	4b ff c3 69 	bl      ffc1e140 <_Chain_Extract>              
    if (rtems_rfs_buffer_refs (handle) == 0)                          
    {                                                                 
      rtems_chain_extract (rtems_rfs_buffer_link (handle));           
      fs->buffers_count--;                                            
                                                                      
      if (rtems_rfs_fs_no_local_cache (fs))                           
ffc21ddc:	81 5d 00 00 	lwz     r10,0(r29)                             
      rtems_rfs_buffer_refs_down (handle);                            
                                                                      
    if (rtems_rfs_buffer_refs (handle) == 0)                          
    {                                                                 
      rtems_chain_extract (rtems_rfs_buffer_link (handle));           
      fs->buffers_count--;                                            
ffc21de0:	81 3d 00 50 	lwz     r9,80(r29)                             
                                                                      
      if (rtems_rfs_fs_no_local_cache (fs))                           
ffc21de4:	71 48 00 02 	andi.   r8,r10,2                               
      rtems_rfs_buffer_refs_down (handle);                            
                                                                      
    if (rtems_rfs_buffer_refs (handle) == 0)                          
    {                                                                 
      rtems_chain_extract (rtems_rfs_buffer_link (handle));           
      fs->buffers_count--;                                            
ffc21de8:	39 29 ff ff 	addi    r9,r9,-1                               
ffc21dec:	91 3d 00 50 	stw     r9,80(r29)                             
                                                                      
      if (rtems_rfs_fs_no_local_cache (fs))                           
ffc21df0:	40 82 00 6c 	bne-    ffc21e5c <rtems_rfs_buffer_handle_release+0x158>
         * 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 +                                      
ffc21df4:	81 1d 00 70 	lwz     r8,112(r29)                            
                                                                      
int                                                                   
rtems_rfs_buffer_handle_release (rtems_rfs_file_system*   fs,         
                                 rtems_rfs_buffer_handle* handle)     
{                                                                     
  int rc = 0;                                                         
ffc21df8:	3b c0 00 00 	li      r30,0                                  
         * 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 +                                      
ffc21dfc:	81 5d 00 60 	lwz     r10,96(r29)                            
ffc21e00:	81 3d 00 40 	lwz     r9,64(r29)                             
ffc21e04:	7d 48 52 14 	add     r10,r8,r10                             
ffc21e08:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc21e0c:	40 9c 00 80 	bge-    cr7,ffc21e8c <rtems_rfs_buffer_handle_release+0x188>
          }                                                           
          buffer->user = (void*) 0;                                   
          rc = rtems_rfs_buffer_io_release (buffer, modified);        
        }                                                             
                                                                      
        if (rtems_rfs_buffer_dirty (handle))                          
ffc21e10:	89 3f 00 00 	lbz     r9,0(r31)                              
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
ffc21e14:	80 9f 00 08 	lwz     r4,8(r31)                              
ffc21e18:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc21e1c:	41 9e 00 58 	beq-    cr7,ffc21e74 <rtems_rfs_buffer_handle_release+0x170>
ffc21e20:	38 7d 00 64 	addi    r3,r29,100                             
ffc21e24:	4b fe ed 4d 	bl      ffc10b70 <_Chain_Append>               
        {                                                             
          rtems_chain_append (&fs->release_modified,                  
                              rtems_rfs_buffer_link (handle));        
          fs->release_modified_count++;                               
ffc21e28:	81 3d 00 70 	lwz     r9,112(r29)                            
ffc21e2c:	39 29 00 01 	addi    r9,r9,1                                
ffc21e30:	91 3d 00 70 	stw     r9,112(r29)                            
ffc21e34:	4b ff ff 38 	b       ffc21d6c <rtems_rfs_buffer_handle_release+0x68>
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_RELEASE))      
      printf ("rtems-rfs: buffer-release: block=%" PRIu32 " %s refs=%d %s\n",
              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" : "");
ffc21e38:	81 3f 00 08 	lwz     r9,8(r31)                              <== 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",
ffc21e3c:	3c a0 ff c4 	lis     r5,-60                                 <== NOT EXECUTED
ffc21e40:	38 a5 d1 98 	addi    r5,r5,-11880                           <== 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" : "");
ffc21e44:	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",
ffc21e48:	2f 86 00 00 	cmpwi   cr7,r6,0                               <== NOT EXECUTED
ffc21e4c:	41 be ff 70 	beq-    cr7,ffc21dbc <rtems_rfs_buffer_handle_release+0xb8><== NOT EXECUTED
ffc21e50:	3c e0 ff c4 	lis     r7,-60                                 <== NOT EXECUTED
ffc21e54:	38 e7 c5 1c 	addi    r7,r7,-15076                           <== NOT EXECUTED
ffc21e58:	4b ff ff 6c 	b       ffc21dc4 <rtems_rfs_buffer_handle_release+0xc0><== NOT EXECUTED
      rtems_chain_extract (rtems_rfs_buffer_link (handle));           
      fs->buffers_count--;                                            
                                                                      
      if (rtems_rfs_fs_no_local_cache (fs))                           
      {                                                               
        handle->buffer->user = (void*) 0;                             
ffc21e5c:	80 7f 00 08 	lwz     r3,8(r31)                              
        rc = rtems_rfs_buffer_io_release (handle->buffer,             
ffc21e60:	88 9f 00 00 	lbz     r4,0(r31)                              
      rtems_chain_extract (rtems_rfs_buffer_link (handle));           
      fs->buffers_count--;                                            
                                                                      
      if (rtems_rfs_fs_no_local_cache (fs))                           
      {                                                               
        handle->buffer->user = (void*) 0;                             
ffc21e64:	93 c3 00 34 	stw     r30,52(r3)                             
        rc = rtems_rfs_buffer_io_release (handle->buffer,             
ffc21e68:	48 00 6c f5 	bl      ffc28b5c <rtems_rfs_buffer_bdbuf_release>
ffc21e6c:	7c 7e 1b 78 	mr      r30,r3                                 
ffc21e70:	4b ff fe fc 	b       ffc21d6c <rtems_rfs_buffer_handle_release+0x68>
ffc21e74:	38 7d 00 54 	addi    r3,r29,84                              
ffc21e78:	4b fe ec f9 	bl      ffc10b70 <_Chain_Append>               
          fs->release_modified_count++;                               
        }                                                             
        else                                                          
        {                                                             
          rtems_chain_append (&fs->release, rtems_rfs_buffer_link (handle));
          fs->release_count++;                                        
ffc21e7c:	81 3d 00 60 	lwz     r9,96(r29)                             
ffc21e80:	39 29 00 01 	addi    r9,r9,1                                
ffc21e84:	91 3d 00 60 	stw     r9,96(r29)                             
ffc21e88:	4b ff fe e4 	b       ffc21d6c <rtems_rfs_buffer_handle_release+0x68>
             fs->release_modified_count) >= fs->max_held_buffers)     
        {                                                             
          rtems_rfs_buffer* buffer;                                   
          bool              modified;                                 
                                                                      
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_RELEASE))
ffc21e8c:	38 60 00 00 	li      r3,0                                   
ffc21e90:	38 80 02 00 	li      r4,512                                 
ffc21e94:	4b ff 60 09 	bl      ffc17e9c <rtems_rfs_trace>             
ffc21e98:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc21e9c:	40 9e 00 5c 	bne-    cr7,ffc21ef8 <rtems_rfs_buffer_handle_release+0x1f4><== NEVER TAKEN
            printf ("rtems-rfs: buffer-release: local cache overflow:"
                    " %" PRIu32 "\n", fs->release_count + fs->release_modified_count);
                                                                      
          if (fs->release_count > fs->release_modified_count)         
ffc21ea0:	81 5d 00 60 	lwz     r10,96(r29)                            
ffc21ea4:	81 3d 00 70 	lwz     r9,112(r29)                            
ffc21ea8:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc21eac:	40 9d 00 30 	ble-    cr7,ffc21edc <rtems_rfs_buffer_handle_release+0x1d8>
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
ffc21eb0:	38 7d 00 54 	addi    r3,r29,84                              
ffc21eb4:	4b fe ec ed 	bl      ffc10ba0 <_Chain_Get>                  
          {                                                           
            buffer = (rtems_rfs_buffer*) rtems_chain_get (&fs->release);
            fs->release_count--;                                      
ffc21eb8:	81 3d 00 60 	lwz     r9,96(r29)                             
            modified = false;                                         
ffc21ebc:	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--;                                      
ffc21ec0:	39 29 ff ff 	addi    r9,r9,-1                               
ffc21ec4:	91 3d 00 60 	stw     r9,96(r29)                             
            buffer =                                                  
              (rtems_rfs_buffer*) rtems_chain_get (&fs->release_modified);
            fs->release_modified_count--;                             
            modified = true;                                          
          }                                                           
          buffer->user = (void*) 0;                                   
ffc21ec8:	39 20 00 00 	li      r9,0                                   
ffc21ecc:	91 23 00 34 	stw     r9,52(r3)                              
          rc = rtems_rfs_buffer_io_release (buffer, modified);        
ffc21ed0:	48 00 6c 8d 	bl      ffc28b5c <rtems_rfs_buffer_bdbuf_release>
ffc21ed4:	7c 7e 1b 78 	mr      r30,r3                                 
ffc21ed8:	4b ff ff 38 	b       ffc21e10 <rtems_rfs_buffer_handle_release+0x10c>
ffc21edc:	38 7d 00 64 	addi    r3,r29,100                             
ffc21ee0:	4b fe ec c1 	bl      ffc10ba0 <_Chain_Get>                  
          }                                                           
          else                                                        
          {                                                           
            buffer =                                                  
              (rtems_rfs_buffer*) rtems_chain_get (&fs->release_modified);
            fs->release_modified_count--;                             
ffc21ee4:	81 3d 00 70 	lwz     r9,112(r29)                            
            modified = true;                                          
ffc21ee8:	38 80 00 01 	li      r4,1                                   
          }                                                           
          else                                                        
          {                                                           
            buffer =                                                  
              (rtems_rfs_buffer*) rtems_chain_get (&fs->release_modified);
            fs->release_modified_count--;                             
ffc21eec:	39 29 ff ff 	addi    r9,r9,-1                               
ffc21ef0:	91 3d 00 70 	stw     r9,112(r29)                            
ffc21ef4:	4b ff ff d4 	b       ffc21ec8 <rtems_rfs_buffer_handle_release+0x1c4>
        {                                                             
          rtems_rfs_buffer* buffer;                                   
          bool              modified;                                 
                                                                      
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_RELEASE))
            printf ("rtems-rfs: buffer-release: local cache overflow:"
ffc21ef8:	80 9d 00 70 	lwz     r4,112(r29)                            <== NOT EXECUTED
ffc21efc:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc21f00:	81 3d 00 60 	lwz     r9,96(r29)                             <== NOT EXECUTED
ffc21f04:	38 63 d1 e4 	addi    r3,r3,-11804                           <== NOT EXECUTED
ffc21f08:	7c 84 4a 14 	add     r4,r4,r9                               <== NOT EXECUTED
ffc21f0c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc21f10:	48 00 8b 89 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc21f14:	4b ff ff 8c 	b       ffc21ea0 <rtems_rfs_buffer_handle_release+0x19c><== NOT EXECUTED
                                                                      

ffc21f18 <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) {
ffc21f18:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc21f1c:	7c 08 02 a6 	mflr    r0                                     
ffc21f20:	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))                     
ffc21f24:	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)       
{                                                                     
ffc21f28:	93 61 00 0c 	stw     r27,12(r1)                             
ffc21f2c:	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))                     
ffc21f30:	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)       
{                                                                     
ffc21f34:	93 a1 00 14 	stw     r29,20(r1)                             
ffc21f38:	7c bd 2b 78 	mr      r29,r5                                 
ffc21f3c:	93 c1 00 18 	stw     r30,24(r1)                             
ffc21f40:	7c 7e 1b 78 	mr      r30,r3                                 
ffc21f44:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc21f48:	7c 9f 23 78 	mr      r31,r4                                 
ffc21f4c:	93 81 00 10 	stw     r28,16(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))                     
ffc21f50:	41 9e 00 78 	beq-    cr7,ffc21fc8 <rtems_rfs_buffer_handle_request+0xb0>
  {                                                                   
    /*                                                                
     * Treat block 0 as special to handle the loading of the super block.
     */                                                               
    if (block && (rtems_rfs_buffer_bnum (handle) == block))           
ffc21f54:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc21f58:	41 9e 00 10 	beq-    cr7,ffc21f68 <rtems_rfs_buffer_handle_request+0x50><== NEVER TAKEN
ffc21f5c:	81 24 00 04 	lwz     r9,4(r4)                               
ffc21f60:	7f 89 28 00 	cmpw    cr7,r9,r5                              
ffc21f64:	41 9e 01 0c 	beq-    cr7,ffc22070 <rtems_rfs_buffer_handle_request+0x158>
      return 0;                                                       
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))      
ffc21f68:	38 60 00 00 	li      r3,0                                   
ffc21f6c:	38 80 01 00 	li      r4,256                                 
ffc21f70:	4b ff 5f 2d 	bl      ffc17e9c <rtems_rfs_trace>             
ffc21f74:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc21f78:	40 9e 01 24 	bne-    cr7,ffc2209c <rtems_rfs_buffer_handle_request+0x184><== NEVER TAKEN
      printf ("rtems-rfs: buffer-request: handle has buffer: %" PRIu32 "\n",
              rtems_rfs_buffer_bnum (handle));                        
                                                                      
    rc = rtems_rfs_buffer_handle_release (fs, handle);                
ffc21f7c:	7f c3 f3 78 	mr      r3,r30                                 
ffc21f80:	7f e4 fb 78 	mr      r4,r31                                 
ffc21f84:	4b ff fd 81 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
    if (rc > 0)                                                       
ffc21f88:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc21f8c:	40 81 00 2c 	ble-    ffc21fb8 <rtems_rfs_buffer_handle_request+0xa0><== ALWAYS TAKEN
    printf ("rtems-rfs: buffer-request: block=%" PRIu32 " bdbuf-%s=%" PRIu32 " refs=%d\n",
            block, read ? "read" : "get", handle->buffer->block,      
            handle->buffer->references);                              
                                                                      
  return 0;                                                           
}                                                                     
ffc21f90:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
ffc21f94:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc21f98:	83 61 00 0c 	lwz     r27,12(r1)                             <== NOT EXECUTED
ffc21f9c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc21fa0:	83 81 00 10 	lwz     r28,16(r1)                             <== NOT EXECUTED
ffc21fa4:	83 a1 00 14 	lwz     r29,20(r1)                             <== NOT EXECUTED
ffc21fa8:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc21fac:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc21fb0:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc21fb4:	4e 80 00 20 	blr                                            <== NOT EXECUTED
              rtems_rfs_buffer_bnum (handle));                        
                                                                      
    rc = rtems_rfs_buffer_handle_release (fs, handle);                
    if (rc > 0)                                                       
      return rc;                                                      
    handle->dirty = false;                                            
ffc21fb8:	39 20 00 00 	li      r9,0                                   
ffc21fbc:	99 3f 00 00 	stb     r9,0(r31)                              
    handle->bnum = 0;                                                 
ffc21fc0:	39 20 00 00 	li      r9,0                                   
ffc21fc4:	91 3f 00 04 	stw     r9,4(r31)                              
  }                                                                   
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))        
ffc21fc8:	38 60 00 00 	li      r3,0                                   
ffc21fcc:	38 80 01 00 	li      r4,256                                 
ffc21fd0:	4b ff 5e cd 	bl      ffc17e9c <rtems_rfs_trace>             
ffc21fd4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc21fd8:	40 9e 01 74 	bne-    cr7,ffc2214c <rtems_rfs_buffer_handle_request+0x234><== NEVER TAKEN
   * 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)                                              
ffc21fdc:	81 3e 00 50 	lwz     r9,80(r30)                             
ffc21fe0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc21fe4:	40 9e 01 18 	bne-    cr7,ffc220fc <rtems_rfs_buffer_handle_request+0x1e4>
  /*                                                                  
   * 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) &&                            
ffc21fe8:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc21fec:	80 9f 00 08 	lwz     r4,8(r31)                              
ffc21ff0:	71 2a 00 02 	andi.   r10,r9,2                               
ffc21ff4:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc21ff8:	41 82 00 bc 	beq-    ffc220b4 <rtems_rfs_buffer_handle_request+0x19c>
  }                                                                   
                                                                      
  /*                                                                  
   * If not located we request the buffer from the I/O layer.         
   */                                                                 
  if (!rtems_rfs_buffer_handle_has_block (handle))                    
ffc21ffc:	41 9e 01 80 	beq-    cr7,ffc2217c <rtems_rfs_buffer_handle_request+0x264><== ALWAYS TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   * Increase the reference count of the buffer.                      
   */                                                                 
  rtems_rfs_buffer_refs_up (handle);                                  
ffc22000:	81 24 00 30 	lwz     r9,48(r4)                              
RTEMS_INLINE_ROUTINE void rtems_chain_append(                         
  rtems_chain_control *the_chain,                                     
  rtems_chain_node    *the_node                                       
)                                                                     
{                                                                     
  _Chain_Append( the_chain, the_node );                               
ffc22004:	38 7e 00 44 	addi    r3,r30,68                              
ffc22008:	39 29 00 01 	addi    r9,r9,1                                
ffc2200c:	91 24 00 30 	stw     r9,48(r4)                              
ffc22010:	4b fe eb 61 	bl      ffc10b70 <_Chain_Append>               
  rtems_chain_append (&fs->buffers, rtems_rfs_buffer_link (handle));  
  fs->buffers_count++;                                                
ffc22014:	81 5e 00 50 	lwz     r10,80(r30)                            
                                                                      
  handle->buffer->user = (void*) ((intptr_t) block);                  
ffc22018:	81 3f 00 08 	lwz     r9,8(r31)                              
  handle->bnum = block;                                               
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))        
ffc2201c:	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++;                                                
ffc22020:	39 4a 00 01 	addi    r10,r10,1                              
ffc22024:	91 5e 00 50 	stw     r10,80(r30)                            
                                                                      
  handle->buffer->user = (void*) ((intptr_t) block);                  
  handle->bnum = block;                                               
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))        
ffc22028:	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);                  
ffc2202c:	93 a9 00 34 	stw     r29,52(r9)                             
  handle->bnum = block;                                               
ffc22030:	93 bf 00 04 	stw     r29,4(r31)                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))        
ffc22034:	4b ff 5e 69 	bl      ffc17e9c <rtems_rfs_trace>             
ffc22038:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2203c:	41 9e 00 34 	beq-    cr7,ffc22070 <rtems_rfs_buffer_handle_request+0x158><== ALWAYS TAKEN
    printf ("rtems-rfs: buffer-request: block=%" PRIu32 " bdbuf-%s=%" PRIu32 " refs=%d\n",
ffc22040:	2f 9b 00 00 	cmpwi   cr7,r27,0                              <== NOT EXECUTED
ffc22044:	41 9e 01 20 	beq-    cr7,ffc22164 <rtems_rfs_buffer_handle_request+0x24c><== NOT EXECUTED
ffc22048:	3c a0 ff c4 	lis     r5,-60                                 <== NOT EXECUTED
ffc2204c:	38 a5 c7 60 	addi    r5,r5,-14496                           <== NOT EXECUTED
            block, read ? "read" : "get", handle->buffer->block,      
ffc22050:	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",
ffc22054:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc22058:	38 63 d2 e8 	addi    r3,r3,-11544                           <== NOT EXECUTED
ffc2205c:	80 c9 00 18 	lwz     r6,24(r9)                              <== NOT EXECUTED
ffc22060:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc22064:	80 e9 00 30 	lwz     r7,48(r9)                              <== NOT EXECUTED
ffc22068:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2206c:	48 00 8a 2d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            block, read ? "read" : "get", handle->buffer->block,      
            handle->buffer->references);                              
                                                                      
  return 0;                                                           
}                                                                     
ffc22070:	80 01 00 24 	lwz     r0,36(r1)                              
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))        
    printf ("rtems-rfs: buffer-request: block=%" PRIu32 " bdbuf-%s=%" PRIu32 " refs=%d\n",
            block, read ? "read" : "get", handle->buffer->block,      
            handle->buffer->references);                              
                                                                      
  return 0;                                                           
ffc22074:	3b 80 00 00 	li      r28,0                                  
}                                                                     
ffc22078:	7f 83 e3 78 	mr      r3,r28                                 
ffc2207c:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc22080:	7c 08 03 a6 	mtlr    r0                                     
ffc22084:	83 81 00 10 	lwz     r28,16(r1)                             
ffc22088:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc2208c:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc22090:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc22094:	38 21 00 20 	addi    r1,r1,32                               
ffc22098:	4e 80 00 20 	blr                                            
     */                                                               
    if (block && (rtems_rfs_buffer_bnum (handle) == block))           
      return 0;                                                       
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))      
      printf ("rtems-rfs: buffer-request: handle has buffer: %" PRIu32 "\n",
ffc2209c:	80 9f 00 04 	lwz     r4,4(r31)                              <== NOT EXECUTED
ffc220a0:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc220a4:	38 63 d2 20 	addi    r3,r3,-11744                           <== NOT EXECUTED
ffc220a8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc220ac:	48 00 89 ed 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc220b0:	4b ff fe cc 	b       ffc21f7c <rtems_rfs_buffer_handle_request+0x64><== 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) &&                            
ffc220b4:	40 9e ff 4c 	bne+    cr7,ffc22000 <rtems_rfs_buffer_handle_request+0xe8>
      !rtems_rfs_buffer_handle_has_block (handle))                    
  {                                                                   
    /*                                                                
     * Check the local cache of released buffers.                     
     */                                                               
    if (fs->release_count)                                            
ffc220b8:	81 3e 00 60 	lwz     r9,96(r30)                             
ffc220bc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc220c0:	40 9e 01 48 	bne-    cr7,ffc22208 <rtems_rfs_buffer_handle_request+0x2f0>
      handle->buffer = rtems_rfs_scan_chain (&fs->release,            
                                             &fs->release_count,      
                                             block);                  
                                                                      
    if (!rtems_rfs_buffer_handle_has_block (handle) &&                
ffc220c4:	81 3e 00 70 	lwz     r9,112(r30)                            
ffc220c8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc220cc:	41 be 00 b0 	beq+    cr7,ffc2217c <rtems_rfs_buffer_handle_request+0x264>
        fs->release_modified_count)                                   
    {                                                                 
      handle->buffer = rtems_rfs_scan_chain (&fs->release_modified,   
ffc220d0:	38 9e 00 70 	addi    r4,r30,112                             
ffc220d4:	38 7e 00 64 	addi    r3,r30,100                             
ffc220d8:	7f a5 eb 78 	mr      r5,r29                                 
ffc220dc:	4b ff fa b5 	bl      ffc21b90 <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))                 
ffc220e0:	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,   
ffc220e4:	90 7f 00 08 	stw     r3,8(r31)                              
ffc220e8:	7c 64 1b 78 	mr      r4,r3                                  
                                             &fs->release_modified_count,
                                             block);                  
      /*                                                              
       * If we found a buffer retain the dirty buffer state.          
       */                                                             
      if (rtems_rfs_buffer_handle_has_block (handle))                 
ffc220ec:	41 9e 00 90 	beq-    cr7,ffc2217c <rtems_rfs_buffer_handle_request+0x264>
        rtems_rfs_buffer_mark_dirty (handle);                         
ffc220f0:	39 20 00 01 	li      r9,1                                   
ffc220f4:	99 3f 00 00 	stb     r9,0(r31)                              
ffc220f8:	4b ff ff 08 	b       ffc22000 <rtems_rfs_buffer_handle_request+0xe8>
  if (fs->buffers_count)                                              
  {                                                                   
    /*                                                                
     * Check the active buffer list for shared buffers.               
     */                                                               
    handle->buffer = rtems_rfs_scan_chain (&fs->buffers,              
ffc220fc:	38 7e 00 44 	addi    r3,r30,68                              
ffc22100:	38 9e 00 50 	addi    r4,r30,80                              
ffc22104:	7f a5 eb 78 	mr      r5,r29                                 
ffc22108:	4b ff fa 89 	bl      ffc21b90 <rtems_rfs_scan_chain>        
                                           &fs->buffers_count,        
                                           block);                    
    if (rtems_rfs_buffer_handle_has_block (handle) &&                 
ffc2210c:	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,              
ffc22110:	90 7f 00 08 	stw     r3,8(r31)                              
                                           &fs->buffers_count,        
                                           block);                    
    if (rtems_rfs_buffer_handle_has_block (handle) &&                 
ffc22114:	41 9e 00 5c 	beq-    cr7,ffc22170 <rtems_rfs_buffer_handle_request+0x258>
        rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))      
ffc22118:	38 60 00 00 	li      r3,0                                   
ffc2211c:	38 80 01 00 	li      r4,256                                 
ffc22120:	4b ff 5d 7d 	bl      ffc17e9c <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) &&                 
ffc22124:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc22128:	41 9e fe c0 	beq+    cr7,ffc21fe8 <rtems_rfs_buffer_handle_request+0xd0><== 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);                    
ffc2212c:	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", 
ffc22130:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc22134:	38 63 d2 7c 	addi    r3,r3,-11652                           <== NOT EXECUTED
ffc22138:	80 89 00 30 	lwz     r4,48(r9)                              <== NOT EXECUTED
ffc2213c:	38 84 00 01 	addi    r4,r4,1                                <== NOT EXECUTED
ffc22140:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc22144:	48 00 89 55 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc22148:	4b ff fe a0 	b       ffc21fe8 <rtems_rfs_buffer_handle_request+0xd0><== NOT EXECUTED
    handle->dirty = false;                                            
    handle->bnum = 0;                                                 
  }                                                                   
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))        
    printf ("rtems-rfs: buffer-request: block=%" PRIu32 "\n", block); 
ffc2214c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc22150:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc22154:	38 63 d2 54 	addi    r3,r3,-11692                           <== NOT EXECUTED
ffc22158:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2215c:	48 00 89 3d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc22160:	4b ff fe 7c 	b       ffc21fdc <rtems_rfs_buffer_handle_request+0xc4><== 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",
ffc22164:	3c a0 ff c4 	lis     r5,-60                                 <== NOT EXECUTED
ffc22168:	38 a5 d2 1c 	addi    r5,r5,-11748                           <== NOT EXECUTED
ffc2216c:	4b ff fe e4 	b       ffc22050 <rtems_rfs_buffer_handle_request+0x138><== 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) &&                            
ffc22170:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc22174:	71 2a 00 02 	andi.   r10,r9,2                               
ffc22178:	41 a2 ff 40 	beq-    ffc220b8 <rtems_rfs_buffer_handle_request+0x1a0>
  /*                                                                  
   * If not located we request the buffer from the I/O layer.         
   */                                                                 
  if (!rtems_rfs_buffer_handle_has_block (handle))                    
  {                                                                   
    rc = rtems_rfs_buffer_io_request (fs, block, read, &handle->buffer);
ffc2217c:	7f c3 f3 78 	mr      r3,r30                                 
ffc22180:	7f a4 eb 78 	mr      r4,r29                                 
ffc22184:	7f 65 db 78 	mr      r5,r27                                 
ffc22188:	38 df 00 08 	addi    r6,r31,8                               
ffc2218c:	48 00 69 71 	bl      ffc28afc <rtems_rfs_buffer_bdbuf_request>
                                                                      
    if (rc > 0)                                                       
ffc22190:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc22194:	40 81 00 54 	ble-    ffc221e8 <rtems_rfs_buffer_handle_request+0x2d0><== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))    
ffc22198:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc2219c:	38 80 01 00 	li      r4,256                                 <== NOT EXECUTED
ffc221a0:	4b ff 5c fd 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc221a4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc221a8:	41 be fd e8 	beq-    cr7,ffc21f90 <rtems_rfs_buffer_handle_request+0x78><== NOT EXECUTED
        printf ("rtems-rfs: buffer-request: block=%" PRIu32 ": bdbuf-%s: %d: %s\n",
ffc221ac:	2f 9b 00 00 	cmpwi   cr7,r27,0                              <== NOT EXECUTED
ffc221b0:	41 9e 00 4c 	beq-    cr7,ffc221fc <rtems_rfs_buffer_handle_request+0x2e4><== NOT EXECUTED
ffc221b4:	3f e0 ff c4 	lis     r31,-60                                <== NOT EXECUTED
ffc221b8:	3b ff c7 60 	addi    r31,r31,-14496                         <== NOT EXECUTED
ffc221bc:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc221c0:	48 00 9a 55 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc221c4:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc221c8:	7c 67 1b 78 	mr      r7,r3                                  <== NOT EXECUTED
ffc221cc:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc221d0:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc221d4:	7f 86 e3 78 	mr      r6,r28                                 <== NOT EXECUTED
ffc221d8:	38 63 d2 b0 	addi    r3,r3,-11600                           <== NOT EXECUTED
ffc221dc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc221e0:	48 00 88 b9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc221e4:	4b ff fd ac 	b       ffc21f90 <rtems_rfs_buffer_handle_request+0x78><== NOT EXECUTED
                block, read ? "read" : "get", rc, strerror (rc));     
      return rc;                                                      
    }                                                                 
                                                                      
    rtems_chain_set_off_chain (rtems_rfs_buffer_link(handle));        
ffc221e8:	80 9f 00 08 	lwz     r4,8(r31)                              
ffc221ec:	39 20 00 00 	li      r9,0                                   
ffc221f0:	91 24 00 04 	stw     r9,4(r4)                               
ffc221f4:	91 24 00 00 	stw     r9,0(r4)                               
ffc221f8:	4b ff fe 08 	b       ffc22000 <rtems_rfs_buffer_handle_request+0xe8>
    rc = rtems_rfs_buffer_io_request (fs, block, read, &handle->buffer);
                                                                      
    if (rc > 0)                                                       
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_HANDLE_REQUEST))    
        printf ("rtems-rfs: buffer-request: block=%" PRIu32 ": bdbuf-%s: %d: %s\n",
ffc221fc:	3f e0 ff c4 	lis     r31,-60                                <== NOT EXECUTED
ffc22200:	3b ff d2 1c 	addi    r31,r31,-11748                         <== NOT EXECUTED
ffc22204:	4b ff ff b8 	b       ffc221bc <rtems_rfs_buffer_handle_request+0x2a4><== NOT EXECUTED
  {                                                                   
    /*                                                                
     * Check the local cache of released buffers.                     
     */                                                               
    if (fs->release_count)                                            
      handle->buffer = rtems_rfs_scan_chain (&fs->release,            
ffc22208:	38 9e 00 60 	addi    r4,r30,96                              
ffc2220c:	38 7e 00 54 	addi    r3,r30,84                              
ffc22210:	7f a5 eb 78 	mr      r5,r29                                 
ffc22214:	4b ff f9 7d 	bl      ffc21b90 <rtems_rfs_scan_chain>        
                                             &fs->release_count,      
                                             block);                  
                                                                      
    if (!rtems_rfs_buffer_handle_has_block (handle) &&                
ffc22218:	2f 83 00 00 	cmpwi   cr7,r3,0                               
  {                                                                   
    /*                                                                
     * Check the local cache of released buffers.                     
     */                                                               
    if (fs->release_count)                                            
      handle->buffer = rtems_rfs_scan_chain (&fs->release,            
ffc2221c:	90 7f 00 08 	stw     r3,8(r31)                              
ffc22220:	7c 64 1b 78 	mr      r4,r3                                  
                                             &fs->release_count,      
                                             block);                  
                                                                      
    if (!rtems_rfs_buffer_handle_has_block (handle) &&                
ffc22224:	40 9e fd dc 	bne+    cr7,ffc22000 <rtems_rfs_buffer_handle_request+0xe8>
ffc22228:	4b ff fe 9c 	b       ffc220c4 <rtems_rfs_buffer_handle_request+0x1ac>
                                                                      

ffc2222c <rtems_rfs_buffer_open>: return rc; } int rtems_rfs_buffer_open (const char* name, rtems_rfs_file_system* fs) {
ffc2222c:	94 21 ff a0 	stwu    r1,-96(r1)                             
ffc22230:	7c 08 02 a6 	mflr    r0                                     
ffc22234:	93 c1 00 58 	stw     r30,88(r1)                             
ffc22238:	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))                  
ffc2223c:	38 80 00 20 	li      r4,32                                  
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_open (const char* name, rtems_rfs_file_system* fs)   
{                                                                     
ffc22240:	93 e1 00 5c 	stw     r31,92(r1)                             
ffc22244:	7c 7f 1b 78 	mr      r31,r3                                 
  struct stat st;                                                     
#if RTEMS_RFS_USE_LIBBLOCK                                            
  int rv;                                                             
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
ffc22248:	38 60 00 00 	li      r3,0                                   
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_open (const char* name, rtems_rfs_file_system* fs)   
{                                                                     
ffc2224c:	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))                  
ffc22250:	4b ff 5c 4d 	bl      ffc17e9c <rtems_rfs_trace>             
ffc22254:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc22258:	40 9e 00 74 	bne-    cr7,ffc222cc <rtems_rfs_buffer_open+0xa0><== NEVER TAKEN
    printf ("rtems-rfs: buffer-open: opening: %s\n", name);           
                                                                      
  fs->device = open (name, O_RDWR);                                   
ffc2225c:	7f e3 fb 78 	mr      r3,r31                                 
ffc22260:	38 80 00 02 	li      r4,2                                   
ffc22264:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc22268:	4b fe 92 d5 	bl      ffc0b53c <open>                        
  if (fs->device < 0)                                                 
ffc2226c:	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);                                   
ffc22270:	90 7e 00 0c 	stw     r3,12(r30)                             
  if (fs->device < 0)                                                 
ffc22274:	41 9c 00 88 	blt-    cr7,ffc222fc <rtems_rfs_buffer_open+0xd0><== NEVER TAKEN
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
      printf ("rtems-rfs: buffer-open: cannot open file\n");          
    return ENXIO;                                                     
  }                                                                   
                                                                      
  if (fstat (fs->device, &st) < 0)                                    
ffc22278:	38 81 00 08 	addi    r4,r1,8                                
ffc2227c:	4b fe 81 6d 	bl      ffc0a3e8 <fstat>                       
ffc22280:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc22284:	41 9c 01 18 	blt-    cr7,ffc2239c <rtems_rfs_buffer_open+0x170><== NEVER TAKEN
                                                                      
#if RTEMS_RFS_USE_LIBBLOCK                                            
  /*                                                                  
   * Is the device a block device ?                                   
   */                                                                 
  if (!S_ISBLK (st.st_mode))                                          
ffc22288:	81 21 00 14 	lwz     r9,20(r1)                              
ffc2228c:	55 29 04 26 	rlwinm  r9,r9,0,16,19                          
ffc22290:	2f 89 60 00 	cmpwi   cr7,r9,24576                           
ffc22294:	41 9e 00 8c 	beq-    cr7,ffc22320 <rtems_rfs_buffer_open+0xf4><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
ffc22298:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc2229c:	38 80 00 08 	li      r4,8                                   <== NOT EXECUTED
ffc222a0:	4b ff 5b fd 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc222a4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc222a8:	40 9e 00 c0 	bne-    cr7,ffc22368 <rtems_rfs_buffer_open+0x13c><== NOT EXECUTED
  fs->device = open (name, O_RDWR);                                   
  if (fs->device < 0)                                                 
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
      printf ("rtems-rfs: buffer-open: cannot open file\n");          
    return ENXIO;                                                     
ffc222ac:	3b e0 00 06 	li      r31,6                                  <== NOT EXECUTED
    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;                                                           
}                                                                     
ffc222b0:	80 01 00 64 	lwz     r0,100(r1)                             
ffc222b4:	7f e3 fb 78 	mr      r3,r31                                 
ffc222b8:	83 c1 00 58 	lwz     r30,88(r1)                             
ffc222bc:	7c 08 03 a6 	mtlr    r0                                     
ffc222c0:	83 e1 00 5c 	lwz     r31,92(r1)                             
ffc222c4:	38 21 00 60 	addi    r1,r1,96                               
ffc222c8:	4e 80 00 20 	blr                                            
#if RTEMS_RFS_USE_LIBBLOCK                                            
  int rv;                                                             
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
    printf ("rtems-rfs: buffer-open: opening: %s\n", name);           
ffc222cc:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc222d0:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc222d4:	38 63 d3 24 	addi    r3,r3,-11484                           <== NOT EXECUTED
ffc222d8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc222dc:	48 00 87 bd 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
                                                                      
  fs->device = open (name, O_RDWR);                                   
ffc222e0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc222e4:	38 80 00 02 	li      r4,2                                   <== NOT EXECUTED
ffc222e8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc222ec:	4b fe 92 51 	bl      ffc0b53c <open>                        <== NOT EXECUTED
  if (fs->device < 0)                                                 
ffc222f0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
#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);                                   
ffc222f4:	90 7e 00 0c 	stw     r3,12(r30)                             <== NOT EXECUTED
  if (fs->device < 0)                                                 
ffc222f8:	40 9c ff 80 	bge+    cr7,ffc22278 <rtems_rfs_buffer_open+0x4c><== NOT EXECUTED
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
ffc222fc:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc22300:	38 80 00 08 	li      r4,8                                   <== NOT EXECUTED
ffc22304:	4b ff 5b 99 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc22308:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc2230c:	41 9e ff a0 	beq+    cr7,ffc222ac <rtems_rfs_buffer_open+0x80><== NOT EXECUTED
      printf ("rtems-rfs: buffer-open: cannot open file\n");          
ffc22310:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc22314:	38 63 d3 4c 	addi    r3,r3,-11444                           <== NOT EXECUTED
ffc22318:	48 00 8a e9 	bl      ffc2ae00 <puts>                        <== NOT EXECUTED
ffc2231c:	4b ff ff 90 	b       ffc222ac <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);                   
ffc22320:	80 7e 00 0c 	lwz     r3,12(r30)                             
ffc22324:	3c 80 40 04 	lis     r4,16388                               
ffc22328:	60 84 42 09 	ori     r4,r4,16905                            
ffc2232c:	38 be 00 10 	addi    r5,r30,16                              
ffc22330:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc22334:	4b fe 82 3d 	bl      ffc0a570 <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)                                                        
ffc22338:	2f 83 00 00 	cmpwi   cr7,r3,0                               
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
ffc2233c:	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)                                                        
ffc22340:	41 9e 00 9c 	beq-    cr7,ffc223dc <rtems_rfs_buffer_open+0x1b0><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
ffc22344:	38 80 00 08 	li      r4,8                                   <== NOT EXECUTED
ffc22348:	4b ff 5b 55 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc2234c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc22350:	41 9e ff 5c 	beq+    cr7,ffc222ac <rtems_rfs_buffer_open+0x80><== NOT EXECUTED
      printf ("rtems-rfs: buffer-open: cannot obtain the disk\n");    
ffc22354:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc22358:	38 63 d3 dc 	addi    r3,r3,-11300                           <== NOT EXECUTED
ffc2235c:	48 00 8a a5 	bl      ffc2ae00 <puts>                        <== NOT EXECUTED
    return ENXIO;                                                     
ffc22360:	3b e0 00 06 	li      r31,6                                  <== NOT EXECUTED
ffc22364:	4b ff ff 4c 	b       ffc222b0 <rtems_rfs_buffer_open+0x84>  <== NOT EXECUTED
   * Is the device a block device ?                                   
   */                                                                 
  if (!S_ISBLK (st.st_mode))                                          
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
      printf ("rtems-rfs: buffer-open: '%s' is not a block device\n", name);
ffc22368:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc2236c:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc22370:	38 63 d3 a8 	addi    r3,r3,-11352                           <== NOT EXECUTED
ffc22374:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc22378:	48 00 87 21 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    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;                                                           
}                                                                     
ffc2237c:	80 01 00 64 	lwz     r0,100(r1)                             <== NOT EXECUTED
   */                                                                 
  if (!S_ISBLK (st.st_mode))                                          
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
      printf ("rtems-rfs: buffer-open: '%s' is not a block device\n", name);
    return ENXIO;                                                     
ffc22380:	3b e0 00 06 	li      r31,6                                  <== NOT EXECUTED
    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;                                                           
}                                                                     
ffc22384:	83 c1 00 58 	lwz     r30,88(r1)                             <== NOT EXECUTED
ffc22388:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc2238c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc22390:	83 e1 00 5c 	lwz     r31,92(r1)                             <== NOT EXECUTED
ffc22394:	38 21 00 60 	addi    r1,r1,96                               <== NOT EXECUTED
ffc22398:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    return ENXIO;                                                     
  }                                                                   
                                                                      
  if (fstat (fs->device, &st) < 0)                                    
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_OPEN))                
ffc2239c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc223a0:	38 80 00 08 	li      r4,8                                   <== NOT EXECUTED
ffc223a4:	4b ff 5a f9 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc223a8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc223ac:	41 9e ff 00 	beq+    cr7,ffc222ac <rtems_rfs_buffer_open+0x80><== NOT EXECUTED
      printf ("rtems-rfs: buffer-open: stat '%s' failed: %s\n",       
              name, strerror (errno));                                
ffc223b0:	48 00 6c 49 	bl      ffc28ff8 <__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",       
ffc223b4:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
ffc223b8:	48 00 98 5d 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc223bc:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc223c0:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc223c4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc223c8:	38 63 d3 78 	addi    r3,r3,-11400                           <== NOT EXECUTED
ffc223cc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc223d0:	48 00 86 c9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
              name, strerror (errno));                                
    return ENXIO;                                                     
ffc223d4:	3b e0 00 06 	li      r31,6                                  <== NOT EXECUTED
ffc223d8:	4b ff fe d8 	b       ffc222b0 <rtems_rfs_buffer_open+0x84>  <== NOT EXECUTED
#else                                                                 
  fs->media_size = st.st_size;                                        
  strcat (fs->name, name);                                            
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
ffc223dc:	38 80 00 20 	li      r4,32                                  
ffc223e0:	4b ff 5a bd 	bl      ffc17e9c <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;                                                           
ffc223e4:	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))                  
ffc223e8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc223ec:	41 9e fe c4 	beq+    cr7,ffc222b0 <rtems_rfs_buffer_open+0x84><== ALWAYS TAKEN
    printf ("rtems-rfs: buffer-open: blks=%" PRId32 ", blk-size=%" PRId32 "\n",
            rtems_rfs_fs_media_blocks (fs),                           
ffc223f0:	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",
ffc223f4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc223f8:	38 63 d4 0c 	addi    r3,r3,-11252                           <== NOT EXECUTED
ffc223fc:	80 89 00 1c 	lwz     r4,28(r9)                              <== NOT EXECUTED
ffc22400:	80 a9 00 20 	lwz     r5,32(r9)                              <== NOT EXECUTED
ffc22404:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc22408:	48 00 86 91 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc2240c:	4b ff fe a4 	b       ffc222b0 <rtems_rfs_buffer_open+0x84>  <== NOT EXECUTED
                                                                      

ffc22594 <rtems_rfs_buffer_setblksize>: return result; } int rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, size_t size) {
ffc22594:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc22598:	7c 08 02 a6 	mflr    r0                                     
ffc2259c:	93 e1 00 14 	stw     r31,20(r1)                             
ffc225a0:	7c 7f 1b 78 	mr      r31,r3                                 
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))            
ffc225a4:	38 60 00 00 	li      r3,0                                   
  return result;                                                      
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, size_t size)  
{                                                                     
ffc225a8:	90 81 00 08 	stw     r4,8(r1)                               
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))            
ffc225ac:	38 80 04 00 	li      r4,1024                                
  return result;                                                      
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, size_t size)  
{                                                                     
ffc225b0:	90 01 00 1c 	stw     r0,28(r1)                              
ffc225b4:	93 c1 00 10 	stw     r30,16(r1)                             
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))            
ffc225b8:	4b ff 58 e5 	bl      ffc17e9c <rtems_rfs_trace>             
ffc225bc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc225c0:	40 9e 00 88 	bne-    cr7,ffc22648 <rtems_rfs_buffer_setblksize+0xb4><== NEVER TAKEN
    printf ("rtems-rfs: buffer-setblksize: block size: %zu\n", size); 
                                                                      
  rc = rtems_rfs_buffers_release (fs);                                
ffc225c4:	7f e3 fb 78 	mr      r3,r31                                 
ffc225c8:	4b ff ff 21 	bl      ffc224e8 <rtems_rfs_buffers_release>   
  if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))
ffc225cc:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc225d0:	40 81 00 18 	ble-    ffc225e8 <rtems_rfs_buffer_setblksize+0x54><== ALWAYS TAKEN
ffc225d4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc225d8:	38 80 04 00 	li      r4,1024                                <== NOT EXECUTED
ffc225dc:	4b ff 58 c1 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc225e0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc225e4:	40 9e 00 e0 	bne-    cr7,ffc226c4 <rtems_rfs_buffer_setblksize+0x130><== NOT EXECUTED
    printf ("rtems-rfs: buffer-setblksize: buffer release failed: %d: %s\n",
            rc, strerror (rc));                                       
                                                                      
  rc = rtems_rfs_buffer_sync (fs);                                    
ffc225e8:	7f e3 fb 78 	mr      r3,r31                                 
ffc225ec:	4b ff fe 25 	bl      ffc22410 <rtems_rfs_buffer_sync>       
  if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))
ffc225f0:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc225f4:	40 81 00 18 	ble-    ffc2260c <rtems_rfs_buffer_setblksize+0x78><== ALWAYS TAKEN
ffc225f8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc225fc:	38 80 04 00 	li      r4,1024                                <== NOT EXECUTED
ffc22600:	4b ff 58 9d 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc22604:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc22608:	40 9e 00 58 	bne-    cr7,ffc22660 <rtems_rfs_buffer_setblksize+0xcc><== NOT EXECUTED
    printf ("rtems-rfs: buffer-setblksize: device sync failed: %d: %s\n",
            rc, strerror (rc));                                       
                                                                      
#if RTEMS_RFS_USE_LIBBLOCK                                            
  rc = fs->disk->ioctl (fs->disk, RTEMS_BLKIO_SETBLKSIZE, &size);     
ffc2260c:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc22610:	3c 80 80 04 	lis     r4,-32764                              
ffc22614:	60 84 42 04 	ori     r4,r4,16900                            
ffc22618:	81 23 00 38 	lwz     r9,56(r3)                              
ffc2261c:	38 a1 00 08 	addi    r5,r1,8                                
ffc22620:	7d 29 03 a6 	mtctr   r9                                     
ffc22624:	4e 80 04 21 	bctrl                                          
  if (rc < 0)                                                         
ffc22628:	2c 03 00 00 	cmpwi   r3,0                                   
ffc2262c:	41 80 00 78 	blt-    ffc226a4 <rtems_rfs_buffer_setblksize+0x110><== NEVER TAKEN
    rc = errno;                                                       
#endif                                                                
  return rc;                                                          
}                                                                     
ffc22630:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc22634:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc22638:	7c 08 03 a6 	mtlr    r0                                     
ffc2263c:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc22640:	38 21 00 18 	addi    r1,r1,24                               
ffc22644:	4e 80 00 20 	blr                                            
rtems_rfs_buffer_setblksize (rtems_rfs_file_system* fs, size_t size)  
{                                                                     
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))            
    printf ("rtems-rfs: buffer-setblksize: block size: %zu\n", size); 
ffc22648:	80 81 00 08 	lwz     r4,8(r1)                               <== NOT EXECUTED
ffc2264c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc22650:	38 63 d4 d8 	addi    r3,r3,-11048                           <== NOT EXECUTED
ffc22654:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc22658:	48 00 84 41 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc2265c:	4b ff ff 68 	b       ffc225c4 <rtems_rfs_buffer_setblksize+0x30><== NOT EXECUTED
    printf ("rtems-rfs: buffer-setblksize: buffer release failed: %d: %s\n",
            rc, strerror (rc));                                       
                                                                      
  rc = rtems_rfs_buffer_sync (fs);                                    
  if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))
    printf ("rtems-rfs: buffer-setblksize: device sync failed: %d: %s\n",
ffc22660:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc22664:	48 00 95 b1 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc22668:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc2266c:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc22670:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc22674:	38 63 d5 48 	addi    r3,r3,-10936                           <== NOT EXECUTED
ffc22678:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2267c:	48 00 84 1d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
#if RTEMS_RFS_USE_LIBBLOCK                                            
  rc = fs->disk->ioctl (fs->disk, RTEMS_BLKIO_SETBLKSIZE, &size);     
ffc22680:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc22684:	3c 80 80 04 	lis     r4,-32764                              <== NOT EXECUTED
ffc22688:	81 23 00 38 	lwz     r9,56(r3)                              <== NOT EXECUTED
ffc2268c:	60 84 42 04 	ori     r4,r4,16900                            <== NOT EXECUTED
ffc22690:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc22694:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc22698:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
  if (rc < 0)                                                         
ffc2269c:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc226a0:	40 80 ff 90 	bge+    ffc22630 <rtems_rfs_buffer_setblksize+0x9c><== NOT EXECUTED
    rc = errno;                                                       
ffc226a4:	48 00 69 55 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
#endif                                                                
  return rc;                                                          
}                                                                     
ffc226a8:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
#if RTEMS_RFS_USE_LIBBLOCK                                            
  rc = fs->disk->ioctl (fs->disk, RTEMS_BLKIO_SETBLKSIZE, &size);     
  if (rc < 0)                                                         
    rc = errno;                                                       
ffc226ac:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
#endif                                                                
  return rc;                                                          
}                                                                     
ffc226b0:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc226b4:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc226b8:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc226bc:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc226c0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))            
    printf ("rtems-rfs: buffer-setblksize: block size: %zu\n", size); 
                                                                      
  rc = rtems_rfs_buffers_release (fs);                                
  if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SETBLKSIZE))
    printf ("rtems-rfs: buffer-setblksize: buffer release failed: %d: %s\n",
ffc226c4:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc226c8:	48 00 95 4d 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc226cc:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc226d0:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc226d4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc226d8:	38 63 d5 08 	addi    r3,r3,-11000                           <== NOT EXECUTED
ffc226dc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc226e0:	48 00 83 b9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc226e4:	4b ff ff 04 	b       ffc225e8 <rtems_rfs_buffer_setblksize+0x54><== NOT EXECUTED
                                                                      

ffc22410 <rtems_rfs_buffer_sync>: return rc; } int rtems_rfs_buffer_sync (rtems_rfs_file_system* fs) {
ffc22410:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc22414:	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))                  
ffc22418:	38 80 00 20 	li      r4,32                                  
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_sync (rtems_rfs_file_system* fs)                     
{                                                                     
ffc2241c:	93 e1 00 14 	stw     r31,20(r1)                             
ffc22420:	7c 7f 1b 78 	mr      r31,r3                                 
  int result = 0;                                                     
#if RTEMS_RFS_USE_LIBBLOCK                                            
  rtems_status_code sc;                                               
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
ffc22424:	38 60 00 00 	li      r3,0                                   
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_sync (rtems_rfs_file_system* fs)                     
{                                                                     
ffc22428:	90 01 00 1c 	stw     r0,28(r1)                              
ffc2242c:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc22430:	93 c1 00 10 	stw     r30,16(r1)                             
  int result = 0;                                                     
#if RTEMS_RFS_USE_LIBBLOCK                                            
  rtems_status_code sc;                                               
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
ffc22434:	4b ff 5a 69 	bl      ffc17e9c <rtems_rfs_trace>             
ffc22438:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2243c:	40 9e 00 9c 	bne-    cr7,ffc224d8 <rtems_rfs_buffer_sync+0xc8><== NEVER TAKEN
                                                                      
  /*                                                                  
   * @todo Split in the separate files for each type.                 
   */                                                                 
#if RTEMS_RFS_USE_LIBBLOCK                                            
  sc = rtems_bdbuf_syncdev (rtems_rfs_fs_device (fs));                
ffc22440:	80 7f 00 10 	lwz     r3,16(r31)                             
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffer_sync (rtems_rfs_file_system* fs)                     
{                                                                     
  int result = 0;                                                     
ffc22444:	3b c0 00 00 	li      r30,0                                  
                                                                      
  /*                                                                  
   * @todo Split in the separate files for each type.                 
   */                                                                 
#if RTEMS_RFS_USE_LIBBLOCK                                            
  sc = rtems_bdbuf_syncdev (rtems_rfs_fs_device (fs));                
ffc22448:	4b ff 88 45 	bl      ffc1ac8c <rtems_bdbuf_syncdev>         
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc2244c:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc22450:	40 82 00 2c 	bne-    ffc2247c <rtems_rfs_buffer_sync+0x6c>  <== NEVER TAKEN
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                
      printf ("rtems-rfs: buffer-sync: device sync failed: %s\n",     
              rtems_status_text (sc));                                
    result = EIO;                                                     
  }                                                                   
  rtems_disk_release (fs->disk);                                      
ffc22454:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc22458:	4b fe 3a 0d 	bl      ffc05e64 <rtems_disk_release>          
      printf ("rtems-rfs: buffer-sync: file sync failed: %d: %s\n",   
              result, strerror (result));                             
  }                                                                   
#endif                                                                
  return result;                                                      
}                                                                     
ffc2245c:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc22460:	7f c3 f3 78 	mr      r3,r30                                 
ffc22464:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc22468:	7c 08 03 a6 	mtlr    r0                                     
ffc2246c:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc22470:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc22474:	38 21 00 18 	addi    r1,r1,24                               
ffc22478:	4e 80 00 20 	blr                                            
   */                                                                 
#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))                
ffc2247c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc22480:	38 80 00 20 	li      r4,32                                  <== NOT EXECUTED
ffc22484:	4b ff 5a 19 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
      printf ("rtems-rfs: buffer-sync: device sync failed: %s\n",     
              rtems_status_text (sc));                                
    result = EIO;                                                     
ffc22488:	3b c0 00 05 	li      r30,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))                
ffc2248c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc22490:	41 9e ff c4 	beq+    cr7,ffc22454 <rtems_rfs_buffer_sync+0x44><== NOT EXECUTED
      printf ("rtems-rfs: buffer-sync: device sync failed: %s\n",     
ffc22494:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc22498:	4b ff 9d 71 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc2249c:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc224a0:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc224a4:	38 63 d4 5c 	addi    r3,r3,-11172                           <== NOT EXECUTED
ffc224a8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc224ac:	48 00 85 ed 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
              rtems_status_text (sc));                                
    result = EIO;                                                     
  }                                                                   
  rtems_disk_release (fs->disk);                                      
ffc224b0:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc224b4:	4b fe 39 b1 	bl      ffc05e64 <rtems_disk_release>          <== NOT EXECUTED
      printf ("rtems-rfs: buffer-sync: file sync failed: %d: %s\n",   
              result, strerror (result));                             
  }                                                                   
#endif                                                                
  return result;                                                      
}                                                                     
ffc224b8:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
ffc224bc:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc224c0:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc224c4:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc224c8:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc224cc:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc224d0:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc224d4:	4e 80 00 20 	blr                                            <== NOT EXECUTED
#if RTEMS_RFS_USE_LIBBLOCK                                            
  rtems_status_code sc;                                               
#endif                                                                
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_SYNC))                  
    printf ("rtems-rfs: buffer-sync: syncing\n");                     
ffc224d8:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc224dc:	38 63 d4 3c 	addi    r3,r3,-11204                           <== NOT EXECUTED
ffc224e0:	48 00 89 21 	bl      ffc2ae00 <puts>                        <== NOT EXECUTED
ffc224e4:	4b ff ff 5c 	b       ffc22440 <rtems_rfs_buffer_sync+0x30>  <== NOT EXECUTED
                                                                      

ffc224e8 <rtems_rfs_buffers_release>: return rrc; } int rtems_rfs_buffers_release (rtems_rfs_file_system* fs) {
ffc224e8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc224ec:	7c 08 02 a6 	mflr    r0                                     
  int rrc = 0;                                                        
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))               
ffc224f0:	38 80 00 40 	li      r4,64                                  
  return rrc;                                                         
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffers_release (rtems_rfs_file_system* fs)                 
{                                                                     
ffc224f4:	93 c1 00 08 	stw     r30,8(r1)                              
ffc224f8:	7c 7e 1b 78 	mr      r30,r3                                 
  int rrc = 0;                                                        
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))               
ffc224fc:	38 60 00 00 	li      r3,0                                   
  return rrc;                                                         
}                                                                     
                                                                      
int                                                                   
rtems_rfs_buffers_release (rtems_rfs_file_system* fs)                 
{                                                                     
ffc22500:	90 01 00 14 	stw     r0,20(r1)                              
ffc22504:	93 e1 00 0c 	stw     r31,12(r1)                             
  int rrc = 0;                                                        
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))               
ffc22508:	4b ff 59 95 	bl      ffc17e9c <rtems_rfs_trace>             
ffc2250c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc22510:	40 9e 00 64 	bne-    cr7,ffc22574 <rtems_rfs_buffers_release+0x8c><== NEVER TAKEN
    printf ("rtems-rfs: buffers-release: active:%" PRIu32 " "         
            "release:%" PRIu32 " release-modified:%" PRIu32 "\n",     
            fs->buffers_count, fs->release_count, fs->release_modified_count);
                                                                      
  rc = rtems_rfs_release_chain (&fs->release,                         
ffc22514:	38 9e 00 60 	addi    r4,r30,96                              
ffc22518:	38 a0 00 00 	li      r5,0                                   
ffc2251c:	38 7e 00 54 	addi    r3,r30,84                              
ffc22520:	4b ff f5 8d 	bl      ffc21aac <rtems_rfs_release_chain>     
                                &fs->release_count,                   
                                false);                               
  if ((rc > 0) && (rrc == 0))                                         
    rrc = rc;                                                         
  rc = rtems_rfs_release_chain (&fs->release_modified,                
ffc22524:	38 9e 00 70 	addi    r4,r30,112                             
ffc22528:	7c 69 18 f8 	not     r9,r3                                  
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))               
    printf ("rtems-rfs: buffers-release: active:%" PRIu32 " "         
            "release:%" PRIu32 " release-modified:%" PRIu32 "\n",     
            fs->buffers_count, fs->release_count, fs->release_modified_count);
                                                                      
  rc = rtems_rfs_release_chain (&fs->release,                         
ffc2252c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc22530:	7d 29 fe 70 	srawi   r9,r9,31                               
                                &fs->release_count,                   
                                false);                               
  if ((rc > 0) && (rrc == 0))                                         
    rrc = rc;                                                         
  rc = rtems_rfs_release_chain (&fs->release_modified,                
ffc22534:	38 7e 00 64 	addi    r3,r30,100                             
ffc22538:	38 a0 00 01 	li      r5,1                                   
ffc2253c:	7f ff 48 38 	and     r31,r31,r9                             
ffc22540:	4b ff f5 6d 	bl      ffc21aac <rtems_rfs_release_chain>     
                                &fs->release_modified_count,          
                                true);                                
  if ((rc > 0) && (rrc == 0))                                         
ffc22544:	2c 03 00 00 	cmpwi   r3,0                                   
ffc22548:	40 81 00 10 	ble-    ffc22558 <rtems_rfs_buffers_release+0x70><== ALWAYS TAKEN
ffc2254c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              <== NOT EXECUTED
ffc22550:	40 9e 00 08 	bne-    cr7,ffc22558 <rtems_rfs_buffers_release+0x70><== NOT EXECUTED
ffc22554:	7c 7f 1b 78 	mr      r31,r3                                 <== NOT EXECUTED
    rrc = rc;                                                         
                                                                      
  return rrc;                                                         
}                                                                     
ffc22558:	80 01 00 14 	lwz     r0,20(r1)                              
ffc2255c:	7f e3 fb 78 	mr      r3,r31                                 
ffc22560:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc22564:	7c 08 03 a6 	mtlr    r0                                     
ffc22568:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc2256c:	38 21 00 10 	addi    r1,r1,16                               
ffc22570:	4e 80 00 20 	blr                                            
{                                                                     
  int rrc = 0;                                                        
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_RELEASE))               
    printf ("rtems-rfs: buffers-release: active:%" PRIu32 " "         
ffc22574:	80 9e 00 50 	lwz     r4,80(r30)                             <== NOT EXECUTED
ffc22578:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc2257c:	80 be 00 60 	lwz     r5,96(r30)                             <== NOT EXECUTED
ffc22580:	38 63 d4 8c 	addi    r3,r3,-11124                           <== NOT EXECUTED
ffc22584:	80 de 00 70 	lwz     r6,112(r30)                            <== NOT EXECUTED
ffc22588:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2258c:	48 00 85 0d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc22590:	4b ff ff 84 	b       ffc22514 <rtems_rfs_buffers_release+0x2c><== NOT EXECUTED
                                                                      

ffc22dd0 <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) {
ffc22dd0:	94 21 ff 58 	stwu    r1,-168(r1)                            
ffc22dd4:	7c 08 02 a6 	mflr    r0                                     
ffc22dd8:	93 01 00 88 	stw     r24,136(r1)                            
ffc22ddc:	7c 98 23 78 	mr      r24,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))                
ffc22de0:	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)                 
{                                                                     
ffc22de4:	93 81 00 98 	stw     r28,152(r1)                            
ffc22de8:	7c 7c 1b 78 	mr      r28,r3                                 
  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))                
ffc22dec:	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)                 
{                                                                     
ffc22df0:	92 e1 00 84 	stw     r23,132(r1)                            
ffc22df4:	7c f7 3b 78 	mr      r23,r7                                 
ffc22df8:	93 21 00 8c 	stw     r25,140(r1)                            
ffc22dfc:	7c b9 2b 78 	mr      r25,r5                                 
ffc22e00:	93 41 00 90 	stw     r26,144(r1)                            
ffc22e04:	7c da 33 78 	mr      r26,r6                                 
ffc22e08:	90 01 00 ac 	stw     r0,172(r1)                             
ffc22e0c:	92 a1 00 7c 	stw     r21,124(r1)                            
ffc22e10:	92 c1 00 80 	stw     r22,128(r1)                            
ffc22e14:	93 61 00 94 	stw     r27,148(r1)                            
ffc22e18:	93 a1 00 9c 	stw     r29,156(r1)                            
ffc22e1c:	93 c1 00 a0 	stw     r30,160(r1)                            
ffc22e20:	93 e1 00 a4 	stw     r31,164(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))                
ffc22e24:	4b ff 50 79 	bl      ffc17e9c <rtems_rfs_trace>             
ffc22e28:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc22e2c:	40 9e 02 58 	bne-    cr7,ffc23084 <rtems_rfs_dir_add_entry+0x2b4><== NEVER TAKEN
    for (c = 0; c < length; c++)                                      
      printf ("%c", name[c]);                                         
    printf (", len=%zd\n", length);                                   
  }                                                                   
                                                                      
  rc = rtems_rfs_block_map_open (fs, dir, &map);                      
ffc22e30:	7f 83 e3 78 	mr      r3,r28                                 
ffc22e34:	7f 04 c3 78 	mr      r4,r24                                 
ffc22e38:	38 a1 00 08 	addi    r5,r1,8                                
ffc22e3c:	4b ff de 21 	bl      ffc20c5c <rtems_rfs_block_map_open>    
  if (rc > 0)                                                         
ffc22e40:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc22e44:	40 81 00 44 	ble-    ffc22e88 <rtems_rfs_dir_add_entry+0xb8><== ALWAYS TAKEN
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
  rtems_rfs_block_map_close (fs, &map);                               
  return rc;                                                          
}                                                                     
ffc22e48:	80 01 00 ac 	lwz     r0,172(r1)                             
ffc22e4c:	7f e3 fb 78 	mr      r3,r31                                 
ffc22e50:	82 a1 00 7c 	lwz     r21,124(r1)                            
ffc22e54:	7c 08 03 a6 	mtlr    r0                                     
ffc22e58:	82 c1 00 80 	lwz     r22,128(r1)                            
ffc22e5c:	82 e1 00 84 	lwz     r23,132(r1)                            
ffc22e60:	83 01 00 88 	lwz     r24,136(r1)                            
ffc22e64:	83 21 00 8c 	lwz     r25,140(r1)                            
ffc22e68:	83 41 00 90 	lwz     r26,144(r1)                            
ffc22e6c:	83 61 00 94 	lwz     r27,148(r1)                            
ffc22e70:	83 81 00 98 	lwz     r28,152(r1)                            
ffc22e74:	83 a1 00 9c 	lwz     r29,156(r1)                            
ffc22e78:	83 c1 00 a0 	lwz     r30,160(r1)                            
ffc22e7c:	83 e1 00 a4 	lwz     r31,164(r1)                            
ffc22e80:	38 21 00 a8 	addi    r1,r1,168                              
ffc22e84:	4e 80 00 20 	blr                                            
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc22e88:	39 20 00 00 	li      r9,0                                   
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc22e8c:	39 40 00 00 	li      r10,0                                  
  handle->bnum  = 0;                                                  
ffc22e90:	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)                       
ffc22e94:	3a a0 00 00 	li      r21,0                                  
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc22e98:	99 41 00 58 	stb     r10,88(r1)                             
ffc22e9c:	62 b5 ff ff 	ori     r21,r21,65535                          
      {                                                               
        if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <                     
ffc22ea0:	3a da 00 0a 	addi    r22,r26,10                             
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc22ea4:	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;                                                      
ffc22ea8:	91 21 00 64 	stw     r9,100(r1)                             
  bpos->boff = 0;                                                     
ffc22eac:	91 21 00 68 	stw     r9,104(r1)                             
  bpos->block = 0;                                                    
ffc22eb0:	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);          
ffc22eb4:	7f 83 e3 78 	mr      r3,r28                                 
ffc22eb8:	38 81 00 08 	addi    r4,r1,8                                
ffc22ebc:	38 a1 00 64 	addi    r5,r1,100                              
ffc22ec0:	38 c1 00 70 	addi    r6,r1,112                              
ffc22ec4:	4b ff e1 95 	bl      ffc21058 <rtems_rfs_block_map_find>    
    if (rc > 0)                                                       
ffc22ec8:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc22ecc:	40 81 02 f4 	ble-    ffc231c0 <rtems_rfs_dir_add_entry+0x3f0>
    {                                                                 
      if (rc != ENXIO)                                                
ffc22ed0:	2f 9f 00 06 	cmpwi   cr7,r31,6                              
ffc22ed4:	40 9e 03 60 	bne-    cr7,ffc23234 <rtems_rfs_dir_add_entry+0x464><== NEVER TAKEN
      }                                                               
                                                                      
      /*                                                              
       * We have reached the end of the directory so add a block.     
       */                                                             
      rc = rtems_rfs_block_map_grow (fs, &map, 1, &block);            
ffc22ed8:	7f 83 e3 78 	mr      r3,r28                                 
ffc22edc:	38 81 00 08 	addi    r4,r1,8                                
ffc22ee0:	38 a0 00 01 	li      r5,1                                   
ffc22ee4:	38 c1 00 70 	addi    r6,r1,112                              
ffc22ee8:	4b ff e4 1d 	bl      ffc21304 <rtems_rfs_block_map_grow>    
      if (rc > 0)                                                     
ffc22eec:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc22ef0:	41 81 03 84 	bgt-    ffc23274 <rtems_rfs_dir_add_entry+0x4a4><== NEVER TAKEN
                  "block map grow failed for ino %" PRIu32 ": %d: %s\n",
                  rtems_rfs_inode_ino (dir), rc, strerror (rc));      
        break;                                                        
      }                                                               
                                                                      
      read = false;                                                   
ffc22ef4:	3b c0 00 00 	li      r30,0                                  
    }                                                                 
                                                                      
    bpos.bno++;                                                       
ffc22ef8:	81 21 00 64 	lwz     r9,100(r1)                             
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);  
ffc22efc:	7f 83 e3 78 	mr      r3,r28                                 
ffc22f00:	80 a1 00 70 	lwz     r5,112(r1)                             
ffc22f04:	38 81 00 58 	addi    r4,r1,88                               
      }                                                               
                                                                      
      read = false;                                                   
    }                                                                 
                                                                      
    bpos.bno++;                                                       
ffc22f08:	39 29 00 01 	addi    r9,r9,1                                
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);  
ffc22f0c:	7f c6 f3 78 	mr      r6,r30                                 
      }                                                               
                                                                      
      read = false;                                                   
    }                                                                 
                                                                      
    bpos.bno++;                                                       
ffc22f10:	91 21 00 64 	stw     r9,100(r1)                             
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);  
ffc22f14:	4b ff f0 05 	bl      ffc21f18 <rtems_rfs_buffer_handle_request>
    if (rc > 0)                                                       
ffc22f18:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc22f1c:	41 81 02 ac 	bgt-    ffc231c8 <rtems_rfs_dir_add_entry+0x3f8><== NEVER TAKEN
      break;                                                          
    }                                                                 
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
                                                                      
    if (!read)                                                        
ffc22f20:	2f 9e 00 00 	cmpwi   cr7,r30,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);                         
ffc22f24:	81 21 00 60 	lwz     r9,96(r1)                              
ffc22f28:	83 e9 00 1c 	lwz     r31,28(r9)                             
                                                                      
    if (!read)                                                        
ffc22f2c:	41 9e 01 ac 	beq-    cr7,ffc230d8 <rtems_rfs_dir_add_entry+0x308>
      memset (entry, 0xff, rtems_rfs_fs_block_size (fs));             
                                                                      
    offset = 0;                                                       
                                                                      
    while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
ffc22f30:	80 dc 00 08 	lwz     r6,8(r28)                              
ffc22f34:	34 e6 ff f6 	addic.  r7,r6,-10                              
ffc22f38:	41 a2 ff 7c 	beq-    ffc22eb4 <rtems_rfs_dir_add_entry+0xe4><== NEVER TAKEN
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
ffc22f3c:	8b df 00 08 	lbz     r30,8(r31)                             
ffc22f40:	89 3f 00 09 	lbz     r9,9(r31)                              
ffc22f44:	57 de 40 2e 	rlwinm  r30,r30,8,0,23                         
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc22f48:	8b 7f 00 00 	lbz     r27,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);                   
ffc22f4c:	7f de 4b 78 	or      r30,r30,r9                             
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc22f50:	89 1f 00 02 	lbz     r8,2(r31)                              
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc22f54:	7f 9e a8 00 	cmpw    cr7,r30,r21                            
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc22f58:	89 5f 00 03 	lbz     r10,3(r31)                             
ffc22f5c:	57 7b c0 0e 	rlwinm  r27,r27,24,0,7                         
ffc22f60:	89 3f 00 01 	lbz     r9,1(r31)                              
ffc22f64:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
ffc22f68:	7f 7b 43 78 	or      r27,r27,r8                             
ffc22f6c:	7f 7b 53 78 	or      r27,r27,r10                            
ffc22f70:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc22f74:	7f 7b 4b 78 	or      r27,r27,r9                             
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc22f78:	41 9e 01 98 	beq-    cr7,ffc23110 <rtems_rfs_dir_add_entry+0x340>
ffc22f7c:	3b a0 00 00 	li      r29,0                                  
ffc22f80:	48 00 00 70 	b       ffc22ff0 <rtems_rfs_dir_add_entry+0x220>
        }                                                             
                                                                      
        break;                                                        
      }                                                               
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
ffc22f84:	81 3c 00 1c 	lwz     r9,28(r28)                             
ffc22f88:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc22f8c:	40 9c 00 74 	bge-    cr7,ffc23000 <rtems_rfs_dir_add_entry+0x230><== NEVER TAKEN
ffc22f90:	41 9a 00 70 	beq-    cr6,ffc23000 <rtems_rfs_dir_add_entry+0x230><== NEVER TAKEN
ffc22f94:	81 3c 00 14 	lwz     r9,20(r28)                             
ffc22f98:	7f 89 d8 40 	cmplw   cr7,r9,r27                             
ffc22f9c:	41 9c 00 64 	blt-    cr7,ffc23000 <rtems_rfs_dir_add_entry+0x230><== NEVER TAKEN
        rtems_rfs_block_map_close (fs, &map);                         
        return EIO;                                                   
      }                                                               
                                                                      
      entry  += elength;                                              
      offset += elength;                                              
ffc22fa0:	7f bd f2 14 	add     r29,r29,r30                            
    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))
ffc22fa4:	7f 9d 38 40 	cmplw   cr7,r29,r7                             
ffc22fa8:	7f a5 eb 78 	mr      r5,r29                                 
ffc22fac:	40 bc ff 08 	bge-    cr7,ffc22eb4 <rtems_rfs_dir_add_entry+0xe4><== NEVER TAKEN
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
ffc22fb0:	8b df 00 08 	lbz     r30,8(r31)                             
ffc22fb4:	89 3f 00 09 	lbz     r9,9(r31)                              
ffc22fb8:	57 de 40 2e 	rlwinm  r30,r30,8,0,23                         
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc22fbc:	8b 7f 00 00 	lbz     r27,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);                   
ffc22fc0:	7f de 4b 78 	or      r30,r30,r9                             
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc22fc4:	89 1f 00 01 	lbz     r8,1(r31)                              
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc22fc8:	7f 9e a8 00 	cmpw    cr7,r30,r21                            
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc22fcc:	89 5f 00 03 	lbz     r10,3(r31)                             
ffc22fd0:	57 7b c0 0e 	rlwinm  r27,r27,24,0,7                         
ffc22fd4:	89 3f 00 02 	lbz     r9,2(r31)                              
ffc22fd8:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          
ffc22fdc:	7f 7b 43 78 	or      r27,r27,r8                             
ffc22fe0:	7f 7b 53 78 	or      r27,r27,r10                            
ffc22fe4:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc22fe8:	7f 7b 4b 78 	or      r27,r27,r9                             
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc22fec:	41 9e 01 28 	beq-    cr7,ffc23114 <rtems_rfs_dir_add_entry+0x344>
        }                                                             
                                                                      
        break;                                                        
      }                                                               
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
ffc22ff0:	2f 9e 00 0a 	cmpwi   cr7,r30,10                             
ffc22ff4:	2f 1b 00 00 	cmpwi   cr6,r27,0                              
        rtems_rfs_buffer_handle_close (fs, &buffer);                  
        rtems_rfs_block_map_close (fs, &map);                         
        return EIO;                                                   
      }                                                               
                                                                      
      entry  += elength;                                              
ffc22ff8:	7f ff f2 14 	add     r31,r31,r30                            
        }                                                             
                                                                      
        break;                                                        
      }                                                               
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
ffc22ffc:	41 9d ff 88 	bgt+    cr7,ffc22f84 <rtems_rfs_dir_add_entry+0x1b4><== ALWAYS TAKEN
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))          
ffc23000:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc23004:	3c 80 20 00 	lis     r4,8192                                <== NOT EXECUTED
ffc23008:	4b ff 4e 95 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc2300c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc23010:	40 9e 00 dc 	bne-    cr7,ffc230ec <rtems_rfs_dir_add_entry+0x31c><== 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);                       
ffc23014:	38 81 00 58 	addi    r4,r1,88                               <== NOT EXECUTED
ffc23018:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc2301c:	4b ff ec e9 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc23020:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
          printf ("rtems-rfs: dir-add-entry: "                        
                  "bad length or ino for ino %" PRIu32 ": %u/%" PRId32 " @ %04x\n",
                  rtems_rfs_inode_ino (dir), elength, eino, offset);  
        rtems_rfs_buffer_handle_close (fs, &buffer);                  
        rtems_rfs_block_map_close (fs, &map);                         
ffc23024:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc23028:	91 21 00 5c 	stw     r9,92(r1)                              <== NOT EXECUTED
ffc2302c:	38 81 00 08 	addi    r4,r1,8                                <== 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);                       
  handle->dirty = false;                                              
ffc23030:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc23034:	91 21 00 60 	stw     r9,96(r1)                              <== NOT EXECUTED
        return EIO;                                                   
ffc23038:	3b e0 00 05 	li      r31,5                                  <== NOT EXECUTED
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
  handle->dirty = false;                                              
ffc2303c:	99 41 00 58 	stb     r10,88(r1)                             <== NOT EXECUTED
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))          
          printf ("rtems-rfs: dir-add-entry: "                        
                  "bad length or ino for ino %" PRIu32 ": %u/%" PRId32 " @ %04x\n",
                  rtems_rfs_inode_ino (dir), elength, eino, offset);  
        rtems_rfs_buffer_handle_close (fs, &buffer);                  
        rtems_rfs_block_map_close (fs, &map);                         
ffc23040:	4b ff de 09 	bl      ffc20e48 <rtems_rfs_block_map_close>   <== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
  rtems_rfs_block_map_close (fs, &map);                               
  return rc;                                                          
}                                                                     
ffc23044:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc23048:	80 01 00 ac 	lwz     r0,172(r1)                             <== NOT EXECUTED
ffc2304c:	82 a1 00 7c 	lwz     r21,124(r1)                            <== NOT EXECUTED
ffc23050:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc23054:	82 c1 00 80 	lwz     r22,128(r1)                            <== NOT EXECUTED
ffc23058:	82 e1 00 84 	lwz     r23,132(r1)                            <== NOT EXECUTED
ffc2305c:	83 01 00 88 	lwz     r24,136(r1)                            <== NOT EXECUTED
ffc23060:	83 21 00 8c 	lwz     r25,140(r1)                            <== NOT EXECUTED
ffc23064:	83 41 00 90 	lwz     r26,144(r1)                            <== NOT EXECUTED
ffc23068:	83 61 00 94 	lwz     r27,148(r1)                            <== NOT EXECUTED
ffc2306c:	83 81 00 98 	lwz     r28,152(r1)                            <== NOT EXECUTED
ffc23070:	83 a1 00 9c 	lwz     r29,156(r1)                            <== NOT EXECUTED
ffc23074:	83 c1 00 a0 	lwz     r30,160(r1)                            <== NOT EXECUTED
ffc23078:	83 e1 00 a4 	lwz     r31,164(r1)                            <== NOT EXECUTED
ffc2307c:	38 21 00 a8 	addi    r1,r1,168                              <== NOT EXECUTED
ffc23080:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))                
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: dir-add-entry: dir=%" PRId32 ", name=",       
ffc23084:	80 98 00 08 	lwz     r4,8(r24)                              <== NOT EXECUTED
ffc23088:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc2308c:	38 63 d8 d4 	addi    r3,r3,-10028                           <== NOT EXECUTED
ffc23090:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc23094:	48 00 7a 05 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rtems_rfs_inode_ino (dir));                               
    for (c = 0; c < length; c++)                                      
ffc23098:	2f 9a 00 00 	cmpwi   cr7,r26,0                              <== NOT EXECUTED
ffc2309c:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc230a0:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
ffc230a4:	41 9e 00 1c 	beq-    cr7,ffc230c0 <rtems_rfs_dir_add_entry+0x2f0><== NOT EXECUTED
      printf ("%c", name[c]);                                         
ffc230a8:	7c 79 48 ae 	lbzx    r3,r25,r9                              <== 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++)                                      
ffc230ac:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
      printf ("%c", name[c]);                                         
ffc230b0:	48 00 7c 75 	bl      ffc2ad24 <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++)                                      
ffc230b4:	7f 9f d0 00 	cmpw    cr7,r31,r26                            <== NOT EXECUTED
ffc230b8:	7f e9 fb 78 	mr      r9,r31                                 <== NOT EXECUTED
ffc230bc:	40 9e ff ec 	bne+    cr7,ffc230a8 <rtems_rfs_dir_add_entry+0x2d8><== NOT EXECUTED
      printf ("%c", name[c]);                                         
    printf (", len=%zd\n", length);                                   
ffc230c0:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc230c4:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc230c8:	38 63 d9 00 	addi    r3,r3,-9984                            <== NOT EXECUTED
ffc230cc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc230d0:	48 00 79 c9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc230d4:	4b ff fd 5c 	b       ffc22e30 <rtems_rfs_dir_add_entry+0x60><== NOT EXECUTED
    }                                                                 
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
                                                                      
    if (!read)                                                        
      memset (entry, 0xff, rtems_rfs_fs_block_size (fs));             
ffc230d8:	80 bc 00 08 	lwz     r5,8(r28)                              
ffc230dc:	7f e3 fb 78 	mr      r3,r31                                 
ffc230e0:	38 80 00 ff 	li      r4,255                                 
ffc230e4:	48 00 77 59 	bl      ffc2a83c <memset>                      
ffc230e8:	4b ff fe 48 	b       ffc22f30 <rtems_rfs_dir_add_entry+0x160>
      }                                                               
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))          
          printf ("rtems-rfs: dir-add-entry: "                        
ffc230ec:	80 98 00 08 	lwz     r4,8(r24)                              <== NOT EXECUTED
ffc230f0:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc230f4:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc230f8:	7f 66 db 78 	mr      r6,r27                                 <== NOT EXECUTED
ffc230fc:	7f a7 eb 78 	mr      r7,r29                                 <== NOT EXECUTED
ffc23100:	38 63 d9 e4 	addi    r3,r3,-9756                            <== NOT EXECUTED
ffc23104:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc23108:	48 00 79 91 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc2310c:	4b ff ff 08 	b       ffc23014 <rtems_rfs_dir_add_entry+0x244><== NOT EXECUTED
    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))
ffc23110:	38 a0 00 00 	li      r5,0                                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
      {                                                               
        if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <                     
            (rtems_rfs_fs_block_size (fs) - offset))                  
ffc23114:	7c c5 30 50 	subf    r6,r5,r6                               
      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) <                     
ffc23118:	7f 96 30 40 	cmplw   cr7,r22,r6                             
ffc2311c:	40 9c fd 98 	bge+    cr7,ffc22eb4 <rtems_rfs_dir_add_entry+0xe4><== NEVER TAKEN
            (rtems_rfs_fs_block_size (fs) - offset))                  
        {                                                             
          uint32_t hash;                                              
          hash = rtems_rfs_dir_hash (name, length);                   
ffc23120:	7f 44 d3 78 	mr      r4,r26                                 
ffc23124:	7f 23 cb 78 	mr      r3,r25                                 
ffc23128:	48 00 5b 0d 	bl      ffc28c34 <rtems_rfs_dir_hash>          
          rtems_rfs_dir_set_entry_hash (entry, hash);                 
          rtems_rfs_dir_set_entry_ino (entry, ino);                   
ffc2312c:	56 e6 46 3e 	rlwinm  r6,r23,8,24,31                         
      {                                                               
        if ((length + RTEMS_RFS_DIR_ENTRY_SIZE) <                     
            (rtems_rfs_fs_block_size (fs) - offset))                  
        {                                                             
          uint32_t hash;                                              
          hash = rtems_rfs_dir_hash (name, length);                   
ffc23130:	7c 69 1b 78 	mr      r9,r3                                  
          rtems_rfs_dir_set_entry_hash (entry, hash);                 
          rtems_rfs_dir_set_entry_ino (entry, ino);                   
ffc23134:	98 df 00 00 	stb     r6,0(r31)                              
ffc23138:	56 e7 84 3e 	rlwinm  r7,r23,16,16,31                        
ffc2313c:	56 e8 c2 3e 	rlwinm  r8,r23,24,8,31                         
ffc23140:	98 ff 00 01 	stb     r7,1(r31)                              
          rtems_rfs_dir_set_entry_length (entry,                      
ffc23144:	56 ca c6 3e 	rlwinm  r10,r22,24,24,31                       
        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);                 
ffc23148:	54 65 46 3e 	rlwinm  r5,r3,8,24,31                          
          rtems_rfs_dir_set_entry_ino (entry, ino);                   
ffc2314c:	99 1f 00 02 	stb     r8,2(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);                 
ffc23150:	54 64 84 3e 	rlwinm  r4,r3,16,16,31                         
ffc23154:	54 63 c2 3e 	rlwinm  r3,r3,24,8,31                          
          rtems_rfs_dir_set_entry_ino (entry, ino);                   
          rtems_rfs_dir_set_entry_length (entry,                      
ffc23158:	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);                 
ffc2315c:	98 bf 00 04 	stb     r5,4(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);    
ffc23160:	7f 45 d3 78 	mr      r5,r26                                 
        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);                 
ffc23164:	98 9f 00 05 	stb     r4,5(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);    
ffc23168:	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);                 
ffc2316c:	98 7f 00 06 	stb     r3,6(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);    
ffc23170:	38 7f 00 0a 	addi    r3,r31,10                              
        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);                 
ffc23174:	99 3f 00 07 	stb     r9,7(r31)                              
          rtems_rfs_dir_set_entry_ino (entry, ino);                   
ffc23178:	9a ff 00 03 	stb     r23,3(r31)                             
          rtems_rfs_dir_set_entry_length (entry,                      
ffc2317c:	9a df 00 09 	stb     r22,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;                                                   
ffc23180:	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);    
ffc23184:	48 00 74 89 	bl      ffc2a60c <memcpy>                      
          rtems_rfs_buffer_mark_dirty (&buffer);                      
ffc23188:	39 20 00 01 	li      r9,1                                   
 */                                                                   
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);                       
ffc2318c:	38 81 00 58 	addi    r4,r1,88                               
ffc23190:	99 21 00 58 	stb     r9,88(r1)                              
ffc23194:	7f 83 e3 78 	mr      r3,r28                                 
ffc23198:	4b ff eb 6d 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc2319c:	39 20 00 00 	li      r9,0                                   
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);                       
  handle->dirty = false;                                              
ffc231a0:	39 40 00 00 	li      r10,0                                  
  handle->bnum  = 0;                                                  
ffc231a4:	91 21 00 5c 	stw     r9,92(r1)                              
          rtems_rfs_buffer_handle_close (fs, &buffer);                
          rtems_rfs_block_map_close (fs, &map);                       
ffc231a8:	7f 83 e3 78 	mr      r3,r28                                 
ffc231ac:	38 81 00 08 	addi    r4,r1,8                                
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);                       
  handle->dirty = false;                                              
ffc231b0:	99 41 00 58 	stb     r10,88(r1)                             
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc231b4:	91 21 00 60 	stw     r9,96(r1)                              
ffc231b8:	4b ff dc 91 	bl      ffc20e48 <rtems_rfs_block_map_close>   
ffc231bc:	4b ff fc 8c 	b       ffc22e48 <rtems_rfs_dir_add_entry+0x78>
  while (true)                                                        
  {                                                                   
    rtems_rfs_block_no block;                                         
    uint8_t*           entry;                                         
    int                offset;                                        
    bool               read = true;                                   
ffc231c0:	3b c0 00 01 	li      r30,1                                  
ffc231c4:	4b ff fd 34 	b       ffc22ef8 <rtems_rfs_dir_add_entry+0x128>
    bpos.bno++;                                                       
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, read);  
    if (rc > 0)                                                       
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))            
ffc231c8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc231cc:	3c 80 20 00 	lis     r4,8192                                <== NOT EXECUTED
ffc231d0:	4b ff 4c cd 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc231d4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc231d8:	41 be 00 2c 	beq+    cr7,ffc23204 <rtems_rfs_dir_add_entry+0x434><== NOT EXECUTED
        printf ("rtems-rfs: dir-add-entry: "                          
ffc231dc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc231e0:	83 d8 00 08 	lwz     r30,8(r24)                             <== NOT EXECUTED
ffc231e4:	48 00 8a 31 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc231e8:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc231ec:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc231f0:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc231f4:	38 63 d9 9c 	addi    r3,r3,-9828                            <== NOT EXECUTED
ffc231f8:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc231fc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc23200:	48 00 78 99 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
ffc23204:	38 81 00 58 	addi    r4,r1,88                               <== NOT EXECUTED
ffc23208:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc2320c:	4b ff ea f9 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc23210:	39 20 00 00 	li      r9,0                                   <== 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);                       
  handle->dirty = false;                                              
ffc23214:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc23218:	91 21 00 5c 	stw     r9,92(r1)                              <== NOT EXECUTED
      offset += elength;                                              
    }                                                                 
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
  rtems_rfs_block_map_close (fs, &map);                               
ffc2321c:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc23220:	38 81 00 08 	addi    r4,r1,8                                <== 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);                       
  handle->dirty = false;                                              
ffc23224:	99 41 00 58 	stb     r10,88(r1)                             <== NOT EXECUTED
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc23228:	91 21 00 60 	stw     r9,96(r1)                              <== NOT EXECUTED
ffc2322c:	4b ff dc 1d 	bl      ffc20e48 <rtems_rfs_block_map_close>   <== NOT EXECUTED
ffc23230:	4b ff fc 18 	b       ffc22e48 <rtems_rfs_dir_add_entry+0x78><== NOT EXECUTED
    rc = rtems_rfs_block_map_find (fs, &map, &bpos, &block);          
    if (rc > 0)                                                       
    {                                                                 
      if (rc != ENXIO)                                                
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))          
ffc23234:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc23238:	3c 80 20 00 	lis     r4,8192                                <== NOT EXECUTED
ffc2323c:	4b ff 4c 61 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc23240:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc23244:	41 9e ff c0 	beq+    cr7,ffc23204 <rtems_rfs_dir_add_entry+0x434><== NOT EXECUTED
          printf ("rtems-rfs: dir-add-entry: "                        
ffc23248:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc2324c:	83 d8 00 08 	lwz     r30,8(r24)                             <== NOT EXECUTED
ffc23250:	48 00 89 c5 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc23254:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc23258:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc2325c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc23260:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc23264:	38 63 d9 0c 	addi    r3,r3,-9972                            <== NOT EXECUTED
ffc23268:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2326c:	48 00 78 2d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc23270:	4b ff ff 94 	b       ffc23204 <rtems_rfs_dir_add_entry+0x434><== NOT EXECUTED
       * We have reached the end of the directory so add a block.     
       */                                                             
      rc = rtems_rfs_block_map_grow (fs, &map, 1, &block);            
      if (rc > 0)                                                     
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_ADD_ENTRY))          
ffc23274:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc23278:	3c 80 20 00 	lis     r4,8192                                <== NOT EXECUTED
ffc2327c:	4b ff 4c 21 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc23280:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc23284:	41 9e ff 80 	beq+    cr7,ffc23204 <rtems_rfs_dir_add_entry+0x434><== NOT EXECUTED
          printf ("rtems-rfs: dir-add-entry: "                        
ffc23288:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc2328c:	83 d8 00 08 	lwz     r30,8(r24)                             <== NOT EXECUTED
ffc23290:	48 00 89 85 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc23294:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc23298:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc2329c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc232a0:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc232a4:	38 63 d9 54 	addi    r3,r3,-9900                            <== NOT EXECUTED
ffc232a8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc232ac:	48 00 77 ed 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc232b0:	4b ff ff 54 	b       ffc23204 <rtems_rfs_dir_add_entry+0x434><== NOT EXECUTED
                                                                      

ffc232b4 <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) {
ffc232b4:	94 21 ff 68 	stwu    r1,-152(r1)                            
ffc232b8:	7d 80 00 26 	mfcr    r12                                    
ffc232bc:	7c 08 02 a6 	mflr    r0                                     
ffc232c0:	93 01 00 78 	stw     r24,120(r1)                            
ffc232c4:	7c 98 23 78 	mr      r24,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))                
ffc232c8:	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)              
{                                                                     
ffc232cc:	93 81 00 88 	stw     r28,136(r1)                            
ffc232d0:	7c 7c 1b 78 	mr      r28,r3                                 
  rtems_rfs_block_no      block;                                      
  rtems_rfs_buffer_handle buffer;                                     
  bool                    search;                                     
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))                
ffc232d4:	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)              
{                                                                     
ffc232d8:	92 e1 00 74 	stw     r23,116(r1)                            
ffc232dc:	7c d7 33 78 	mr      r23,r6                                 
ffc232e0:	93 21 00 7c 	stw     r25,124(r1)                            
ffc232e4:	7c b9 2b 78 	mr      r25,r5                                 
ffc232e8:	90 01 00 9c 	stw     r0,156(r1)                             
ffc232ec:	92 c1 00 70 	stw     r22,112(r1)                            
ffc232f0:	93 41 00 80 	stw     r26,128(r1)                            
ffc232f4:	93 61 00 84 	stw     r27,132(r1)                            
ffc232f8:	93 a1 00 8c 	stw     r29,140(r1)                            
ffc232fc:	93 c1 00 90 	stw     r30,144(r1)                            
ffc23300:	93 e1 00 94 	stw     r31,148(r1)                            
ffc23304:	91 81 00 6c 	stw     r12,108(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))                
ffc23308:	4b ff 4b 95 	bl      ffc17e9c <rtems_rfs_trace>             
ffc2330c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc23310:	40 9e 00 60 	bne-    cr7,ffc23370 <rtems_rfs_dir_del_entry+0xbc><== NEVER TAKEN
    printf ("rtems-rfs: dir-del-entry: dir=%" PRId32 ", entry=%" PRId32 " offset=%" PRIu32 "\n",
            rtems_rfs_inode_ino (dir), ino, offset);                  
                                                                      
  rc = rtems_rfs_block_map_open (fs, dir, &map);                      
ffc23314:	7f 83 e3 78 	mr      r3,r28                                 
ffc23318:	7f 04 c3 78 	mr      r4,r24                                 
ffc2331c:	38 a1 00 08 	addi    r5,r1,8                                
ffc23320:	4b ff d9 3d 	bl      ffc20c5c <rtems_rfs_block_map_open>    
  if (rc > 0)                                                         
ffc23324:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc23328:	40 81 00 7c 	ble-    ffc233a4 <rtems_rfs_dir_del_entry+0xf0><== ALWAYS TAKEN
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
  rtems_rfs_block_map_close (fs, &map);                               
  return rc;                                                          
}                                                                     
ffc2332c:	80 01 00 9c 	lwz     r0,156(r1)                             
ffc23330:	7f 43 d3 78 	mr      r3,r26                                 
ffc23334:	81 81 00 6c 	lwz     r12,108(r1)                            
ffc23338:	7c 08 03 a6 	mtlr    r0                                     
ffc2333c:	82 c1 00 70 	lwz     r22,112(r1)                            
ffc23340:	82 e1 00 74 	lwz     r23,116(r1)                            
ffc23344:	7d 80 81 20 	mtcrf   8,r12                                  
ffc23348:	83 01 00 78 	lwz     r24,120(r1)                            
ffc2334c:	83 21 00 7c 	lwz     r25,124(r1)                            
ffc23350:	83 41 00 80 	lwz     r26,128(r1)                            
ffc23354:	83 61 00 84 	lwz     r27,132(r1)                            
ffc23358:	83 81 00 88 	lwz     r28,136(r1)                            
ffc2335c:	83 a1 00 8c 	lwz     r29,140(r1)                            
ffc23360:	83 c1 00 90 	lwz     r30,144(r1)                            
ffc23364:	83 e1 00 94 	lwz     r31,148(r1)                            
ffc23368:	38 21 00 98 	addi    r1,r1,152                              
ffc2336c:	4e 80 00 20 	blr                                            
  rtems_rfs_buffer_handle buffer;                                     
  bool                    search;                                     
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))                
    printf ("rtems-rfs: dir-del-entry: dir=%" PRId32 ", entry=%" PRId32 " offset=%" PRIu32 "\n",
ffc23370:	80 98 00 08 	lwz     r4,8(r24)                              <== NOT EXECUTED
ffc23374:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc23378:	7f 25 cb 78 	mr      r5,r25                                 <== NOT EXECUTED
ffc2337c:	7e e6 bb 78 	mr      r6,r23                                 <== NOT EXECUTED
ffc23380:	38 63 da 2c 	addi    r3,r3,-9684                            <== NOT EXECUTED
ffc23384:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc23388:	48 00 77 11 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rtems_rfs_inode_ino (dir), ino, offset);                  
                                                                      
  rc = rtems_rfs_block_map_open (fs, dir, &map);                      
ffc2338c:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc23390:	7f 04 c3 78 	mr      r4,r24                                 <== NOT EXECUTED
ffc23394:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc23398:	4b ff d8 c5 	bl      ffc20c5c <rtems_rfs_block_map_open>    <== NOT EXECUTED
  if (rc > 0)                                                         
ffc2339c:	7c 7a 1b 79 	mr.     r26,r3                                 <== NOT EXECUTED
ffc233a0:	41 81 ff 8c 	bgt+    ffc2332c <rtems_rfs_dir_del_entry+0x78><== NOT EXECUTED
    return rc;                                                        
                                                                      
  rc = rtems_rfs_block_map_seek (fs, &map, offset, &block);           
ffc233a4:	7f 83 e3 78 	mr      r3,r28                                 
ffc233a8:	38 81 00 08 	addi    r4,r1,8                                
ffc233ac:	38 a0 00 00 	li      r5,0                                   
ffc233b0:	7e e6 bb 78 	mr      r6,r23                                 
ffc233b4:	38 e1 00 64 	addi    r7,r1,100                              
ffc233b8:	4b ff de 49 	bl      ffc21200 <rtems_rfs_block_map_seek>    
ffc233bc:	3b e0 00 00 	li      r31,0                                  
  if (rc > 0)                                                         
ffc233c0:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc233c4:	40 81 00 20 	ble-    ffc233e4 <rtems_rfs_dir_del_entry+0x130><== ALWAYS TAKEN
  {                                                                   
    if (rc == ENXIO)                                                  
ffc233c8:	2f 9a 00 06 	cmpwi   cr7,r26,6                              <== NOT EXECUTED
ffc233cc:	40 be 00 08 	bne+    cr7,ffc233d4 <rtems_rfs_dir_del_entry+0x120><== NOT EXECUTED
      rc = ENOENT;                                                    
ffc233d0:	3b 40 00 02 	li      r26,2                                  <== NOT EXECUTED
    rtems_rfs_block_map_close (fs, &map);                             
ffc233d4:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc233d8:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc233dc:	4b ff da 6d 	bl      ffc20e48 <rtems_rfs_block_map_close>   <== NOT EXECUTED
ffc233e0:	4b ff ff 4c 	b       ffc2332c <rtems_rfs_dir_del_entry+0x78><== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * Only search if the offset is 0 else we are at that position.     
   */                                                                 
  search = offset ? false : true;                                     
ffc233e4:	7e e9 00 34 	cntlzw  r9,r23                                 
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc233e8:	9b e1 00 58 	stb     r31,88(r1)                             
ffc233ec:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
                                                                      
    /*                                                                
     * If we are searching start at the beginning of the block. If not searching
     * skip to the offset in the block.                               
     */                                                               
    if (search)                                                       
ffc233f0:	2e 09 00 00 	cmpwi   cr4,r9,0                               
  handle->bnum  = 0;                                                  
ffc233f4:	93 e1 00 5c 	stw     r31,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)                       
ffc233f8:	3a c0 00 00 	li      r22,0                                  
  handle->buffer = NULL;                                              
ffc233fc:	93 e1 00 60 	stw     r31,96(r1)                             
ffc23400:	62 d6 ff ff 	ori     r22,r22,65535                          
  while (rc == 0)                                                     
  {                                                                   
    uint8_t* entry;                                                   
    int      eoffset;                                                 
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);  
ffc23404:	80 a1 00 64 	lwz     r5,100(r1)                             
ffc23408:	7f 83 e3 78 	mr      r3,r28                                 
ffc2340c:	38 81 00 58 	addi    r4,r1,88                               
ffc23410:	38 c0 00 01 	li      r6,1                                   
ffc23414:	4b ff eb 05 	bl      ffc21f18 <rtems_rfs_buffer_handle_request>
    if (rc > 0)                                                       
ffc23418:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc2341c:	41 81 03 10 	bgt-    ffc2372c <rtems_rfs_dir_del_entry+0x478><== NEVER TAKEN
ffc23420:	80 dc 00 08 	lwz     r6,8(r28)                              
                                                                      
    /*                                                                
     * If we are searching start at the beginning of the block. If not searching
     * skip to the offset in the block.                               
     */                                                               
    if (search)                                                       
ffc23424:	41 92 01 34 	beq-    cr4,ffc23558 <rtems_rfs_dir_del_entry+0x2a4><== ALWAYS TAKEN
ffc23428:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
      eoffset = 0;                                                    
ffc2342c:	3b 60 00 00 	li      r27,0                                  <== 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))
ffc23430:	38 e6 ff f6 	addi    r7,r6,-10                              
    if (search)                                                       
      eoffset = 0;                                                    
    else                                                              
      eoffset = offset % rtems_rfs_fs_block_size (fs);                
                                                                      
    entry = rtems_rfs_buffer_data (&buffer) + eoffset;                
ffc23434:	81 41 00 60 	lwz     r10,96(r1)                             
                                                                      
    while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
ffc23438:	7f 87 48 40 	cmplw   cr7,r7,r9                              
    if (search)                                                       
      eoffset = 0;                                                    
    else                                                              
      eoffset = offset % rtems_rfs_fs_block_size (fs);                
                                                                      
    entry = rtems_rfs_buffer_data (&buffer) + eoffset;                
ffc2343c:	81 4a 00 1c 	lwz     r10,28(r10)                            
ffc23440:	7f ea 4a 14 	add     r31,r10,r9                             
                                                                      
    while (eoffset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
ffc23444:	40 9d 01 28 	ble-    cr7,ffc2356c <rtems_rfs_dir_del_entry+0x2b8><== NEVER TAKEN
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
ffc23448:	8b df 00 08 	lbz     r30,8(r31)                             
ffc2344c:	89 1f 00 09 	lbz     r8,9(r31)                              
ffc23450:	57 de 40 2e 	rlwinm  r30,r30,8,0,23                         
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc23454:	8b bf 00 01 	lbz     r29,1(r31)                             
    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);                   
ffc23458:	7f de 43 78 	or      r30,r30,r8                             
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc2345c:	88 bf 00 02 	lbz     r5,2(r31)                              
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc23460:	7f 9e b0 00 	cmpw    cr7,r30,r22                            
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc23464:	89 1f 00 03 	lbz     r8,3(r31)                              
ffc23468:	57 bd 80 1e 	rlwinm  r29,r29,16,0,15                        
ffc2346c:	7d 2a 48 ae 	lbzx    r9,r10,r9                              
ffc23470:	54 a5 40 2e 	rlwinm  r5,r5,8,0,23                           
ffc23474:	7f bd 2b 78 	or      r29,r29,r5                             
ffc23478:	7f bd 43 78 	or      r29,r29,r8                             
ffc2347c:	55 29 c0 0e 	rlwinm  r9,r9,24,0,7                           
ffc23480:	7f bd 4b 78 	or      r29,r29,r9                             
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc23484:	40 be 00 7c 	bne+    cr7,ffc23500 <rtems_rfs_dir_del_entry+0x24c><== ALWAYS TAKEN
ffc23488:	48 00 00 e4 	b       ffc2356c <rtems_rfs_dir_del_entry+0x2b8><== NOT EXECUTED
        break;                                                        
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
ffc2348c:	81 3c 00 1c 	lwz     r9,28(r28)                             
ffc23490:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc23494:	40 9c 00 7c 	bge-    cr7,ffc23510 <rtems_rfs_dir_del_entry+0x25c><== NEVER TAKEN
ffc23498:	41 9a 00 78 	beq-    cr6,ffc23510 <rtems_rfs_dir_del_entry+0x25c><== NEVER TAKEN
ffc2349c:	81 3c 00 14 	lwz     r9,20(r28)                             
ffc234a0:	7f 89 e8 40 	cmplw   cr7,r9,r29                             
ffc234a4:	41 9c 00 6c 	blt-    cr7,ffc23510 <rtems_rfs_dir_del_entry+0x25c><== NEVER TAKEN
                  rtems_rfs_inode_ino (dir), elength, eino, block, eoffset);
        rc = EIO;                                                     
        break;                                                        
      }                                                               
                                                                      
      if (ino == rtems_rfs_dir_entry_ino (entry))                     
ffc234a8:	41 86 01 18 	beq-    cr1,ffc235c0 <rtems_rfs_dir_del_entry+0x30c><== ALWAYS TAKEN
        rc = EIO;                                                     
        break;                                                        
      }                                                               
                                                                      
      entry   += elength;                                             
      eoffset += elength;                                             
ffc234ac:	7f 7b f2 14 	add     r27,r27,r30                            <== 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))
ffc234b0:	7f 9b 38 40 	cmplw   cr7,r27,r7                             <== NOT EXECUTED
        rtems_rfs_buffer_handle_close (fs, &buffer);                  
        rtems_rfs_block_map_close (fs, &map);                         
        return 0;                                                     
      }                                                               
                                                                      
      if (!search)                                                    
ffc234b4:	41 92 00 70 	beq-    cr4,ffc23524 <rtems_rfs_dir_del_entry+0x270><== NOT EXECUTED
      {                                                               
        rc = EIO;                                                     
        break;                                                        
      }                                                               
                                                                      
      entry   += elength;                                             
ffc234b8:	7f ff f2 14 	add     r31,r31,r30                            <== 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))
ffc234bc:	40 9c 00 b0 	bge-    cr7,ffc2356c <rtems_rfs_dir_del_entry+0x2b8><== NOT EXECUTED
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
ffc234c0:	8b df 00 08 	lbz     r30,8(r31)                             <== NOT EXECUTED
ffc234c4:	89 3f 00 09 	lbz     r9,9(r31)                              <== NOT EXECUTED
ffc234c8:	57 de 40 2e 	rlwinm  r30,r30,8,0,23                         <== NOT EXECUTED
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc234cc:	8b bf 00 00 	lbz     r29,0(r31)                             <== NOT EXECUTED
    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);                   
ffc234d0:	7f de 4b 78 	or      r30,r30,r9                             <== NOT EXECUTED
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc234d4:	89 1f 00 01 	lbz     r8,1(r31)                              <== NOT EXECUTED
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc234d8:	7f 9e b0 00 	cmpw    cr7,r30,r22                            <== NOT EXECUTED
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc234dc:	89 5f 00 03 	lbz     r10,3(r31)                             <== NOT EXECUTED
ffc234e0:	57 bd c0 0e 	rlwinm  r29,r29,24,0,7                         <== NOT EXECUTED
ffc234e4:	89 3f 00 02 	lbz     r9,2(r31)                              <== NOT EXECUTED
ffc234e8:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          <== NOT EXECUTED
ffc234ec:	7f bd 43 78 	or      r29,r29,r8                             <== NOT EXECUTED
ffc234f0:	7f bd 53 78 	or      r29,r29,r10                            <== NOT EXECUTED
ffc234f4:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           <== NOT EXECUTED
ffc234f8:	7f bd 4b 78 	or      r29,r29,r9                             <== NOT EXECUTED
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc234fc:	41 9e 00 70 	beq-    cr7,ffc2356c <rtems_rfs_dir_del_entry+0x2b8><== NOT EXECUTED
        break;                                                        
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
ffc23500:	2f 9e 00 0a 	cmpwi   cr7,r30,10                             
ffc23504:	2f 1d 00 00 	cmpwi   cr6,r29,0                              
                  rtems_rfs_inode_ino (dir), elength, eino, block, eoffset);
        rc = EIO;                                                     
        break;                                                        
      }                                                               
                                                                      
      if (ino == rtems_rfs_dir_entry_ino (entry))                     
ffc23508:	7c 99 e8 00 	cmpw    cr1,r25,r29                            
      eino    = rtems_rfs_dir_entry_ino (entry);                      
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
        break;                                                        
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
ffc2350c:	41 9d ff 80 	bgt+    cr7,ffc2348c <rtems_rfs_dir_del_entry+0x1d8><== ALWAYS TAKEN
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))          
ffc23510:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc23514:	3c 80 40 00 	lis     r4,16384                               <== NOT EXECUTED
ffc23518:	4b ff 49 85 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc2351c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc23520:	40 9e 00 78 	bne-    cr7,ffc23598 <rtems_rfs_dir_del_entry+0x2e4><== NOT EXECUTED
        }                                                             
                                                                      
        rtems_rfs_buffer_mark_dirty (&buffer);                        
        rtems_rfs_buffer_handle_close (fs, &buffer);                  
        rtems_rfs_block_map_close (fs, &map);                         
        return 0;                                                     
ffc23524:	3b 40 00 05 	li      r26,5                                  <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
ffc23528:	38 81 00 58 	addi    r4,r1,88                               <== NOT EXECUTED
ffc2352c:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc23530:	4b ff e7 d5 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc23534:	39 20 00 00 	li      r9,0                                   <== 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);                       
  handle->dirty = false;                                              
ffc23538:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc2353c:	91 21 00 5c 	stw     r9,92(r1)                              <== NOT EXECUTED
        rc = ENOENT;                                                  
    }                                                                 
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
  rtems_rfs_block_map_close (fs, &map);                               
ffc23540:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc23544:	38 81 00 08 	addi    r4,r1,8                                <== 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);                       
  handle->dirty = false;                                              
ffc23548:	99 41 00 58 	stb     r10,88(r1)                             <== NOT EXECUTED
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc2354c:	91 21 00 60 	stw     r9,96(r1)                              <== NOT EXECUTED
ffc23550:	4b ff d8 f9 	bl      ffc20e48 <rtems_rfs_block_map_close>   <== NOT EXECUTED
ffc23554:	4b ff fd d8 	b       ffc2332c <rtems_rfs_dir_del_entry+0x78><== NOT EXECUTED
     * skip to the offset in the block.                               
     */                                                               
    if (search)                                                       
      eoffset = 0;                                                    
    else                                                              
      eoffset = offset % rtems_rfs_fs_block_size (fs);                
ffc23558:	7d 37 33 96 	divwu   r9,r23,r6                              
ffc2355c:	7d 29 31 d6 	mullw   r9,r9,r6                               
ffc23560:	7d 29 b8 50 	subf    r9,r9,r23                              
ffc23564:	7d 3b 4b 78 	mr      r27,r9                                 
ffc23568:	4b ff fe c8 	b       ffc23430 <rtems_rfs_dir_del_entry+0x17c>
                                                                      
      entry   += elength;                                             
      eoffset += elength;                                             
    }                                                                 
                                                                      
    if (rc == 0)                                                      
ffc2356c:	40 a2 ff bc 	bne-    ffc23528 <rtems_rfs_dir_del_entry+0x274><== NOT EXECUTED
    {                                                                 
      rc = rtems_rfs_block_map_next_block (fs, &map, &block);         
ffc23570:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc23574:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc23578:	38 a1 00 64 	addi    r5,r1,100                              <== NOT EXECUTED
ffc2357c:	4b ff dd 49 	bl      ffc212c4 <rtems_rfs_block_map_next_block><== NOT EXECUTED
      if (rc == ENXIO)                                                
ffc23580:	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);         
ffc23584:	7c 7a 1b 78 	mr      r26,r3                                 <== NOT EXECUTED
      if (rc == ENXIO)                                                
ffc23588:	41 9e 01 9c 	beq-    cr7,ffc23724 <rtems_rfs_dir_del_entry+0x470><== NOT EXECUTED
  /*                                                                  
   * Only search if the offset is 0 else we are at that position.     
   */                                                                 
  search = offset ? false : true;                                     
                                                                      
  while (rc == 0)                                                     
ffc2358c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc23590:	41 9e fe 74 	beq+    cr7,ffc23404 <rtems_rfs_dir_del_entry+0x150><== NOT EXECUTED
ffc23594:	4b ff ff 94 	b       ffc23528 <rtems_rfs_dir_del_entry+0x274><== NOT EXECUTED
        break;                                                        
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))          
          printf ("rtems-rfs: dir-del-entry: "                        
ffc23598:	80 98 00 08 	lwz     r4,8(r24)                              <== NOT EXECUTED
ffc2359c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc235a0:	80 e1 00 64 	lwz     r7,100(r1)                             <== NOT EXECUTED
ffc235a4:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc235a8:	7f a6 eb 78 	mr      r6,r29                                 <== NOT EXECUTED
ffc235ac:	7f 68 db 78 	mr      r8,r27                                 <== NOT EXECUTED
ffc235b0:	38 63 da b0 	addi    r3,r3,-9552                            <== NOT EXECUTED
ffc235b4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc235b8:	48 00 74 e1 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc235bc:	4b ff ff 68 	b       ffc23524 <rtems_rfs_dir_del_entry+0x270><== NOT EXECUTED
      }                                                               
                                                                      
      if (ino == rtems_rfs_dir_entry_ino (entry))                     
      {                                                               
        uint32_t remaining;                                           
        remaining = rtems_rfs_fs_block_size (fs) - (eoffset + elength);
ffc235c0:	7f be da 14 	add     r29,r30,r27                            
ffc235c4:	7f bd 30 50 	subf    r29,r29,r6                             
        memmove (entry, entry + elength, remaining);                  
ffc235c8:	7c 9f f2 14 	add     r4,r31,r30                             
ffc235cc:	7f a5 eb 78 	mr      r5,r29                                 
ffc235d0:	7f e3 fb 78 	mr      r3,r31                                 
ffc235d4:	48 00 71 2d 	bl      ffc2a700 <memmove>                     
        memset (entry + remaining, 0xff, elength);                    
ffc235d8:	38 80 00 ff 	li      r4,255                                 
ffc235dc:	7f c5 f3 78 	mr      r5,r30                                 
ffc235e0:	7c 7f ea 14 	add     r3,r31,r29                             
ffc235e4:	48 00 72 59 	bl      ffc2a83c <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);                 
ffc235e8:	89 5f 00 08 	lbz     r10,8(r31)                             
ffc235ec:	89 3f 00 09 	lbz     r9,9(r31)                              
                                                                      
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))          
ffc235f0:	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);                 
ffc235f4:	55 5f 40 2e 	rlwinm  r31,r10,8,0,23                         
                                                                      
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))          
ffc235f8:	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);                 
ffc235fc:	7f ff 4b 78 	or      r31,r31,r9                             
                                                                      
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))          
ffc23600:	4b ff 48 9d 	bl      ffc17e9c <rtems_rfs_trace>             
ffc23604:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc23608:	41 9e 00 44 	beq-    cr7,ffc2364c <rtems_rfs_dir_del_entry+0x398><== 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");    
ffc2360c:	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: "                        
ffc23610:	80 c1 00 64 	lwz     r6,100(r1)                             <== NOT EXECUTED
ffc23614:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== 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");    
ffc23618:	81 41 00 10 	lwz     r10,16(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: "                        
ffc2361c:	40 9e 00 f0 	bne-    cr7,ffc2370c <rtems_rfs_dir_del_entry+0x458><== 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");    
ffc23620:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
ffc23624:	40 9e 00 e8 	bne-    cr7,ffc2370c <rtems_rfs_dir_del_entry+0x458><== 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: "                        
ffc23628:	3d 00 ff c4 	lis     r8,-60                                 <== NOT EXECUTED
ffc2362c:	39 08 c1 ac 	addi    r8,r8,-15956                           <== NOT EXECUTED
ffc23630:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc23634:	38 63 da fc 	addi    r3,r3,-9476                            <== NOT EXECUTED
ffc23638:	7f 24 cb 78 	mr      r4,r25                                 <== NOT EXECUTED
ffc2363c:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc23640:	7f 67 db 78 	mr      r7,r27                                 <== NOT EXECUTED
ffc23644:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc23648:	48 00 74 51 	bl      ffc2aa98 <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) &&                 
ffc2364c:	6f e9 ff ff 	xoris   r9,r31,65535                           
ffc23650:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc23654:	41 9e 00 40 	beq-    cr7,ffc23694 <rtems_rfs_dir_del_entry+0x3e0>
                      "block map shrink failed for ino %" PRIu32 ": %d: %s\n",
                      rtems_rfs_inode_ino (dir), rc, strerror (rc));  
          }                                                           
        }                                                             
                                                                      
        rtems_rfs_buffer_mark_dirty (&buffer);                        
ffc23658:	39 20 00 01 	li      r9,1                                   
 */                                                                   
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);                       
ffc2365c:	38 81 00 58 	addi    r4,r1,88                               
ffc23660:	99 21 00 58 	stb     r9,88(r1)                              
ffc23664:	7f 83 e3 78 	mr      r3,r28                                 
ffc23668:	4b ff e6 9d 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc2366c:	39 20 00 00 	li      r9,0                                   
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);                       
  handle->dirty = false;                                              
ffc23670:	39 40 00 00 	li      r10,0                                  
  handle->bnum  = 0;                                                  
ffc23674:	91 21 00 5c 	stw     r9,92(r1)                              
        rtems_rfs_buffer_handle_close (fs, &buffer);                  
        rtems_rfs_block_map_close (fs, &map);                         
ffc23678:	7f 83 e3 78 	mr      r3,r28                                 
ffc2367c:	38 81 00 08 	addi    r4,r1,8                                
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);                       
  handle->dirty = false;                                              
ffc23680:	99 41 00 58 	stb     r10,88(r1)                             
        return 0;                                                     
ffc23684:	3b 40 00 00 	li      r26,0                                  
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc23688:	91 21 00 60 	stw     r9,96(r1)                              
          }                                                           
        }                                                             
                                                                      
        rtems_rfs_buffer_mark_dirty (&buffer);                        
        rtems_rfs_buffer_handle_close (fs, &buffer);                  
        rtems_rfs_block_map_close (fs, &map);                         
ffc2368c:	4b ff d7 bd 	bl      ffc20e48 <rtems_rfs_block_map_close>   
ffc23690:	4b ff fc 9c 	b       ffc2332c <rtems_rfs_dir_del_entry+0x78>
                  "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) &&                 
ffc23694:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc23698:	40 be ff c0 	bne-    cr7,ffc23658 <rtems_rfs_dir_del_entry+0x3a4><== ALWAYS TAKEN
            (eoffset == 0) && rtems_rfs_block_map_last (&map))        
ffc2369c:	81 21 00 18 	lwz     r9,24(r1)                              <== NOT EXECUTED
ffc236a0:	81 41 00 10 	lwz     r10,16(r1)                             <== NOT EXECUTED
ffc236a4:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc236a8:	40 9e 00 c4 	bne-    cr7,ffc2376c <rtems_rfs_dir_del_entry+0x4b8><== NOT EXECUTED
ffc236ac:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
ffc236b0:	40 9e 00 bc 	bne-    cr7,ffc2376c <rtems_rfs_dir_del_entry+0x4b8><== NOT EXECUTED
        {                                                             
          rc = rtems_rfs_block_map_shrink (fs, &map, 1);              
ffc236b4:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc236b8:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc236bc:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc236c0:	4b ff e0 69 	bl      ffc21728 <rtems_rfs_block_map_shrink>  <== NOT EXECUTED
          if (rc > 0)                                                 
ffc236c4:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc236c8:	40 a1 ff 90 	ble-    ffc23658 <rtems_rfs_dir_del_entry+0x3a4><== NOT EXECUTED
          {                                                           
            if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))      
ffc236cc:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc236d0:	3c 80 40 00 	lis     r4,16384                               <== NOT EXECUTED
ffc236d4:	4b ff 47 c9 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc236d8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc236dc:	41 9e ff 7c 	beq+    cr7,ffc23658 <rtems_rfs_dir_del_entry+0x3a4><== NOT EXECUTED
              printf ("rtems-rfs: dir-del-entry: "                    
ffc236e0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc236e4:	83 d8 00 08 	lwz     r30,8(r24)                             <== NOT EXECUTED
ffc236e8:	48 00 85 2d 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc236ec:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc236f0:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc236f4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc236f8:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc236fc:	38 63 db 5c 	addi    r3,r3,-9380                            <== NOT EXECUTED
ffc23700:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc23704:	48 00 73 95 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc23708:	4b ff ff 50 	b       ffc23658 <rtems_rfs_dir_del_entry+0x3a4><== NOT EXECUTED
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))          
          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");    
ffc2370c:	39 4a ff ff 	addi    r10,r10,-1                             <== NOT EXECUTED
ffc23710:	7f 89 50 00 	cmpw    cr7,r9,r10                             <== NOT EXECUTED
ffc23714:	41 be ff 14 	beq-    cr7,ffc23628 <rtems_rfs_dir_del_entry+0x374><== 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: "                        
ffc23718:	3d 00 ff c4 	lis     r8,-60                                 <== NOT EXECUTED
ffc2371c:	39 08 c6 e4 	addi    r8,r8,-14620                           <== NOT EXECUTED
ffc23720:	4b ff ff 10 	b       ffc23630 <rtems_rfs_dir_del_entry+0x37c><== NOT EXECUTED
                                                                      
    if (rc == 0)                                                      
    {                                                                 
      rc = rtems_rfs_block_map_next_block (fs, &map, &block);         
      if (rc == ENXIO)                                                
        rc = ENOENT;                                                  
ffc23724:	3b 40 00 02 	li      r26,2                                  <== NOT EXECUTED
ffc23728:	4b ff fe 00 	b       ffc23528 <rtems_rfs_dir_del_entry+0x274><== NOT EXECUTED
    int      eoffset;                                                 
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);  
    if (rc > 0)                                                       
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_DEL_ENTRY))            
ffc2372c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc23730:	3c 80 40 00 	lis     r4,16384                               <== NOT EXECUTED
ffc23734:	4b ff 47 69 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc23738:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc2373c:	41 9e fd ec 	beq+    cr7,ffc23528 <rtems_rfs_dir_del_entry+0x274><== NOT EXECUTED
        printf ("rtems-rfs: dir-del-entry: "                          
ffc23740:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
ffc23744:	83 f8 00 08 	lwz     r31,8(r24)                             <== NOT EXECUTED
ffc23748:	48 00 84 cd 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc2374c:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc23750:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc23754:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc23758:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc2375c:	38 63 da 68 	addi    r3,r3,-9624                            <== NOT EXECUTED
ffc23760:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc23764:	48 00 73 35 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc23768:	4b ff fd c0 	b       ffc23528 <rtems_rfs_dir_del_entry+0x274><== NOT EXECUTED
                  " offset=%d last=%s\n",                             
                  ino, elength, block, eoffset,                       
                  rtems_rfs_block_map_last (&map) ? "yes" : "no");    
                                                                      
        if ((elength == RTEMS_RFS_DIR_ENTRY_EMPTY) &&                 
            (eoffset == 0) && rtems_rfs_block_map_last (&map))        
ffc2376c:	39 4a ff ff 	addi    r10,r10,-1                             <== NOT EXECUTED
ffc23770:	7f 89 50 00 	cmpw    cr7,r9,r10                             <== NOT EXECUTED
ffc23774:	40 9e fe e4 	bne+    cr7,ffc23658 <rtems_rfs_dir_del_entry+0x3a4><== NOT EXECUTED
ffc23778:	4b ff ff 3c 	b       ffc236b4 <rtems_rfs_dir_del_entry+0x400><== NOT EXECUTED
                                                                      

ffc23ba8 <rtems_rfs_dir_empty>: } int rtems_rfs_dir_empty (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* dir) {
ffc23ba8:	94 21 ff 78 	stwu    r1,-136(r1)                            
ffc23bac:	7c 08 02 a6 	mflr    r0                                     
ffc23bb0:	93 61 00 74 	stw     r27,116(r1)                            
ffc23bb4:	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))                     
ffc23bb8:	3c 80 80 00 	lis     r4,-32768                              
}                                                                     
                                                                      
int                                                                   
rtems_rfs_dir_empty (rtems_rfs_file_system*  fs,                      
                     rtems_rfs_inode_handle* dir)                     
{                                                                     
ffc23bbc:	93 81 00 78 	stw     r28,120(r1)                            
ffc23bc0:	7c 7c 1b 78 	mr      r28,r3                                 
  rtems_rfs_buffer_handle buffer;                                     
  rtems_rfs_block_no      block;                                      
  bool                    empty;                                      
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                     
ffc23bc4:	38 60 00 00 	li      r3,0                                   
}                                                                     
                                                                      
int                                                                   
rtems_rfs_dir_empty (rtems_rfs_file_system*  fs,                      
                     rtems_rfs_inode_handle* dir)                     
{                                                                     
ffc23bc8:	90 01 00 8c 	stw     r0,140(r1)                             
ffc23bcc:	93 01 00 68 	stw     r24,104(r1)                            
ffc23bd0:	93 21 00 6c 	stw     r25,108(r1)                            
ffc23bd4:	93 41 00 70 	stw     r26,112(r1)                            
ffc23bd8:	93 a1 00 7c 	stw     r29,124(r1)                            
ffc23bdc:	93 c1 00 80 	stw     r30,128(r1)                            
ffc23be0:	93 e1 00 84 	stw     r31,132(r1)                            
  rtems_rfs_buffer_handle buffer;                                     
  rtems_rfs_block_no      block;                                      
  bool                    empty;                                      
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                     
ffc23be4:	4b ff 42 b9 	bl      ffc17e9c <rtems_rfs_trace>             
ffc23be8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc23bec:	40 9e 00 50 	bne-    cr7,ffc23c3c <rtems_rfs_dir_empty+0x94><== NEVER TAKEN
    printf ("rtems-rfs: dir-empty: dir=%" PRId32 "\n", rtems_rfs_inode_ino (dir));
                                                                      
  empty = true;                                                       
                                                                      
  rc = rtems_rfs_block_map_open (fs, dir, &map);                      
ffc23bf0:	7f 83 e3 78 	mr      r3,r28                                 
ffc23bf4:	7f 64 db 78 	mr      r4,r27                                 
ffc23bf8:	38 a1 00 08 	addi    r5,r1,8                                
ffc23bfc:	4b ff d0 61 	bl      ffc20c5c <rtems_rfs_block_map_open>    
  if (rc > 0)                                                         
ffc23c00:	7c 78 1b 79 	mr.     r24,r3                                 
ffc23c04:	40 81 00 64 	ble-    ffc23c68 <rtems_rfs_dir_empty+0xc0>    <== ALWAYS TAKEN
    rc = ENOTEMPTY;                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
  rtems_rfs_block_map_close (fs, &map);                               
  return rc;                                                          
}                                                                     
ffc23c08:	80 01 00 8c 	lwz     r0,140(r1)                             <== NOT EXECUTED
ffc23c0c:	7f 03 c3 78 	mr      r3,r24                                 <== NOT EXECUTED
ffc23c10:	83 21 00 6c 	lwz     r25,108(r1)                            <== NOT EXECUTED
ffc23c14:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc23c18:	83 01 00 68 	lwz     r24,104(r1)                            <== NOT EXECUTED
ffc23c1c:	83 41 00 70 	lwz     r26,112(r1)                            <== NOT EXECUTED
ffc23c20:	83 61 00 74 	lwz     r27,116(r1)                            <== NOT EXECUTED
ffc23c24:	83 81 00 78 	lwz     r28,120(r1)                            <== NOT EXECUTED
ffc23c28:	83 a1 00 7c 	lwz     r29,124(r1)                            <== NOT EXECUTED
ffc23c2c:	83 c1 00 80 	lwz     r30,128(r1)                            <== NOT EXECUTED
ffc23c30:	83 e1 00 84 	lwz     r31,132(r1)                            <== NOT EXECUTED
ffc23c34:	38 21 00 88 	addi    r1,r1,136                              <== NOT EXECUTED
ffc23c38:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  rtems_rfs_block_no      block;                                      
  bool                    empty;                                      
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                     
    printf ("rtems-rfs: dir-empty: dir=%" PRId32 "\n", rtems_rfs_inode_ino (dir));
ffc23c3c:	80 9b 00 08 	lwz     r4,8(r27)                              <== NOT EXECUTED
ffc23c40:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc23c44:	38 63 dc 84 	addi    r3,r3,-9084                            <== NOT EXECUTED
ffc23c48:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc23c4c:	48 00 6e 4d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
                                                                      
  empty = true;                                                       
                                                                      
  rc = rtems_rfs_block_map_open (fs, dir, &map);                      
ffc23c50:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc23c54:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc23c58:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc23c5c:	4b ff d0 01 	bl      ffc20c5c <rtems_rfs_block_map_open>    <== NOT EXECUTED
  if (rc > 0)                                                         
ffc23c60:	7c 78 1b 79 	mr.     r24,r3                                 <== NOT EXECUTED
ffc23c64:	41 81 ff a4 	bgt+    ffc23c08 <rtems_rfs_dir_empty+0x60>    <== NOT EXECUTED
    return rc;                                                        
                                                                      
  rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);                
ffc23c68:	7f 83 e3 78 	mr      r3,r28                                 
ffc23c6c:	38 81 00 08 	addi    r4,r1,8                                
ffc23c70:	38 a0 00 00 	li      r5,0                                   
ffc23c74:	38 c0 00 00 	li      r6,0                                   
ffc23c78:	38 e1 00 64 	addi    r7,r1,100                              
ffc23c7c:	4b ff d5 85 	bl      ffc21200 <rtems_rfs_block_map_seek>    
  if (rc > 0)                                                         
ffc23c80:	7c 78 1b 79 	mr.     r24,r3                                 
ffc23c84:	41 81 02 10 	bgt-    ffc23e94 <rtems_rfs_dir_empty+0x2ec>   <== NEVER TAKEN
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc23c88:	39 20 00 00 	li      r9,0                                   
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc23c8c:	39 40 00 00 	li      r10,0                                  
  handle->bnum  = 0;                                                  
ffc23c90:	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)                       
ffc23c94:	3b 20 00 00 	li      r25,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: "                            
ffc23c98:	3f 40 ff c4 	lis     r26,-60                                
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc23c9c:	99 41 00 58 	stb     r10,88(r1)                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc23ca0:	63 39 ff ff 	ori     r25,r25,65535                          
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc23ca4:	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: "                            
ffc23ca8:	3b 5a dc a4 	addi    r26,r26,-9052                          
  while (empty)                                                       
  {                                                                   
    uint8_t* entry;                                                   
    int      offset;                                                  
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);  
ffc23cac:	80 a1 00 64 	lwz     r5,100(r1)                             
ffc23cb0:	7f 83 e3 78 	mr      r3,r28                                 
ffc23cb4:	38 81 00 58 	addi    r4,r1,88                               
ffc23cb8:	38 c0 00 01 	li      r6,1                                   
ffc23cbc:	4b ff e2 5d 	bl      ffc21f18 <rtems_rfs_buffer_handle_request>
    if (rc > 0)                                                       
ffc23cc0:	7c 78 1b 79 	mr.     r24,r3                                 
ffc23cc4:	41 81 01 18 	bgt-    ffc23ddc <rtems_rfs_dir_empty+0x234>   <== NEVER TAKEN
      break;                                                          
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
    offset = 0;                                                       
                                                                      
    while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
ffc23cc8:	80 dc 00 08 	lwz     r6,8(r28)                              
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);  
    if (rc > 0)                                                       
      break;                                                          
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
ffc23ccc:	81 21 00 60 	lwz     r9,96(r1)                              
    offset = 0;                                                       
                                                                      
    while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
ffc23cd0:	38 c6 ff f6 	addi    r6,r6,-10                              
ffc23cd4:	2f 86 00 00 	cmpwi   cr7,r6,0                               
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);  
    if (rc > 0)                                                       
      break;                                                          
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
ffc23cd8:	81 29 00 1c 	lwz     r9,28(r9)                              
    offset = 0;                                                       
                                                                      
    while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
ffc23cdc:	41 9e 01 90 	beq-    cr7,ffc23e6c <rtems_rfs_dir_empty+0x2c4><== NEVER TAKEN
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
ffc23ce0:	8b e9 00 08 	lbz     r31,8(r9)                              
ffc23ce4:	89 49 00 09 	lbz     r10,9(r9)                              
ffc23ce8:	57 ff 40 2e 	rlwinm  r31,r31,8,0,23                         
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc23cec:	8b c9 00 00 	lbz     r30,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);                   
ffc23cf0:	7f ff 53 78 	or      r31,r31,r10                            
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc23cf4:	88 e9 00 02 	lbz     r7,2(r9)                               
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc23cf8:	7f 9f c8 00 	cmpw    cr7,r31,r25                            
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc23cfc:	89 09 00 03 	lbz     r8,3(r9)                               
ffc23d00:	57 de c0 0e 	rlwinm  r30,r30,24,0,7                         
ffc23d04:	89 49 00 01 	lbz     r10,1(r9)                              
ffc23d08:	54 e7 40 2e 	rlwinm  r7,r7,8,0,23                           
ffc23d0c:	7f de 3b 78 	or      r30,r30,r7                             
ffc23d10:	7f de 43 78 	or      r30,r30,r8                             
ffc23d14:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc23d18:	7f de 53 78 	or      r30,r30,r10                            
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc23d1c:	41 9e 01 50 	beq-    cr7,ffc23e6c <rtems_rfs_dir_empty+0x2c4><== NEVER TAKEN
ffc23d20:	3b a0 00 00 	li      r29,0                                  
ffc23d24:	48 00 00 74 	b       ffc23d98 <rtems_rfs_dir_empty+0x1f0>   
      /*                                                              
       * Ignore the current (.) and parent (..) entries. Anything else means
       * the directory is not empty.                                  
       */                                                             
      if (((elength != (RTEMS_RFS_DIR_ENTRY_SIZE + 1)) ||             
           (entry[RTEMS_RFS_DIR_ENTRY_SIZE] != '.')) &&               
ffc23d28:	2f 9f 00 0c 	cmpwi   cr7,r31,12                             
ffc23d2c:	40 9e 00 a8 	bne-    cr7,ffc23dd4 <rtems_rfs_dir_empty+0x22c>
          ((elength != (RTEMS_RFS_DIR_ENTRY_SIZE + 2)) ||             
ffc23d30:	89 49 00 0a 	lbz     r10,10(r9)                             
ffc23d34:	2f 8a 00 2e 	cmpwi   cr7,r10,46                             
ffc23d38:	40 9e 00 9c 	bne-    cr7,ffc23dd4 <rtems_rfs_dir_empty+0x22c><== NEVER TAKEN
           (entry[RTEMS_RFS_DIR_ENTRY_SIZE] != '.') ||                
ffc23d3c:	89 49 00 0b 	lbz     r10,11(r9)                             
ffc23d40:	2f 8a 00 2e 	cmpwi   cr7,r10,46                             
ffc23d44:	40 9e 00 90 	bne-    cr7,ffc23dd4 <rtems_rfs_dir_empty+0x22c><== NEVER TAKEN
        empty = false;                                                
        break;                                                        
      }                                                               
                                                                      
      entry  += elength;                                              
      offset += elength;                                              
ffc23d48:	7f bd fa 14 	add     r29,r29,r31                            
      break;                                                          
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
    offset = 0;                                                       
                                                                      
    while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
ffc23d4c:	7f 9d 30 40 	cmplw   cr7,r29,r6                             
      {                                                               
        empty = false;                                                
        break;                                                        
      }                                                               
                                                                      
      entry  += elength;                                              
ffc23d50:	7d 29 fa 14 	add     r9,r9,r31                              
      break;                                                          
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
    offset = 0;                                                       
                                                                      
    while (offset < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
ffc23d54:	40 9c 01 18 	bge-    cr7,ffc23e6c <rtems_rfs_dir_empty+0x2c4><== NEVER TAKEN
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
ffc23d58:	8b e9 00 08 	lbz     r31,8(r9)                              
ffc23d5c:	89 49 00 09 	lbz     r10,9(r9)                              
ffc23d60:	57 ff 40 2e 	rlwinm  r31,r31,8,0,23                         
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc23d64:	8b c9 00 00 	lbz     r30,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);                   
ffc23d68:	7f ff 53 78 	or      r31,r31,r10                            
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc23d6c:	88 e9 00 01 	lbz     r7,1(r9)                               
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc23d70:	7f 9f c8 00 	cmpw    cr7,r31,r25                            
    {                                                                 
      rtems_rfs_ino eino;                                             
      int           elength;                                          
                                                                      
      elength = rtems_rfs_dir_entry_length (entry);                   
      eino    = rtems_rfs_dir_entry_ino (entry);                      
ffc23d74:	89 09 00 03 	lbz     r8,3(r9)                               
ffc23d78:	57 de c0 0e 	rlwinm  r30,r30,24,0,7                         
ffc23d7c:	89 49 00 02 	lbz     r10,2(r9)                              
ffc23d80:	54 e7 80 1e 	rlwinm  r7,r7,16,0,15                          
ffc23d84:	7f de 3b 78 	or      r30,r30,r7                             
ffc23d88:	7f de 43 78 	or      r30,r30,r8                             
ffc23d8c:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc23d90:	7f de 53 78 	or      r30,r30,r10                            
                                                                      
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
ffc23d94:	41 9e 00 d8 	beq-    cr7,ffc23e6c <rtems_rfs_dir_empty+0x2c4>
        break;                                                        
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
ffc23d98:	2f 9f 00 0a 	cmpwi   cr7,r31,10                             
ffc23d9c:	40 9d 00 a0 	ble-    cr7,ffc23e3c <rtems_rfs_dir_empty+0x294><== NEVER TAKEN
ffc23da0:	81 5c 00 1c 	lwz     r10,28(r28)                            
ffc23da4:	7f 9f 50 40 	cmplw   cr7,r31,r10                            
ffc23da8:	40 9c 00 94 	bge-    cr7,ffc23e3c <rtems_rfs_dir_empty+0x294><== NEVER TAKEN
ffc23dac:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc23db0:	41 9e 00 8c 	beq-    cr7,ffc23e3c <rtems_rfs_dir_empty+0x294><== NEVER TAKEN
ffc23db4:	81 5c 00 14 	lwz     r10,20(r28)                            
ffc23db8:	7f 8a f0 40 	cmplw   cr7,r10,r30                            
ffc23dbc:	41 9c 00 80 	blt-    cr7,ffc23e3c <rtems_rfs_dir_empty+0x294><== NEVER TAKEN
                                                                      
      /*                                                              
       * Ignore the current (.) and parent (..) entries. Anything else means
       * the directory is not empty.                                  
       */                                                             
      if (((elength != (RTEMS_RFS_DIR_ENTRY_SIZE + 1)) ||             
ffc23dc0:	2f 9f 00 0b 	cmpwi   cr7,r31,11                             
ffc23dc4:	40 9e ff 64 	bne+    cr7,ffc23d28 <rtems_rfs_dir_empty+0x180>
ffc23dc8:	89 49 00 0a 	lbz     r10,10(r9)                             
ffc23dcc:	2f 8a 00 2e 	cmpwi   cr7,r10,46                             
ffc23dd0:	41 be ff 78 	beq-    cr7,ffc23d48 <rtems_rfs_dir_empty+0x1a0><== ALWAYS TAKEN
        break;                                                        
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ((rc == 0) && !empty)                                            
ffc23dd4:	40 82 00 08 	bne-    ffc23ddc <rtems_rfs_dir_empty+0x234>   <== NEVER TAKEN
    rc = ENOTEMPTY;                                                   
ffc23dd8:	3b 00 00 5a 	li      r24,90                                 
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
ffc23ddc:	38 81 00 58 	addi    r4,r1,88                               
ffc23de0:	7f 83 e3 78 	mr      r3,r28                                 
ffc23de4:	4b ff df 21 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc23de8:	39 20 00 00 	li      r9,0                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
  rtems_rfs_block_map_close (fs, &map);                               
ffc23dec:	7f 83 e3 78 	mr      r3,r28                                 
ffc23df0:	91 21 00 5c 	stw     r9,92(r1)                              
ffc23df4:	38 81 00 08 	addi    r4,r1,8                                
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);                       
  handle->dirty = false;                                              
ffc23df8:	39 40 00 00 	li      r10,0                                  
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc23dfc:	91 21 00 60 	stw     r9,96(r1)                              
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
  handle->dirty = false;                                              
ffc23e00:	99 41 00 58 	stb     r10,88(r1)                             
ffc23e04:	4b ff d0 45 	bl      ffc20e48 <rtems_rfs_block_map_close>   
  return rc;                                                          
}                                                                     
ffc23e08:	7f 03 c3 78 	mr      r3,r24                                 
ffc23e0c:	80 01 00 8c 	lwz     r0,140(r1)                             
ffc23e10:	83 01 00 68 	lwz     r24,104(r1)                            
ffc23e14:	7c 08 03 a6 	mtlr    r0                                     
ffc23e18:	83 21 00 6c 	lwz     r25,108(r1)                            
ffc23e1c:	83 41 00 70 	lwz     r26,112(r1)                            
ffc23e20:	83 61 00 74 	lwz     r27,116(r1)                            
ffc23e24:	83 81 00 78 	lwz     r28,120(r1)                            
ffc23e28:	83 a1 00 7c 	lwz     r29,124(r1)                            
ffc23e2c:	83 c1 00 80 	lwz     r30,128(r1)                            
ffc23e30:	83 e1 00 84 	lwz     r31,132(r1)                            
ffc23e34:	38 21 00 88 	addi    r1,r1,136                              
ffc23e38:	4e 80 00 20 	blr                                            
      if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                       
        break;                                                        
                                                                      
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_EMPTY))              
ffc23e3c:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc23e40:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc23e44:	4b ff 40 59 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc23e48:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc23e4c:	41 be 00 20 	beq+    cr7,ffc23e6c <rtems_rfs_dir_empty+0x2c4><== NOT EXECUTED
          printf ("rtems-rfs: dir-empty: "                            
ffc23e50:	80 9b 00 08 	lwz     r4,8(r27)                              <== NOT EXECUTED
ffc23e54:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
ffc23e58:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc23e5c:	7f c6 f3 78 	mr      r6,r30                                 <== NOT EXECUTED
ffc23e60:	7f a7 eb 78 	mr      r7,r29                                 <== NOT EXECUTED
ffc23e64:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc23e68:	48 00 6c 31 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
      offset += elength;                                              
    }                                                                 
                                                                      
    if (empty)                                                        
    {                                                                 
      rc = rtems_rfs_block_map_next_block (fs, &map, &block);         
ffc23e6c:	7f 83 e3 78 	mr      r3,r28                                 
ffc23e70:	38 81 00 08 	addi    r4,r1,8                                
ffc23e74:	38 a1 00 64 	addi    r5,r1,100                              
ffc23e78:	4b ff d4 4d 	bl      ffc212c4 <rtems_rfs_block_map_next_block>
      if (rc > 0)                                                     
ffc23e7c:	7c 78 1b 79 	mr.     r24,r3                                 
ffc23e80:	40 81 fe 2c 	ble+    ffc23cac <rtems_rfs_dir_empty+0x104>   <== NEVER TAKEN
      {                                                               
        if (rc == ENXIO)                                              
ffc23e84:	2f 98 00 06 	cmpwi   cr7,r24,6                              
ffc23e88:	40 9e ff 54 	bne+    cr7,ffc23ddc <rtems_rfs_dir_empty+0x234><== NEVER TAKEN
ffc23e8c:	3b 00 00 00 	li      r24,0                                  
ffc23e90:	4b ff ff 4c 	b       ffc23ddc <rtems_rfs_dir_empty+0x234>   
    return rc;                                                        
                                                                      
  rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);                
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_block_map_close (fs, &map);                             
ffc23e94:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc23e98:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc23e9c:	4b ff cf ad 	bl      ffc20e48 <rtems_rfs_block_map_close>   <== NOT EXECUTED
ffc23ea0:	4b ff fd 68 	b       ffc23c08 <rtems_rfs_dir_empty+0x60>    <== NOT EXECUTED
                                                                      

ffc28c34 <rtems_rfs_dir_hash>: } 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)
ffc28c34:	2b 84 00 0c 	cmplwi  cr7,r4,12                              
*/                                                                    
                                                                      
#define initval (20010928)                                            
uint32_t                                                              
rtems_rfs_dir_hash (const void *key, size_t length)                   
{                                                                     
ffc28c38:	94 21 ff e8 	stwu    r1,-24(r1)                             
  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;              
ffc28c3c:	3c e4 df df 	addis   r7,r4,-8225                            
ffc28c40:	38 e7 16 9f 	addi    r7,r7,5791                             
*/                                                                    
                                                                      
#define initval (20010928)                                            
uint32_t                                                              
rtems_rfs_dir_hash (const void *key, size_t length)                   
{                                                                     
ffc28c44:	93 81 00 08 	stw     r28,8(r1)                              
                                                                      
  } 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)                                               
ffc28c48:	7c 69 1b 78 	mr      r9,r3                                  
*/                                                                    
                                                                      
#define initval (20010928)                                            
uint32_t                                                              
rtems_rfs_dir_hash (const void *key, size_t length)                   
{                                                                     
ffc28c4c:	93 a1 00 0c 	stw     r29,12(r1)                             
                                                                      
  } 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)                                               
ffc28c50:	7c ea 3b 78 	mr      r10,r7                                 
ffc28c54:	7c e8 3b 78 	mr      r8,r7                                  
*/                                                                    
                                                                      
#define initval (20010928)                                            
uint32_t                                                              
rtems_rfs_dir_hash (const void *key, size_t length)                   
{                                                                     
ffc28c58:	93 c1 00 10 	stw     r30,16(r1)                             
ffc28c5c:	93 e1 00 14 	stw     r31,20(r1)                             
                                                                      
  } 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)                                               
ffc28c60:	40 9d 00 f8 	ble-    cr7,ffc28d58 <rtems_rfs_dir_hash+0x124>
      b += k[4];                                                      
      b += ((uint32_t)k[5])<<8;                                       
      b += ((uint32_t)k[6])<<16;                                      
      b += ((uint32_t)k[7])<<24;                                      
      c += k[8];                                                      
      c += ((uint32_t)k[9])<<8;                                       
ffc28c64:	8b 89 00 09 	lbz     r28,9(r9)                              
      c += ((uint32_t)k[10])<<16;                                     
      c += ((uint32_t)k[11])<<24;                                     
      mix(a,b,c);                                                     
      length -= 12;                                                   
ffc28c68:	38 84 ff f4 	addi    r4,r4,-12                              
      b += ((uint32_t)k[5])<<8;                                       
      b += ((uint32_t)k[6])<<16;                                      
      b += ((uint32_t)k[7])<<24;                                      
      c += k[8];                                                      
      c += ((uint32_t)k[9])<<8;                                       
      c += ((uint32_t)k[10])<<16;                                     
ffc28c6c:	88 69 00 0a 	lbz     r3,10(r9)                              
                                                                      
  } 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)                                               
ffc28c70:	2b 84 00 0c 	cmplwi  cr7,r4,12                              
    {                                                                 
      a += k[0];                                                      
      a += ((uint32_t)k[1])<<8;                                       
ffc28c74:	89 69 00 01 	lbz     r11,1(r9)                              
      b += k[4];                                                      
      b += ((uint32_t)k[5])<<8;                                       
      b += ((uint32_t)k[6])<<16;                                      
      b += ((uint32_t)k[7])<<24;                                      
      c += k[8];                                                      
      c += ((uint32_t)k[9])<<8;                                       
ffc28c78:	57 9c 40 2e 	rlwinm  r28,r28,8,0,23                         
    /*--------------- all but the last block: affect some 32 bits of (a,b,c) */
    while (length > 12)                                               
    {                                                                 
      a += k[0];                                                      
      a += ((uint32_t)k[1])<<8;                                       
      a += ((uint32_t)k[2])<<16;                                      
ffc28c7c:	88 a9 00 02 	lbz     r5,2(r9)                               
      b += ((uint32_t)k[5])<<8;                                       
      b += ((uint32_t)k[6])<<16;                                      
      b += ((uint32_t)k[7])<<24;                                      
      c += k[8];                                                      
      c += ((uint32_t)k[9])<<8;                                       
      c += ((uint32_t)k[10])<<16;                                     
ffc28c80:	54 63 80 1e 	rlwinm  r3,r3,16,0,15                          
      a += ((uint32_t)k[3])<<24;                                      
      b += k[4];                                                      
      b += ((uint32_t)k[5])<<8;                                       
      b += ((uint32_t)k[6])<<16;                                      
      b += ((uint32_t)k[7])<<24;                                      
      c += k[8];                                                      
ffc28c84:	88 09 00 08 	lbz     r0,8(r9)                               
                                                                      
    /*--------------- all but the last block: affect some 32 bits of (a,b,c) */
    while (length > 12)                                               
    {                                                                 
      a += k[0];                                                      
      a += ((uint32_t)k[1])<<8;                                       
ffc28c88:	55 6b 40 2e 	rlwinm  r11,r11,8,0,23                         
      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;                                     
ffc28c8c:	8b a9 00 0b 	lbz     r29,11(r9)                             
      a += ((uint32_t)k[3])<<24;                                      
      b += k[4];                                                      
      b += ((uint32_t)k[5])<<8;                                       
      b += ((uint32_t)k[6])<<16;                                      
      b += ((uint32_t)k[7])<<24;                                      
      c += k[8];                                                      
ffc28c90:	7c 7c 1a 14 	add     r3,r28,r3                              
      a += k[0];                                                      
      a += ((uint32_t)k[1])<<8;                                       
      a += ((uint32_t)k[2])<<16;                                      
      a += ((uint32_t)k[3])<<24;                                      
      b += k[4];                                                      
      b += ((uint32_t)k[5])<<8;                                       
ffc28c94:	8b e9 00 05 	lbz     r31,5(r9)                              
    /*--------------- all but the last block: affect some 32 bits of (a,b,c) */
    while (length > 12)                                               
    {                                                                 
      a += k[0];                                                      
      a += ((uint32_t)k[1])<<8;                                       
      a += ((uint32_t)k[2])<<16;                                      
ffc28c98:	54 a5 80 1e 	rlwinm  r5,r5,16,0,15                          
      a += ((uint32_t)k[3])<<24;                                      
      b += k[4];                                                      
      b += ((uint32_t)k[5])<<8;                                       
      b += ((uint32_t)k[6])<<16;                                      
ffc28c9c:	88 c9 00 06 	lbz     r6,6(r9)                               
      b += ((uint32_t)k[7])<<24;                                      
      c += k[8];                                                      
      c += ((uint32_t)k[9])<<8;                                       
ffc28ca0:	7c 63 02 14 	add     r3,r3,r0                               
    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];                                                      
ffc28ca4:	8b c9 00 00 	lbz     r30,0(r9)                              
ffc28ca8:	7c ab 2a 14 	add     r5,r11,r5                              
      a += ((uint32_t)k[1])<<8;                                       
      a += ((uint32_t)k[2])<<16;                                      
      a += ((uint32_t)k[3])<<24;                                      
ffc28cac:	89 89 00 03 	lbz     r12,3(r9)                              
      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;                                     
ffc28cb0:	57 bd c0 0e 	rlwinm  r29,r29,24,0,7                         
    {                                                                 
      a += k[0];                                                      
      a += ((uint32_t)k[1])<<8;                                       
      a += ((uint32_t)k[2])<<16;                                      
      a += ((uint32_t)k[3])<<24;                                      
      b += k[4];                                                      
ffc28cb4:	88 09 00 04 	lbz     r0,4(r9)                               
      b += ((uint32_t)k[5])<<8;                                       
ffc28cb8:	57 ff 40 2e 	rlwinm  r31,r31,8,0,23                         
      b += ((uint32_t)k[6])<<16;                                      
      b += ((uint32_t)k[7])<<24;                                      
ffc28cbc:	89 69 00 07 	lbz     r11,7(r9)                              
      a += ((uint32_t)k[1])<<8;                                       
      a += ((uint32_t)k[2])<<16;                                      
      a += ((uint32_t)k[3])<<24;                                      
      b += k[4];                                                      
      b += ((uint32_t)k[5])<<8;                                       
      b += ((uint32_t)k[6])<<16;                                      
ffc28cc0:	54 c6 80 1e 	rlwinm  r6,r6,16,0,15                          
      b += ((uint32_t)k[7])<<24;                                      
      c += k[8];                                                      
      c += ((uint32_t)k[9])<<8;                                       
      c += ((uint32_t)k[10])<<16;                                     
ffc28cc4:	7c 63 ea 14 	add     r3,r3,r29                              
                                                                      
    /*--------------- all but the last block: affect some 32 bits of (a,b,c) */
    while (length > 12)                                               
    {                                                                 
      a += k[0];                                                      
      a += ((uint32_t)k[1])<<8;                                       
ffc28cc8:	7c a5 f2 14 	add     r5,r5,r30                              
      a += ((uint32_t)k[2])<<16;                                      
      a += ((uint32_t)k[3])<<24;                                      
ffc28ccc:	55 8c c0 0e 	rlwinm  r12,r12,24,0,7                         
      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;                                     
ffc28cd0:	7c 63 3a 14 	add     r3,r3,r7                               
    {                                                                 
      a += k[0];                                                      
      a += ((uint32_t)k[1])<<8;                                       
      a += ((uint32_t)k[2])<<16;                                      
      a += ((uint32_t)k[3])<<24;                                      
      b += k[4];                                                      
ffc28cd4:	7c df 32 14 	add     r6,r31,r6                              
    /*--------------- all but the last block: affect some 32 bits of (a,b,c) */
    while (length > 12)                                               
    {                                                                 
      a += k[0];                                                      
      a += ((uint32_t)k[1])<<8;                                       
      a += ((uint32_t)k[2])<<16;                                      
ffc28cd8:	7c a5 62 14 	add     r5,r5,r12                              
      a += ((uint32_t)k[3])<<24;                                      
ffc28cdc:	7c a3 28 50 	subf    r5,r3,r5                               
      b += k[4];                                                      
      b += ((uint32_t)k[5])<<8;                                       
      b += ((uint32_t)k[6])<<16;                                      
      b += ((uint32_t)k[7])<<24;                                      
ffc28ce0:	55 67 c0 0e 	rlwinm  r7,r11,24,0,7                          
      a += k[0];                                                      
      a += ((uint32_t)k[1])<<8;                                       
      a += ((uint32_t)k[2])<<16;                                      
      a += ((uint32_t)k[3])<<24;                                      
      b += k[4];                                                      
      b += ((uint32_t)k[5])<<8;                                       
ffc28ce4:	7c c6 02 14 	add     r6,r6,r0                               
      b += ((uint32_t)k[6])<<16;                                      
ffc28ce8:	7c c6 3a 14 	add     r6,r6,r7                               
      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;                                     
      mix(a,b,c);                                                     
ffc28cec:	7d 05 42 14 	add     r8,r5,r8                               
ffc28cf0:	54 67 20 3e 	rotlwi  r7,r3,4                                
      a += ((uint32_t)k[2])<<16;                                      
      a += ((uint32_t)k[3])<<24;                                      
      b += k[4];                                                      
      b += ((uint32_t)k[5])<<8;                                       
      b += ((uint32_t)k[6])<<16;                                      
      b += ((uint32_t)k[7])<<24;                                      
ffc28cf4:	7d 46 52 14 	add     r10,r6,r10                             
      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);                                                     
ffc28cf8:	7d 08 3a 78 	xor     r8,r8,r7                               
ffc28cfc:	7c e8 50 50 	subf    r7,r8,r10                              
ffc28d00:	55 06 30 3e 	rotlwi  r6,r8,6                                
ffc28d04:	7c c6 3a 78 	xor     r6,r6,r7                               
ffc28d08:	7c 63 52 14 	add     r3,r3,r10                              
ffc28d0c:	7d 46 18 50 	subf    r10,r6,r3                              
ffc28d10:	54 c7 40 3e 	rotlwi  r7,r6,8                                
ffc28d14:	7c 68 1a 14 	add     r3,r8,r3                               
ffc28d18:	7c e7 52 78 	xor     r7,r7,r10                              
ffc28d1c:	7d 47 18 50 	subf    r10,r7,r3                              
ffc28d20:	54 e8 80 3e 	rotlwi  r8,r7,16                               
ffc28d24:	7d 08 52 78 	xor     r8,r8,r10                              
ffc28d28:	7c c6 1a 14 	add     r6,r6,r3                               
ffc28d2c:	7d 48 30 50 	subf    r10,r8,r6                              
ffc28d30:	55 05 98 3e 	rotlwi  r5,r8,19                               
ffc28d34:	7c aa 52 78 	xor     r10,r5,r10                             
ffc28d38:	7c e7 32 14 	add     r7,r7,r6                               
ffc28d3c:	7d 08 3a 14 	add     r8,r8,r7                               
ffc28d40:	55 43 20 3e 	rotlwi  r3,r10,4                               
ffc28d44:	7c ea 38 50 	subf    r7,r10,r7                              
ffc28d48:	7c 67 3a 78 	xor     r7,r3,r7                               
ffc28d4c:	7d 4a 42 14 	add     r10,r10,r8                             
      length -= 12;                                                   
      k += 12;                                                        
ffc28d50:	39 29 00 0c 	addi    r9,r9,12                               
                                                                      
  } 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)                                               
ffc28d54:	41 9d ff 10 	bgt+    cr7,ffc28c64 <rtems_rfs_dir_hash+0x30> <== NEVER TAKEN
      length -= 12;                                                   
      k += 12;                                                        
    }                                                                 
                                                                      
    /*-------------------------------- last block: affect all 32 bits of (c) */
    switch(length)                   /* all the case statements fall through */
ffc28d58:	2b 84 00 0c 	cmplwi  cr7,r4,12                              
ffc28d5c:	41 9d 00 f8 	bgt-    cr7,ffc28e54 <rtems_rfs_dir_hash+0x220><== NEVER TAKEN
ffc28d60:	3c c0 ff c4 	lis     r6,-60                                 
ffc28d64:	38 c6 e6 b0 	addi    r6,r6,-6480                            
ffc28d68:	54 84 10 3a 	rlwinm  r4,r4,2,0,29                           
ffc28d6c:	7c a6 20 2e 	lwzx    r5,r6,r4                               
ffc28d70:	7c c5 32 14 	add     r6,r5,r6                               
ffc28d74:	7c c9 03 a6 	mtctr   r6                                     
ffc28d78:	4e 80 04 20 	bctr                                           
    {                                                                 
      case 12: c+=((uint32_t)k[11])<<24;                              
ffc28d7c:	88 c9 00 0b 	lbz     r6,11(r9)                              
ffc28d80:	54 c6 c0 0e 	rlwinm  r6,r6,24,0,7                           
ffc28d84:	7c e7 32 14 	add     r7,r7,r6                               
      case 11: c+=((uint32_t)k[10])<<16;                              
ffc28d88:	88 c9 00 0a 	lbz     r6,10(r9)                              
ffc28d8c:	54 c6 80 1e 	rlwinm  r6,r6,16,0,15                          
ffc28d90:	7c e7 32 14 	add     r7,r7,r6                               
      case 10: c+=((uint32_t)k[9])<<8;                                
ffc28d94:	88 c9 00 09 	lbz     r6,9(r9)                               
ffc28d98:	54 c6 40 2e 	rlwinm  r6,r6,8,0,23                           
ffc28d9c:	7c e7 32 14 	add     r7,r7,r6                               
      case 9 : c+=k[8];                                               
ffc28da0:	88 c9 00 08 	lbz     r6,8(r9)                               
ffc28da4:	7c e7 32 14 	add     r7,r7,r6                               
      case 8 : b+=((uint32_t)k[7])<<24;                               
ffc28da8:	88 c9 00 07 	lbz     r6,7(r9)                               
ffc28dac:	54 c6 c0 0e 	rlwinm  r6,r6,24,0,7                           
ffc28db0:	7d 4a 32 14 	add     r10,r10,r6                             
      case 7 : b+=((uint32_t)k[6])<<16;                               
ffc28db4:	88 c9 00 06 	lbz     r6,6(r9)                               
ffc28db8:	54 c6 80 1e 	rlwinm  r6,r6,16,0,15                          
ffc28dbc:	7d 4a 32 14 	add     r10,r10,r6                             
      case 6 : b+=((uint32_t)k[5])<<8;                                
ffc28dc0:	88 c9 00 05 	lbz     r6,5(r9)                               
ffc28dc4:	54 c6 40 2e 	rlwinm  r6,r6,8,0,23                           
ffc28dc8:	7d 4a 32 14 	add     r10,r10,r6                             
      case 5 : b+=k[4];                                               
ffc28dcc:	88 c9 00 04 	lbz     r6,4(r9)                               
ffc28dd0:	7d 4a 32 14 	add     r10,r10,r6                             
      case 4 : a+=((uint32_t)k[3])<<24;                               
ffc28dd4:	88 c9 00 03 	lbz     r6,3(r9)                               
ffc28dd8:	54 c6 c0 0e 	rlwinm  r6,r6,24,0,7                           
ffc28ddc:	7d 08 32 14 	add     r8,r8,r6                               
      case 3 : a+=((uint32_t)k[2])<<16;                               
ffc28de0:	88 c9 00 02 	lbz     r6,2(r9)                               
ffc28de4:	54 c6 80 1e 	rlwinm  r6,r6,16,0,15                          
ffc28de8:	7d 08 32 14 	add     r8,r8,r6                               
      case 2 : a+=((uint32_t)k[1])<<8;                                
ffc28dec:	88 c9 00 01 	lbz     r6,1(r9)                               
ffc28df0:	54 c6 40 2e 	rlwinm  r6,r6,8,0,23                           
ffc28df4:	7d 08 32 14 	add     r8,r8,r6                               
      case 1 : a+=k[0];                                               
ffc28df8:	88 c9 00 00 	lbz     r6,0(r9)                               
        break;                                                        
      case 0 : return c;                                              
    }                                                                 
  }                                                                   
                                                                      
  final(a,b,c);                                                       
ffc28dfc:	7c e7 52 78 	xor     r7,r7,r10                              
ffc28e00:	55 49 70 3e 	rotlwi  r9,r10,14                              
ffc28e04:	7d 29 38 50 	subf    r9,r9,r7                               
      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];                                               
ffc28e08:	7d 08 32 14 	add     r8,r8,r6                               
        break;                                                        
      case 0 : return c;                                              
    }                                                                 
  }                                                                   
                                                                      
  final(a,b,c);                                                       
ffc28e0c:	55 27 58 3e 	rotlwi  r7,r9,11                               
ffc28e10:	7d 28 42 78 	xor     r8,r9,r8                               
ffc28e14:	7d 07 40 50 	subf    r8,r7,r8                               
ffc28e18:	55 07 c8 3e 	rotlwi  r7,r8,25                               
ffc28e1c:	7d 0a 52 78 	xor     r10,r8,r10                             
ffc28e20:	7d 47 50 50 	subf    r10,r7,r10                             
ffc28e24:	7d 49 4a 78 	xor     r9,r10,r9                              
ffc28e28:	55 46 80 3e 	rotlwi  r6,r10,16                              
ffc28e2c:	7d 26 48 50 	subf    r9,r6,r9                               
ffc28e30:	55 27 20 3e 	rotlwi  r7,r9,4                                
ffc28e34:	7d 28 42 78 	xor     r8,r9,r8                               
ffc28e38:	7d 07 40 50 	subf    r8,r7,r8                               
ffc28e3c:	7d 0a 52 78 	xor     r10,r8,r10                             
ffc28e40:	55 08 70 3e 	rotlwi  r8,r8,14                               
ffc28e44:	7d 48 50 50 	subf    r10,r8,r10                             
ffc28e48:	7d 47 4a 78 	xor     r7,r10,r9                              
ffc28e4c:	55 4a c0 3e 	rotlwi  r10,r10,24                             
ffc28e50:	7c ea 38 50 	subf    r7,r10,r7                              
  return c;                                                           
}                                                                     
ffc28e54:	83 81 00 08 	lwz     r28,8(r1)                              
ffc28e58:	7c e3 3b 78 	mr      r3,r7                                  
ffc28e5c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc28e60:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc28e64:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc28e68:	38 21 00 18 	addi    r1,r1,24                               
ffc28e6c:	4e 80 00 20 	blr                                            
                                                                      

ffc227ec <rtems_rfs_dir_lookup_ino>: rtems_rfs_inode_handle* inode, const char* name, int length, rtems_rfs_ino* ino, uint32_t* offset) {
ffc227ec:	94 21 ff 50 	stwu    r1,-176(r1)                            
ffc227f0:	7d 80 00 26 	mfcr    r12                                    
ffc227f4:	7c 08 02 a6 	mflr    r0                                     
ffc227f8:	93 01 00 90 	stw     r24,144(r1)                            
ffc227fc:	7c 98 23 78 	mr      r24,r4                                 
  rtems_rfs_block_map     map;                                        
  rtems_rfs_buffer_handle entries;                                    
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))               
ffc22800:	3c 80 04 00 	lis     r4,1024                                
                          rtems_rfs_inode_handle* inode,              
                          const char*             name,               
                          int                     length,             
                          rtems_rfs_ino*          ino,                
                          uint32_t*               offset)             
{                                                                     
ffc22804:	93 a1 00 a4 	stw     r29,164(r1)                            
ffc22808:	7c 7d 1b 78 	mr      r29,r3                                 
  rtems_rfs_block_map     map;                                        
  rtems_rfs_buffer_handle entries;                                    
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))               
ffc2280c:	38 60 00 00 	li      r3,0                                   
                          rtems_rfs_inode_handle* inode,              
                          const char*             name,               
                          int                     length,             
                          rtems_rfs_ino*          ino,                
                          uint32_t*               offset)             
{                                                                     
ffc22810:	92 81 00 80 	stw     r20,128(r1)                            
ffc22814:	7d 14 43 78 	mr      r20,r8                                 
ffc22818:	92 c1 00 88 	stw     r22,136(r1)                            
ffc2281c:	7c b6 2b 78 	mr      r22,r5                                 
ffc22820:	92 e1 00 8c 	stw     r23,140(r1)                            
ffc22824:	7c d7 33 78 	mr      r23,r6                                 
ffc22828:	93 81 00 a0 	stw     r28,160(r1)                            
ffc2282c:	7c fc 3b 78 	mr      r28,r7                                 
ffc22830:	90 01 00 b4 	stw     r0,180(r1)                             
ffc22834:	92 01 00 70 	stw     r16,112(r1)                            
ffc22838:	92 21 00 74 	stw     r17,116(r1)                            
ffc2283c:	92 41 00 78 	stw     r18,120(r1)                            
ffc22840:	92 61 00 7c 	stw     r19,124(r1)                            
ffc22844:	92 a1 00 84 	stw     r21,132(r1)                            
ffc22848:	93 21 00 94 	stw     r25,148(r1)                            
ffc2284c:	93 41 00 98 	stw     r26,152(r1)                            
ffc22850:	93 61 00 9c 	stw     r27,156(r1)                            
ffc22854:	93 c1 00 a8 	stw     r30,168(r1)                            
ffc22858:	93 e1 00 ac 	stw     r31,172(r1)                            
ffc2285c:	91 81 00 6c 	stw     r12,108(r1)                            
  rtems_rfs_block_map     map;                                        
  rtems_rfs_buffer_handle entries;                                    
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))               
ffc22860:	4b ff 56 3d 	bl      ffc17e9c <rtems_rfs_trace>             
ffc22864:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc22868:	40 9e 00 c4 	bne-    cr7,ffc2292c <rtems_rfs_dir_lookup_ino+0x140><== NEVER TAKEN
    for (c = 0; c < length; c++)                                      
      printf ("%c", name[c]);                                         
    printf (", len=%d\n", length);                                    
  }                                                                   
                                                                      
  *ino = RTEMS_RFS_EMPTY_INO;                                         
ffc2286c:	3b e0 00 00 	li      r31,0                                  
ffc22870:	93 fc 00 00 	stw     r31,0(r28)                             
  *offset = 0;                                                        
                                                                      
  rc = rtems_rfs_block_map_open (fs, inode, &map);                    
ffc22874:	7f a3 eb 78 	mr      r3,r29                                 
ffc22878:	7f 04 c3 78 	mr      r4,r24                                 
      printf ("%c", name[c]);                                         
    printf (", len=%d\n", length);                                    
  }                                                                   
                                                                      
  *ino = RTEMS_RFS_EMPTY_INO;                                         
  *offset = 0;                                                        
ffc2287c:	93 f4 00 00 	stw     r31,0(r20)                             
                                                                      
  rc = rtems_rfs_block_map_open (fs, inode, &map);                    
ffc22880:	38 a1 00 08 	addi    r5,r1,8                                
ffc22884:	4b ff e3 d9 	bl      ffc20c5c <rtems_rfs_block_map_open>    
  if (rc > 0)                                                         
ffc22888:	7c 79 1b 79 	mr.     r25,r3                                 
ffc2288c:	40 81 01 0c 	ble-    ffc22998 <rtems_rfs_dir_lookup_ino+0x1ac><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))             
ffc22890:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc22894:	3c 80 04 00 	lis     r4,1024                                <== NOT EXECUTED
ffc22898:	4b ff 56 05 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc2289c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc228a0:	40 9e 00 60 	bne-    cr7,ffc22900 <rtems_rfs_dir_lookup_ino+0x114><== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &entries);                       
  rtems_rfs_block_map_close (fs, &map);                               
  return rc;                                                          
}                                                                     
ffc228a4:	80 01 00 b4 	lwz     r0,180(r1)                             
ffc228a8:	7f 23 cb 78 	mr      r3,r25                                 
ffc228ac:	81 81 00 6c 	lwz     r12,108(r1)                            
ffc228b0:	7c 08 03 a6 	mtlr    r0                                     
ffc228b4:	82 01 00 70 	lwz     r16,112(r1)                            
ffc228b8:	82 21 00 74 	lwz     r17,116(r1)                            
ffc228bc:	7d 80 81 20 	mtcrf   8,r12                                  
ffc228c0:	82 41 00 78 	lwz     r18,120(r1)                            
ffc228c4:	82 61 00 7c 	lwz     r19,124(r1)                            
ffc228c8:	82 81 00 80 	lwz     r20,128(r1)                            
ffc228cc:	82 a1 00 84 	lwz     r21,132(r1)                            
ffc228d0:	82 c1 00 88 	lwz     r22,136(r1)                            
ffc228d4:	82 e1 00 8c 	lwz     r23,140(r1)                            
ffc228d8:	83 01 00 90 	lwz     r24,144(r1)                            
ffc228dc:	83 21 00 94 	lwz     r25,148(r1)                            
ffc228e0:	83 41 00 98 	lwz     r26,152(r1)                            
ffc228e4:	83 61 00 9c 	lwz     r27,156(r1)                            
ffc228e8:	83 81 00 a0 	lwz     r28,160(r1)                            
ffc228ec:	83 a1 00 a4 	lwz     r29,164(r1)                            
ffc228f0:	83 c1 00 a8 	lwz     r30,168(r1)                            
ffc228f4:	83 e1 00 ac 	lwz     r31,172(r1)                            
ffc228f8:	38 21 00 b0 	addi    r1,r1,176                              
ffc228fc:	4e 80 00 20 	blr                                            
                                                                      
  rc = rtems_rfs_block_map_open (fs, inode, &map);                    
  if (rc > 0)                                                         
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))             
      printf ("rtems-rfs: dir-lookup-ino: map open failed for ino %" PRIu32 ": %d: %s",
ffc22900:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc22904:	83 f8 00 08 	lwz     r31,8(r24)                             <== NOT EXECUTED
ffc22908:	48 00 93 0d 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc2290c:	7f 25 cb 78 	mr      r5,r25                                 <== NOT EXECUTED
ffc22910:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc22914:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc22918:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc2291c:	38 63 d6 60 	addi    r3,r3,-10656                           <== NOT EXECUTED
ffc22920:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc22924:	48 00 81 75 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc22928:	4b ff ff 7c 	b       ffc228a4 <rtems_rfs_dir_lookup_ino+0xb8><== NOT EXECUTED
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))               
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: dir-lookup-ino: lookup ino: root=%" PRId32 ", path=",
ffc2292c:	80 98 00 08 	lwz     r4,8(r24)                              <== NOT EXECUTED
ffc22930:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc22934:	38 63 d6 1c 	addi    r3,r3,-10724                           <== NOT EXECUTED
ffc22938:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2293c:	48 00 81 5d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            inode->ino);                                              
    for (c = 0; c < length; c++)                                      
ffc22940:	2f 97 00 00 	cmpwi   cr7,r23,0                              <== NOT EXECUTED
#define rtems_rfs_dir_entry_valid(_f, _l, _i) \                       
  (((_l) <= RTEMS_RFS_DIR_ENTRY_SIZE) || ((_l) >= rtems_rfs_fs_max_name (_f)) \
   || (_i < RTEMS_RFS_ROOT_INO) || (_i > rtems_rfs_fs_inodes (_f)))   
                                                                      
int                                                                   
rtems_rfs_dir_lookup_ino (rtems_rfs_file_system*  fs,                 
ffc22944:	3b f6 ff ff 	addi    r31,r22,-1                             <== NOT EXECUTED
ffc22948:	7f df ba 14 	add     r30,r31,r23                            <== 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++)                                      
ffc2294c:	40 9d 00 14 	ble-    cr7,ffc22960 <rtems_rfs_dir_lookup_ino+0x174><== NOT EXECUTED
      printf ("%c", name[c]);                                         
ffc22950:	8c 7f 00 01 	lbzu    r3,1(r31)                              <== NOT EXECUTED
ffc22954:	48 00 83 d1 	bl      ffc2ad24 <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++)                                      
ffc22958:	7f 9f f0 00 	cmpw    cr7,r31,r30                            <== NOT EXECUTED
ffc2295c:	40 9e ff f4 	bne+    cr7,ffc22950 <rtems_rfs_dir_lookup_ino+0x164><== NOT EXECUTED
      printf ("%c", name[c]);                                         
    printf (", len=%d\n", length);                                    
ffc22960:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc22964:	7e e4 bb 78 	mr      r4,r23                                 <== NOT EXECUTED
  }                                                                   
                                                                      
  *ino = RTEMS_RFS_EMPTY_INO;                                         
ffc22968:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
    int c;                                                            
    printf ("rtems-rfs: dir-lookup-ino: lookup ino: root=%" PRId32 ", path=",
            inode->ino);                                              
    for (c = 0; c < length; c++)                                      
      printf ("%c", name[c]);                                         
    printf (", len=%d\n", length);                                    
ffc2296c:	38 63 d6 54 	addi    r3,r3,-10668                           <== NOT EXECUTED
ffc22970:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc22974:	48 00 81 25 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
  }                                                                   
                                                                      
  *ino = RTEMS_RFS_EMPTY_INO;                                         
ffc22978:	93 fc 00 00 	stw     r31,0(r28)                             <== NOT EXECUTED
  *offset = 0;                                                        
                                                                      
  rc = rtems_rfs_block_map_open (fs, inode, &map);                    
ffc2297c:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
      printf ("%c", name[c]);                                         
    printf (", len=%d\n", length);                                    
  }                                                                   
                                                                      
  *ino = RTEMS_RFS_EMPTY_INO;                                         
  *offset = 0;                                                        
ffc22980:	93 f4 00 00 	stw     r31,0(r20)                             <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_block_map_open (fs, inode, &map);                    
ffc22984:	7f 04 c3 78 	mr      r4,r24                                 <== NOT EXECUTED
ffc22988:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc2298c:	4b ff e2 d1 	bl      ffc20c5c <rtems_rfs_block_map_open>    <== NOT EXECUTED
  if (rc > 0)                                                         
ffc22990:	7c 79 1b 79 	mr.     r25,r3                                 <== NOT EXECUTED
ffc22994:	41 81 fe fc 	bgt+    ffc22890 <rtems_rfs_dir_lookup_ino+0xa4><== NOT EXECUTED
    uint32_t           hash;                                          
                                                                      
    /*                                                                
     * Calculate the hash of the look up string.                      
     */                                                               
    hash = rtems_rfs_dir_hash (name, length);                         
ffc22998:	7e e4 bb 78 	mr      r4,r23                                 
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc2299c:	9b e1 00 58 	stb     r31,88(r1)                             
ffc229a0:	7e c3 b3 78 	mr      r3,r22                                 
  handle->bnum  = 0;                                                  
ffc229a4:	93 e1 00 5c 	stw     r31,92(r1)                             
  handle->buffer = NULL;                                              
ffc229a8:	93 e1 00 60 	stw     r31,96(r1)                             
ffc229ac:	48 00 62 89 	bl      ffc28c34 <rtems_rfs_dir_hash>          
ffc229b0:	7c 7a 1b 78 	mr      r26,r3                                 
                                                                      
    /*                                                                
     * 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);              
ffc229b4:	38 81 00 08 	addi    r4,r1,8                                
ffc229b8:	7f a3 eb 78 	mr      r3,r29                                 
ffc229bc:	38 a0 00 00 	li      r5,0                                   
ffc229c0:	38 c0 00 00 	li      r6,0                                   
ffc229c4:	38 e1 00 64 	addi    r7,r1,100                              
ffc229c8:	4b ff e8 39 	bl      ffc21200 <rtems_rfs_block_map_seek>    
    if (rc > 0)                                                       
ffc229cc:	2e 03 00 00 	cmpwi   cr4,r3,0                               
ffc229d0:	7c 79 1b 78 	mr      r25,r3                                 
ffc229d4:	40 91 00 50 	ble-    cr4,ffc22a24 <rtems_rfs_dir_lookup_ino+0x238><== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))           
ffc229d8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc229dc:	3c 80 04 00 	lis     r4,1024                                <== NOT EXECUTED
ffc229e0:	4b ff 54 bd 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc229e4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc229e8:	40 9e 02 e0 	bne-    cr7,ffc22cc8 <rtems_rfs_dir_lookup_ino+0x4dc><== NOT EXECUTED
        printf ("rtems-rfs: dir-lookup-ino: block map find failed: %d: %s\n",
                rc, strerror (rc));                                   
      if (rc == ENXIO)                                                
ffc229ec:	2f 99 00 06 	cmpwi   cr7,r25,6                              <== NOT EXECUTED
ffc229f0:	41 9e 02 fc 	beq-    cr7,ffc22cec <rtems_rfs_dir_lookup_ino+0x500><== 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);                       
ffc229f4:	38 81 00 58 	addi    r4,r1,88                               
ffc229f8:	7f a3 eb 78 	mr      r3,r29                                 
ffc229fc:	4b ff f3 09 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc22a00:	39 20 00 00 	li      r9,0                                   
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);                       
  handle->dirty = false;                                              
ffc22a04:	39 40 00 00 	li      r10,0                                  
  handle->bnum  = 0;                                                  
ffc22a08:	91 21 00 5c 	stw     r9,92(r1)                              
                rtems_rfs_inode_ino (inode), rc, strerror (rc));      
    }                                                                 
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &entries);                       
  rtems_rfs_block_map_close (fs, &map);                               
ffc22a0c:	7f a3 eb 78 	mr      r3,r29                                 
ffc22a10:	38 81 00 08 	addi    r4,r1,8                                
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);                       
  handle->dirty = false;                                              
ffc22a14:	99 41 00 58 	stb     r10,88(r1)                             
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc22a18:	91 21 00 60 	stw     r9,96(r1)                              
ffc22a1c:	4b ff e4 2d 	bl      ffc20e48 <rtems_rfs_block_map_close>   
ffc22a20:	4b ff fe 84 	b       ffc228a4 <rtems_rfs_dir_lookup_ino+0xb8>
    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",
ffc22a24:	3e 20 ff c4 	lis     r17,-60                                
                                                                      
        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)                     
ffc22a28:	3b 60 00 00 	li      r27,0                                  
        }                                                             
                                                                      
        if (ehash == hash)                                            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
            printf ("rtems-rfs: dir-lookup-ino: "                     
ffc22a2c:	3e 40 ff c4 	lis     r18,-60                                
      {                                                               
        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: "                     
ffc22a30:	3e 00 ff c4 	lis     r16,-60                                
    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",
ffc22a34:	3a 31 d6 dc 	addi    r17,r17,-10532                         
       * means the entry is empty.                                    
       */                                                             
                                                                      
      entry = rtems_rfs_buffer_data (&entries);                       
                                                                      
      map.bpos.boff = 0;                                              
ffc22a38:	3a 60 00 00 	li      r19,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)                     
ffc22a3c:	63 7b ff ff 	ori     r27,r27,65535                          
        }                                                             
                                                                      
        if (ehash == hash)                                            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
            printf ("rtems-rfs: dir-lookup-ino: "                     
ffc22a40:	3a 52 d7 a4 	addi    r18,r18,-10332                         
      {                                                               
        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: "                     
ffc22a44:	3a 10 d8 4c 	addi    r16,r16,-10164                         
      rtems_rfs_buffer_handle_close (fs, &entries);                   
      rtems_rfs_block_map_close (fs, &map);                           
      return rc;                                                      
    }                                                                 
                                                                      
    while ((rc == 0) && block)                                        
ffc22a48:	40 92 02 74 	bne-    cr4,ffc22cbc <rtems_rfs_dir_lookup_ino+0x4d0><== NEVER TAKEN
ffc22a4c:	81 21 00 64 	lwz     r9,100(r1)                             
ffc22a50:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc22a54:	41 9e 03 30 	beq-    cr7,ffc22d84 <rtems_rfs_dir_lookup_ino+0x598><== NEVER TAKEN
    {                                                                 
      uint8_t* entry;                                                 
                                                                      
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))           
ffc22a58:	38 60 00 00 	li      r3,0                                   
ffc22a5c:	3c 80 04 00 	lis     r4,1024                                
ffc22a60:	4b ff 54 3d 	bl      ffc17e9c <rtems_rfs_trace>             
ffc22a64:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc22a68:	40 9e 02 38 	bne-    cr7,ffc22ca0 <rtems_rfs_dir_lookup_ino+0x4b4><== NEVER TAKEN
        printf ("rtems-rfs: dir-lookup-ino: block read, ino=%" PRIu32 " bno=%" PRId32 "\n",
                rtems_rfs_inode_ino (inode), map.bpos.bno);           
                                                                      
      rc = rtems_rfs_buffer_handle_request (fs, &entries, block, true);
ffc22a6c:	80 a1 00 64 	lwz     r5,100(r1)                             
ffc22a70:	7f a3 eb 78 	mr      r3,r29                                 
ffc22a74:	38 81 00 58 	addi    r4,r1,88                               
ffc22a78:	38 c0 00 01 	li      r6,1                                   
ffc22a7c:	4b ff f4 9d 	bl      ffc21f18 <rtems_rfs_buffer_handle_request>
      if (rc > 0)                                                     
ffc22a80:	2e 03 00 00 	cmpwi   cr4,r3,0                               
ffc22a84:	7c 75 1b 78 	mr      r21,r3                                 
ffc22a88:	41 91 02 b0 	bgt-    cr4,ffc22d38 <rtems_rfs_dir_lookup_ino+0x54c><== NEVER TAKEN
                                                                      
      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))
ffc22a8c:	81 7d 00 08 	lwz     r11,8(r29)                             
      /*                                                              
       * 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);                       
ffc22a90:	81 21 00 60 	lwz     r9,96(r1)                              
                                                                      
      map.bpos.boff = 0;                                              
                                                                      
      while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
ffc22a94:	2f 8b 00 0a 	cmpwi   cr7,r11,10                             
       * means the entry is empty.                                    
       */                                                             
                                                                      
      entry = rtems_rfs_buffer_data (&entries);                       
                                                                      
      map.bpos.boff = 0;                                              
ffc22a98:	92 61 00 1c 	stw     r19,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);                       
ffc22a9c:	83 e9 00 1c 	lwz     r31,28(r9)                             
                                                                      
      map.bpos.boff = 0;                                              
                                                                      
      while (map.bpos.boff < (rtems_rfs_fs_block_size (fs) - RTEMS_RFS_DIR_ENTRY_SIZE))
ffc22aa0:	40 be 00 24 	bne+    cr7,ffc22ac4 <rtems_rfs_dir_lookup_ino+0x2d8><== ALWAYS TAKEN
ffc22aa4:	48 00 01 08 	b       ffc22bac <rtems_rfs_dir_lookup_ino+0x3c0><== NOT EXECUTED
            rtems_rfs_block_map_close (fs, &map);                     
            return 0;                                                 
          }                                                           
        }                                                             
                                                                      
        map.bpos.boff += elength;                                     
ffc22aa8:	81 21 00 1c 	lwz     r9,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))
ffc22aac:	39 4b ff f6 	addi    r10,r11,-10                            
            return 0;                                                 
          }                                                           
        }                                                             
                                                                      
        map.bpos.boff += elength;                                     
        entry += elength;                                             
ffc22ab0:	7f ff f2 14 	add     r31,r31,r30                            
            rtems_rfs_block_map_close (fs, &map);                     
            return 0;                                                 
          }                                                           
        }                                                             
                                                                      
        map.bpos.boff += elength;                                     
ffc22ab4:	7d 3e 4a 14 	add     r9,r30,r9                              
                                                                      
      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))
ffc22ab8:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
            rtems_rfs_block_map_close (fs, &map);                     
            return 0;                                                 
          }                                                           
        }                                                             
                                                                      
        map.bpos.boff += elength;                                     
ffc22abc:	91 21 00 1c 	stw     r9,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))
ffc22ac0:	40 9d 00 ec 	ble-    cr7,ffc22bac <rtems_rfs_dir_lookup_ino+0x3c0><== NEVER TAKEN
      {                                                               
        uint32_t ehash;                                               
        int      elength;                                             
                                                                      
        ehash  = rtems_rfs_dir_entry_hash (entry);                    
        elength = rtems_rfs_dir_entry_length (entry);                 
ffc22ac4:	8b df 00 08 	lbz     r30,8(r31)                             
ffc22ac8:	89 5f 00 09 	lbz     r10,9(r31)                             
ffc22acc:	57 de 40 2e 	rlwinm  r30,r30,8,0,23                         
        *ino = rtems_rfs_dir_entry_ino (entry);                       
ffc22ad0:	88 1f 00 00 	lbz     r0,0(r31)                              
ffc22ad4:	89 3f 00 01 	lbz     r9,1(r31)                              
      {                                                               
        uint32_t ehash;                                               
        int      elength;                                             
                                                                      
        ehash  = rtems_rfs_dir_entry_hash (entry);                    
        elength = rtems_rfs_dir_entry_length (entry);                 
ffc22ad8:	7f de 53 78 	or      r30,r30,r10                            
      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);                    
ffc22adc:	88 9f 00 04 	lbz     r4,4(r31)                              
        elength = rtems_rfs_dir_entry_length (entry);                 
        *ino = rtems_rfs_dir_entry_ino (entry);                       
                                                                      
        if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                     
ffc22ae0:	7f 9e d8 00 	cmpw    cr7,r30,r27                            
      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);                    
ffc22ae4:	89 1f 00 05 	lbz     r8,5(r31)                              
        elength = rtems_rfs_dir_entry_length (entry);                 
        *ino = rtems_rfs_dir_entry_ino (entry);                       
ffc22ae8:	54 00 c0 0e 	rlwinm  r0,r0,24,0,7                           
ffc22aec:	88 bf 00 03 	lbz     r5,3(r31)                              
ffc22af0:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc22af4:	88 ff 00 02 	lbz     r7,2(r31)                              
      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);                    
ffc22af8:	54 84 c0 0e 	rlwinm  r4,r4,24,0,7                           
ffc22afc:	88 df 00 07 	lbz     r6,7(r31)                              
ffc22b00:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          
ffc22b04:	89 5f 00 06 	lbz     r10,6(r31)                             
        elength = rtems_rfs_dir_entry_length (entry);                 
        *ino = rtems_rfs_dir_entry_ino (entry);                       
ffc22b08:	7c 09 4b 78 	or      r9,r0,r9                               
      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);                    
ffc22b0c:	7c 88 43 78 	or      r8,r4,r8                               
        elength = rtems_rfs_dir_entry_length (entry);                 
        *ino = rtems_rfs_dir_entry_ino (entry);                       
ffc22b10:	7d 29 2b 78 	or      r9,r9,r5                               
ffc22b14:	54 e7 40 2e 	rlwinm  r7,r7,8,0,23                           
      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);                    
ffc22b18:	7d 08 33 78 	or      r8,r8,r6                               
ffc22b1c:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
        elength = rtems_rfs_dir_entry_length (entry);                 
        *ino = rtems_rfs_dir_entry_ino (entry);                       
ffc22b20:	7d 29 3b 78 	or      r9,r9,r7                               
      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);                    
ffc22b24:	7d 0a 53 78 	or      r10,r8,r10                             
        elength = rtems_rfs_dir_entry_length (entry);                 
        *ino = rtems_rfs_dir_entry_ino (entry);                       
ffc22b28:	91 3c 00 00 	stw     r9,0(r28)                              
                                                                      
        if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                     
ffc22b2c:	41 9e 00 80 	beq-    cr7,ffc22bac <rtems_rfs_dir_lookup_ino+0x3c0>
          break;                                                      
                                                                      
        if (rtems_rfs_dir_entry_valid (fs, elength, *ino))            
ffc22b30:	2f 9e 00 0a 	cmpwi   cr7,r30,10                             
ffc22b34:	40 9d 00 dc 	ble-    cr7,ffc22c10 <rtems_rfs_dir_lookup_ino+0x424><== NEVER TAKEN
ffc22b38:	80 fd 00 1c 	lwz     r7,28(r29)                             
ffc22b3c:	7f 9e 38 40 	cmplw   cr7,r30,r7                             
ffc22b40:	40 9c 00 d0 	bge-    cr7,ffc22c10 <rtems_rfs_dir_lookup_ino+0x424><== NEVER TAKEN
ffc22b44:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc22b48:	41 9e 00 c8 	beq-    cr7,ffc22c10 <rtems_rfs_dir_lookup_ino+0x424><== NEVER TAKEN
ffc22b4c:	81 1d 00 14 	lwz     r8,20(r29)                             
ffc22b50:	7f 89 40 40 	cmplw   cr7,r9,r8                              
ffc22b54:	41 9d 00 bc 	bgt-    cr7,ffc22c10 <rtems_rfs_dir_lookup_ino+0x424><== NEVER TAKEN
                    rtems_rfs_inode_ino (inode), elength, *ino, map.bpos.boff);
          rc = EIO;                                                   
          break;                                                      
        }                                                             
                                                                      
        if (ehash == hash)                                            
ffc22b58:	7f 8a d0 00 	cmpw    cr7,r10,r26                            
ffc22b5c:	40 9e ff 4c 	bne+    cr7,ffc22aa8 <rtems_rfs_dir_lookup_ino+0x2bc>
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
ffc22b60:	38 60 00 00 	li      r3,0                                   
ffc22b64:	3c 80 08 00 	lis     r4,2048                                
ffc22b68:	4b ff 53 35 	bl      ffc17e9c <rtems_rfs_trace>             
ffc22b6c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc22b70:	40 9e 00 e8 	bne-    cr7,ffc22c58 <rtems_rfs_dir_lookup_ino+0x46c><== NEVER TAKEN
                    "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)
ffc22b74:	38 7f 00 0a 	addi    r3,r31,10                              
ffc22b78:	7e c4 b3 78 	mr      r4,r22                                 
ffc22b7c:	7e e5 bb 78 	mr      r5,r23                                 
ffc22b80:	48 00 7a 09 	bl      ffc2a588 <memcmp>                      
ffc22b84:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc22b88:	41 9e 01 6c 	beq-    cr7,ffc22cf4 <rtems_rfs_dir_lookup_ino+0x508><== ALWAYS TAKEN
            rtems_rfs_block_map_close (fs, &map);                     
            return 0;                                                 
          }                                                           
        }                                                             
                                                                      
        map.bpos.boff += elength;                                     
ffc22b8c:	81 21 00 1c 	lwz     r9,28(r1)                              <== NOT EXECUTED
        entry += elength;                                             
ffc22b90:	7f ff f2 14 	add     r31,r31,r30                            <== NOT EXECUTED
ffc22b94:	81 7d 00 08 	lwz     r11,8(r29)                             <== NOT EXECUTED
            rtems_rfs_block_map_close (fs, &map);                     
            return 0;                                                 
          }                                                           
        }                                                             
                                                                      
        map.bpos.boff += elength;                                     
ffc22b98:	7d 3e 4a 14 	add     r9,r30,r9                              <== NOT EXECUTED
                                                                      
      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))
ffc22b9c:	39 4b ff f6 	addi    r10,r11,-10                            <== NOT EXECUTED
            rtems_rfs_block_map_close (fs, &map);                     
            return 0;                                                 
          }                                                           
        }                                                             
                                                                      
        map.bpos.boff += elength;                                     
ffc22ba0:	91 21 00 1c 	stw     r9,28(r1)                              <== NOT EXECUTED
                                                                      
      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))
ffc22ba4:	7f 8a 48 40 	cmplw   cr7,r10,r9                             <== NOT EXECUTED
ffc22ba8:	41 9d ff 1c 	bgt+    cr7,ffc22ac4 <rtems_rfs_dir_lookup_ino+0x2d8><== NOT EXECUTED
                                                                      
        map.bpos.boff += elength;                                     
        entry += elength;                                             
      }                                                               
                                                                      
      if (rc == 0)                                                    
ffc22bac:	40 b2 00 7c 	bne+    cr4,ffc22c28 <rtems_rfs_dir_lookup_ino+0x43c><== NEVER TAKEN
      {                                                               
        rc = rtems_rfs_block_map_next_block (fs, &map, &block);       
ffc22bb0:	7f a3 eb 78 	mr      r3,r29                                 
ffc22bb4:	38 81 00 08 	addi    r4,r1,8                                
ffc22bb8:	38 a1 00 64 	addi    r5,r1,100                              
ffc22bbc:	4b ff e7 09 	bl      ffc212c4 <rtems_rfs_block_map_next_block>
        if ((rc > 0) && (rc != ENXIO))                                
ffc22bc0:	2e 03 00 00 	cmpwi   cr4,r3,0                               
ffc22bc4:	7c 79 1b 78 	mr      r25,r3                                 
ffc22bc8:	40 b1 fe 80 	ble-    cr4,ffc22a48 <rtems_rfs_dir_lookup_ino+0x25c><== NEVER TAKEN
ffc22bcc:	2f 83 00 06 	cmpwi   cr7,r3,6                               
ffc22bd0:	41 9e 00 e8 	beq-    cr7,ffc22cb8 <rtems_rfs_dir_lookup_ino+0x4cc><== ALWAYS TAKEN
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))       
ffc22bd4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc22bd8:	3c 80 04 00 	lis     r4,1024                                <== NOT EXECUTED
ffc22bdc:	4b ff 52 c1 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc22be0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc22be4:	41 9e fe 64 	beq+    cr7,ffc22a48 <rtems_rfs_dir_lookup_ino+0x25c><== NOT EXECUTED
            printf ("rtems-rfs: dir-lookup-ino: "                     
ffc22be8:	83 f8 00 08 	lwz     r31,8(r24)                             <== NOT EXECUTED
ffc22bec:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc22bf0:	48 00 90 25 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc22bf4:	7f 25 cb 78 	mr      r5,r25                                 <== NOT EXECUTED
ffc22bf8:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc22bfc:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc22c00:	7e 03 83 78 	mr      r3,r16                                 <== NOT EXECUTED
ffc22c04:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc22c08:	48 00 7e 91 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc22c0c:	4b ff fe 3c 	b       ffc22a48 <rtems_rfs_dir_lookup_ino+0x25c><== NOT EXECUTED
        if (elength == RTEMS_RFS_DIR_ENTRY_EMPTY)                     
          break;                                                      
                                                                      
        if (rtems_rfs_dir_entry_valid (fs, elength, *ino))            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))       
ffc22c10:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc22c14:	3c 80 04 00 	lis     r4,1024                                <== NOT EXECUTED
ffc22c18:	4b ff 52 85 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc22c1c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc22c20:	40 9e 00 10 	bne-    cr7,ffc22c30 <rtems_rfs_dir_lookup_ino+0x444><== NOT EXECUTED
      rtems_rfs_buffer_handle_close (fs, &entries);                   
      rtems_rfs_block_map_close (fs, &map);                           
      return rc;                                                      
    }                                                                 
                                                                      
    while ((rc == 0) && block)                                        
ffc22c24:	3a a0 00 05 	li      r21,5                                  <== NOT EXECUTED
            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;                                                
ffc22c28:	7e b9 ab 78 	mr      r25,r21                                <== NOT EXECUTED
ffc22c2c:	4b ff fd c8 	b       ffc229f4 <rtems_rfs_dir_lookup_ino+0x208><== NOT EXECUTED
          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: "                     
ffc22c30:	80 98 00 08 	lwz     r4,8(r24)                              <== NOT EXECUTED
ffc22c34:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc22c38:	80 dc 00 00 	lwz     r6,0(r28)                              <== NOT EXECUTED
ffc22c3c:	38 63 d7 58 	addi    r3,r3,-10408                           <== NOT EXECUTED
ffc22c40:	80 e1 00 1c 	lwz     r7,28(r1)                              <== NOT EXECUTED
ffc22c44:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
      rtems_rfs_buffer_handle_close (fs, &entries);                   
      rtems_rfs_block_map_close (fs, &map);                           
      return rc;                                                      
    }                                                                 
                                                                      
    while ((rc == 0) && block)                                        
ffc22c48:	3a a0 00 05 	li      r21,5                                  <== NOT EXECUTED
          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: "                     
ffc22c4c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc22c50:	48 00 7e 49 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc22c54:	4b ff ff d4 	b       ffc22c28 <rtems_rfs_dir_lookup_ino+0x43c><== NOT EXECUTED
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
            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));        
ffc22c58:	88 ff 00 00 	lbz     r7,0(r31)                              <== NOT EXECUTED
        }                                                             
                                                                      
        if (ehash == hash)                                            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
            printf ("rtems-rfs: dir-lookup-ino: "                     
ffc22c5c:	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));        
ffc22c60:	89 1f 00 01 	lbz     r8,1(r31)                              <== NOT EXECUTED
ffc22c64:	54 e7 c0 0e 	rlwinm  r7,r7,24,0,7                           <== NOT EXECUTED
ffc22c68:	89 5f 00 03 	lbz     r10,3(r31)                             <== NOT EXECUTED
ffc22c6c:	89 3f 00 02 	lbz     r9,2(r31)                              <== NOT EXECUTED
ffc22c70:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          <== NOT EXECUTED
ffc22c74:	7c e8 43 78 	or      r8,r7,r8                               <== NOT EXECUTED
        }                                                             
                                                                      
        if (ehash == hash)                                            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
            printf ("rtems-rfs: dir-lookup-ino: "                     
ffc22c78:	80 98 00 08 	lwz     r4,8(r24)                              <== 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));        
ffc22c7c:	7d 08 53 78 	or      r8,r8,r10                              <== NOT EXECUTED
        }                                                             
                                                                      
        if (ehash == hash)                                            
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_CHECK)) 
            printf ("rtems-rfs: dir-lookup-ino: "                     
ffc22c80:	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));        
ffc22c84:	55 29 40 2e 	rlwinm  r9,r9,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: "                     
ffc22c88:	80 c1 00 1c 	lwz     r6,28(r1)                              <== NOT EXECUTED
ffc22c8c:	7f c7 f3 78 	mr      r7,r30                                 <== NOT EXECUTED
ffc22c90:	7d 08 4b 78 	or      r8,r8,r9                               <== NOT EXECUTED
ffc22c94:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc22c98:	48 00 7e 01 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc22c9c:	4b ff fe d8 	b       ffc22b74 <rtems_rfs_dir_lookup_ino+0x388><== 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",
ffc22ca0:	80 98 00 08 	lwz     r4,8(r24)                              <== NOT EXECUTED
ffc22ca4:	7e 23 8b 78 	mr      r3,r17                                 <== NOT EXECUTED
ffc22ca8:	80 a1 00 18 	lwz     r5,24(r1)                              <== NOT EXECUTED
ffc22cac:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc22cb0:	48 00 7d e9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc22cb4:	4b ff fd b8 	b       ffc22a6c <rtems_rfs_dir_lookup_ino+0x280><== NOT EXECUTED
            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;                                                
ffc22cb8:	3b 20 00 02 	li      r25,2                                  
      rtems_rfs_buffer_handle_close (fs, &entries);                   
      rtems_rfs_block_map_close (fs, &map);                           
      return rc;                                                      
    }                                                                 
                                                                      
    while ((rc == 0) && block)                                        
ffc22cbc:	7f 35 cb 78 	mr      r21,r25                                
            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;                                                
ffc22cc0:	7e b9 ab 78 	mr      r25,r21                                
ffc22cc4:	4b ff fd 30 	b       ffc229f4 <rtems_rfs_dir_lookup_ino+0x208>
     */                                                               
    rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);              
    if (rc > 0)                                                       
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))           
        printf ("rtems-rfs: dir-lookup-ino: block map find failed: %d: %s\n",
ffc22cc8:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc22ccc:	48 00 8f 49 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc22cd0:	7f 24 cb 78 	mr      r4,r25                                 <== NOT EXECUTED
ffc22cd4:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc22cd8:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc22cdc:	38 63 d6 a0 	addi    r3,r3,-10592                           <== NOT EXECUTED
ffc22ce0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc22ce4:	48 00 7d b5 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc22ce8:	4b ff fd 04 	b       ffc229ec <rtems_rfs_dir_lookup_ino+0x200><== NOT EXECUTED
                rc, strerror (rc));                                   
      if (rc == ENXIO)                                                
        rc = ENOENT;                                                  
ffc22cec:	3b 20 00 02 	li      r25,2                                  <== NOT EXECUTED
ffc22cf0:	4b ff fd 04 	b       ffc229f4 <rtems_rfs_dir_lookup_ino+0x208><== NOT EXECUTED
                    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);             
ffc22cf4:	7f a3 eb 78 	mr      r3,r29                                 
ffc22cf8:	38 81 00 18 	addi    r4,r1,24                               
ffc22cfc:	4b ff de 31 	bl      ffc20b2c <rtems_rfs_block_get_pos>     
                                                                      
            if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_FOUND))
ffc22d00:	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);             
ffc22d04:	90 94 00 00 	stw     r4,0(r20)                              
                                                                      
            if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO_FOUND))
ffc22d08:	3c 80 10 00 	lis     r4,4096                                
ffc22d0c:	4b ff 51 91 	bl      ffc17e9c <rtems_rfs_trace>             
ffc22d10:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc22d14:	41 9e fc e0 	beq+    cr7,ffc229f4 <rtems_rfs_dir_lookup_ino+0x208><== ALWAYS TAKEN
              printf ("rtems-rfs: dir-lookup-ino: "                   
ffc22d18:	80 98 00 08 	lwz     r4,8(r24)                              <== NOT EXECUTED
ffc22d1c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc22d20:	80 bc 00 00 	lwz     r5,0(r28)                              <== NOT EXECUTED
ffc22d24:	38 63 d8 04 	addi    r3,r3,-10236                           <== NOT EXECUTED
ffc22d28:	80 d4 00 00 	lwz     r6,0(r20)                              <== NOT EXECUTED
ffc22d2c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc22d30:	48 00 7d 69 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc22d34:	4b ff fc c0 	b       ffc229f4 <rtems_rfs_dir_lookup_ino+0x208><== NOT EXECUTED
                rtems_rfs_inode_ino (inode), map.bpos.bno);           
                                                                      
      rc = rtems_rfs_buffer_handle_request (fs, &entries, block, true);
      if (rc > 0)                                                     
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))         
ffc22d38:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc22d3c:	3c 80 04 00 	lis     r4,1024                                <== NOT EXECUTED
ffc22d40:	4b ff 51 5d 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc22d44:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc22d48:	41 9e fe e0 	beq+    cr7,ffc22c28 <rtems_rfs_dir_lookup_ino+0x43c><== NOT EXECUTED
          printf ("rtems-rfs: dir-lookup-ino: block read, ino=%" PRIu32 " block=%" PRId32 ": %d: %s\n",
ffc22d4c:	7e a3 ab 78 	mr      r3,r21                                 <== NOT EXECUTED
ffc22d50:	83 d8 00 08 	lwz     r30,8(r24)                             <== NOT EXECUTED
ffc22d54:	83 e1 00 64 	lwz     r31,100(r1)                            <== NOT EXECUTED
ffc22d58:	48 00 8e bd 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc22d5c:	7c 67 1b 78 	mr      r7,r3                                  <== NOT EXECUTED
ffc22d60:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc22d64:	38 63 d7 14 	addi    r3,r3,-10476                           <== NOT EXECUTED
ffc22d68:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc22d6c:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc22d70:	7e a6 ab 78 	mr      r6,r21                                 <== NOT EXECUTED
ffc22d74:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc22d78:	48 00 7d 21 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            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;                                                
ffc22d7c:	7e b9 ab 78 	mr      r25,r21                                <== NOT EXECUTED
ffc22d80:	4b ff fc 74 	b       ffc229f4 <rtems_rfs_dir_lookup_ino+0x208><== NOT EXECUTED
    }                                                                 
                                                                      
    if ((rc == 0) && (block == 0))                                    
    {                                                                 
      rc = EIO;                                                       
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_LOOKUP_INO))           
ffc22d84:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc22d88:	3c 80 04 00 	lis     r4,1024                                <== NOT EXECUTED
ffc22d8c:	4b ff 51 11 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc22d90:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc22d94:	40 9e 00 0c 	bne-    cr7,ffc22da0 <rtems_rfs_dir_lookup_ino+0x5b4><== NOT EXECUTED
      }                                                               
    }                                                                 
                                                                      
    if ((rc == 0) && (block == 0))                                    
    {                                                                 
      rc = EIO;                                                       
ffc22d98:	3b 20 00 05 	li      r25,5                                  <== NOT EXECUTED
ffc22d9c:	4b ff fc 58 	b       ffc229f4 <rtems_rfs_dir_lookup_ino+0x208><== NOT EXECUTED
      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",
ffc22da0:	38 60 00 05 	li      r3,5                                   <== NOT EXECUTED
ffc22da4:	83 f8 00 08 	lwz     r31,8(r24)                             <== NOT EXECUTED
ffc22da8:	48 00 8e 6d 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc22dac:	38 a0 00 05 	li      r5,5                                   <== NOT EXECUTED
ffc22db0:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc22db4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc22db8:	38 63 d8 98 	addi    r3,r3,-10088                           <== NOT EXECUTED
ffc22dbc:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc22dc0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc22dc4:	48 00 7c d5 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
      }                                                               
    }                                                                 
                                                                      
    if ((rc == 0) && (block == 0))                                    
    {                                                                 
      rc = EIO;                                                       
ffc22dc8:	3b 20 00 05 	li      r25,5                                  <== NOT EXECUTED
ffc22dcc:	4b ff fc 28 	b       ffc229f4 <rtems_rfs_dir_lookup_ino+0x208><== NOT EXECUTED
                                                                      

ffc2377c <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) {
ffc2377c:	94 21 ff 68 	stwu    r1,-152(r1)                            
ffc23780:	7c 08 02 a6 	mflr    r0                                     
ffc23784:	93 01 00 78 	stw     r24,120(r1)                            
ffc23788:	7c 98 23 78 	mr      r24,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))                     
ffc2378c:	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)                   
{                                                                     
ffc23790:	93 61 00 84 	stw     r27,132(r1)                            
ffc23794:	7c 7b 1b 78 	mr      r27,r3                                 
  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))                     
ffc23798:	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)                   
{                                                                     
ffc2379c:	92 c1 00 70 	stw     r22,112(r1)                            
ffc237a0:	7c f6 3b 78 	mr      r22,r7                                 
ffc237a4:	93 41 00 80 	stw     r26,128(r1)                            
ffc237a8:	7d 1a 43 78 	mr      r26,r8                                 
ffc237ac:	93 c1 00 90 	stw     r30,144(r1)                            
ffc237b0:	7c be 2b 78 	mr      r30,r5                                 
ffc237b4:	93 e1 00 94 	stw     r31,148(r1)                            
ffc237b8:	7c df 33 78 	mr      r31,r6                                 
ffc237bc:	90 01 00 9c 	stw     r0,156(r1)                             
ffc237c0:	92 81 00 68 	stw     r20,104(r1)                            
ffc237c4:	92 a1 00 6c 	stw     r21,108(r1)                            
ffc237c8:	92 e1 00 74 	stw     r23,116(r1)                            
ffc237cc:	93 21 00 7c 	stw     r25,124(r1)                            
ffc237d0:	93 81 00 88 	stw     r28,136(r1)                            
ffc237d4:	93 a1 00 8c 	stw     r29,140(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))                     
ffc237d8:	4b ff 46 c5 	bl      ffc17e9c <rtems_rfs_trace>             
ffc237dc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc237e0:	40 9e 00 cc 	bne-    cr7,ffc238ac <rtems_rfs_dir_read+0x130><== NEVER TAKEN
    printf ("rtems-rfs: dir-read: dir=%" PRId32 " offset=%" PRId64 "\n",
            rtems_rfs_inode_ino (dir), offset);                       
                                                                      
  *length = 0;                                                        
ffc237e4:	39 20 00 00 	li      r9,0                                   
ffc237e8:	91 3a 00 00 	stw     r9,0(r26)                              
                                                                      
  rc = rtems_rfs_block_map_open (fs, dir, &map);                      
ffc237ec:	7f 63 db 78 	mr      r3,r27                                 
ffc237f0:	7f 04 c3 78 	mr      r4,r24                                 
ffc237f4:	38 a1 00 08 	addi    r5,r1,8                                
ffc237f8:	4b ff d4 65 	bl      ffc20c5c <rtems_rfs_block_map_open>    
  if (rc > 0)                                                         
ffc237fc:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc23800:	40 81 00 48 	ble-    ffc23848 <rtems_rfs_dir_read+0xcc>     <== ALWAYS TAKEN
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
  rtems_rfs_block_map_close (fs, &map);                               
  return rc;                                                          
}                                                                     
ffc23804:	80 01 00 9c 	lwz     r0,156(r1)                             
ffc23808:	7f a3 eb 78 	mr      r3,r29                                 
ffc2380c:	82 81 00 68 	lwz     r20,104(r1)                            
ffc23810:	7c 08 03 a6 	mtlr    r0                                     
ffc23814:	82 a1 00 6c 	lwz     r21,108(r1)                            
ffc23818:	82 c1 00 70 	lwz     r22,112(r1)                            
ffc2381c:	82 e1 00 74 	lwz     r23,116(r1)                            
ffc23820:	83 01 00 78 	lwz     r24,120(r1)                            
ffc23824:	83 21 00 7c 	lwz     r25,124(r1)                            
ffc23828:	83 41 00 80 	lwz     r26,128(r1)                            
ffc2382c:	83 61 00 84 	lwz     r27,132(r1)                            
ffc23830:	83 81 00 88 	lwz     r28,136(r1)                            
ffc23834:	83 a1 00 8c 	lwz     r29,140(r1)                            
ffc23838:	83 c1 00 90 	lwz     r30,144(r1)                            
ffc2383c:	83 e1 00 94 	lwz     r31,148(r1)                            
ffc23840:	38 21 00 98 	addi    r1,r1,152                              
ffc23844:	4e 80 00 20 	blr                                            
  rc = rtems_rfs_block_map_open (fs, dir, &map);                      
  if (rc > 0)                                                         
    return rc;                                                        
                                                                      
  if (((rtems_rfs_fs_block_size (fs) -                                
        (offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
ffc23848:	83 bb 00 08 	lwz     r29,8(r27)                             
ffc2384c:	3b 80 00 00 	li      r28,0                                  
ffc23850:	7f c3 f3 78 	mr      r3,r30                                 
ffc23854:	7f e4 fb 78 	mr      r4,r31                                 
ffc23858:	7f 85 e3 78 	mr      r5,r28                                 
ffc2385c:	7f a6 eb 78 	mr      r6,r29                                 
ffc23860:	48 01 47 31 	bl      ffc37f90 <__moddi3>                    
                                                                      
  rc = rtems_rfs_block_map_open (fs, dir, &map);                      
  if (rc > 0)                                                         
    return rc;                                                        
                                                                      
  if (((rtems_rfs_fs_block_size (fs) -                                
ffc23864:	7d 64 e8 10 	subfc   r11,r4,r29                             
ffc23868:	7d 43 e1 10 	subfe   r10,r3,r28                             
ffc2386c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc23870:	40 9d 00 5c 	ble-    cr7,ffc238cc <rtems_rfs_dir_read+0x150><== ALWAYS TAKEN
        (offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
    offset = (((offset / rtems_rfs_fs_block_size (fs)) + 1) *         
              rtems_rfs_fs_block_size (fs));                          
                                                                      
  rc = rtems_rfs_block_map_seek (fs, &map, offset, &block);           
ffc23874:	7f 63 db 78 	mr      r3,r27                                 
ffc23878:	38 81 00 08 	addi    r4,r1,8                                
ffc2387c:	7f c5 f3 78 	mr      r5,r30                                 
ffc23880:	7f e6 fb 78 	mr      r6,r31                                 
ffc23884:	38 e1 00 64 	addi    r7,r1,100                              
ffc23888:	4b ff d9 79 	bl      ffc21200 <rtems_rfs_block_map_seek>    
  if (rc > 0)                                                         
ffc2388c:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc23890:	40 81 00 94 	ble-    ffc23924 <rtems_rfs_dir_read+0x1a8>    <== ALWAYS TAKEN
  {                                                                   
    if (rc == ENXIO)                                                  
ffc23894:	2f 9d 00 06 	cmpwi   cr7,r29,6                              <== NOT EXECUTED
ffc23898:	41 9e 00 78 	beq-    cr7,ffc23910 <rtems_rfs_dir_read+0x194><== NOT EXECUTED
      rc = ENOENT;                                                    
    rtems_rfs_block_map_close (fs, &map);                             
ffc2389c:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc238a0:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc238a4:	4b ff d5 a5 	bl      ffc20e48 <rtems_rfs_block_map_close>   <== NOT EXECUTED
ffc238a8:	4b ff ff 5c 	b       ffc23804 <rtems_rfs_dir_read+0x88>     <== NOT EXECUTED
  rtems_rfs_buffer_handle buffer;                                     
  rtems_rfs_block_no      block;                                      
  int                     rc;                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                     
    printf ("rtems-rfs: dir-read: dir=%" PRId32 " offset=%" PRId64 "\n",
ffc238ac:	80 98 00 08 	lwz     r4,8(r24)                              <== NOT EXECUTED
ffc238b0:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc238b4:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc238b8:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
ffc238bc:	38 63 db a4 	addi    r3,r3,-9308                            <== NOT EXECUTED
ffc238c0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc238c4:	48 00 71 d5 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc238c8:	4b ff ff 1c 	b       ffc237e4 <rtems_rfs_dir_read+0x68>     <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_block_map_open (fs, dir, &map);                      
  if (rc > 0)                                                         
    return rc;                                                        
                                                                      
  if (((rtems_rfs_fs_block_size (fs) -                                
ffc238cc:	40 9e 00 0c 	bne-    cr7,ffc238d8 <rtems_rfs_dir_read+0x15c><== NEVER TAKEN
ffc238d0:	2b 8b 00 0a 	cmplwi  cr7,r11,10                             
ffc238d4:	41 bd ff a0 	bgt-    cr7,ffc23874 <rtems_rfs_dir_read+0xf8> <== ALWAYS TAKEN
        (offset % rtems_rfs_fs_block_size (fs))) <= RTEMS_RFS_DIR_ENTRY_SIZE))
    offset = (((offset / rtems_rfs_fs_block_size (fs)) + 1) *         
ffc238d8:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc238dc:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc238e0:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc238e4:	7f a6 eb 78 	mr      r6,r29                                 <== NOT EXECUTED
ffc238e8:	48 01 42 85 	bl      ffc37b6c <__divdi3>                    <== NOT EXECUTED
ffc238ec:	31 64 00 01 	addic   r11,r4,1                               <== NOT EXECUTED
ffc238f0:	7d 43 01 94 	addze   r10,r3                                 <== NOT EXECUTED
ffc238f4:	7d 1c 59 d6 	mullw   r8,r28,r11                             <== NOT EXECUTED
ffc238f8:	7d 2a e9 d6 	mullw   r9,r10,r29                             <== NOT EXECUTED
ffc238fc:	7f dd 58 16 	mulhwu  r30,r29,r11                            <== NOT EXECUTED
ffc23900:	7d 28 4a 14 	add     r9,r8,r9                               <== NOT EXECUTED
ffc23904:	7f fd 59 d6 	mullw   r31,r29,r11                            <== NOT EXECUTED
ffc23908:	7f c9 f2 14 	add     r30,r9,r30                             <== NOT EXECUTED
ffc2390c:	4b ff ff 68 	b       ffc23874 <rtems_rfs_dir_read+0xf8>     <== NOT EXECUTED
  rc = rtems_rfs_block_map_seek (fs, &map, offset, &block);           
  if (rc > 0)                                                         
  {                                                                   
    if (rc == ENXIO)                                                  
      rc = ENOENT;                                                    
    rtems_rfs_block_map_close (fs, &map);                             
ffc23910:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc23914:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_block_map_seek (fs, &map, offset, &block);           
  if (rc > 0)                                                         
  {                                                                   
    if (rc == ENXIO)                                                  
      rc = ENOENT;                                                    
ffc23918:	3b a0 00 02 	li      r29,2                                  <== NOT EXECUTED
    rtems_rfs_block_map_close (fs, &map);                             
ffc2391c:	4b ff d5 2d 	bl      ffc20e48 <rtems_rfs_block_map_close>   <== NOT EXECUTED
ffc23920:	4b ff fe e4 	b       ffc23804 <rtems_rfs_dir_read+0x88>     <== NOT EXECUTED
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc23924:	39 20 00 00 	li      r9,0                                   
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc23928:	39 40 00 00 	li      r10,0                                  
  handle->bnum  = 0;                                                  
ffc2392c:	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)                         
ffc23930:	3a a0 00 00 	li      r21,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",
ffc23934:	3e 80 ff c4 	lis     r20,-60                                
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc23938:	99 41 00 58 	stb     r10,88(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)                         
ffc2393c:	62 b5 ff ff 	ori     r21,r21,65535                          
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc23940:	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",
ffc23944:	3a 94 dc 4c 	addi    r20,r20,-9140                          
    uint8_t*      entry;                                              
    rtems_rfs_ino eino;                                               
    int           elength;                                            
    int           remaining;                                          
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);  
ffc23948:	80 a1 00 64 	lwz     r5,100(r1)                             
ffc2394c:	38 81 00 58 	addi    r4,r1,88                               
ffc23950:	38 c0 00 01 	li      r6,1                                   
ffc23954:	7f 63 db 78 	mr      r3,r27                                 
ffc23958:	4b ff e5 c1 	bl      ffc21f18 <rtems_rfs_buffer_handle_request>
      break;                                                          
    }                                                                 
                                                                      
    *length += rtems_rfs_fs_block_size (fs) - map.bpos.boff;          
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                   
ffc2395c:	3c 80 80 00 	lis     r4,-32768                              
    rtems_rfs_ino eino;                                               
    int           elength;                                            
    int           remaining;                                          
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);  
    if (rc > 0)                                                       
ffc23960:	7c 7d 1b 79 	mr.     r29,r3                                 
      break;                                                          
    }                                                                 
                                                                      
    *length += rtems_rfs_fs_block_size (fs) - map.bpos.boff;          
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                   
ffc23964:	38 60 00 00 	li      r3,0                                   
    rtems_rfs_ino eino;                                               
    int           elength;                                            
    int           remaining;                                          
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, true);  
    if (rc > 0)                                                       
ffc23968:	41 81 00 c0 	bgt-    ffc23a28 <rtems_rfs_dir_read+0x2ac>    <== NEVER TAKEN
      rtems_rfs_buffer_handle_close (fs, &buffer);                    
      rtems_rfs_block_map_close (fs, &map);                           
      return rc;                                                      
    }                                                                 
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
ffc2396c:	81 21 00 60 	lwz     r9,96(r1)                              
    entry += map.bpos.boff;                                           
ffc23970:	83 21 00 1c 	lwz     r25,28(r1)                             
      rtems_rfs_buffer_handle_close (fs, &buffer);                    
      rtems_rfs_block_map_close (fs, &map);                           
      return rc;                                                      
    }                                                                 
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
ffc23974:	81 29 00 1c 	lwz     r9,28(r9)                              
    entry += map.bpos.boff;                                           
ffc23978:	7f 89 ca 14 	add     r28,r9,r25                             
                                                                      
    elength = rtems_rfs_dir_entry_length (entry);                     
    eino    = rtems_rfs_dir_entry_ino (entry);                        
ffc2397c:	7c e9 c8 ae 	lbzx    r7,r9,r25                              
    }                                                                 
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
    entry += map.bpos.boff;                                           
                                                                      
    elength = rtems_rfs_dir_entry_length (entry);                     
ffc23980:	8a fc 00 08 	lbz     r23,8(r28)                             
ffc23984:	89 5c 00 09 	lbz     r10,9(r28)                             
ffc23988:	56 f7 40 2e 	rlwinm  r23,r23,8,0,23                         
    eino    = rtems_rfs_dir_entry_ino (entry);                        
ffc2398c:	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);                     
ffc23990:	7e f7 53 78 	or      r23,r23,r10                            
    eino    = rtems_rfs_dir_entry_ino (entry);                        
ffc23994:	89 3c 00 02 	lbz     r9,2(r28)                              
                                                                      
    if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)                         
ffc23998:	7f 97 a8 00 	cmpw    cr7,r23,r21                            
                                                                      
    entry  = rtems_rfs_buffer_data (&buffer);                         
    entry += map.bpos.boff;                                           
                                                                      
    elength = rtems_rfs_dir_entry_length (entry);                     
    eino    = rtems_rfs_dir_entry_ino (entry);                        
ffc2399c:	89 5c 00 03 	lbz     r10,3(r28)                             
                                                                      
    if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)                         
ffc239a0:	40 9e 00 b8 	bne-    cr7,ffc23a58 <rtems_rfs_dir_read+0x2dc>
        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;          
ffc239a4:	81 5b 00 08 	lwz     r10,8(r27)                             
ffc239a8:	81 3a 00 00 	lwz     r9,0(r26)                              
ffc239ac:	7f 39 50 50 	subf    r25,r25,r10                            
ffc239b0:	7d 29 ca 14 	add     r9,r9,r25                              
ffc239b4:	91 3a 00 00 	stw     r9,0(r26)                              
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                   
ffc239b8:	4b ff 44 e5 	bl      ffc17e9c <rtems_rfs_trace>             
ffc239bc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc239c0:	40 9e 00 2c 	bne-    cr7,ffc239ec <rtems_rfs_dir_read+0x270><== NEVER TAKEN
      printf ("rtems-rfs: dir-read: next block: off:%" PRId64 " length:%zd\n",
              offset, *length);                                       
                                                                      
    rc = rtems_rfs_block_map_next_block (fs, &map, &block);           
ffc239c4:	7f 63 db 78 	mr      r3,r27                                 
ffc239c8:	38 81 00 08 	addi    r4,r1,8                                
ffc239cc:	38 a1 00 64 	addi    r5,r1,100                              
ffc239d0:	4b ff d8 f5 	bl      ffc212c4 <rtems_rfs_block_map_next_block>
    if (rc == ENXIO)                                                  
ffc239d4:	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);           
ffc239d8:	7c 7d 1b 78 	mr      r29,r3                                 
                                                                      
  /*                                                                  
   * Look for an empty entry and if this is the last block that is the end of
   * the directory.                                                   
   */                                                                 
  while (rc == 0)                                                     
ffc239dc:	2f 03 00 00 	cmpwi   cr6,r3,0                               
    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);           
    if (rc == ENXIO)                                                  
ffc239e0:	41 9e 00 44 	beq-    cr7,ffc23a24 <rtems_rfs_dir_read+0x2a8><== ALWAYS TAKEN
                                                                      
  /*                                                                  
   * Look for an empty entry and if this is the last block that is the end of
   * the directory.                                                   
   */                                                                 
  while (rc == 0)                                                     
ffc239e4:	41 9a ff 64 	beq+    cr6,ffc23948 <rtems_rfs_dir_read+0x1cc><== NOT EXECUTED
ffc239e8:	48 00 00 40 	b       ffc23a28 <rtems_rfs_dir_read+0x2ac>    <== NOT EXECUTED
    }                                                                 
                                                                      
    *length += rtems_rfs_fs_block_size (fs) - map.bpos.boff;          
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                   
      printf ("rtems-rfs: dir-read: next block: off:%" PRId64 " length:%zd\n",
ffc239ec:	80 fa 00 00 	lwz     r7,0(r26)                              <== NOT EXECUTED
ffc239f0:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc239f4:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
ffc239f8:	7e 83 a3 78 	mr      r3,r20                                 <== NOT EXECUTED
ffc239fc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc23a00:	48 00 70 99 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
              offset, *length);                                       
                                                                      
    rc = rtems_rfs_block_map_next_block (fs, &map, &block);           
ffc23a04:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc23a08:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc23a0c:	38 a1 00 64 	addi    r5,r1,100                              <== NOT EXECUTED
ffc23a10:	4b ff d8 b5 	bl      ffc212c4 <rtems_rfs_block_map_next_block><== NOT EXECUTED
    if (rc == ENXIO)                                                  
ffc23a14:	2f 83 00 06 	cmpwi   cr7,r3,6                               <== NOT EXECUTED
                                                                      
    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);           
ffc23a18:	7c 7d 1b 78 	mr      r29,r3                                 <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Look for an empty entry and if this is the last block that is the end of
   * the directory.                                                   
   */                                                                 
  while (rc == 0)                                                     
ffc23a1c:	2f 03 00 00 	cmpwi   cr6,r3,0                               <== NOT EXECUTED
    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);           
    if (rc == ENXIO)                                                  
ffc23a20:	40 9e ff c4 	bne+    cr7,ffc239e4 <rtems_rfs_dir_read+0x268><== NOT EXECUTED
      rc = ENOENT;                                                    
ffc23a24:	3b a0 00 02 	li      r29,2                                  
 */                                                                   
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);                       
ffc23a28:	38 81 00 58 	addi    r4,r1,88                               
ffc23a2c:	7f 63 db 78 	mr      r3,r27                                 
ffc23a30:	4b ff e2 d5 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc23a34:	39 20 00 00 	li      r9,0                                   
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);                       
  handle->dirty = false;                                              
ffc23a38:	39 40 00 00 	li      r10,0                                  
  handle->bnum  = 0;                                                  
ffc23a3c:	91 21 00 5c 	stw     r9,92(r1)                              
  }                                                                   
                                                                      
  rtems_rfs_buffer_handle_close (fs, &buffer);                        
  rtems_rfs_block_map_close (fs, &map);                               
ffc23a40:	7f 63 db 78 	mr      r3,r27                                 
ffc23a44:	38 81 00 08 	addi    r4,r1,8                                
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);                       
  handle->dirty = false;                                              
ffc23a48:	99 41 00 58 	stb     r10,88(r1)                             
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc23a4c:	91 21 00 60 	stw     r9,96(r1)                              
ffc23a50:	4b ff d3 f9 	bl      ffc20e48 <rtems_rfs_block_map_close>   
ffc23a54:	4b ff fd b0 	b       ffc23804 <rtems_rfs_dir_read+0x88>     
    elength = rtems_rfs_dir_entry_length (entry);                     
    eino    = rtems_rfs_dir_entry_ino (entry);                        
                                                                      
    if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)                         
    {                                                                 
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
ffc23a58:	2f 97 00 0a 	cmpwi   cr7,r23,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);                        
ffc23a5c:	54 e7 c0 0e 	rlwinm  r7,r7,24,0,7                           
ffc23a60:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          
ffc23a64:	7c e8 43 78 	or      r8,r7,r8                               
ffc23a68:	7d 0a 53 78 	or      r10,r8,r10                             
ffc23a6c:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc23a70:	7d 55 4b 78 	or      r21,r10,r9                             
                                                                      
    if (elength != RTEMS_RFS_DIR_ENTRY_EMPTY)                         
    {                                                                 
      if (rtems_rfs_dir_entry_valid (fs, elength, eino))              
ffc23a74:	40 9d 00 24 	ble-    cr7,ffc23a98 <rtems_rfs_dir_read+0x31c><== NEVER TAKEN
ffc23a78:	81 3b 00 1c 	lwz     r9,28(r27)                             
ffc23a7c:	7f 97 48 40 	cmplw   cr7,r23,r9                             
ffc23a80:	40 9c 00 18 	bge-    cr7,ffc23a98 <rtems_rfs_dir_read+0x31c><== NEVER TAKEN
ffc23a84:	2f 95 00 00 	cmpwi   cr7,r21,0                              
ffc23a88:	41 9e 00 10 	beq-    cr7,ffc23a98 <rtems_rfs_dir_read+0x31c><== NEVER TAKEN
ffc23a8c:	81 3b 00 14 	lwz     r9,20(r27)                             
ffc23a90:	7f 95 48 40 	cmplw   cr7,r21,r9                             
ffc23a94:	40 9d 00 40 	ble-    cr7,ffc23ad4 <rtems_rfs_dir_read+0x358><== ALWAYS TAKEN
      {                                                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))               
ffc23a98:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc23a9c:	3c 80 80 00 	lis     r4,-32768                              <== NOT EXECUTED
ffc23aa0:	4b ff 43 fd 	bl      ffc17e9c <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;                                                     
ffc23aa4:	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))               
ffc23aa8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc23aac:	41 9e ff 7c 	beq+    cr7,ffc23a28 <rtems_rfs_dir_read+0x2ac><== NOT EXECUTED
          printf ("rtems-rfs: dir-read: "                             
ffc23ab0:	80 98 00 08 	lwz     r4,8(r24)                              <== NOT EXECUTED
ffc23ab4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc23ab8:	80 e1 00 1c 	lwz     r7,28(r1)                              <== NOT EXECUTED
ffc23abc:	7e e5 bb 78 	mr      r5,r23                                 <== NOT EXECUTED
ffc23ac0:	7e a6 ab 78 	mr      r6,r21                                 <== NOT EXECUTED
ffc23ac4:	38 63 db d0 	addi    r3,r3,-9264                            <== NOT EXECUTED
ffc23ac8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc23acc:	48 00 6f cd 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc23ad0:	4b ff ff 58 	b       ffc23a28 <rtems_rfs_dir_read+0x2ac>    <== NOT EXECUTED
                  rtems_rfs_inode_ino (dir), elength, eino, map.bpos.boff);
        rc = EIO;                                                     
        break;                                                        
      }                                                               
                                                                      
      memset (dirent, 0, sizeof (struct dirent));                     
ffc23ad4:	7e c3 b3 78 	mr      r3,r22                                 
ffc23ad8:	38 80 00 00 	li      r4,0                                   
ffc23adc:	38 a0 01 18 	li      r5,280                                 
ffc23ae0:	48 00 6d 5d 	bl      ffc2a83c <memset>                      
      dirent->d_off = offset;                                         
      dirent->d_reclen = sizeof (struct dirent);                      
                                                                      
      *length += elength;                                             
ffc23ae4:	81 3a 00 00 	lwz     r9,0(r26)                              
        break;                                                        
      }                                                               
                                                                      
      memset (dirent, 0, sizeof (struct dirent));                     
      dirent->d_off = offset;                                         
      dirent->d_reclen = sizeof (struct dirent);                      
ffc23ae8:	39 40 01 18 	li      r10,280                                
        rc = EIO;                                                     
        break;                                                        
      }                                                               
                                                                      
      memset (dirent, 0, sizeof (struct dirent));                     
      dirent->d_off = offset;                                         
ffc23aec:	93 d6 00 08 	stw     r30,8(r22)                             
      dirent->d_reclen = sizeof (struct dirent);                      
                                                                      
      *length += elength;                                             
ffc23af0:	7d 37 4a 14 	add     r9,r23,r9                              
        break;                                                        
      }                                                               
                                                                      
      memset (dirent, 0, sizeof (struct dirent));                     
      dirent->d_off = offset;                                         
      dirent->d_reclen = sizeof (struct dirent);                      
ffc23af4:	b1 56 00 10 	sth     r10,16(r22)                            
        rc = EIO;                                                     
        break;                                                        
      }                                                               
                                                                      
      memset (dirent, 0, sizeof (struct dirent));                     
      dirent->d_off = offset;                                         
ffc23af8:	93 f6 00 0c 	stw     r31,12(r22)                            
      dirent->d_reclen = sizeof (struct dirent);                      
                                                                      
      *length += elength;                                             
ffc23afc:	91 3a 00 00 	stw     r9,0(r26)                              
                                                                      
      remaining = rtems_rfs_fs_block_size (fs) - (map.bpos.boff + elength);
ffc23b00:	81 5b 00 08 	lwz     r10,8(r27)                             
ffc23b04:	7d 59 50 50 	subf    r10,r25,r10                            
ffc23b08:	7d 57 50 50 	subf    r10,r23,r10                            
                                                                      
      if (remaining <= RTEMS_RFS_DIR_ENTRY_SIZE)                      
ffc23b0c:	2f 8a 00 0a 	cmpwi   cr7,r10,10                             
ffc23b10:	41 9d 00 0c 	bgt-    cr7,ffc23b1c <rtems_rfs_dir_read+0x3a0><== ALWAYS TAKEN
        *length += remaining;                                         
ffc23b14:	7d 2a 4a 14 	add     r9,r10,r9                              <== NOT EXECUTED
ffc23b18:	91 3a 00 00 	stw     r9,0(r26)                              <== NOT EXECUTED
                                                                      
      elength -= RTEMS_RFS_DIR_ENTRY_SIZE;                            
ffc23b1c:	3a f7 ff f6 	addi    r23,r23,-10                            
ffc23b20:	2f 97 00 ff 	cmpwi   cr7,r23,255                            
ffc23b24:	40 9d 00 08 	ble-    cr7,ffc23b2c <rtems_rfs_dir_read+0x3b0><== ALWAYS TAKEN
ffc23b28:	3a e0 00 ff 	li      r23,255                                <== NOT EXECUTED
      if (elength > NAME_MAX)                                         
        elength = NAME_MAX;                                           
                                                                      
      memcpy (dirent->d_name, entry + RTEMS_RFS_DIR_ENTRY_SIZE, elength);
ffc23b2c:	3b f6 00 14 	addi    r31,r22,20                             
ffc23b30:	38 9c 00 0a 	addi    r4,r28,10                              
ffc23b34:	7e e5 bb 78 	mr      r5,r23                                 
ffc23b38:	7f e3 fb 78 	mr      r3,r31                                 
ffc23b3c:	48 00 6a d1 	bl      ffc2a60c <memcpy>                      
                                                                      
      dirent->d_ino = rtems_rfs_dir_entry_ino (entry);                
ffc23b40:	88 fc 00 00 	lbz     r7,0(r28)                              
ffc23b44:	89 1c 00 01 	lbz     r8,1(r28)                              
      dirent->d_namlen = elength;                                     
                                                                      
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                 
ffc23b48:	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);                
ffc23b4c:	89 5c 00 03 	lbz     r10,3(r28)                             
ffc23b50:	54 e7 c0 0e 	rlwinm  r7,r7,24,0,7                           
ffc23b54:	89 3c 00 02 	lbz     r9,2(r28)                              
ffc23b58:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          
ffc23b5c:	7c e8 43 78 	or      r8,r7,r8                               
      dirent->d_namlen = elength;                                     
ffc23b60:	b2 f6 00 12 	sth     r23,18(r22)                            
      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);                
ffc23b64:	7d 0a 53 78 	or      r10,r8,r10                             
ffc23b68:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc23b6c:	7d 49 4b 78 	or      r9,r10,r9                              
ffc23b70:	91 36 00 00 	stw     r9,0(r22)                              
      dirent->d_namlen = elength;                                     
                                                                      
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_DIR_READ))                 
ffc23b74:	3c 80 80 00 	lis     r4,-32768                              
ffc23b78:	4b ff 43 25 	bl      ffc17e9c <rtems_rfs_trace>             
ffc23b7c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc23b80:	41 9e fe a8 	beq+    cr7,ffc23a28 <rtems_rfs_dir_read+0x2ac><== ALWAYS TAKEN
        printf ("rtems-rfs: dir-read: found off:%" PRIooff_t " ino:%ld name=%s\n",
ffc23b84:	80 b6 00 08 	lwz     r5,8(r22)                              <== NOT EXECUTED
ffc23b88:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc23b8c:	80 d6 00 0c 	lwz     r6,12(r22)                             <== NOT EXECUTED
ffc23b90:	7f e8 fb 78 	mr      r8,r31                                 <== NOT EXECUTED
ffc23b94:	80 f6 00 00 	lwz     r7,0(r22)                              <== NOT EXECUTED
ffc23b98:	38 63 dc 14 	addi    r3,r3,-9196                            <== NOT EXECUTED
ffc23b9c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc23ba0:	48 00 6e f9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc23ba4:	4b ff fe 84 	b       ffc23a28 <rtems_rfs_dir_read+0x2ac>    <== NOT EXECUTED
                                                                      

ffc24248 <rtems_rfs_file_close>: } int rtems_rfs_file_close (rtems_rfs_file_system* fs, rtems_rfs_file_handle* handle) {
ffc24248:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc2424c:	7d 80 00 26 	mfcr    r12                                    
ffc24250:	7c 08 02 a6 	mflr    r0                                     
ffc24254:	93 a1 00 14 	stw     r29,20(r1)                             
ffc24258:	7c 7d 1b 78 	mr      r29,r3                                 
  int rrc;                                                            
  int rc;                                                             
                                                                      
  rrc = 0;                                                            
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))                   
ffc2425c:	38 60 00 10 	li      r3,16                                  
}                                                                     
                                                                      
int                                                                   
rtems_rfs_file_close (rtems_rfs_file_system* fs,                      
                      rtems_rfs_file_handle* handle)                  
{                                                                     
ffc24260:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc24264:	7c 9f 23 78 	mr      r31,r4                                 
  int rrc;                                                            
  int rc;                                                             
                                                                      
  rrc = 0;                                                            
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))                   
ffc24268:	38 80 00 00 	li      r4,0                                   
}                                                                     
                                                                      
int                                                                   
rtems_rfs_file_close (rtems_rfs_file_system* fs,                      
                      rtems_rfs_file_handle* handle)                  
{                                                                     
ffc2426c:	90 01 00 24 	stw     r0,36(r1)                              
ffc24270:	93 61 00 0c 	stw     r27,12(r1)                             
ffc24274:	93 81 00 10 	stw     r28,16(r1)                             
ffc24278:	93 c1 00 18 	stw     r30,24(r1)                             
ffc2427c:	91 81 00 08 	stw     r12,8(r1)                              
  int rrc;                                                            
  int rc;                                                             
                                                                      
  rrc = 0;                                                            
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))                   
ffc24280:	4b ff 3c 1d 	bl      ffc17e9c <rtems_rfs_trace>             
ffc24284:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24288:	40 9e 02 5c 	bne-    cr7,ffc244e4 <rtems_rfs_file_close+0x29c><== NEVER TAKEN
    printf ("rtems-rfs: file-close: entry: ino=%" PRId32 "\n",        
            handle->shared->inode.ino);                               
                                                                      
  if (handle->shared->references > 0)                                 
ffc2428c:	80 9f 00 1c 	lwz     r4,28(r31)                             
ffc24290:	81 24 00 08 	lwz     r9,8(r4)                               
ffc24294:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc24298:	40 9d 00 10 	ble-    cr7,ffc242a8 <rtems_rfs_file_close+0x60><== NEVER TAKEN
    handle->shared->references--;                                     
ffc2429c:	39 29 ff ff 	addi    r9,r9,-1                               
ffc242a0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc242a4:	91 24 00 08 	stw     r9,8(r4)                               
                                                                      
  if (handle->shared->references == 0)                                
ffc242a8:	40 9e 01 e0 	bne-    cr7,ffc24488 <rtems_rfs_file_close+0x240><== NEVER TAKEN
  {                                                                   
    if (!rtems_rfs_inode_is_loaded (&handle->shared->inode))          
ffc242ac:	81 24 00 18 	lwz     r9,24(r4)                              
ffc242b0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc242b4:	41 9e 03 08 	beq-    cr7,ffc245bc <rtems_rfs_file_close+0x374><== ALWAYS TAKEN
    if (rrc == 0)                                                     
    {                                                                 
      /*                                                              
       * @todo This could be clever and only update if different.     
       */                                                             
      rtems_rfs_inode_set_atime (&handle->shared->inode,              
ffc242b8:	81 44 00 8c 	lwz     r10,140(r4)                            
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);                  
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc242bc:	39 00 00 01 	li      r8,1                                   
 */                                                                   
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);                  
ffc242c0:	55 47 46 3e 	rlwinm  r7,r10,8,24,31                         
ffc242c4:	98 e9 00 10 	stb     r7,16(r9)                              
ffc242c8:	55 46 84 3e 	rlwinm  r6,r10,16,16,31                        
ffc242cc:	55 47 c2 3e 	rlwinm  r7,r10,24,8,31                         
ffc242d0:	81 24 00 18 	lwz     r9,24(r4)                              
ffc242d4:	98 c9 00 11 	stb     r6,17(r9)                              
ffc242d8:	81 24 00 18 	lwz     r9,24(r4)                              
ffc242dc:	98 e9 00 12 	stb     r7,18(r9)                              
ffc242e0:	81 24 00 18 	lwz     r9,24(r4)                              
ffc242e4:	99 49 00 13 	stb     r10,19(r9)                             
                                 handle->shared->atime);              
      rtems_rfs_inode_set_mtime (&handle->shared->inode,              
ffc242e8:	81 5f 00 1c 	lwz     r10,28(r31)                            
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc242ec:	99 04 00 1c 	stb     r8,28(r4)                              
ffc242f0:	81 2a 00 90 	lwz     r9,144(r10)                            
 */                                                                   
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);                  
ffc242f4:	80 ea 00 18 	lwz     r7,24(r10)                             
ffc242f8:	55 26 46 3e 	rlwinm  r6,r9,8,24,31                          
ffc242fc:	98 c7 00 14 	stb     r6,20(r7)                              
ffc24300:	55 25 84 3e 	rlwinm  r5,r9,16,16,31                         
ffc24304:	55 26 c2 3e 	rlwinm  r6,r9,24,8,31                          
ffc24308:	80 ea 00 18 	lwz     r7,24(r10)                             
ffc2430c:	98 a7 00 15 	stb     r5,21(r7)                              
ffc24310:	80 ea 00 18 	lwz     r7,24(r10)                             
ffc24314:	98 c7 00 16 	stb     r6,22(r7)                              
ffc24318:	80 ea 00 18 	lwz     r7,24(r10)                             
ffc2431c:	99 27 00 17 	stb     r9,23(r7)                              
                                 handle->shared->mtime);              
      rtems_rfs_inode_set_ctime (&handle->shared->inode,              
ffc24320:	81 3f 00 1c 	lwz     r9,28(r31)                             
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc24324:	99 0a 00 1c 	stb     r8,28(r10)                             
ffc24328:	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);                  
ffc2432c:	80 e9 00 18 	lwz     r7,24(r9)                              
ffc24330:	55 46 46 3e 	rlwinm  r6,r10,8,24,31                         
ffc24334:	98 c7 00 18 	stb     r6,24(r7)                              
ffc24338:	55 45 84 3e 	rlwinm  r5,r10,16,16,31                        
ffc2433c:	55 46 c2 3e 	rlwinm  r6,r10,24,8,31                         
ffc24340:	80 e9 00 18 	lwz     r7,24(r9)                              
ffc24344:	98 a7 00 19 	stb     r5,25(r7)                              
ffc24348:	80 e9 00 18 	lwz     r7,24(r9)                              
ffc2434c:	98 c7 00 1a 	stb     r6,26(r7)                              
ffc24350:	80 e9 00 18 	lwz     r7,24(r9)                              
ffc24354:	99 47 00 1b 	stb     r10,27(r7)                             
                                 handle->shared->ctime);              
      if (!rtems_rfs_block_size_equal (&handle->shared->size,         
ffc24358:	80 9f 00 1c 	lwz     r4,28(r31)                             
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc2435c:	99 09 00 1c 	stb     r8,28(r9)                              
ffc24360:	81 44 00 3c 	lwz     r10,60(r4)                             
ffc24364:	81 24 00 84 	lwz     r9,132(r4)                             
ffc24368:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc2436c:	81 44 00 88 	lwz     r10,136(r4)                            
ffc24370:	41 9e 02 34 	beq-    cr7,ffc245a4 <rtems_rfs_file_close+0x35c><== 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);                       
  map->dirty = true;                                                  
ffc24374:	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);                       
ffc24378:	91 24 00 3c 	stw     r9,60(r4)                              <== NOT EXECUTED
ffc2437c:	2e 1e 00 00 	cmpwi   cr4,r30,0                              <== NOT EXECUTED
  map->dirty = true;                                                  
ffc24380:	39 20 00 01 	li      r9,1                                   <== 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);                       
ffc24384:	91 44 00 40 	stw     r10,64(r4)                             <== NOT EXECUTED
  map->dirty = true;                                                  
ffc24388:	99 24 00 34 	stb     r9,52(r4)                              <== 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);        
ffc2438c:	7f a3 eb 78 	mr      r3,r29                                 
ffc24390:	38 84 00 34 	addi    r4,r4,52                               
ffc24394:	4b ff ca b5 	bl      ffc20e48 <rtems_rfs_block_map_close>   
    if (rc > 0)                                                       
ffc24398:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc2439c:	40 81 00 1c 	ble-    ffc243b8 <rtems_rfs_file_close+0x170>  <== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))               
ffc243a0:	38 60 00 10 	li      r3,16                                  <== NOT EXECUTED
ffc243a4:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc243a8:	4b ff 3a f5 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc243ac:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc243b0:	40 9e 01 c0 	bne-    cr7,ffc24570 <rtems_rfs_file_close+0x328><== NOT EXECUTED
        printf ("rtems-rfs: file-close: map close error: ino=%" PRId32 ": %d: %s\n",
                handle->shared->inode.ino, rc, strerror (rc));        
      if (rrc == 0)                                                   
ffc243b4:	41 92 01 7c 	beq-    cr4,ffc24530 <rtems_rfs_file_close+0x2e8><== NOT EXECUTED
        rrc = rc;                                                     
    }                                                                 
                                                                      
    rc = rtems_rfs_inode_close (fs, &handle->shared->inode);          
ffc243b8:	80 9f 00 1c 	lwz     r4,28(r31)                             
ffc243bc:	7f a3 eb 78 	mr      r3,r29                                 
ffc243c0:	38 84 00 0c 	addi    r4,r4,12                               
ffc243c4:	4b ff 1c 65 	bl      ffc16028 <rtems_rfs_inode_close>       
    if (rc > 0)                                                       
ffc243c8:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc243cc:	40 81 00 1c 	ble-    ffc243e8 <rtems_rfs_file_close+0x1a0>  <== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))               
ffc243d0:	38 60 00 10 	li      r3,16                                  <== NOT EXECUTED
ffc243d4:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc243d8:	4b ff 3a c5 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc243dc:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc243e0:	40 9e 01 5c 	bne-    cr7,ffc2453c <rtems_rfs_file_close+0x2f4><== NOT EXECUTED
        printf ("rtems-rfs: file-close: inode close error: ino=%" PRId32 ": %d: %s\n",
                handle->shared->inode.ino, rc, strerror (rc));        
      if (rrc == 0)                                                   
ffc243e4:	41 92 01 1c 	beq-    cr4,ffc24500 <rtems_rfs_file_close+0x2b8><== NOT EXECUTED
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
ffc243e8:	80 7f 00 1c 	lwz     r3,28(r31)                             
ffc243ec:	4b ff 9d 55 	bl      ffc1e140 <_Chain_Extract>              
        rrc = rc;                                                     
    }                                                                 
                                                                      
    rtems_chain_extract (&handle->shared->link);                      
    free (handle->shared);                                            
ffc243f0:	80 7f 00 1c 	lwz     r3,28(r31)                             
ffc243f4:	4b fe 5f 09 	bl      ffc0a2fc <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);                       
ffc243f8:	7f a3 eb 78 	mr      r3,r29                                 
ffc243fc:	38 9f 00 04 	addi    r4,r31,4                               
ffc24400:	4b ff d9 05 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc24404:	39 20 00 00 	li      r9,0                                   
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);                       
  handle->dirty = false;                                              
ffc24408:	39 40 00 00 	li      r10,0                                  
  handle->bnum  = 0;                                                  
ffc2440c:	91 3f 00 08 	stw     r9,8(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);                       
  handle->dirty = false;                                              
ffc24410:	99 5f 00 04 	stb     r10,4(r31)                             
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc24414:	91 3f 00 0c 	stw     r9,12(r31)                             
                                                                      
  rc = rtems_rfs_buffer_handle_close (fs, &handle->buffer);           
  if ((rrc == 0) && (rc > 0))                                         
    rrc = rc;                                                         
                                                                      
  if (rrc > 0)                                                        
ffc24418:	40 91 00 94 	ble-    cr4,ffc244ac <rtems_rfs_file_close+0x264><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))                 
ffc2441c:	38 60 00 10 	li      r3,16                                  <== NOT EXECUTED
ffc24420:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc24424:	4b ff 3a 79 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc24428:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc2442c:	41 be 00 80 	beq+    cr7,ffc244ac <rtems_rfs_file_close+0x264><== NOT EXECUTED
      printf ("rtems-rfs: file-close: result: %d: %s\n", rrc, strerror (rrc));
ffc24430:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc24434:	48 00 77 e1 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc24438:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc2443c:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc24440:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc24444:	38 63 de 6c 	addi    r3,r3,-8596                            <== NOT EXECUTED
ffc24448:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2444c:	48 00 66 4d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
  }                                                                   
                                                                      
  free (handle);                                                      
ffc24450:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc24454:	4b fe 5e a9 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
                                                                      
  return rrc;                                                         
}                                                                     
ffc24458:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
ffc2445c:	81 81 00 08 	lwz     r12,8(r1)                              <== NOT EXECUTED
ffc24460:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc24464:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc24468:	83 61 00 0c 	lwz     r27,12(r1)                             <== NOT EXECUTED
ffc2446c:	83 81 00 10 	lwz     r28,16(r1)                             <== NOT EXECUTED
ffc24470:	7d 80 81 20 	mtcrf   8,r12                                  <== NOT EXECUTED
ffc24474:	83 a1 00 14 	lwz     r29,20(r1)                             <== NOT EXECUTED
ffc24478:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc2447c:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc24480:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc24484:	4e 80 00 20 	blr                                            <== 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);                       
ffc24488:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc2448c:	38 9f 00 04 	addi    r4,r31,4                               <== NOT EXECUTED
ffc24490:	4b ff d8 75 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc24494:	39 20 00 00 	li      r9,0                                   <== 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);                       
  handle->dirty = false;                                              
ffc24498:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc2449c:	91 3f 00 08 	stw     r9,8(r31)                              <== NOT EXECUTED
                      rtems_rfs_file_handle* handle)                  
{                                                                     
  int rrc;                                                            
  int rc;                                                             
                                                                      
  rrc = 0;                                                            
ffc244a0:	3b c0 00 00 	li      r30,0                                  <== 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);                       
  handle->dirty = false;                                              
ffc244a4:	99 5f 00 04 	stb     r10,4(r31)                             <== NOT EXECUTED
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc244a8:	91 3f 00 0c 	stw     r9,12(r31)                             <== NOT EXECUTED
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))                 
      printf ("rtems-rfs: file-close: result: %d: %s\n", rrc, strerror (rrc));
  }                                                                   
                                                                      
  free (handle);                                                      
ffc244ac:	7f e3 fb 78 	mr      r3,r31                                 
ffc244b0:	4b fe 5e 4d 	bl      ffc0a2fc <free>                        
                                                                      
  return rrc;                                                         
}                                                                     
ffc244b4:	80 01 00 24 	lwz     r0,36(r1)                              
ffc244b8:	81 81 00 08 	lwz     r12,8(r1)                              
ffc244bc:	7f c3 f3 78 	mr      r3,r30                                 
ffc244c0:	7c 08 03 a6 	mtlr    r0                                     
ffc244c4:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc244c8:	83 81 00 10 	lwz     r28,16(r1)                             
ffc244cc:	7d 80 81 20 	mtcrf   8,r12                                  
ffc244d0:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc244d4:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc244d8:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc244dc:	38 21 00 20 	addi    r1,r1,32                               
ffc244e0:	4e 80 00 20 	blr                                            
                                                                      
  rrc = 0;                                                            
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_CLOSE))                   
    printf ("rtems-rfs: file-close: entry: ino=%" PRId32 "\n",        
            handle->shared->inode.ino);                               
ffc244e4:	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",        
ffc244e8:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc244ec:	38 63 dd cc 	addi    r3,r3,-8756                            <== NOT EXECUTED
ffc244f0:	80 89 00 14 	lwz     r4,20(r9)                              <== NOT EXECUTED
ffc244f4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc244f8:	48 00 65 a1 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc244fc:	4b ff fd 90 	b       ffc2428c <rtems_rfs_file_close+0x44>   <== NOT EXECUTED
ffc24500:	80 7f 00 1c 	lwz     r3,28(r31)                             <== NOT EXECUTED
ffc24504:	4b ff 9c 3d 	bl      ffc1e140 <_Chain_Extract>              <== NOT EXECUTED
      if (rrc == 0)                                                   
        rrc = rc;                                                     
    }                                                                 
                                                                      
    rtems_chain_extract (&handle->shared->link);                      
    free (handle->shared);                                            
ffc24508:	80 7f 00 1c 	lwz     r3,28(r31)                             <== NOT EXECUTED
ffc2450c:	4b fe 5d f1 	bl      ffc0a2fc <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);                       
ffc24510:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc24514:	38 9f 00 04 	addi    r4,r31,4                               <== NOT EXECUTED
ffc24518:	4b ff d7 ed 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
ffc2451c:	9b df 00 04 	stb     r30,4(r31)                             <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc24520:	93 df 00 08 	stw     r30,8(r31)                             <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc24524:	93 df 00 0c 	stw     r30,12(r31)                            <== NOT EXECUTED
ffc24528:	7f 9e e3 78 	mr      r30,r28                                <== NOT EXECUTED
ffc2452c:	4b ff fe f0 	b       ffc2441c <rtems_rfs_file_close+0x1d4>  <== NOT EXECUTED
ffc24530:	7f 9e e3 78 	mr      r30,r28                                <== NOT EXECUTED
ffc24534:	2e 1c 00 00 	cmpwi   cr4,r28,0                              <== NOT EXECUTED
ffc24538:	4b ff fe 80 	b       ffc243b8 <rtems_rfs_file_close+0x170>  <== 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",
                handle->shared->inode.ino, rc, strerror (rc));        
ffc2453c:	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",
ffc24540:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc24544:	83 69 00 14 	lwz     r27,20(r9)                             <== NOT EXECUTED
ffc24548:	48 00 76 cd 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc2454c:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc24550:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc24554:	38 63 de 30 	addi    r3,r3,-8656                            <== NOT EXECUTED
ffc24558:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc2455c:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc24560:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc24564:	48 00 65 35 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
                handle->shared->inode.ino, rc, strerror (rc));        
      if (rrc == 0)                                                   
ffc24568:	41 b2 ff 98 	beq-    cr4,ffc24500 <rtems_rfs_file_close+0x2b8><== NOT EXECUTED
ffc2456c:	4b ff fe 7c 	b       ffc243e8 <rtems_rfs_file_close+0x1a0>  <== 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",
                handle->shared->inode.ino, rc, strerror (rc));        
ffc24570:	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",
ffc24574:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc24578:	83 69 00 14 	lwz     r27,20(r9)                             <== NOT EXECUTED
ffc2457c:	48 00 76 99 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc24580:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc24584:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc24588:	38 63 dd f4 	addi    r3,r3,-8716                            <== NOT EXECUTED
ffc2458c:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc24590:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc24594:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc24598:	48 00 65 01 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
                handle->shared->inode.ino, rc, strerror (rc));        
      if (rrc == 0)                                                   
ffc2459c:	40 b2 fe 1c 	bne-    cr4,ffc243b8 <rtems_rfs_file_close+0x170><== NOT EXECUTED
ffc245a0:	4b ff ff 90 	b       ffc24530 <rtems_rfs_file_close+0x2e8>  <== NOT EXECUTED
                                 handle->shared->atime);              
      rtems_rfs_inode_set_mtime (&handle->shared->inode,              
                                 handle->shared->mtime);              
      rtems_rfs_inode_set_ctime (&handle->shared->inode,              
                                 handle->shared->ctime);              
      if (!rtems_rfs_block_size_equal (&handle->shared->size,         
ffc245a4:	81 04 00 40 	lwz     r8,64(r4)                              
ffc245a8:	7f 8a 40 00 	cmpw    cr7,r10,r8                             
ffc245ac:	40 9e fd c8 	bne+    cr7,ffc24374 <rtems_rfs_file_close+0x12c><== NEVER TAKEN
ffc245b0:	3b c0 00 00 	li      r30,0                                  
ffc245b4:	2e 1e 00 00 	cmpwi   cr4,r30,0                              
ffc245b8:	4b ff fd d4 	b       ffc2438c <rtems_rfs_file_close+0x144>  
    handle->shared->references--;                                     
                                                                      
  if (handle->shared->references == 0)                                
  {                                                                   
    if (!rtems_rfs_inode_is_loaded (&handle->shared->inode))          
      rrc = rtems_rfs_inode_load (fs, &handle->shared->inode);        
ffc245bc:	38 84 00 0c 	addi    r4,r4,12                               
ffc245c0:	7f a3 eb 78 	mr      r3,r29                                 
ffc245c4:	4b ff 17 15 	bl      ffc15cd8 <rtems_rfs_inode_load>        
ffc245c8:	80 9f 00 1c 	lwz     r4,28(r31)                             
                                                                      
    if (rrc == 0)                                                     
ffc245cc:	2e 03 00 00 	cmpwi   cr4,r3,0                               
ffc245d0:	7c 7e 1b 78 	mr      r30,r3                                 
ffc245d4:	40 92 fd b8 	bne+    cr4,ffc2438c <rtems_rfs_file_close+0x144><== NEVER TAKEN
ffc245d8:	81 24 00 18 	lwz     r9,24(r4)                              
ffc245dc:	4b ff fc dc 	b       ffc242b8 <rtems_rfs_file_close+0x70>   
                                                                      

ffc2505c <rtems_rfs_file_get_shared>:
ffc2505c:	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 ));            
ffc25060:	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))               
ffc25064:	7f 89 18 00 	cmpw    cr7,r9,r3                              
ffc25068:	40 be 00 14 	bne+    cr7,ffc2507c <rtems_rfs_file_get_shared+0x20>
ffc2506c:	48 00 00 24 	b       ffc25090 <rtems_rfs_file_get_shared+0x34>
    if (shared->inode.ino == ino)                                     
      return shared;                                                  
    node = rtems_chain_next (node);                                   
  }                                                                   
  return NULL;                                                        
}                                                                     
ffc25070:	81 29 00 00 	lwz     r9,0(r9)                               
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))               
ffc25074:	7f 89 18 00 	cmpw    cr7,r9,r3                              
ffc25078:	41 9e 00 18 	beq-    cr7,ffc25090 <rtems_rfs_file_get_shared+0x34><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_file_shared* shared;                                    
    shared = (rtems_rfs_file_shared*) node;                           
    if (shared->inode.ino == ino)                                     
ffc2507c:	81 49 00 14 	lwz     r10,20(r9)                             
ffc25080:	7f 8a 20 00 	cmpw    cr7,r10,r4                             
ffc25084:	40 9e ff ec 	bne+    cr7,ffc25070 <rtems_rfs_file_get_shared+0x14>
      return shared;                                                  
    node = rtems_chain_next (node);                                   
  }                                                                   
  return NULL;                                                        
}                                                                     
ffc25088:	7d 23 4b 78 	mr      r3,r9                                  
ffc2508c:	4e 80 00 20 	blr                                            
    shared = (rtems_rfs_file_shared*) node;                           
    if (shared->inode.ino == ino)                                     
      return shared;                                                  
    node = rtems_chain_next (node);                                   
  }                                                                   
  return NULL;                                                        
ffc25090:	38 60 00 00 	li      r3,0                                   
ffc25094:	4e 80 00 20 	blr                                            
                                                                      

ffc24838 <rtems_rfs_file_io_end>: int rtems_rfs_file_io_end (rtems_rfs_file_handle* handle, size_t size, bool read) {
ffc24838:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc2483c:	7d 80 00 26 	mfcr    r12                                    
ffc24840:	7c 08 02 a6 	mflr    r0                                     
ffc24844:	93 a1 00 14 	stw     r29,20(r1)                             
ffc24848:	7c 9d 23 78 	mr      r29,r4                                 
  bool atime;                                                         
  bool mtime;                                                         
  bool length;                                                        
  int  rc = 0;                                                        
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc2484c:	38 80 00 00 	li      r4,0                                   
                                                                      
int                                                                   
rtems_rfs_file_io_end (rtems_rfs_file_handle* handle,                 
                       size_t                 size,                   
                       bool                   read)                   
{                                                                     
ffc24850:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc24854:	7c 7f 1b 78 	mr      r31,r3                                 
  bool atime;                                                         
  bool mtime;                                                         
  bool length;                                                        
  int  rc = 0;                                                        
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc24858:	38 60 00 20 	li      r3,32                                  
                                                                      
int                                                                   
rtems_rfs_file_io_end (rtems_rfs_file_handle* handle,                 
                       size_t                 size,                   
                       bool                   read)                   
{                                                                     
ffc2485c:	93 c1 00 18 	stw     r30,24(r1)                             
ffc24860:	7c be 2b 78 	mr      r30,r5                                 
ffc24864:	2e 1e 00 00 	cmpwi   cr4,r30,0                              
ffc24868:	90 01 00 24 	stw     r0,36(r1)                              
ffc2486c:	93 61 00 0c 	stw     r27,12(r1)                             
ffc24870:	93 81 00 10 	stw     r28,16(r1)                             
ffc24874:	91 81 00 08 	stw     r12,8(r1)                              
  bool atime;                                                         
  bool mtime;                                                         
  bool length;                                                        
  int  rc = 0;                                                        
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc24878:	4b ff 36 25 	bl      ffc17e9c <rtems_rfs_trace>             
ffc2487c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24880:	41 9e 00 24 	beq-    cr7,ffc248a4 <rtems_rfs_file_io_end+0x6c><== ALWAYS TAKEN
    printf ("rtems-rfs: file-io:   end: %s size=%zu\n",               
ffc24884:	40 92 00 b0 	bne-    cr4,ffc24934 <rtems_rfs_file_io_end+0xfc><== NOT EXECUTED
ffc24888:	3c 80 ff c4 	lis     r4,-60                                 <== NOT EXECUTED
ffc2488c:	38 84 de 94 	addi    r4,r4,-8556                            <== NOT EXECUTED
ffc24890:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc24894:	38 63 df 50 	addi    r3,r3,-8368                            <== NOT EXECUTED
ffc24898:	7f a5 eb 78 	mr      r5,r29                                 <== NOT EXECUTED
ffc2489c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc248a0:	48 00 61 f9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            read ? "read" : "write", size);                           
                                                                      
  if (rtems_rfs_buffer_handle_has_block (&handle->buffer))            
ffc248a4:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc248a8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc248ac:	41 9e 00 94 	beq-    cr7,ffc24940 <rtems_rfs_file_io_end+0x108><== NEVER TAKEN
  {                                                                   
    if (!read)                                                        
      rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));   
    rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle), 
ffc248b0:	81 3f 00 1c 	lwz     r9,28(r31)                             
    printf ("rtems-rfs: file-io:   end: %s size=%zu\n",               
            read ? "read" : "write", size);                           
                                                                      
  if (rtems_rfs_buffer_handle_has_block (&handle->buffer))            
  {                                                                   
    if (!read)                                                        
ffc248b4:	40 92 02 3c 	bne-    cr4,ffc24af0 <rtems_rfs_file_io_end+0x2b8>
      rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));   
ffc248b8:	39 40 00 01 	li      r10,1                                  
    rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle), 
ffc248bc:	80 69 00 98 	lwz     r3,152(r9)                             
            read ? "read" : "write", size);                           
                                                                      
  if (rtems_rfs_buffer_handle_has_block (&handle->buffer))            
  {                                                                   
    if (!read)                                                        
      rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));   
ffc248c0:	99 5f 00 04 	stb     r10,4(r31)                             
    rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle), 
ffc248c4:	38 9f 00 04 	addi    r4,r31,4                               
ffc248c8:	4b ff d4 3d 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
                                          rtems_rfs_file_buffer (handle));
    if (rc > 0)                                                       
ffc248cc:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc248d0:	40 81 00 74 	ble-    ffc24944 <rtems_rfs_file_io_end+0x10c> <== ALWAYS TAKEN
    {                                                                 
      printf (                                                        
ffc248d4:	3f e0 ff c4 	lis     r31,-60                                <== NOT EXECUTED
ffc248d8:	3b ff de 94 	addi    r31,r31,-8556                          <== NOT EXECUTED
ffc248dc:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc248e0:	48 00 73 35 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc248e4:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc248e8:	7c 67 1b 78 	mr      r7,r3                                  <== NOT EXECUTED
ffc248ec:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc248f0:	38 63 df 78 	addi    r3,r3,-8328                            <== NOT EXECUTED
ffc248f4:	7f a5 eb 78 	mr      r5,r29                                 <== NOT EXECUTED
ffc248f8:	7f c6 f3 78 	mr      r6,r30                                 <== NOT EXECUTED
ffc248fc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc24900:	48 00 61 99 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    handle->shared->size.offset =                                     
      rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle));  
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc24904:	80 01 00 24 	lwz     r0,36(r1)                              
ffc24908:	7f c3 f3 78 	mr      r3,r30                                 
ffc2490c:	81 81 00 08 	lwz     r12,8(r1)                              
ffc24910:	7c 08 03 a6 	mtlr    r0                                     
ffc24914:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc24918:	83 81 00 10 	lwz     r28,16(r1)                             
ffc2491c:	7d 83 81 20 	mtcrf   56,r12                                 
ffc24920:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc24924:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc24928:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc2492c:	38 21 00 20 	addi    r1,r1,32                               
ffc24930:	4e 80 00 20 	blr                                            
  bool mtime;                                                         
  bool length;                                                        
  int  rc = 0;                                                        
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
    printf ("rtems-rfs: file-io:   end: %s size=%zu\n",               
ffc24934:	3c 80 ff c4 	lis     r4,-60                                 <== NOT EXECUTED
ffc24938:	38 84 c7 60 	addi    r4,r4,-14496                           <== NOT EXECUTED
ffc2493c:	4b ff ff 54 	b       ffc24890 <rtems_rfs_file_io_end+0x58>  <== NOT EXECUTED
                       bool                   read)                   
{                                                                     
  bool atime;                                                         
  bool mtime;                                                         
  bool length;                                                        
  int  rc = 0;                                                        
ffc24940:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
   * the size with the new length. The map holds the block count.     
   */                                                                 
  handle->bpos.boff += size;                                          
                                                                      
  if (handle->bpos.boff >=                                            
      rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))           
ffc24944:	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;                                          
ffc24948:	81 1f 00 14 	lwz     r8,20(r31)                             
                                                                      
  if (handle->bpos.boff >=                                            
      rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))           
ffc2494c:	81 49 00 98 	lwz     r10,152(r9)                            
   * 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;                                          
ffc24950:	7f bd 42 14 	add     r29,r29,r8                             
                                                                      
  if (handle->bpos.boff >=                                            
      rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))           
ffc24954:	81 4a 00 08 	lwz     r10,8(r10)                             
   * 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;                                          
ffc24958:	93 bf 00 14 	stw     r29,20(r31)                            
                                                                      
  if (handle->bpos.boff >=                                            
ffc2495c:	7f 9d 50 40 	cmplw   cr7,r29,r10                            
ffc24960:	41 9c 00 18 	blt-    cr7,ffc24978 <rtems_rfs_file_io_end+0x140>
      rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))           
  {                                                                   
    handle->bpos.bno++;                                               
ffc24964:	81 1f 00 10 	lwz     r8,16(r31)                             
    handle->bpos.boff -= rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
ffc24968:	7f aa e8 50 	subf    r29,r10,r29                            
ffc2496c:	93 bf 00 14 	stw     r29,20(r31)                            
  handle->bpos.boff += size;                                          
                                                                      
  if (handle->bpos.boff >=                                            
      rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))           
  {                                                                   
    handle->bpos.bno++;                                               
ffc24970:	39 08 00 01 	addi    r8,r8,1                                
ffc24974:	91 1f 00 10 	stw     r8,16(r31)                             
  }                                                                   
                                                                      
  length = false;                                                     
  mtime = false;                                                      
                                                                      
  if (!read &&                                                        
ffc24978:	40 92 00 30 	bne-    cr4,ffc249a8 <rtems_rfs_file_io_end+0x170>
      rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),      
ffc2497c:	81 5f 00 10 	lwz     r10,16(r31)                            
ffc24980:	81 09 00 3c 	lwz     r8,60(r9)                              
  }                                                                   
                                                                      
  length = false;                                                     
  mtime = false;                                                      
                                                                      
  if (!read &&                                                        
ffc24984:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc24988:	41 9e 00 0c 	beq-    cr7,ffc24994 <rtems_rfs_file_io_end+0x15c>
      rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),      
ffc2498c:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc24990:	41 9e 00 a8 	beq-    cr7,ffc24a38 <rtems_rfs_file_io_end+0x200><== NEVER TAKEN
ffc24994:	7f 8a 40 40 	cmplw   cr7,r10,r8                             
ffc24998:	40 9c 00 a0 	bge-    cr7,ffc24a38 <rtems_rfs_file_io_end+0x200>
ffc2499c:	39 08 ff ff 	addi    r8,r8,-1                               
ffc249a0:	7f 8a 40 00 	cmpw    cr7,r10,r8                             
ffc249a4:	41 9e 01 6c 	beq-    cr7,ffc24b10 <rtems_rfs_file_io_end+0x2d8>
                                         handle->bpos.boff);          
    length = true;                                                    
    mtime = true;                                                     
  }                                                                   
                                                                      
  atime  = rtems_rfs_file_update_atime (handle);                      
ffc249a8:	81 3f 00 00 	lwz     r9,0(r31)                              
  mtime  = rtems_rfs_file_update_mtime (handle) && mtime;             
ffc249ac:	3b 80 00 00 	li      r28,0                                  
                                         handle->bpos.boff);          
    length = true;                                                    
    mtime = true;                                                     
  }                                                                   
                                                                      
  atime  = rtems_rfs_file_update_atime (handle);                      
ffc249b0:	55 29 07 fe 	clrlwi  r9,r9,31                               
ffc249b4:	69 3b 00 01 	xori    r27,r9,1                               
  mtime  = rtems_rfs_file_update_mtime (handle) && mtime;             
  length = rtems_rfs_file_update_length (handle) && length;           
ffc249b8:	3b a0 00 00 	li      r29,0                                  
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc249bc:	38 60 00 20 	li      r3,32                                  
ffc249c0:	38 80 00 00 	li      r4,0                                   
ffc249c4:	4b ff 34 d9 	bl      ffc17e9c <rtems_rfs_trace>             
ffc249c8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc249cc:	40 9e 00 a0 	bne-    cr7,ffc24a6c <rtems_rfs_file_io_end+0x234><== NEVER TAKEN
ffc249d0:	2d 9b 00 00 	cmpwi   cr3,r27,0                              
ffc249d4:	2d 1d 00 00 	cmpwi   cr2,r29,0                              
    printf ("rtems-rfs: file-io:   end: pos=%" PRIu32 ":%" PRIu32 " %c %c %c\n",
            handle->bpos.bno, handle->bpos.boff,                      
            atime ? 'A' : '-', mtime ? 'M' : '-', length ? 'L' : '-');
                                                                      
  if (atime || mtime)                                                 
ffc249d8:	40 8e 00 ec 	bne-    cr3,ffc24ac4 <rtems_rfs_file_io_end+0x28c><== ALWAYS TAKEN
ffc249dc:	2f 9c 00 00 	cmpwi   cr7,r28,0                              <== NOT EXECUTED
ffc249e0:	41 9e 00 10 	beq-    cr7,ffc249f0 <rtems_rfs_file_io_end+0x1b8><== NOT EXECUTED
  {                                                                   
    time_t now = time (NULL);                                         
ffc249e4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc249e8:	48 00 a4 25 	bl      ffc2ee0c <time>                        <== NOT EXECUTED
    if (read && atime)                                                
ffc249ec:	41 92 00 f8 	beq-    cr4,ffc24ae4 <rtems_rfs_file_io_end+0x2ac><== NOT EXECUTED
      handle->shared->atime = now;                                    
    if (!read && mtime)                                               
      handle->shared->mtime = now;                                    
  }                                                                   
  if (length)                                                         
ffc249f0:	41 aa ff 14 	beq-    cr2,ffc24904 <rtems_rfs_file_io_end+0xcc>
    handle->shared->size.offset =                                     
      rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle));  
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc249f4:	80 01 00 24 	lwz     r0,36(r1)                              
ffc249f8:	7f c3 f3 78 	mr      r3,r30                                 
      handle->shared->mtime = now;                                    
  }                                                                   
  if (length)                                                         
  {                                                                   
    handle->shared->size.count =                                      
      rtems_rfs_block_map_count (rtems_rfs_file_map (handle));        
ffc249fc:	81 3f 00 1c 	lwz     r9,28(r31)                             
    handle->shared->size.offset =                                     
      rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle));  
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc24a00:	7c 08 03 a6 	mtlr    r0                                     
ffc24a04:	81 81 00 08 	lwz     r12,8(r1)                              
    if (!read && mtime)                                               
      handle->shared->mtime = now;                                    
  }                                                                   
  if (length)                                                         
  {                                                                   
    handle->shared->size.count =                                      
ffc24a08:	81 09 00 3c 	lwz     r8,60(r9)                              
      rtems_rfs_block_map_count (rtems_rfs_file_map (handle));        
    handle->shared->size.offset =                                     
ffc24a0c:	81 49 00 40 	lwz     r10,64(r9)                             
      rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle));  
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc24a10:	7d 83 81 20 	mtcrf   56,r12                                 
ffc24a14:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc24a18:	83 81 00 10 	lwz     r28,16(r1)                             
ffc24a1c:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc24a20:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc24a24:	83 e1 00 1c 	lwz     r31,28(r1)                             
    if (!read && mtime)                                               
      handle->shared->mtime = now;                                    
  }                                                                   
  if (length)                                                         
  {                                                                   
    handle->shared->size.count =                                      
ffc24a28:	91 09 00 84 	stw     r8,132(r9)                             
      rtems_rfs_block_map_count (rtems_rfs_file_map (handle));        
    handle->shared->size.offset =                                     
ffc24a2c:	91 49 00 88 	stw     r10,136(r9)                            
      rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle));  
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc24a30:	38 21 00 20 	addi    r1,r1,32                               
ffc24a34:	4e 80 00 20 	blr                                            
ffc24a38:	81 5f 00 14 	lwz     r10,20(r31)                            
                                         handle->bpos.boff);          
    length = true;                                                    
    mtime = true;                                                     
  }                                                                   
                                                                      
  atime  = rtems_rfs_file_update_atime (handle);                      
ffc24a3c:	83 9f 00 00 	lwz     r28,0(r31)                             
  mtime  = rtems_rfs_file_update_mtime (handle) && mtime;             
  length = rtems_rfs_file_update_length (handle) && length;           
ffc24a40:	3b a0 00 01 	li      r29,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;                                          
ffc24a44:	91 49 00 40 	stw     r10,64(r9)                             
  map->dirty = true;                                                  
ffc24a48:	39 40 00 01 	li      r10,1                                  
ffc24a4c:	73 88 00 04 	andi.   r8,r28,4                               
                                         handle->bpos.boff);          
    length = true;                                                    
    mtime = true;                                                     
  }                                                                   
                                                                      
  atime  = rtems_rfs_file_update_atime (handle);                      
ffc24a50:	57 9b 07 fe 	clrlwi  r27,r28,31                             
ffc24a54:	99 49 00 34 	stb     r10,52(r9)                             
  mtime  = rtems_rfs_file_update_mtime (handle) && mtime;             
ffc24a58:	6b 9c 00 02 	xori    r28,r28,2                              
                                         handle->bpos.boff);          
    length = true;                                                    
    mtime = true;                                                     
  }                                                                   
                                                                      
  atime  = rtems_rfs_file_update_atime (handle);                      
ffc24a5c:	6b 7b 00 01 	xori    r27,r27,1                              
  mtime  = rtems_rfs_file_update_mtime (handle) && mtime;             
ffc24a60:	57 9c ff fe 	rlwinm  r28,r28,31,31,31                       
  length = rtems_rfs_file_update_length (handle) && length;           
ffc24a64:	41 a2 ff 58 	beq-    ffc249bc <rtems_rfs_file_io_end+0x184> <== ALWAYS TAKEN
ffc24a68:	4b ff ff 50 	b       ffc249b8 <rtems_rfs_file_io_end+0x180> <== NOT EXECUTED
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
    printf ("rtems-rfs: file-io:   end: pos=%" PRIu32 ":%" PRIu32 " %c %c %c\n",
ffc24a6c:	2d 9b 00 00 	cmpwi   cr3,r27,0                              <== NOT EXECUTED
ffc24a70:	80 9f 00 10 	lwz     r4,16(r31)                             <== NOT EXECUTED
ffc24a74:	30 db ff ff 	addic   r6,r27,-1                              <== NOT EXECUTED
ffc24a78:	7c c6 31 10 	subfe   r6,r6,r6                               <== NOT EXECUTED
ffc24a7c:	80 bf 00 14 	lwz     r5,20(r31)                             <== NOT EXECUTED
ffc24a80:	30 fc ff ff 	addic   r7,r28,-1                              <== NOT EXECUTED
ffc24a84:	7c e7 39 10 	subfe   r7,r7,r7                               <== NOT EXECUTED
ffc24a88:	31 1d ff ff 	addic   r8,r29,-1                              <== NOT EXECUTED
ffc24a8c:	7d 08 41 10 	subfe   r8,r8,r8                               <== NOT EXECUTED
ffc24a90:	39 20 ff ec 	li      r9,-20                                 <== NOT EXECUTED
ffc24a94:	7c c6 48 38 	and     r6,r6,r9                               <== NOT EXECUTED
ffc24a98:	54 e7 00 34 	rlwinm  r7,r7,0,0,26                           <== NOT EXECUTED
ffc24a9c:	55 08 07 f4 	rlwinm  r8,r8,0,31,26                          <== NOT EXECUTED
ffc24aa0:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc24aa4:	38 63 df bc 	addi    r3,r3,-8260                            <== NOT EXECUTED
ffc24aa8:	38 c6 00 41 	addi    r6,r6,65                               <== NOT EXECUTED
ffc24aac:	38 e7 00 4d 	addi    r7,r7,77                               <== NOT EXECUTED
ffc24ab0:	39 08 00 4c 	addi    r8,r8,76                               <== NOT EXECUTED
ffc24ab4:	2d 1d 00 00 	cmpwi   cr2,r29,0                              <== NOT EXECUTED
ffc24ab8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc24abc:	48 00 5f dd 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            handle->bpos.bno, handle->bpos.boff,                      
            atime ? 'A' : '-', mtime ? 'M' : '-', length ? 'L' : '-');
                                                                      
  if (atime || mtime)                                                 
ffc24ac0:	41 8e ff 1c 	beq+    cr3,ffc249dc <rtems_rfs_file_io_end+0x1a4><== NOT EXECUTED
  {                                                                   
    time_t now = time (NULL);                                         
ffc24ac4:	38 60 00 00 	li      r3,0                                   
ffc24ac8:	48 00 a3 45 	bl      ffc2ee0c <time>                        
    if (read && atime)                                                
ffc24acc:	41 92 00 10 	beq-    cr4,ffc24adc <rtems_rfs_file_io_end+0x2a4>
      handle->shared->atime = now;                                    
ffc24ad0:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc24ad4:	90 69 00 8c 	stw     r3,140(r9)                             
ffc24ad8:	4b ff ff 18 	b       ffc249f0 <rtems_rfs_file_io_end+0x1b8> 
    if (!read && mtime)                                               
ffc24adc:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc24ae0:	41 be ff 10 	beq-    cr7,ffc249f0 <rtems_rfs_file_io_end+0x1b8>
      handle->shared->mtime = now;                                    
ffc24ae4:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc24ae8:	90 69 00 90 	stw     r3,144(r9)                             
ffc24aec:	4b ff ff 04 	b       ffc249f0 <rtems_rfs_file_io_end+0x1b8> 
                                                                      
  if (rtems_rfs_buffer_handle_has_block (&handle->buffer))            
  {                                                                   
    if (!read)                                                        
      rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));   
    rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle), 
ffc24af0:	80 69 00 98 	lwz     r3,152(r9)                             
ffc24af4:	38 9f 00 04 	addi    r4,r31,4                               
ffc24af8:	4b ff d2 0d 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
                                          rtems_rfs_file_buffer (handle));
    if (rc > 0)                                                       
ffc24afc:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc24b00:	40 a1 fe 44 	ble-    ffc24944 <rtems_rfs_file_io_end+0x10c> <== ALWAYS TAKEN
    {                                                                 
      printf (                                                        
ffc24b04:	3f e0 ff c4 	lis     r31,-60                                <== NOT EXECUTED
ffc24b08:	3b ff c7 60 	addi    r31,r31,-14496                         <== NOT EXECUTED
ffc24b0c:	4b ff fd d0 	b       ffc248dc <rtems_rfs_file_io_end+0xa4>  <== NOT EXECUTED
                                                                      
  length = false;                                                     
  mtime = false;                                                      
                                                                      
  if (!read &&                                                        
      rtems_rfs_block_map_past_end (rtems_rfs_file_map (handle),      
ffc24b10:	81 5f 00 14 	lwz     r10,20(r31)                            
ffc24b14:	81 09 00 40 	lwz     r8,64(r9)                              
ffc24b18:	7f 8a 40 40 	cmplw   cr7,r10,r8                             
ffc24b1c:	40 bd fe 8c 	ble-    cr7,ffc249a8 <rtems_rfs_file_io_end+0x170>
ffc24b20:	4b ff ff 1c 	b       ffc24a3c <rtems_rfs_file_io_end+0x204> 
                                                                      

ffc24b24 <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))
ffc24b24:	81 23 00 0c 	lwz     r9,12(r3)                              
ffc24b28:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc24b2c:	41 9e 00 14 	beq-    cr7,ffc24b40 <rtems_rfs_file_io_release+0x1c><== ALWAYS TAKEN
    rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle), 
ffc24b30:	81 23 00 1c 	lwz     r9,28(r3)                              <== NOT EXECUTED
ffc24b34:	38 83 00 04 	addi    r4,r3,4                                <== NOT EXECUTED
ffc24b38:	80 69 00 98 	lwz     r3,152(r9)                             <== NOT EXECUTED
ffc24b3c:	4b ff d1 c8 	b       ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
                                          rtems_rfs_file_buffer (handle));
  return rc;                                                          
}                                                                     
ffc24b40:	38 60 00 00 	li      r3,0                                   
ffc24b44:	4e 80 00 20 	blr                                            
                                                                      

ffc245e0 <rtems_rfs_file_io_start>: int rtems_rfs_file_io_start (rtems_rfs_file_handle* handle, size_t* available, bool read) {
ffc245e0:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc245e4:	7d 80 00 26 	mfcr    r12                                    
ffc245e8:	7c 08 02 a6 	mflr    r0                                     
ffc245ec:	93 a1 00 24 	stw     r29,36(r1)                             
ffc245f0:	7c 9d 23 78 	mr      r29,r4                                 
  size_t size;                                                        
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc245f4:	38 80 00 00 	li      r4,0                                   
                                                                      
int                                                                   
rtems_rfs_file_io_start (rtems_rfs_file_handle* handle,               
                         size_t*                available,            
                         bool                   read)                 
{                                                                     
ffc245f8:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc245fc:	7c 7f 1b 78 	mr      r31,r3                                 
  size_t size;                                                        
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc24600:	38 60 00 20 	li      r3,32                                  
                                                                      
int                                                                   
rtems_rfs_file_io_start (rtems_rfs_file_handle* handle,               
                         size_t*                available,            
                         bool                   read)                 
{                                                                     
ffc24604:	93 c1 00 28 	stw     r30,40(r1)                             
ffc24608:	7c be 2b 78 	mr      r30,r5                                 
ffc2460c:	2e 1e 00 00 	cmpwi   cr4,r30,0                              
ffc24610:	90 01 00 34 	stw     r0,52(r1)                              
ffc24614:	93 61 00 1c 	stw     r27,28(r1)                             
ffc24618:	93 81 00 20 	stw     r28,32(r1)                             
ffc2461c:	91 81 00 18 	stw     r12,24(r1)                             
  size_t size;                                                        
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc24620:	4b ff 38 7d 	bl      ffc17e9c <rtems_rfs_trace>             
ffc24624:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24628:	41 9e 00 28 	beq-    cr7,ffc24650 <rtems_rfs_file_io_start+0x70><== ALWAYS TAKEN
    printf ("rtems-rfs: file-io: start: %s pos=%" PRIu32 ":%" PRIu32 "\n",
ffc2462c:	40 92 00 d4 	bne-    cr4,ffc24700 <rtems_rfs_file_io_start+0x120><== NOT EXECUTED
ffc24630:	3c 80 ff c4 	lis     r4,-60                                 <== NOT EXECUTED
ffc24634:	38 84 de 94 	addi    r4,r4,-8556                            <== NOT EXECUTED
ffc24638:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc2463c:	80 bf 00 10 	lwz     r5,16(r31)                             <== NOT EXECUTED
ffc24640:	80 df 00 14 	lwz     r6,20(r31)                             <== NOT EXECUTED
ffc24644:	38 63 de 9c 	addi    r3,r3,-8548                            <== NOT EXECUTED
ffc24648:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2464c:	48 00 64 4d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            read ? "read" : "write",  handle->bpos.bno, handle->bpos.boff);
                                                                      
  if (!rtems_rfs_buffer_handle_has_block (&handle->buffer))           
ffc24650:	83 7f 00 0c 	lwz     r27,12(r31)                            
ffc24654:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc24658:	41 9e 00 c4 	beq-    cr7,ffc2471c <rtems_rfs_file_io_start+0x13c>
    if (rc > 0)                                                       
      return rc;                                                      
  }                                                                   
                                                                      
  if (read                                                            
      && rtems_rfs_block_map_last (rtems_rfs_file_map (handle))       
ffc2465c:	81 3f 00 1c 	lwz     r9,28(r31)                             
                                          block, request_read);       
    if (rc > 0)                                                       
      return rc;                                                      
  }                                                                   
                                                                      
  if (read                                                            
ffc24660:	40 92 00 78 	bne-    cr4,ffc246d8 <rtems_rfs_file_io_start+0xf8>
      && rtems_rfs_block_map_last (rtems_rfs_file_map (handle))       
      && 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));      
ffc24664:	81 29 00 98 	lwz     r9,152(r9)                             
ffc24668:	83 c9 00 08 	lwz     r30,8(r9)                              
                                                                      
  *available = size - rtems_rfs_file_block_offset (handle);           
ffc2466c:	81 3f 00 14 	lwz     r9,20(r31)                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc24670:	38 60 00 20 	li      r3,32                                  
ffc24674:	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);           
ffc24678:	7d 29 f0 50 	subf    r9,r9,r30                              
ffc2467c:	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;                                                           
ffc24680:	3b 80 00 00 	li      r28,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))                      
ffc24684:	4b ff 38 19 	bl      ffc17e9c <rtems_rfs_trace>             
ffc24688:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2468c:	41 be 00 1c 	beq+    cr7,ffc246a8 <rtems_rfs_file_io_start+0xc8><== ALWAYS TAKEN
    printf ("rtems-rfs: file-io: start: available=%zu (%zu)\n",       
ffc24690:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc24694:	80 9d 00 00 	lwz     r4,0(r29)                              <== NOT EXECUTED
ffc24698:	38 63 df 20 	addi    r3,r3,-8416                            <== NOT EXECUTED
ffc2469c:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc246a0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc246a4:	48 00 63 f5 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            *available, size);                                        
                                                                      
  return 0;                                                           
}                                                                     
ffc246a8:	80 01 00 34 	lwz     r0,52(r1)                              
ffc246ac:	7f 83 e3 78 	mr      r3,r28                                 
ffc246b0:	81 81 00 18 	lwz     r12,24(r1)                             
ffc246b4:	7c 08 03 a6 	mtlr    r0                                     
ffc246b8:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc246bc:	83 81 00 20 	lwz     r28,32(r1)                             
ffc246c0:	7d 80 81 20 	mtcrf   8,r12                                  
ffc246c4:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc246c8:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc246cc:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc246d0:	38 21 00 30 	addi    r1,r1,48                               
ffc246d4:	4e 80 00 20 	blr                                            
    if (rc > 0)                                                       
      return rc;                                                      
  }                                                                   
                                                                      
  if (read                                                            
      && rtems_rfs_block_map_last (rtems_rfs_file_map (handle))       
ffc246d8:	81 49 00 44 	lwz     r10,68(r9)                             
ffc246dc:	81 09 00 3c 	lwz     r8,60(r9)                              
ffc246e0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc246e4:	40 9e 00 28 	bne-    cr7,ffc2470c <rtems_rfs_file_io_start+0x12c>
ffc246e8:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc246ec:	40 9e 00 20 	bne-    cr7,ffc2470c <rtems_rfs_file_io_start+0x12c><== ALWAYS TAKEN
      && rtems_rfs_block_map_size_offset (rtems_rfs_file_map (handle)))
ffc246f0:	83 c9 00 40 	lwz     r30,64(r9)                             
ffc246f4:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc246f8:	40 be ff 74 	bne-    cr7,ffc2466c <rtems_rfs_file_io_start+0x8c>
ffc246fc:	4b ff ff 68 	b       ffc24664 <rtems_rfs_file_io_start+0x84>
                         bool                   read)                 
{                                                                     
  size_t size;                                                        
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
    printf ("rtems-rfs: file-io: start: %s pos=%" PRIu32 ":%" PRIu32 "\n",
ffc24700:	3c 80 ff c4 	lis     r4,-60                                 <== NOT EXECUTED
ffc24704:	38 84 c7 60 	addi    r4,r4,-14496                           <== NOT EXECUTED
ffc24708:	4b ff ff 30 	b       ffc24638 <rtems_rfs_file_io_start+0x58><== NOT EXECUTED
    if (rc > 0)                                                       
      return rc;                                                      
  }                                                                   
                                                                      
  if (read                                                            
      && rtems_rfs_block_map_last (rtems_rfs_file_map (handle))       
ffc2470c:	39 08 ff ff 	addi    r8,r8,-1                               
ffc24710:	7f 8a 40 00 	cmpw    cr7,r10,r8                             
ffc24714:	40 9e ff 50 	bne+    cr7,ffc24664 <rtems_rfs_file_io_start+0x84>
ffc24718:	4b ff ff d8 	b       ffc246f0 <rtems_rfs_file_io_start+0x110>
    bool                   request_read;                              
    int                    rc;                                        
                                                                      
    request_read = read;                                              
                                                                      
    rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),        
ffc2471c:	80 9f 00 1c 	lwz     r4,28(r31)                             
ffc24720:	38 bf 00 10 	addi    r5,r31,16                              
ffc24724:	38 c1 00 08 	addi    r6,r1,8                                
ffc24728:	80 64 00 98 	lwz     r3,152(r4)                             
ffc2472c:	38 84 00 34 	addi    r4,r4,52                               
ffc24730:	4b ff c9 29 	bl      ffc21058 <rtems_rfs_block_map_find>    
                                   rtems_rfs_file_map (handle),       
                                   rtems_rfs_file_bpos (handle),      
                                   &block);                           
    if (rc > 0)                                                       
ffc24734:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc24738:	40 81 00 1c 	ble-    ffc24754 <rtems_rfs_file_io_start+0x174>
    {                                                                 
      /*                                                              
       * Has the read reached the EOF ?                               
       */                                                             
      if (read && (rc == ENXIO))                                      
ffc2473c:	2f 9c 00 06 	cmpwi   cr7,r28,6                              
ffc24740:	41 92 00 9c 	beq-    cr4,ffc247dc <rtems_rfs_file_io_start+0x1fc><== ALWAYS TAKEN
ffc24744:	40 9e ff 64 	bne+    cr7,ffc246a8 <rtems_rfs_file_io_start+0xc8><== NOT EXECUTED
      {                                                               
        *available = 0;                                               
ffc24748:	93 7d 00 00 	stw     r27,0(r29)                             <== NOT EXECUTED
        return 0;                                                     
ffc2474c:	3b 80 00 00 	li      r28,0                                  <== NOT EXECUTED
ffc24750:	4b ff ff 58 	b       ffc246a8 <rtems_rfs_file_io_start+0xc8><== NOT EXECUTED
      /*                                                              
       * 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 &&                                                    
ffc24754:	40 92 00 2c 	bne-    cr4,ffc24780 <rtems_rfs_file_io_start+0x1a0>
ffc24758:	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;                                          
ffc2475c:	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 &&                                                    
ffc24760:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc24764:	40 9e 00 1c 	bne-    cr7,ffc24780 <rtems_rfs_file_io_start+0x1a0>
          (rtems_rfs_file_block_offset (handle) ||                    
           (*available < rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))))
ffc24768:	81 3f 00 1c 	lwz     r9,28(r31)                             
       * 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) ||                    
ffc2476c:	81 5d 00 00 	lwz     r10,0(r29)                             
           (*available < rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))))
ffc24770:	81 29 00 98 	lwz     r9,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) ||                    
ffc24774:	81 29 00 08 	lwz     r9,8(r9)                               
ffc24778:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc2477c:	40 9c 00 98 	bge-    cr7,ffc24814 <rtems_rfs_file_io_start+0x234><== NEVER TAKEN
           (*available < rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))))
        request_read = true;                                          
    }                                                                 
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                    
ffc24780:	38 60 00 20 	li      r3,32                                  
ffc24784:	38 80 00 00 	li      r4,0                                   
ffc24788:	4b ff 37 15 	bl      ffc17e9c <rtems_rfs_trace>             
ffc2478c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24790:	41 9e 00 28 	beq-    cr7,ffc247b8 <rtems_rfs_file_io_start+0x1d8><== ALWAYS TAKEN
      printf ("rtems-rfs: file-io: start: block=%" PRIu32 " request-read=%s\n",
ffc24794:	2f 9e 00 00 	cmpwi   cr7,r30,0                              <== NOT EXECUTED
ffc24798:	80 81 00 08 	lwz     r4,8(r1)                               <== NOT EXECUTED
ffc2479c:	41 9e 00 80 	beq-    cr7,ffc2481c <rtems_rfs_file_io_start+0x23c><== NOT EXECUTED
ffc247a0:	3c a0 ff c4 	lis     r5,-60                                 <== NOT EXECUTED
ffc247a4:	38 a5 c1 ac 	addi    r5,r5,-15956                           <== NOT EXECUTED
ffc247a8:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc247ac:	38 63 de e8 	addi    r3,r3,-8472                            <== NOT EXECUTED
ffc247b0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc247b4:	48 00 62 e5 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
              block, request_read ? "yes" : "no");                    
                                                                      
    rc = rtems_rfs_buffer_handle_request (rtems_rfs_file_fs (handle), 
ffc247b8:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc247bc:	38 9f 00 04 	addi    r4,r31,4                               
ffc247c0:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc247c4:	7f c6 f3 78 	mr      r6,r30                                 
ffc247c8:	80 69 00 98 	lwz     r3,152(r9)                             
ffc247cc:	4b ff d7 4d 	bl      ffc21f18 <rtems_rfs_buffer_handle_request>
                                          rtems_rfs_file_buffer (handle),
                                          block, request_read);       
    if (rc > 0)                                                       
ffc247d0:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc247d4:	41 81 fe d4 	bgt+    ffc246a8 <rtems_rfs_file_io_start+0xc8><== NEVER TAKEN
ffc247d8:	4b ff fe 84 	b       ffc2465c <rtems_rfs_file_io_start+0x7c>
      {                                                               
        *available = 0;                                               
        return 0;                                                     
      }                                                               
                                                                      
      if (rc != ENXIO)                                                
ffc247dc:	40 9e fe cc 	bne+    cr7,ffc246a8 <rtems_rfs_file_io_start+0xc8><== NEVER TAKEN
        return rc;                                                    
                                                                      
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                  
ffc247e0:	38 60 00 20 	li      r3,32                                  
ffc247e4:	38 80 00 00 	li      r4,0                                   
ffc247e8:	4b ff 36 b5 	bl      ffc17e9c <rtems_rfs_trace>             
ffc247ec:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc247f0:	40 9e 00 38 	bne-    cr7,ffc24828 <rtems_rfs_file_io_start+0x248><== NEVER TAKEN
        printf ("rtems-rfs: file-io: start: grow\n");                 
                                                                      
      rc = rtems_rfs_block_map_grow (rtems_rfs_file_fs (handle),      
ffc247f4:	80 9f 00 1c 	lwz     r4,28(r31)                             
ffc247f8:	38 a0 00 01 	li      r5,1                                   
ffc247fc:	38 c1 00 08 	addi    r6,r1,8                                
ffc24800:	80 64 00 98 	lwz     r3,152(r4)                             
ffc24804:	38 84 00 34 	addi    r4,r4,52                               
ffc24808:	4b ff ca fd 	bl      ffc21304 <rtems_rfs_block_map_grow>    
                                     rtems_rfs_file_map (handle),     
                                     1, &block);                      
      if (rc > 0)                                                     
ffc2480c:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc24810:	41 81 fe 98 	bgt+    ffc246a8 <rtems_rfs_file_io_start+0xc8>
        return rc;                                                    
                                                                      
      request_read = false;                                           
ffc24814:	3b c0 00 00 	li      r30,0                                  
ffc24818:	4b ff ff 68 	b       ffc24780 <rtems_rfs_file_io_start+0x1a0>
           (*available < rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle)))))
        request_read = true;                                          
    }                                                                 
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                    
      printf ("rtems-rfs: file-io: start: block=%" PRIu32 " request-read=%s\n",
ffc2481c:	3c a0 ff c4 	lis     r5,-60                                 <== NOT EXECUTED
ffc24820:	38 a5 c6 e4 	addi    r5,r5,-14620                           <== NOT EXECUTED
ffc24824:	4b ff ff 84 	b       ffc247a8 <rtems_rfs_file_io_start+0x1c8><== NOT EXECUTED
                                                                      
      if (rc != ENXIO)                                                
        return rc;                                                    
                                                                      
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                  
        printf ("rtems-rfs: file-io: start: grow\n");                 
ffc24828:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc2482c:	38 63 de c8 	addi    r3,r3,-8504                            <== NOT EXECUTED
ffc24830:	48 00 65 d1 	bl      ffc2ae00 <puts>                        <== NOT EXECUTED
ffc24834:	4b ff ff c0 	b       ffc247f4 <rtems_rfs_file_io_start+0x214><== NOT EXECUTED
                                                                      

ffc23ea4 <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) {
ffc23ea4:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc23ea8:	7c 08 02 a6 	mflr    r0                                     
ffc23eac:	93 21 00 0c 	stw     r25,12(r1)                             
ffc23eb0:	7c 79 1b 78 	mr      r25,r3                                 
  rtems_rfs_file_handle* handle;                                      
  rtems_rfs_file_shared* shared;                                      
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                    
ffc23eb4:	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)                    
{                                                                     
ffc23eb8:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc23ebc:	7c 9d 23 78 	mr      r29,r4                                 
  rtems_rfs_file_handle* handle;                                      
  rtems_rfs_file_shared* shared;                                      
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                    
ffc23ec0:	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)                    
{                                                                     
ffc23ec4:	93 01 00 08 	stw     r24,8(r1)                              
ffc23ec8:	7c b8 2b 78 	mr      r24,r5                                 
ffc23ecc:	93 41 00 10 	stw     r26,16(r1)                             
ffc23ed0:	7c da 33 78 	mr      r26,r6                                 
ffc23ed4:	90 01 00 2c 	stw     r0,44(r1)                              
ffc23ed8:	93 61 00 14 	stw     r27,20(r1)                             
ffc23edc:	93 81 00 18 	stw     r28,24(r1)                             
ffc23ee0:	93 c1 00 20 	stw     r30,32(r1)                             
ffc23ee4:	93 e1 00 24 	stw     r31,36(r1)                             
  rtems_rfs_file_handle* handle;                                      
  rtems_rfs_file_shared* shared;                                      
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                    
ffc23ee8:	4b ff 3f b5 	bl      ffc17e9c <rtems_rfs_trace>             
ffc23eec:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc23ef0:	40 9e 00 d4 	bne-    cr7,ffc23fc4 <rtems_rfs_file_open+0x120><== NEVER TAKEN
    printf ("rtems-rfs: file-open: ino=%" PRId32 "\n", ino);          
                                                                      
  *file = NULL;                                                       
ffc23ef4:	3b 80 00 00 	li      r28,0                                  
ffc23ef8:	93 9a 00 00 	stw     r28,0(r26)                             
  /*                                                                  
   * 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));                   
ffc23efc:	38 60 00 20 	li      r3,32                                  
  if (!handle)                                                        
    return ENOMEM;                                                    
ffc23f00:	3b 60 00 0c 	li      r27,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));                   
ffc23f04:	4b fe 6b 91 	bl      ffc0aa94 <malloc>                      
  if (!handle)                                                        
ffc23f08:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc23f0c:	41 82 00 84 	beq-    ffc23f90 <rtems_rfs_file_open+0xec>    <== NEVER TAKEN
    return ENOMEM;                                                    
                                                                      
  memset (handle, 0, sizeof (rtems_rfs_file_handle));                 
ffc23f10:	93 9e 00 04 	stw     r28,4(r30)                             
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 ));            
ffc23f14:	39 59 00 78 	addi    r10,r25,120                            
ffc23f18:	93 9e 00 00 	stw     r28,0(r30)                             
ffc23f1c:	93 9e 00 10 	stw     r28,16(r30)                            
ffc23f20:	93 9e 00 14 	stw     r28,20(r30)                            
ffc23f24:	93 9e 00 18 	stw     r28,24(r30)                            
ffc23f28:	93 9e 00 1c 	stw     r28,28(r30)                            
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_First(                        
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Head( the_chain )->next;                              
ffc23f2c:	83 f9 00 74 	lwz     r31,116(r25)                           
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc23f30:	9b 9e 00 04 	stb     r28,4(r30)                             
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))               
ffc23f34:	7f 9f 50 00 	cmpw    cr7,r31,r10                            
  handle->bnum  = 0;                                                  
ffc23f38:	93 9e 00 08 	stw     r28,8(r30)                             
  handle->buffer = NULL;                                              
ffc23f3c:	93 9e 00 0c 	stw     r28,12(r30)                            
ffc23f40:	40 be 00 14 	bne+    cr7,ffc23f54 <rtems_rfs_file_open+0xb0>
ffc23f44:	48 00 00 98 	b       ffc23fdc <rtems_rfs_file_open+0x138>   
    if (shared->inode.ino == ino)                                     
      return shared;                                                  
    node = rtems_chain_next (node);                                   
  }                                                                   
  return NULL;                                                        
}                                                                     
ffc23f48:	83 ff 00 00 	lwz     r31,0(r31)                             
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))               
ffc23f4c:	7f 9f 50 00 	cmpw    cr7,r31,r10                            
ffc23f50:	41 9e 00 8c 	beq-    cr7,ffc23fdc <rtems_rfs_file_open+0x138><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_file_shared* shared;                                    
    shared = (rtems_rfs_file_shared*) node;                           
    if (shared->inode.ino == ino)                                     
ffc23f54:	81 3f 00 14 	lwz     r9,20(r31)                             
ffc23f58:	7f 9d 48 00 	cmpw    cr7,r29,r9                             
ffc23f5c:	40 9e ff ec 	bne+    cr7,ffc23f48 <rtems_rfs_file_open+0xa4><== ALWAYS TAKEN
   * the reference count and return the pointer to the data.          
   */                                                                 
  shared = rtems_rfs_file_get_shared (fs, ino);                       
  if (shared)                                                         
  {                                                                   
    shared->references++;                                             
ffc23f60:	81 3f 00 08 	lwz     r9,8(r31)                              <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                  
ffc23f64:	38 60 00 08 	li      r3,8                                   <== NOT EXECUTED
ffc23f68:	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++;                                             
ffc23f6c:	39 29 00 01 	addi    r9,r9,1                                <== NOT EXECUTED
ffc23f70:	91 3f 00 08 	stw     r9,8(r31)                              <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                  
ffc23f74:	4b ff 3f 29 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc23f78:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc23f7c:	40 9e 01 04 	bne-    cr7,ffc24080 <rtems_rfs_file_open+0x1dc><== NOT EXECUTED
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                  
      printf ("rtems-rfs: file-open: ino=%" PRId32 " share created\n", ino);
  }                                                                   
                                                                      
  handle->flags  = oflag;                                             
ffc23f80:	93 1e 00 00 	stw     r24,0(r30)                             
  handle->shared = shared;                                            
                                                                      
  *file = handle;                                                     
                                                                      
  return 0;                                                           
ffc23f84:	3b 60 00 00 	li      r27,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;                                            
ffc23f88:	93 fe 00 1c 	stw     r31,28(r30)                            
                                                                      
  *file = handle;                                                     
ffc23f8c:	93 da 00 00 	stw     r30,0(r26)                             
                                                                      
  return 0;                                                           
}                                                                     
ffc23f90:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc23f94:	7f 63 db 78 	mr      r3,r27                                 
ffc23f98:	83 01 00 08 	lwz     r24,8(r1)                              
ffc23f9c:	7c 08 03 a6 	mtlr    r0                                     
ffc23fa0:	83 21 00 0c 	lwz     r25,12(r1)                             
ffc23fa4:	83 41 00 10 	lwz     r26,16(r1)                             
ffc23fa8:	83 61 00 14 	lwz     r27,20(r1)                             
ffc23fac:	83 81 00 18 	lwz     r28,24(r1)                             
ffc23fb0:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc23fb4:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc23fb8:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc23fbc:	38 21 00 28 	addi    r1,r1,40                               
ffc23fc0:	4e 80 00 20 	blr                                            
  rtems_rfs_file_handle* handle;                                      
  rtems_rfs_file_shared* shared;                                      
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                    
    printf ("rtems-rfs: file-open: ino=%" PRId32 "\n", ino);          
ffc23fc4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc23fc8:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc23fcc:	38 63 dc e8 	addi    r3,r3,-8984                            <== NOT EXECUTED
ffc23fd0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc23fd4:	48 00 6a c5 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc23fd8:	4b ff ff 1c 	b       ffc23ef4 <rtems_rfs_file_open+0x50>    <== 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));                 
ffc23fdc:	38 60 00 9c 	li      r3,156                                 
ffc23fe0:	4b fe 6a b5 	bl      ffc0aa94 <malloc>                      
    if (!shared)                                                      
ffc23fe4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc23fe8:	41 82 01 1c 	beq-    ffc24104 <rtems_rfs_file_open+0x260>   <== NEVER TAKEN
      rtems_rfs_buffer_handle_close (fs, &handle->buffer);            
      free (handle);                                                  
      return ENOMEM;                                                  
    }                                                                 
                                                                      
    memset (shared, 0, sizeof (rtems_rfs_file_shared));               
ffc23fec:	38 80 00 00 	li      r4,0                                   
ffc23ff0:	38 a0 00 9c 	li      r5,156                                 
                                                                      
    rc = rtems_rfs_inode_open (fs, ino, &shared->inode, true);        
ffc23ff4:	3b 9f 00 0c 	addi    r28,r31,12                             
      rtems_rfs_buffer_handle_close (fs, &handle->buffer);            
      free (handle);                                                  
      return ENOMEM;                                                  
    }                                                                 
                                                                      
    memset (shared, 0, sizeof (rtems_rfs_file_shared));               
ffc23ff8:	48 00 68 45 	bl      ffc2a83c <memset>                      
                                                                      
    rc = rtems_rfs_inode_open (fs, ino, &shared->inode, true);        
ffc23ffc:	7f 23 cb 78 	mr      r3,r25                                 
ffc24000:	7f a4 eb 78 	mr      r4,r29                                 
ffc24004:	7f 85 e3 78 	mr      r5,r28                                 
ffc24008:	38 c0 00 01 	li      r6,1                                   
ffc2400c:	4b ff 1d a1 	bl      ffc15dac <rtems_rfs_inode_open>        
    if (rc > 0)                                                       
ffc24010:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc24014:	40 81 00 94 	ble-    ffc240a8 <rtems_rfs_file_open+0x204>   <== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                
ffc24018:	38 60 00 08 	li      r3,8                                   <== NOT EXECUTED
ffc2401c:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc24020:	4b ff 3e 7d 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc24024:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc24028:	41 be 00 24 	beq+    cr7,ffc2404c <rtems_rfs_file_open+0x1a8><== NOT EXECUTED
        printf ("rtems-rfs: file-open: inode open failed: %d: %s\n",  
ffc2402c:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc24030:	48 00 7b e5 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc24034:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc24038:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc2403c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc24040:	38 63 dd 30 	addi    r3,r3,-8912                            <== NOT EXECUTED
ffc24044:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc24048:	48 00 6a 51 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                
        printf ("rtems-rfs: file-open: block map open failed: %d: %s\n",
                rc, strerror (rc));                                   
      rtems_rfs_inode_close (fs, &shared->inode);                     
      free (shared);                                                  
ffc2404c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc24050:	4b fe 62 ad 	bl      ffc0a2fc <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);                       
ffc24054:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc24058:	38 9e 00 04 	addi    r4,r30,4                               <== NOT EXECUTED
ffc2405c:	4b ff dc a9 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc24060:	39 20 00 00 	li      r9,0                                   <== 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);                       
  handle->dirty = false;                                              
ffc24064:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc24068:	91 3e 00 08 	stw     r9,8(r30)                              <== NOT EXECUTED
      rtems_rfs_buffer_handle_close (fs, &handle->buffer);            
      free (handle);                                                  
ffc2406c:	7f c3 f3 78 	mr      r3,r30                                 <== 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);                       
  handle->dirty = false;                                              
ffc24070:	99 5e 00 04 	stb     r10,4(r30)                             <== NOT EXECUTED
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc24074:	91 3e 00 0c 	stw     r9,12(r30)                             <== NOT EXECUTED
ffc24078:	4b fe 62 85 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
      return rc;                                                      
ffc2407c:	4b ff ff 14 	b       ffc23f90 <rtems_rfs_file_open+0xec>    <== NOT EXECUTED
  shared = rtems_rfs_file_get_shared (fs, ino);                       
  if (shared)                                                         
  {                                                                   
    shared->references++;                                             
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                  
      printf ("rtems-rfs: file-open: ino=%" PRId32 " shared\n", ino); 
ffc24080:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc24084:	38 63 dd 08 	addi    r3,r3,-8952                            <== NOT EXECUTED
ffc24088:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc2408c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc24090:	48 00 6a 09 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
  handle->flags  = oflag;                                             
  handle->shared = shared;                                            
                                                                      
  *file = handle;                                                     
                                                                      
  return 0;                                                           
ffc24094:	3b 60 00 00 	li      r27,0                                  <== NOT EXECUTED
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                  
      printf ("rtems-rfs: file-open: ino=%" PRId32 " share created\n", ino);
  }                                                                   
                                                                      
  handle->flags  = oflag;                                             
ffc24098:	93 1e 00 00 	stw     r24,0(r30)                             <== NOT EXECUTED
  handle->shared = shared;                                            
ffc2409c:	93 fe 00 1c 	stw     r31,28(r30)                            <== NOT EXECUTED
                                                                      
  *file = handle;                                                     
ffc240a0:	93 da 00 00 	stw     r30,0(r26)                             <== NOT EXECUTED
ffc240a4:	4b ff fe ec 	b       ffc23f90 <rtems_rfs_file_open+0xec>    <== 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); 
ffc240a8:	7f 23 cb 78 	mr      r3,r25                                 
ffc240ac:	7f 84 e3 78 	mr      r4,r28                                 
ffc240b0:	38 bf 00 34 	addi    r5,r31,52                              
ffc240b4:	4b ff cb a9 	bl      ffc20c5c <rtems_rfs_block_map_open>    
    if (rc > 0)                                                       
ffc240b8:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc240bc:	40 81 00 70 	ble-    ffc2412c <rtems_rfs_file_open+0x288>   <== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                
ffc240c0:	38 60 00 08 	li      r3,8                                   <== NOT EXECUTED
ffc240c4:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc240c8:	4b ff 3d d5 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc240cc:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc240d0:	41 be 00 24 	beq+    cr7,ffc240f4 <rtems_rfs_file_open+0x250><== NOT EXECUTED
        printf ("rtems-rfs: file-open: block map open failed: %d: %s\n",
ffc240d4:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc240d8:	48 00 7b 3d 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc240dc:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc240e0:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc240e4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc240e8:	38 63 dd 64 	addi    r3,r3,-8860                            <== NOT EXECUTED
ffc240ec:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc240f0:	48 00 69 a9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
                rc, strerror (rc));                                   
      rtems_rfs_inode_close (fs, &shared->inode);                     
ffc240f4:	7f 84 e3 78 	mr      r4,r28                                 <== NOT EXECUTED
ffc240f8:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc240fc:	4b ff 1f 2d 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
ffc24100:	4b ff ff 4c 	b       ffc2404c <rtems_rfs_file_open+0x1a8>   <== 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);                       
ffc24104:	38 9e 00 04 	addi    r4,r30,4                               <== NOT EXECUTED
ffc24108:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc2410c:	4b ff db f9 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
ffc24110:	9b fe 00 04 	stb     r31,4(r30)                             <== NOT EXECUTED
     */                                                               
    shared = malloc (sizeof (rtems_rfs_file_shared));                 
    if (!shared)                                                      
    {                                                                 
      rtems_rfs_buffer_handle_close (fs, &handle->buffer);            
      free (handle);                                                  
ffc24114:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc24118:	93 fe 00 08 	stw     r31,8(r30)                             <== NOT EXECUTED
      return ENOMEM;                                                  
ffc2411c:	3b 60 00 0c 	li      r27,12                                 <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc24120:	93 fe 00 0c 	stw     r31,12(r30)                            <== NOT EXECUTED
     */                                                               
    shared = malloc (sizeof (rtems_rfs_file_shared));                 
    if (!shared)                                                      
    {                                                                 
      rtems_rfs_buffer_handle_close (fs, &handle->buffer);            
      free (handle);                                                  
ffc24124:	4b fe 61 d9 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
      return ENOMEM;                                                  
ffc24128:	4b ff fe 68 	b       ffc23f90 <rtems_rfs_file_open+0xec>    <== NOT EXECUTED
      rtems_rfs_buffer_handle_close (fs, &handle->buffer);            
      free (handle);                                                  
      return rc;                                                      
    }                                                                 
                                                                      
    shared->references = 1;                                           
ffc2412c:	39 40 00 01 	li      r10,1                                  
    if (shared->inode.ino == ino)                                     
      return shared;                                                  
    node = rtems_chain_next (node);                                   
  }                                                                   
  return NULL;                                                        
}                                                                     
ffc24130:	81 3f 00 18 	lwz     r9,24(r31)                             
      rtems_rfs_buffer_handle_close (fs, &handle->buffer);            
      free (handle);                                                  
      return rc;                                                      
    }                                                                 
                                                                      
    shared->references = 1;                                           
ffc24134:	91 5f 00 08 	stw     r10,8(r31)                             
ffc24138:	38 79 00 74 	addi    r3,r25,116                             
ffc2413c:	7f e4 fb 78 	mr      r4,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);             
ffc24140:	88 c9 00 0c 	lbz     r6,12(r9)                              
ffc24144:	88 e9 00 0d 	lbz     r7,13(r9)                              
ffc24148:	89 09 00 0f 	lbz     r8,15(r9)                              
ffc2414c:	54 c6 c0 0e 	rlwinm  r6,r6,24,0,7                           
ffc24150:	89 49 00 0e 	lbz     r10,14(r9)                             
ffc24154:	54 e7 80 1e 	rlwinm  r7,r7,16,0,15                          
ffc24158:	7c c7 3b 78 	or      r7,r6,r7                               
ffc2415c:	7c e8 43 78 	or      r8,r7,r8                               
ffc24160:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc24164:	7d 0a 53 78 	or      r10,r8,r10                             
    shared->size.count = rtems_rfs_inode_get_block_count (&shared->inode);
ffc24168:	91 5f 00 84 	stw     r10,132(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);            
ffc2416c:	89 09 00 0a 	lbz     r8,10(r9)                              
ffc24170:	89 49 00 0b 	lbz     r10,11(r9)                             
ffc24174:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
    shared->size.offset = rtems_rfs_inode_get_block_offset (&shared->inode);
ffc24178:	7d 0a 53 78 	or      r10,r8,r10                             
ffc2417c:	91 5f 00 88 	stw     r10,136(r31)                           
 * @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);                   
ffc24180:	88 c9 00 10 	lbz     r6,16(r9)                              
ffc24184:	88 e9 00 11 	lbz     r7,17(r9)                              
ffc24188:	89 09 00 13 	lbz     r8,19(r9)                              
ffc2418c:	54 c6 c0 0e 	rlwinm  r6,r6,24,0,7                           
ffc24190:	89 49 00 12 	lbz     r10,18(r9)                             
ffc24194:	54 e7 80 1e 	rlwinm  r7,r7,16,0,15                          
ffc24198:	7c c7 3b 78 	or      r7,r6,r7                               
ffc2419c:	7c e8 43 78 	or      r8,r7,r8                               
ffc241a0:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc241a4:	7d 0a 53 78 	or      r10,r8,r10                             
    shared->atime = rtems_rfs_inode_get_atime (&shared->inode);       
ffc241a8:	91 5f 00 8c 	stw     r10,140(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);                   
ffc241ac:	88 c9 00 14 	lbz     r6,20(r9)                              
ffc241b0:	88 e9 00 15 	lbz     r7,21(r9)                              
ffc241b4:	89 09 00 17 	lbz     r8,23(r9)                              
ffc241b8:	54 c6 c0 0e 	rlwinm  r6,r6,24,0,7                           
ffc241bc:	89 49 00 16 	lbz     r10,22(r9)                             
ffc241c0:	54 e7 80 1e 	rlwinm  r7,r7,16,0,15                          
ffc241c4:	7c c7 3b 78 	or      r7,r6,r7                               
ffc241c8:	7c e8 43 78 	or      r8,r7,r8                               
ffc241cc:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc241d0:	7d 0a 53 78 	or      r10,r8,r10                             
    shared->mtime = rtems_rfs_inode_get_mtime (&shared->inode);       
ffc241d4:	91 5f 00 90 	stw     r10,144(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);                   
ffc241d8:	88 e9 00 18 	lbz     r7,24(r9)                              
ffc241dc:	89 09 00 19 	lbz     r8,25(r9)                              
ffc241e0:	89 49 00 1b 	lbz     r10,27(r9)                             
ffc241e4:	54 e7 c0 0e 	rlwinm  r7,r7,24,0,7                           
ffc241e8:	89 29 00 1a 	lbz     r9,26(r9)                              
ffc241ec:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          
ffc241f0:	7c e8 43 78 	or      r8,r7,r8                               
    shared->ctime = rtems_rfs_inode_get_ctime (&shared->inode);       
    shared->fs = fs;                                                  
ffc241f4:	93 3f 00 98 	stw     r25,152(r31)                           
ffc241f8:	7d 0a 53 78 	or      r10,r8,r10                             
ffc241fc:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc24200:	7d 49 4b 78 	or      r9,r10,r9                              
    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);       
ffc24204:	91 3f 00 94 	stw     r9,148(r31)                            
ffc24208:	4b fe c9 69 	bl      ffc10b70 <_Chain_Append>               
    shared->fs = fs;                                                  
                                                                      
    rtems_chain_append (&fs->file_shares, &shared->link);             
                                                                      
    rtems_rfs_inode_unload (fs, &shared->inode, false);               
ffc2420c:	7f 84 e3 78 	mr      r4,r28                                 
ffc24210:	38 a0 00 00 	li      r5,0                                   
ffc24214:	7f 23 cb 78 	mr      r3,r25                                 
ffc24218:	4b ff 1c b5 	bl      ffc15ecc <rtems_rfs_inode_unload>      
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_OPEN))                  
ffc2421c:	38 60 00 08 	li      r3,8                                   
ffc24220:	38 80 00 00 	li      r4,0                                   
ffc24224:	4b ff 3c 79 	bl      ffc17e9c <rtems_rfs_trace>             
ffc24228:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2422c:	41 9e fd 54 	beq+    cr7,ffc23f80 <rtems_rfs_file_open+0xdc><== ALWAYS TAKEN
      printf ("rtems-rfs: file-open: ino=%" PRId32 " share created\n", ino);
ffc24230:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc24234:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc24238:	38 63 dd 9c 	addi    r3,r3,-8804                            <== NOT EXECUTED
ffc2423c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc24240:	48 00 68 59 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc24244:	4b ff fd 3c 	b       ffc23f80 <rtems_rfs_file_open+0xdc>    <== NOT EXECUTED
                                                                      

ffc24b48 <rtems_rfs_file_seek>: int rtems_rfs_file_seek (rtems_rfs_file_handle* handle, rtems_rfs_pos pos, rtems_rfs_pos* new_pos) {
ffc24b48:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc24b4c:	7c 08 02 a6 	mflr    r0                                     
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc24b50:	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)                  
{                                                                     
ffc24b54:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc24b58:	7c 7f 1b 78 	mr      r31,r3                                 
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc24b5c:	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)                  
{                                                                     
ffc24b60:	93 81 00 20 	stw     r28,32(r1)                             
ffc24b64:	7c fc 3b 78 	mr      r28,r7                                 
ffc24b68:	93 a1 00 24 	stw     r29,36(r1)                             
ffc24b6c:	7c dd 33 78 	mr      r29,r6                                 
ffc24b70:	93 c1 00 28 	stw     r30,40(r1)                             
ffc24b74:	7c be 2b 78 	mr      r30,r5                                 
ffc24b78:	90 01 00 34 	stw     r0,52(r1)                              
ffc24b7c:	93 61 00 1c 	stw     r27,28(r1)                             
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc24b80:	4b ff 33 1d 	bl      ffc17e9c <rtems_rfs_trace>             
ffc24b84:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24b88:	40 9e 00 d8 	bne-    cr7,ffc24c60 <rtems_rfs_file_seek+0x118><== NEVER TAKEN
   *     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),
ffc24b8c:	80 9f 00 1c 	lwz     r4,28(r31)                             
ffc24b90:	80 64 00 98 	lwz     r3,152(r4)                             
ffc24b94:	38 84 00 84 	addi    r4,r4,132                              
ffc24b98:	4b ff c0 61 	bl      ffc20bf8 <rtems_rfs_block_get_size>    
ffc24b9c:	7f 9e 18 40 	cmplw   cr7,r30,r3                             
ffc24ba0:	41 9d 00 80 	bgt-    cr7,ffc24c20 <rtems_rfs_file_seek+0xd8><== NEVER TAKEN
ffc24ba4:	7f 9e 18 00 	cmpw    cr7,r30,r3                             
ffc24ba8:	41 9e 00 70 	beq-    cr7,ffc24c18 <rtems_rfs_file_seek+0xd0><== ALWAYS TAKEN
                                            handle->shared))          
  {                                                                   
    rtems_rfs_file_set_bpos (handle, pos);                            
ffc24bac:	81 3f 00 1c 	lwz     r9,28(r31)                             
ffc24bb0:	3b 7f 00 10 	addi    r27,r31,16                             
ffc24bb4:	7f c5 f3 78 	mr      r5,r30                                 
ffc24bb8:	80 69 00 98 	lwz     r3,152(r9)                             
ffc24bbc:	7f a6 eb 78 	mr      r6,r29                                 
ffc24bc0:	7f 67 db 78 	mr      r7,r27                                 
ffc24bc4:	4b ff be ed 	bl      ffc20ab0 <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))          
ffc24bc8:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc24bcc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc24bd0:	41 9e 00 60 	beq-    cr7,ffc24c30 <rtems_rfs_file_seek+0xe8>
    {                                                                 
      rtems_rfs_buffer_block block;                                   
      int                    rc;                                      
                                                                      
      rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),      
ffc24bd4:	80 9f 00 1c 	lwz     r4,28(r31)                             
ffc24bd8:	7f 65 db 78 	mr      r5,r27                                 
ffc24bdc:	38 c1 00 08 	addi    r6,r1,8                                
ffc24be0:	80 64 00 98 	lwz     r3,152(r4)                             
ffc24be4:	38 84 00 34 	addi    r4,r4,52                               
ffc24be8:	4b ff c4 71 	bl      ffc21058 <rtems_rfs_block_map_find>    
                                     rtems_rfs_file_map (handle),     
                                     rtems_rfs_file_bpos (handle),    
                                     &block);                         
      if (rc > 0)                                                     
ffc24bec:	2c 03 00 00 	cmpwi   r3,0                                   
ffc24bf0:	40 81 00 8c 	ble-    ffc24c7c <rtems_rfs_file_seek+0x134>   <== ALWAYS TAKEN
      return rc;                                                      
  }                                                                   
                                                                      
  *new_pos = pos;                                                     
  return 0;                                                           
}                                                                     
ffc24bf4:	80 01 00 34 	lwz     r0,52(r1)                              <== NOT EXECUTED
ffc24bf8:	83 61 00 1c 	lwz     r27,28(r1)                             <== NOT EXECUTED
ffc24bfc:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc24c00:	83 81 00 20 	lwz     r28,32(r1)                             <== NOT EXECUTED
ffc24c04:	83 a1 00 24 	lwz     r29,36(r1)                             <== NOT EXECUTED
ffc24c08:	83 c1 00 28 	lwz     r30,40(r1)                             <== NOT EXECUTED
ffc24c0c:	83 e1 00 2c 	lwz     r31,44(r1)                             <== NOT EXECUTED
ffc24c10:	38 21 00 30 	addi    r1,r1,48                               <== NOT EXECUTED
ffc24c14:	4e 80 00 20 	blr                                            <== 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),
ffc24c18:	7f 9d 20 40 	cmplw   cr7,r29,r4                             
ffc24c1c:	40 bd ff 90 	ble-    cr7,ffc24bac <rtems_rfs_file_seek+0x64>
  {                                                                   
    /*                                                                
     * 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);                      
ffc24c20:	7f e3 fb 78 	mr      r3,r31                                 
ffc24c24:	4b ff ff 01 	bl      ffc24b24 <rtems_rfs_file_io_release>   
    if (rc > 0)                                                       
ffc24c28:	2c 03 00 00 	cmpwi   r3,0                                   
ffc24c2c:	41 81 ff c8 	bgt+    ffc24bf4 <rtems_rfs_file_seek+0xac>    <== NEVER TAKEN
      return rc;                                                      
  }                                                                   
                                                                      
  *new_pos = pos;                                                     
  return 0;                                                           
}                                                                     
ffc24c30:	80 01 00 34 	lwz     r0,52(r1)                              
    if (rc > 0)                                                       
      return rc;                                                      
  }                                                                   
                                                                      
  *new_pos = pos;                                                     
  return 0;                                                           
ffc24c34:	38 60 00 00 	li      r3,0                                   
    int rc = rtems_rfs_file_io_release (handle);                      
    if (rc > 0)                                                       
      return rc;                                                      
  }                                                                   
                                                                      
  *new_pos = pos;                                                     
ffc24c38:	93 dc 00 00 	stw     r30,0(r28)                             
  return 0;                                                           
}                                                                     
ffc24c3c:	7c 08 03 a6 	mtlr    r0                                     
    int rc = rtems_rfs_file_io_release (handle);                      
    if (rc > 0)                                                       
      return rc;                                                      
  }                                                                   
                                                                      
  *new_pos = pos;                                                     
ffc24c40:	93 bc 00 04 	stw     r29,4(r28)                             
  return 0;                                                           
}                                                                     
ffc24c44:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc24c48:	83 81 00 20 	lwz     r28,32(r1)                             
ffc24c4c:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc24c50:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc24c54:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc24c58:	38 21 00 30 	addi    r1,r1,48                               
ffc24c5c:	4e 80 00 20 	blr                                            
rtems_rfs_file_seek (rtems_rfs_file_handle* handle,                   
                     rtems_rfs_pos          pos,                      
                     rtems_rfs_pos*         new_pos)                  
{                                                                     
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
    printf ("rtems-rfs: file-seek: new=%" PRIu64 "\n", pos);          
ffc24c60:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc24c64:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc24c68:	7f a6 eb 78 	mr      r6,r29                                 <== NOT EXECUTED
ffc24c6c:	38 63 df f0 	addi    r3,r3,-8208                            <== NOT EXECUTED
ffc24c70:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc24c74:	48 00 5e 25 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc24c78:	4b ff ff 14 	b       ffc24b8c <rtems_rfs_file_seek+0x44>    <== NOT EXECUTED
                                     rtems_rfs_file_map (handle),     
                                     rtems_rfs_file_bpos (handle),    
                                     &block);                         
      if (rc > 0)                                                     
        return rc;                                                    
      if (rtems_rfs_buffer_bnum (&handle->buffer) != block)           
ffc24c7c:	81 5f 00 08 	lwz     r10,8(r31)                             
ffc24c80:	81 21 00 08 	lwz     r9,8(r1)                               
ffc24c84:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc24c88:	41 be ff a8 	beq-    cr7,ffc24c30 <rtems_rfs_file_seek+0xe8><== ALWAYS TAKEN
      {                                                               
        rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
ffc24c8c:	81 3f 00 1c 	lwz     r9,28(r31)                             <== NOT EXECUTED
ffc24c90:	38 9f 00 04 	addi    r4,r31,4                               <== NOT EXECUTED
ffc24c94:	80 69 00 98 	lwz     r3,152(r9)                             <== NOT EXECUTED
ffc24c98:	4b ff d0 6d 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
                                              rtems_rfs_file_buffer (handle));
        if (rc > 0)                                                   
ffc24c9c:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc24ca0:	41 81 ff 54 	bgt+    ffc24bf4 <rtems_rfs_file_seek+0xac>    <== NOT EXECUTED
ffc24ca4:	4b ff ff 8c 	b       ffc24c30 <rtems_rfs_file_seek+0xe8>    <== NOT EXECUTED
                                                                      

ffc24ca8 <rtems_rfs_file_set_size>: } int rtems_rfs_file_set_size (rtems_rfs_file_handle* handle, rtems_rfs_pos new_size) {
ffc24ca8:	94 21 ff b0 	stwu    r1,-80(r1)                             
ffc24cac:	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))                      
ffc24cb0:	38 80 00 00 	li      r4,0                                   
}                                                                     
                                                                      
int                                                                   
rtems_rfs_file_set_size (rtems_rfs_file_handle* handle,               
                         rtems_rfs_pos          new_size)             
{                                                                     
ffc24cb4:	90 01 00 54 	stw     r0,84(r1)                              
ffc24cb8:	93 61 00 3c 	stw     r27,60(r1)                             
ffc24cbc:	7c 7b 1b 78 	mr      r27,r3                                 
  rtems_rfs_block_map* map  = rtems_rfs_file_map (handle);            
  rtems_rfs_pos        size;                                          
  int                  rc;                                            
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_FILE_IO))                      
ffc24cc0:	38 60 00 20 	li      r3,32                                  
}                                                                     
                                                                      
int                                                                   
rtems_rfs_file_set_size (rtems_rfs_file_handle* handle,               
                         rtems_rfs_pos          new_size)             
{                                                                     
ffc24cc4:	92 e1 00 2c 	stw     r23,44(r1)                             
ffc24cc8:	93 41 00 38 	stw     r26,56(r1)                             
ffc24ccc:	93 c1 00 48 	stw     r30,72(r1)                             
ffc24cd0:	7c be 2b 78 	mr      r30,r5                                 
ffc24cd4:	93 e1 00 4c 	stw     r31,76(r1)                             
ffc24cd8:	7c df 33 78 	mr      r31,r6                                 
  rtems_rfs_block_map* map  = rtems_rfs_file_map (handle);            
ffc24cdc:	83 5b 00 1c 	lwz     r26,28(r27)                            
}                                                                     
                                                                      
int                                                                   
rtems_rfs_file_set_size (rtems_rfs_file_handle* handle,               
                         rtems_rfs_pos          new_size)             
{                                                                     
ffc24ce0:	92 41 00 18 	stw     r18,24(r1)                             
  rtems_rfs_block_map* map  = rtems_rfs_file_map (handle);            
ffc24ce4:	3a fa 00 34 	addi    r23,r26,52                             
}                                                                     
                                                                      
int                                                                   
rtems_rfs_file_set_size (rtems_rfs_file_handle* handle,               
                         rtems_rfs_pos          new_size)             
{                                                                     
ffc24ce8:	92 61 00 1c 	stw     r19,28(r1)                             
ffc24cec:	92 81 00 20 	stw     r20,32(r1)                             
ffc24cf0:	92 a1 00 24 	stw     r21,36(r1)                             
ffc24cf4:	92 c1 00 28 	stw     r22,40(r1)                             
ffc24cf8:	93 01 00 30 	stw     r24,48(r1)                             
ffc24cfc:	93 21 00 34 	stw     r25,52(r1)                             
ffc24d00:	93 81 00 40 	stw     r28,64(r1)                             
ffc24d04:	93 a1 00 44 	stw     r29,68(r1)                             
  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))                      
ffc24d08:	4b ff 31 95 	bl      ffc17e9c <rtems_rfs_trace>             
ffc24d0c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc24d10:	40 9e 02 68 	bne-    cr7,ffc24f78 <rtems_rfs_file_set_size+0x2d0><== NEVER TAKEN
    printf ("rtems-rfs: file-set-size: size=%" PRIu64 "\n", new_size);
                                                                      
  size = rtems_rfs_file_size (handle);                                
ffc24d14:	80 9b 00 1c 	lwz     r4,28(r27)                             
ffc24d18:	80 64 00 98 	lwz     r3,152(r4)                             
ffc24d1c:	38 84 00 84 	addi    r4,r4,132                              
ffc24d20:	4b ff be d9 	bl      ffc20bf8 <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)                                               
ffc24d24:	7f 9e 18 00 	cmpw    cr7,r30,r3                             
ffc24d28:	41 9e 02 80 	beq-    cr7,ffc24fa8 <rtems_rfs_file_set_size+0x300><== ALWAYS TAKEN
  {                                                                   
    /*                                                                
     * Short cut for the common truncate on open call.                
     */                                                               
    if (new_size == 0)                                                
ffc24d2c:	7f c9 fb 79 	or.     r9,r30,r31                             <== NOT EXECUTED
ffc24d30:	41 82 02 88 	beq-    ffc24fb8 <rtems_rfs_file_set_size+0x310><== NOT EXECUTED
      if (rc > 0)                                                     
        return rc;                                                    
    }                                                                 
    else                                                              
    {                                                                 
      if (size < new_size)                                            
ffc24d34:	7f 1e 18 40 	cmplw   cr6,r30,r3                             
ffc24d38:	40 99 01 4c 	ble-    cr6,ffc24e84 <rtems_rfs_file_set_size+0x1dc><== ALWAYS TAKEN
        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));
ffc24d3c:	82 5b 00 1c 	lwz     r18,28(r27)                            
         */                                                           
        rtems_rfs_pos count;                                          
        uint32_t      length;                                         
        bool          read_block;                                     
                                                                      
        count = new_size - size;                                      
ffc24d40:	7f e4 f8 10 	subfc   r31,r4,r31                             
ffc24d44:	7f c3 f1 10 	subfe   r30,r3,r30                             
        length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
        read_block = false;                                           
                                                                      
        while (count)                                                 
ffc24d48:	7f ca fb 79 	or.     r10,r30,r31                            
        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));
ffc24d4c:	81 32 00 98 	lwz     r9,152(r18)                            
ffc24d50:	7e 56 93 78 	mr      r22,r18                                
ffc24d54:	83 29 00 08 	lwz     r25,8(r9)                              
        read_block = false;                                           
                                                                      
        while (count)                                                 
ffc24d58:	3a 60 00 00 	li      r19,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);
ffc24d5c:	3b 00 00 00 	li      r24,0                                  
ffc24d60:	3a 80 00 01 	li      r20,1                                  
          }                                                           
                                                                      
          /*                                                          
           * Only read the block if the length is not the block size. 
           */                                                         
          rc = rtems_rfs_buffer_handle_request (rtems_rfs_file_fs (handle),
ffc24d64:	3a bb 00 04 	addi    r21,r27,4                              
                                                                      
        count = new_size - size;                                      
        length = rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
        read_block = false;                                           
                                                                      
        while (count)                                                 
ffc24d68:	40 a2 00 98 	bne+    ffc24e00 <rtems_rfs_file_set_size+0x158><== ALWAYS TAKEN
ffc24d6c:	48 00 02 68 	b       ffc24fd4 <rtems_rfs_file_set_size+0x32c><== NOT EXECUTED
                                           map, 1, &block);           
            if (rc > 0)                                               
              return rc;                                              
          }                                                           
                                                                      
          if (count < (length - bpos.boff))                           
ffc24d70:	7f 8a f8 40 	cmplw   cr7,r10,r31                            
ffc24d74:	40 9d 01 04 	ble-    cr7,ffc24e78 <rtems_rfs_file_set_size+0x1d0>
          {                                                           
            length = count + bpos.boff;                               
ffc24d78:	7f 29 fa 14 	add     r25,r9,r31                             
ffc24d7c:	9a 9a 00 34 	stb     r20,52(r26)                            
            read_block = true;                                        
ffc24d80:	3a 60 00 01 	li      r19,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;                                          
ffc24d84:	93 3a 00 40 	stw     r25,64(r26)                            
          }                                                           
                                                                      
          /*                                                          
           * Only read the block if the length is not the block size. 
           */                                                         
          rc = rtems_rfs_buffer_handle_request (rtems_rfs_file_fs (handle),
ffc24d88:	81 3b 00 1c 	lwz     r9,28(r27)                             
ffc24d8c:	7e a4 ab 78 	mr      r4,r21                                 
ffc24d90:	80 a1 00 14 	lwz     r5,20(r1)                              
ffc24d94:	7e 66 9b 78 	mr      r6,r19                                 
ffc24d98:	80 69 00 98 	lwz     r3,152(r9)                             
ffc24d9c:	4b ff d1 7d 	bl      ffc21f18 <rtems_rfs_buffer_handle_request>
                                                rtems_rfs_file_buffer (handle),
                                                block, read_block);   
          if (rc > 0)                                                 
ffc24da0:	2c 03 00 00 	cmpwi   r3,0                                   
ffc24da4:	41 81 01 8c 	bgt-    ffc24f30 <rtems_rfs_file_set_size+0x288><== NEVER TAKEN
            return rc;                                                
                                                                      
          dst = rtems_rfs_buffer_data (&handle->buffer);              
ffc24da8:	81 5b 00 0c 	lwz     r10,12(r27)                            
          memset (dst + bpos.boff, 0, length - bpos.boff);            
ffc24dac:	38 80 00 00 	li      r4,0                                   
ffc24db0:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc24db4:	80 6a 00 1c 	lwz     r3,28(r10)                             
ffc24db8:	7c a9 c8 50 	subf    r5,r9,r25                              
ffc24dbc:	7c 63 4a 14 	add     r3,r3,r9                               
ffc24dc0:	48 00 5a 7d 	bl      ffc2a83c <memset>                      
                                                                      
          rtems_rfs_buffer_mark_dirty (rtems_rfs_file_buffer (handle));
                                                                      
          rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
ffc24dc4:	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));
ffc24dc8:	9a 9b 00 04 	stb     r20,4(r27)                             
                                                                      
          rc = rtems_rfs_buffer_handle_release (rtems_rfs_file_fs (handle),
ffc24dcc:	7e a4 ab 78 	mr      r4,r21                                 
ffc24dd0:	80 69 00 98 	lwz     r3,152(r9)                             
ffc24dd4:	4b ff cf 31 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
                                                rtems_rfs_file_buffer (handle));
          if (rc > 0)                                                 
ffc24dd8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc24ddc:	41 81 01 54 	bgt-    ffc24f30 <rtems_rfs_file_set_size+0x288><== NEVER TAKEN
            return rc;                                                
                                                                      
          count -= length - bpos.boff;                                
ffc24de0:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc24de4:	3b 80 00 00 	li      r28,0                                  
ffc24de8:	7f a9 c8 50 	subf    r29,r9,r25                             
ffc24dec:	7f fd f8 10 	subfc   r31,r29,r31                            
ffc24df0:	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)                                                 
ffc24df4:	7f c9 fb 79 	or.     r9,r30,r31                             
ffc24df8:	41 82 01 d8 	beq-    ffc24fd0 <rtems_rfs_file_set_size+0x328>
ffc24dfc:	82 db 00 1c 	lwz     r22,28(r27)                            
          /*                                                          
           * 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);
ffc24e00:	81 3a 00 40 	lwz     r9,64(r26)                             
ffc24e04:	81 5a 00 3c 	lwz     r10,60(r26)                            
ffc24e08:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc24e0c:	91 21 00 0c 	stw     r9,12(r1)                              
ffc24e10:	91 41 00 08 	stw     r10,8(r1)                              
ffc24e14:	93 01 00 10 	stw     r24,16(r1)                             
ffc24e18:	41 9e 00 0c 	beq-    cr7,ffc24e24 <rtems_rfs_file_set_size+0x17c>
ffc24e1c:	39 4a ff ff 	addi    r10,r10,-1                             
ffc24e20:	91 41 00 08 	stw     r10,8(r1)                              
          rc = rtems_rfs_block_map_find (rtems_rfs_file_fs (handle),  
ffc24e24:	80 76 00 98 	lwz     r3,152(r22)                            
ffc24e28:	7e e4 bb 78 	mr      r4,r23                                 
ffc24e2c:	38 a1 00 08 	addi    r5,r1,8                                
ffc24e30:	38 c1 00 14 	addi    r6,r1,20                               
ffc24e34:	4b ff c2 25 	bl      ffc21058 <rtems_rfs_block_map_find>    
                                         map, &bpos, &block);         
          if (rc > 0)                                                 
ffc24e38:	2c 03 00 00 	cmpwi   r3,0                                   
ffc24e3c:	40 81 00 2c 	ble-    ffc24e68 <rtems_rfs_file_set_size+0x1c0>
          {                                                           
            /*                                                        
             * Have we reached the EOF ?                              
             */                                                       
            if (rc != ENXIO)                                          
ffc24e40:	2f 83 00 06 	cmpwi   cr7,r3,6                               
ffc24e44:	40 9e 00 ec 	bne-    cr7,ffc24f30 <rtems_rfs_file_set_size+0x288><== NEVER TAKEN
              return rc;                                              
                                                                      
            rc = rtems_rfs_block_map_grow (rtems_rfs_file_fs (handle),
ffc24e48:	81 3b 00 1c 	lwz     r9,28(r27)                             
ffc24e4c:	7e e4 bb 78 	mr      r4,r23                                 
ffc24e50:	38 a0 00 01 	li      r5,1                                   
ffc24e54:	80 69 00 98 	lwz     r3,152(r9)                             
ffc24e58:	38 c1 00 14 	addi    r6,r1,20                               
ffc24e5c:	4b ff c4 a9 	bl      ffc21304 <rtems_rfs_block_map_grow>    
                                           map, 1, &block);           
            if (rc > 0)                                               
ffc24e60:	2c 03 00 00 	cmpwi   r3,0                                   
ffc24e64:	41 81 00 cc 	bgt-    ffc24f30 <rtems_rfs_file_set_size+0x288><== NEVER TAKEN
              return rc;                                              
          }                                                           
                                                                      
          if (count < (length - bpos.boff))                           
ffc24e68:	7f 98 f0 00 	cmpw    cr7,r24,r30                            
ffc24e6c:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc24e70:	7d 49 c8 50 	subf    r10,r9,r25                             
ffc24e74:	41 be fe fc 	beq-    cr7,ffc24d70 <rtems_rfs_file_set_size+0xc8><== ALWAYS TAKEN
ffc24e78:	93 1a 00 40 	stw     r24,64(r26)                            
  map->dirty = true;                                                  
ffc24e7c:	9a 9a 00 34 	stb     r20,52(r26)                            
ffc24e80:	4b ff ff 08 	b       ffc24d88 <rtems_rfs_file_set_size+0xe0>
      if (rc > 0)                                                     
        return rc;                                                    
    }                                                                 
    else                                                              
    {                                                                 
      if (size < new_size)                                            
ffc24e84:	41 9e 01 80 	beq-    cr7,ffc25004 <rtems_rfs_file_set_size+0x35c><== ALWAYS TAKEN
        uint32_t           offset;                                    
                                                                      
        blocks =                                                      
          rtems_rfs_block_map_count (map) -                           
          (((new_size - 1) /                                          
            rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle))) + 1);
ffc24e88:	82 db 00 1c 	lwz     r22,28(r27)                            
        rtems_rfs_block_no blocks;                                    
        uint32_t           offset;                                    
                                                                      
        blocks =                                                      
          rtems_rfs_block_map_count (map) -                           
          (((new_size - 1) /                                          
ffc24e8c:	38 a0 00 00 	li      r5,0                                   
ffc24e90:	30 9f ff ff 	addic   r4,r31,-1                              
ffc24e94:	7c 7e 01 d4 	addme   r3,r30                                 
         */                                                           
        rtems_rfs_block_no blocks;                                    
        uint32_t           offset;                                    
                                                                      
        blocks =                                                      
          rtems_rfs_block_map_count (map) -                           
ffc24e98:	83 ba 00 3c 	lwz     r29,60(r26)                            
          (((new_size - 1) /                                          
            rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle))) + 1);
ffc24e9c:	83 36 00 98 	lwz     r25,152(r22)                           
        rtems_rfs_block_no blocks;                                    
        uint32_t           offset;                                    
                                                                      
        blocks =                                                      
          rtems_rfs_block_map_count (map) -                           
          (((new_size - 1) /                                          
ffc24ea0:	83 99 00 08 	lwz     r28,8(r25)                             
ffc24ea4:	7f 86 e3 78 	mr      r6,r28                                 
ffc24ea8:	48 01 34 89 	bl      ffc38330 <__udivdi3>                   
            rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle))) + 1);
                                                                      
        offset =                                                      
          new_size % rtems_rfs_fs_block_size (rtems_rfs_file_fs (handle));
ffc24eac:	7f c3 f3 78 	mr      r3,r30                                 
         * Shrink                                                     
         */                                                           
        rtems_rfs_block_no blocks;                                    
        uint32_t           offset;                                    
                                                                      
        blocks =                                                      
ffc24eb0:	7c 84 20 f8 	not     r4,r4                                  
ffc24eb4:	7f 04 ea 14 	add     r24,r4,r29                             
          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));
ffc24eb8:	38 a0 00 00 	li      r5,0                                   
ffc24ebc:	7f e4 fb 78 	mr      r4,r31                                 
ffc24ec0:	7f 86 e3 78 	mr      r6,r28                                 
ffc24ec4:	48 01 38 65 	bl      ffc38728 <__umoddi3>                   
                                                                      
        if (blocks)                                                   
ffc24ec8:	2f 98 00 00 	cmpwi   cr7,r24,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));
ffc24ecc:	7c 9f 23 78 	mr      r31,r4                                 
                                                                      
        if (blocks)                                                   
ffc24ed0:	40 9e 01 68 	bne-    cr7,ffc25038 <rtems_rfs_file_set_size+0x390>
 */                                                                   
static inline void                                                    
rtems_rfs_block_map_set_size_offset (rtems_rfs_block_map* map,        
                                     rtems_rfs_block_off  offset)     
{                                                                     
  map->size.offset = offset;                                          
ffc24ed4:	93 fa 00 40 	stw     r31,64(r26)                            
  map->dirty = true;                                                  
ffc24ed8:	39 40 00 01 	li      r10,1                                  
            return rc;                                                
        }                                                             
                                                                      
        rtems_rfs_block_map_set_size_offset (map, offset);            
                                                                      
        if (rtems_rfs_block_pos_past_end (rtems_rfs_file_bpos (handle),
ffc24edc:	81 3b 00 10 	lwz     r9,16(r27)                             
ffc24ee0:	99 5a 00 34 	stb     r10,52(r26)                            
ffc24ee4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc24ee8:	41 9e 01 28 	beq-    cr7,ffc25010 <rtems_rfs_file_set_size+0x368>
ffc24eec:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc24ef0:	40 9e 01 20 	bne-    cr7,ffc25010 <rtems_rfs_file_set_size+0x368><== ALWAYS TAKEN
                                          rtems_rfs_block_map_size (map)))
          rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map),
ffc24ef4:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc24ef8:	93 bb 00 10 	stw     r29,16(r27)                            
ffc24efc:	39 20 00 00 	li      r9,0                                   
ffc24f00:	93 fb 00 14 	stw     r31,20(r27)                            
ffc24f04:	91 3b 00 18 	stw     r9,24(r27)                             
ffc24f08:	41 9e 00 0c 	beq-    cr7,ffc24f14 <rtems_rfs_file_set_size+0x26c><== NEVER TAKEN
ffc24f0c:	39 3d ff ff 	addi    r9,r29,-1                              
ffc24f10:	91 3b 00 10 	stw     r9,16(r27)                             
ffc24f14:	7e d2 b3 78 	mr      r18,r22                                
    }                                                                 
                                                                      
    handle->shared->size.count  = rtems_rfs_block_map_count (map);    
    handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
                                                                      
    if (rtems_rfs_file_update_mtime (handle))                         
ffc24f18:	81 3b 00 00 	lwz     r9,0(r27)                              
          rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map),
                                         rtems_rfs_file_bpos (handle));
      }                                                               
    }                                                                 
                                                                      
    handle->shared->size.count  = rtems_rfs_block_map_count (map);    
ffc24f1c:	93 b2 00 84 	stw     r29,132(r18)                           
    handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
                                                                      
    if (rtems_rfs_file_update_mtime (handle))                         
ffc24f20:	71 2a 00 02 	andi.   r10,r9,2                               
                                         rtems_rfs_file_bpos (handle));
      }                                                               
    }                                                                 
                                                                      
    handle->shared->size.count  = rtems_rfs_block_map_count (map);    
    handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
ffc24f24:	93 f2 00 88 	stw     r31,136(r18)                           
                                                                      
    if (rtems_rfs_file_update_mtime (handle))                         
ffc24f28:	41 82 00 c8 	beq-    ffc24ff0 <rtems_rfs_file_set_size+0x348><== ALWAYS TAKEN
      handle->shared->mtime = time (NULL);                            
  }                                                                   
                                                                      
  return 0;                                                           
ffc24f2c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc24f30:	80 01 00 54 	lwz     r0,84(r1)                              
ffc24f34:	82 41 00 18 	lwz     r18,24(r1)                             
ffc24f38:	7c 08 03 a6 	mtlr    r0                                     
ffc24f3c:	82 61 00 1c 	lwz     r19,28(r1)                             
ffc24f40:	82 81 00 20 	lwz     r20,32(r1)                             
ffc24f44:	82 a1 00 24 	lwz     r21,36(r1)                             
ffc24f48:	82 c1 00 28 	lwz     r22,40(r1)                             
ffc24f4c:	82 e1 00 2c 	lwz     r23,44(r1)                             
ffc24f50:	83 01 00 30 	lwz     r24,48(r1)                             
ffc24f54:	83 21 00 34 	lwz     r25,52(r1)                             
ffc24f58:	83 41 00 38 	lwz     r26,56(r1)                             
ffc24f5c:	83 61 00 3c 	lwz     r27,60(r1)                             
ffc24f60:	83 81 00 40 	lwz     r28,64(r1)                             
ffc24f64:	83 a1 00 44 	lwz     r29,68(r1)                             
ffc24f68:	83 c1 00 48 	lwz     r30,72(r1)                             
ffc24f6c:	83 e1 00 4c 	lwz     r31,76(r1)                             
ffc24f70:	38 21 00 50 	addi    r1,r1,80                               
ffc24f74:	4e 80 00 20 	blr                                            
  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))                      
    printf ("rtems-rfs: file-set-size: size=%" PRIu64 "\n", new_size);
ffc24f78:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc24f7c:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc24f80:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
ffc24f84:	38 63 e0 10 	addi    r3,r3,-8176                            <== NOT EXECUTED
ffc24f88:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc24f8c:	48 00 5b 0d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
                                                                      
  size = rtems_rfs_file_size (handle);                                
ffc24f90:	80 9b 00 1c 	lwz     r4,28(r27)                             <== NOT EXECUTED
ffc24f94:	80 64 00 98 	lwz     r3,152(r4)                             <== NOT EXECUTED
ffc24f98:	38 84 00 84 	addi    r4,r4,132                              <== NOT EXECUTED
ffc24f9c:	4b ff bc 5d 	bl      ffc20bf8 <rtems_rfs_block_get_size>    <== NOT EXECUTED
  /*                                                                  
   * 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)                                               
ffc24fa0:	7f 9e 18 00 	cmpw    cr7,r30,r3                             <== NOT EXECUTED
ffc24fa4:	40 9e fd 88 	bne+    cr7,ffc24d2c <rtems_rfs_file_set_size+0x84><== NOT EXECUTED
ffc24fa8:	7f 1f 20 00 	cmpw    cr6,r31,r4                             
ffc24fac:	41 ba ff 80 	beq-    cr6,ffc24f2c <rtems_rfs_file_set_size+0x284>
  {                                                                   
    /*                                                                
     * Short cut for the common truncate on open call.                
     */                                                               
    if (new_size == 0)                                                
ffc24fb0:	7f c9 fb 79 	or.     r9,r30,r31                             
ffc24fb4:	40 82 fd 80 	bne+    ffc24d34 <rtems_rfs_file_set_size+0x8c>
    {                                                                 
      rc = rtems_rfs_block_map_free_all (rtems_rfs_file_fs (handle), map);
ffc24fb8:	81 3b 00 1c 	lwz     r9,28(r27)                             
ffc24fbc:	7e e4 bb 78 	mr      r4,r23                                 
ffc24fc0:	80 69 00 98 	lwz     r3,152(r9)                             
ffc24fc4:	4b ff ca e1 	bl      ffc21aa4 <rtems_rfs_block_map_free_all>
      if (rc > 0)                                                     
ffc24fc8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc24fcc:	41 81 ff 64 	bgt+    ffc24f30 <rtems_rfs_file_set_size+0x288><== NEVER TAKEN
ffc24fd0:	82 5b 00 1c 	lwz     r18,28(r27)                            
    }                                                                 
                                                                      
    handle->shared->size.count  = rtems_rfs_block_map_count (map);    
    handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
                                                                      
    if (rtems_rfs_file_update_mtime (handle))                         
ffc24fd4:	81 3b 00 00 	lwz     r9,0(r27)                              
ffc24fd8:	83 ba 00 3c 	lwz     r29,60(r26)                            
ffc24fdc:	71 2a 00 02 	andi.   r10,r9,2                               
ffc24fe0:	83 fa 00 40 	lwz     r31,64(r26)                            
          rtems_rfs_block_size_get_bpos (rtems_rfs_block_map_size (map),
                                         rtems_rfs_file_bpos (handle));
      }                                                               
    }                                                                 
                                                                      
    handle->shared->size.count  = rtems_rfs_block_map_count (map);    
ffc24fe4:	93 b2 00 84 	stw     r29,132(r18)                           
    handle->shared->size.offset = rtems_rfs_block_map_size_offset (map);
ffc24fe8:	93 f2 00 88 	stw     r31,136(r18)                           
                                                                      
    if (rtems_rfs_file_update_mtime (handle))                         
ffc24fec:	40 82 ff 40 	bne+    ffc24f2c <rtems_rfs_file_set_size+0x284><== NEVER TAKEN
      handle->shared->mtime = time (NULL);                            
ffc24ff0:	38 60 00 00 	li      r3,0                                   
ffc24ff4:	48 00 9e 19 	bl      ffc2ee0c <time>                        
ffc24ff8:	90 72 00 90 	stw     r3,144(r18)                            
  }                                                                   
                                                                      
  return 0;                                                           
ffc24ffc:	38 60 00 00 	li      r3,0                                   
ffc25000:	4b ff ff 30 	b       ffc24f30 <rtems_rfs_file_set_size+0x288>
      if (rc > 0)                                                     
        return rc;                                                    
    }                                                                 
    else                                                              
    {                                                                 
      if (size < new_size)                                            
ffc25004:	7f 9f 20 40 	cmplw   cr7,r31,r4                             
ffc25008:	40 bd fe 80 	ble-    cr7,ffc24e88 <rtems_rfs_file_set_size+0x1e0>
ffc2500c:	4b ff fd 30 	b       ffc24d3c <rtems_rfs_file_set_size+0x94>
            return rc;                                                
        }                                                             
                                                                      
        rtems_rfs_block_map_set_size_offset (map, offset);            
                                                                      
        if (rtems_rfs_block_pos_past_end (rtems_rfs_file_bpos (handle),
ffc25010:	7f 89 e8 40 	cmplw   cr7,r9,r29                             
ffc25014:	40 bc fe e0 	bge-    cr7,ffc24ef4 <rtems_rfs_file_set_size+0x24c><== NEVER TAKEN
ffc25018:	39 5d ff ff 	addi    r10,r29,-1                             
ffc2501c:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc25020:	40 9e fe f4 	bne+    cr7,ffc24f14 <rtems_rfs_file_set_size+0x26c><== NEVER TAKEN
ffc25024:	81 3b 00 14 	lwz     r9,20(r27)                             
ffc25028:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
ffc2502c:	41 bc fe c8 	blt-    cr7,ffc24ef4 <rtems_rfs_file_set_size+0x24c>
ffc25030:	7e d2 b3 78 	mr      r18,r22                                
ffc25034:	4b ff fe e4 	b       ffc24f18 <rtems_rfs_file_set_size+0x270>
          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),
ffc25038:	7f 23 cb 78 	mr      r3,r25                                 
ffc2503c:	38 96 00 34 	addi    r4,r22,52                              
ffc25040:	7f 05 c3 78 	mr      r5,r24                                 
ffc25044:	4b ff c6 e5 	bl      ffc21728 <rtems_rfs_block_map_shrink>  
                                           rtems_rfs_file_map (handle),
                                           blocks);                   
          if (rc > 0)                                                 
ffc25048:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2504c:	41 9d fe e4 	bgt+    cr7,ffc24f30 <rtems_rfs_file_set_size+0x288><== NEVER TAKEN
ffc25050:	83 ba 00 3c 	lwz     r29,60(r26)                            
ffc25054:	82 db 00 1c 	lwz     r22,28(r27)                            
ffc25058:	4b ff fe 7c 	b       ffc24ed4 <rtems_rfs_file_set_size+0x22c>
                                                                      

ffc143dc <rtems_rfs_format>: return rc; } int rtems_rfs_format (const char* name, const rtems_rfs_format_config* config) {
ffc143dc:	94 21 fe d8 	stwu    r1,-296(r1)                            
ffc143e0:	7c 08 02 a6 	mflr    r0                                     
ffc143e4:	7d 80 00 26 	mfcr    r12                                    
ffc143e8:	90 01 01 2c 	stw     r0,300(r1)                             
  rtems_rfs_file_system fs;                                           
  int                   group;                                        
  int                   rc;                                           
                                                                      
  if (config->verbose)                                                
ffc143ec:	89 24 00 15 	lbz     r9,21(r4)                              
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_format (const char* name, const rtems_rfs_format_config* config)
{                                                                     
ffc143f0:	92 e1 01 04 	stw     r23,260(r1)                            
ffc143f4:	7c 77 1b 78 	mr      r23,r3                                 
  rtems_rfs_file_system fs;                                           
  int                   group;                                        
  int                   rc;                                           
                                                                      
  if (config->verbose)                                                
ffc143f8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_format (const char* name, const rtems_rfs_format_config* config)
{                                                                     
ffc143fc:	93 81 01 18 	stw     r28,280(r1)                            
ffc14400:	7c 9c 23 78 	mr      r28,r4                                 
ffc14404:	92 21 00 ec 	stw     r17,236(r1)                            
ffc14408:	92 41 00 f0 	stw     r18,240(r1)                            
ffc1440c:	92 61 00 f4 	stw     r19,244(r1)                            
ffc14410:	92 81 00 f8 	stw     r20,248(r1)                            
ffc14414:	92 a1 00 fc 	stw     r21,252(r1)                            
ffc14418:	92 c1 01 00 	stw     r22,256(r1)                            
ffc1441c:	93 01 01 08 	stw     r24,264(r1)                            
ffc14420:	93 21 01 0c 	stw     r25,268(r1)                            
ffc14424:	93 41 01 10 	stw     r26,272(r1)                            
ffc14428:	93 61 01 14 	stw     r27,276(r1)                            
ffc1442c:	93 a1 01 1c 	stw     r29,284(r1)                            
ffc14430:	93 c1 01 20 	stw     r30,288(r1)                            
ffc14434:	93 e1 01 24 	stw     r31,292(r1)                            
ffc14438:	91 81 00 e8 	stw     r12,232(r1)                            
  rtems_rfs_file_system fs;                                           
  int                   group;                                        
  int                   rc;                                           
                                                                      
  if (config->verbose)                                                
ffc1443c:	40 9e 02 50 	bne-    cr7,ffc1468c <rtems_rfs_format+0x2b0>  <== NEVER TAKEN
    printf ("rtems-rfs: format: %s\n", name);                         
                                                                      
  memset (&fs, 0, sizeof (rtems_rfs_file_system));                    
ffc14440:	38 80 00 00 	li      r4,0                                   
ffc14444:	38 a0 00 84 	li      r5,132                                 
ffc14448:	38 61 00 08 	addi    r3,r1,8                                
ffc1444c:	48 01 63 f1 	bl      ffc2a83c <memset>                      
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc14450:	7c 27 0b 78 	mr      r7,r1                                  
ffc14454:	38 c1 00 50 	addi    r6,r1,80                               
ffc14458:	7c 28 0b 78 	mr      r8,r1                                  
ffc1445c:	94 c7 00 4c 	stwu    r6,76(r7)                              
ffc14460:	38 c1 00 60 	addi    r6,r1,96                               
ffc14464:	7c 2a 0b 78 	mr      r10,r1                                 
ffc14468:	94 c8 00 5c 	stwu    r6,92(r8)                              
ffc1446c:	38 c1 00 70 	addi    r6,r1,112                              
ffc14470:	7c 29 0b 78 	mr      r9,r1                                  
ffc14474:	94 ca 00 6c 	stwu    r6,108(r10)                            
ffc14478:	38 c1 00 80 	addi    r6,r1,128                              
ffc1447c:	94 c9 00 7c 	stwu    r6,124(r9)                             
  fs.flags = RTEMS_RFS_FS_NO_LOCAL_CACHE;                             
                                                                      
  /*                                                                  
   * Open the buffer interface.                                       
   */                                                                 
  rc = rtems_rfs_buffer_open (name, &fs);                             
ffc14480:	7e e3 bb 78 	mr      r3,r23                                 
ffc14484:	38 81 00 08 	addi    r4,r1,8                                
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc14488:	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;                
ffc1448c:	39 20 00 05 	li      r9,5                                   
ffc14490:	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;                             
ffc14494:	39 20 00 02 	li      r9,2                                   
ffc14498:	90 e1 00 54 	stw     r7,84(r1)                              
ffc1449c:	91 01 00 64 	stw     r8,100(r1)                             
ffc144a0:	91 41 00 74 	stw     r10,116(r1)                            
ffc144a4:	91 21 00 08 	stw     r9,8(r1)                               
                                                                      
  /*                                                                  
   * Open the buffer interface.                                       
   */                                                                 
  rc = rtems_rfs_buffer_open (name, &fs);                             
ffc144a8:	48 00 dd 85 	bl      ffc2222c <rtems_rfs_buffer_open>       
  if (rc > 0)                                                         
ffc144ac:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc144b0:	41 81 0b 18 	bgt-    ffc14fc8 <rtems_rfs_format+0xbec>      <== NEVER TAKEN
  }                                                                   
                                                                      
  /*                                                                  
   * Check the media.                                                 
   */                                                                 
  if (rtems_rfs_fs_media_block_size (&fs) == 0)                       
ffc144b4:	81 21 00 18 	lwz     r9,24(r1)                              
ffc144b8:	80 a9 00 20 	lwz     r5,32(r9)                              
ffc144bc:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc144c0:	41 9e 0b 2c 	beq-    cr7,ffc14fec <rtems_rfs_format+0xc10>  <== NEVER TAKEN
                                                                      
static bool                                                           
rtems_rfs_check_config (rtems_rfs_file_system*         fs,            
                        const rtems_rfs_format_config* config)        
{                                                                     
  fs->block_size = config->block_size;                                
ffc144c4:	80 9c 00 00 	lwz     r4,0(r28)                              
  if (!fs->block_size)                                                
ffc144c8:	2f 84 00 00 	cmpwi   cr7,r4,0                               
                                                                      
static bool                                                           
rtems_rfs_check_config (rtems_rfs_file_system*         fs,            
                        const rtems_rfs_format_config* config)        
{                                                                     
  fs->block_size = config->block_size;                                
ffc144cc:	90 81 00 10 	stw     r4,16(r1)                              
  if (!fs->block_size)                                                
ffc144d0:	41 9e 03 7c 	beq-    cr7,ffc1484c <rtems_rfs_format+0x470>  
                                                                      
    if (fs->block_size > (4 * 1024))                                  
      fs->block_size = (4 * 1024);                                    
  }                                                                   
                                                                      
  if ((fs->block_size % rtems_rfs_fs_media_block_size (fs)) != 0)     
ffc144d4:	7d 24 2b 96 	divwu   r9,r4,r5                               
ffc144d8:	7d 29 29 d6 	mullw   r9,r9,r5                               
ffc144dc:	7f 84 48 00 	cmpw    cr7,r4,r9                              
ffc144e0:	40 9e 03 bc 	bne-    cr7,ffc1489c <rtems_rfs_format+0x4c0>  <== NEVER 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;                            
ffc144e4:	81 3c 00 04 	lwz     r9,4(r28)                              
  {                                                                   
    /*                                                                
     * 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);  
ffc144e8:	54 84 18 38 	rlwinm  r4,r4,3,0,28                           
            fs->block_size, rtems_rfs_fs_media_block_size (fs));      
    return false;                                                     
  }                                                                   
                                                                      
  fs->group_blocks = config->group_blocks;                            
  if (!fs->group_blocks)                                              
ffc144ec:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    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;                            
ffc144f0:	91 21 00 30 	stw     r9,48(r1)                              
  if (!fs->group_blocks)                                              
ffc144f4:	40 9e 01 80 	bne-    cr7,ffc14674 <rtems_rfs_format+0x298>  <== NEVER TAKEN
  {                                                                   
    /*                                                                
     * The number of blocks per group is defined by the number of bits in a
     * block.                                                         
     */                                                               
    fs->group_blocks = rtems_rfs_bitmap_numof_bits (fs->block_size);  
ffc144f8:	90 81 00 30 	stw     r4,48(r1)                              
  {                                                                   
    printf ("group block count is higher than bits in block\n");      
    return false;                                                     
  }                                                                   
                                                                      
  fs->blocks = rtems_rfs_fs_media_size (fs) / fs->block_size;         
ffc144fc:	38 61 00 08 	addi    r3,r1,8                                
ffc14500:	48 01 0b b5 	bl      ffc250b4 <rtems_rfs_fs_media_size>     
ffc14504:	83 e1 00 10 	lwz     r31,16(r1)                             
ffc14508:	38 a0 00 00 	li      r5,0                                   
ffc1450c:	7f e6 fb 78 	mr      r6,r31                                 
ffc14510:	48 02 3e 21 	bl      ffc38330 <__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));  
ffc14514:	57 ea 18 38 	rlwinm  r10,r31,3,0,28                         
 * "quotient = dividend / divisor"                                    
 */                                                                   
int                                                                   
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)          
{                                                                     
  if (dividend == 0)                                                  
ffc14518:	2f 84 00 00 	cmpwi   cr7,r4,0                               
  {                                                                   
    printf ("group block count is higher than bits in block\n");      
    return false;                                                     
  }                                                                   
                                                                      
  fs->blocks = rtems_rfs_fs_media_size (fs) / fs->block_size;         
ffc1451c:	90 81 00 0c 	stw     r4,12(r1)                              
 */                                                                   
int                                                                   
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)          
{                                                                     
  if (dividend == 0)                                                  
    return 1;                                                         
ffc14520:	39 20 00 01 	li      r9,1                                   
 * "quotient = dividend / divisor"                                    
 */                                                                   
int                                                                   
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)          
{                                                                     
  if (dividend == 0)                                                  
ffc14524:	41 9e 00 10 	beq-    cr7,ffc14534 <rtems_rfs_format+0x158>  <== NEVER TAKEN
    return 1;                                                         
  return ((dividend - 1) / divisor) + 1;                              
ffc14528:	39 24 ff ff 	addi    r9,r4,-1                               
ffc1452c:	7d 29 53 96 	divwu   r9,r9,r10                              
ffc14530:	39 29 00 01 	addi    r9,r9,1                                
   * 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;                            
ffc14534:	81 1c 00 08 	lwz     r8,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), 
ffc14538:	91 21 00 2c 	stw     r9,44(r1)                              
                                            rtems_rfs_bits_per_block (fs));
                                                                      
  fs->group_inodes = config->group_inodes;                            
  if (!fs->group_inodes)                                              
ffc1453c:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc14540:	41 9e 04 f8 	beq-    cr7,ffc14a38 <rtems_rfs_format+0x65c>  <== ALWAYS TAKEN
ffc14544:	3d 20 24 92 	lis     r9,9362                                <== NOT EXECUTED
ffc14548:	57 e7 e8 fe 	rlwinm  r7,r31,29,3,31                         <== NOT EXECUTED
ffc1454c:	61 29 49 25 	ori     r9,r9,18725                            <== NOT EXECUTED
ffc14550:	7d 27 48 16 	mulhwu  r9,r7,r9                               <== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * 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;
ffc14554:	91 21 00 38 	stw     r9,56(r1)                              <== NOT EXECUTED
int                                                                   
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)          
{                                                                     
  if (dividend == 0)                                                  
    return 1;                                                         
  return ((dividend - 1) / divisor) + 1;                              
ffc14558:	38 e8 ff ff 	addi    r7,r8,-1                               
ffc1455c:	7c e7 4b 96 	divwu   r7,r7,r9                               
ffc14560:	38 e7 00 01 	addi    r7,r7,1                                
   * 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 =                                                  
    rtems_rfs_rup_quotient (fs->group_inodes,                         
                            fs->inodes_per_block) * fs->inodes_per_block;
ffc14564:	7d 27 49 d6 	mullw   r9,r7,r9                               
                                                                      
  if (fs->group_inodes > rtems_rfs_bitmap_numof_bits (fs->block_size))
ffc14568:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc1456c:	41 9c 04 b4 	blt-    cr7,ffc14a20 <rtems_rfs_format+0x644>  <== 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 =                                                  
ffc14570:	91 21 00 34 	stw     r9,52(r1)                              
                            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;                      
ffc14574:	81 3c 00 10 	lwz     r9,16(r28)                             
  if (!fs->max_name_length)                                           
ffc14578:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1457c:	40 9e 04 b4 	bne-    cr7,ffc14a30 <rtems_rfs_format+0x654>  <== NEVER TAKEN
  {                                                                   
    fs->max_name_length = 512;                                        
ffc14580:	39 20 02 00 	li      r9,512                                 
ffc14584:	91 21 00 24 	stw     r9,36(r1)                              
   * Check the configuration data.                                    
   */                                                                 
  if (!rtems_rfs_check_config (&fs, config))                          
    return -1;                                                        
                                                                      
  if (config->verbose)                                                
ffc14588:	89 3c 00 15 	lbz     r9,21(r28)                             
ffc1458c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc14590:	40 9e 03 20 	bne-    cr7,ffc148b0 <rtems_rfs_format+0x4d4>  <== NEVER TAKEN
    printf ("rtems-rfs: format: groups = %u\n", fs.group_count);      
    printf ("rtems-rfs: format: group blocks = %zu\n", fs.group_blocks);
    printf ("rtems-rfs: format: group inodes = %zu\n", fs.group_inodes);
  }                                                                   
                                                                      
  rc = rtems_rfs_buffer_setblksize (&fs, rtems_rfs_fs_block_size (&fs));
ffc14594:	7f e4 fb 78 	mr      r4,r31                                 
ffc14598:	38 61 00 08 	addi    r3,r1,8                                
ffc1459c:	48 00 df f9 	bl      ffc22594 <rtems_rfs_buffer_setblksize> 
  if (rc > 0)                                                         
ffc145a0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc145a4:	41 81 08 f4 	bgt-    ffc14e98 <rtems_rfs_format+0xabc>      <== NEVER TAKEN
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc145a8:	3b c0 00 00 	li      r30,0                                  
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc145ac:	39 20 00 00 	li      r9,0                                   
  handle->bnum  = 0;                                                  
ffc145b0:	93 c1 00 d0 	stw     r30,208(r1)                            
    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);       
ffc145b4:	38 61 00 08 	addi    r3,r1,8                                
ffc145b8:	38 81 00 cc 	addi    r4,r1,204                              
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc145bc:	99 21 00 cc 	stb     r9,204(r1)                             
ffc145c0:	38 a0 00 00 	li      r5,0                                   
ffc145c4:	38 c0 00 00 	li      r6,0                                   
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc145c8:	93 c1 00 d4 	stw     r30,212(r1)                            
ffc145cc:	48 00 d9 4d 	bl      ffc21f18 <rtems_rfs_buffer_handle_request>
  if (rc > 0)                                                         
ffc145d0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc145d4:	40 81 00 d0 	ble-    ffc146a4 <rtems_rfs_format+0x2c8>      <== 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);                       
ffc145d8:	38 81 00 cc 	addi    r4,r1,204                              <== NOT EXECUTED
ffc145dc:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc145e0:	48 00 d7 25 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    printf ("rtems-rfs: write-superblock: request failed: %d: %s\n",  
ffc145e4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
  handle->dirty = false;                                              
ffc145e8:	9b c1 00 cc 	stb     r30,204(r1)                            <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc145ec:	93 c1 00 d0 	stw     r30,208(r1)                            <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc145f0:	93 c1 00 d4 	stw     r30,212(r1)                            <== NOT EXECUTED
ffc145f4:	48 01 76 21 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc145f8:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc145fc:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14600:	38 63 ba 98 	addi    r3,r3,-17768                           <== NOT EXECUTED
ffc14604:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc14608:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1460c:	48 01 64 8d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    return -1;                                                        
  }                                                                   
                                                                      
  if (!rtems_rfs_write_superblock (&fs))                              
  {                                                                   
    printf ("rtems-rfs: format: superblock write failed\n");          
ffc14610:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14614:	38 63 bf 9c 	addi    r3,r3,-16484                           <== NOT EXECUTED
ffc14618:	48 01 67 e9 	bl      ffc2ae00 <puts>                        <== NOT EXECUTED
    return -1;                                                        
ffc1461c:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
            rc, strerror (rc));                                       
    return -1;                                                        
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc14620:	80 01 01 2c 	lwz     r0,300(r1)                             
ffc14624:	81 81 00 e8 	lwz     r12,232(r1)                            
ffc14628:	7c 08 03 a6 	mtlr    r0                                     
ffc1462c:	82 21 00 ec 	lwz     r17,236(r1)                            
ffc14630:	82 41 00 f0 	lwz     r18,240(r1)                            
ffc14634:	7d 80 81 20 	mtcrf   8,r12                                  
ffc14638:	82 61 00 f4 	lwz     r19,244(r1)                            
ffc1463c:	82 81 00 f8 	lwz     r20,248(r1)                            
ffc14640:	82 a1 00 fc 	lwz     r21,252(r1)                            
ffc14644:	82 c1 01 00 	lwz     r22,256(r1)                            
ffc14648:	82 e1 01 04 	lwz     r23,260(r1)                            
ffc1464c:	83 01 01 08 	lwz     r24,264(r1)                            
ffc14650:	83 21 01 0c 	lwz     r25,268(r1)                            
ffc14654:	83 41 01 10 	lwz     r26,272(r1)                            
ffc14658:	83 61 01 14 	lwz     r27,276(r1)                            
ffc1465c:	83 81 01 18 	lwz     r28,280(r1)                            
ffc14660:	83 a1 01 1c 	lwz     r29,284(r1)                            
ffc14664:	83 c1 01 20 	lwz     r30,288(r1)                            
ffc14668:	83 e1 01 24 	lwz     r31,292(r1)                            
ffc1466c:	38 21 01 28 	addi    r1,r1,296                              
ffc14670:	4e 80 00 20 	blr                                            
     * block.                                                         
     */                                                               
    fs->group_blocks = rtems_rfs_bitmap_numof_bits (fs->block_size);  
  }                                                                   
                                                                      
  if (fs->group_blocks > rtems_rfs_bitmap_numof_bits (fs->block_size))
ffc14674:	7f 89 20 40 	cmplw   cr7,r9,r4                              <== NOT EXECUTED
ffc14678:	40 bd fe 84 	ble-    cr7,ffc144fc <rtems_rfs_format+0x120>  <== NOT EXECUTED
  {                                                                   
    printf ("group block count is higher than bits in block\n");      
ffc1467c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14680:	38 63 b8 5c 	addi    r3,r3,-18340                           <== NOT EXECUTED
ffc14684:	48 01 67 7d 	bl      ffc2ae00 <puts>                        <== NOT EXECUTED
ffc14688:	4b ff ff 94 	b       ffc1461c <rtems_rfs_format+0x240>      <== NOT EXECUTED
  rtems_rfs_file_system fs;                                           
  int                   group;                                        
  int                   rc;                                           
                                                                      
  if (config->verbose)                                                
    printf ("rtems-rfs: format: %s\n", name);                         
ffc1468c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14690:	7e e4 bb 78 	mr      r4,r23                                 <== NOT EXECUTED
ffc14694:	38 63 b7 ac 	addi    r3,r3,-18516                           <== NOT EXECUTED
ffc14698:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1469c:	48 01 63 fd 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc146a0:	4b ff fd a0 	b       ffc14440 <rtems_rfs_format+0x64>       <== NOT EXECUTED
    printf ("rtems-rfs: write-superblock: request failed: %d: %s\n",  
            rc, strerror (rc));                                       
    return false;                                                     
  }                                                                   
                                                                      
  sb = rtems_rfs_buffer_data (&handle);                               
ffc146a4:	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));                    
ffc146a8:	38 80 00 ff 	li      r4,255                                 
ffc146ac:	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);                               
ffc146b0:	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));                    
ffc146b4:	7f e3 fb 78 	mr      r3,r31                                 
ffc146b8:	48 01 61 85 	bl      ffc2a83c <memset>                      
                                                                      
  write_sb (RTEMS_RFS_SB_OFFSET_MAGIC, RTEMS_RFS_SB_MAGIC);           
ffc146bc:	39 20 00 28 	li      r9,40                                  
ffc146c0:	99 3f 00 00 	stb     r9,0(r31)                              
ffc146c4:	39 20 00 09 	li      r9,9                                   
ffc146c8:	39 40 00 01 	li      r10,1                                  
ffc146cc:	99 3f 00 01 	stb     r9,1(r31)                              
ffc146d0:	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);                 
ffc146d4:	38 61 00 08 	addi    r3,r1,8                                
                                                                      
#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);           
ffc146d8:	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);                 
ffc146dc:	38 81 00 cc 	addi    r4,r1,204                              
                                                                      
#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);           
ffc146e0:	99 3f 00 02 	stb     r9,2(r31)                              
  write_sb (RTEMS_RFS_SB_OFFSET_VERSION, RTEMS_RFS_VERSION);          
ffc146e4:	9b df 00 04 	stb     r30,4(r31)                             
ffc146e8:	9b df 00 05 	stb     r30,5(r31)                             
ffc146ec:	9b df 00 06 	stb     r30,6(r31)                             
ffc146f0:	9b df 00 07 	stb     r30,7(r31)                             
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCKS, rtems_rfs_fs_blocks (fs));    
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
ffc146f4:	89 01 00 10 	lbz     r8,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));    
ffc146f8:	81 21 00 0c 	lwz     r9,12(r1)                              
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
ffc146fc:	99 1f 00 08 	stb     r8,8(r31)                              
                                                                      
  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));    
ffc14700:	55 28 46 3e 	rlwinm  r8,r9,8,24,31                          
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
ffc14704:	a0 e1 00 10 	lhz     r7,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));    
ffc14708:	55 26 84 3e 	rlwinm  r6,r9,16,16,31                         
ffc1470c:	99 1f 00 0c 	stb     r8,12(r31)                             
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
ffc14710:	98 ff 00 09 	stb     r7,9(r31)                              
                                                                      
  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));    
ffc14714:	55 27 c2 3e 	rlwinm  r7,r9,24,8,31                          
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
ffc14718:	81 01 00 10 	lwz     r8,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));    
ffc1471c:	99 3f 00 0f 	stb     r9,15(r31)                             
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
ffc14720:	55 08 c2 3e 	rlwinm  r8,r8,24,8,31                          
ffc14724:	99 1f 00 0a 	stb     r8,10(r31)                             
ffc14728:	81 21 00 10 	lwz     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));    
ffc1472c:	98 df 00 0d 	stb     r6,13(r31)                             
ffc14730:	98 ff 00 0e 	stb     r7,14(r31)                             
  write_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE, rtems_rfs_fs_block_size (fs));
ffc14734:	99 3f 00 0b 	stb     r9,11(r31)                             
  write_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS, fs->bad_blocks);          
ffc14738:	89 21 00 20 	lbz     r9,32(r1)                              
ffc1473c:	99 3f 00 10 	stb     r9,16(r31)                             
ffc14740:	a1 21 00 20 	lhz     r9,32(r1)                              
ffc14744:	99 3f 00 11 	stb     r9,17(r31)                             
ffc14748:	81 21 00 20 	lwz     r9,32(r1)                              
ffc1474c:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc14750:	99 3f 00 12 	stb     r9,18(r31)                             
ffc14754:	81 21 00 20 	lwz     r9,32(r1)                              
ffc14758:	99 3f 00 13 	stb     r9,19(r31)                             
  write_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH, fs->max_name_length);
ffc1475c:	89 21 00 24 	lbz     r9,36(r1)                              
ffc14760:	99 3f 00 14 	stb     r9,20(r31)                             
ffc14764:	a1 21 00 24 	lhz     r9,36(r1)                              
ffc14768:	99 3f 00 15 	stb     r9,21(r31)                             
ffc1476c:	81 21 00 24 	lwz     r9,36(r1)                              
ffc14770:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc14774:	99 3f 00 16 	stb     r9,22(r31)                             
ffc14778:	81 21 00 24 	lwz     r9,36(r1)                              
ffc1477c:	99 3f 00 17 	stb     r9,23(r31)                             
  write_sb (RTEMS_RFS_SB_OFFSET_GROUPS, fs->group_count);             
ffc14780:	89 21 00 2c 	lbz     r9,44(r1)                              
ffc14784:	99 3f 00 18 	stb     r9,24(r31)                             
ffc14788:	a1 21 00 2c 	lhz     r9,44(r1)                              
ffc1478c:	99 3f 00 19 	stb     r9,25(r31)                             
ffc14790:	81 21 00 2c 	lwz     r9,44(r1)                              
ffc14794:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc14798:	99 3f 00 1a 	stb     r9,26(r31)                             
ffc1479c:	81 21 00 2c 	lwz     r9,44(r1)                              
ffc147a0:	99 3f 00 1b 	stb     r9,27(r31)                             
  write_sb (RTEMS_RFS_SB_OFFSET_GROUP_BLOCKS, fs->group_blocks);      
ffc147a4:	89 21 00 30 	lbz     r9,48(r1)                              
ffc147a8:	99 3f 00 1c 	stb     r9,28(r31)                             
ffc147ac:	a1 21 00 30 	lhz     r9,48(r1)                              
ffc147b0:	99 3f 00 1d 	stb     r9,29(r31)                             
ffc147b4:	81 21 00 30 	lwz     r9,48(r1)                              
ffc147b8:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc147bc:	99 3f 00 1e 	stb     r9,30(r31)                             
ffc147c0:	81 21 00 30 	lwz     r9,48(r1)                              
ffc147c4:	99 3f 00 1f 	stb     r9,31(r31)                             
  write_sb (RTEMS_RFS_SB_OFFSET_GROUP_INODES, fs->group_inodes);      
ffc147c8:	89 21 00 34 	lbz     r9,52(r1)                              
ffc147cc:	99 3f 00 20 	stb     r9,32(r31)                             
ffc147d0:	a1 21 00 34 	lhz     r9,52(r1)                              
ffc147d4:	99 3f 00 21 	stb     r9,33(r31)                             
ffc147d8:	81 21 00 34 	lwz     r9,52(r1)                              
ffc147dc:	55 29 c2 3e 	rlwinm  r9,r9,24,8,31                          
ffc147e0:	99 3f 00 22 	stb     r9,34(r31)                             
ffc147e4:	81 21 00 34 	lwz     r9,52(r1)                              
  write_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE, RTEMS_RFS_INODE_SIZE);    
ffc147e8:	9b df 00 24 	stb     r30,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);      
ffc147ec:	99 3f 00 23 	stb     r9,35(r31)                             
  write_sb (RTEMS_RFS_SB_OFFSET_INODE_SIZE, RTEMS_RFS_INODE_SIZE);    
ffc147f0:	39 20 00 38 	li      r9,56                                  
ffc147f4:	9b df 00 25 	stb     r30,37(r31)                            
ffc147f8:	9b df 00 26 	stb     r30,38(r31)                            
ffc147fc:	99 3f 00 27 	stb     r9,39(r31)                             
                                                                      
  rtems_rfs_buffer_mark_dirty (&handle);                              
ffc14800:	99 41 00 cc 	stb     r10,204(r1)                            
                                                                      
  rc = rtems_rfs_buffer_handle_release (fs, &handle);                 
ffc14804:	48 00 d5 01 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
  if (rc > 0)                                                         
ffc14808:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1480c:	40 81 03 48 	ble-    ffc14b54 <rtems_rfs_format+0x778>      <== 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);                       
ffc14810:	38 81 00 cc 	addi    r4,r1,204                              <== NOT EXECUTED
ffc14814:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc14818:	48 00 d4 ed 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    printf ("rtems-rfs: write-superblock: buffer release failed: %d: %s\n",
ffc1481c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
  handle->dirty = false;                                              
ffc14820:	9b c1 00 cc 	stb     r30,204(r1)                            <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc14824:	93 c1 00 d0 	stw     r30,208(r1)                            <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc14828:	93 c1 00 d4 	stw     r30,212(r1)                            <== NOT EXECUTED
ffc1482c:	48 01 73 e9 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc14830:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc14834:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14838:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1483c:	38 63 ba d0 	addi    r3,r3,-17712                           <== NOT EXECUTED
ffc14840:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14844:	48 01 62 55 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc14848:	4b ff fd c8 	b       ffc14610 <rtems_rfs_format+0x234>      <== NOT EXECUTED
                        const rtems_rfs_format_config* config)        
{                                                                     
  fs->block_size = config->block_size;                                
  if (!fs->block_size)                                                
  {                                                                   
    uint64_t total_size = rtems_rfs_fs_media_size (fs);               
ffc1484c:	38 61 00 08 	addi    r3,r1,8                                
ffc14850:	48 01 08 65 	bl      ffc250b4 <rtems_rfs_fs_media_size>     
                                                                      
    if (total_size >= GIGS (1))                                       
ffc14854:	2c 03 00 00 	cmpwi   r3,0                                   
ffc14858:	40 82 02 38 	bne-    ffc14a90 <rtems_rfs_format+0x6b4>      <== NEVER TAKEN
ffc1485c:	3d 20 00 0f 	lis     r9,15                                  
ffc14860:	61 29 ff ff 	ori     r9,r9,65535                            
ffc14864:	7f 84 48 40 	cmplw   cr7,r4,r9                              
ffc14868:	41 9d 02 28 	bgt-    cr7,ffc14a90 <rtems_rfs_format+0x6b4>  <== NEVER TAKEN
ffc1486c:	80 81 00 10 	lwz     r4,16(r1)                              
        if ((gigs & (1 << b)) != 0)                                   
          break;                                                      
      fs->block_size = 1 << b;                                        
    }                                                                 
                                                                      
    if (fs->block_size < 512)                                         
ffc14870:	2b 84 01 ff 	cmplwi  cr7,r4,511                             
ffc14874:	41 9d 02 68 	bgt-    cr7,ffc14adc <rtems_rfs_format+0x700>  <== NEVER TAKEN
      fs->block_size = 512;                                           
ffc14878:	39 20 02 00 	li      r9,512                                 
ffc1487c:	91 21 00 10 	stw     r9,16(r1)                              
ffc14880:	38 80 02 00 	li      r4,512                                 
ffc14884:	81 21 00 18 	lwz     r9,24(r1)                              
ffc14888:	80 a9 00 20 	lwz     r5,32(r9)                              
                                                                      
    if (fs->block_size > (4 * 1024))                                  
      fs->block_size = (4 * 1024);                                    
  }                                                                   
                                                                      
  if ((fs->block_size % rtems_rfs_fs_media_block_size (fs)) != 0)     
ffc1488c:	7d 24 2b 96 	divwu   r9,r4,r5                               
ffc14890:	7d 29 29 d6 	mullw   r9,r9,r5                               
ffc14894:	7f 84 48 00 	cmpw    cr7,r4,r9                              
ffc14898:	41 9e fc 4c 	beq+    cr7,ffc144e4 <rtems_rfs_format+0x108>  <== ALWAYS TAKEN
  {                                                                   
    printf ("block size (%zd) is not a multiple of media block size (%" PRId32 ")\n",
ffc1489c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc148a0:	38 63 b8 1c 	addi    r3,r3,-18404                           <== NOT EXECUTED
ffc148a4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc148a8:	48 01 61 f1 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc148ac:	4b ff fd 70 	b       ffc1461c <rtems_rfs_format+0x240>      <== NOT EXECUTED
  if (!rtems_rfs_check_config (&fs, config))                          
    return -1;                                                        
                                                                      
  if (config->verbose)                                                
  {                                                                   
    printf ("rtems-rfs: format: media size = %" PRIu64 "\n",          
ffc148b0:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc148b4:	48 01 08 01 	bl      ffc250b4 <rtems_rfs_fs_media_size>     <== NOT EXECUTED
ffc148b8:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc148bc:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc148c0:	7c 86 23 78 	mr      r6,r4                                  <== NOT EXECUTED
ffc148c4:	38 63 b8 8c 	addi    r3,r3,-18292                           <== NOT EXECUTED
ffc148c8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc148cc:	48 01 61 cd 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rtems_rfs_fs_media_size (&fs));                           
    printf ("rtems-rfs: format: media blocks = %" PRIu32 "\n",        
            rtems_rfs_fs_media_blocks (&fs));                         
ffc148d0:	81 21 00 18 	lwz     r9,24(r1)                              <== NOT EXECUTED
                                                                      
  if (config->verbose)                                                
  {                                                                   
    printf ("rtems-rfs: format: media size = %" PRIu64 "\n",          
            rtems_rfs_fs_media_size (&fs));                           
    printf ("rtems-rfs: format: media blocks = %" PRIu32 "\n",        
ffc148d4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc148d8:	80 89 00 1c 	lwz     r4,28(r9)                              <== NOT EXECUTED
ffc148dc:	38 63 b8 b4 	addi    r3,r3,-18252                           <== NOT EXECUTED
ffc148e0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc148e4:	48 01 61 b5 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rtems_rfs_fs_media_blocks (&fs));                         
    printf ("rtems-rfs: format: media block size = %" PRIu32 "\n",    
            rtems_rfs_fs_media_block_size (&fs));                     
ffc148e8:	81 21 00 18 	lwz     r9,24(r1)                              <== NOT EXECUTED
  {                                                                   
    printf ("rtems-rfs: format: media size = %" PRIu64 "\n",          
            rtems_rfs_fs_media_size (&fs));                           
    printf ("rtems-rfs: format: media blocks = %" PRIu32 "\n",        
            rtems_rfs_fs_media_blocks (&fs));                         
    printf ("rtems-rfs: format: media block size = %" PRIu32 "\n",    
ffc148ec:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc148f0:	80 89 00 20 	lwz     r4,32(r9)                              <== NOT EXECUTED
ffc148f4:	38 63 b8 dc 	addi    r3,r3,-18212                           <== NOT EXECUTED
ffc148f8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc148fc:	48 01 61 9d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rtems_rfs_fs_media_block_size (&fs));                     
    printf ("rtems-rfs: format: size = %" PRIu64 "\n",                
ffc14900:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc14904:	48 01 07 95 	bl      ffc25098 <rtems_rfs_fs_size>           <== NOT EXECUTED
ffc14908:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1490c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14910:	7c 86 23 78 	mr      r6,r4                                  <== NOT EXECUTED
ffc14914:	38 63 b9 08 	addi    r3,r3,-18168                           <== NOT EXECUTED
ffc14918:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1491c:	48 01 61 7d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rtems_rfs_fs_size (&fs));                                 
    printf ("rtems-rfs: format: blocks = %zu\n",                      
ffc14920:	80 81 00 0c 	lwz     r4,12(r1)                              <== NOT EXECUTED
ffc14924:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14928:	38 63 b9 28 	addi    r3,r3,-18136                           <== NOT EXECUTED
ffc1492c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14930:	48 01 61 69 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rtems_rfs_fs_blocks (&fs));                               
    printf ("rtems-rfs: format: block size = %zu\n",                  
ffc14934:	80 81 00 10 	lwz     r4,16(r1)                              <== NOT EXECUTED
ffc14938:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc1493c:	38 63 b9 4c 	addi    r3,r3,-18100                           <== NOT EXECUTED
ffc14940:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14944:	48 01 61 55 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
 * Return the number of bits that fit in the block size.              
 */                                                                   
static int                                                            
rtems_rfs_bits_per_block (rtems_rfs_file_system* fs)                  
{                                                                     
  return rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs));  
ffc14948:	80 81 00 10 	lwz     r4,16(r1)                              <== NOT EXECUTED
            rtems_rfs_fs_size (&fs));                                 
    printf ("rtems-rfs: format: blocks = %zu\n",                      
            rtems_rfs_fs_blocks (&fs));                               
    printf ("rtems-rfs: format: block size = %zu\n",                  
            rtems_rfs_fs_block_size (&fs));                           
    printf ("rtems-rfs: format: bits per block = %u\n",               
ffc1494c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14950:	54 84 18 38 	rlwinm  r4,r4,3,0,28                           <== NOT EXECUTED
ffc14954:	38 63 b9 74 	addi    r3,r3,-18060                           <== NOT EXECUTED
ffc14958:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1495c:	48 01 61 3d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rtems_rfs_bits_per_block (&fs));                          
    printf ("rtems-rfs: format: inode size = %zu\n", RTEMS_RFS_INODE_SIZE);
ffc14960:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14964:	38 80 00 38 	li      r4,56                                  <== NOT EXECUTED
ffc14968:	38 63 b9 9c 	addi    r3,r3,-18020                           <== NOT EXECUTED
ffc1496c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14970:	48 01 61 29 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    printf ("rtems-rfs: format: inodes = %zu (%d.%d%%)\n",            
            fs.group_inodes * fs.group_count,                         
ffc14974:	81 21 00 34 	lwz     r9,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",            
ffc14978:	80 81 00 2c 	lwz     r4,44(r1)                              <== NOT EXECUTED
 * "quotient = dividend / divisor"                                    
 */                                                                   
int                                                                   
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)          
{                                                                     
  if (dividend == 0)                                                  
ffc1497c:	39 40 07 d0 	li      r10,2000                               <== 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,
ffc14980:	1c e9 00 38 	mulli   r7,r9,56                               <== NOT EXECUTED
                                  rtems_rfs_fs_block_size (fs));      
ffc14984:	81 01 00 10 	lwz     r8,16(r1)                              <== NOT EXECUTED
 * "quotient = dividend / divisor"                                    
 */                                                                   
int                                                                   
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)          
{                                                                     
  if (dividend == 0)                                                  
ffc14988:	2f 87 00 00 	cmpwi   cr7,r7,0                               <== 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",            
ffc1498c:	7c 89 21 d6 	mullw   r4,r9,r4                               <== NOT EXECUTED
 * "quotient = dividend / divisor"                                    
 */                                                                   
int                                                                   
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)          
{                                                                     
  if (dividend == 0)                                                  
ffc14990:	40 9e 01 6c 	bne-    cr7,ffc14afc <rtems_rfs_format+0x720>  <== 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))
ffc14994:	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));  
ffc14998:	55 08 18 38 	rlwinm  r8,r8,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))
ffc1499c:	39 29 ff ff 	addi    r9,r9,-1                               <== NOT EXECUTED
ffc149a0:	7f 88 48 40 	cmplw   cr7,r8,r9                              <== NOT EXECUTED
ffc149a4:	40 9d 02 9c 	ble-    cr7,ffc14c40 <rtems_rfs_format+0x864>  <== NOT EXECUTED
    bits_per_block = rtems_rfs_fs_blocks (fs) - RTEMS_RFS_SUPERBLOCK_SIZE;
  return ((blocks + 1) * 100 * 10) / bits_per_block;                  
ffc149a8:	7d 2a 4b d6 	divw    r9,r10,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",            
ffc149ac:	3c a0 66 66 	lis     r5,26214                               <== NOT EXECUTED
ffc149b0:	60 a5 66 67 	ori     r5,r5,26215                            <== NOT EXECUTED
ffc149b4:	7c a9 28 96 	mulhw   r5,r9,r5                               <== NOT EXECUTED
ffc149b8:	7d 2a fe 70 	srawi   r10,r9,31                              <== NOT EXECUTED
ffc149bc:	7c a5 16 70 	srawi   r5,r5,2                                <== NOT EXECUTED
ffc149c0:	7c aa 28 50 	subf    r5,r10,r5                              <== NOT EXECUTED
ffc149c4:	1c c5 00 0a 	mulli   r6,r5,10                               <== NOT EXECUTED
ffc149c8:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc149cc:	7c c6 48 50 	subf    r6,r6,r9                               <== NOT EXECUTED
ffc149d0:	38 63 b9 c4 	addi    r3,r3,-17980                           <== NOT EXECUTED
ffc149d4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc149d8:	48 01 60 c1 	bl      ffc2aa98 <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);      
ffc149dc:	80 81 00 2c 	lwz     r4,44(r1)                              <== NOT EXECUTED
ffc149e0:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc149e4:	38 63 b9 f0 	addi    r3,r3,-17936                           <== NOT EXECUTED
ffc149e8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc149ec:	48 01 60 ad 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    printf ("rtems-rfs: format: group blocks = %zu\n", fs.group_blocks);
ffc149f0:	80 81 00 30 	lwz     r4,48(r1)                              <== NOT EXECUTED
ffc149f4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc149f8:	38 63 ba 10 	addi    r3,r3,-17904                           <== NOT EXECUTED
ffc149fc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14a00:	48 01 60 99 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    printf ("rtems-rfs: format: group inodes = %zu\n", fs.group_inodes);
ffc14a04:	80 81 00 34 	lwz     r4,52(r1)                              <== NOT EXECUTED
ffc14a08:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14a0c:	38 63 ba 38 	addi    r3,r3,-17864                           <== NOT EXECUTED
ffc14a10:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14a14:	48 01 60 85 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc14a18:	83 e1 00 10 	lwz     r31,16(r1)                             <== NOT EXECUTED
ffc14a1c:	4b ff fb 78 	b       ffc14594 <rtems_rfs_format+0x1b8>      <== 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;                      
ffc14a20:	81 3c 00 10 	lwz     r9,16(r28)                             <== NOT EXECUTED
  fs->group_inodes =                                                  
    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);  
ffc14a24:	91 41 00 34 	stw     r10,52(r1)                             <== NOT EXECUTED
                                                                      
  fs->max_name_length = config->max_name_length;                      
  if (!fs->max_name_length)                                           
ffc14a28:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc14a2c:	41 9e fb 54 	beq+    cr7,ffc14580 <rtems_rfs_format+0x1a4>  <== 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;                      
ffc14a30:	91 21 00 24 	stw     r9,36(r1)                              <== NOT EXECUTED
ffc14a34:	4b ff fb 54 	b       ffc14588 <rtems_rfs_format+0x1ac>      <== NOT EXECUTED
    int inode_overhead = RTEMS_RFS_INODE_OVERHEAD_PERCENTAGE;         
                                                                      
    /*                                                                
     * The number of inodes per group is set as a percentage.         
     */                                                               
    if (config->inode_overhead)                                       
ffc14a38:	80 fc 00 0c 	lwz     r7,12(r28)                             
ffc14a3c:	39 00 00 01 	li      r8,1                                   
ffc14a40:	2f 87 00 00 	cmpwi   cr7,r7,0                               
ffc14a44:	41 9e 00 08 	beq-    cr7,ffc14a4c <rtems_rfs_format+0x670>  <== ALWAYS TAKEN
ffc14a48:	7c e8 3b 78 	mr      r8,r7                                  <== NOT EXECUTED
static int                                                            
rtems_rfs_inodes_from_percent (rtems_rfs_file_system* fs,             
                               int                    percentage)     
{                                                                     
  int blocks;                                                         
  blocks = ((rtems_rfs_fs_blocks (fs) -                               
ffc14a4c:	38 84 ff ff 	addi    r4,r4,-1                               
             RTEMS_RFS_SUPERBLOCK_SIZE) * percentage) / 100;          
ffc14a50:	7d 08 21 d6 	mullw   r8,r8,r4                               
ffc14a54:	3c e0 51 eb 	lis     r7,20971                               
ffc14a58:	60 e7 85 1f 	ori     r7,r7,34079                            
ffc14a5c:	7c e8 38 16 	mulhwu  r7,r8,r7                               
 * "quotient = dividend / divisor"                                    
 */                                                                   
int                                                                   
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)          
{                                                                     
  if (dividend == 0)                                                  
ffc14a60:	39 00 00 01 	li      r8,1                                   
ffc14a64:	54 e6 d9 7f 	rlwinm. r6,r7,27,5,31                          
ffc14a68:	40 82 00 bc 	bne-    ffc14b24 <rtems_rfs_format+0x748>      
{                                                                     
  int blocks;                                                         
  blocks = ((rtems_rfs_fs_blocks (fs) -                               
             RTEMS_RFS_SUPERBLOCK_SIZE) * percentage) / 100;          
  blocks = rtems_rfs_rup_quotient (blocks, fs->group_count);          
  return blocks * (rtems_rfs_fs_block_size (fs) / RTEMS_RFS_INODE_SIZE);
ffc14a6c:	3d 20 24 92 	lis     r9,9362                                
ffc14a70:	57 e7 e8 fe 	rlwinm  r7,r31,29,3,31                         
ffc14a74:	61 29 49 25 	ori     r9,r9,18725                            
ffc14a78:	7d 27 48 16 	mulhwu  r9,r7,r9                               
 * "quotient = dividend / divisor"                                    
 */                                                                   
int                                                                   
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)          
{                                                                     
  if (dividend == 0)                                                  
ffc14a7c:	38 e0 00 01 	li      r7,1                                   
ffc14a80:	7d 08 49 d7 	mullw.  r8,r8,r9                               
  }                                                                   
                                                                      
  /*                                                                  
   * 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;
ffc14a84:	91 21 00 38 	stw     r9,56(r1)                              
 * "quotient = dividend / divisor"                                    
 */                                                                   
int                                                                   
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)          
{                                                                     
  if (dividend == 0)                                                  
ffc14a88:	41 82 fa dc 	beq+    ffc14564 <rtems_rfs_format+0x188>      <== NEVER TAKEN
ffc14a8c:	4b ff fa cc 	b       ffc14558 <rtems_rfs_format+0x17c>      
  {                                                                   
    uint64_t total_size = rtems_rfs_fs_media_size (fs);               
                                                                      
    if (total_size >= GIGS (1))                                       
    {                                                                 
      uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);             
ffc14a90:	3d 24 00 10 	addis   r9,r4,16                               <== NOT EXECUTED
ffc14a94:	7c 84 48 10 	subfc   r4,r4,r9                               <== NOT EXECUTED
ffc14a98:	7c 84 21 10 	subfe   r4,r4,r4                               <== NOT EXECUTED
ffc14a9c:	7c 84 18 50 	subf    r4,r4,r3                               <== NOT EXECUTED
ffc14aa0:	55 29 65 3e 	rlwinm  r9,r9,12,20,31                         <== NOT EXECUTED
ffc14aa4:	54 88 60 26 	rlwinm  r8,r4,12,0,19                          <== NOT EXECUTED
ffc14aa8:	7d 08 4b 78 	or      r8,r8,r9                               <== NOT EXECUTED
      int      b;                                                     
      for (b = 31; b > 0; b--)                                        
ffc14aac:	39 20 00 1f 	li      r9,31                                  <== NOT EXECUTED
        if ((gigs & (1 << b)) != 0)                                   
ffc14ab0:	39 40 00 01 	li      r10,1                                  <== NOT EXECUTED
ffc14ab4:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc14ab8:	48 00 00 08 	b       ffc14ac0 <rtems_rfs_format+0x6e4>      <== NOT EXECUTED
                                                                      
    if (total_size >= GIGS (1))                                       
    {                                                                 
      uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);             
      int      b;                                                     
      for (b = 31; b > 0; b--)                                        
ffc14abc:	42 40 04 b8 	bdz-    ffc14f74 <rtems_rfs_format+0xb98>      <== NOT EXECUTED
        if ((gigs & (1 << b)) != 0)                                   
ffc14ac0:	7d 44 48 30 	slw     r4,r10,r9                              <== NOT EXECUTED
ffc14ac4:	7c 87 40 39 	and.    r7,r4,r8                               <== NOT EXECUTED
                                                                      
    if (total_size >= GIGS (1))                                       
    {                                                                 
      uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);             
      int      b;                                                     
      for (b = 31; b > 0; b--)                                        
ffc14ac8:	39 29 ff ff 	addi    r9,r9,-1                               <== NOT EXECUTED
        if ((gigs & (1 << b)) != 0)                                   
ffc14acc:	41 82 ff f0 	beq+    ffc14abc <rtems_rfs_format+0x6e0>      <== NOT EXECUTED
          break;                                                      
      fs->block_size = 1 << b;                                        
ffc14ad0:	90 81 00 10 	stw     r4,16(r1)                              <== NOT EXECUTED
    }                                                                 
                                                                      
    if (fs->block_size < 512)                                         
ffc14ad4:	2b 84 01 ff 	cmplwi  cr7,r4,511                             <== NOT EXECUTED
ffc14ad8:	40 bd fd a0 	ble-    cr7,ffc14878 <rtems_rfs_format+0x49c>  <== NOT EXECUTED
      fs->block_size = 512;                                           
                                                                      
    if (fs->block_size > (4 * 1024))                                  
ffc14adc:	2b 84 10 00 	cmplwi  cr7,r4,4096                            <== NOT EXECUTED
ffc14ae0:	40 9d 00 10 	ble-    cr7,ffc14af0 <rtems_rfs_format+0x714>  <== NOT EXECUTED
      fs->block_size = (4 * 1024);                                    
ffc14ae4:	39 20 10 00 	li      r9,4096                                <== NOT EXECUTED
ffc14ae8:	91 21 00 10 	stw     r9,16(r1)                              <== NOT EXECUTED
ffc14aec:	38 80 10 00 	li      r4,4096                                <== NOT EXECUTED
ffc14af0:	81 21 00 18 	lwz     r9,24(r1)                              <== NOT EXECUTED
ffc14af4:	80 a9 00 20 	lwz     r5,32(r9)                              <== NOT EXECUTED
ffc14af8:	4b ff f9 dc 	b       ffc144d4 <rtems_rfs_format+0xf8>       <== NOT EXECUTED
int                                                                   
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)          
{                                                                     
  if (dividend == 0)                                                  
    return 1;                                                         
  return ((dividend - 1) / divisor) + 1;                              
ffc14afc:	39 47 ff ff 	addi    r10,r7,-1                              <== 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))
ffc14b00:	81 21 00 0c 	lwz     r9,12(r1)                              <== NOT EXECUTED
int                                                                   
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)          
{                                                                     
  if (dividend == 0)                                                  
    return 1;                                                         
  return ((dividend - 1) / divisor) + 1;                              
ffc14b04:	7d 4a 43 96 	divwu   r10,r10,r8                             <== 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))
ffc14b08:	39 29 ff ff 	addi    r9,r9,-1                               <== 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));  
ffc14b0c:	55 08 18 38 	rlwinm  r8,r8,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))
ffc14b10:	7f 88 48 40 	cmplw   cr7,r8,r9                              <== NOT EXECUTED
ffc14b14:	39 4a 00 02 	addi    r10,r10,2                              <== NOT EXECUTED
ffc14b18:	1d 4a 03 e8 	mulli   r10,r10,1000                           <== NOT EXECUTED
ffc14b1c:	41 9d fe 8c 	bgt+    cr7,ffc149a8 <rtems_rfs_format+0x5cc>  <== NOT EXECUTED
ffc14b20:	48 00 01 20 	b       ffc14c40 <rtems_rfs_format+0x864>      <== NOT EXECUTED
int                                                                   
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)          
{                                                                     
  if (dividend == 0)                                                  
    return 1;                                                         
  return ((dividend - 1) / divisor) + 1;                              
ffc14b24:	38 c6 ff ff 	addi    r6,r6,-1                               
ffc14b28:	7d 26 4b 96 	divwu   r9,r6,r9                               
ffc14b2c:	39 09 00 01 	addi    r8,r9,1                                
{                                                                     
  int blocks;                                                         
  blocks = ((rtems_rfs_fs_blocks (fs) -                               
             RTEMS_RFS_SUPERBLOCK_SIZE) * percentage) / 100;          
  blocks = rtems_rfs_rup_quotient (blocks, fs->group_count);          
  return blocks * (rtems_rfs_fs_block_size (fs) / RTEMS_RFS_INODE_SIZE);
ffc14b30:	3d 20 24 92 	lis     r9,9362                                
ffc14b34:	57 e7 e8 fe 	rlwinm  r7,r31,29,3,31                         
ffc14b38:	61 29 49 25 	ori     r9,r9,18725                            
ffc14b3c:	7d 27 48 16 	mulhwu  r9,r7,r9                               
 * "quotient = dividend / divisor"                                    
 */                                                                   
int                                                                   
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)          
{                                                                     
  if (dividend == 0)                                                  
ffc14b40:	38 e0 00 01 	li      r7,1                                   
ffc14b44:	7d 08 49 d7 	mullw.  r8,r8,r9                               
  }                                                                   
                                                                      
  /*                                                                  
   * 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;
ffc14b48:	91 21 00 38 	stw     r9,56(r1)                              
 * "quotient = dividend / divisor"                                    
 */                                                                   
int                                                                   
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)          
{                                                                     
  if (dividend == 0)                                                  
ffc14b4c:	41 82 fa 18 	beq+    ffc14564 <rtems_rfs_format+0x188>      <== NEVER TAKEN
ffc14b50:	4b ff fa 08 	b       ffc14558 <rtems_rfs_format+0x17c>      
 */                                                                   
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);                       
ffc14b54:	38 61 00 08 	addi    r3,r1,8                                
ffc14b58:	38 81 00 cc 	addi    r4,r1,204                              
ffc14b5c:	48 00 d1 a9 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
  {                                                                   
    printf ("rtems-rfs: format: superblock write failed\n");          
    return -1;                                                        
  }                                                                   
                                                                      
  for (group = 0; group < fs.group_count; group++)                    
ffc14b60:	81 21 00 2c 	lwz     r9,44(r1)                              
ffc14b64:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc14b68:	40 9d 04 fc 	ble-    cr7,ffc15064 <rtems_rfs_format+0xc88>  <== NEVER TAKEN
  int                      b;                                         
  int                      rc;                                        
                                                                      
  group_base = rtems_rfs_fs_block (fs, group, 0);                     
                                                                      
  if (group_base > rtems_rfs_fs_blocks (fs))                          
ffc14b6c:	81 41 00 0c 	lwz     r10,12(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,                           
ffc14b70:	8b 3c 00 14 	lbz     r25,20(r28)                            
  int                      b;                                         
  int                      rc;                                        
                                                                      
  group_base = rtems_rfs_fs_block (fs, group, 0);                     
                                                                      
  if (group_base > rtems_rfs_fs_blocks (fs))                          
ffc14b74:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
    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,                           
ffc14b78:	89 3c 00 15 	lbz     r9,21(r28)                             
  size_t                   group_size;                                
  int                      blocks;                                    
  int                      b;                                         
  int                      rc;                                        
                                                                      
  group_base = rtems_rfs_fs_block (fs, group, 0);                     
ffc14b7c:	83 c1 00 30 	lwz     r30,48(r1)                             
                                                                      
  if (group_base > rtems_rfs_fs_blocks (fs))                          
ffc14b80:	41 9e 04 dc 	beq-    cr7,ffc1505c <rtems_rfs_format+0xc80>  <== NEVER TAKEN
   */                                                                 
  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",
ffc14b84:	3e 80 ff c4 	lis     r20,-60                                
            rc, strerror (rc));                                       
    return false;                                                     
  }                                                                   
                                                                      
  if (verbose)                                                        
    printf (", blocks");                                              
ffc14b88:	3e c0 ff c4 	lis     r22,-60                                
  }                                                                   
                                                                      
  rtems_rfs_buffer_mark_dirty (&handle);                              
                                                                      
  if (verbose)                                                        
    printf (", inodes");                                              
ffc14b8c:	3e 40 ff c4 	lis     r18,-60                                
  int                      b;                                         
  int                      rc;                                        
                                                                      
  group_base = rtems_rfs_fs_block (fs, group, 0);                     
                                                                      
  if (group_base > rtems_rfs_fs_blocks (fs))                          
ffc14b90:	3b a0 00 01 	li      r29,1                                  
ffc14b94:	3b 40 00 00 	li      r26,0                                  
ffc14b98:	3b 60 00 00 	li      r27,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",
ffc14b9c:	3a 94 bb 48 	addi    r20,r20,-17592                         
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc14ba0:	3a a0 00 00 	li      r21,0                                  
  handle->bnum  = 0;                                                  
ffc14ba4:	3b 00 00 00 	li      r24,0                                  
            rc, strerror (rc));                                       
    return false;                                                     
  }                                                                   
                                                                      
  if (verbose)                                                        
    printf (", blocks");                                              
ffc14ba8:	3a d6 bb 80 	addi    r22,r22,-17536                         
    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);                              
ffc14bac:	3a 60 00 01 	li      r19,1                                  
                                                                      
  if (verbose)                                                        
    printf (", inodes");                                              
ffc14bb0:	3a 52 bc 68 	addi    r18,r18,-17304                         
  /*                                                                  
   * 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))           
ffc14bb4:	7d 1d f2 14 	add     r8,r29,r30                             
ffc14bb8:	7f 88 50 40 	cmplw   cr7,r8,r10                             
ffc14bbc:	40 9d 00 08 	ble-    cr7,ffc14bc4 <rtems_rfs_format+0x7e8>  <== NEVER TAKEN
    group_size = rtems_rfs_fs_blocks (fs) - group_base;               
ffc14bc0:	7f dd 50 50 	subf    r30,r29,r10                            
                                                                      
  if (verbose)                                                        
ffc14bc4:	2e 09 00 00 	cmpwi   cr4,r9,0                               
ffc14bc8:	40 92 00 f4 	bne-    cr4,ffc14cbc <rtems_rfs_format+0x8e0>  <== NEVER TAKEN
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc14bcc:	99 21 00 cc 	stb     r9,204(r1)                             
  handle->bnum  = 0;                                                  
ffc14bd0:	91 21 00 d0 	stw     r9,208(r1)                             
  handle->buffer = NULL;                                              
ffc14bd4:	91 21 00 d4 	stw     r9,212(r1)                             
    printf (", blocks");                                              
                                                                      
  /*                                                                  
   * Open the block bitmap using the new buffer.                      
   */                                                                 
  rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,       
ffc14bd8:	38 61 00 b4 	addi    r3,r1,180                              
ffc14bdc:	38 81 00 08 	addi    r4,r1,8                                
ffc14be0:	38 a1 00 cc 	addi    r5,r1,204                              
ffc14be4:	7f c6 f3 78 	mr      r6,r30                                 
ffc14be8:	7f a7 eb 78 	mr      r7,r29                                 
ffc14bec:	48 00 ba 4d 	bl      ffc20638 <rtems_rfs_bitmap_open>       
                              group_base + RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
  if (rc > 0)                                                         
ffc14bf0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc14bf4:	40 81 00 54 	ble-    ffc14c48 <rtems_rfs_format+0x86c>      <== 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);                       
ffc14bf8:	38 81 00 cc 	addi    r4,r1,204                              <== NOT EXECUTED
ffc14bfc:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc14c00:	48 00 d1 05 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc14c04:	39 20 00 00 	li      r9,0                                   <== 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);                       
  handle->dirty = false;                                              
ffc14c08:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc14c0c:	91 21 00 d0 	stw     r9,208(r1)                             <== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    printf ("\nrtems-rfs: write-group: group %3d: open block bitmap failed: %d: %s\n",
ffc14c10:	7f e3 fb 78 	mr      r3,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);                       
  handle->dirty = false;                                              
ffc14c14:	99 41 00 cc 	stb     r10,204(r1)                            <== NOT EXECUTED
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc14c18:	91 21 00 d4 	stw     r9,212(r1)                             <== NOT EXECUTED
ffc14c1c:	48 01 6f f9 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc14c20:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc14c24:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14c28:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc14c2c:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc14c30:	38 63 bb 8c 	addi    r3,r3,-17524                           <== NOT EXECUTED
ffc14c34:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14c38:	48 01 5e 61 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc14c3c:	4b ff f9 e0 	b       ffc1461c <rtems_rfs_format+0x240>      <== 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));  
ffc14c40:	7d 09 43 78 	mr      r9,r8                                  <== NOT EXECUTED
ffc14c44:	4b ff fd 64 	b       ffc149a8 <rtems_rfs_format+0x5cc>      <== 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));
ffc14c48:	81 21 00 d4 	lwz     r9,212(r1)                             
ffc14c4c:	38 80 00 ff 	li      r4,255                                 
ffc14c50:	80 a1 00 10 	lwz     r5,16(r1)                              
ffc14c54:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc14c58:	48 01 5b e5 	bl      ffc2a83c <memset>                      
                                                                      
  /*                                                                  
   * Clear the bitmap.                                                
   */                                                                 
  rc = rtems_rfs_bitmap_map_clear_all (&bitmap);                      
ffc14c5c:	38 61 00 b4 	addi    r3,r1,180                              
ffc14c60:	48 00 b6 a5 	bl      ffc20304 <rtems_rfs_bitmap_map_clear_all>
  if (rc > 0)                                                         
ffc14c64:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc14c68:	40 81 00 88 	ble-    ffc14cf0 <rtems_rfs_format+0x914>      <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_bitmap_close (&bitmap);                                 
ffc14c6c:	38 61 00 b4 	addi    r3,r1,180                              <== NOT EXECUTED
ffc14c70:	48 00 ba 39 	bl      ffc206a8 <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);                       
ffc14c74:	38 81 00 cc 	addi    r4,r1,204                              <== NOT EXECUTED
ffc14c78:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc14c7c:	48 00 d0 89 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc14c80:	39 20 00 00 	li      r9,0                                   <== 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);                       
  handle->dirty = false;                                              
ffc14c84:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc14c88:	91 21 00 d0 	stw     r9,208(r1)                             <== NOT EXECUTED
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    printf ("\nrtems-rfs: write-group: group %3d: block bitmap clear all failed: %d: %s\n",
ffc14c8c:	7f e3 fb 78 	mr      r3,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);                       
  handle->dirty = false;                                              
ffc14c90:	99 41 00 cc 	stb     r10,204(r1)                            <== NOT EXECUTED
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc14c94:	91 21 00 d4 	stw     r9,212(r1)                             <== NOT EXECUTED
ffc14c98:	48 01 6f 7d 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc14c9c:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc14ca0:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14ca4:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc14ca8:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc14cac:	38 63 bb d4 	addi    r3,r3,-17452                           <== NOT EXECUTED
ffc14cb0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14cb4:	48 01 5d e5 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc14cb8:	4b ff f9 64 	b       ffc1461c <rtems_rfs_format+0x240>      <== 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",
ffc14cbc:	7e 83 a3 78 	mr      r3,r20                                 <== NOT EXECUTED
ffc14cc0:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc14cc4:	7f a5 eb 78 	mr      r5,r29                                 <== NOT EXECUTED
ffc14cc8:	7f c6 f3 78 	mr      r6,r30                                 <== NOT EXECUTED
ffc14ccc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14cd0:	48 01 5d c9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
    return false;                                                     
  }                                                                   
                                                                      
  if (verbose)                                                        
    printf (", blocks");                                              
ffc14cd4:	7e c3 b3 78 	mr      r3,r22                                 <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc14cd8:	9a a1 00 cc 	stb     r21,204(r1)                            <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc14cdc:	93 01 00 d0 	stw     r24,208(r1)                            <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc14ce0:	93 01 00 d4 	stw     r24,212(r1)                            <== NOT EXECUTED
ffc14ce4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14ce8:	48 01 5d b1 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc14cec:	4b ff fe ec 	b       ffc14bd8 <rtems_rfs_format+0x7fc>      <== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * Forced allocation of the block bitmap.                           
   */                                                                 
  rtems_rfs_bitmap_map_set (&bitmap, RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
ffc14cf0:	38 80 00 00 	li      r4,0                                   
ffc14cf4:	38 61 00 b4 	addi    r3,r1,180                              
ffc14cf8:	48 00 b3 19 	bl      ffc20010 <rtems_rfs_bitmap_map_set>    
                                                                      
  /*                                                                  
   * Forced allocation of the inode bitmap.                           
   */                                                                 
  rtems_rfs_bitmap_map_set (&bitmap, RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
ffc14cfc:	38 61 00 b4 	addi    r3,r1,180                              
ffc14d00:	38 80 00 01 	li      r4,1                                   
ffc14d04:	48 00 b3 0d 	bl      ffc20010 <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);
ffc14d08:	81 21 00 34 	lwz     r9,52(r1)                              
ffc14d0c:	81 41 00 38 	lwz     r10,56(r1)                             
 * "quotient = dividend / divisor"                                    
 */                                                                   
int                                                                   
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)          
{                                                                     
  if (dividend == 0)                                                  
ffc14d10:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc14d14:	40 9e 00 a4 	bne-    cr7,ffc14db8 <rtems_rfs_format+0x9dc>  <== ALWAYS TAKEN
    return 1;                                                         
ffc14d18:	3a 20 00 01 	li      r17,1                                  <== NOT EXECUTED
ffc14d1c:	3b e0 00 00 	li      r31,0                                  
                                                                      
  /*                                                                  
   * 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);
ffc14d20:	38 9f 00 02 	addi    r4,r31,2                               
ffc14d24:	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++)                                        
ffc14d28:	3b ff 00 01 	addi    r31,r31,1                              
    rtems_rfs_bitmap_map_set (&bitmap, b + RTEMS_RFS_GROUP_INODE_BLOCK);
ffc14d2c:	48 00 b2 e5 	bl      ffc20010 <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++)                                        
ffc14d30:	7f 9f 88 00 	cmpw    cr7,r31,r17                            
ffc14d34:	41 9c ff ec 	blt+    cr7,ffc14d20 <rtems_rfs_format+0x944>  
    rtems_rfs_bitmap_map_set (&bitmap, b + RTEMS_RFS_GROUP_INODE_BLOCK);
                                                                      
  /*                                                                  
   * Close the block bitmap.                                          
   */                                                                 
  rc = rtems_rfs_bitmap_close (&bitmap);                              
ffc14d38:	38 61 00 b4 	addi    r3,r1,180                              
ffc14d3c:	48 00 b9 6d 	bl      ffc206a8 <rtems_rfs_bitmap_close>      
  if (rc > 0)                                                         
ffc14d40:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc14d44:	41 81 00 88 	bgt-    ffc14dcc <rtems_rfs_format+0x9f0>      <== NEVER TAKEN
    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);                              
ffc14d48:	9a 61 00 cc 	stb     r19,204(r1)                            
                                                                      
  if (verbose)                                                        
ffc14d4c:	40 92 01 3c 	bne-    cr4,ffc14e88 <rtems_rfs_format+0xaac>  <== NEVER TAKEN
    printf (", inodes");                                              
                                                                      
  /*                                                                  
   * Open the inode bitmap using the old buffer. Should release any changes.
   */                                                                 
  rc = rtems_rfs_bitmap_open (&bitmap, fs, &handle, group_size,       
ffc14d50:	38 61 00 b4 	addi    r3,r1,180                              
ffc14d54:	38 81 00 08 	addi    r4,r1,8                                
ffc14d58:	38 a1 00 cc 	addi    r5,r1,204                              
ffc14d5c:	7f c6 f3 78 	mr      r6,r30                                 
ffc14d60:	38 fa 00 02 	addi    r7,r26,2                               
ffc14d64:	48 00 b8 d5 	bl      ffc20638 <rtems_rfs_bitmap_open>       
                              group_base + RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
  if (rc > 0)                                                         
ffc14d68:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc14d6c:	40 81 00 a8 	ble-    ffc14e14 <rtems_rfs_format+0xa38>      <== 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);                       
ffc14d70:	38 81 00 cc 	addi    r4,r1,204                              <== NOT EXECUTED
ffc14d74:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc14d78:	48 00 cf 8d 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc14d7c:	39 20 00 00 	li      r9,0                                   <== 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);                       
  handle->dirty = false;                                              
ffc14d80:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc14d84:	91 21 00 d0 	stw     r9,208(r1)                             <== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    printf ("\nrtems-rfs: write-group: group %3d: open inode bitmap failed: %d: %s\n",
ffc14d88:	7f e3 fb 78 	mr      r3,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);                       
  handle->dirty = false;                                              
ffc14d8c:	99 41 00 cc 	stb     r10,204(r1)                            <== NOT EXECUTED
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc14d90:	91 21 00 d4 	stw     r9,212(r1)                             <== NOT EXECUTED
ffc14d94:	48 01 6e 81 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc14d98:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc14d9c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14da0:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc14da4:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc14da8:	38 63 bc 74 	addi    r3,r3,-17292                           <== NOT EXECUTED
ffc14dac:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14db0:	48 01 5c e9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc14db4:	4b ff f8 68 	b       ffc1461c <rtems_rfs_format+0x240>      <== NOT EXECUTED
int                                                                   
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)          
{                                                                     
  if (dividend == 0)                                                  
    return 1;                                                         
  return ((dividend - 1) / divisor) + 1;                              
ffc14db8:	3a 29 ff ff 	addi    r17,r9,-1                              
ffc14dbc:	7e 31 53 96 	divwu   r17,r17,r10                            
  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++)                                        
ffc14dc0:	36 31 00 01 	addic.  r17,r17,1                              
ffc14dc4:	41 81 ff 58 	bgt+    ffc14d1c <rtems_rfs_format+0x940>      <== ALWAYS TAKEN
ffc14dc8:	4b ff ff 70 	b       ffc14d38 <rtems_rfs_format+0x95c>      <== 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);                       
ffc14dcc:	38 81 00 cc 	addi    r4,r1,204                              <== NOT EXECUTED
ffc14dd0:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc14dd4:	48 00 cf 31 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc14dd8:	39 20 00 00 	li      r9,0                                   <== 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);                       
  handle->dirty = false;                                              
ffc14ddc:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc14de0:	91 21 00 d0 	stw     r9,208(r1)                             <== NOT EXECUTED
   */                                                                 
  rc = rtems_rfs_bitmap_close (&bitmap);                              
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    printf ("\nrtems-rfs: write-group: group %3d: close block bitmap failed: %d: %s\n",
ffc14de4:	7f e3 fb 78 	mr      r3,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);                       
  handle->dirty = false;                                              
ffc14de8:	99 41 00 cc 	stb     r10,204(r1)                            <== NOT EXECUTED
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc14dec:	91 21 00 d4 	stw     r9,212(r1)                             <== NOT EXECUTED
ffc14df0:	48 01 6e 25 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc14df4:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc14df8:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14dfc:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc14e00:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc14e04:	38 63 bc 20 	addi    r3,r3,-17376                           <== NOT EXECUTED
ffc14e08:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14e0c:	48 01 5c 8d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc14e10:	4b ff f8 0c 	b       ffc1461c <rtems_rfs_format+0x240>      <== 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));
ffc14e14:	81 21 00 d4 	lwz     r9,212(r1)                             
ffc14e18:	38 80 00 00 	li      r4,0                                   
ffc14e1c:	80 a1 00 10 	lwz     r5,16(r1)                              
ffc14e20:	80 69 00 1c 	lwz     r3,28(r9)                              
ffc14e24:	48 01 5a 19 	bl      ffc2a83c <memset>                      
                                                                      
  /*                                                                  
   * Clear the inode bitmap.                                          
   */                                                                 
  rc = rtems_rfs_bitmap_map_clear_all (&bitmap);                      
ffc14e28:	38 61 00 b4 	addi    r3,r1,180                              
ffc14e2c:	48 00 b4 d9 	bl      ffc20304 <rtems_rfs_bitmap_map_clear_all>
  if (rc > 0)                                                         
ffc14e30:	7c 7f 1b 79 	mr.     r31,r3                                 
  {                                                                   
    rtems_rfs_bitmap_close (&bitmap);                                 
ffc14e34:	38 61 00 b4 	addi    r3,r1,180                              
                                                                      
  /*                                                                  
   * Clear the inode bitmap.                                          
   */                                                                 
  rc = rtems_rfs_bitmap_map_clear_all (&bitmap);                      
  if (rc > 0)                                                         
ffc14e38:	40 81 00 84 	ble-    ffc14ebc <rtems_rfs_format+0xae0>      <== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_bitmap_close (&bitmap);                                 
ffc14e3c:	48 00 b8 6d 	bl      ffc206a8 <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);                       
ffc14e40:	38 81 00 cc 	addi    r4,r1,204                              <== NOT EXECUTED
ffc14e44:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc14e48:	48 00 ce bd 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc14e4c:	39 20 00 00 	li      r9,0                                   <== 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);                       
  handle->dirty = false;                                              
ffc14e50:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc14e54:	91 21 00 d0 	stw     r9,208(r1)                             <== NOT EXECUTED
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    printf ("\nrtems-rfs: write-group: group %3d: inode bitmap" \     
ffc14e58:	7f e3 fb 78 	mr      r3,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);                       
  handle->dirty = false;                                              
ffc14e5c:	99 41 00 cc 	stb     r10,204(r1)                            <== NOT EXECUTED
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc14e60:	91 21 00 d4 	stw     r9,212(r1)                             <== NOT EXECUTED
ffc14e64:	48 01 6d b1 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc14e68:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc14e6c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14e70:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc14e74:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc14e78:	38 63 bc bc 	addi    r3,r3,-17220                           <== NOT EXECUTED
ffc14e7c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14e80:	48 01 5c 19 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc14e84:	4b ff f7 98 	b       ffc1461c <rtems_rfs_format+0x240>      <== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_rfs_buffer_mark_dirty (&handle);                              
                                                                      
  if (verbose)                                                        
    printf (", inodes");                                              
ffc14e88:	7e 43 93 78 	mr      r3,r18                                 <== NOT EXECUTED
ffc14e8c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14e90:	48 01 5c 09 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc14e94:	4b ff fe bc 	b       ffc14d50 <rtems_rfs_format+0x974>      <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_buffer_setblksize (&fs, rtems_rfs_fs_block_size (&fs));
  if (rc > 0)                                                         
  {                                                                   
    printf ("rtems-rfs: format: setting block size failed: %d: %s\n", 
ffc14e98:	48 01 6d 7d 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc14e9c:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc14ea0:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc14ea4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14ea8:	38 63 ba 60 	addi    r3,r3,-17824                           <== NOT EXECUTED
ffc14eac:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14eb0:	48 01 5b e9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
    return -1;                                                        
ffc14eb4:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc14eb8:	4b ff f7 68 	b       ffc14620 <rtems_rfs_format+0x244>      <== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * Close the inode bitmap.                                          
   */                                                                 
  rc = rtems_rfs_bitmap_close (&bitmap);                              
ffc14ebc:	48 00 b7 ed 	bl      ffc206a8 <rtems_rfs_bitmap_close>      
  if (rc > 0)                                                         
ffc14ec0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc14ec4:	41 81 00 bc 	bgt-    ffc14f80 <rtems_rfs_format+0xba4>      <== NEVER TAKEN
  rtems_rfs_buffer_mark_dirty (&handle);                              
                                                                      
  /*                                                                  
   * Initialise the inode tables if required to do so.                
   */                                                                 
  if (initialise_inodes)                                              
ffc14ec8:	2f 99 00 00 	cmpwi   cr7,r25,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);                              
ffc14ecc:	9a 61 00 cc 	stb     r19,204(r1)                            
                                                                      
  /*                                                                  
   * Initialise the inode tables if required to do so.                
   */                                                                 
  if (initialise_inodes)                                              
ffc14ed0:	41 9e 01 38 	beq-    cr7,ffc15008 <rtems_rfs_format+0xc2c>  <== ALWAYS TAKEN
  {                                                                   
    for (b = 0; b < blocks; b++)                                      
ffc14ed4:	2f 91 00 00 	cmpwi   cr7,r17,0                              <== NOT EXECUTED
ffc14ed8:	40 9d 01 30 	ble-    cr7,ffc15008 <rtems_rfs_format+0xc2c>  <== NOT EXECUTED
ffc14edc:	3b bd 00 02 	addi    r29,r29,2                              <== NOT EXECUTED
                                                                      
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_format (const char* name, const rtems_rfs_format_config* config)
ffc14ee0:	7e 31 ea 14 	add     r17,r17,r29                            <== NOT EXECUTED
ffc14ee4:	48 00 00 24 	b       ffc14f08 <rtems_rfs_format+0xb2c>      <== 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));
ffc14ee8:	81 21 00 d4 	lwz     r9,212(r1)                             <== NOT EXECUTED
ffc14eec:	3b bd 00 01 	addi    r29,r29,1                              <== NOT EXECUTED
ffc14ef0:	80 a1 00 10 	lwz     r5,16(r1)                              <== NOT EXECUTED
ffc14ef4:	80 69 00 1c 	lwz     r3,28(r9)                              <== NOT EXECUTED
ffc14ef8:	48 01 59 45 	bl      ffc2a83c <memset>                      <== NOT EXECUTED
  /*                                                                  
   * Initialise the inode tables if required to do so.                
   */                                                                 
  if (initialise_inodes)                                              
  {                                                                   
    for (b = 0; b < blocks; b++)                                      
ffc14efc:	7f 9d 88 00 	cmpw    cr7,r29,r17                            <== 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));
                                                                      
      rtems_rfs_buffer_mark_dirty (&handle);                          
ffc14f00:	9a 61 00 cc 	stb     r19,204(r1)                            <== NOT EXECUTED
  /*                                                                  
   * Initialise the inode tables if required to do so.                
   */                                                                 
  if (initialise_inodes)                                              
  {                                                                   
    for (b = 0; b < blocks; b++)                                      
ffc14f04:	41 9e 01 04 	beq-    cr7,ffc15008 <rtems_rfs_format+0xc2c>  <== NOT EXECUTED
    {                                                                 
      rc = rtems_rfs_buffer_handle_request (fs, &handle,              
ffc14f08:	38 81 00 cc 	addi    r4,r1,204                              <== NOT EXECUTED
ffc14f0c:	7f a5 eb 78 	mr      r5,r29                                 <== NOT EXECUTED
ffc14f10:	38 c0 00 00 	li      r6,0                                   <== NOT EXECUTED
ffc14f14:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc14f18:	48 00 d0 01 	bl      ffc21f18 <rtems_rfs_buffer_handle_request><== 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));
ffc14f1c:	38 80 00 ff 	li      r4,255                                 <== NOT EXECUTED
    for (b = 0; b < blocks; b++)                                      
    {                                                                 
      rc = rtems_rfs_buffer_handle_request (fs, &handle,              
                                            group_base + b + RTEMS_RFS_GROUP_INODE_BLOCK,
                                            false);                   
      if (rc > 0)                                                     
ffc14f20:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc14f24:	40 81 ff c4 	ble+    ffc14ee8 <rtems_rfs_format+0xb0c>      <== 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);                       
ffc14f28:	38 81 00 cc 	addi    r4,r1,204                              <== NOT EXECUTED
ffc14f2c:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc14f30:	48 00 cd d5 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc14f34:	39 20 00 00 	li      r9,0                                   <== 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);                       
  handle->dirty = false;                                              
ffc14f38:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc14f3c:	91 21 00 d0 	stw     r9,208(r1)                             <== NOT EXECUTED
      {                                                               
        rtems_rfs_buffer_handle_close (fs, &handle);                  
        printf ("\nrtems-rfs: write-group: group %3d: block %" PRId32 " request failed: %d: %s\n",
ffc14f40:	7f e3 fb 78 	mr      r3,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);                       
  handle->dirty = false;                                              
ffc14f44:	99 41 00 cc 	stb     r10,204(r1)                            <== NOT EXECUTED
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc14f48:	91 21 00 d4 	stw     r9,212(r1)                             <== NOT EXECUTED
ffc14f4c:	48 01 6c c9 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc14f50:	7c 67 1b 78 	mr      r7,r3                                  <== NOT EXECUTED
ffc14f54:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14f58:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc14f5c:	7f a5 eb 78 	mr      r5,r29                                 <== NOT EXECUTED
ffc14f60:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
ffc14f64:	38 63 bd 50 	addi    r3,r3,-17072                           <== NOT EXECUTED
ffc14f68:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14f6c:	48 01 5b 2d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc14f70:	4b ff f6 ac 	b       ffc1461c <rtems_rfs_format+0x240>      <== NOT EXECUTED
                                                                      
    if (total_size >= GIGS (1))                                       
    {                                                                 
      uint32_t gigs = (total_size + GIGS (1)) / GIGS (1);             
      int      b;                                                     
      for (b = 31; b > 0; b--)                                        
ffc14f74:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
        if ((gigs & (1 << b)) != 0)                                   
          break;                                                      
      fs->block_size = 1 << b;                                        
ffc14f78:	90 81 00 10 	stw     r4,16(r1)                              <== NOT EXECUTED
ffc14f7c:	4b ff fb 58 	b       ffc14ad4 <rtems_rfs_format+0x6f8>      <== 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);                       
ffc14f80:	38 81 00 cc 	addi    r4,r1,204                              <== NOT EXECUTED
ffc14f84:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
ffc14f88:	48 00 cd 7d 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc14f8c:	39 20 00 00 	li      r9,0                                   <== 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);                       
  handle->dirty = false;                                              
ffc14f90:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc14f94:	91 21 00 d0 	stw     r9,208(r1)                             <== NOT EXECUTED
   */                                                                 
  rc = rtems_rfs_bitmap_close (&bitmap);                              
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    printf ("\nrtems-rfs: write-group: group %3d: close inode" \      
ffc14f98:	7f e3 fb 78 	mr      r3,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);                       
  handle->dirty = false;                                              
ffc14f9c:	99 41 00 cc 	stb     r10,204(r1)                            <== NOT EXECUTED
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc14fa0:	91 21 00 d4 	stw     r9,212(r1)                             <== NOT EXECUTED
ffc14fa4:	48 01 6c 71 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc14fa8:	7c 66 1b 78 	mr      r6,r3                                  <== NOT EXECUTED
ffc14fac:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14fb0:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc14fb4:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc14fb8:	38 63 bd 08 	addi    r3,r3,-17144                           <== NOT EXECUTED
ffc14fbc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14fc0:	48 01 5a d9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc14fc4:	4b ff f6 58 	b       ffc1461c <rtems_rfs_format+0x240>      <== NOT EXECUTED
   * Open the buffer interface.                                       
   */                                                                 
  rc = rtems_rfs_buffer_open (name, &fs);                             
  if (rc > 0)                                                         
  {                                                                   
    printf ("rtems-rfs: format: buffer open failed: %d: %s\n",        
ffc14fc8:	48 01 6c 4d 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc14fcc:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc14fd0:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc14fd4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14fd8:	38 63 b7 c4 	addi    r3,r3,-18492                           <== NOT EXECUTED
ffc14fdc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14fe0:	48 01 5a b9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
    return -1;                                                        
ffc14fe4:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc14fe8:	4b ff f6 38 	b       ffc14620 <rtems_rfs_format+0x244>      <== NOT EXECUTED
  /*                                                                  
   * Check the media.                                                 
   */                                                                 
  if (rtems_rfs_fs_media_block_size (&fs) == 0)                       
  {                                                                   
    printf ("rtems-rfs: media block is invalid: %" PRIu32 "\n",       
ffc14fec:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc14ff0:	38 63 b7 f4 	addi    r3,r3,-18444                           <== NOT EXECUTED
ffc14ff4:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc14ff8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc14ffc:	48 01 5a 9d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rtems_rfs_fs_media_block_size (&fs));                     
    return -1;                                                        
ffc15000:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc15004:	4b ff f6 1c 	b       ffc14620 <rtems_rfs_format+0x244>      <== 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);                       
ffc15008:	38 61 00 08 	addi    r3,r1,8                                
ffc1500c:	38 81 00 cc 	addi    r4,r1,204                              
ffc15010:	48 00 cc f5 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
  {                                                                   
    printf ("rtems-rfs: format: superblock write failed\n");          
    return -1;                                                        
  }                                                                   
                                                                      
  for (group = 0; group < fs.group_count; group++)                    
ffc15014:	81 21 00 2c 	lwz     r9,44(r1)                              
ffc15018:	3b 7b 00 01 	addi    r27,r27,1                              
ffc1501c:	7f 89 d8 00 	cmpw    cr7,r9,r27                             
ffc15020:	40 9d 00 44 	ble-    cr7,ffc15064 <rtems_rfs_format+0xc88>  <== ALWAYS TAKEN
  size_t                   group_size;                                
  int                      blocks;                                    
  int                      b;                                         
  int                      rc;                                        
                                                                      
  group_base = rtems_rfs_fs_block (fs, group, 0);                     
ffc15024:	83 c1 00 30 	lwz     r30,48(r1)                             <== NOT EXECUTED
                                                                      
  if (group_base > rtems_rfs_fs_blocks (fs))                          
ffc15028:	81 41 00 0c 	lwz     r10,12(r1)                             <== NOT EXECUTED
  size_t                   group_size;                                
  int                      blocks;                                    
  int                      b;                                         
  int                      rc;                                        
                                                                      
  group_base = rtems_rfs_fs_block (fs, group, 0);                     
ffc1502c:	7f 5b f1 d6 	mullw   r26,r27,r30                            <== NOT EXECUTED
    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,                           
ffc15030:	8b 3c 00 14 	lbz     r25,20(r28)                            <== NOT EXECUTED
ffc15034:	89 3c 00 15 	lbz     r9,21(r28)                             <== NOT EXECUTED
  size_t                   group_size;                                
  int                      blocks;                                    
  int                      b;                                         
  int                      rc;                                        
                                                                      
  group_base = rtems_rfs_fs_block (fs, group, 0);                     
ffc15038:	3b ba 00 01 	addi    r29,r26,1                              <== NOT EXECUTED
                                                                      
  if (group_base > rtems_rfs_fs_blocks (fs))                          
ffc1503c:	7f 9d 50 40 	cmplw   cr7,r29,r10                            <== NOT EXECUTED
ffc15040:	40 9d fb 74 	ble+    cr7,ffc14bb4 <rtems_rfs_format+0x7d8>  <== NOT EXECUTED
  {                                                                   
    printf ("rtems-rfs: write-group: group %d base beyond disk limit\n",
ffc15044:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc15048:	7f 64 db 78 	mr      r4,r27                                 <== NOT EXECUTED
ffc1504c:	38 63 bb 0c 	addi    r3,r3,-17652                           <== NOT EXECUTED
ffc15050:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc15054:	48 01 5a 45 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc15058:	4b ff f5 c4 	b       ffc1461c <rtems_rfs_format+0x240>      <== NOT EXECUTED
  int                      b;                                         
  int                      rc;                                        
                                                                      
  group_base = rtems_rfs_fs_block (fs, group, 0);                     
                                                                      
  if (group_base > rtems_rfs_fs_blocks (fs))                          
ffc1505c:	3b 60 00 00 	li      r27,0                                  <== NOT EXECUTED
ffc15060:	4b ff ff e4 	b       ffc15044 <rtems_rfs_format+0xc68>      <== NOT EXECUTED
  for (group = 0; group < fs.group_count; group++)                    
    if (!rtems_rfs_write_group (&fs, group,                           
                                config->initialise_inodes, config->verbose))
      return -1;                                                      
                                                                      
  if (config->verbose)                                                
ffc15064:	89 3c 00 15 	lbz     r9,21(r28)                             
ffc15068:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1506c:	41 be 00 0c 	beq+    cr7,ffc15078 <rtems_rfs_format+0xc9c>  <== ALWAYS TAKEN
    printf ("\n");                                                    
ffc15070:	38 60 00 0a 	li      r3,10                                  <== NOT EXECUTED
ffc15074:	48 01 5c b1 	bl      ffc2ad24 <putchar>                     <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_buffer_close (&fs);                                  
ffc15078:	38 61 00 08 	addi    r3,r1,8                                
ffc1507c:	48 00 d6 6d 	bl      ffc226e8 <rtems_rfs_buffer_close>      
  if (rc > 0)                                                         
ffc15080:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc15084:	41 81 01 08 	bgt-    ffc1518c <rtems_rfs_format+0xdb0>      <== NEVER TAKEN
  int                    rc;                                          
                                                                      
  /*                                                                  
   * External API so returns -1.                                      
   */                                                                 
  rc = rtems_rfs_fs_open (name, NULL,                                 
ffc15088:	7e e3 bb 78 	mr      r3,r23                                 
ffc1508c:	38 80 00 00 	li      r4,0                                   
ffc15090:	38 a0 00 06 	li      r5,6                                   
ffc15094:	38 c0 00 00 	li      r6,0                                   
ffc15098:	38 e1 00 dc 	addi    r7,r1,220                              
ffc1509c:	48 01 00 39 	bl      ffc250d4 <rtems_rfs_fs_open>           
                          RTEMS_RFS_FS_FORCE_OPEN | RTEMS_RFS_FS_NO_LOCAL_CACHE,
                          0, &fs);                                    
  if (rc < 0)                                                         
ffc150a0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc150a4:	41 9c 01 d4 	blt-    cr7,ffc15278 <rtems_rfs_format+0xe9c>  <== NEVER TAKEN
    printf ("rtems-rfs: format: file system open failed: %d: %s\n",   
            errno, strerror (errno));                                 
    return -1;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_alloc (fs, RTEMS_RFS_ROOT_INO, &ino);          
ffc150a8:	80 61 00 dc 	lwz     r3,220(r1)                             
ffc150ac:	38 80 00 01 	li      r4,1                                   
ffc150b0:	38 a1 00 d8 	addi    r5,r1,216                              
ffc150b4:	48 00 0b dd 	bl      ffc15c90 <rtems_rfs_inode_alloc>       
  if (rc > 0)                                                         
ffc150b8:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc150bc:	41 81 00 30 	bgt-    ffc150ec <rtems_rfs_format+0xd10>      <== NEVER TAKEN
            rc, strerror (rc));                                       
    rtems_rfs_fs_close (fs);                                          
    return rc;                                                        
  }                                                                   
                                                                      
  if (ino != RTEMS_RFS_ROOT_INO)                                      
ffc150c0:	80 81 00 d8 	lwz     r4,216(r1)                             
ffc150c4:	2f 84 00 01 	cmpwi   cr7,r4,1                               
ffc150c8:	41 9e 00 70 	beq-    cr7,ffc15138 <rtems_rfs_format+0xd5c>  <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: format: allocated inode not root ino: %" PRId32 "\n", ino);
ffc150cc:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc150d0:	38 63 be 30 	addi    r3,r3,-16848                           <== NOT EXECUTED
ffc150d4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc150d8:	48 01 59 c1 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    rtems_rfs_fs_close (fs);                                          
ffc150dc:	80 61 00 dc 	lwz     r3,220(r1)                             <== NOT EXECUTED
ffc150e0:	48 01 09 01 	bl      ffc259e0 <rtems_rfs_fs_close>          <== NOT EXECUTED
    printf ("rtems-rfs: format: writing root dir failed: %d: %s\n",   
            rc, strerror (rc));                                       
    return -1;                                                        
  }                                                                   
                                                                      
  return 0;                                                           
ffc150e4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc150e8:	4b ff f5 38 	b       ffc14620 <rtems_rfs_format+0x244>      <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_alloc (fs, RTEMS_RFS_ROOT_INO, &ino);          
  if (rc > 0)                                                         
  {                                                                   
    printf ("rtems-rfs: format: inode allocation failed: %d: %s\n",   
ffc150ec:	48 01 6b 29 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc150f0:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc150f4:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc150f8:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc150fc:	38 63 bd fc 	addi    r3,r3,-16900                           <== NOT EXECUTED
ffc15100:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc15104:	48 01 59 95 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
    rtems_rfs_fs_close (fs);                                          
ffc15108:	80 61 00 dc 	lwz     r3,220(r1)                             <== NOT EXECUTED
ffc1510c:	48 01 08 d5 	bl      ffc259e0 <rtems_rfs_fs_close>          <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_write_root_dir (name);                               
  if (rc > 0)                                                         
  {                                                                   
    printf ("rtems-rfs: format: writing root dir failed: %d: %s\n",   
ffc15110:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc15114:	48 01 6b 01 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc15118:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1511c:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc15120:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc15124:	38 63 bf 68 	addi    r3,r3,-16536                           <== NOT EXECUTED
ffc15128:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1512c:	48 01 59 6d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
    return -1;                                                        
ffc15130:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc15134:	4b ff f4 ec 	b       ffc14620 <rtems_rfs_format+0x244>      <== NOT EXECUTED
    printf ("rtems-rfs: format: allocated inode not root ino: %" PRId32 "\n", ino);
    rtems_rfs_fs_close (fs);                                          
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
ffc15138:	80 61 00 dc 	lwz     r3,220(r1)                             
ffc1513c:	38 80 00 01 	li      r4,1                                   
ffc15140:	38 a1 00 8c 	addi    r5,r1,140                              
ffc15144:	38 c0 00 01 	li      r6,1                                   
ffc15148:	48 00 0c 65 	bl      ffc15dac <rtems_rfs_inode_open>        
  if (rc > 0)                                                         
ffc1514c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc15150:	40 81 00 60 	ble-    ffc151b0 <rtems_rfs_format+0xdd4>      <== ALWAYS TAKEN
  {                                                                   
    printf ("rtems-rfs: format: inode open failed: %d: %s\n",         
ffc15154:	48 01 6a c1 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc15158:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc1515c:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc15160:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc15164:	38 63 be 68 	addi    r3,r3,-16792                           <== NOT EXECUTED
ffc15168:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1516c:	48 01 59 2d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
    rtems_rfs_group_bitmap_free (fs, true, ino);                      
ffc15170:	80 61 00 dc 	lwz     r3,220(r1)                             <== NOT EXECUTED
ffc15174:	80 a1 00 d8 	lwz     r5,216(r1)                             <== NOT EXECUTED
ffc15178:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc1517c:	48 00 07 d1 	bl      ffc1594c <rtems_rfs_group_bitmap_free> <== NOT EXECUTED
    rtems_rfs_fs_close (fs);                                          
ffc15180:	80 61 00 dc 	lwz     r3,220(r1)                             <== NOT EXECUTED
ffc15184:	48 01 08 5d 	bl      ffc259e0 <rtems_rfs_fs_close>          <== NOT EXECUTED
ffc15188:	4b ff ff 88 	b       ffc15110 <rtems_rfs_format+0xd34>      <== NOT EXECUTED
    printf ("\n");                                                    
                                                                      
  rc = rtems_rfs_buffer_close (&fs);                                  
  if (rc > 0)                                                         
  {                                                                   
    printf ("rtems-rfs: format: buffer close failed: %d: %s\n",       
ffc1518c:	48 01 6a 89 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc15190:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc15194:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc15198:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc1519c:	38 63 bd 98 	addi    r3,r3,-17000                           <== NOT EXECUTED
ffc151a0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc151a4:	48 01 58 f5 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
    return -1;                                                        
ffc151a8:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc151ac:	4b ff f4 74 	b       ffc14620 <rtems_rfs_format+0x244>      <== NOT EXECUTED
    rtems_rfs_group_bitmap_free (fs, true, ino);                      
    rtems_rfs_fs_close (fs);                                          
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_initialise (&inode, 0,                         
ffc151b0:	38 61 00 8c 	addi    r3,r1,140                              
ffc151b4:	38 80 00 00 	li      r4,0                                   
ffc151b8:	38 a0 41 c9 	li      r5,16841                               
ffc151bc:	38 c0 00 00 	li      r6,0                                   
ffc151c0:	38 e0 00 00 	li      r7,0                                   
ffc151c4:	48 00 11 21 	bl      ffc162e4 <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)                                                         
ffc151c8:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc151cc:	40 81 00 20 	ble-    ffc151ec <rtems_rfs_format+0xe10>      <== ALWAYS TAKEN
    printf ("rtems-rfs: format: inode initialise failed: %d: %s\n",   
ffc151d0:	48 01 6a 45 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc151d4:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc151d8:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc151dc:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc151e0:	38 63 be 98 	addi    r3,r3,-16744                           <== NOT EXECUTED
ffc151e4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc151e8:	48 01 58 b1 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
  rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, ino);             
ffc151ec:	80 61 00 dc 	lwz     r3,220(r1)                             
ffc151f0:	3c a0 ff c4 	lis     r5,-60                                 
ffc151f4:	80 e1 00 d8 	lwz     r7,216(r1)                             
ffc151f8:	38 81 00 8c 	addi    r4,r1,140                              
ffc151fc:	38 a5 9d 10 	addi    r5,r5,-25328                           
ffc15200:	38 c0 00 01 	li      r6,1                                   
ffc15204:	48 00 db cd 	bl      ffc22dd0 <rtems_rfs_dir_add_entry>     
  if (rc > 0)                                                         
ffc15208:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1520c:	40 81 00 20 	ble-    ffc1522c <rtems_rfs_format+0xe50>      <== ALWAYS TAKEN
    printf ("rtems-rfs: format: directory add failed: %d: %s\n",      
ffc15210:	48 01 6a 05 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc15214:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc15218:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1521c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc15220:	38 63 be cc 	addi    r3,r3,-16692                           <== NOT EXECUTED
ffc15224:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc15228:	48 01 58 71 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc1522c:	80 61 00 dc 	lwz     r3,220(r1)                             
ffc15230:	38 81 00 8c 	addi    r4,r1,140                              
ffc15234:	48 00 0d f5 	bl      ffc16028 <rtems_rfs_inode_close>       
  if (rc > 0)                                                         
ffc15238:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1523c:	40 81 00 20 	ble-    ffc1525c <rtems_rfs_format+0xe80>      <== ALWAYS TAKEN
    printf ("rtems-rfs: format: inode close failed: %d: %s\n",        
ffc15240:	48 01 69 d5 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc15244:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc15248:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc1524c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc15250:	38 63 bf 00 	addi    r3,r3,-16640                           <== NOT EXECUTED
ffc15254:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc15258:	48 01 58 41 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
  rc = rtems_rfs_fs_close (fs);                                       
ffc1525c:	80 61 00 dc 	lwz     r3,220(r1)                             
ffc15260:	48 01 07 81 	bl      ffc259e0 <rtems_rfs_fs_close>          
  if (rc < 0)                                                         
ffc15264:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc15268:	41 80 00 44 	blt-    ffc152ac <rtems_rfs_format+0xed0>      <== NEVER TAKEN
            rc, strerror (rc));                                       
    return -1;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_write_root_dir (name);                               
  if (rc > 0)                                                         
ffc1526c:	40 a2 fe a4 	bne-    ffc15110 <rtems_rfs_format+0xd34>      <== NEVER TAKEN
    printf ("rtems-rfs: format: writing root dir failed: %d: %s\n",   
            rc, strerror (rc));                                       
    return -1;                                                        
  }                                                                   
                                                                      
  return 0;                                                           
ffc15270:	38 60 00 00 	li      r3,0                                   
ffc15274:	4b ff f3 ac 	b       ffc14620 <rtems_rfs_format+0x244>      
                          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",   
            errno, strerror (errno));                                 
ffc15278:	48 01 3d 81 	bl      ffc28ff8 <__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",   
ffc1527c:	83 e3 00 00 	lwz     r31,0(r3)                              <== NOT EXECUTED
            errno, strerror (errno));                                 
ffc15280:	48 01 3d 79 	bl      ffc28ff8 <__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",   
ffc15284:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
ffc15288:	48 01 69 8d 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc1528c:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc15290:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc15294:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc15298:	38 63 bd c8 	addi    r3,r3,-16952                           <== NOT EXECUTED
ffc1529c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc152a0:	48 01 57 f9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    printf ("rtems-rfs: format: writing root dir failed: %d: %s\n",   
            rc, strerror (rc));                                       
    return -1;                                                        
  }                                                                   
                                                                      
  return 0;                                                           
ffc152a4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc152a8:	4b ff f3 78 	b       ffc14620 <rtems_rfs_format+0x244>      <== NOT EXECUTED
            rc, strerror (rc));                                       
                                                                      
  rc = rtems_rfs_fs_close (fs);                                       
  if (rc < 0)                                                         
    printf ("rtems-rfs: format: file system close failed: %d: %s\n",  
            errno, strerror (errno));                                 
ffc152ac:	48 01 3d 4d 	bl      ffc28ff8 <__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",  
ffc152b0:	83 e3 00 00 	lwz     r31,0(r3)                              <== NOT EXECUTED
            errno, strerror (errno));                                 
ffc152b4:	48 01 3d 45 	bl      ffc28ff8 <__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",  
ffc152b8:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
ffc152bc:	48 01 69 59 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc152c0:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc152c4:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc152c8:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc152cc:	38 63 bf 30 	addi    r3,r3,-16592                           <== NOT EXECUTED
ffc152d0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc152d4:	48 01 57 c5 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    printf ("rtems-rfs: format: writing root dir failed: %d: %s\n",   
            rc, strerror (rc));                                       
    return -1;                                                        
  }                                                                   
                                                                      
  return 0;                                                           
ffc152d8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc152dc:	4b ff f3 44 	b       ffc14620 <rtems_rfs_format+0x244>      <== NOT EXECUTED
                                                                      

ffc259e0 <rtems_rfs_fs_close>: return 0; } int rtems_rfs_fs_close (rtems_rfs_file_system* fs) {
ffc259e0:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc259e4:	7c 08 02 a6 	mflr    r0                                     
  int group;                                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_CLOSE))                        
ffc259e8:	38 80 00 02 	li      r4,2                                   
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_fs_close (rtems_rfs_file_system* fs)                        
{                                                                     
ffc259ec:	93 e1 00 14 	stw     r31,20(r1)                             
ffc259f0:	7c 7f 1b 78 	mr      r31,r3                                 
  int group;                                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_CLOSE))                        
ffc259f4:	38 60 00 00 	li      r3,0                                   
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_fs_close (rtems_rfs_file_system* fs)                        
{                                                                     
ffc259f8:	90 01 00 1c 	stw     r0,28(r1)                              
ffc259fc:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc25a00:	93 c1 00 10 	stw     r30,16(r1)                             
  int group;                                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_CLOSE))                        
ffc25a04:	4b ff 24 99 	bl      ffc17e9c <rtems_rfs_trace>             
ffc25a08:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc25a0c:	40 9e 00 6c 	bne-    cr7,ffc25a78 <rtems_rfs_fs_close+0x98> <== NEVER TAKEN
    printf ("rtems-rfs: close\n");                                    
                                                                      
  for (group = 0; group < fs->group_count; group++)                   
ffc25a10:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc25a14:	3b a0 00 00 	li      r29,0                                  
ffc25a18:	3b c0 00 00 	li      r30,0                                  
ffc25a1c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc25a20:	40 9d 00 28 	ble-    cr7,ffc25a48 <rtems_rfs_fs_close+0x68> <== NEVER TAKEN
    rtems_rfs_group_close (fs, &fs->groups[group]);                   
ffc25a24:	80 9f 00 20 	lwz     r4,32(r31)                             
ffc25a28:	7f e3 fb 78 	mr      r3,r31                                 
  int group;                                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_CLOSE))                        
    printf ("rtems-rfs: close\n");                                    
                                                                      
  for (group = 0; group < fs->group_count; group++)                   
ffc25a2c:	3b de 00 01 	addi    r30,r30,1                              
    rtems_rfs_group_close (fs, &fs->groups[group]);                   
ffc25a30:	7c 84 ea 14 	add     r4,r4,r29                              
ffc25a34:	4b fe fb 75 	bl      ffc155a8 <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++)                   
ffc25a38:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc25a3c:	3b bd 00 50 	addi    r29,r29,80                             
ffc25a40:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc25a44:	41 9d ff e0 	bgt+    cr7,ffc25a24 <rtems_rfs_fs_close+0x44> <== NEVER TAKEN
    rtems_rfs_group_close (fs, &fs->groups[group]);                   
                                                                      
  rtems_rfs_buffer_close (fs);                                        
ffc25a48:	7f e3 fb 78 	mr      r3,r31                                 
ffc25a4c:	4b ff cc 9d 	bl      ffc226e8 <rtems_rfs_buffer_close>      
                                                                      
  free (fs);                                                          
ffc25a50:	7f e3 fb 78 	mr      r3,r31                                 
ffc25a54:	4b fe 48 a9 	bl      ffc0a2fc <free>                        
  return 0;                                                           
}                                                                     
ffc25a58:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc25a5c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc25a60:	38 60 00 00 	li      r3,0                                   
ffc25a64:	7c 08 03 a6 	mtlr    r0                                     
ffc25a68:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc25a6c:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc25a70:	38 21 00 18 	addi    r1,r1,24                               
ffc25a74:	4e 80 00 20 	blr                                            
rtems_rfs_fs_close (rtems_rfs_file_system* fs)                        
{                                                                     
  int group;                                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_CLOSE))                        
    printf ("rtems-rfs: close\n");                                    
ffc25a78:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc25a7c:	38 63 e3 60 	addi    r3,r3,-7328                            <== NOT EXECUTED
ffc25a80:	48 00 53 81 	bl      ffc2ae00 <puts>                        <== NOT EXECUTED
ffc25a84:	4b ff ff 8c 	b       ffc25a10 <rtems_rfs_fs_close+0x30>     <== NOT EXECUTED
                                                                      

ffc250d4 <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) {
ffc250d4:	94 21 ff a0 	stwu    r1,-96(r1)                             
ffc250d8:	7c 08 02 a6 	mflr    r0                                     
ffc250dc:	93 41 00 48 	stw     r26,72(r1)                             
ffc250e0:	7c 9a 23 78 	mr      r26,r4                                 
#endif                                                                
  rtems_rfs_inode_handle inode;                                       
  uint16_t               mode;                                        
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                         
ffc250e4:	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)                        
{                                                                     
ffc250e8:	93 a1 00 54 	stw     r29,84(r1)                             
ffc250ec:	7c 7d 1b 78 	mr      r29,r3                                 
#endif                                                                
  rtems_rfs_inode_handle inode;                                       
  uint16_t               mode;                                        
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                         
ffc250f0:	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)                        
{                                                                     
ffc250f4:	93 61 00 4c 	stw     r27,76(r1)                             
ffc250f8:	7c db 33 78 	mr      r27,r6                                 
ffc250fc:	93 81 00 50 	stw     r28,80(r1)                             
ffc25100:	7c bc 2b 78 	mr      r28,r5                                 
ffc25104:	93 e1 00 5c 	stw     r31,92(r1)                             
ffc25108:	7c ff 3b 78 	mr      r31,r7                                 
ffc2510c:	90 01 00 64 	stw     r0,100(r1)                             
ffc25110:	93 c1 00 58 	stw     r30,88(r1)                             
#endif                                                                
  rtems_rfs_inode_handle inode;                                       
  uint16_t               mode;                                        
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                         
ffc25114:	4b ff 2d 89 	bl      ffc17e9c <rtems_rfs_trace>             
ffc25118:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2511c:	40 9e 02 1c 	bne-    cr7,ffc25338 <rtems_rfs_fs_open+0x264> <== NEVER TAKEN
    printf ("rtems-rfs: open: %s\n", name);                           
                                                                      
  *fs = malloc (sizeof (rtems_rfs_file_system));                      
ffc25120:	38 60 00 84 	li      r3,132                                 
ffc25124:	4b fe 59 71 	bl      ffc0aa94 <malloc>                      
  if (!*fs)                                                           
ffc25128:	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));                      
ffc2512c:	90 7f 00 00 	stw     r3,0(r31)                              
  if (!*fs)                                                           
ffc25130:	41 9e 05 c8 	beq-    cr7,ffc256f8 <rtems_rfs_fs_open+0x624> <== NEVER TAKEN
      printf ("rtems-rfs: open: no memory for file system data\n");   
    errno = ENOMEM;                                                   
    return -1;                                                        
  }                                                                   
                                                                      
  memset (*fs, 0, sizeof (rtems_rfs_file_system));                    
ffc25134:	38 80 00 00 	li      r4,0                                   
ffc25138:	38 a0 00 84 	li      r5,132                                 
ffc2513c:	48 00 57 01 	bl      ffc2a83c <memset>                      
                                                                      
  (*fs)->user = user;                                                 
ffc25140:	81 3f 00 00 	lwz     r9,0(r31)                              
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc25144:	3b c0 00 00 	li      r30,0                                  
ffc25148:	93 49 00 80 	stw     r26,128(r9)                            
#endif                                                                
                                                                      
  /*                                                                  
   * Open the buffer interface.                                       
   */                                                                 
  rc = rtems_rfs_buffer_open (name, *fs);                             
ffc2514c:	7f a3 eb 78 	mr      r3,r29                                 
  }                                                                   
                                                                      
  memset (*fs, 0, sizeof (rtems_rfs_file_system));                    
                                                                      
  (*fs)->user = user;                                                 
  rtems_chain_initialize_empty (&(*fs)->buffers);                     
ffc25150:	81 3f 00 00 	lwz     r9,0(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 );                        
ffc25154:	39 09 00 44 	addi    r8,r9,68                               
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc25158:	93 c9 00 48 	stw     r30,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 );                        
ffc2515c:	39 49 00 48 	addi    r10,r9,72                              
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc25160:	91 09 00 4c 	stw     r8,76(r9)                              
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc25164:	91 49 00 44 	stw     r10,68(r9)                             
  rtems_chain_initialize_empty (&(*fs)->release);                     
ffc25168:	81 3f 00 00 	lwz     r9,0(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 );                        
ffc2516c:	39 09 00 54 	addi    r8,r9,84                               
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc25170:	93 c9 00 58 	stw     r30,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 );                        
ffc25174:	39 49 00 58 	addi    r10,r9,88                              
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc25178:	91 09 00 5c 	stw     r8,92(r9)                              
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc2517c:	91 49 00 54 	stw     r10,84(r9)                             
  rtems_chain_initialize_empty (&(*fs)->release_modified);            
ffc25180:	81 3f 00 00 	lwz     r9,0(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 );                        
ffc25184:	39 09 00 64 	addi    r8,r9,100                              
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc25188:	93 c9 00 68 	stw     r30,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 );                        
ffc2518c:	39 49 00 68 	addi    r10,r9,104                             
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc25190:	91 09 00 6c 	stw     r8,108(r9)                             
)                                                                     
{                                                                     
  Chain_Node *head = _Chain_Head( the_chain );                        
  Chain_Node *tail = _Chain_Tail( the_chain );                        
                                                                      
  head->next = tail;                                                  
ffc25194:	91 49 00 64 	stw     r10,100(r9)                            
  rtems_chain_initialize_empty (&(*fs)->file_shares);                 
ffc25198:	81 3f 00 00 	lwz     r9,0(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 );                        
ffc2519c:	39 49 00 74 	addi    r10,r9,116                             
                                                                      
  head->next = tail;                                                  
  head->previous = NULL;                                              
ffc251a0:	93 c9 00 78 	stw     r30,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 );                        
ffc251a4:	39 09 00 78 	addi    r8,r9,120                              
                                                                      
  head->next = tail;                                                  
ffc251a8:	91 09 00 74 	stw     r8,116(r9)                             
  head->previous = NULL;                                              
  tail->previous = head;                                              
ffc251ac:	91 49 00 7c 	stw     r10,124(r9)                            
                                                                      
  (*fs)->max_held_buffers = max_held_buffers;                         
ffc251b0:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc251b4:	93 69 00 40 	stw     r27,64(r9)                             
#endif                                                                
                                                                      
  /*                                                                  
   * Open the buffer interface.                                       
   */                                                                 
  rc = rtems_rfs_buffer_open (name, *fs);                             
ffc251b8:	7d 24 4b 78 	mr      r4,r9                                  
  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;                         
  (*fs)->buffers_count = 0;                                           
ffc251bc:	93 c9 00 50 	stw     r30,80(r9)                             
  (*fs)->release_count = 0;                                           
ffc251c0:	93 c9 00 60 	stw     r30,96(r9)                             
  (*fs)->release_modified_count = 0;                                  
ffc251c4:	93 c9 00 70 	stw     r30,112(r9)                            
  (*fs)->flags = flags;                                               
ffc251c8:	93 89 00 00 	stw     r28,0(r9)                              
#endif                                                                
                                                                      
  /*                                                                  
   * Open the buffer interface.                                       
   */                                                                 
  rc = rtems_rfs_buffer_open (name, *fs);                             
ffc251cc:	4b ff d0 61 	bl      ffc2222c <rtems_rfs_buffer_open>       
  if (rc > 0)                                                         
ffc251d0:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc251d4:	41 81 02 a4 	bgt-    ffc25478 <rtems_rfs_fs_open+0x3a4>     <== NEVER TAKEN
              rc, strerror (rc));                                     
    errno = rc;                                                       
    return -1;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_fs_read_superblock (*fs);                            
ffc251d8:	83 bf 00 00 	lwz     r29,0(r31)                             
      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);        
ffc251dc:	38 81 00 30 	addi    r4,r1,48                               
ffc251e0:	38 a0 00 00 	li      r5,0                                   
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc251e4:	9b c1 00 30 	stb     r30,48(r1)                             
ffc251e8:	7f a3 eb 78 	mr      r3,r29                                 
ffc251ec:	38 c0 00 01 	li      r6,1                                   
  handle->bnum  = 0;                                                  
ffc251f0:	93 c1 00 34 	stw     r30,52(r1)                             
  handle->buffer = NULL;                                              
ffc251f4:	93 c1 00 38 	stw     r30,56(r1)                             
ffc251f8:	4b ff cd 21 	bl      ffc21f18 <rtems_rfs_buffer_handle_request>
  if (rc > 0)                                                         
ffc251fc:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc25200:	40 81 00 90 	ble-    ffc25290 <rtems_rfs_fs_open+0x1bc>     <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc25204:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc25208:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc2520c:	4b ff 2c 91 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc25210:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc25214:	41 be 00 24 	beq+    cr7,ffc25238 <rtems_rfs_fs_open+0x164> <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: request failed%d: %s\n",   
ffc25218:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc2521c:	48 00 69 f9 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc25220:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc25224:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc25228:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc2522c:	38 63 e0 b0 	addi    r3,r3,-8016                            <== NOT EXECUTED
ffc25230:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc25234:	48 00 58 65 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_fs_read_superblock (*fs);                            
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_buffer_close (*fs);                                     
ffc25238:	80 7f 00 00 	lwz     r3,0(r31)                              <== NOT EXECUTED
ffc2523c:	4b ff d4 ad 	bl      ffc226e8 <rtems_rfs_buffer_close>      <== NOT EXECUTED
    free (*fs);                                                       
ffc25240:	80 7f 00 00 	lwz     r3,0(r31)                              <== NOT EXECUTED
ffc25244:	4b fe 50 b9 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc25248:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc2524c:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc25250:	4b ff 2c 4d 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc25254:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc25258:	40 9e 00 bc 	bne-    cr7,ffc25314 <rtems_rfs_fs_open+0x240> <== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_close (*fs);                                     
    free (*fs);                                                       
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
      printf ("rtems-rfs: open: closing root inode: %d: %s\n", rc, strerror (rc));
    errno = rc;                                                       
ffc2525c:	48 00 3d 9d 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc25260:	93 c3 00 00 	stw     r30,0(r3)                              <== NOT EXECUTED
    return -1;                                                        
ffc25264:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  errno = 0;                                                          
  return 0;                                                           
}                                                                     
ffc25268:	80 01 00 64 	lwz     r0,100(r1)                             <== NOT EXECUTED
ffc2526c:	83 41 00 48 	lwz     r26,72(r1)                             <== NOT EXECUTED
ffc25270:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc25274:	83 61 00 4c 	lwz     r27,76(r1)                             <== NOT EXECUTED
ffc25278:	83 81 00 50 	lwz     r28,80(r1)                             <== NOT EXECUTED
ffc2527c:	83 a1 00 54 	lwz     r29,84(r1)                             <== NOT EXECUTED
ffc25280:	83 c1 00 58 	lwz     r30,88(r1)                             <== NOT EXECUTED
ffc25284:	83 e1 00 5c 	lwz     r31,92(r1)                             <== NOT EXECUTED
ffc25288:	38 21 00 60 	addi    r1,r1,96                               <== NOT EXECUTED
ffc2528c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: request failed%d: %s\n",   
              rc, strerror (rc));                                     
    return rc;                                                        
  }                                                                   
                                                                      
  sb = rtems_rfs_buffer_data (&handle);                               
ffc25290:	81 21 00 38 	lwz     r9,56(r1)                              
ffc25294:	83 c9 00 1c 	lwz     r30,28(r9)                             
                                                                      
#define read_sb(_o) rtems_rfs_read_u32 (sb + (_o))                    
                                                                      
  if (read_sb (RTEMS_RFS_SB_OFFSET_MAGIC) != RTEMS_RFS_SB_MAGIC)      
ffc25298:	88 fe 00 00 	lbz     r7,0(r30)                              
ffc2529c:	89 5e 00 01 	lbz     r10,1(r30)                             
ffc252a0:	54 e7 c0 0e 	rlwinm  r7,r7,24,0,7                           
ffc252a4:	89 1e 00 03 	lbz     r8,3(r30)                              
ffc252a8:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc252ac:	89 3e 00 02 	lbz     r9,2(r30)                              
ffc252b0:	7c ea 53 78 	or      r10,r7,r10                             
ffc252b4:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc252b8:	7d 4a 43 78 	or      r10,r10,r8                             
ffc252bc:	7d 4a 4b 78 	or      r10,r10,r9                             
ffc252c0:	6d 49 28 09 	xoris   r9,r10,10249                           
ffc252c4:	2f 89 20 01 	cmpwi   cr7,r9,8193                            
ffc252c8:	41 9e 00 a8 	beq-    cr7,ffc25370 <rtems_rfs_fs_open+0x29c> <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc252cc:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc252d0:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc252d4:	4b ff 2b c9 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc252d8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc252dc:	40 9e 00 74 	bne-    cr7,ffc25350 <rtems_rfs_fs_open+0x27c> <== 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);                       
ffc252e0:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc252e4:	38 81 00 30 	addi    r4,r1,48                               <== NOT EXECUTED
ffc252e8:	4b ff ca 1d 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
      printf ("rtems-rfs: read-superblock: inode size mismatch: fs:%" PRId32 " target:%" PRId32 "\n",
              read_sb (RTEMS_RFS_SB_OFFSET_VERSION), RTEMS_RFS_VERSION_MASK);
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    return EIO;                                                       
ffc252ec:	3b c0 00 05 	li      r30,5                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_fs_read_superblock (*fs);                            
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_buffer_close (*fs);                                     
ffc252f0:	80 7f 00 00 	lwz     r3,0(r31)                              <== NOT EXECUTED
ffc252f4:	4b ff d3 f5 	bl      ffc226e8 <rtems_rfs_buffer_close>      <== NOT EXECUTED
    free (*fs);                                                       
ffc252f8:	80 7f 00 00 	lwz     r3,0(r31)                              <== NOT EXECUTED
ffc252fc:	4b fe 50 01 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc25300:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc25304:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc25308:	4b ff 2b 95 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc2530c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc25310:	41 9e ff 4c 	beq+    cr7,ffc2525c <rtems_rfs_fs_open+0x188> <== NOT EXECUTED
      printf ("rtems-rfs: open: reading superblock: %d: %s\n",        
ffc25314:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc25318:	48 00 68 fd 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc2531c:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc25320:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc25324:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc25328:	38 63 e2 a4 	addi    r3,r3,-7516                            <== NOT EXECUTED
ffc2532c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc25330:	48 00 57 69 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc25334:	4b ff ff 28 	b       ffc2525c <rtems_rfs_fs_open+0x188>     <== NOT EXECUTED
  rtems_rfs_inode_handle inode;                                       
  uint16_t               mode;                                        
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                         
    printf ("rtems-rfs: open: %s\n", name);                           
ffc25338:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc2533c:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc25340:	38 63 e0 38 	addi    r3,r3,-8136                            <== NOT EXECUTED
ffc25344:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc25348:	48 00 57 51 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc2534c:	4b ff fd d4 	b       ffc25120 <rtems_rfs_fs_open+0x4c>      <== NOT EXECUTED
#define read_sb(_o) rtems_rfs_read_u32 (sb + (_o))                    
                                                                      
  if (read_sb (RTEMS_RFS_SB_OFFSET_MAGIC) != RTEMS_RFS_SB_MAGIC)      
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
      printf ("rtems-rfs: read-superblock: invalid superblock, bad magic\n");
ffc25350:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc25354:	38 63 e0 e4 	addi    r3,r3,-7964                            <== NOT EXECUTED
ffc25358:	48 00 5a a9 	bl      ffc2ae00 <puts>                        <== NOT EXECUTED
ffc2535c:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc25360:	38 81 00 30 	addi    r4,r1,48                               <== NOT EXECUTED
ffc25364:	4b ff c9 a1 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
      printf ("rtems-rfs: read-superblock: inode size mismatch: fs:%" PRId32 " target:%" PRId32 "\n",
              read_sb (RTEMS_RFS_SB_OFFSET_VERSION), RTEMS_RFS_VERSION_MASK);
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    return EIO;                                                       
ffc25368:	3b c0 00 05 	li      r30,5                                  <== NOT EXECUTED
ffc2536c:	4b ff ff 84 	b       ffc252f0 <rtems_rfs_fs_open+0x21c>     <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: invalid superblock, bad magic\n");
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    return EIO;                                                       
  }                                                                   
                                                                      
  fs->blocks     = read_sb (RTEMS_RFS_SB_OFFSET_BLOCKS);              
ffc25370:	88 fe 00 0c 	lbz     r7,12(r30)                             
ffc25374:	89 5e 00 0d 	lbz     r10,13(r30)                            
ffc25378:	89 1e 00 0f 	lbz     r8,15(r30)                             
ffc2537c:	54 e7 c0 0e 	rlwinm  r7,r7,24,0,7                           
ffc25380:	89 3e 00 0e 	lbz     r9,14(r30)                             
ffc25384:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc25388:	7c ea 53 78 	or      r10,r7,r10                             
ffc2538c:	7d 4a 43 78 	or      r10,r10,r8                             
ffc25390:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc25394:	7d 4a 4b 78 	or      r10,r10,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);  
ffc25398:	81 3d 00 10 	lwz     r9,16(r29)                             
      printf ("rtems-rfs: read-superblock: invalid superblock, bad magic\n");
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    return EIO;                                                       
  }                                                                   
                                                                      
  fs->blocks     = read_sb (RTEMS_RFS_SB_OFFSET_BLOCKS);              
ffc2539c:	91 5d 00 04 	stw     r10,4(r29)                             
  fs->block_size = read_sb (RTEMS_RFS_SB_OFFSET_BLOCK_SIZE);          
ffc253a0:	88 be 00 08 	lbz     r5,8(r30)                              
ffc253a4:	88 fe 00 09 	lbz     r7,9(r30)                              
ffc253a8:	88 de 00 0b 	lbz     r6,11(r30)                             
ffc253ac:	54 a5 c0 0e 	rlwinm  r5,r5,24,0,7                           
ffc253b0:	89 1e 00 0a 	lbz     r8,10(r30)                             
ffc253b4:	54 e7 80 1e 	rlwinm  r7,r7,16,0,15                          
ffc253b8:	7c a7 3b 78 	or      r7,r5,r7                               
                                                                      
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);
ffc253bc:	80 a9 00 20 	lwz     r5,32(r9)                              
    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);          
ffc253c0:	7c e7 33 78 	or      r7,r7,r6                               
}                                                                     
                                                                      
uint64_t                                                              
rtems_rfs_fs_media_size (rtems_rfs_file_system* fs)                   
{                                                                     
  uint64_t media_blocks = (uint64_t) rtems_rfs_fs_media_blocks (fs);  
ffc253c4:	80 c9 00 1c 	lwz     r6,28(r9)                              
    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);          
ffc253c8:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
ffc253cc:	7c e7 43 78 	or      r7,r7,r8                               
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;                                         
ffc253d0:	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);          
ffc253d4:	90 fd 00 08 	stw     r7,8(r29)                              
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;                                         
ffc253d8:	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;                             
ffc253dc:	7d 45 30 16 	mulhwu  r10,r5,r6                              
ffc253e0:	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))           
ffc253e4:	7f 88 50 40 	cmplw   cr7,r8,r10                             
ffc253e8:	41 9d 01 08 	bgt-    cr7,ffc254f0 <rtems_rfs_fs_open+0x41c> <== NEVER TAKEN
ffc253ec:	7f 88 50 00 	cmpw    cr7,r8,r10                             
ffc253f0:	41 9e 00 f8 	beq-    cr7,ffc254e8 <rtems_rfs_fs_open+0x414> <== ALWAYS TAKEN
              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)
ffc253f4:	88 de 00 24 	lbz     r6,36(r30)                             
ffc253f8:	89 3e 00 25 	lbz     r9,37(r30)                             
ffc253fc:	54 c6 c0 0e 	rlwinm  r6,r6,24,0,7                           
ffc25400:	89 1e 00 27 	lbz     r8,39(r30)                             
ffc25404:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc25408:	89 5e 00 26 	lbz     r10,38(r30)                            
ffc2540c:	7c c9 4b 78 	or      r9,r6,r9                               
ffc25410:	7d 29 43 78 	or      r9,r9,r8                               
ffc25414:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc25418:	7d 29 53 78 	or      r9,r9,r10                              
ffc2541c:	2f 89 00 38 	cmpwi   cr7,r9,56                              
ffc25420:	41 9e 00 f4 	beq-    cr7,ffc25514 <rtems_rfs_fs_open+0x440> <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc25424:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc25428:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc2542c:	4b ff 2a 71 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc25430:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc25434:	41 9e fe ac 	beq+    cr7,ffc252e0 <rtems_rfs_fs_open+0x20c> <== 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);
ffc25438:	88 9e 00 04 	lbz     r4,4(r30)                              <== 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",
ffc2543c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
              read_sb (RTEMS_RFS_SB_OFFSET_VERSION), RTEMS_RFS_VERSION_MASK);
ffc25440:	89 1e 00 05 	lbz     r8,5(r30)                              <== 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",
ffc25444:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
              read_sb (RTEMS_RFS_SB_OFFSET_VERSION), RTEMS_RFS_VERSION_MASK);
ffc25448:	89 5e 00 07 	lbz     r10,7(r30)                             <== NOT EXECUTED
ffc2544c:	54 84 c0 0e 	rlwinm  r4,r4,24,0,7                           <== NOT EXECUTED
ffc25450:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          <== NOT EXECUTED
ffc25454:	89 3e 00 06 	lbz     r9,6(r30)                              <== NOT EXECUTED
ffc25458:	7c 84 43 78 	or      r4,r4,r8                               <== NOT EXECUTED
ffc2545c:	7c 84 53 78 	or      r4,r4,r10                              <== NOT EXECUTED
ffc25460:	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",
ffc25464:	7c 84 4b 78 	or      r4,r4,r9                               <== NOT EXECUTED
ffc25468:	38 63 e1 60 	addi    r3,r3,-7840                            <== NOT EXECUTED
ffc2546c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc25470:	48 00 56 29 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc25474:	4b ff fe 6c 	b       ffc252e0 <rtems_rfs_fs_open+0x20c>     <== NOT EXECUTED
   * Open the buffer interface.                                       
   */                                                                 
  rc = rtems_rfs_buffer_open (name, *fs);                             
  if (rc > 0)                                                         
  {                                                                   
    free (*fs);                                                       
ffc25478:	80 7f 00 00 	lwz     r3,0(r31)                              <== NOT EXECUTED
ffc2547c:	4b fe 4e 81 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc25480:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc25484:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc25488:	4b ff 2a 15 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc2548c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc25490:	41 be 00 24 	beq+    cr7,ffc254b4 <rtems_rfs_fs_open+0x3e0> <== NOT EXECUTED
      printf ("rtems-rfs: open: buffer open failed: %d: %s\n",        
ffc25494:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc25498:	48 00 67 7d 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc2549c:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc254a0:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc254a4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc254a8:	38 63 e0 80 	addi    r3,r3,-8064                            <== NOT EXECUTED
ffc254ac:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc254b0:	48 00 55 e9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
              rc, strerror (rc));                                     
    errno = rc;                                                       
ffc254b4:	48 00 3b 45 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
    return -1;                                                        
  }                                                                   
                                                                      
  errno = 0;                                                          
  return 0;                                                           
}                                                                     
ffc254b8:	80 01 00 64 	lwz     r0,100(r1)                             <== NOT EXECUTED
  {                                                                   
    free (*fs);                                                       
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
      printf ("rtems-rfs: open: buffer open failed: %d: %s\n",        
              rc, strerror (rc));                                     
    errno = rc;                                                       
ffc254bc:	93 a3 00 00 	stw     r29,0(r3)                              <== NOT EXECUTED
    return -1;                                                        
ffc254c0:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
    return -1;                                                        
  }                                                                   
                                                                      
  errno = 0;                                                          
  return 0;                                                           
}                                                                     
ffc254c4:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc254c8:	83 41 00 48 	lwz     r26,72(r1)                             <== NOT EXECUTED
ffc254cc:	83 61 00 4c 	lwz     r27,76(r1)                             <== NOT EXECUTED
ffc254d0:	83 81 00 50 	lwz     r28,80(r1)                             <== NOT EXECUTED
ffc254d4:	83 a1 00 54 	lwz     r29,84(r1)                             <== NOT EXECUTED
ffc254d8:	83 c1 00 58 	lwz     r30,88(r1)                             <== NOT EXECUTED
ffc254dc:	83 e1 00 5c 	lwz     r31,92(r1)                             <== NOT EXECUTED
ffc254e0:	38 21 00 60 	addi    r1,r1,96                               <== NOT EXECUTED
ffc254e4:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  }                                                                   
                                                                      
  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))           
ffc254e8:	7f 89 58 40 	cmplw   cr7,r9,r11                             
ffc254ec:	40 bd ff 08 	ble-    cr7,ffc253f4 <rtems_rfs_fs_open+0x320> <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc254f0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc254f4:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc254f8:	4b ff 29 a5 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc254fc:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc25500:	41 9e fd e0 	beq+    cr7,ffc252e0 <rtems_rfs_fs_open+0x20c> <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: invalid superblock block/size count\n");
ffc25504:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc25508:	38 63 e1 20 	addi    r3,r3,-7904                            <== NOT EXECUTED
ffc2550c:	48 00 58 f5 	bl      ffc2ae00 <puts>                        <== NOT EXECUTED
ffc25510:	4b ff fd d0 	b       ffc252e0 <rtems_rfs_fs_open+0x20c>     <== NOT EXECUTED
              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);     
ffc25514:	88 de 00 10 	lbz     r6,16(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)))     
ffc25518:	54 e3 18 38 	rlwinm  r3,r7,3,0,28                           
              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);     
ffc2551c:	89 5e 00 11 	lbz     r10,17(r30)                            
ffc25520:	89 1e 00 13 	lbz     r8,19(r30)                             
ffc25524:	54 c6 c0 0e 	rlwinm  r6,r6,24,0,7                           
ffc25528:	89 3e 00 12 	lbz     r9,18(r30)                             
ffc2552c:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc25530:	7c ca 53 78 	or      r10,r6,r10                             
ffc25534:	7d 4a 43 78 	or      r10,r10,r8                             
ffc25538:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
ffc2553c:	7d 49 4b 78 	or      r9,r10,r9                              
ffc25540:	91 3d 00 18 	stw     r9,24(r29)                             
  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 =                                              
    rtems_rfs_fs_block_size (fs) / sizeof (rtems_rfs_inode_block);    
ffc25544:	54 e9 f0 be 	rlwinm  r9,r7,30,2,31                          
  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;       
ffc25548:	54 e7 e8 fe 	rlwinm  r7,r7,29,3,31                          
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    return EIO;                                                       
  }                                                                   
                                                                      
  fs->bad_blocks      = read_sb (RTEMS_RFS_SB_OFFSET_BAD_BLOCKS);     
  fs->max_name_length = read_sb (RTEMS_RFS_SB_OFFSET_MAX_NAME_LENGTH);
ffc2554c:	88 be 00 14 	lbz     r5,20(r30)                             
ffc25550:	89 1e 00 15 	lbz     r8,21(r30)                             
ffc25554:	88 de 00 17 	lbz     r6,23(r30)                             
ffc25558:	54 a5 c0 0e 	rlwinm  r5,r5,24,0,7                           
ffc2555c:	89 5e 00 16 	lbz     r10,22(r30)                            
ffc25560:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          
ffc25564:	7c a8 43 78 	or      r8,r5,r8                               
ffc25568:	7d 08 33 78 	or      r8,r8,r6                               
ffc2556c:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc25570:	7d 0a 53 78 	or      r10,r8,r10                             
ffc25574:	91 5d 00 1c 	stw     r10,28(r29)                            
  fs->group_count     = read_sb (RTEMS_RFS_SB_OFFSET_GROUPS);         
ffc25578:	88 be 00 18 	lbz     r5,24(r30)                             
ffc2557c:	89 1e 00 19 	lbz     r8,25(r30)                             
ffc25580:	88 de 00 1b 	lbz     r6,27(r30)                             
ffc25584:	54 a5 c0 0e 	rlwinm  r5,r5,24,0,7                           
ffc25588:	89 5e 00 1a 	lbz     r10,26(r30)                            
ffc2558c:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          
ffc25590:	7c a8 43 78 	or      r8,r5,r8                               
ffc25594:	7d 08 33 78 	or      r8,r8,r6                               
ffc25598:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc2559c:	7d 08 53 78 	or      r8,r8,r10                              
ffc255a0:	91 1d 00 24 	stw     r8,36(r29)                             
    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;
ffc255a4:	7c a9 49 d6 	mullw   r5,r9,r9                               
  }                                                                   
                                                                      
  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);   
ffc255a8:	89 7e 00 1c 	lbz     r11,28(r30)                            
ffc255ac:	88 de 00 1d 	lbz     r6,29(r30)                             
ffc255b0:	88 9e 00 1f 	lbz     r4,31(r30)                             
ffc255b4:	55 6b c0 0e 	rlwinm  r11,r11,24,0,7                         
ffc255b8:	89 5e 00 1e 	lbz     r10,30(r30)                            
ffc255bc:	54 c6 80 1e 	rlwinm  r6,r6,16,0,15                          
ffc255c0:	7d 66 33 78 	or      r6,r11,r6                              
ffc255c4:	7c c6 23 78 	or      r6,r6,r4                               
ffc255c8:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc255cc:	7c c6 53 78 	or      r6,r6,r10                              
ffc255d0:	90 dd 00 28 	stw     r6,40(r29)                             
                                                                      
  fs->inodes = fs->group_count * fs->group_inodes;                    
                                                                      
  fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;       
                                                                      
  if (fs->group_blocks >                                              
ffc255d4:	7f 86 18 40 	cmplw   cr7,r6,r3                              
ffc255d8:	7f a3 eb 78 	mr      r3,r29                                 
                                                                      
  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);   
ffc255dc:	88 1e 00 20 	lbz     r0,32(r30)                             
ffc255e0:	88 9e 00 21 	lbz     r4,33(r30)                             
ffc255e4:	89 7e 00 23 	lbz     r11,35(r30)                            
ffc255e8:	54 00 c0 0e 	rlwinm  r0,r0,24,0,7                           
ffc255ec:	89 5e 00 22 	lbz     r10,34(r30)                            
ffc255f0:	54 84 80 1e 	rlwinm  r4,r4,16,0,15                          
ffc255f4:	7c 04 23 78 	or      r4,r0,r4                               
                                                                      
  fs->blocks_per_block =                                              
ffc255f8:	91 3d 00 34 	stw     r9,52(r29)                             
                                                                      
  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);   
ffc255fc:	7c 84 5b 78 	or      r4,r4,r11                              
ffc25600:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc25604:	7c 8a 53 78 	or      r10,r4,r10                             
  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;
                                                                      
  fs->inodes = fs->group_count * fs->group_inodes;                    
ffc25608:	7d 0a 41 d6 	mullw   r8,r10,r8                              
                                                                      
  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);   
ffc2560c:	91 5d 00 2c 	stw     r10,44(r29)                            
  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;       
ffc25610:	3d 40 24 92 	lis     r10,9362                               
ffc25614:	61 4a 49 25 	ori     r10,r10,18725                          
  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;
                                                                      
  fs->inodes = fs->group_count * fs->group_inodes;                    
ffc25618:	91 1d 00 14 	stw     r8,20(r29)                             
                                                                      
  fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;       
ffc2561c:	7c e7 50 16 	mulhwu  r7,r7,r10                              
                                                                      
  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;                    
ffc25620:	1d 29 00 05 	mulli   r9,r9,5                                
  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;       
ffc25624:	90 fd 00 30 	stw     r7,48(r29)                             
    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;
ffc25628:	1d 45 00 05 	mulli   r10,r5,5                               
  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 =                                       
ffc2562c:	91 3d 00 38 	stw     r9,56(r29)                             
ffc25630:	38 81 00 30 	addi    r4,r1,48                               
    fs->blocks_per_block * RTEMS_RFS_INODE_BLOCKS;                    
  fs->block_map_doubly_blocks =                                       
ffc25634:	91 5d 00 3c 	stw     r10,60(r29)                            
                                                                      
  fs->inodes = fs->group_count * fs->group_inodes;                    
                                                                      
  fs->inodes_per_block = fs->block_size / RTEMS_RFS_INODE_SIZE;       
                                                                      
  if (fs->group_blocks >                                              
ffc25638:	40 9d 00 44 	ble-    cr7,ffc2567c <rtems_rfs_fs_open+0x5a8> <== ALWAYS TAKEN
ffc2563c:	4b ff c6 c9 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc25640:	39 20 00 00 	li      r9,0                                   <== 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);                       
  handle->dirty = false;                                              
ffc25644:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc25648:	91 21 00 34 	stw     r9,52(r1)                              <== NOT EXECUTED
      rtems_rfs_bitmap_numof_bits (rtems_rfs_fs_block_size (fs)))     
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc2564c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc25650:	38 80 00 01 	li      r4,1                                   <== 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);                       
  handle->dirty = false;                                              
ffc25654:	99 41 00 30 	stb     r10,48(r1)                             <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: groups blocks larger than block bits\n");
    return EIO;                                                       
ffc25658:	3b c0 00 05 	li      r30,5                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc2565c:	91 21 00 38 	stw     r9,56(r1)                              <== 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))                       
ffc25660:	4b ff 28 3d 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc25664:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc25668:	41 9e fb d0 	beq+    cr7,ffc25238 <rtems_rfs_fs_open+0x164> <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: groups blocks larger than block bits\n");
ffc2566c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc25670:	38 63 e1 a4 	addi    r3,r3,-7772                            <== NOT EXECUTED
ffc25674:	48 00 57 8d 	bl      ffc2ae00 <puts>                        <== NOT EXECUTED
ffc25678:	4b ff fb c0 	b       ffc25238 <rtems_rfs_fs_open+0x164>     <== 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);                       
ffc2567c:	4b ff c6 89 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
  rtems_rfs_buffer_handle_close (fs, &handle);                        
                                                                      
  /*                                                                  
   * Change the block size to the value in the superblock.            
   */                                                                 
  rc = rtems_rfs_buffer_setblksize (fs, rtems_rfs_fs_block_size (fs));
ffc25680:	80 9d 00 08 	lwz     r4,8(r29)                              
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc25684:	3b 80 00 00 	li      r28,0                                  
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);                       
  handle->dirty = false;                                              
ffc25688:	39 20 00 00 	li      r9,0                                   
  handle->bnum  = 0;                                                  
ffc2568c:	93 81 00 34 	stw     r28,52(r1)                             
ffc25690:	7f a3 eb 78 	mr      r3,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);                       
  handle->dirty = false;                                              
ffc25694:	99 21 00 30 	stb     r9,48(r1)                              
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc25698:	93 81 00 38 	stw     r28,56(r1)                             
ffc2569c:	4b ff ce f9 	bl      ffc22594 <rtems_rfs_buffer_setblksize> 
  if (rc > 0)                                                         
ffc256a0:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc256a4:	40 81 00 88 	ble-    ffc2572c <rtems_rfs_fs_open+0x658>     <== 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);                       
ffc256a8:	38 81 00 30 	addi    r4,r1,48                               <== NOT EXECUTED
ffc256ac:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc256b0:	4b ff c6 55 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &handle);                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc256b4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc256b8:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
  handle->dirty = false;                                              
ffc256bc:	9b 81 00 30 	stb     r28,48(r1)                             <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc256c0:	93 81 00 34 	stw     r28,52(r1)                             <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc256c4:	93 81 00 38 	stw     r28,56(r1)                             <== NOT EXECUTED
ffc256c8:	4b ff 27 d5 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc256cc:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc256d0:	41 9e fb 68 	beq+    cr7,ffc25238 <rtems_rfs_fs_open+0x164> <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: invalid superblock block size%d: %s\n",
ffc256d4:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc256d8:	48 00 65 3d 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc256dc:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc256e0:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc256e4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc256e8:	38 63 e1 e8 	addi    r3,r3,-7704                            <== NOT EXECUTED
ffc256ec:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc256f0:	48 00 53 a9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc256f4:	4b ff fb 44 	b       ffc25238 <rtems_rfs_fs_open+0x164>     <== NOT EXECUTED
    printf ("rtems-rfs: open: %s\n", name);                           
                                                                      
  *fs = malloc (sizeof (rtems_rfs_file_system));                      
  if (!*fs)                                                           
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc256f8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc256fc:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc25700:	4b ff 27 9d 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc25704:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc25708:	41 be 00 10 	beq+    cr7,ffc25718 <rtems_rfs_fs_open+0x644> <== NOT EXECUTED
      printf ("rtems-rfs: open: no memory for file system data\n");   
ffc2570c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc25710:	38 63 e0 50 	addi    r3,r3,-8112                            <== NOT EXECUTED
ffc25714:	48 00 56 ed 	bl      ffc2ae00 <puts>                        <== NOT EXECUTED
    errno = ENOMEM;                                                   
ffc25718:	48 00 38 e1 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc2571c:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc25720:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
    return -1;                                                        
ffc25724:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc25728:	4b ff fb 40 	b       ffc25268 <rtems_rfs_fs_open+0x194>     <== NOT EXECUTED
      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));    
ffc2572c:	83 9d 00 24 	lwz     r28,36(r29)                            
ffc25730:	38 80 00 50 	li      r4,80                                  
ffc25734:	7f 83 e3 78 	mr      r3,r28                                 
ffc25738:	4b fe 49 e1 	bl      ffc0a118 <calloc>                      
                                                                      
  if (!fs->groups)                                                    
ffc2573c:	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));    
ffc25740:	90 7d 00 20 	stw     r3,32(r29)                             
ffc25744:	7c 7e 1b 78 	mr      r30,r3                                 
                                                                      
  if (!fs->groups)                                                    
ffc25748:	41 9e 02 58 	beq-    cr7,ffc259a0 <rtems_rfs_fs_open+0x8cc> <== NEVER TAKEN
  /*                                                                  
   * 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++)                   
ffc2574c:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc25750:	3b 60 00 00 	li      r27,0                                  
ffc25754:	3b 80 00 00 	li      r28,0                                  
ffc25758:	41 bd 00 18 	bgt+    cr7,ffc25770 <rtems_rfs_fs_open+0x69c> <== ALWAYS TAKEN
ffc2575c:	48 00 00 c8 	b       ffc25824 <rtems_rfs_fs_open+0x750>     <== NOT EXECUTED
ffc25760:	81 3d 00 24 	lwz     r9,36(r29)                             
ffc25764:	3b 9c 00 01 	addi    r28,r28,1                              
ffc25768:	7f 9c 48 00 	cmpw    cr7,r28,r9                             
ffc2576c:	40 9c 00 b8 	bge-    cr7,ffc25824 <rtems_rfs_fs_open+0x750> <== ALWAYS TAKEN
  {                                                                   
    rc = rtems_rfs_group_open (fs,                                    
                               rtems_rfs_fs_block (fs, group, 0),     
ffc25770:	80 bd 00 28 	lwz     r5,40(r29)                             
   * 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,                                    
ffc25774:	7f a3 eb 78 	mr      r3,r29                                 
ffc25778:	80 fd 00 20 	lwz     r7,32(r29)                             
                               rtems_rfs_fs_block (fs, group, 0),     
ffc2577c:	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,                                    
ffc25780:	80 dd 00 2c 	lwz     r6,44(r29)                             
ffc25784:	7c e7 da 14 	add     r7,r7,r27                              
ffc25788:	38 84 00 01 	addi    r4,r4,1                                
ffc2578c:	4b fe fb 55 	bl      ffc152e0 <rtems_rfs_group_open>        
ffc25790:	3b 7b 00 50 	addi    r27,r27,80                             
                               rtems_rfs_fs_block (fs, group, 0),     
                               fs->group_blocks,                      
                               fs->group_inodes,                      
                               &fs->groups[group]);                   
    if (rc > 0)                                                       
ffc25794:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc25798:	40 81 ff c8 	ble+    ffc25760 <rtems_rfs_fs_open+0x68c>     <== ALWAYS TAKEN
    {                                                                 
      int g;                                                          
      for (g = 0; g < group; g++)                                     
ffc2579c:	2f 9c 00 00 	cmpwi   cr7,r28,0                              <== NOT EXECUTED
ffc257a0:	3b 40 00 00 	li      r26,0                                  <== NOT EXECUTED
ffc257a4:	3b 60 00 00 	li      r27,0                                  <== NOT EXECUTED
ffc257a8:	41 9e 00 24 	beq-    cr7,ffc257cc <rtems_rfs_fs_open+0x6f8> <== NOT EXECUTED
        rtems_rfs_group_close (fs, &fs->groups[g]);                   
ffc257ac:	80 9d 00 20 	lwz     r4,32(r29)                             <== NOT EXECUTED
ffc257b0:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
                               fs->group_inodes,                      
                               &fs->groups[group]);                   
    if (rc > 0)                                                       
    {                                                                 
      int g;                                                          
      for (g = 0; g < group; g++)                                     
ffc257b4:	3b 7b 00 01 	addi    r27,r27,1                              <== NOT EXECUTED
        rtems_rfs_group_close (fs, &fs->groups[g]);                   
ffc257b8:	7c 84 d2 14 	add     r4,r4,r26                              <== NOT EXECUTED
ffc257bc:	4b fe fd ed 	bl      ffc155a8 <rtems_rfs_group_close>       <== NOT EXECUTED
                               fs->group_inodes,                      
                               &fs->groups[group]);                   
    if (rc > 0)                                                       
    {                                                                 
      int g;                                                          
      for (g = 0; g < group; g++)                                     
ffc257c0:	7f 9b e0 00 	cmpw    cr7,r27,r28                            <== NOT EXECUTED
ffc257c4:	3b 5a 00 50 	addi    r26,r26,80                             <== NOT EXECUTED
ffc257c8:	40 9e ff e4 	bne+    cr7,ffc257ac <rtems_rfs_fs_open+0x6d8> <== 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);                       
ffc257cc:	38 81 00 30 	addi    r4,r1,48                               <== NOT EXECUTED
ffc257d0:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc257d4:	4b ff c5 31 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc257d8:	39 20 00 00 	li      r9,0                                   <== 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);                       
  handle->dirty = false;                                              
ffc257dc:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc257e0:	91 21 00 34 	stw     r9,52(r1)                              <== NOT EXECUTED
        rtems_rfs_group_close (fs, &fs->groups[g]);                   
      rtems_rfs_buffer_handle_close (fs, &handle);                    
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                     
ffc257e4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc257e8:	38 80 00 01 	li      r4,1                                   <== 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);                       
  handle->dirty = false;                                              
ffc257ec:	99 41 00 30 	stb     r10,48(r1)                             <== NOT EXECUTED
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc257f0:	91 21 00 38 	stw     r9,56(r1)                              <== NOT EXECUTED
ffc257f4:	4b ff 26 a9 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc257f8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc257fc:	41 9e fa 3c 	beq+    cr7,ffc25238 <rtems_rfs_fs_open+0x164> <== NOT EXECUTED
        printf ("rtems-rfs: read-superblock: no memory for group table%d: %s\n",
ffc25800:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc25804:	48 00 64 11 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc25808:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc2580c:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc25810:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc25814:	38 63 e2 64 	addi    r3,r3,-7580                            <== NOT EXECUTED
ffc25818:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2581c:	48 00 52 7d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc25820:	4b ff fa 18 	b       ffc25238 <rtems_rfs_fs_open+0x164>     <== NOT EXECUTED
              rc, strerror (rc));                                     
    errno = rc;                                                       
    return -1;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (*fs, RTEMS_RFS_ROOT_INO, &inode, true);  
ffc25824:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc25828:	38 80 00 01 	li      r4,1                                   
ffc2582c:	38 a1 00 08 	addi    r5,r1,8                                
ffc25830:	38 c0 00 01 	li      r6,1                                   
ffc25834:	4b ff 05 79 	bl      ffc15dac <rtems_rfs_inode_open>        
  if (rc > 0)                                                         
ffc25838:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc2583c:	41 81 01 1c 	bgt-    ffc25958 <rtems_rfs_fs_open+0x884>     <== NEVER TAKEN
              rc, strerror (rc));                                     
    errno = rc;                                                       
    return -1;                                                        
  }                                                                   
                                                                      
  if (((*fs)->flags & RTEMS_RFS_FS_FORCE_OPEN) == 0)                  
ffc25840:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc25844:	81 23 00 00 	lwz     r9,0(r3)                               
ffc25848:	71 2a 00 04 	andi.   r10,r9,4                               
ffc2584c:	40 82 00 30 	bne-    ffc2587c <rtems_rfs_fs_open+0x7a8>     
  {                                                                   
    mode = rtems_rfs_inode_get_mode (&inode);                         
ffc25850:	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);                    
ffc25854:	89 09 00 02 	lbz     r8,2(r9)                               
ffc25858:	89 49 00 03 	lbz     r10,3(r9)                              
ffc2585c:	55 09 40 2e 	rlwinm  r9,r8,8,0,23                           
ffc25860:	7d 29 53 78 	or      r9,r9,r10                              
                                                                      
    if ((mode == 0xffff) || !RTEMS_RFS_S_ISDIR (mode))                
ffc25864:	6d 2a ff ff 	xoris   r10,r9,65535                           
ffc25868:	2f 8a ff ff 	cmpwi   cr7,r10,-1                             
ffc2586c:	41 9e 00 a0 	beq-    cr7,ffc2590c <rtems_rfs_fs_open+0x838> <== NEVER TAKEN
ffc25870:	55 29 04 26 	rlwinm  r9,r9,0,16,19                          
ffc25874:	2f 89 40 00 	cmpwi   cr7,r9,16384                           
ffc25878:	40 9e 00 94 	bne-    cr7,ffc2590c <rtems_rfs_fs_open+0x838> <== NEVER TAKEN
      errno = EIO;                                                    
      return -1;                                                      
    }                                                                 
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (*fs, &inode);                           
ffc2587c:	38 81 00 08 	addi    r4,r1,8                                
ffc25880:	4b ff 07 a9 	bl      ffc16028 <rtems_rfs_inode_close>       
  if (rc > 0)                                                         
ffc25884:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc25888:	41 81 00 3c 	bgt-    ffc258c4 <rtems_rfs_fs_open+0x7f0>     <== NEVER TAKEN
      printf ("rtems-rfs: open: closing root inode: %d: %s\n", rc, strerror (rc));
    errno = rc;                                                       
    return -1;                                                        
  }                                                                   
                                                                      
  errno = 0;                                                          
ffc2588c:	48 00 37 6d 	bl      ffc28ff8 <__errno>                     
  return 0;                                                           
}                                                                     
ffc25890:	80 01 00 64 	lwz     r0,100(r1)                             
      printf ("rtems-rfs: open: closing root inode: %d: %s\n", rc, strerror (rc));
    errno = rc;                                                       
    return -1;                                                        
  }                                                                   
                                                                      
  errno = 0;                                                          
ffc25894:	39 20 00 00 	li      r9,0                                   
  return 0;                                                           
}                                                                     
ffc25898:	83 41 00 48 	lwz     r26,72(r1)                             
ffc2589c:	7c 08 03 a6 	mtlr    r0                                     
      printf ("rtems-rfs: open: closing root inode: %d: %s\n", rc, strerror (rc));
    errno = rc;                                                       
    return -1;                                                        
  }                                                                   
                                                                      
  errno = 0;                                                          
ffc258a0:	91 23 00 00 	stw     r9,0(r3)                               
  return 0;                                                           
ffc258a4:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc258a8:	83 61 00 4c 	lwz     r27,76(r1)                             
ffc258ac:	83 81 00 50 	lwz     r28,80(r1)                             
ffc258b0:	83 a1 00 54 	lwz     r29,84(r1)                             
ffc258b4:	83 c1 00 58 	lwz     r30,88(r1)                             
ffc258b8:	83 e1 00 5c 	lwz     r31,92(r1)                             
ffc258bc:	38 21 00 60 	addi    r1,r1,96                               
ffc258c0:	4e 80 00 20 	blr                                            
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (*fs, &inode);                           
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_buffer_close (*fs);                                     
ffc258c4:	80 7f 00 00 	lwz     r3,0(r31)                              <== NOT EXECUTED
ffc258c8:	4b ff ce 21 	bl      ffc226e8 <rtems_rfs_buffer_close>      <== NOT EXECUTED
    free (*fs);                                                       
ffc258cc:	80 7f 00 00 	lwz     r3,0(r31)                              <== NOT EXECUTED
ffc258d0:	4b fe 4a 2d 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc258d4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc258d8:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc258dc:	4b ff 25 c1 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc258e0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc258e4:	41 9e f9 78 	beq+    cr7,ffc2525c <rtems_rfs_fs_open+0x188> <== NOT EXECUTED
      printf ("rtems-rfs: open: closing root inode: %d: %s\n", rc, strerror (rc));
ffc258e8:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc258ec:	48 00 63 29 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc258f0:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc258f4:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc258f8:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc258fc:	38 63 e3 30 	addi    r3,r3,-7376                            <== NOT EXECUTED
ffc25900:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc25904:	48 00 51 95 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc25908:	4b ff f9 54 	b       ffc2525c <rtems_rfs_fs_open+0x188>     <== NOT EXECUTED
  {                                                                   
    mode = rtems_rfs_inode_get_mode (&inode);                         
                                                                      
    if ((mode == 0xffff) || !RTEMS_RFS_S_ISDIR (mode))                
    {                                                                 
      rtems_rfs_inode_close (*fs, &inode);                            
ffc2590c:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc25910:	4b ff 07 19 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
      rtems_rfs_buffer_close (*fs);                                   
ffc25914:	80 7f 00 00 	lwz     r3,0(r31)                              <== NOT EXECUTED
ffc25918:	4b ff cd d1 	bl      ffc226e8 <rtems_rfs_buffer_close>      <== NOT EXECUTED
      free (*fs);                                                     
ffc2591c:	80 7f 00 00 	lwz     r3,0(r31)                              <== NOT EXECUTED
ffc25920:	4b fe 49 dd 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                     
ffc25924:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc25928:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc2592c:	4b ff 25 71 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc25930:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc25934:	41 be 00 10 	beq+    cr7,ffc25944 <rtems_rfs_fs_open+0x870> <== NOT EXECUTED
        printf ("rtems-rfs: open: invalid root inode mode\n");        
ffc25938:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc2593c:	38 63 e3 04 	addi    r3,r3,-7420                            <== NOT EXECUTED
ffc25940:	48 00 54 c1 	bl      ffc2ae00 <puts>                        <== NOT EXECUTED
      errno = EIO;                                                    
ffc25944:	48 00 36 b5 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc25948:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc2594c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
      return -1;                                                      
ffc25950:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc25954:	4b ff f9 14 	b       ffc25268 <rtems_rfs_fs_open+0x194>     <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (*fs, RTEMS_RFS_ROOT_INO, &inode, true);  
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_buffer_close (*fs);                                     
ffc25958:	80 7f 00 00 	lwz     r3,0(r31)                              <== NOT EXECUTED
ffc2595c:	4b ff cd 8d 	bl      ffc226e8 <rtems_rfs_buffer_close>      <== NOT EXECUTED
    free (*fs);                                                       
ffc25960:	80 7f 00 00 	lwz     r3,0(r31)                              <== NOT EXECUTED
ffc25964:	4b fe 49 99 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_OPEN))                       
ffc25968:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc2596c:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
ffc25970:	4b ff 25 2d 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc25974:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc25978:	41 9e f8 e4 	beq+    cr7,ffc2525c <rtems_rfs_fs_open+0x188> <== NOT EXECUTED
      printf ("rtems-rfs: open: reading root inode: %d: %s\n",        
ffc2597c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc25980:	48 00 62 95 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc25984:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc25988:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc2598c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc25990:	38 63 e2 d4 	addi    r3,r3,-7468                            <== NOT EXECUTED
ffc25994:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc25998:	48 00 51 01 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc2599c:	4b ff f8 c0 	b       ffc2525c <rtems_rfs_fs_open+0x188>     <== 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);                       
ffc259a0:	38 81 00 30 	addi    r4,r1,48                               <== NOT EXECUTED
ffc259a4:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc259a8:	4b ff c3 5d 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== 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))                       
ffc259ac:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc259b0:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
  handle->dirty = false;                                              
ffc259b4:	9b c1 00 30 	stb     r30,48(r1)                             <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc259b8:	93 c1 00 34 	stw     r30,52(r1)                             <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc259bc:	93 c1 00 38 	stw     r30,56(r1)                             <== NOT EXECUTED
ffc259c0:	4b ff 24 dd 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc259c4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: no memory for group table\n");
    return ENOMEM;                                                    
ffc259c8:	3b c0 00 0c 	li      r30,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))                       
ffc259cc:	41 9e f8 6c 	beq+    cr7,ffc25238 <rtems_rfs_fs_open+0x164> <== NOT EXECUTED
      printf ("rtems-rfs: read-superblock: no memory for group table\n");
ffc259d0:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc259d4:	38 63 e2 2c 	addi    r3,r3,-7636                            <== NOT EXECUTED
ffc259d8:	48 00 54 29 	bl      ffc2ae00 <puts>                        <== NOT EXECUTED
ffc259dc:	4b ff f8 5c 	b       ffc25238 <rtems_rfs_fs_open+0x164>     <== NOT EXECUTED
                                                                      

ffc25098 <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);
ffc25098:	81 23 00 04 	lwz     r9,4(r3)                               <== NOT EXECUTED
  uint64_t block_size = rtems_rfs_fs_block_size (fs);                 
ffc2509c:	81 03 00 08 	lwz     r8,8(r3)                               <== NOT EXECUTED
  return blocks * block_size;                                         
ffc250a0:	7d 48 48 16 	mulhwu  r10,r8,r9                              <== NOT EXECUTED
ffc250a4:	7d 68 49 d6 	mullw   r11,r8,r9                              <== NOT EXECUTED
}                                                                     
ffc250a8:	7d 43 53 78 	mr      r3,r10                                 <== NOT EXECUTED
ffc250ac:	7d 64 5b 78 	mr      r4,r11                                 <== NOT EXECUTED
ffc250b0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc156c0 <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) {
ffc156c0:	7d 80 00 26 	mfcr    r12                                    
  rtems_rfs_bitmap_bit bit;                                           
  int                  offset;                                        
  bool                 updown;                                        
  int                  direction;                                     
                                                                      
  if (inode)                                                          
ffc156c4:	2e 05 00 00 	cmpwi   cr4,r5,0                               
int                                                                   
rtems_rfs_group_bitmap_alloc (rtems_rfs_file_system* fs,              
                              rtems_rfs_bitmap_bit   goal,            
                              bool                   inode,           
                              rtems_rfs_bitmap_bit*  result)          
{                                                                     
ffc156c8:	94 21 ff b0 	stwu    r1,-80(r1)                             
ffc156cc:	7c 08 02 a6 	mflr    r0                                     
ffc156d0:	92 c1 00 28 	stw     r22,40(r1)                             
ffc156d4:	7c d6 33 78 	mr      r22,r6                                 
ffc156d8:	93 81 00 40 	stw     r28,64(r1)                             
ffc156dc:	7c 7c 1b 78 	mr      r28,r3                                 
ffc156e0:	90 01 00 54 	stw     r0,84(r1)                              
ffc156e4:	92 81 00 20 	stw     r20,32(r1)                             
ffc156e8:	92 a1 00 24 	stw     r21,36(r1)                             
ffc156ec:	92 e1 00 2c 	stw     r23,44(r1)                             
ffc156f0:	93 01 00 30 	stw     r24,48(r1)                             
ffc156f4:	93 21 00 34 	stw     r25,52(r1)                             
ffc156f8:	93 41 00 38 	stw     r26,56(r1)                             
ffc156fc:	93 61 00 3c 	stw     r27,60(r1)                             
ffc15700:	93 a1 00 44 	stw     r29,68(r1)                             
ffc15704:	93 c1 00 48 	stw     r30,72(r1)                             
ffc15708:	93 e1 00 4c 	stw     r31,76(r1)                             
ffc1570c:	91 81 00 1c 	stw     r12,28(r1)                             
  rtems_rfs_bitmap_bit bit;                                           
  int                  offset;                                        
  bool                 updown;                                        
  int                  direction;                                     
                                                                      
  if (inode)                                                          
ffc15710:	41 92 01 94 	beq-    cr4,ffc158a4 <rtems_rfs_group_bitmap_alloc+0x1e4>
  {                                                                   
    size = fs->group_inodes;                                          
ffc15714:	82 e3 00 2c 	lwz     r23,44(r3)                             
    goal -= RTEMS_RFS_ROOT_INO;                                       
ffc15718:	38 84 ff ff 	addi    r4,r4,-1                               
  }                                                                   
  else                                                                
    size = fs->group_blocks;                                          
                                                                      
  group_start = goal / size;                                          
ffc1571c:	7f 44 bb 96 	divwu   r26,r4,r23                             
  bit = (rtems_rfs_bitmap_bit) (goal % size);                         
ffc15720:	7d 3a b9 d6 	mullw   r9,r26,r23                             
   */                                                                 
  while (true)                                                        
  {                                                                   
    rtems_rfs_bitmap_control* bitmap;                                 
    int                       group;                                  
    bool                      allocated = false;                      
ffc15724:	7c 38 0b 78 	mr      r24,r1                                 
  }                                                                   
  else                                                                
    size = fs->group_blocks;                                          
                                                                      
  group_start = goal / size;                                          
  bit = (rtems_rfs_bitmap_bit) (goal % size);                         
ffc15728:	7c 89 20 50 	subf    r4,r9,r4                               
   */                                                                 
  while (true)                                                        
  {                                                                   
    rtems_rfs_bitmap_control* bitmap;                                 
    int                       group;                                  
    bool                      allocated = false;                      
ffc1572c:	39 20 00 00 	li      r9,0                                   
  }                                                                   
  else                                                                
    size = fs->group_blocks;                                          
                                                                      
  group_start = goal / size;                                          
  bit = (rtems_rfs_bitmap_bit) (goal % size);                         
ffc15730:	90 81 00 08 	stw     r4,8(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);                       
ffc15734:	7f 5f d3 78 	mr      r31,r26                                
   */                                                                 
  while (true)                                                        
  {                                                                   
    rtems_rfs_bitmap_control* bitmap;                                 
    int                       group;                                  
    bool                      allocated = false;                      
ffc15738:	9d 38 00 0c 	stbu    r9,12(r24)                             
                                                                      
  group_start = goal / size;                                          
  bit = (rtems_rfs_bitmap_bit) (goal % size);                         
  offset = 0;                                                         
  updown = true;                                                      
  direction = 1;                                                      
ffc1573c:	3b c0 00 01 	li      r30,1                                  
    size = fs->group_blocks;                                          
                                                                      
  group_start = goal / size;                                          
  bit = (rtems_rfs_bitmap_bit) (goal % size);                         
  offset = 0;                                                         
  updown = true;                                                      
ffc15740:	3b 60 00 01 	li      r27,1                                  
  else                                                                
    size = fs->group_blocks;                                          
                                                                      
  group_start = goal / size;                                          
  bit = (rtems_rfs_bitmap_bit) (goal % size);                         
  offset = 0;                                                         
ffc15744:	3b a0 00 00 	li      r29,0                                  
   */                                                                 
  while (true)                                                        
  {                                                                   
    rtems_rfs_bitmap_control* bitmap;                                 
    int                       group;                                  
    bool                      allocated = false;                      
ffc15748:	3b 20 00 00 	li      r25,0                                  
    /*                                                                
     * 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))                    
ffc1574c:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc15750:	41 9c 00 94 	blt-    cr7,ffc157e4 <rtems_rfs_group_bitmap_alloc+0x124><== NEVER TAKEN
ffc15754:	81 3c 00 24 	lwz     r9,36(r28)                             
ffc15758:	7f 89 f8 00 	cmpw    cr7,r9,r31                             
ffc1575c:	40 9d 00 88 	ble-    cr7,ffc157e4 <rtems_rfs_group_bitmap_alloc+0x124>
      updown = false;                                                 
      continue;                                                       
    }                                                                 
                                                                      
   if (inode)                                                         
      bitmap = &fs->groups[group].inode_bitmap;                       
ffc15760:	1e 9f 00 50 	mulli   r20,r31,80                             
ffc15764:	82 bc 00 20 	lwz     r21,32(r28)                            
ffc15768:	7e b5 a2 14 	add     r21,r21,r20                            
      direction = direction > 0 ? -1 : 1;                             
      updown = false;                                                 
      continue;                                                       
    }                                                                 
                                                                      
   if (inode)                                                         
ffc1576c:	41 92 01 28 	beq-    cr4,ffc15894 <rtems_rfs_group_bitmap_alloc+0x1d4>
      bitmap = &fs->groups[group].inode_bitmap;                       
ffc15770:	3a b5 00 2c 	addi    r21,r21,44                             
    else                                                              
      bitmap = &fs->groups[group].block_bitmap;                       
                                                                      
    rc = rtems_rfs_bitmap_map_alloc (bitmap, bit, &allocated, &bit);  
ffc15774:	80 81 00 08 	lwz     r4,8(r1)                               
ffc15778:	7e a3 ab 78 	mr      r3,r21                                 
ffc1577c:	7f 05 c3 78 	mr      r5,r24                                 
ffc15780:	38 c1 00 08 	addi    r6,r1,8                                
ffc15784:	48 00 ac 65 	bl      ffc203e8 <rtems_rfs_bitmap_map_alloc>  
    if (rc > 0)                                                       
ffc15788:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1578c:	41 81 00 c0 	bgt-    ffc1584c <rtems_rfs_group_bitmap_alloc+0x18c><== NEVER TAKEN
      return rc;                                                      
                                                                      
    if (rtems_rfs_fs_release_bitmaps (fs))                            
ffc15790:	81 3c 00 00 	lwz     r9,0(r28)                              
ffc15794:	71 2a 00 01 	andi.   r10,r9,1                               
ffc15798:	41 82 01 14 	beq-    ffc158ac <rtems_rfs_group_bitmap_alloc+0x1ec><== ALWAYS TAKEN
      rtems_rfs_bitmap_release_buffer (fs, bitmap);                   
                                                                      
    if (allocated)                                                    
ffc1579c:	89 21 00 0c 	lbz     r9,12(r1)                              
ffc157a0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc157a4:	40 9e 01 20 	bne-    cr7,ffc158c4 <rtems_rfs_group_bitmap_alloc+0x204>
        printf ("rtems-rfs: group-bitmap-alloc: %s allocated: %" PRId32 "\n",
                inode ? "inode" : "block", *result);                  
      return 0;                                                       
    }                                                                 
                                                                      
    if (updown)                                                       
ffc157a8:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc157ac:	41 9e 00 10 	beq-    cr7,ffc157bc <rtems_rfs_group_bitmap_alloc+0xfc><== NEVER TAKEN
      direction = direction > 0 ? -1 : 1;                             
ffc157b0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc157b4:	40 9d 01 08 	ble-    cr7,ffc158bc <rtems_rfs_group_bitmap_alloc+0x1fc><== NEVER TAKEN
ffc157b8:	3b c0 ff ff 	li      r30,-1                                 
     * We can start at any location and we move out from that point in each
     * direction. The offset grows until we find a free bit or we hit an end.
     */                                                               
    group = group_start + (direction * offset);                       
    if (offset)                                                       
      bit = direction > 0 ? 0 : size - 1;                             
ffc157bc:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
   */                                                                 
  while (true)                                                        
  {                                                                   
    rtems_rfs_bitmap_control* bitmap;                                 
    int                       group;                                  
    bool                      allocated = false;                      
ffc157c0:	9b 21 00 0c 	stb     r25,12(r1)                             
    }                                                                 
                                                                      
    if (updown)                                                       
      direction = direction > 0 ? -1 : 1;                             
                                                                      
    offset++;                                                         
ffc157c4:	3b bd 00 01 	addi    r29,r29,1                              
                                                                      
    /*                                                                
     * 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);                       
ffc157c8:	7f fe e9 d6 	mullw   r31,r30,r29                            
    if (offset)                                                       
      bit = direction > 0 ? 0 : size - 1;                             
ffc157cc:	39 20 00 00 	li      r9,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);                       
ffc157d0:	7f ff d2 14 	add     r31,r31,r26                            
    if (offset)                                                       
      bit = direction > 0 ? 0 : size - 1;                             
ffc157d4:	40 9d 00 48 	ble-    cr7,ffc1581c <rtems_rfs_group_bitmap_alloc+0x15c><== ALWAYS TAKEN
ffc157d8:	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))                    
ffc157dc:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc157e0:	40 9c ff 74 	bge+    cr7,ffc15754 <rtems_rfs_group_bitmap_alloc+0x94>
    {                                                                 
      if (!updown)                                                    
ffc157e4:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc157e8:	41 9e 00 40 	beq-    cr7,ffc15828 <rtems_rfs_group_bitmap_alloc+0x168>
        break;                                                        
      direction = direction > 0 ? -1 : 1;                             
ffc157ec:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc157f0:	40 9d 00 ac 	ble-    cr7,ffc1589c <rtems_rfs_group_bitmap_alloc+0x1dc><== ALWAYS TAKEN
ffc157f4:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
    /*                                                                
     * 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)                                                       
ffc157f8:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
   */                                                                 
  while (true)                                                        
  {                                                                   
    rtems_rfs_bitmap_control* bitmap;                                 
    int                       group;                                  
    bool                      allocated = false;                      
ffc157fc:	9b 21 00 0c 	stb     r25,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);                       
ffc15800:	7f fe e9 d6 	mullw   r31,r30,r29                            
    if ((group < 0) || (group >= fs->group_count))                    
    {                                                                 
      if (!updown)                                                    
        break;                                                        
      direction = direction > 0 ? -1 : 1;                             
      updown = false;                                                 
ffc15804:	3b 60 00 00 	li      r27,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);                       
ffc15808:	7f ff d2 14 	add     r31,r31,r26                            
    if (offset)                                                       
ffc1580c:	41 9e ff 40 	beq+    cr7,ffc1574c <rtems_rfs_group_bitmap_alloc+0x8c><== NEVER TAKEN
      bit = direction > 0 ? 0 : size - 1;                             
ffc15810:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc15814:	39 20 00 00 	li      r9,0                                   
ffc15818:	41 9d ff c0 	bgt+    cr7,ffc157d8 <rtems_rfs_group_bitmap_alloc+0x118><== ALWAYS TAKEN
ffc1581c:	39 37 ff ff 	addi    r9,r23,-1                              
ffc15820:	91 21 00 08 	stw     r9,8(r1)                               
ffc15824:	4b ff ff b8 	b       ffc157dc <rtems_rfs_group_bitmap_alloc+0x11c>
      direction = direction > 0 ? -1 : 1;                             
                                                                      
    offset++;                                                         
  }                                                                   
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))                
ffc15828:	38 60 00 00 	li      r3,0                                   
ffc1582c:	3c 80 00 02 	lis     r4,2                                   
ffc15830:	48 00 26 6d 	bl      ffc17e9c <rtems_rfs_trace>             
ffc15834:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc15838:	41 be 00 10 	beq+    cr7,ffc15848 <rtems_rfs_group_bitmap_alloc+0x188><== ALWAYS TAKEN
    printf ("rtems-rfs: group-bitmap-alloc: no blocks available\n");  
ffc1583c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc15840:	38 63 c1 20 	addi    r3,r3,-16096                           <== NOT EXECUTED
ffc15844:	48 01 55 bd 	bl      ffc2ae00 <puts>                        <== NOT EXECUTED
                                                                      
  return ENOSPC;                                                      
ffc15848:	38 60 00 1c 	li      r3,28                                  
}                                                                     
ffc1584c:	80 01 00 54 	lwz     r0,84(r1)                              
ffc15850:	81 81 00 1c 	lwz     r12,28(r1)                             
ffc15854:	7c 08 03 a6 	mtlr    r0                                     
ffc15858:	82 81 00 20 	lwz     r20,32(r1)                             
ffc1585c:	82 a1 00 24 	lwz     r21,36(r1)                             
ffc15860:	7d 80 81 20 	mtcrf   8,r12                                  
ffc15864:	82 c1 00 28 	lwz     r22,40(r1)                             
ffc15868:	82 e1 00 2c 	lwz     r23,44(r1)                             
ffc1586c:	83 01 00 30 	lwz     r24,48(r1)                             
ffc15870:	83 21 00 34 	lwz     r25,52(r1)                             
ffc15874:	83 41 00 38 	lwz     r26,56(r1)                             
ffc15878:	83 61 00 3c 	lwz     r27,60(r1)                             
ffc1587c:	83 81 00 40 	lwz     r28,64(r1)                             
ffc15880:	83 a1 00 44 	lwz     r29,68(r1)                             
ffc15884:	83 c1 00 48 	lwz     r30,72(r1)                             
ffc15888:	83 e1 00 4c 	lwz     r31,76(r1)                             
ffc1588c:	38 21 00 50 	addi    r1,r1,80                               
ffc15890:	4e 80 00 20 	blr                                            
    }                                                                 
                                                                      
   if (inode)                                                         
      bitmap = &fs->groups[group].inode_bitmap;                       
    else                                                              
      bitmap = &fs->groups[group].block_bitmap;                       
ffc15894:	3a b5 00 08 	addi    r21,r21,8                              
ffc15898:	4b ff fe dc 	b       ffc15774 <rtems_rfs_group_bitmap_alloc+0xb4>
     */                                                               
    if ((group < 0) || (group >= fs->group_count))                    
    {                                                                 
      if (!updown)                                                    
        break;                                                        
      direction = direction > 0 ? -1 : 1;                             
ffc1589c:	3b c0 00 01 	li      r30,1                                  
ffc158a0:	4b ff ff 58 	b       ffc157f8 <rtems_rfs_group_bitmap_alloc+0x138>
  {                                                                   
    size = fs->group_inodes;                                          
    goal -= RTEMS_RFS_ROOT_INO;                                       
  }                                                                   
  else                                                                
    size = fs->group_blocks;                                          
ffc158a4:	82 e3 00 28 	lwz     r23,40(r3)                             
ffc158a8:	4b ff fe 74 	b       ffc1571c <rtems_rfs_group_bitmap_alloc+0x5c>
    rc = rtems_rfs_bitmap_map_alloc (bitmap, bit, &allocated, &bit);  
    if (rc > 0)                                                       
      return rc;                                                      
                                                                      
    if (rtems_rfs_fs_release_bitmaps (fs))                            
      rtems_rfs_bitmap_release_buffer (fs, bitmap);                   
ffc158ac:	80 95 00 00 	lwz     r4,0(r21)                              
ffc158b0:	7f 83 e3 78 	mr      r3,r28                                 
ffc158b4:	48 00 c4 51 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
ffc158b8:	4b ff fe e4 	b       ffc1579c <rtems_rfs_group_bitmap_alloc+0xdc>
                inode ? "inode" : "block", *result);                  
      return 0;                                                       
    }                                                                 
                                                                      
    if (updown)                                                       
      direction = direction > 0 ? -1 : 1;                             
ffc158bc:	3b c0 00 01 	li      r30,1                                  <== NOT EXECUTED
ffc158c0:	4b ff fe fc 	b       ffc157bc <rtems_rfs_group_bitmap_alloc+0xfc><== NOT EXECUTED
    if (rtems_rfs_fs_release_bitmaps (fs))                            
      rtems_rfs_bitmap_release_buffer (fs, bitmap);                   
                                                                      
    if (allocated)                                                    
    {                                                                 
      if (inode)                                                      
ffc158c4:	40 92 00 50 	bne-    cr4,ffc15914 <rtems_rfs_group_bitmap_alloc+0x254>
        *result = rtems_rfs_group_inode (fs, group, bit);             
      else                                                            
        *result = rtems_rfs_group_block (&fs->groups[group], bit);    
ffc158c8:	81 3c 00 20 	lwz     r9,32(r28)                             
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))            
ffc158cc:	38 60 00 00 	li      r3,0                                   
ffc158d0:	3c 80 00 02 	lis     r4,2                                   
    if (allocated)                                                    
    {                                                                 
      if (inode)                                                      
        *result = rtems_rfs_group_inode (fs, group, bit);             
      else                                                            
        *result = rtems_rfs_group_block (&fs->groups[group], bit);    
ffc158d4:	7d 49 a0 2e 	lwzx    r10,r9,r20                             
ffc158d8:	81 21 00 08 	lwz     r9,8(r1)                               
ffc158dc:	7d 29 52 14 	add     r9,r9,r10                              
ffc158e0:	91 36 00 00 	stw     r9,0(r22)                              
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))            
ffc158e4:	48 00 25 b9 	bl      ffc17e9c <rtems_rfs_trace>             
ffc158e8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc158ec:	41 9e 00 20 	beq-    cr7,ffc1590c <rtems_rfs_group_bitmap_alloc+0x24c><== ALWAYS TAKEN
        printf ("rtems-rfs: group-bitmap-alloc: %s allocated: %" PRId32 "\n",
ffc158f0:	3c 80 ff c4 	lis     r4,-60                                 <== NOT EXECUTED
ffc158f4:	38 84 c0 e4 	addi    r4,r4,-16156                           <== NOT EXECUTED
ffc158f8:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc158fc:	80 b6 00 00 	lwz     r5,0(r22)                              <== NOT EXECUTED
ffc15900:	38 63 c0 ec 	addi    r3,r3,-16148                           <== NOT EXECUTED
ffc15904:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc15908:	48 01 51 91 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
                inode ? "inode" : "block", *result);                  
      return 0;                                                       
ffc1590c:	38 60 00 00 	li      r3,0                                   
ffc15910:	4b ff ff 3c 	b       ffc1584c <rtems_rfs_group_bitmap_alloc+0x18c>
      rtems_rfs_bitmap_release_buffer (fs, bitmap);                   
                                                                      
    if (allocated)                                                    
    {                                                                 
      if (inode)                                                      
        *result = rtems_rfs_group_inode (fs, group, bit);             
ffc15914:	81 3c 00 2c 	lwz     r9,44(r28)                             
      else                                                            
        *result = rtems_rfs_group_block (&fs->groups[group], bit);    
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))            
ffc15918:	38 60 00 00 	li      r3,0                                   
ffc1591c:	3c 80 00 02 	lis     r4,2                                   
      rtems_rfs_bitmap_release_buffer (fs, bitmap);                   
                                                                      
    if (allocated)                                                    
    {                                                                 
      if (inode)                                                      
        *result = rtems_rfs_group_inode (fs, group, bit);             
ffc15920:	7f ff 49 d6 	mullw   r31,r31,r9                             
ffc15924:	81 21 00 08 	lwz     r9,8(r1)                               
ffc15928:	39 29 00 01 	addi    r9,r9,1                                
ffc1592c:	7d 29 fa 14 	add     r9,r9,r31                              
ffc15930:	91 36 00 00 	stw     r9,0(r22)                              
      else                                                            
        *result = rtems_rfs_group_block (&fs->groups[group], bit);    
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))            
ffc15934:	48 00 25 69 	bl      ffc17e9c <rtems_rfs_trace>             
ffc15938:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1593c:	41 be ff d0 	beq-    cr7,ffc1590c <rtems_rfs_group_bitmap_alloc+0x24c><== ALWAYS TAKEN
        printf ("rtems-rfs: group-bitmap-alloc: %s allocated: %" PRId32 "\n",
ffc15940:	3c 80 ff c4 	lis     r4,-60                                 <== NOT EXECUTED
ffc15944:	38 84 c0 dc 	addi    r4,r4,-16164                           <== NOT EXECUTED
ffc15948:	4b ff ff b0 	b       ffc158f8 <rtems_rfs_group_bitmap_alloc+0x238><== NOT EXECUTED
                                                                      

ffc1594c <rtems_rfs_group_bitmap_free>: int rtems_rfs_group_bitmap_free (rtems_rfs_file_system* fs, bool inode, rtems_rfs_bitmap_bit no) {
ffc1594c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc15950:	7d 80 00 26 	mfcr    r12                                    
ffc15954:	7c 08 02 a6 	mflr    r0                                     
ffc15958:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc1595c:	7c 9d 23 78 	mr      r29,r4                                 
  unsigned int              group;                                    
  rtems_rfs_bitmap_bit      bit;                                      
  size_t                    size;                                     
  int                       rc;                                       
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))                
ffc15960:	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)               
{                                                                     
ffc15964:	93 e1 00 14 	stw     r31,20(r1)                             
ffc15968:	7c 7f 1b 78 	mr      r31,r3                                 
  unsigned int              group;                                    
  rtems_rfs_bitmap_bit      bit;                                      
  size_t                    size;                                     
  int                       rc;                                       
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))                
ffc1596c:	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)               
{                                                                     
ffc15970:	93 c1 00 10 	stw     r30,16(r1)                             
ffc15974:	7c be 2b 78 	mr      r30,r5                                 
ffc15978:	2e 1d 00 00 	cmpwi   cr4,r29,0                              
ffc1597c:	90 01 00 1c 	stw     r0,28(r1)                              
ffc15980:	91 81 00 08 	stw     r12,8(r1)                              
  unsigned int              group;                                    
  rtems_rfs_bitmap_bit      bit;                                      
  size_t                    size;                                     
  int                       rc;                                       
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))                
ffc15984:	48 00 25 19 	bl      ffc17e9c <rtems_rfs_trace>             
ffc15988:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1598c:	41 9e 00 24 	beq-    cr7,ffc159b0 <rtems_rfs_group_bitmap_free+0x64><== ALWAYS TAKEN
    printf ("rtems-rfs: group-bitmap-free: %s free: %" PRId32 "\n",   
ffc15990:	40 92 00 ec 	bne-    cr4,ffc15a7c <rtems_rfs_group_bitmap_free+0x130><== NOT EXECUTED
ffc15994:	3c 80 ff c4 	lis     r4,-60                                 <== NOT EXECUTED
ffc15998:	38 84 c0 e4 	addi    r4,r4,-16156                           <== NOT EXECUTED
ffc1599c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc159a0:	38 63 c1 54 	addi    r3,r3,-16044                           <== NOT EXECUTED
ffc159a4:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc159a8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc159ac:	48 01 50 ed 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            inode ? "inode" : "block", no);                           
                                                                      
  if (inode)                                                          
ffc159b0:	41 92 00 68 	beq-    cr4,ffc15a18 <rtems_rfs_group_bitmap_free+0xcc>
  {                                                                   
    no -= RTEMS_RFS_ROOT_INO;                                         
    size = fs->group_inodes;                                          
ffc159b4:	81 3f 00 2c 	lwz     r9,44(r31)                             
    printf ("rtems-rfs: group-bitmap-free: %s free: %" PRId32 "\n",   
            inode ? "inode" : "block", no);                           
                                                                      
  if (inode)                                                          
  {                                                                   
    no -= RTEMS_RFS_ROOT_INO;                                         
ffc159b8:	39 5e ff ff 	addi    r10,r30,-1                             
                                                                      
  group = no / size;                                                  
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
                                                                      
  if (inode)                                                          
    bitmap = &fs->groups[group].inode_bitmap;                         
ffc159bc:	80 ff 00 20 	lwz     r7,32(r31)                             
    no -= RTEMS_RFS_SUPERBLOCK_SIZE;                                  
    size = fs->group_blocks;                                          
  }                                                                   
                                                                      
  group = no / size;                                                  
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
ffc159c0:	7d 0a 4b 96 	divwu   r8,r10,r9                              
ffc159c4:	7c 88 49 d6 	mullw   r4,r8,r9                               
                                                                      
  if (inode)                                                          
    bitmap = &fs->groups[group].inode_bitmap;                         
ffc159c8:	1d 08 00 50 	mulli   r8,r8,80                               
ffc159cc:	7c e7 42 14 	add     r7,r7,r8                               
ffc159d0:	3b c7 00 2c 	addi    r30,r7,44                              
    no -= RTEMS_RFS_SUPERBLOCK_SIZE;                                  
    size = fs->group_blocks;                                          
  }                                                                   
                                                                      
  group = no / size;                                                  
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
ffc159d4:	7c 84 50 50 	subf    r4,r4,r10                              
  if (inode)                                                          
    bitmap = &fs->groups[group].inode_bitmap;                         
  else                                                                
    bitmap = &fs->groups[group].block_bitmap;                         
                                                                      
  rc = rtems_rfs_bitmap_map_clear (bitmap, bit);                      
ffc159d8:	7f c3 f3 78 	mr      r3,r30                                 
ffc159dc:	48 00 a6 f1 	bl      ffc200cc <rtems_rfs_bitmap_map_clear>  
                                                                      
  rtems_rfs_bitmap_release_buffer (fs, bitmap);                       
ffc159e0:	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);                      
ffc159e4:	7c 7d 1b 78 	mr      r29,r3                                 
                                                                      
  rtems_rfs_bitmap_release_buffer (fs, bitmap);                       
ffc159e8:	7f e3 fb 78 	mr      r3,r31                                 
ffc159ec:	48 00 c3 19 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
                                                                      
  return rc;                                                          
}                                                                     
ffc159f0:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc159f4:	81 81 00 08 	lwz     r12,8(r1)                              
ffc159f8:	7f a3 eb 78 	mr      r3,r29                                 
ffc159fc:	7c 08 03 a6 	mtlr    r0                                     
ffc15a00:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc15a04:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc15a08:	7d 80 81 20 	mtcrf   8,r12                                  
ffc15a0c:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc15a10:	38 21 00 18 	addi    r1,r1,24                               
ffc15a14:	4e 80 00 20 	blr                                            
    size = fs->group_inodes;                                          
  }                                                                   
  else                                                                
  {                                                                   
    no -= RTEMS_RFS_SUPERBLOCK_SIZE;                                  
    size = fs->group_blocks;                                          
ffc15a18:	81 3f 00 28 	lwz     r9,40(r31)                             
    no -= RTEMS_RFS_ROOT_INO;                                         
    size = fs->group_inodes;                                          
  }                                                                   
  else                                                                
  {                                                                   
    no -= RTEMS_RFS_SUPERBLOCK_SIZE;                                  
ffc15a1c:	39 5e ff ff 	addi    r10,r30,-1                             
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
                                                                      
  if (inode)                                                          
    bitmap = &fs->groups[group].inode_bitmap;                         
  else                                                                
    bitmap = &fs->groups[group].block_bitmap;                         
ffc15a20:	80 ff 00 20 	lwz     r7,32(r31)                             
    no -= RTEMS_RFS_SUPERBLOCK_SIZE;                                  
    size = fs->group_blocks;                                          
  }                                                                   
                                                                      
  group = no / size;                                                  
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
ffc15a24:	7d 0a 4b 96 	divwu   r8,r10,r9                              
ffc15a28:	7c 88 49 d6 	mullw   r4,r8,r9                               
                                                                      
  if (inode)                                                          
    bitmap = &fs->groups[group].inode_bitmap;                         
  else                                                                
    bitmap = &fs->groups[group].block_bitmap;                         
ffc15a2c:	1d 08 00 50 	mulli   r8,r8,80                               
ffc15a30:	7c e7 42 14 	add     r7,r7,r8                               
ffc15a34:	3b c7 00 08 	addi    r30,r7,8                               
    no -= RTEMS_RFS_SUPERBLOCK_SIZE;                                  
    size = fs->group_blocks;                                          
  }                                                                   
                                                                      
  group = no / size;                                                  
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
ffc15a38:	7c 84 50 50 	subf    r4,r4,r10                              
  if (inode)                                                          
    bitmap = &fs->groups[group].inode_bitmap;                         
  else                                                                
    bitmap = &fs->groups[group].block_bitmap;                         
                                                                      
  rc = rtems_rfs_bitmap_map_clear (bitmap, bit);                      
ffc15a3c:	7f c3 f3 78 	mr      r3,r30                                 
ffc15a40:	48 00 a6 8d 	bl      ffc200cc <rtems_rfs_bitmap_map_clear>  
                                                                      
  rtems_rfs_bitmap_release_buffer (fs, bitmap);                       
ffc15a44:	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);                      
ffc15a48:	7c 7d 1b 78 	mr      r29,r3                                 
                                                                      
  rtems_rfs_bitmap_release_buffer (fs, bitmap);                       
ffc15a4c:	7f e3 fb 78 	mr      r3,r31                                 
ffc15a50:	48 00 c2 b5 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
                                                                      
  return rc;                                                          
}                                                                     
ffc15a54:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc15a58:	81 81 00 08 	lwz     r12,8(r1)                              
ffc15a5c:	7f a3 eb 78 	mr      r3,r29                                 
ffc15a60:	7c 08 03 a6 	mtlr    r0                                     
ffc15a64:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc15a68:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc15a6c:	7d 80 81 20 	mtcrf   8,r12                                  
ffc15a70:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc15a74:	38 21 00 18 	addi    r1,r1,24                               
ffc15a78:	4e 80 00 20 	blr                                            
  rtems_rfs_bitmap_bit      bit;                                      
  size_t                    size;                                     
  int                       rc;                                       
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))                
    printf ("rtems-rfs: group-bitmap-free: %s free: %" PRId32 "\n",   
ffc15a7c:	3c 80 ff c4 	lis     r4,-60                                 <== NOT EXECUTED
ffc15a80:	38 84 c0 dc 	addi    r4,r4,-16164                           <== NOT EXECUTED
ffc15a84:	4b ff ff 18 	b       ffc1599c <rtems_rfs_group_bitmap_free+0x50><== NOT EXECUTED
                                                                      

ffc15a88 <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) {
ffc15a88:	94 21 ff e0 	stwu    r1,-32(r1)                             <== NOT EXECUTED
ffc15a8c:	7d 80 00 26 	mfcr    r12                                    <== NOT EXECUTED
ffc15a90:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc15a94:	93 a1 00 14 	stw     r29,20(r1)                             <== NOT EXECUTED
ffc15a98:	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))                
ffc15a9c:	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)            
{                                                                     
ffc15aa0:	93 c1 00 18 	stw     r30,24(r1)                             <== NOT EXECUTED
ffc15aa4:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
  unsigned int              group;                                    
  rtems_rfs_bitmap_bit      bit;                                      
  size_t                    size;                                     
  int                       rc;                                       
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))                
ffc15aa8:	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)            
{                                                                     
ffc15aac:	93 81 00 10 	stw     r28,16(r1)                             <== NOT EXECUTED
ffc15ab0:	7c dc 33 78 	mr      r28,r6                                 <== NOT EXECUTED
ffc15ab4:	2e 1d 00 00 	cmpwi   cr4,r29,0                              <== NOT EXECUTED
ffc15ab8:	93 e1 00 1c 	stw     r31,28(r1)                             <== NOT EXECUTED
ffc15abc:	7c bf 2b 78 	mr      r31,r5                                 <== NOT EXECUTED
ffc15ac0:	90 01 00 24 	stw     r0,36(r1)                              <== NOT EXECUTED
ffc15ac4:	93 61 00 0c 	stw     r27,12(r1)                             <== NOT EXECUTED
ffc15ac8:	91 81 00 08 	stw     r12,8(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))                
ffc15acc:	48 00 23 d1 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc15ad0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc15ad4:	41 9e 00 24 	beq-    cr7,ffc15af8 <rtems_rfs_group_bitmap_test+0x70><== NOT EXECUTED
    printf ("rtems-rfs: group-bitmap-test: %s test: %" PRId32 "\n",   
ffc15ad8:	40 92 00 e8 	bne-    cr4,ffc15bc0 <rtems_rfs_group_bitmap_test+0x138><== NOT EXECUTED
ffc15adc:	3c 80 ff c4 	lis     r4,-60                                 <== NOT EXECUTED
ffc15ae0:	38 84 c0 e4 	addi    r4,r4,-16156                           <== NOT EXECUTED
ffc15ae4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc15ae8:	38 63 c1 80 	addi    r3,r3,-16000                           <== NOT EXECUTED
ffc15aec:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc15af0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc15af4:	48 01 4f a5 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            inode ? "inode" : "block", no);                           
                                                                      
  if (inode)                                                          
ffc15af8:	41 92 00 4c 	beq-    cr4,ffc15b44 <rtems_rfs_group_bitmap_test+0xbc><== NOT EXECUTED
  {                                                                   
    if ((no < RTEMS_RFS_ROOT_INO) || (no > rtems_rfs_fs_inodes (fs))) 
ffc15afc:	2f 9f 00 00 	cmpwi   cr7,r31,0                              <== NOT EXECUTED
        return EINVAL;                                                
ffc15b00:	3b a0 00 16 	li      r29,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))) 
ffc15b04:	40 9d 00 10 	ble-    cr7,ffc15b14 <rtems_rfs_group_bitmap_test+0x8c><== NOT EXECUTED
ffc15b08:	81 3e 00 14 	lwz     r9,20(r30)                             <== NOT EXECUTED
ffc15b0c:	7f 9f 48 40 	cmplw   cr7,r31,r9                             <== NOT EXECUTED
ffc15b10:	40 9d 00 bc 	ble-    cr7,ffc15bcc <rtems_rfs_group_bitmap_test+0x144><== NOT EXECUTED
  rc = rtems_rfs_bitmap_map_test (bitmap, bit, state);                
                                                                      
  rtems_rfs_bitmap_release_buffer (fs, bitmap);                       
                                                                      
  return rc;                                                          
}                                                                     
ffc15b14:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
ffc15b18:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc15b1c:	81 81 00 08 	lwz     r12,8(r1)                              <== NOT EXECUTED
ffc15b20:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc15b24:	83 61 00 0c 	lwz     r27,12(r1)                             <== NOT EXECUTED
ffc15b28:	83 81 00 10 	lwz     r28,16(r1)                             <== NOT EXECUTED
ffc15b2c:	7d 80 81 20 	mtcrf   8,r12                                  <== NOT EXECUTED
ffc15b30:	83 a1 00 14 	lwz     r29,20(r1)                             <== NOT EXECUTED
ffc15b34:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc15b38:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc15b3c:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc15b40:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    no -= RTEMS_RFS_ROOT_INO;                                         
    size = fs->group_inodes;                                          
  }                                                                   
  else                                                                
  {                                                                   
    if (no >= rtems_rfs_fs_blocks (fs))                               
ffc15b44:	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;                                                
ffc15b48:	3b a0 00 16 	li      r29,22                                 <== NOT EXECUTED
    no -= RTEMS_RFS_ROOT_INO;                                         
    size = fs->group_inodes;                                          
  }                                                                   
  else                                                                
  {                                                                   
    if (no >= rtems_rfs_fs_blocks (fs))                               
ffc15b4c:	7f 9f 48 40 	cmplw   cr7,r31,r9                             <== NOT EXECUTED
ffc15b50:	40 9c ff c4 	bge+    cr7,ffc15b14 <rtems_rfs_group_bitmap_test+0x8c><== NOT EXECUTED
        return EINVAL;                                                
    size = fs->group_blocks;                                          
ffc15b54:	80 9e 00 28 	lwz     r4,40(r30)                             <== NOT EXECUTED
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
                                                                      
  if (inode)                                                          
    bitmap = &fs->groups[group].inode_bitmap;                         
  else                                                                
    bitmap = &fs->groups[group].block_bitmap;                         
ffc15b58:	81 5e 00 20 	lwz     r10,32(r30)                            <== NOT EXECUTED
        return EINVAL;                                                
    size = fs->group_blocks;                                          
  }                                                                   
                                                                      
  group = no / size;                                                  
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
ffc15b5c:	7d 3f 23 96 	divwu   r9,r31,r4                              <== NOT EXECUTED
ffc15b60:	7c 89 21 d6 	mullw   r4,r9,r4                               <== NOT EXECUTED
                                                                      
  if (inode)                                                          
    bitmap = &fs->groups[group].inode_bitmap;                         
  else                                                                
    bitmap = &fs->groups[group].block_bitmap;                         
ffc15b64:	1f 69 00 50 	mulli   r27,r9,80                              <== NOT EXECUTED
ffc15b68:	7f 6a da 14 	add     r27,r10,r27                            <== NOT EXECUTED
        return EINVAL;                                                
    size = fs->group_blocks;                                          
  }                                                                   
                                                                      
  group = no / size;                                                  
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
ffc15b6c:	7c 84 f8 50 	subf    r4,r4,r31                              <== NOT EXECUTED
                                                                      
  if (inode)                                                          
    bitmap = &fs->groups[group].inode_bitmap;                         
  else                                                                
    bitmap = &fs->groups[group].block_bitmap;                         
ffc15b70:	3b 7b 00 08 	addi    r27,r27,8                              <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_bitmap_map_test (bitmap, bit, state);                
ffc15b74:	7f 85 e3 78 	mr      r5,r28                                 <== NOT EXECUTED
ffc15b78:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc15b7c:	48 00 a6 19 	bl      ffc20194 <rtems_rfs_bitmap_map_test>   <== NOT EXECUTED
                                                                      
  rtems_rfs_bitmap_release_buffer (fs, bitmap);                       
ffc15b80:	80 9b 00 00 	lwz     r4,0(r27)                              <== 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);                
ffc15b84:	7c 7d 1b 78 	mr      r29,r3                                 <== NOT EXECUTED
                                                                      
  rtems_rfs_bitmap_release_buffer (fs, bitmap);                       
ffc15b88:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc15b8c:	48 00 c1 79 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
                                                                      
  return rc;                                                          
}                                                                     
ffc15b90:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
ffc15b94:	81 81 00 08 	lwz     r12,8(r1)                              <== NOT EXECUTED
ffc15b98:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc15b9c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc15ba0:	83 61 00 0c 	lwz     r27,12(r1)                             <== NOT EXECUTED
ffc15ba4:	83 81 00 10 	lwz     r28,16(r1)                             <== NOT EXECUTED
ffc15ba8:	7d 80 81 20 	mtcrf   8,r12                                  <== NOT EXECUTED
ffc15bac:	83 a1 00 14 	lwz     r29,20(r1)                             <== NOT EXECUTED
ffc15bb0:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc15bb4:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc15bb8:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc15bbc:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  rtems_rfs_bitmap_bit      bit;                                      
  size_t                    size;                                     
  int                       rc;                                       
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_BITMAPS))                
    printf ("rtems-rfs: group-bitmap-test: %s test: %" PRId32 "\n",   
ffc15bc0:	3c 80 ff c4 	lis     r4,-60                                 <== NOT EXECUTED
ffc15bc4:	38 84 c0 dc 	addi    r4,r4,-16164                           <== NOT EXECUTED
ffc15bc8:	4b ff ff 1c 	b       ffc15ae4 <rtems_rfs_group_bitmap_test+0x5c><== NOT EXECUTED
  if (inode)                                                          
  {                                                                   
    if ((no < RTEMS_RFS_ROOT_INO) || (no > rtems_rfs_fs_inodes (fs))) 
        return EINVAL;                                                
    no -= RTEMS_RFS_ROOT_INO;                                         
    size = fs->group_inodes;                                          
ffc15bcc:	81 3e 00 2c 	lwz     r9,44(r30)                             <== NOT EXECUTED
                                                                      
  if (inode)                                                          
  {                                                                   
    if ((no < RTEMS_RFS_ROOT_INO) || (no > rtems_rfs_fs_inodes (fs))) 
        return EINVAL;                                                
    no -= RTEMS_RFS_ROOT_INO;                                         
ffc15bd0:	3b ff ff ff 	addi    r31,r31,-1                             <== NOT EXECUTED
                                                                      
  group = no / size;                                                  
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
                                                                      
  if (inode)                                                          
    bitmap = &fs->groups[group].inode_bitmap;                         
ffc15bd4:	81 1e 00 20 	lwz     r8,32(r30)                             <== NOT EXECUTED
        return EINVAL;                                                
    size = fs->group_blocks;                                          
  }                                                                   
                                                                      
  group = no / size;                                                  
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
ffc15bd8:	7d 5f 4b 96 	divwu   r10,r31,r9                             <== NOT EXECUTED
ffc15bdc:	7c 8a 49 d6 	mullw   r4,r10,r9                              <== NOT EXECUTED
                                                                      
  if (inode)                                                          
    bitmap = &fs->groups[group].inode_bitmap;                         
ffc15be0:	1f 6a 00 50 	mulli   r27,r10,80                             <== NOT EXECUTED
ffc15be4:	7f 68 da 14 	add     r27,r8,r27                             <== NOT EXECUTED
        return EINVAL;                                                
    size = fs->group_blocks;                                          
  }                                                                   
                                                                      
  group = no / size;                                                  
  bit = (rtems_rfs_bitmap_bit) (no % size);                           
ffc15be8:	7c 84 f8 50 	subf    r4,r4,r31                              <== NOT EXECUTED
                                                                      
  if (inode)                                                          
    bitmap = &fs->groups[group].inode_bitmap;                         
ffc15bec:	3b 7b 00 2c 	addi    r27,r27,44                             <== NOT EXECUTED
ffc15bf0:	4b ff ff 84 	b       ffc15b74 <rtems_rfs_group_bitmap_test+0xec><== NOT EXECUTED
                                                                      

ffc155a8 <rtems_rfs_group_close>: return 0; } int rtems_rfs_group_close (rtems_rfs_file_system* fs, rtems_rfs_group* group) {
ffc155a8:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc155ac:	7c 08 02 a6 	mflr    r0                                     
ffc155b0:	93 c1 00 10 	stw     r30,16(r1)                             
ffc155b4:	7c 7e 1b 78 	mr      r30,r3                                 
  int result = 0;                                                     
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_CLOSE))                  
ffc155b8:	38 60 00 00 	li      r3,0                                   
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_group_close (rtems_rfs_file_system* fs, rtems_rfs_group* group)
{                                                                     
ffc155bc:	93 e1 00 14 	stw     r31,20(r1)                             
ffc155c0:	7c 9f 23 78 	mr      r31,r4                                 
  int result = 0;                                                     
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_CLOSE))                  
ffc155c4:	3c 80 00 01 	lis     r4,1                                   
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_group_close (rtems_rfs_file_system* fs, rtems_rfs_group* group)
{                                                                     
ffc155c8:	90 01 00 1c 	stw     r0,28(r1)                              
ffc155cc:	93 81 00 08 	stw     r28,8(r1)                              
ffc155d0:	93 a1 00 0c 	stw     r29,12(r1)                             
  int result = 0;                                                     
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_CLOSE))                  
ffc155d4:	48 00 28 c9 	bl      ffc17e9c <rtems_rfs_trace>             
ffc155d8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc155dc:	40 9e 00 84 	bne-    cr7,ffc15660 <rtems_rfs_group_close+0xb8><== NEVER TAKEN
  /*                                                                  
   * 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);                 
ffc155e0:	38 7f 00 2c 	addi    r3,r31,44                              
ffc155e4:	48 00 b0 c5 	bl      ffc206a8 <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);                       
ffc155e8:	38 9f 00 44 	addi    r4,r31,68                              
ffc155ec:	7c 7c 1b 78 	mr      r28,r3                                 
ffc155f0:	7f c3 f3 78 	mr      r3,r30                                 
ffc155f4:	48 00 c7 11 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc155f8:	39 20 00 00 	li      r9,0                                   
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);                       
  handle->dirty = false;                                              
ffc155fc:	39 40 00 00 	li      r10,0                                  
  handle->bnum  = 0;                                                  
ffc15600:	91 3f 00 48 	stw     r9,72(r31)                             
  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);                 
ffc15604:	38 7f 00 08 	addi    r3,r31,8                               
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);                       
  handle->dirty = false;                                              
ffc15608:	99 5f 00 44 	stb     r10,68(r31)                            
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc1560c:	91 3f 00 4c 	stw     r9,76(r31)                             
ffc15610:	48 00 b0 99 	bl      ffc206a8 <rtems_rfs_bitmap_close>      
  if (rc > 0)                                                         
ffc15614:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc15618:	40 81 00 98 	ble-    ffc156b0 <rtems_rfs_group_close+0x108> <== 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);                       
ffc1561c:	7f c3 f3 78 	mr      r3,r30                                 
ffc15620:	38 9f 00 20 	addi    r4,r31,32                              
ffc15624:	48 00 c6 e1 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
  rc = rtems_rfs_buffer_handle_close (fs, &group->block_bitmap_buffer);
  if (rc > 0)                                                         
    result = rc;                                                      
                                                                      
  return result;                                                      
}                                                                     
ffc15628:	80 01 00 1c 	lwz     r0,28(r1)                              
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc1562c:	39 20 00 00 	li      r9,0                                   
ffc15630:	83 81 00 08 	lwz     r28,8(r1)                              
ffc15634:	7c 08 03 a6 	mtlr    r0                                     
static inline int                                                     
rtems_rfs_buffer_handle_close (rtems_rfs_file_system*   fs,           
                               rtems_rfs_buffer_handle* handle)       
{                                                                     
  rtems_rfs_buffer_handle_release (fs, handle);                       
  handle->dirty = false;                                              
ffc15638:	39 40 00 00 	li      r10,0                                  
ffc1563c:	99 5f 00 20 	stb     r10,32(r31)                            
ffc15640:	7f a3 eb 78 	mr      r3,r29                                 
  handle->bnum  = 0;                                                  
ffc15644:	91 3f 00 24 	stw     r9,36(r31)                             
  handle->buffer = NULL;                                              
ffc15648:	91 3f 00 28 	stw     r9,40(r31)                             
ffc1564c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc15650:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc15654:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc15658:	38 21 00 18 	addi    r1,r1,24                               
ffc1565c:	4e 80 00 20 	blr                                            
{                                                                     
  int result = 0;                                                     
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_CLOSE))                  
    printf ("rtems-rfs: group-close: base=%" PRId32 "\n", group->base);
ffc15660:	80 9f 00 00 	lwz     r4,0(r31)                              <== NOT EXECUTED
ffc15664:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc15668:	38 63 c0 b8 	addi    r3,r3,-16200                           <== NOT EXECUTED
ffc1566c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc15670:	48 01 54 29 	bl      ffc2aa98 <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);                 
ffc15674:	38 7f 00 2c 	addi    r3,r31,44                              <== NOT EXECUTED
ffc15678:	48 00 b0 31 	bl      ffc206a8 <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);                       
ffc1567c:	38 9f 00 44 	addi    r4,r31,68                              <== NOT EXECUTED
ffc15680:	7c 7c 1b 78 	mr      r28,r3                                 <== NOT EXECUTED
ffc15684:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc15688:	48 00 c6 7d 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc1568c:	39 20 00 00 	li      r9,0                                   <== 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);                       
  handle->dirty = false;                                              
ffc15690:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc15694:	91 3f 00 48 	stw     r9,72(r31)                             <== NOT EXECUTED
  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);                 
ffc15698:	38 7f 00 08 	addi    r3,r31,8                               <== 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);                       
  handle->dirty = false;                                              
ffc1569c:	99 5f 00 44 	stb     r10,68(r31)                            <== NOT EXECUTED
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc156a0:	91 3f 00 4c 	stw     r9,76(r31)                             <== NOT EXECUTED
ffc156a4:	48 00 b0 05 	bl      ffc206a8 <rtems_rfs_bitmap_close>      <== NOT EXECUTED
  if (rc > 0)                                                         
ffc156a8:	7c 7d 1b 79 	mr.     r29,r3                                 <== NOT EXECUTED
ffc156ac:	41 81 ff 70 	bgt+    ffc1561c <rtems_rfs_group_close+0x74>  <== NOT EXECUTED
ffc156b0:	7f 9d e0 f8 	not     r29,r28                                
ffc156b4:	7f bd fe 70 	srawi   r29,r29,31                             
ffc156b8:	7f 9d e8 38 	and     r29,r28,r29                            
ffc156bc:	4b ff ff 60 	b       ffc1561c <rtems_rfs_group_close+0x74>  
                                                                      

ffc152e0 <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) {
ffc152e0:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc152e4:	7c 08 02 a6 	mflr    r0                                     
ffc152e8:	90 01 00 2c 	stw     r0,44(r1)                              
  int rc;                                                             
                                                                      
  if (base >= rtems_rfs_fs_blocks (fs))                               
ffc152ec:	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)                   
{                                                                     
ffc152f0:	93 61 00 14 	stw     r27,20(r1)                             
ffc152f4:	7c 7b 1b 78 	mr      r27,r3                                 
  int rc;                                                             
                                                                      
  if (base >= rtems_rfs_fs_blocks (fs))                               
ffc152f8:	7f 89 20 40 	cmplw   cr7,r9,r4                              
rtems_rfs_group_open (rtems_rfs_file_system* fs,                      
                      rtems_rfs_buffer_block base,                    
                      size_t                 size,                    
                      size_t                 inodes,                  
                      rtems_rfs_group*       group)                   
{                                                                     
ffc152fc:	93 81 00 18 	stw     r28,24(r1)                             
ffc15300:	7c 9c 23 78 	mr      r28,r4                                 
ffc15304:	93 01 00 08 	stw     r24,8(r1)                              
ffc15308:	93 21 00 0c 	stw     r25,12(r1)                             
ffc1530c:	93 41 00 10 	stw     r26,16(r1)                             
ffc15310:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc15314:	93 c1 00 20 	stw     r30,32(r1)                             
ffc15318:	93 e1 00 24 	stw     r31,36(r1)                             
  int rc;                                                             
                                                                      
  if (base >= rtems_rfs_fs_blocks (fs))                               
ffc1531c:	40 9d 01 78 	ble-    cr7,ffc15494 <rtems_rfs_group_open+0x1b4><== NEVER TAKEN
      printf ("rtems-rfs: group-open: base outside file system range: %d: %s\n",
              EIO, strerror (EIO));                                   
    return EIO;                                                       
  }                                                                   
                                                                      
  if ((base + size) >= rtems_rfs_fs_blocks (fs))                      
ffc15320:	7d 45 22 14 	add     r10,r5,r4                              
ffc15324:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc15328:	7c be 2b 78 	mr      r30,r5                                 
ffc1532c:	7c ff 3b 78 	mr      r31,r7                                 
ffc15330:	41 9d 00 08 	bgt-    cr7,ffc15338 <rtems_rfs_group_open+0x58><== NEVER TAKEN
    size = rtems_rfs_fs_blocks (fs) - base;                           
ffc15334:	7f c4 48 50 	subf    r30,r4,r9                              
ffc15338:	7f 9e 30 40 	cmplw   cr7,r30,r6                             
ffc1533c:	7f d8 f3 78 	mr      r24,r30                                
ffc15340:	41 9d 00 c4 	bgt-    cr7,ffc15404 <rtems_rfs_group_open+0x124><== ALWAYS TAKEN
   * the format configuration needs reviewing.                        
   */                                                                 
  if (inodes > size)                                                  
    inodes = size;                                                    
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))                   
ffc15344:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc15348:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1534c:	60 84 80 00 	ori     r4,r4,32768                            <== NOT EXECUTED
ffc15350:	48 00 2b 4d 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc15354:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc15358:	40 9e 00 c8 	bne-    cr7,ffc15420 <rtems_rfs_group_open+0x140><== NOT EXECUTED
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
  handle->bnum  = 0;                                                  
ffc1535c:	3b a0 00 00 	li      r29,0                                  
    printf ("rtems-rfs: group-open: base=%" PRId32 ", blocks=%zd inodes=%zd\n",
            base, size, inodes);                                      
                                                                      
  group->base = base;                                                 
  group->size = size;                                                 
ffc15360:	93 df 00 04 	stw     r30,4(r31)                             
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc15364:	39 20 00 00 	li      r9,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;                                                 
ffc15368:	93 9f 00 00 	stw     r28,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,               
ffc1536c:	3b 3f 00 08 	addi    r25,r31,8                              
ffc15370:	3b 5f 00 20 	addi    r26,r31,32                             
ffc15374:	99 3f 00 20 	stb     r9,32(r31)                             
ffc15378:	7f c6 f3 78 	mr      r6,r30                                 
ffc1537c:	7f 23 cb 78 	mr      r3,r25                                 
  handle->bnum  = 0;                                                  
ffc15380:	93 bf 00 24 	stw     r29,36(r31)                            
ffc15384:	7f 64 db 78 	mr      r4,r27                                 
ffc15388:	7f 45 d3 78 	mr      r5,r26                                 
  handle->buffer = NULL;                                              
ffc1538c:	93 bf 00 28 	stw     r29,40(r31)                            
ffc15390:	7f 87 e3 78 	mr      r7,r28                                 
ffc15394:	48 00 b2 a5 	bl      ffc20638 <rtems_rfs_bitmap_open>       
                              &group->block_bitmap_buffer, size,      
                              group->base + RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
  if (rc > 0)                                                         
ffc15398:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1539c:	40 81 01 38 	ble-    ffc154d4 <rtems_rfs_group_open+0x1f4>  <== 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);                       
ffc153a0:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc153a4:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc153a8:	48 00 c9 5d 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
ffc153ac:	9b bf 00 20 	stb     r29,32(r31)                            <== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &group->block_bitmap_buffer);  
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))                 
ffc153b0:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc153b4:	93 bf 00 24 	stw     r29,36(r31)                            <== NOT EXECUTED
ffc153b8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc153bc:	60 84 80 00 	ori     r4,r4,32768                            <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc153c0:	93 bf 00 28 	stw     r29,40(r31)                            <== NOT EXECUTED
ffc153c4:	48 00 2a d9 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc153c8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc153cc:	40 9e 00 74 	bne-    cr7,ffc15440 <rtems_rfs_group_open+0x160><== NOT EXECUTED
    rtems_rfs_bitmap_release_buffer (fs, &group->block_bitmap);       
    rtems_rfs_bitmap_release_buffer (fs, &group->inode_bitmap);       
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc153d0:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc153d4:	7f c3 f3 78 	mr      r3,r30                                 
ffc153d8:	83 01 00 08 	lwz     r24,8(r1)                              
ffc153dc:	7c 08 03 a6 	mtlr    r0                                     
ffc153e0:	83 21 00 0c 	lwz     r25,12(r1)                             
ffc153e4:	83 41 00 10 	lwz     r26,16(r1)                             
ffc153e8:	83 61 00 14 	lwz     r27,20(r1)                             
ffc153ec:	83 81 00 18 	lwz     r28,24(r1)                             
ffc153f0:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc153f4:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc153f8:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc153fc:	38 21 00 28 	addi    r1,r1,40                               
ffc15400:	4e 80 00 20 	blr                                            
   * the format configuration needs reviewing.                        
   */                                                                 
  if (inodes > size)                                                  
    inodes = size;                                                    
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))                   
ffc15404:	38 80 00 00 	li      r4,0                                   
ffc15408:	38 60 00 00 	li      r3,0                                   
ffc1540c:	60 84 80 00 	ori     r4,r4,32768                            
ffc15410:	7c d8 33 78 	mr      r24,r6                                 
ffc15414:	48 00 2a 89 	bl      ffc17e9c <rtems_rfs_trace>             
ffc15418:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1541c:	41 9e ff 40 	beq+    cr7,ffc1535c <rtems_rfs_group_open+0x7c><== ALWAYS TAKEN
    printf ("rtems-rfs: group-open: base=%" PRId32 ", blocks=%zd inodes=%zd\n",
ffc15420:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc15424:	7f 84 e3 78 	mr      r4,r28                                 <== NOT EXECUTED
ffc15428:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc1542c:	7f 06 c3 78 	mr      r6,r24                                 <== NOT EXECUTED
ffc15430:	38 63 c0 08 	addi    r3,r3,-16376                           <== NOT EXECUTED
ffc15434:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc15438:	48 01 56 61 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc1543c:	4b ff ff 20 	b       ffc1535c <rtems_rfs_group_open+0x7c>   <== NOT EXECUTED
                              group->base + RTEMS_RFS_GROUP_BLOCK_BITMAP_BLOCK);
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &group->block_bitmap_buffer);  
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))                 
      printf ("rtems-rfs: group-open: could not open block bitmap: %d: %s\n",
ffc15440:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc15444:	48 01 67 d1 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc15448:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc1544c:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc15450:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc15454:	38 63 c0 40 	addi    r3,r3,-16320                           <== NOT EXECUTED
ffc15458:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1545c:	48 01 56 3d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    rtems_rfs_bitmap_release_buffer (fs, &group->block_bitmap);       
    rtems_rfs_bitmap_release_buffer (fs, &group->inode_bitmap);       
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc15460:	80 01 00 2c 	lwz     r0,44(r1)                              <== NOT EXECUTED
ffc15464:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc15468:	83 01 00 08 	lwz     r24,8(r1)                              <== NOT EXECUTED
ffc1546c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc15470:	83 21 00 0c 	lwz     r25,12(r1)                             <== NOT EXECUTED
ffc15474:	83 41 00 10 	lwz     r26,16(r1)                             <== NOT EXECUTED
ffc15478:	83 61 00 14 	lwz     r27,20(r1)                             <== NOT EXECUTED
ffc1547c:	83 81 00 18 	lwz     r28,24(r1)                             <== NOT EXECUTED
ffc15480:	83 a1 00 1c 	lwz     r29,28(r1)                             <== NOT EXECUTED
ffc15484:	83 c1 00 20 	lwz     r30,32(r1)                             <== NOT EXECUTED
ffc15488:	83 e1 00 24 	lwz     r31,36(r1)                             <== NOT EXECUTED
ffc1548c:	38 21 00 28 	addi    r1,r1,40                               <== NOT EXECUTED
ffc15490:	4e 80 00 20 	blr                                            <== NOT EXECUTED
{                                                                     
  int rc;                                                             
                                                                      
  if (base >= rtems_rfs_fs_blocks (fs))                               
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))                 
ffc15494:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc15498:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc1549c:	60 84 80 00 	ori     r4,r4,32768                            <== NOT EXECUTED
ffc154a0:	48 00 29 fd 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
      printf ("rtems-rfs: group-open: base outside file system range: %d: %s\n",
              EIO, strerror (EIO));                                   
    return EIO;                                                       
ffc154a4:	3b c0 00 05 	li      r30,5                                  <== NOT EXECUTED
{                                                                     
  int rc;                                                             
                                                                      
  if (base >= rtems_rfs_fs_blocks (fs))                               
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))                 
ffc154a8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc154ac:	41 9e ff 24 	beq+    cr7,ffc153d0 <rtems_rfs_group_open+0xf0><== NOT EXECUTED
      printf ("rtems-rfs: group-open: base outside file system range: %d: %s\n",
ffc154b0:	38 60 00 05 	li      r3,5                                   <== NOT EXECUTED
ffc154b4:	48 01 67 61 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc154b8:	38 80 00 05 	li      r4,5                                   <== NOT EXECUTED
ffc154bc:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc154c0:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc154c4:	38 63 bf c8 	addi    r3,r3,-16440                           <== NOT EXECUTED
ffc154c8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc154cc:	48 01 55 cd 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc154d0:	4b ff ff 00 	b       ffc153d0 <rtems_rfs_group_open+0xf0>   <== 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,               
ffc154d4:	80 ff 00 00 	lwz     r7,0(r31)                              
ffc154d8:	3b 9f 00 44 	addi    r28,r31,68                             
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc154dc:	9b bf 00 44 	stb     r29,68(r31)                            
ffc154e0:	38 7f 00 2c 	addi    r3,r31,44                              
ffc154e4:	7f 64 db 78 	mr      r4,r27                                 
  handle->bnum  = 0;                                                  
ffc154e8:	93 bf 00 48 	stw     r29,72(r31)                            
ffc154ec:	7f 85 e3 78 	mr      r5,r28                                 
ffc154f0:	7f 06 c3 78 	mr      r6,r24                                 
  handle->buffer = NULL;                                              
ffc154f4:	93 bf 00 4c 	stw     r29,76(r31)                            
ffc154f8:	38 e7 00 01 	addi    r7,r7,1                                
ffc154fc:	48 00 b1 3d 	bl      ffc20638 <rtems_rfs_bitmap_open>       
                              &group->inode_bitmap_buffer, inodes,    
                              group->base + RTEMS_RFS_GROUP_INODE_BITMAP_BLOCK);
  if (rc > 0)                                                         
ffc15500:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc15504:	40 81 00 78 	ble-    ffc1557c <rtems_rfs_group_open+0x29c>  <== 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);                       
ffc15508:	7f 84 e3 78 	mr      r4,r28                                 <== NOT EXECUTED
ffc1550c:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc15510:	48 00 c7 f5 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
ffc15514:	9b bf 00 44 	stb     r29,68(r31)                            <== NOT EXECUTED
  {                                                                   
    rtems_rfs_buffer_handle_close (fs, &group->inode_bitmap_buffer);  
    rtems_rfs_bitmap_close (&group->block_bitmap);                    
ffc15518:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc1551c:	93 bf 00 48 	stw     r29,72(r31)                            <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc15520:	93 bf 00 4c 	stw     r29,76(r31)                            <== NOT EXECUTED
ffc15524:	48 00 b1 85 	bl      ffc206a8 <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);                       
ffc15528:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc1552c:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc15530:	48 00 c7 d5 	bl      ffc21d04 <rtems_rfs_buffer_handle_release><== NOT EXECUTED
  handle->dirty = false;                                              
ffc15534:	9b bf 00 20 	stb     r29,32(r31)                            <== NOT EXECUTED
    rtems_rfs_buffer_handle_close (fs, &group->block_bitmap_buffer);  
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_GROUP_OPEN))                 
ffc15538:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc1553c:	93 bf 00 24 	stw     r29,36(r31)                            <== NOT EXECUTED
ffc15540:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc15544:	60 84 80 00 	ori     r4,r4,32768                            <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc15548:	93 bf 00 28 	stw     r29,40(r31)                            <== NOT EXECUTED
ffc1554c:	48 00 29 51 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc15550:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc15554:	41 9e fe 7c 	beq+    cr7,ffc153d0 <rtems_rfs_group_open+0xf0><== NOT EXECUTED
      printf ("rtems-rfs: group-open: could not open inode bitmap: %d: %s\n",
ffc15558:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc1555c:	48 01 66 b9 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc15560:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc15564:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc15568:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc1556c:	38 63 c0 7c 	addi    r3,r3,-16260                           <== NOT EXECUTED
ffc15570:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc15574:	48 01 55 25 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc15578:	4b ff fe 58 	b       ffc153d0 <rtems_rfs_group_open+0xf0>   <== NOT EXECUTED
              rc, strerror (rc));                                     
    return rc;                                                        
  }                                                                   
                                                                      
  if (rtems_rfs_fs_release_bitmaps (fs))                              
ffc1557c:	81 3b 00 00 	lwz     r9,0(r27)                              
  {                                                                   
    rtems_rfs_bitmap_release_buffer (fs, &group->block_bitmap);       
    rtems_rfs_bitmap_release_buffer (fs, &group->inode_bitmap);       
  }                                                                   
                                                                      
  return 0;                                                           
ffc15580:	3b c0 00 00 	li      r30,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))                              
ffc15584:	71 2a 00 01 	andi.   r10,r9,1                               
ffc15588:	40 82 fe 48 	bne+    ffc153d0 <rtems_rfs_group_open+0xf0>   <== NEVER TAKEN
  {                                                                   
    rtems_rfs_bitmap_release_buffer (fs, &group->block_bitmap);       
ffc1558c:	80 9f 00 08 	lwz     r4,8(r31)                              
ffc15590:	7f 63 db 78 	mr      r3,r27                                 
ffc15594:	48 00 c7 71 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
    rtems_rfs_bitmap_release_buffer (fs, &group->inode_bitmap);       
ffc15598:	80 9f 00 2c 	lwz     r4,44(r31)                             
ffc1559c:	7f 63 db 78 	mr      r3,r27                                 
ffc155a0:	48 00 c7 65 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
ffc155a4:	4b ff fe 2c 	b       ffc153d0 <rtems_rfs_group_open+0xf0>   
                                                                      

ffc15bf4 <rtems_rfs_group_usage>: size_t* blocks, size_t* inodes) { int g; *blocks = 0;
ffc15bf4:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc15bf8:	91 24 00 00 	stw     r9,0(r4)                               <== NOT EXECUTED
  *inodes = 0;                                                        
ffc15bfc:	91 25 00 00 	stw     r9,0(r5)                               <== NOT EXECUTED
                                                                      
  for (g = 0; g < fs->group_count; g++)                               
ffc15c00:	81 23 00 24 	lwz     r9,36(r3)                              <== NOT EXECUTED
ffc15c04:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc15c08:	40 9d 00 50 	ble-    cr7,ffc15c58 <rtems_rfs_group_usage+0x64><== NOT EXECUTED
ffc15c0c:	81 23 00 20 	lwz     r9,32(r3)                              <== NOT EXECUTED
ffc15c10:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
  {                                                                   
    rtems_rfs_group* group = &fs->groups[g];                          
    *blocks +=                                                        
      rtems_rfs_bitmap_map_size(&group->block_bitmap) -               
ffc15c14:	80 c9 00 14 	lwz     r6,20(r9)                              <== NOT EXECUTED
  int g;                                                              
                                                                      
  *blocks = 0;                                                        
  *inodes = 0;                                                        
                                                                      
  for (g = 0; g < fs->group_count; g++)                               
ffc15c18:	39 4a 00 01 	addi    r10,r10,1                              <== NOT EXECUTED
  {                                                                   
    rtems_rfs_group* group = &fs->groups[g];                          
    *blocks +=                                                        
      rtems_rfs_bitmap_map_size(&group->block_bitmap) -               
ffc15c1c:	80 e4 00 00 	lwz     r7,0(r4)                               <== NOT EXECUTED
  *inodes = 0;                                                        
                                                                      
  for (g = 0; g < fs->group_count; g++)                               
  {                                                                   
    rtems_rfs_group* group = &fs->groups[g];                          
    *blocks +=                                                        
ffc15c20:	81 09 00 18 	lwz     r8,24(r9)                              <== NOT EXECUTED
      rtems_rfs_bitmap_map_size(&group->block_bitmap) -               
ffc15c24:	7c e6 3a 14 	add     r7,r6,r7                               <== NOT EXECUTED
  *inodes = 0;                                                        
                                                                      
  for (g = 0; g < fs->group_count; g++)                               
  {                                                                   
    rtems_rfs_group* group = &fs->groups[g];                          
    *blocks +=                                                        
ffc15c28:	7d 08 38 50 	subf    r8,r8,r7                               <== NOT EXECUTED
ffc15c2c:	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) -              
ffc15c30:	80 c9 00 38 	lwz     r6,56(r9)                              <== NOT EXECUTED
ffc15c34:	80 e5 00 00 	lwz     r7,0(r5)                               <== 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 +=                                                        
ffc15c38:	81 09 00 3c 	lwz     r8,60(r9)                              <== NOT EXECUTED
ffc15c3c:	39 29 00 50 	addi    r9,r9,80                               <== NOT EXECUTED
      rtems_rfs_bitmap_map_size (&group->inode_bitmap) -              
ffc15c40:	7c e6 3a 14 	add     r7,r6,r7                               <== 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 +=                                                        
ffc15c44:	7d 08 38 50 	subf    r8,r8,r7                               <== NOT EXECUTED
ffc15c48:	91 05 00 00 	stw     r8,0(r5)                               <== NOT EXECUTED
  int g;                                                              
                                                                      
  *blocks = 0;                                                        
  *inodes = 0;                                                        
                                                                      
  for (g = 0; g < fs->group_count; g++)                               
ffc15c4c:	81 03 00 24 	lwz     r8,36(r3)                              <== NOT EXECUTED
ffc15c50:	7f 88 50 00 	cmpw    cr7,r8,r10                             <== NOT EXECUTED
ffc15c54:	41 9d ff c0 	bgt+    cr7,ffc15c14 <rtems_rfs_group_usage+0x20><== 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))                             
ffc15c58:	81 43 00 04 	lwz     r10,4(r3)                              <== NOT EXECUTED
ffc15c5c:	81 24 00 00 	lwz     r9,0(r4)                               <== NOT EXECUTED
ffc15c60:	7f 89 50 40 	cmplw   cr7,r9,r10                             <== NOT EXECUTED
ffc15c64:	40 9d 00 08 	ble-    cr7,ffc15c6c <rtems_rfs_group_usage+0x78><== NOT EXECUTED
ffc15c68:	7d 49 53 78 	mr      r9,r10                                 <== NOT EXECUTED
ffc15c6c:	91 24 00 00 	stw     r9,0(r4)                               <== NOT EXECUTED
    *blocks = rtems_rfs_fs_blocks (fs);                               
  if (*inodes > rtems_rfs_fs_inodes (fs))                             
ffc15c70:	81 43 00 14 	lwz     r10,20(r3)                             <== NOT EXECUTED
ffc15c74:	81 25 00 00 	lwz     r9,0(r5)                               <== NOT EXECUTED
ffc15c78:	7f 89 50 40 	cmplw   cr7,r9,r10                             <== NOT EXECUTED
ffc15c7c:	40 9d 00 08 	ble-    cr7,ffc15c84 <rtems_rfs_group_usage+0x90><== NOT EXECUTED
ffc15c80:	7d 49 53 78 	mr      r9,r10                                 <== NOT EXECUTED
ffc15c84:	91 25 00 00 	stw     r9,0(r5)                               <== NOT EXECUTED
    *inodes = rtems_rfs_fs_inodes (fs);                               
                                                                      
  return 0;                                                           
}                                                                     
ffc15c88:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc15c8c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc16028 <rtems_rfs_inode_close>: } int rtems_rfs_inode_close (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* handle) {
ffc16028:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc1602c:	7c 08 02 a6 	mflr    r0                                     
ffc16030:	93 c1 00 08 	stw     r30,8(r1)                              
ffc16034:	7c 7e 1b 78 	mr      r30,r3                                 
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CLOSE))                  
ffc16038:	38 60 00 00 	li      r3,0                                   
}                                                                     
                                                                      
int                                                                   
rtems_rfs_inode_close (rtems_rfs_file_system*  fs,                    
                       rtems_rfs_inode_handle* handle)                
{                                                                     
ffc1603c:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc16040:	7c 9f 23 78 	mr      r31,r4                                 
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CLOSE))                  
ffc16044:	3c 80 00 08 	lis     r4,8                                   
}                                                                     
                                                                      
int                                                                   
rtems_rfs_inode_close (rtems_rfs_file_system*  fs,                    
                       rtems_rfs_inode_handle* handle)                
{                                                                     
ffc16048:	90 01 00 14 	stw     r0,20(r1)                              
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CLOSE))                  
ffc1604c:	48 00 1e 51 	bl      ffc17e9c <rtems_rfs_trace>             
ffc16050:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc16054:	40 9e 00 64 	bne-    cr7,ffc160b8 <rtems_rfs_inode_close+0x90><== NEVER TAKEN
    printf ("rtems-rfs: inode-close: ino: %" PRIu32 "\n", handle->ino);
                                                                      
  rc = rtems_rfs_inode_unload (fs, handle, true);                     
ffc16058:	7f c3 f3 78 	mr      r3,r30                                 
ffc1605c:	7f e4 fb 78 	mr      r4,r31                                 
ffc16060:	38 a0 00 01 	li      r5,1                                   
ffc16064:	4b ff fe 69 	bl      ffc15ecc <rtems_rfs_inode_unload>      
                                                                      
  if ((rc == 0) && (handle->loads > 0))                               
ffc16068:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc1606c:	40 82 00 28 	bne-    ffc16094 <rtems_rfs_inode_close+0x6c>  <== NEVER TAKEN
ffc16070:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc16074:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc16078:	40 9d 00 1c 	ble-    cr7,ffc16094 <rtems_rfs_inode_close+0x6c><== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CLOSE))                
ffc1607c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc16080:	3c 80 00 08 	lis     r4,8                                   <== NOT EXECUTED
ffc16084:	48 00 1e 19 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
      printf ("rtems-rfs: inode-close: bad loads number: %d\n",       
              handle->loads);                                         
    rc = EIO;                                                         
ffc16088:	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))                
ffc1608c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc16090:	40 9e 00 40 	bne-    cr7,ffc160d0 <rtems_rfs_inode_close+0xa8><== NOT EXECUTED
    rc = EIO;                                                         
  }                                                                   
                                                                      
  handle->ino = 0;                                                    
  return rc;                                                          
}                                                                     
ffc16094:	80 01 00 14 	lwz     r0,20(r1)                              
      printf ("rtems-rfs: inode-close: bad loads number: %d\n",       
              handle->loads);                                         
    rc = EIO;                                                         
  }                                                                   
                                                                      
  handle->ino = 0;                                                    
ffc16098:	39 20 00 00 	li      r9,0                                   
ffc1609c:	91 3f 00 08 	stw     r9,8(r31)                              
  return rc;                                                          
}                                                                     
ffc160a0:	7f c3 f3 78 	mr      r3,r30                                 
ffc160a4:	7c 08 03 a6 	mtlr    r0                                     
ffc160a8:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc160ac:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc160b0:	38 21 00 10 	addi    r1,r1,16                               
ffc160b4:	4e 80 00 20 	blr                                            
                       rtems_rfs_inode_handle* handle)                
{                                                                     
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CLOSE))                  
    printf ("rtems-rfs: inode-close: ino: %" PRIu32 "\n", handle->ino);
ffc160b8:	80 9f 00 08 	lwz     r4,8(r31)                              <== NOT EXECUTED
ffc160bc:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc160c0:	38 63 c2 40 	addi    r3,r3,-15808                           <== NOT EXECUTED
ffc160c4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc160c8:	48 01 49 d1 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc160cc:	4b ff ff 8c 	b       ffc16058 <rtems_rfs_inode_close+0x30>  <== 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))                
      printf ("rtems-rfs: inode-close: bad loads number: %d\n",       
ffc160d0:	80 9f 00 24 	lwz     r4,36(r31)                             <== NOT EXECUTED
ffc160d4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc160d8:	38 63 c2 64 	addi    r3,r3,-15772                           <== NOT EXECUTED
ffc160dc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc160e0:	48 01 49 b9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    rc = EIO;                                                         
  }                                                                   
                                                                      
  handle->ino = 0;                                                    
  return rc;                                                          
}                                                                     
ffc160e4:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
      printf ("rtems-rfs: inode-close: bad loads number: %d\n",       
              handle->loads);                                         
    rc = EIO;                                                         
  }                                                                   
                                                                      
  handle->ino = 0;                                                    
ffc160e8:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
  return rc;                                                          
}                                                                     
ffc160ec:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
      printf ("rtems-rfs: inode-close: bad loads number: %d\n",       
              handle->loads);                                         
    rc = EIO;                                                         
  }                                                                   
                                                                      
  handle->ino = 0;                                                    
ffc160f0:	91 3f 00 08 	stw     r9,8(r31)                              <== NOT EXECUTED
  return rc;                                                          
}                                                                     
ffc160f4:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc160f8:	83 c1 00 08 	lwz     r30,8(r1)                              <== NOT EXECUTED
ffc160fc:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc16100:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc16104:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc16444 <rtems_rfs_inode_create>: uint16_t mode, uint16_t links, uid_t uid, gid_t gid, rtems_rfs_ino* ino) {
ffc16444:	94 21 ff 78 	stwu    r1,-136(r1)                            
ffc16448:	7d 80 00 26 	mfcr    r12                                    
ffc1644c:	7c 08 02 a6 	mflr    r0                                     
ffc16450:	93 21 00 6c 	stw     r25,108(r1)                            
ffc16454:	7c 79 1b 78 	mr      r25,r3                                 
  rtems_rfs_inode_handle parent_inode;                                
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CREATE))                 
ffc16458:	38 60 00 00 	li      r3,0                                   
                        uint16_t                mode,                 
                        uint16_t                links,                
                        uid_t                   uid,                  
                        gid_t                   gid,                  
                        rtems_rfs_ino*          ino)                  
{                                                                     
ffc1645c:	93 41 00 70 	stw     r26,112(r1)                            
ffc16460:	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))                 
ffc16464:	3c 80 00 40 	lis     r4,64                                  
                        uint16_t                mode,                 
                        uint16_t                links,                
                        uid_t                   uid,                  
                        gid_t                   gid,                  
                        rtems_rfs_ino*          ino)                  
{                                                                     
ffc16468:	92 c1 00 60 	stw     r22,96(r1)                             
ffc1646c:	7d 16 43 78 	mr      r22,r8                                 
ffc16470:	92 e1 00 64 	stw     r23,100(r1)                            
ffc16474:	7d 37 4b 78 	mr      r23,r9                                 
ffc16478:	93 01 00 68 	stw     r24,104(r1)                            
ffc1647c:	7d 58 53 78 	mr      r24,r10                                
ffc16480:	93 61 00 74 	stw     r27,116(r1)                            
ffc16484:	7c fb 3b 78 	mr      r27,r7                                 
ffc16488:	93 81 00 78 	stw     r28,120(r1)                            
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CREATE))                 
  {                                                                   
    const char* type = "unknown";                                     
    int         c;                                                    
    if (RTEMS_RFS_S_ISDIR (mode))                                     
ffc1648c:	57 7c 04 26 	rlwinm  r28,r27,0,16,19                        
ffc16490:	2e 1c 60 00 	cmpwi   cr4,r28,24576                          
                        uint16_t                mode,                 
                        uint16_t                links,                
                        uid_t                   uid,                  
                        gid_t                   gid,                  
                        rtems_rfs_ino*          ino)                  
{                                                                     
ffc16494:	93 a1 00 7c 	stw     r29,124(r1)                            
ffc16498:	7c bd 2b 78 	mr      r29,r5                                 
ffc1649c:	93 c1 00 80 	stw     r30,128(r1)                            
ffc164a0:	7c de 33 78 	mr      r30,r6                                 
ffc164a4:	90 01 00 8c 	stw     r0,140(r1)                             
ffc164a8:	92 a1 00 5c 	stw     r21,92(r1)                             
ffc164ac:	93 e1 00 84 	stw     r31,132(r1)                            
ffc164b0:	91 81 00 58 	stw     r12,88(r1)                             
  rtems_rfs_inode_handle parent_inode;                                
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CREATE))                 
ffc164b4:	48 00 19 e9 	bl      ffc17e9c <rtems_rfs_trace>             
ffc164b8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc164bc:	41 9e 00 94 	beq-    cr7,ffc16550 <rtems_rfs_inode_create+0x10c><== ALWAYS TAKEN
  {                                                                   
    const char* type = "unknown";                                     
    int         c;                                                    
    if (RTEMS_RFS_S_ISDIR (mode))                                     
ffc164c0:	2f 9c 40 00 	cmpwi   cr7,r28,16384                          <== NOT EXECUTED
ffc164c4:	41 9e 01 58 	beq-    cr7,ffc1661c <rtems_rfs_inode_create+0x1d8><== NOT EXECUTED
      type = "dir";                                                   
    else if (RTEMS_RFS_S_ISCHR (mode))                                
ffc164c8:	2f 9c 20 00 	cmpwi   cr7,r28,8192                           <== NOT EXECUTED
ffc164cc:	41 9e 01 6c 	beq-    cr7,ffc16638 <rtems_rfs_inode_create+0x1f4><== NOT EXECUTED
      type = "char";                                                  
    else if (RTEMS_RFS_S_ISBLK (mode))                                
ffc164d0:	2e 1c 60 00 	cmpwi   cr4,r28,24576                          <== NOT EXECUTED
ffc164d4:	41 92 01 58 	beq-    cr4,ffc1662c <rtems_rfs_inode_create+0x1e8><== NOT EXECUTED
      type = "block";                                                 
    else if (RTEMS_RFS_S_ISREG (mode))                                
ffc164d8:	6f 89 ff ff 	xoris   r9,r28,65535                           <== NOT EXECUTED
ffc164dc:	2f 89 80 00 	cmpwi   cr7,r9,-32768                          <== NOT EXECUTED
ffc164e0:	41 9e 01 68 	beq-    cr7,ffc16648 <rtems_rfs_inode_create+0x204><== NOT EXECUTED
      type = "file";                                                  
    else if (RTEMS_RFS_S_ISLNK (mode))                                
ffc164e4:	6f 89 ff ff 	xoris   r9,r28,65535                           <== NOT EXECUTED
ffc164e8:	2f 89 a0 00 	cmpwi   cr7,r9,-24576                          <== NOT EXECUTED
ffc164ec:	41 9e 01 68 	beq-    cr7,ffc16654 <rtems_rfs_inode_create+0x210><== NOT EXECUTED
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CREATE))                 
  {                                                                   
    const char* type = "unknown";                                     
ffc164f0:	3e a0 ff c4 	lis     r21,-60                                <== NOT EXECUTED
ffc164f4:	3a b5 c2 cc 	addi    r21,r21,-15668                         <== NOT EXECUTED
      type = "block";                                                 
    else if (RTEMS_RFS_S_ISREG (mode))                                
      type = "file";                                                  
    else if (RTEMS_RFS_S_ISLNK (mode))                                
      type = "link";                                                  
    printf("rtems-rfs: inode-create: parent:%" PRIu32 " name:", parent);
ffc164f8:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc164fc:	38 63 c2 dc 	addi    r3,r3,-15652                           <== NOT EXECUTED
ffc16500:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc16504:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc16508:	48 01 45 91 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    for (c = 0; c < length; c++)                                      
ffc1650c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              <== NOT EXECUTED
ffc16510:	39 60 00 00 	li      r11,0                                  <== NOT EXECUTED
ffc16514:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
ffc16518:	41 9e 00 1c 	beq-    cr7,ffc16534 <rtems_rfs_inode_create+0xf0><== NOT EXECUTED
      printf ("%c", name[c]);                                         
ffc1651c:	7c 7d 58 ae 	lbzx    r3,r29,r11                             <== 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++)                                      
ffc16520:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
      printf ("%c", name[c]);                                         
ffc16524:	48 01 48 01 	bl      ffc2ad24 <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++)                                      
ffc16528:	7f 9f f0 00 	cmpw    cr7,r31,r30                            <== NOT EXECUTED
ffc1652c:	7f eb fb 78 	mr      r11,r31                                <== NOT EXECUTED
ffc16530:	40 9e ff ec 	bne+    cr7,ffc1651c <rtems_rfs_inode_create+0xd8><== NOT EXECUTED
      printf ("%c", name[c]);                                         
    printf (" type:%s mode:%04x (%03o)\n", type, mode, mode & ((1 << 10) - 1));
ffc16534:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc16538:	38 63 c3 08 	addi    r3,r3,-15608                           <== NOT EXECUTED
ffc1653c:	7e a4 ab 78 	mr      r4,r21                                 <== NOT EXECUTED
ffc16540:	7f 65 db 78 	mr      r5,r27                                 <== NOT EXECUTED
ffc16544:	57 66 05 be 	clrlwi  r6,r27,22                              <== NOT EXECUTED
ffc16548:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1654c:	48 01 45 4d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
  }                                                                   
                                                                      
  /*                                                                  
   * The file type is field within the mode. Check we have a sane mode set.
   */                                                                 
  switch (mode & RTEMS_RFS_S_IFMT)                                    
ffc16550:	41 92 00 80 	beq-    cr4,ffc165d0 <rtems_rfs_inode_create+0x18c><== NEVER TAKEN
ffc16554:	2b 9c 60 00 	cmplwi  cr7,r28,24576                          
ffc16558:	40 9d 00 68 	ble-    cr7,ffc165c0 <rtems_rfs_inode_create+0x17c>
ffc1655c:	6f 89 ff ff 	xoris   r9,r28,65535                           
ffc16560:	2f 89 80 00 	cmpwi   cr7,r9,-32768                          
ffc16564:	41 9e 00 6c 	beq-    cr7,ffc165d0 <rtems_rfs_inode_create+0x18c>
ffc16568:	6f 89 ff ff 	xoris   r9,r28,65535                           
ffc1656c:	2f 89 a0 00 	cmpwi   cr7,r9,-24576                          
ffc16570:	41 9e 00 60 	beq-    cr7,ffc165d0 <rtems_rfs_inode_create+0x18c><== ALWAYS TAKEN
    case RTEMS_RFS_S_IFBLK:                                           
    case RTEMS_RFS_S_IFREG:                                           
    case RTEMS_RFS_S_IFLNK:                                           
      break;                                                          
    default:                                                          
      return EINVAL;                                                  
ffc16574:	3b e0 00 16 	li      r31,22                                 <== NOT EXECUTED
    rtems_rfs_inode_free (fs, *ino);                                  
    return rc;                                                        
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc16578:	80 01 00 8c 	lwz     r0,140(r1)                             
ffc1657c:	7f e3 fb 78 	mr      r3,r31                                 
ffc16580:	81 81 00 58 	lwz     r12,88(r1)                             
ffc16584:	7c 08 03 a6 	mtlr    r0                                     
ffc16588:	82 a1 00 5c 	lwz     r21,92(r1)                             
ffc1658c:	82 c1 00 60 	lwz     r22,96(r1)                             
ffc16590:	7d 80 81 20 	mtcrf   8,r12                                  
ffc16594:	82 e1 00 64 	lwz     r23,100(r1)                            
ffc16598:	83 01 00 68 	lwz     r24,104(r1)                            
ffc1659c:	83 21 00 6c 	lwz     r25,108(r1)                            
ffc165a0:	83 41 00 70 	lwz     r26,112(r1)                            
ffc165a4:	83 61 00 74 	lwz     r27,116(r1)                            
ffc165a8:	83 81 00 78 	lwz     r28,120(r1)                            
ffc165ac:	83 a1 00 7c 	lwz     r29,124(r1)                            
ffc165b0:	83 c1 00 80 	lwz     r30,128(r1)                            
ffc165b4:	83 e1 00 84 	lwz     r31,132(r1)                            
ffc165b8:	38 21 00 88 	addi    r1,r1,136                              
ffc165bc:	4e 80 00 20 	blr                                            
  }                                                                   
                                                                      
  /*                                                                  
   * The file type is field within the mode. Check we have a sane mode set.
   */                                                                 
  switch (mode & RTEMS_RFS_S_IFMT)                                    
ffc165c0:	2f 9c 20 00 	cmpwi   cr7,r28,8192                           
ffc165c4:	41 9e 00 0c 	beq-    cr7,ffc165d0 <rtems_rfs_inode_create+0x18c><== NEVER TAKEN
ffc165c8:	2f 9c 40 00 	cmpwi   cr7,r28,16384                          
ffc165cc:	40 9e ff a8 	bne+    cr7,ffc16574 <rtems_rfs_inode_create+0x130><== NEVER TAKEN
      break;                                                          
    default:                                                          
      return EINVAL;                                                  
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_alloc (fs, parent, ino);                       
ffc165d0:	80 a1 00 90 	lwz     r5,144(r1)                             
ffc165d4:	7f 23 cb 78 	mr      r3,r25                                 
ffc165d8:	7f 44 d3 78 	mr      r4,r26                                 
ffc165dc:	4b ff f6 b5 	bl      ffc15c90 <rtems_rfs_inode_alloc>       
  if (rc > 0)                                                         
ffc165e0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc165e4:	41 81 ff 94 	bgt+    ffc16578 <rtems_rfs_inode_create+0x134>
    return rc;                                                        
                                                                      
  rc = rtems_rfs_inode_open (fs, *ino, &inode, true);                 
ffc165e8:	81 21 00 90 	lwz     r9,144(r1)                             
ffc165ec:	7f 23 cb 78 	mr      r3,r25                                 
ffc165f0:	38 a1 00 08 	addi    r5,r1,8                                
ffc165f4:	80 89 00 00 	lwz     r4,0(r9)                               
ffc165f8:	38 c0 00 01 	li      r6,1                                   
ffc165fc:	4b ff f7 b1 	bl      ffc15dac <rtems_rfs_inode_open>        
  if (rc > 0)                                                         
ffc16600:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc16604:	40 81 00 5c 	ble-    ffc16660 <rtems_rfs_inode_create+0x21c><== ALWAYS TAKEN
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_inode_free (fs, *ino);                                  
ffc16608:	81 21 00 90 	lwz     r9,144(r1)                             <== NOT EXECUTED
ffc1660c:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc16610:	80 89 00 00 	lwz     r4,0(r9)                               <== NOT EXECUTED
ffc16614:	4b ff f6 b9 	bl      ffc15ccc <rtems_rfs_inode_free>        <== NOT EXECUTED
ffc16618:	4b ff ff 60 	b       ffc16578 <rtems_rfs_inode_create+0x134><== NOT EXECUTED
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_CREATE))                 
  {                                                                   
    const char* type = "unknown";                                     
    int         c;                                                    
    if (RTEMS_RFS_S_ISDIR (mode))                                     
      type = "dir";                                                   
ffc1661c:	3e a0 ff c4 	lis     r21,-60                                <== NOT EXECUTED
ffc16620:	3a b5 c2 c0 	addi    r21,r21,-15680                         <== NOT EXECUTED
ffc16624:	2e 1c 60 00 	cmpwi   cr4,r28,24576                          <== NOT EXECUTED
ffc16628:	4b ff fe d0 	b       ffc164f8 <rtems_rfs_inode_create+0xb4> <== NOT EXECUTED
    else if (RTEMS_RFS_S_ISCHR (mode))                                
      type = "char";                                                  
    else if (RTEMS_RFS_S_ISBLK (mode))                                
      type = "block";                                                 
ffc1662c:	3e a0 ff c4 	lis     r21,-60                                <== NOT EXECUTED
ffc16630:	3a b5 c0 e4 	addi    r21,r21,-16156                         <== NOT EXECUTED
ffc16634:	4b ff fe c4 	b       ffc164f8 <rtems_rfs_inode_create+0xb4> <== NOT EXECUTED
    const char* type = "unknown";                                     
    int         c;                                                    
    if (RTEMS_RFS_S_ISDIR (mode))                                     
      type = "dir";                                                   
    else if (RTEMS_RFS_S_ISCHR (mode))                                
      type = "char";                                                  
ffc16638:	3e a0 ff c4 	lis     r21,-60                                <== NOT EXECUTED
ffc1663c:	3a b5 c2 c4 	addi    r21,r21,-15676                         <== NOT EXECUTED
ffc16640:	2e 1c 60 00 	cmpwi   cr4,r28,24576                          <== NOT EXECUTED
ffc16644:	4b ff fe b4 	b       ffc164f8 <rtems_rfs_inode_create+0xb4> <== NOT EXECUTED
    else if (RTEMS_RFS_S_ISBLK (mode))                                
      type = "block";                                                 
    else if (RTEMS_RFS_S_ISREG (mode))                                
      type = "file";                                                  
ffc16648:	3e a0 ff c4 	lis     r21,-60                                <== NOT EXECUTED
ffc1664c:	3a b5 d3 70 	addi    r21,r21,-11408                         <== NOT EXECUTED
ffc16650:	4b ff fe a8 	b       ffc164f8 <rtems_rfs_inode_create+0xb4> <== NOT EXECUTED
    else if (RTEMS_RFS_S_ISLNK (mode))                                
      type = "link";                                                  
ffc16654:	3e a0 ff c4 	lis     r21,-60                                <== NOT EXECUTED
ffc16658:	3a b5 c2 d4 	addi    r21,r21,-15660                         <== NOT EXECUTED
ffc1665c:	4b ff fe 9c 	b       ffc164f8 <rtems_rfs_inode_create+0xb4> <== NOT EXECUTED
  {                                                                   
    rtems_rfs_inode_free (fs, *ino);                                  
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_initialise (&inode, links, mode, uid, gid);    
ffc16660:	38 61 00 08 	addi    r3,r1,8                                
ffc16664:	7e c4 b3 78 	mr      r4,r22                                 
ffc16668:	7f 65 db 78 	mr      r5,r27                                 
ffc1666c:	7e e6 bb 78 	mr      r6,r23                                 
ffc16670:	7f 07 c3 78 	mr      r7,r24                                 
ffc16674:	4b ff fc 71 	bl      ffc162e4 <rtems_rfs_inode_initialise>  
  if (rc > 0)                                                         
ffc16678:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1667c:	41 81 00 44 	bgt-    ffc166c0 <rtems_rfs_inode_create+0x27c><== NEVER TAKEN
  /*                                                                  
   * 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))                                       
ffc16680:	2e 1c 40 00 	cmpwi   cr4,r28,16384                          
ffc16684:	41 92 00 b4 	beq-    cr4,ffc16738 <rtems_rfs_inode_create+0x2f4>
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);        
ffc16688:	7f 23 cb 78 	mr      r3,r25                                 
ffc1668c:	7f 44 d3 78 	mr      r4,r26                                 
ffc16690:	38 a1 00 30 	addi    r5,r1,48                               
ffc16694:	38 c0 00 01 	li      r6,1                                   
ffc16698:	4b ff f7 15 	bl      ffc15dac <rtems_rfs_inode_open>        
  if (rc > 0)                                                         
ffc1669c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc166a0:	40 81 00 40 	ble-    ffc166e0 <rtems_rfs_inode_create+0x29c><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_delete (fs, &inode);                              
ffc166a4:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc166a8:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc166ac:	4b ff fa 5d 	bl      ffc16108 <rtems_rfs_inode_delete>      <== NOT EXECUTED
    rtems_rfs_inode_close (fs, &inode);                               
ffc166b0:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc166b4:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc166b8:	4b ff f9 71 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
ffc166bc:	4b ff fe bc 	b       ffc16578 <rtems_rfs_inode_create+0x134><== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_initialise (&inode, links, mode, uid, gid);    
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_inode_close (fs, &inode);                               
ffc166c0:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc166c4:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc166c8:	4b ff f9 61 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
    rtems_rfs_inode_free (fs, *ino);                                  
ffc166cc:	81 21 00 90 	lwz     r9,144(r1)                             <== NOT EXECUTED
ffc166d0:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc166d4:	80 89 00 00 	lwz     r4,0(r9)                               <== NOT EXECUTED
ffc166d8:	4b ff f5 f5 	bl      ffc15ccc <rtems_rfs_inode_free>        <== NOT EXECUTED
ffc166dc:	4b ff fe 9c 	b       ffc16578 <rtems_rfs_inode_create+0x134><== NOT EXECUTED
    rtems_rfs_inode_delete (fs, &inode);                              
    rtems_rfs_inode_close (fs, &inode);                               
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, *ino);
ffc166e0:	81 21 00 90 	lwz     r9,144(r1)                             
ffc166e4:	7f 23 cb 78 	mr      r3,r25                                 
ffc166e8:	38 81 00 30 	addi    r4,r1,48                               
ffc166ec:	80 e9 00 00 	lwz     r7,0(r9)                               
ffc166f0:	7f a5 eb 78 	mr      r5,r29                                 
ffc166f4:	7f c6 f3 78 	mr      r6,r30                                 
ffc166f8:	48 00 c6 d9 	bl      ffc22dd0 <rtems_rfs_dir_add_entry>     
  if (rc > 0)                                                         
ffc166fc:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc16700:	41 81 00 90 	bgt-    ffc16790 <rtems_rfs_inode_create+0x34c><== NEVER TAKEN
                                                                      
  /*                                                                  
   * 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))                                       
ffc16704:	41 92 00 c8 	beq-    cr4,ffc167cc <rtems_rfs_inode_create+0x388>
    rtems_rfs_inode_set_links (&parent_inode,                         
                               rtems_rfs_inode_get_links (&parent_inode) + 1);
                                                                      
  rc = rtems_rfs_inode_close (fs, &parent_inode);                     
ffc16708:	38 81 00 30 	addi    r4,r1,48                               
ffc1670c:	7f 23 cb 78 	mr      r3,r25                                 
ffc16710:	4b ff f9 19 	bl      ffc16028 <rtems_rfs_inode_close>       
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_inode_delete (fs, &inode);                              
ffc16714:	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)                                                         
ffc16718:	7c 7f 1b 79 	mr.     r31,r3                                 
  {                                                                   
    rtems_rfs_inode_delete (fs, &inode);                              
ffc1671c:	7f 23 cb 78 	mr      r3,r25                                 
  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)                                                         
ffc16720:	40 81 00 98 	ble-    ffc167b8 <rtems_rfs_inode_create+0x374><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_delete (fs, &inode);                              
ffc16724:	4b ff f9 e5 	bl      ffc16108 <rtems_rfs_inode_delete>      <== NOT EXECUTED
    rtems_rfs_inode_close (fs, &inode);                               
ffc16728:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc1672c:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc16730:	4b ff f8 f9 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
ffc16734:	4b ff fe 44 	b       ffc16578 <rtems_rfs_inode_create+0x134><== NOT EXECUTED
   *                                                                  
   * The inode delete will free the inode.                            
   */                                                                 
  if (RTEMS_RFS_S_ISDIR (mode))                                       
  {                                                                   
    rc = rtems_rfs_dir_add_entry (fs, &inode, ".", 1, *ino);          
ffc16738:	81 21 00 90 	lwz     r9,144(r1)                             
ffc1673c:	3c a0 ff c4 	lis     r5,-60                                 
ffc16740:	7f 23 cb 78 	mr      r3,r25                                 
ffc16744:	80 e9 00 00 	lwz     r7,0(r9)                               
ffc16748:	38 81 00 08 	addi    r4,r1,8                                
ffc1674c:	38 a5 9d 10 	addi    r5,r5,-25328                           
ffc16750:	38 c0 00 01 	li      r6,1                                   
ffc16754:	48 00 c6 7d 	bl      ffc22dd0 <rtems_rfs_dir_add_entry>     
    if (rc == 0)                                                      
ffc16758:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1675c:	41 82 00 0c 	beq-    ffc16768 <rtems_rfs_inode_create+0x324><== ALWAYS TAKEN
      rc = rtems_rfs_dir_add_entry (fs, &inode, "..", 2, parent);     
    if (rc > 0)                                                       
ffc16760:	40 81 ff 28 	ble+    ffc16688 <rtems_rfs_inode_create+0x244><== NOT EXECUTED
ffc16764:	4b ff ff 40 	b       ffc166a4 <rtems_rfs_inode_create+0x260><== NOT EXECUTED
   */                                                                 
  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);     
ffc16768:	3c a0 ff c4 	lis     r5,-60                                 
ffc1676c:	7f 23 cb 78 	mr      r3,r25                                 
ffc16770:	38 81 00 08 	addi    r4,r1,8                                
ffc16774:	38 a5 9d 14 	addi    r5,r5,-25324                           
ffc16778:	38 c0 00 02 	li      r6,2                                   
ffc1677c:	7f 47 d3 78 	mr      r7,r26                                 
ffc16780:	48 00 c6 51 	bl      ffc22dd0 <rtems_rfs_dir_add_entry>     
ffc16784:	7c 7f 1b 79 	mr.     r31,r3                                 
    if (rc > 0)                                                       
ffc16788:	40 81 ff 00 	ble+    ffc16688 <rtems_rfs_inode_create+0x244><== ALWAYS TAKEN
ffc1678c:	4b ff ff 18 	b       ffc166a4 <rtems_rfs_inode_create+0x260><== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, *ino);
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_inode_delete (fs, &inode);                              
ffc16790:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc16794:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc16798:	4b ff f9 71 	bl      ffc16108 <rtems_rfs_inode_delete>      <== NOT EXECUTED
    rtems_rfs_inode_close (fs, &inode);                               
ffc1679c:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc167a0:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc167a4:	4b ff f8 85 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
    rtems_rfs_inode_close (fs, &parent_inode);                        
ffc167a8:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc167ac:	38 81 00 30 	addi    r4,r1,48                               <== NOT EXECUTED
ffc167b0:	4b ff f8 79 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
ffc167b4:	4b ff fd c4 	b       ffc16578 <rtems_rfs_inode_create+0x134><== NOT EXECUTED
    rtems_rfs_inode_delete (fs, &inode);                              
    rtems_rfs_inode_close (fs, &inode);                               
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc167b8:	4b ff f8 71 	bl      ffc16028 <rtems_rfs_inode_close>       
  if (rc > 0)                                                         
ffc167bc:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc167c0:	41 81 fe 48 	bgt+    ffc16608 <rtems_rfs_inode_create+0x1c4><== NEVER TAKEN
  {                                                                   
    rtems_rfs_inode_free (fs, *ino);                                  
    return rc;                                                        
  }                                                                   
                                                                      
  return 0;                                                           
ffc167c4:	3b e0 00 00 	li      r31,0                                  
ffc167c8:	4b ff fd b0 	b       ffc16578 <rtems_rfs_inode_create+0x134>
   * 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,                         
                               rtems_rfs_inode_get_links (&parent_inode) + 1);
ffc167cc:	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);                  
ffc167d0:	89 09 00 00 	lbz     r8,0(r9)                               
ffc167d4:	89 49 00 01 	lbz     r10,1(r9)                              
ffc167d8:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
ffc167dc:	7d 0a 53 78 	or      r10,r8,r10                             
  if (links == 0xffff)                                                
ffc167e0:	6d 48 ff ff 	xoris   r8,r10,65535                           
ffc167e4:	2f 88 ff ff 	cmpwi   cr7,r8,-1                              
ffc167e8:	41 9e 00 28 	beq-    cr7,ffc16810 <rtems_rfs_inode_create+0x3cc><== NEVER TAKEN
  /*                                                                  
   * 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,                         
ffc167ec:	39 4a 00 01 	addi    r10,r10,1                              
ffc167f0:	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);                  
ffc167f4:	55 48 c2 3e 	rlwinm  r8,r10,24,8,31                         
ffc167f8:	99 09 00 00 	stb     r8,0(r9)                               
ffc167fc:	81 21 00 3c 	lwz     r9,60(r1)                              
ffc16800:	99 49 00 01 	stb     r10,1(r9)                              
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc16804:	39 20 00 01 	li      r9,1                                   
ffc16808:	99 21 00 40 	stb     r9,64(r1)                              
ffc1680c:	4b ff fe fc 	b       ffc16708 <rtems_rfs_inode_create+0x2c4>
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)            
{                                                                     
  uint16_t links;                                                     
  links = rtems_rfs_read_u16 (&handle->node->links);                  
  if (links == 0xffff)                                                
    links = 0;                                                        
ffc16810:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
ffc16814:	4b ff ff d8 	b       ffc167ec <rtems_rfs_inode_create+0x3a8><== NOT EXECUTED
                                                                      

ffc16108 <rtems_rfs_inode_delete>: } int rtems_rfs_inode_delete (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* handle) {
ffc16108:	94 21 ff a0 	stwu    r1,-96(r1)                             
ffc1610c:	7c 08 02 a6 	mflr    r0                                     
ffc16110:	93 c1 00 58 	stw     r30,88(r1)                             
ffc16114:	7c 7e 1b 78 	mr      r30,r3                                 
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_DELETE))                 
ffc16118:	38 60 00 00 	li      r3,0                                   
}                                                                     
                                                                      
int                                                                   
rtems_rfs_inode_delete (rtems_rfs_file_system*  fs,                   
                        rtems_rfs_inode_handle* handle)               
{                                                                     
ffc1611c:	93 e1 00 5c 	stw     r31,92(r1)                             
ffc16120:	7c 9f 23 78 	mr      r31,r4                                 
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_DELETE))                 
ffc16124:	3c 80 00 80 	lis     r4,128                                 
}                                                                     
                                                                      
int                                                                   
rtems_rfs_inode_delete (rtems_rfs_file_system*  fs,                   
                        rtems_rfs_inode_handle* handle)               
{                                                                     
ffc16128:	90 01 00 64 	stw     r0,100(r1)                             
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_DELETE))                 
ffc1612c:	48 00 1d 71 	bl      ffc17e9c <rtems_rfs_trace>             
ffc16130:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc16134:	41 9e 00 2c 	beq-    cr7,ffc16160 <rtems_rfs_inode_delete+0x58><== ALWAYS TAKEN
    printf("rtems-rfs: inode-delete: ino:%" PRIu32 " loaded:%s\n",    
ffc16138:	81 3f 00 0c 	lwz     r9,12(r31)                             <== NOT EXECUTED
ffc1613c:	80 9f 00 08 	lwz     r4,8(r31)                              <== NOT EXECUTED
ffc16140:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc16144:	41 9e 00 58 	beq-    cr7,ffc1619c <rtems_rfs_inode_delete+0x94><== NOT EXECUTED
ffc16148:	3c a0 ff c4 	lis     r5,-60                                 <== NOT EXECUTED
ffc1614c:	38 a5 c1 ac 	addi    r5,r5,-15956                           <== NOT EXECUTED
ffc16150:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc16154:	38 63 c2 94 	addi    r3,r3,-15724                           <== NOT EXECUTED
ffc16158:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1615c:	48 01 49 3d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
           rtems_rfs_inode_ino (handle),                              
           rtems_rfs_inode_is_loaded (handle) ? "yes" : "no");        
                                                                      
  if (rtems_rfs_inode_is_loaded (handle))                             
ffc16160:	81 5f 00 0c 	lwz     r10,12(r31)                            
                                                                      
int                                                                   
rtems_rfs_inode_delete (rtems_rfs_file_system*  fs,                   
                        rtems_rfs_inode_handle* handle)               
{                                                                     
  int rc = 0;                                                         
ffc16164:	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))                             
ffc16168:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1616c:	41 9e 00 18 	beq-    cr7,ffc16184 <rtems_rfs_inode_delete+0x7c><== NEVER TAKEN
    rtems_rfs_block_map map;                                          
                                                                      
    /*                                                                
     * Free the ino number.                                           
     */                                                               
    rc = rtems_rfs_inode_free (fs, handle->ino);                      
ffc16170:	80 9f 00 08 	lwz     r4,8(r31)                              
ffc16174:	7f c3 f3 78 	mr      r3,r30                                 
ffc16178:	4b ff fb 55 	bl      ffc15ccc <rtems_rfs_inode_free>        
    if (rc > 0)                                                       
ffc1617c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc16180:	40 81 00 28 	ble-    ffc161a8 <rtems_rfs_inode_delete+0xa0> <== ALWAYS TAKEN
      handle->loads = 0;                                              
      handle->node = NULL;                                            
    }                                                                 
  }                                                                   
  return rc;                                                          
}                                                                     
ffc16184:	80 01 00 64 	lwz     r0,100(r1)                             
ffc16188:	83 c1 00 58 	lwz     r30,88(r1)                             
ffc1618c:	7c 08 03 a6 	mtlr    r0                                     
ffc16190:	83 e1 00 5c 	lwz     r31,92(r1)                             
ffc16194:	38 21 00 60 	addi    r1,r1,96                               
ffc16198:	4e 80 00 20 	blr                                            
                        rtems_rfs_inode_handle* handle)               
{                                                                     
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_DELETE))                 
    printf("rtems-rfs: inode-delete: ino:%" PRIu32 " loaded:%s\n",    
ffc1619c:	3c a0 ff c4 	lis     r5,-60                                 <== NOT EXECUTED
ffc161a0:	38 a5 c6 e4 	addi    r5,r5,-14620                           <== NOT EXECUTED
ffc161a4:	4b ff ff ac 	b       ffc16150 <rtems_rfs_inode_delete+0x48> <== NOT EXECUTED
      return rc;                                                      
                                                                      
    /*                                                                
     * Free the blocks the inode may have attached.                   
     */                                                               
    rc = rtems_rfs_block_map_open (fs, handle, &map);                 
ffc161a8:	7f c3 f3 78 	mr      r3,r30                                 
ffc161ac:	7f e4 fb 78 	mr      r4,r31                                 
ffc161b0:	38 a1 00 08 	addi    r5,r1,8                                
ffc161b4:	48 00 aa a9 	bl      ffc20c5c <rtems_rfs_block_map_open>    
    if (rc == 0)                                                      
ffc161b8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc161bc:	40 82 ff c8 	bne+    ffc16184 <rtems_rfs_inode_delete+0x7c> <== NEVER TAKEN
    {                                                                 
      int rrc;                                                        
      rrc = rtems_rfs_block_map_free_all (fs, &map);                  
ffc161c0:	38 81 00 08 	addi    r4,r1,8                                
ffc161c4:	7f c3 f3 78 	mr      r3,r30                                 
ffc161c8:	48 00 b8 dd 	bl      ffc21aa4 <rtems_rfs_block_map_free_all>
      rc = rtems_rfs_block_map_close (fs, &map);                      
ffc161cc:	38 81 00 08 	addi    r4,r1,8                                
ffc161d0:	7f c3 f3 78 	mr      r3,r30                                 
ffc161d4:	48 00 ac 75 	bl      ffc20e48 <rtems_rfs_block_map_close>   
      if (rc > 0)                                                     
        rrc = rc;                                                     
      memset (handle->node, 0xff, RTEMS_RFS_INODE_SIZE);              
ffc161d8:	80 7f 00 0c 	lwz     r3,12(r31)                             
ffc161dc:	38 80 00 ff 	li      r4,255                                 
ffc161e0:	38 a0 00 38 	li      r5,56                                  
ffc161e4:	48 01 46 59 	bl      ffc2a83c <memset>                      
      rtems_rfs_buffer_mark_dirty (&handle->buffer);                  
ffc161e8:	7f e4 fb 78 	mr      r4,r31                                 
ffc161ec:	39 20 00 01 	li      r9,1                                   
ffc161f0:	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);     
ffc161f4:	7f c3 f3 78 	mr      r3,r30                                 
ffc161f8:	48 00 bb 0d 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
      handle->loads = 0;                                              
ffc161fc:	39 40 00 00 	li      r10,0                                  
ffc16200:	91 5f 00 24 	stw     r10,36(r31)                            
      handle->node = NULL;                                            
ffc16204:	91 5f 00 0c 	stw     r10,12(r31)                            
ffc16208:	4b ff ff 7c 	b       ffc16184 <rtems_rfs_inode_delete+0x7c> 
                                                                      

ffc15cd8 <rtems_rfs_inode_load>: } int rtems_rfs_inode_load (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* handle) {
ffc15cd8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc15cdc:	7c 08 02 a6 	mflr    r0                                     
ffc15ce0:	93 c1 00 08 	stw     r30,8(r1)                              
ffc15ce4:	7c 7e 1b 78 	mr      r30,r3                                 
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_LOAD))                   
ffc15ce8:	38 60 00 00 	li      r3,0                                   
}                                                                     
                                                                      
int                                                                   
rtems_rfs_inode_load (rtems_rfs_file_system*  fs,                     
                      rtems_rfs_inode_handle* handle)                 
{                                                                     
ffc15cec:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc15cf0:	7c 9f 23 78 	mr      r31,r4                                 
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_LOAD))                   
ffc15cf4:	3c 80 00 10 	lis     r4,16                                  
}                                                                     
                                                                      
int                                                                   
rtems_rfs_inode_load (rtems_rfs_file_system*  fs,                     
                      rtems_rfs_inode_handle* handle)                 
{                                                                     
ffc15cf8:	90 01 00 14 	stw     r0,20(r1)                              
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_LOAD))                   
ffc15cfc:	48 00 21 a1 	bl      ffc17e9c <rtems_rfs_trace>             
ffc15d00:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc15d04:	41 9e 00 30 	beq-    cr7,ffc15d34 <rtems_rfs_inode_load+0x5c><== ALWAYS TAKEN
    printf ("rtems-rfs: inode-load: ino=%" PRIu32 " loads=%i loaded=%s\n",
ffc15d08:	81 3f 00 0c 	lwz     r9,12(r31)                             <== NOT EXECUTED
ffc15d0c:	80 9f 00 08 	lwz     r4,8(r31)                              <== NOT EXECUTED
ffc15d10:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc15d14:	80 bf 00 24 	lwz     r5,36(r31)                             <== NOT EXECUTED
ffc15d18:	41 9e 00 50 	beq-    cr7,ffc15d68 <rtems_rfs_inode_load+0x90><== NOT EXECUTED
ffc15d1c:	3c c0 ff c4 	lis     r6,-60                                 <== NOT EXECUTED
ffc15d20:	38 c6 c1 ac 	addi    r6,r6,-15956                           <== NOT EXECUTED
ffc15d24:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc15d28:	38 63 c1 b0 	addi    r3,r3,-15952                           <== NOT EXECUTED
ffc15d2c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc15d30:	48 01 4d 69 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
                                                                      
  /*                                                                  
   * An inode does not move so once loaded no need to do again.       
   */                                                                 
                                                                      
  if (!rtems_rfs_inode_is_loaded (handle))                            
ffc15d34:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc15d38:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc15d3c:	41 9e 00 38 	beq-    cr7,ffc15d74 <rtems_rfs_inode_load+0x9c>
                                                                      
    handle->node = rtems_rfs_buffer_data (&handle->buffer);           
    handle->node += handle->offset;                                   
  }                                                                   
                                                                      
  handle->loads++;                                                    
ffc15d40:	81 3f 00 24 	lwz     r9,36(r31)                             
                                                                      
  return 0;                                                           
ffc15d44:	38 60 00 00 	li      r3,0                                   
                                                                      
    handle->node = rtems_rfs_buffer_data (&handle->buffer);           
    handle->node += handle->offset;                                   
  }                                                                   
                                                                      
  handle->loads++;                                                    
ffc15d48:	39 29 00 01 	addi    r9,r9,1                                
ffc15d4c:	91 3f 00 24 	stw     r9,36(r31)                             
                                                                      
  return 0;                                                           
}                                                                     
ffc15d50:	80 01 00 14 	lwz     r0,20(r1)                              
ffc15d54:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc15d58:	7c 08 03 a6 	mtlr    r0                                     
ffc15d5c:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc15d60:	38 21 00 10 	addi    r1,r1,16                               
ffc15d64:	4e 80 00 20 	blr                                            
int                                                                   
rtems_rfs_inode_load (rtems_rfs_file_system*  fs,                     
                      rtems_rfs_inode_handle* handle)                 
{                                                                     
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_LOAD))                   
    printf ("rtems-rfs: inode-load: ino=%" PRIu32 " loads=%i loaded=%s\n",
ffc15d68:	3c c0 ff c4 	lis     r6,-60                                 <== NOT EXECUTED
ffc15d6c:	38 c6 c6 e4 	addi    r6,r6,-14620                           <== NOT EXECUTED
ffc15d70:	4b ff ff b4 	b       ffc15d24 <rtems_rfs_inode_load+0x4c>   <== NOT EXECUTED
                                                                      
  if (!rtems_rfs_inode_is_loaded (handle))                            
  {                                                                   
    int rc;                                                           
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs,&handle->buffer,         
ffc15d74:	80 bf 00 1c 	lwz     r5,28(r31)                             
ffc15d78:	7f c3 f3 78 	mr      r3,r30                                 
ffc15d7c:	38 9f 00 10 	addi    r4,r31,16                              
ffc15d80:	38 c0 00 01 	li      r6,1                                   
ffc15d84:	48 00 c1 95 	bl      ffc21f18 <rtems_rfs_buffer_handle_request>
                                          handle->block, true);       
    if (rc > 0)                                                       
ffc15d88:	2c 03 00 00 	cmpwi   r3,0                                   
ffc15d8c:	41 81 ff c4 	bgt+    ffc15d50 <rtems_rfs_inode_load+0x78>   <== NEVER TAKEN
      return rc;                                                      
                                                                      
    handle->node = rtems_rfs_buffer_data (&handle->buffer);           
ffc15d90:	81 3f 00 18 	lwz     r9,24(r31)                             
    handle->node += handle->offset;                                   
ffc15d94:	81 5f 00 20 	lwz     r10,32(r31)                            
ffc15d98:	81 29 00 1c 	lwz     r9,28(r9)                              
ffc15d9c:	1d 4a 00 38 	mulli   r10,r10,56                             
ffc15da0:	7d 49 52 14 	add     r10,r9,r10                             
ffc15da4:	91 5f 00 0c 	stw     r10,12(r31)                            
ffc15da8:	4b ff ff 98 	b       ffc15d40 <rtems_rfs_inode_load+0x68>   
                                                                      

ffc15dac <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) {
ffc15dac:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc15db0:	7c 08 02 a6 	mflr    r0                                     
ffc15db4:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc15db8:	7c 7d 1b 78 	mr      r29,r3                                 
  int group;                                                          
  int gino;                                                           
  int index;                                                          
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_OPEN))                   
ffc15dbc:	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)                   
{                                                                     
ffc15dc0:	93 e1 00 14 	stw     r31,20(r1)                             
ffc15dc4:	7c 9f 23 78 	mr      r31,r4                                 
  int group;                                                          
  int gino;                                                           
  int index;                                                          
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_OPEN))                   
ffc15dc8:	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)                   
{                                                                     
ffc15dcc:	93 81 00 08 	stw     r28,8(r1)                              
ffc15dd0:	7c dc 33 78 	mr      r28,r6                                 
ffc15dd4:	93 c1 00 10 	stw     r30,16(r1)                             
ffc15dd8:	7c be 2b 78 	mr      r30,r5                                 
ffc15ddc:	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))                   
ffc15de0:	48 00 20 bd 	bl      ffc17e9c <rtems_rfs_trace>             
ffc15de4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc15de8:	40 9e 00 cc 	bne-    cr7,ffc15eb4 <rtems_rfs_inode_open+0x108><== NEVER TAKEN
    printf ("rtems-rfs: inode-open: ino: %" PRIu32 "\n", ino);        
                                                                      
  if (ino == RTEMS_RFS_EMPTY_INO)                                     
ffc15dec:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
    return EINVAL;                                                    
ffc15df0:	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)                                     
ffc15df4:	40 9e 00 24 	bne-    cr7,ffc15e18 <rtems_rfs_inode_open+0x6c><== ALWAYS TAKEN
                                                                      
  rc = rtems_rfs_buffer_handle_open (fs, &handle->buffer);            
  if ((rc == 0) && load)                                              
    rc = rtems_rfs_inode_load (fs, handle);                           
  return rc;                                                          
}                                                                     
ffc15df8:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
ffc15dfc:	83 81 00 08 	lwz     r28,8(r1)                              <== NOT EXECUTED
ffc15e00:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc15e04:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc15e08:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc15e0c:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc15e10:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc15e14:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    printf ("rtems-rfs: inode-open: ino: %" PRIu32 "\n", ino);        
                                                                      
  if (ino == RTEMS_RFS_EMPTY_INO)                                     
    return EINVAL;                                                    
                                                                      
  if ((ino - RTEMS_RFS_ROOT_INO) > rtems_rfs_fs_inodes (fs))          
ffc15e18:	81 1d 00 14 	lwz     r8,20(r29)                             
ffc15e1c:	39 5f ff ff 	addi    r10,r31,-1                             
ffc15e20:	7f 8a 40 40 	cmplw   cr7,r10,r8                             
ffc15e24:	41 9d ff d4 	bgt+    cr7,ffc15df8 <rtems_rfs_inode_open+0x4c><== NEVER TAKEN
  handle->ino = ino;                                                  
  handle->node = NULL;                                                
  handle->loads = 0;                                                  
                                                                      
  gino  = ino - RTEMS_RFS_ROOT_INO;                                   
  group = gino / fs->group_inodes;                                    
ffc15e28:	81 1d 00 2c 	lwz     r8,44(r29)                             
                                                                      
  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)                                              
ffc15e2c:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
  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;
ffc15e30:	81 3d 00 30 	lwz     r9,48(r29)                             
                                                                      
  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);            
ffc15e34:	38 60 00 00 	li      r3,0                                   
  handle->node = NULL;                                                
  handle->loads = 0;                                                  
                                                                      
  gino  = ino - RTEMS_RFS_ROOT_INO;                                   
  group = gino / fs->group_inodes;                                    
  gino  = gino % fs->group_inodes;                                    
ffc15e38:	7c ea 43 96 	divwu   r7,r10,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); 
ffc15e3c:	80 dd 00 20 	lwz     r6,32(r29)                             
    return EINVAL;                                                    
                                                                      
  if ((ino - RTEMS_RFS_ROOT_INO) > rtems_rfs_fs_inodes (fs))          
    return EINVAL;                                                    
                                                                      
  handle->ino = ino;                                                  
ffc15e40:	93 fe 00 08 	stw     r31,8(r30)                             
  handle->node = NULL;                                                
  handle->loads = 0;                                                  
                                                                      
  gino  = ino - RTEMS_RFS_ROOT_INO;                                   
  group = gino / fs->group_inodes;                                    
  gino  = gino % fs->group_inodes;                                    
ffc15e44:	7d 07 41 d6 	mullw   r8,r7,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); 
ffc15e48:	1c a7 00 50 	mulli   r5,r7,80                               
  handle->node = NULL;                                                
  handle->loads = 0;                                                  
                                                                      
  gino  = ino - RTEMS_RFS_ROOT_INO;                                   
  group = gino / fs->group_inodes;                                    
  gino  = gino % fs->group_inodes;                                    
ffc15e4c:	7d 48 50 50 	subf    r10,r8,r10                             
  index = (gino / fs->inodes_per_block) + RTEMS_RFS_GROUP_INODE_BLOCK;
ffc15e50:	7c c6 28 2e 	lwzx    r6,r6,r5                               
                                                                      
  handle->offset = gino % fs->inodes_per_block;                       
ffc15e54:	7c ea 4b 96 	divwu   r7,r10,r9                              
ffc15e58:	7d 27 49 d6 	mullw   r9,r7,r9                               
  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;
ffc15e5c:	38 c6 00 02 	addi    r6,r6,2                                
                                                                      
  if ((ino - RTEMS_RFS_ROOT_INO) > rtems_rfs_fs_inodes (fs))          
    return EINVAL;                                                    
                                                                      
  handle->ino = ino;                                                  
  handle->node = NULL;                                                
ffc15e60:	39 00 00 00 	li      r8,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;                       
ffc15e64:	7d 49 50 50 	subf    r10,r9,r10                             
                                                                      
  if ((ino - RTEMS_RFS_ROOT_INO) > rtems_rfs_fs_inodes (fs))          
    return EINVAL;                                                    
                                                                      
  handle->ino = ino;                                                  
  handle->node = NULL;                                                
ffc15e68:	91 1e 00 0c 	stw     r8,12(r30)                             
  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;                       
  handle->block  = rtems_rfs_group_block (&fs->groups[group], index); 
ffc15e6c:	7c e6 3a 14 	add     r7,r6,r7                               
  if ((ino - RTEMS_RFS_ROOT_INO) > rtems_rfs_fs_inodes (fs))          
    return EINVAL;                                                    
                                                                      
  handle->ino = ino;                                                  
  handle->node = NULL;                                                
  handle->loads = 0;                                                  
ffc15e70:	91 1e 00 24 	stw     r8,36(r30)                             
  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;                       
ffc15e74:	91 5e 00 20 	stw     r10,32(r30)                            
  handle->block  = rtems_rfs_group_block (&fs->groups[group], index); 
ffc15e78:	90 fe 00 1c 	stw     r7,28(r30)                             
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc15e7c:	99 1e 00 10 	stb     r8,16(r30)                             
  handle->bnum  = 0;                                                  
ffc15e80:	91 1e 00 14 	stw     r8,20(r30)                             
  handle->buffer = NULL;                                              
ffc15e84:	91 1e 00 18 	stw     r8,24(r30)                             
                                                                      
  rc = rtems_rfs_buffer_handle_open (fs, &handle->buffer);            
  if ((rc == 0) && load)                                              
ffc15e88:	41 9e ff 70 	beq+    cr7,ffc15df8 <rtems_rfs_inode_open+0x4c><== NEVER TAKEN
    rc = rtems_rfs_inode_load (fs, handle);                           
  return rc;                                                          
}                                                                     
ffc15e8c:	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);                           
ffc15e90:	7f a3 eb 78 	mr      r3,r29                                 
  return rc;                                                          
}                                                                     
ffc15e94:	83 81 00 08 	lwz     r28,8(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);                           
ffc15e98:	7f c4 f3 78 	mr      r4,r30                                 
  return rc;                                                          
}                                                                     
ffc15e9c:	7c 08 03 a6 	mtlr    r0                                     
ffc15ea0:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc15ea4:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc15ea8:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc15eac:	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);                           
ffc15eb0:	4b ff fe 28 	b       ffc15cd8 <rtems_rfs_inode_load>        
  int gino;                                                           
  int index;                                                          
  int rc;                                                             
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_OPEN))                   
    printf ("rtems-rfs: inode-open: ino: %" PRIu32 "\n", ino);        
ffc15eb4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc15eb8:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc15ebc:	38 63 c1 e4 	addi    r3,r3,-15900                           <== NOT EXECUTED
ffc15ec0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc15ec4:	48 01 4b d5 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc15ec8:	4b ff ff 24 	b       ffc15dec <rtems_rfs_inode_open+0x40>   <== NOT EXECUTED
                                                                      

ffc1620c <rtems_rfs_inode_time_stamp_now>: int rtems_rfs_inode_time_stamp_now (rtems_rfs_inode_handle* handle, bool atime, bool mtime) {
ffc1620c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc16210:	7c 08 02 a6 	mflr    r0                                     
ffc16214:	90 01 00 1c 	stw     r0,28(r1)                              
  time_t now;                                                         
  if (!rtems_rfs_inode_is_loaded (handle))                            
ffc16218:	81 23 00 0c 	lwz     r9,12(r3)                              
                                                                      
int                                                                   
rtems_rfs_inode_time_stamp_now (rtems_rfs_inode_handle* handle,       
                                bool                    atime,        
                                bool                    mtime)        
{                                                                     
ffc1621c:	93 e1 00 14 	stw     r31,20(r1)                             
ffc16220:	7c 7f 1b 78 	mr      r31,r3                                 
  time_t now;                                                         
  if (!rtems_rfs_inode_is_loaded (handle))                            
ffc16224:	2f 89 00 00 	cmpwi   cr7,r9,0                               
                                                                      
int                                                                   
rtems_rfs_inode_time_stamp_now (rtems_rfs_inode_handle* handle,       
                                bool                    atime,        
                                bool                    mtime)        
{                                                                     
ffc16228:	93 a1 00 0c 	stw     r29,12(r1)                             
  time_t now;                                                         
  if (!rtems_rfs_inode_is_loaded (handle))                            
    return ENXIO;                                                     
ffc1622c:	38 60 00 06 	li      r3,6                                   
                                                                      
int                                                                   
rtems_rfs_inode_time_stamp_now (rtems_rfs_inode_handle* handle,       
                                bool                    atime,        
                                bool                    mtime)        
{                                                                     
ffc16230:	93 c1 00 10 	stw     r30,16(r1)                             
  time_t now;                                                         
  if (!rtems_rfs_inode_is_loaded (handle))                            
ffc16234:	41 9e 00 94 	beq-    cr7,ffc162c8 <rtems_rfs_inode_time_stamp_now+0xbc><== NEVER TAKEN
ffc16238:	7c 9e 23 78 	mr      r30,r4                                 
    return ENXIO;                                                     
  now = time (NULL);                                                  
ffc1623c:	38 60 00 00 	li      r3,0                                   
ffc16240:	7c bd 2b 78 	mr      r29,r5                                 
ffc16244:	48 01 8b c9 	bl      ffc2ee0c <time>                        
  if (atime)                                                          
ffc16248:	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);                                                  
ffc1624c:	7c 69 1b 78 	mr      r9,r3                                  
  if (atime)                                                          
ffc16250:	41 9e 00 38 	beq-    cr7,ffc16288 <rtems_rfs_inode_time_stamp_now+0x7c><== 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);                  
ffc16254:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc16258:	54 68 46 3e 	rlwinm  r8,r3,8,24,31                          
ffc1625c:	54 67 84 3e 	rlwinm  r7,r3,16,16,31                         
ffc16260:	99 0a 00 10 	stb     r8,16(r10)                             
ffc16264:	54 68 c2 3e 	rlwinm  r8,r3,24,8,31                          
ffc16268:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc1626c:	98 ea 00 11 	stb     r7,17(r10)                             
ffc16270:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc16274:	99 0a 00 12 	stb     r8,18(r10)                             
ffc16278:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc1627c:	98 6a 00 13 	stb     r3,19(r10)                             
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc16280:	39 40 00 01 	li      r10,1                                  
ffc16284:	99 5f 00 10 	stb     r10,16(r31)                            
    rtems_rfs_inode_set_atime (handle, now);                          
  if (mtime)                                                          
ffc16288:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
    rtems_rfs_inode_set_mtime (handle, now);                          
  return 0;                                                           
ffc1628c:	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)                                                          
ffc16290:	41 9e 00 38 	beq-    cr7,ffc162c8 <rtems_rfs_inode_time_stamp_now+0xbc><== 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);                  
ffc16294:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc16298:	55 28 46 3e 	rlwinm  r8,r9,8,24,31                          
ffc1629c:	55 27 84 3e 	rlwinm  r7,r9,16,16,31                         
ffc162a0:	99 0a 00 14 	stb     r8,20(r10)                             
ffc162a4:	55 28 c2 3e 	rlwinm  r8,r9,24,8,31                          
ffc162a8:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc162ac:	98 ea 00 15 	stb     r7,21(r10)                             
ffc162b0:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc162b4:	99 0a 00 16 	stb     r8,22(r10)                             
ffc162b8:	81 5f 00 0c 	lwz     r10,12(r31)                            
ffc162bc:	99 2a 00 17 	stb     r9,23(r10)                             
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc162c0:	39 20 00 01 	li      r9,1                                   
ffc162c4:	99 3f 00 10 	stb     r9,16(r31)                             
    rtems_rfs_inode_set_mtime (handle, now);                          
  return 0;                                                           
}                                                                     
ffc162c8:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc162cc:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc162d0:	7c 08 03 a6 	mtlr    r0                                     
ffc162d4:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc162d8:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc162dc:	38 21 00 18 	addi    r1,r1,24                               
ffc162e0:	4e 80 00 20 	blr                                            
                                                                      

ffc15ecc <rtems_rfs_inode_unload>: int rtems_rfs_inode_unload (rtems_rfs_file_system* fs, rtems_rfs_inode_handle* handle, bool update_ctime) {
ffc15ecc:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc15ed0:	7c 08 02 a6 	mflr    r0                                     
ffc15ed4:	93 c1 00 10 	stw     r30,16(r1)                             
ffc15ed8:	7c 7e 1b 78 	mr      r30,r3                                 
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_UNLOAD))                 
ffc15edc:	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)         
{                                                                     
ffc15ee0:	93 e1 00 14 	stw     r31,20(r1)                             
ffc15ee4:	7c 9f 23 78 	mr      r31,r4                                 
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_UNLOAD))                 
ffc15ee8:	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)         
{                                                                     
ffc15eec:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc15ef0:	7c bd 2b 78 	mr      r29,r5                                 
ffc15ef4:	90 01 00 1c 	stw     r0,28(r1)                              
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_UNLOAD))                 
ffc15ef8:	48 00 1f a5 	bl      ffc17e9c <rtems_rfs_trace>             
ffc15efc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc15f00:	41 9e 00 30 	beq-    cr7,ffc15f30 <rtems_rfs_inode_unload+0x64><== ALWAYS TAKEN
    printf ("rtems-rfs: inode-unload: ino=%" PRIu32 " loads=%i loaded=%s\n",
ffc15f04:	81 3f 00 0c 	lwz     r9,12(r31)                             <== NOT EXECUTED
ffc15f08:	80 9f 00 08 	lwz     r4,8(r31)                              <== NOT EXECUTED
ffc15f0c:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc15f10:	80 bf 00 24 	lwz     r5,36(r31)                             <== NOT EXECUTED
ffc15f14:	41 9e 00 c8 	beq-    cr7,ffc15fdc <rtems_rfs_inode_unload+0x110><== NOT EXECUTED
ffc15f18:	3c c0 ff c4 	lis     r6,-60                                 <== NOT EXECUTED
ffc15f1c:	38 c6 c1 ac 	addi    r6,r6,-15956                           <== NOT EXECUTED
ffc15f20:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc15f24:	38 63 c2 08 	addi    r3,r3,-15864                           <== NOT EXECUTED
ffc15f28:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc15f2c:	48 01 4b 6d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
            handle->ino, handle->loads,                               
            rtems_rfs_inode_is_loaded (handle) ? "yes" : "no");       
                                                                      
  if (rtems_rfs_inode_is_loaded (handle))                             
ffc15f30:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc15f34:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc15f38:	41 9e 00 40 	beq-    cr7,ffc15f78 <rtems_rfs_inode_unload+0xac>
  {                                                                   
    if (handle->loads == 0)                                           
ffc15f3c:	81 5f 00 24 	lwz     r10,36(r31)                            
      return EIO;                                                     
ffc15f40:	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)                                           
ffc15f44:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc15f48:	40 9e 00 20 	bne-    cr7,ffc15f68 <rtems_rfs_inode_unload+0x9c><== ALWAYS TAKEN
      handle->node = NULL;                                            
    }                                                                 
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc15f4c:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
ffc15f50:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc15f54:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc15f58:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc15f5c:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc15f60:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc15f64:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  if (rtems_rfs_inode_is_loaded (handle))                             
  {                                                                   
    if (handle->loads == 0)                                           
      return EIO;                                                     
                                                                      
    handle->loads--;                                                  
ffc15f68:	39 4a ff ff 	addi    r10,r10,-1                             
                                                                      
    if (handle->loads == 0)                                           
ffc15f6c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
  if (rtems_rfs_inode_is_loaded (handle))                             
  {                                                                   
    if (handle->loads == 0)                                           
      return EIO;                                                     
                                                                      
    handle->loads--;                                                  
ffc15f70:	91 5f 00 24 	stw     r10,36(r31)                            
                                                                      
    if (handle->loads == 0)                                           
ffc15f74:	41 9e 00 24 	beq-    cr7,ffc15f98 <rtems_rfs_inode_unload+0xcc>
      handle->node = NULL;                                            
    }                                                                 
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc15f78:	80 01 00 1c 	lwz     r0,28(r1)                              
int                                                                   
rtems_rfs_inode_unload (rtems_rfs_file_system*  fs,                   
                        rtems_rfs_inode_handle* handle,               
                        bool                    update_ctime)         
{                                                                     
  int rc = 0;                                                         
ffc15f7c:	38 60 00 00 	li      r3,0                                   
      handle->node = NULL;                                            
    }                                                                 
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc15f80:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc15f84:	7c 08 03 a6 	mtlr    r0                                     
ffc15f88:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc15f8c:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc15f90:	38 21 00 18 	addi    r1,r1,24                               
ffc15f94:	4e 80 00 20 	blr                                            
    if (handle->loads == 0)                                           
    {                                                                 
      /*                                                              
       * If the buffer is dirty it will be release. Also set the ctime.
       */                                                             
      if (rtems_rfs_buffer_dirty (&handle->buffer) && update_ctime)   
ffc15f98:	89 3f 00 10 	lbz     r9,16(r31)                             
ffc15f9c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc15fa0:	41 9e 00 0c 	beq-    cr7,ffc15fac <rtems_rfs_inode_unload+0xe0>
ffc15fa4:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc15fa8:	40 9e 00 40 	bne-    cr7,ffc15fe8 <rtems_rfs_inode_unload+0x11c><== ALWAYS TAKEN
        rtems_rfs_inode_set_ctime (handle, time (NULL));              
      rc = rtems_rfs_buffer_handle_release (fs, &handle->buffer);     
ffc15fac:	7f c3 f3 78 	mr      r3,r30                                 
ffc15fb0:	38 9f 00 10 	addi    r4,r31,16                              
ffc15fb4:	48 00 bd 51 	bl      ffc21d04 <rtems_rfs_buffer_handle_release>
      handle->node = NULL;                                            
    }                                                                 
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc15fb8:	80 01 00 1c 	lwz     r0,28(r1)                              
       * If the buffer is dirty it will be release. Also set the ctime.
       */                                                             
      if (rtems_rfs_buffer_dirty (&handle->buffer) && update_ctime)   
        rtems_rfs_inode_set_ctime (handle, time (NULL));              
      rc = rtems_rfs_buffer_handle_release (fs, &handle->buffer);     
      handle->node = NULL;                                            
ffc15fbc:	39 40 00 00 	li      r10,0                                  
    }                                                                 
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc15fc0:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc15fc4:	7c 08 03 a6 	mtlr    r0                                     
       * If the buffer is dirty it will be release. Also set the ctime.
       */                                                             
      if (rtems_rfs_buffer_dirty (&handle->buffer) && update_ctime)   
        rtems_rfs_inode_set_ctime (handle, time (NULL));              
      rc = rtems_rfs_buffer_handle_release (fs, &handle->buffer);     
      handle->node = NULL;                                            
ffc15fc8:	91 5f 00 0c 	stw     r10,12(r31)                            
    }                                                                 
  }                                                                   
                                                                      
  return rc;                                                          
}                                                                     
ffc15fcc:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc15fd0:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc15fd4:	38 21 00 18 	addi    r1,r1,24                               
ffc15fd8:	4e 80 00 20 	blr                                            
                        bool                    update_ctime)         
{                                                                     
  int rc = 0;                                                         
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_INODE_UNLOAD))                 
    printf ("rtems-rfs: inode-unload: ino=%" PRIu32 " loads=%i loaded=%s\n",
ffc15fdc:	3c c0 ff c4 	lis     r6,-60                                 <== NOT EXECUTED
ffc15fe0:	38 c6 c6 e4 	addi    r6,r6,-14620                           <== NOT EXECUTED
ffc15fe4:	4b ff ff 3c 	b       ffc15f20 <rtems_rfs_inode_unload+0x54> <== NOT EXECUTED
    {                                                                 
      /*                                                              
       * If the buffer is dirty it will be release. Also set the ctime.
       */                                                             
      if (rtems_rfs_buffer_dirty (&handle->buffer) && update_ctime)   
        rtems_rfs_inode_set_ctime (handle, time (NULL));              
ffc15fe8:	38 60 00 00 	li      r3,0                                   
ffc15fec:	48 01 8e 21 	bl      ffc2ee0c <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);                  
ffc15ff0:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc15ff4:	54 6a 46 3e 	rlwinm  r10,r3,8,24,31                         
ffc15ff8:	99 49 00 18 	stb     r10,24(r9)                             
ffc15ffc:	54 68 84 3e 	rlwinm  r8,r3,16,16,31                         
ffc16000:	54 6a c2 3e 	rlwinm  r10,r3,24,8,31                         
ffc16004:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc16008:	99 09 00 19 	stb     r8,25(r9)                              
ffc1600c:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc16010:	99 49 00 1a 	stb     r10,26(r9)                             
ffc16014:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc16018:	98 69 00 1b 	stb     r3,27(r9)                              
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc1601c:	39 20 00 01 	li      r9,1                                   
ffc16020:	99 3f 00 10 	stb     r9,16(r31)                             
ffc16024:	4b ff ff 88 	b       ffc15fac <rtems_rfs_inode_unload+0xe0> 
                                                                      

ffc25a88 <rtems_rfs_link>: const char* name, int length, rtems_rfs_ino parent, rtems_rfs_ino target, bool link_dir) {
ffc25a88:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc25a8c:	7c 08 02 a6 	mflr    r0                                     
ffc25a90:	93 01 00 58 	stw     r24,88(r1)                             
ffc25a94:	7c 98 23 78 	mr      r24,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))                         
ffc25a98:	3c 80 01 00 	lis     r4,256                                 
                const char*            name,                          
                int                    length,                        
                rtems_rfs_ino          parent,                        
                rtems_rfs_ino          target,                        
                bool                   link_dir)                      
{                                                                     
ffc25a9c:	93 c1 00 70 	stw     r30,112(r1)                            
ffc25aa0:	7c 7e 1b 78 	mr      r30,r3                                 
  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))                         
ffc25aa4:	38 60 00 00 	li      r3,0                                   
                const char*            name,                          
                int                    length,                        
                rtems_rfs_ino          parent,                        
                rtems_rfs_ino          target,                        
                bool                   link_dir)                      
{                                                                     
ffc25aa8:	93 21 00 5c 	stw     r25,92(r1)                             
ffc25aac:	7d 19 43 78 	mr      r25,r8                                 
ffc25ab0:	93 41 00 60 	stw     r26,96(r1)                             
ffc25ab4:	7c da 33 78 	mr      r26,r6                                 
ffc25ab8:	93 61 00 64 	stw     r27,100(r1)                            
ffc25abc:	7c bb 2b 78 	mr      r27,r5                                 
ffc25ac0:	93 81 00 68 	stw     r28,104(r1)                            
ffc25ac4:	7c fc 3b 78 	mr      r28,r7                                 
ffc25ac8:	90 01 00 7c 	stw     r0,124(r1)                             
ffc25acc:	93 a1 00 6c 	stw     r29,108(r1)                            
ffc25ad0:	93 e1 00 74 	stw     r31,116(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))                         
ffc25ad4:	4b ff 23 c9 	bl      ffc17e9c <rtems_rfs_trace>             
ffc25ad8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc25adc:	40 9e 01 20 	bne-    cr7,ffc25bfc <rtems_rfs_link+0x174>    <== NEVER TAKEN
    for (c = 0; c < length; c++)                                      
      printf ("%c", name[c]);                                         
    printf ("(%" PRIu32 ")\n", target);                               
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, target, &target_inode, true);        
ffc25ae0:	7f c3 f3 78 	mr      r3,r30                                 
ffc25ae4:	7f 84 e3 78 	mr      r4,r28                                 
ffc25ae8:	38 a1 00 08 	addi    r5,r1,8                                
ffc25aec:	38 c0 00 01 	li      r6,1                                   
ffc25af0:	4b ff 02 bd 	bl      ffc15dac <rtems_rfs_inode_open>        
  if (rc)                                                             
ffc25af4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc25af8:	40 82 00 d0 	bne-    ffc25bc8 <rtems_rfs_link+0x140>        <== 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)))
ffc25afc:	2f 99 00 00 	cmpwi   cr7,r25,0                              
  {                                                                   
    rtems_rfs_inode_close (fs, &target_inode);                        
ffc25b00:	7f c3 f3 78 	mr      r3,r30                                 
                                                                      
  /*                                                                  
   * 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)))
ffc25b04:	40 9e 00 18 	bne-    cr7,ffc25b1c <rtems_rfs_link+0x94>     <== NEVER TAKEN
ffc25b08:	81 21 00 14 	lwz     r9,20(r1)                              
ffc25b0c:	89 29 00 02 	lbz     r9,2(r9)                               
ffc25b10:	55 29 44 26 	rlwinm  r9,r9,8,16,19                          
ffc25b14:	2f 89 40 00 	cmpwi   cr7,r9,16384                           
ffc25b18:	41 9e 01 3c 	beq-    cr7,ffc25c54 <rtems_rfs_link+0x1cc>    <== NEVER TAKEN
  {                                                                   
    rtems_rfs_inode_close (fs, &target_inode);                        
    return ENOTSUP;                                                   
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);        
ffc25b1c:	7f 44 d3 78 	mr      r4,r26                                 
ffc25b20:	38 a1 00 30 	addi    r5,r1,48                               
ffc25b24:	38 c0 00 01 	li      r6,1                                   
ffc25b28:	4b ff 02 85 	bl      ffc15dac <rtems_rfs_inode_open>        
  if (rc)                                                             
ffc25b2c:	7c 7f 1b 79 	mr.     r31,r3                                 
  {                                                                   
    rtems_rfs_inode_close (fs, &target_inode);                        
ffc25b30:	7f c3 f3 78 	mr      r3,r30                                 
    rtems_rfs_inode_close (fs, &target_inode);                        
    return ENOTSUP;                                                   
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);        
  if (rc)                                                             
ffc25b34:	40 82 00 8c 	bne-    ffc25bc0 <rtems_rfs_link+0x138>        <== NEVER TAKEN
  {                                                                   
    rtems_rfs_inode_close (fs, &target_inode);                        
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, target);
ffc25b38:	38 81 00 30 	addi    r4,r1,48                               
ffc25b3c:	7f 05 c3 78 	mr      r5,r24                                 
ffc25b40:	7f 66 db 78 	mr      r6,r27                                 
ffc25b44:	7f 87 e3 78 	mr      r7,r28                                 
ffc25b48:	4b ff d2 89 	bl      ffc22dd0 <rtems_rfs_dir_add_entry>     
  if (rc > 0)                                                         
ffc25b4c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc25b50:	41 81 00 f8 	bgt-    ffc25c48 <rtems_rfs_link+0x1c0>        <== NEVER TAKEN
    rtems_rfs_inode_close (fs, &parent_inode);                        
    rtems_rfs_inode_close (fs, &target_inode);                        
    return rc;                                                        
  }                                                                   
                                                                      
  links = rtems_rfs_inode_get_links (&target_inode) + 1;              
ffc25b54:	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);                  
ffc25b58:	89 49 00 00 	lbz     r10,0(r9)                              
ffc25b5c:	89 09 00 01 	lbz     r8,1(r9)                               
ffc25b60:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc25b64:	7d 4a 43 78 	or      r10,r10,r8                             
  if (links == 0xffff)                                                
ffc25b68:	6d 48 ff ff 	xoris   r8,r10,65535                           
ffc25b6c:	2f 88 ff ff 	cmpwi   cr7,r8,-1                              
ffc25b70:	41 9e 01 44 	beq-    cr7,ffc25cb4 <rtems_rfs_link+0x22c>    <== NEVER TAKEN
ffc25b74:	39 4a 00 01 	addi    r10,r10,1                              
ffc25b78:	55 4a 04 3e 	clrlwi  r10,r10,16                             
ffc25b7c:	55 48 c2 3e 	rlwinm  r8,r10,24,8,31                         
ffc25b80:	55 4a 06 3e 	clrlwi  r10,r10,24                             
 * @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);                  
ffc25b84:	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);    
ffc25b88:	38 80 00 01 	li      r4,1                                   
ffc25b8c:	38 61 00 30 	addi    r3,r1,48                               
ffc25b90:	81 21 00 14 	lwz     r9,20(r1)                              
ffc25b94:	38 a0 00 01 	li      r5,1                                   
ffc25b98:	99 49 00 01 	stb     r10,1(r9)                              
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc25b9c:	39 20 00 01 	li      r9,1                                   
ffc25ba0:	99 21 00 18 	stb     r9,24(r1)                              
ffc25ba4:	4b ff 06 69 	bl      ffc1620c <rtems_rfs_inode_time_stamp_now>
  if (rc > 0)                                                         
ffc25ba8:	7c 7f 1b 79 	mr.     r31,r3                                 
  {                                                                   
    rtems_rfs_inode_close (fs, &parent_inode);                        
ffc25bac:	38 81 00 30 	addi    r4,r1,48                               
ffc25bb0:	7f c3 f3 78 	mr      r3,r30                                 
                                                                      
  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)                                                         
ffc25bb4:	40 81 00 e0 	ble-    ffc25c94 <rtems_rfs_link+0x20c>        <== ALWAYS TAKEN
  }                                                                   
                                                                      
  rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, target);
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_inode_close (fs, &parent_inode);                        
ffc25bb8:	4b ff 04 71 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
    rtems_rfs_inode_close (fs, &target_inode);                        
ffc25bbc:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc25bc0:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc25bc4:	4b ff 04 65 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &target_inode);                     
                                                                      
  return rc;                                                          
}                                                                     
ffc25bc8:	80 01 00 7c 	lwz     r0,124(r1)                             
ffc25bcc:	7f e3 fb 78 	mr      r3,r31                                 
ffc25bd0:	83 01 00 58 	lwz     r24,88(r1)                             
ffc25bd4:	7c 08 03 a6 	mtlr    r0                                     
ffc25bd8:	83 21 00 5c 	lwz     r25,92(r1)                             
ffc25bdc:	83 41 00 60 	lwz     r26,96(r1)                             
ffc25be0:	83 61 00 64 	lwz     r27,100(r1)                            
ffc25be4:	83 81 00 68 	lwz     r28,104(r1)                            
ffc25be8:	83 a1 00 6c 	lwz     r29,108(r1)                            
ffc25bec:	83 c1 00 70 	lwz     r30,112(r1)                            
ffc25bf0:	83 e1 00 74 	lwz     r31,116(r1)                            
ffc25bf4:	38 21 00 78 	addi    r1,r1,120                              
ffc25bf8:	4e 80 00 20 	blr                                            
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_LINK))                         
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: link: parent(%" PRIu32 ") -> ", parent);      
ffc25bfc:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc25c00:	38 63 e3 74 	addi    r3,r3,-7308                            <== NOT EXECUTED
ffc25c04:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc25c08:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc25c0c:	48 00 4e 8d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    for (c = 0; c < length; c++)                                      
ffc25c10:	2f 9b 00 00 	cmpwi   cr7,r27,0                              <== NOT EXECUTED
#include <rtems/rfs/rtems-rfs-dir.h>                                  
#include <rtems/rfs/rtems-rfs-dir-hash.h>                             
#include <rtems/rfs/rtems-rfs-link.h>                                 
                                                                      
int                                                                   
rtems_rfs_link (rtems_rfs_file_system* fs,                            
ffc25c14:	3b f8 ff ff 	addi    r31,r24,-1                             <== NOT EXECUTED
ffc25c18:	7f bf da 14 	add     r29,r31,r27                            <== 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++)                                      
ffc25c1c:	40 9d 00 14 	ble-    cr7,ffc25c30 <rtems_rfs_link+0x1a8>    <== NOT EXECUTED
      printf ("%c", name[c]);                                         
ffc25c20:	8c 7f 00 01 	lbzu    r3,1(r31)                              <== NOT EXECUTED
ffc25c24:	48 00 51 01 	bl      ffc2ad24 <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++)                                      
ffc25c28:	7f 9f e8 00 	cmpw    cr7,r31,r29                            <== NOT EXECUTED
ffc25c2c:	40 9e ff f4 	bne+    cr7,ffc25c20 <rtems_rfs_link+0x198>    <== NOT EXECUTED
      printf ("%c", name[c]);                                         
    printf ("(%" PRIu32 ")\n", target);                               
ffc25c30:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc25c34:	7f 84 e3 78 	mr      r4,r28                                 <== NOT EXECUTED
ffc25c38:	38 63 e3 bc 	addi    r3,r3,-7236                            <== NOT EXECUTED
ffc25c3c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc25c40:	48 00 4e 59 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc25c44:	4b ff fe 9c 	b       ffc25ae0 <rtems_rfs_link+0x58>         <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_dir_add_entry (fs, &parent_inode, name, length, target);
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_inode_close (fs, &parent_inode);                        
ffc25c48:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc25c4c:	38 81 00 30 	addi    r4,r1,48                               <== NOT EXECUTED
ffc25c50:	4b ff ff 68 	b       ffc25bb8 <rtems_rfs_link+0x130>        <== NOT EXECUTED
   * 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)))
  {                                                                   
    rtems_rfs_inode_close (fs, &target_inode);                        
ffc25c54:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc25c58:	4b ff 03 d1 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &target_inode);                     
                                                                      
  return rc;                                                          
}                                                                     
ffc25c5c:	80 01 00 7c 	lwz     r0,124(r1)                             <== NOT EXECUTED
   * return a not supported error code.                               
   */                                                                 
  if (!link_dir && S_ISDIR (rtems_rfs_inode_get_mode (&target_inode)))
  {                                                                   
    rtems_rfs_inode_close (fs, &target_inode);                        
    return ENOTSUP;                                                   
ffc25c60:	3b e0 00 86 	li      r31,134                                <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &target_inode);                     
                                                                      
  return rc;                                                          
}                                                                     
ffc25c64:	83 01 00 58 	lwz     r24,88(r1)                             <== NOT EXECUTED
ffc25c68:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc25c6c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc25c70:	83 21 00 5c 	lwz     r25,92(r1)                             <== NOT EXECUTED
ffc25c74:	83 41 00 60 	lwz     r26,96(r1)                             <== NOT EXECUTED
ffc25c78:	83 61 00 64 	lwz     r27,100(r1)                            <== NOT EXECUTED
ffc25c7c:	83 81 00 68 	lwz     r28,104(r1)                            <== NOT EXECUTED
ffc25c80:	83 a1 00 6c 	lwz     r29,108(r1)                            <== NOT EXECUTED
ffc25c84:	83 c1 00 70 	lwz     r30,112(r1)                            <== NOT EXECUTED
ffc25c88:	83 e1 00 74 	lwz     r31,116(r1)                            <== NOT EXECUTED
ffc25c8c:	38 21 00 78 	addi    r1,r1,120                              <== NOT EXECUTED
ffc25c90:	4e 80 00 20 	blr                                            <== 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);                     
ffc25c94:	4b ff 03 95 	bl      ffc16028 <rtems_rfs_inode_close>       
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_inode_close (fs, &target_inode);                        
ffc25c98:	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)                                                         
ffc25c9c:	7c 7f 1b 79 	mr.     r31,r3                                 
  {                                                                   
    rtems_rfs_inode_close (fs, &target_inode);                        
ffc25ca0:	7f c3 f3 78 	mr      r3,r30                                 
    rtems_rfs_inode_close (fs, &target_inode);                        
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &parent_inode);                     
  if (rc > 0)                                                         
ffc25ca4:	41 81 ff 20 	bgt+    ffc25bc4 <rtems_rfs_link+0x13c>        <== NEVER TAKEN
  {                                                                   
    rtems_rfs_inode_close (fs, &target_inode);                        
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &target_inode);                     
ffc25ca8:	4b ff 03 81 	bl      ffc16028 <rtems_rfs_inode_close>       
ffc25cac:	7c 7f 1b 78 	mr      r31,r3                                 
ffc25cb0:	4b ff ff 18 	b       ffc25bc8 <rtems_rfs_link+0x140>        
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);                  
  if (links == 0xffff)                                                
ffc25cb4:	39 40 00 01 	li      r10,1                                  <== NOT EXECUTED
ffc25cb8:	39 00 00 00 	li      r8,0                                   <== NOT EXECUTED
ffc25cbc:	4b ff fe c8 	b       ffc25b84 <rtems_rfs_link+0xfc>         <== NOT EXECUTED
                                                                      

ffc26660 <rtems_rfs_mutex_create>: RTEMS_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL) #endif int rtems_rfs_mutex_create (rtems_rfs_mutex* mutex) {
ffc26660:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc26664:	7c 08 02 a6 	mflr    r0                                     
ffc26668:	7c 67 1b 78 	mr      r7,r3                                  
#if __rtems__                                                         
  rtems_status_code sc;                                               
  sc = rtems_semaphore_create (rtems_build_name ('R', 'F', 'S', 'm'), 
ffc2666c:	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)                       
{                                                                     
ffc26670:	93 c1 00 08 	stw     r30,8(r1)                              
#if __rtems__                                                         
  rtems_status_code sc;                                               
  sc = rtems_semaphore_create (rtems_build_name ('R', 'F', 'S', 'm'), 
ffc26674:	60 63 53 6d 	ori     r3,r3,21357                            
ffc26678:	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)                       
{                                                                     
ffc2667c:	93 e1 00 0c 	stw     r31,12(r1)                             
#if __rtems__                                                         
  rtems_status_code sc;                                               
  sc = rtems_semaphore_create (rtems_build_name ('R', 'F', 'S', 'm'), 
ffc26680:	38 a0 00 54 	li      r5,84                                  
ffc26684:	38 c0 00 00 	li      r6,0                                   
   RTEMS_INHERIT_PRIORITY | RTEMS_NO_PRIORITY_CEILING | RTEMS_LOCAL)  
#endif                                                                
                                                                      
int                                                                   
rtems_rfs_mutex_create (rtems_rfs_mutex* mutex)                       
{                                                                     
ffc26688:	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'), 
ffc2668c:	4b fe 94 3d 	bl      ffc0fac8 <rtems_semaphore_create>      
      printf ("rtems-rfs: mutex: open failed: %s\n",                  
              rtems_status_text (sc));                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
ffc26690:	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)                                         
ffc26694:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc26698:	40 82 00 20 	bne-    ffc266b8 <rtems_rfs_mutex_create+0x58> <== NEVER TAKEN
              rtems_status_text (sc));                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
}                                                                     
ffc2669c:	80 01 00 14 	lwz     r0,20(r1)                              
ffc266a0:	7f e3 fb 78 	mr      r3,r31                                 
ffc266a4:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc266a8:	7c 08 03 a6 	mtlr    r0                                     
ffc266ac:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc266b0:	38 21 00 10 	addi    r1,r1,16                               
ffc266b4:	4e 80 00 20 	blr                                            
  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))                      
ffc266b8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc266bc:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc266c0:	4b ff 17 dd 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
      printf ("rtems-rfs: mutex: open failed: %s\n",                  
              rtems_status_text (sc));                                
    return EIO;                                                       
ffc266c4:	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))                      
ffc266c8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc266cc:	41 9e ff d0 	beq+    cr7,ffc2669c <rtems_rfs_mutex_create+0x3c><== NOT EXECUTED
      printf ("rtems-rfs: mutex: open failed: %s\n",                  
ffc266d0:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc266d4:	4b ff 5b 35 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc266d8:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc266dc:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc266e0:	38 63 e5 a4 	addi    r3,r3,-6748                            <== NOT EXECUTED
ffc266e4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc266e8:	48 00 43 b1 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
              rtems_status_text (sc));                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
}                                                                     
ffc266ec:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
ffc266f0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc266f4:	83 c1 00 08 	lwz     r30,8(r1)                              <== NOT EXECUTED
ffc266f8:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc266fc:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc26700:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc26704:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc26708 <rtems_rfs_mutex_destroy>: int rtems_rfs_mutex_destroy (rtems_rfs_mutex* mutex) {
ffc26708:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc2670c:	7c 08 02 a6 	mflr    r0                                     
ffc26710:	90 01 00 14 	stw     r0,20(r1)                              
#if __rtems__                                                         
  rtems_status_code sc;                                               
  sc = rtems_semaphore_delete (*mutex);                               
ffc26714:	80 63 00 00 	lwz     r3,0(r3)                               
  return 0;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_rfs_mutex_destroy (rtems_rfs_mutex* mutex)                      
{                                                                     
ffc26718:	93 c1 00 08 	stw     r30,8(r1)                              
ffc2671c:	93 e1 00 0c 	stw     r31,12(r1)                             
#if __rtems__                                                         
  rtems_status_code sc;                                               
  sc = rtems_semaphore_delete (*mutex);                               
ffc26720:	4b fe 95 c9 	bl      ffc0fce8 <rtems_semaphore_delete>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc26724:	7c 7e 1b 79 	mr.     r30,r3                                 
      printf ("rtems-rfs: mutex: close failed: %s\n",                 
              rtems_status_text (sc));                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
ffc26728:	3b e0 00 00 	li      r31,0                                  
rtems_rfs_mutex_destroy (rtems_rfs_mutex* mutex)                      
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc;                                               
  sc = rtems_semaphore_delete (*mutex);                               
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc2672c:	40 82 00 20 	bne-    ffc2674c <rtems_rfs_mutex_destroy+0x44><== NEVER TAKEN
              rtems_status_text (sc));                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
}                                                                     
ffc26730:	80 01 00 14 	lwz     r0,20(r1)                              
ffc26734:	7f e3 fb 78 	mr      r3,r31                                 
ffc26738:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc2673c:	7c 08 03 a6 	mtlr    r0                                     
ffc26740:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc26744:	38 21 00 10 	addi    r1,r1,16                               
ffc26748:	4e 80 00 20 	blr                                            
#if __rtems__                                                         
  rtems_status_code sc;                                               
  sc = rtems_semaphore_delete (*mutex);                               
  if (sc != RTEMS_SUCCESSFUL)                                         
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc2674c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc26750:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc26754:	4b ff 17 49 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
      printf ("rtems-rfs: mutex: close failed: %s\n",                 
              rtems_status_text (sc));                                
    return EIO;                                                       
ffc26758:	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))                      
ffc2675c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc26760:	41 9e ff d0 	beq+    cr7,ffc26730 <rtems_rfs_mutex_destroy+0x28><== NOT EXECUTED
      printf ("rtems-rfs: mutex: close failed: %s\n",                 
ffc26764:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc26768:	4b ff 5a a1 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc2676c:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc26770:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc26774:	38 63 e5 c8 	addi    r3,r3,-6712                            <== NOT EXECUTED
ffc26778:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2677c:	48 00 43 1d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
              rtems_status_text (sc));                                
    return EIO;                                                       
  }                                                                   
#endif                                                                
  return 0;                                                           
}                                                                     
ffc26780:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
ffc26784:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc26788:	83 c1 00 08 	lwz     r30,8(r1)                              <== NOT EXECUTED
ffc2678c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc26790:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc26794:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc26798:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc21aac <rtems_rfs_release_chain>: static int rtems_rfs_release_chain (rtems_chain_control* chain, uint32_t* count, bool modified) {
ffc21aac:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc21ab0:	7c 08 02 a6 	mflr    r0                                     
ffc21ab4:	93 c1 00 18 	stw     r30,24(r1)                             
ffc21ab8:	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))                
ffc21abc:	38 80 00 80 	li      r4,128                                 
                                                                      
static int                                                            
rtems_rfs_release_chain (rtems_chain_control* chain,                  
                         uint32_t*            count,                  
                         bool                 modified)               
{                                                                     
ffc21ac0:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc21ac4:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_rfs_buffer* buffer;                                           
  int               rrc = 0;                                          
  int               rc;                                               
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
ffc21ac8:	38 60 00 00 	li      r3,0                                   
                                                                      
static int                                                            
rtems_rfs_release_chain (rtems_chain_control* chain,                  
                         uint32_t*            count,                  
                         bool                 modified)               
{                                                                     
ffc21acc:	93 41 00 08 	stw     r26,8(r1)                              
ffc21ad0:	7c ba 2b 78 	mr      r26,r5                                 
ffc21ad4:	90 01 00 24 	stw     r0,36(r1)                              
ffc21ad8:	93 61 00 0c 	stw     r27,12(r1)                             
ffc21adc:	93 81 00 10 	stw     r28,16(r1)                             
ffc21ae0:	93 a1 00 14 	stw     r29,20(r1)                             
  rtems_rfs_buffer* buffer;                                           
  int               rrc = 0;                                          
  int               rc;                                               
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
ffc21ae4:	4b ff 63 b9 	bl      ffc17e9c <rtems_rfs_trace>             
ffc21ae8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc21aec:	40 9e 00 8c 	bne-    cr7,ffc21b78 <rtems_rfs_release_chain+0xcc><== NEVER TAKEN
    (*count)--;                                                       
                                                                      
    buffer->user = (void*) 0;                                         
                                                                      
    rc = rtems_rfs_buffer_io_release (buffer, modified);              
    if ((rc > 0) && (rrc == 0))                                       
ffc21af0:	3b a0 00 00 	li      r29,0                                  
ffc21af4:	3b 9f 00 04 	addi    r28,r31,4                              
  while (!rtems_chain_is_empty (chain))                               
  {                                                                   
    buffer = (rtems_rfs_buffer*) rtems_chain_get (chain);             
    (*count)--;                                                       
                                                                      
    buffer->user = (void*) 0;                                         
ffc21af8:	3b 60 00 00 	li      r27,0                                  
  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))                               
ffc21afc:	81 3f 00 00 	lwz     r9,0(r31)                              
 */                                                                   
RTEMS_INLINE_ROUTINE rtems_chain_node *rtems_chain_get(               
  rtems_chain_control *the_chain                                      
)                                                                     
{                                                                     
  return _Chain_Get( the_chain );                                     
ffc21b00:	7f e3 fb 78 	mr      r3,r31                                 
ffc21b04:	7f 89 e0 00 	cmpw    cr7,r9,r28                             
ffc21b08:	41 9e 00 44 	beq-    cr7,ffc21b4c <rtems_rfs_release_chain+0xa0>
ffc21b0c:	4b fe f0 95 	bl      ffc10ba0 <_Chain_Get>                  
  {                                                                   
    buffer = (rtems_rfs_buffer*) rtems_chain_get (chain);             
    (*count)--;                                                       
ffc21b10:	81 3e 00 00 	lwz     r9,0(r30)                              
                                                                      
    buffer->user = (void*) 0;                                         
                                                                      
    rc = rtems_rfs_buffer_io_release (buffer, modified);              
ffc21b14:	7f 44 d3 78 	mr      r4,r26                                 
    printf ("rtems-rfs: release-chain: count=%" PRIu32 "\n", *count); 
                                                                      
  while (!rtems_chain_is_empty (chain))                               
  {                                                                   
    buffer = (rtems_rfs_buffer*) rtems_chain_get (chain);             
    (*count)--;                                                       
ffc21b18:	39 29 ff ff 	addi    r9,r9,-1                               
ffc21b1c:	91 3e 00 00 	stw     r9,0(r30)                              
                                                                      
    buffer->user = (void*) 0;                                         
ffc21b20:	93 63 00 34 	stw     r27,52(r3)                             
                                                                      
    rc = rtems_rfs_buffer_io_release (buffer, modified);              
ffc21b24:	48 00 70 39 	bl      ffc28b5c <rtems_rfs_buffer_bdbuf_release>
    if ((rc > 0) && (rrc == 0))                                       
ffc21b28:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc21b2c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc21b30:	40 a1 ff cc 	ble-    ffc21afc <rtems_rfs_release_chain+0x50><== ALWAYS TAKEN
ffc21b34:	40 be ff c8 	bne-    cr7,ffc21afc <rtems_rfs_release_chain+0x50><== 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))                               
ffc21b38:	81 3f 00 00 	lwz     r9,0(r31)                              <== NOT EXECUTED
    (*count)--;                                                       
                                                                      
    buffer->user = (void*) 0;                                         
                                                                      
    rc = rtems_rfs_buffer_io_release (buffer, modified);              
    if ((rc > 0) && (rrc == 0))                                       
ffc21b3c:	7c 7d 1b 78 	mr      r29,r3                                 <== NOT EXECUTED
ffc21b40:	7f e3 fb 78 	mr      r3,r31                                 <== 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))                               
ffc21b44:	7f 89 e0 00 	cmpw    cr7,r9,r28                             <== NOT EXECUTED
ffc21b48:	40 9e ff c4 	bne+    cr7,ffc21b0c <rtems_rfs_release_chain+0x60><== NOT EXECUTED
    rc = rtems_rfs_buffer_io_release (buffer, modified);              
    if ((rc > 0) && (rrc == 0))                                       
      rrc = rc;                                                       
  }                                                                   
  return rrc;                                                         
}                                                                     
ffc21b4c:	80 01 00 24 	lwz     r0,36(r1)                              
ffc21b50:	7f a3 eb 78 	mr      r3,r29                                 
ffc21b54:	83 41 00 08 	lwz     r26,8(r1)                              
ffc21b58:	7c 08 03 a6 	mtlr    r0                                     
ffc21b5c:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc21b60:	83 81 00 10 	lwz     r28,16(r1)                             
ffc21b64:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc21b68:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc21b6c:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc21b70:	38 21 00 20 	addi    r1,r1,32                               
ffc21b74:	4e 80 00 20 	blr                                            
  rtems_rfs_buffer* buffer;                                           
  int               rrc = 0;                                          
  int               rc;                                               
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
    printf ("rtems-rfs: release-chain: count=%" PRIu32 "\n", *count); 
ffc21b78:	80 9e 00 00 	lwz     r4,0(r30)                              <== NOT EXECUTED
ffc21b7c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc21b80:	38 63 d1 1c 	addi    r3,r3,-12004                           <== NOT EXECUTED
ffc21b84:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc21b88:	48 00 8f 11 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc21b8c:	4b ff ff 64 	b       ffc21af0 <rtems_rfs_release_chain+0x44><== NOT EXECUTED
                                                                      

ffc16d5c <rtems_rfs_rtems_chown>: static int rtems_rfs_rtems_chown (const rtems_filesystem_location_info_t *pathloc, uid_t owner, gid_t group) {
ffc16d5c:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc16d60:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  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);                  
ffc16d64:	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) 
{                                                                     
ffc16d68:	90 01 00 4c 	stw     r0,76(r1)                              
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
ffc16d6c:	81 23 00 14 	lwz     r9,20(r3)                              
                                                                      
static int                                                            
rtems_rfs_rtems_chown (const rtems_filesystem_location_info_t *pathloc,
                       uid_t                                   owner, 
                       gid_t                                   group) 
{                                                                     
ffc16d70:	93 e1 00 44 	stw     r31,68(r1)                             
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
ffc16d74:	83 e9 00 08 	lwz     r31,8(r9)                              
                                                                      
static int                                                            
rtems_rfs_rtems_chown (const rtems_filesystem_location_info_t *pathloc,
                       uid_t                                   owner, 
                       gid_t                                   group) 
{                                                                     
ffc16d78:	93 a1 00 3c 	stw     r29,60(r1)                             
ffc16d7c:	7c 9d 23 78 	mr      r29,r4                                 
                                                                      
  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);                  
ffc16d80:	80 83 00 08 	lwz     r4,8(r3)                               
ffc16d84:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
static int                                                            
rtems_rfs_rtems_chown (const rtems_filesystem_location_info_t *pathloc,
                       uid_t                                   owner, 
                       gid_t                                   group) 
{                                                                     
ffc16d88:	93 81 00 38 	stw     r28,56(r1)                             
ffc16d8c:	7c bc 2b 78 	mr      r28,r5                                 
                                                                      
  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);                  
ffc16d90:	38 a1 00 08 	addi    r5,r1,8                                
                                                                      
static int                                                            
rtems_rfs_rtems_chown (const rtems_filesystem_location_info_t *pathloc,
                       uid_t                                   owner, 
                       gid_t                                   group) 
{                                                                     
ffc16d94:	93 c1 00 40 	stw     r30,64(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);                  
ffc16d98:	4b ff f0 15 	bl      ffc15dac <rtems_rfs_inode_open>        
  if (rc > 0)                                                         
ffc16d9c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc16da0:	40 81 00 30 	ble-    ffc16dd0 <rtems_rfs_rtems_chown+0x74>  <== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("chown: opening inode", rc);        
ffc16da4:	48 01 22 55 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc16da8:	93 c3 00 00 	stw     r30,0(r3)                              <== NOT EXECUTED
ffc16dac:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("chown: closing inode", rc);        
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc16db0:	80 01 00 4c 	lwz     r0,76(r1)                              
ffc16db4:	83 81 00 38 	lwz     r28,56(r1)                             
ffc16db8:	7c 08 03 a6 	mtlr    r0                                     
ffc16dbc:	83 a1 00 3c 	lwz     r29,60(r1)                             
ffc16dc0:	83 c1 00 40 	lwz     r30,64(r1)                             
ffc16dc4:	83 e1 00 44 	lwz     r31,68(r1)                             
ffc16dc8:	38 21 00 48 	addi    r1,r1,72                               
ffc16dcc:	4e 80 00 20 	blr                                            
  /*                                                                  
   *  Verify I am the owner of the node or the super user.            
   */                                                                 
                                                                      
#if defined (RTEMS_POSIX_API)                                         
  uid = geteuid();                                                    
ffc16dd0:	48 00 58 81 	bl      ffc1c650 <geteuid>                     
                                                                      
  if ((uid != rtems_rfs_inode_get_uid (&inode)) && (uid != 0))        
ffc16dd4:	81 21 00 14 	lwz     r9,20(r1)                              
 * @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;          
ffc16dd8:	89 49 00 06 	lbz     r10,6(r9)                              
ffc16ddc:	89 09 00 07 	lbz     r8,7(r9)                               
ffc16de0:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc16de4:	7d 4a 43 78 	or      r10,r10,r8                             
ffc16de8:	55 4a 04 3e 	clrlwi  r10,r10,16                             
ffc16dec:	7f 83 50 00 	cmpw    cr7,r3,r10                             
ffc16df0:	41 9e 00 0c 	beq-    cr7,ffc16dfc <rtems_rfs_rtems_chown+0xa0><== ALWAYS TAKEN
ffc16df4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc16df8:	40 9e 00 80 	bne-    cr7,ffc16e78 <rtems_rfs_rtems_chown+0x11c><== 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);
ffc16dfc:	57 9c 80 1e 	rlwinm  r28,r28,16,0,15                        
ffc16e00:	7f 9c eb 78 	or      r28,r28,r29                            
ffc16e04:	57 8a 46 3e 	rlwinm  r10,r28,8,24,31                        
ffc16e08:	99 49 00 04 	stb     r10,4(r9)                              
ffc16e0c:	57 8a 84 3e 	rlwinm  r10,r28,16,16,31                       
ffc16e10:	57 9c c2 3e 	rlwinm  r28,r28,24,8,31                        
ffc16e14:	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);                            
ffc16e18:	7f e3 fb 78 	mr      r3,r31                                 
ffc16e1c:	38 81 00 08 	addi    r4,r1,8                                
ffc16e20:	99 49 00 05 	stb     r10,5(r9)                              
ffc16e24:	81 21 00 14 	lwz     r9,20(r1)                              
ffc16e28:	9b 89 00 06 	stb     r28,6(r9)                              
ffc16e2c:	81 21 00 14 	lwz     r9,20(r1)                              
ffc16e30:	9b a9 00 07 	stb     r29,7(r9)                              
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc16e34:	39 20 00 01 	li      r9,1                                   
ffc16e38:	99 21 00 18 	stb     r9,24(r1)                              
ffc16e3c:	4b ff f1 ed 	bl      ffc16028 <rtems_rfs_inode_close>       
  if (rc)                                                             
ffc16e40:	7c 7f 1b 79 	mr.     r31,r3                                 
  {                                                                   
    return rtems_rfs_rtems_error ("chown: closing inode", rc);        
  }                                                                   
                                                                      
  return 0;                                                           
ffc16e44:	38 60 00 00 	li      r3,0                                   
#endif                                                                
                                                                      
  rtems_rfs_inode_set_uid_gid (&inode, owner, group);                 
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
  if (rc)                                                             
ffc16e48:	41 82 ff 68 	beq+    ffc16db0 <rtems_rfs_rtems_chown+0x54>  <== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("chown: closing inode", rc);        
ffc16e4c:	48 01 21 ad 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc16e50:	80 01 00 4c 	lwz     r0,76(r1)                              <== NOT EXECUTED
  rtems_rfs_inode_set_uid_gid (&inode, owner, group);                 
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("chown: closing inode", rc);        
ffc16e54:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc16e58:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc16e5c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc16e60:	83 81 00 38 	lwz     r28,56(r1)                             <== NOT EXECUTED
ffc16e64:	83 a1 00 3c 	lwz     r29,60(r1)                             <== NOT EXECUTED
ffc16e68:	83 c1 00 40 	lwz     r30,64(r1)                             <== NOT EXECUTED
ffc16e6c:	83 e1 00 44 	lwz     r31,68(r1)                             <== NOT EXECUTED
ffc16e70:	38 21 00 48 	addi    r1,r1,72                               <== NOT EXECUTED
ffc16e74:	4e 80 00 20 	blr                                            <== NOT EXECUTED
#if defined (RTEMS_POSIX_API)                                         
  uid = geteuid();                                                    
                                                                      
  if ((uid != rtems_rfs_inode_get_uid (&inode)) && (uid != 0))        
  {                                                                   
    rtems_rfs_inode_close (fs, &inode);                               
ffc16e78:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc16e7c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc16e80:	4b ff f1 a9 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
    return rtems_rfs_rtems_error ("chown: not able", EPERM);          
ffc16e84:	48 01 21 75 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc16e88:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc16e8c:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc16e90:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc16e94:	4b ff ff 1c 	b       ffc16db0 <rtems_rfs_rtems_chown+0x54>  <== NOT EXECUTED
                                                                      

ffc267c8 <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);
ffc267c8:	80 83 00 2c 	lwz     r4,44(r3)                              <== NOT EXECUTED
ffc267cc:	80 a3 00 30 	lwz     r5,48(r3)                              <== NOT EXECUTED
ffc267d0:	48 00 19 0c 	b       ffc280dc <rtems_deviceio_close>        <== NOT EXECUTED
                                                                      

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

ffc267a4 <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);
ffc267a4:	80 c3 00 2c 	lwz     r6,44(r3)                              <== NOT EXECUTED
ffc267a8:	80 e3 00 30 	lwz     r7,48(r3)                              <== NOT EXECUTED
ffc267ac:	48 00 1a c0 	b       ffc2826c <rtems_deviceio_control>      <== NOT EXECUTED
                                                                      

ffc267d4 <rtems_rfs_rtems_device_open>: static int rtems_rfs_rtems_device_open ( rtems_libio_t *iop, const char *pathname, int oflag, mode_t mode) {
ffc267d4:	94 21 ff 90 	stwu    r1,-112(r1)                            <== NOT EXECUTED
ffc267d8:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc267dc:	90 01 00 74 	stw     r0,116(r1)                             <== NOT EXECUTED
  rtems_rfs_file_system*        fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
ffc267e0:	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)                    
{                                                                     
ffc267e4:	93 e1 00 6c 	stw     r31,108(r1)                            <== NOT EXECUTED
  rtems_rfs_file_system*        fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
ffc267e8:	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)                    
{                                                                     
ffc267ec:	93 c1 00 68 	stw     r30,104(r1)                            <== NOT EXECUTED
ffc267f0:	7c 7e 1b 78 	mr      r30,r3                                 <== 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                       
};                                                                    
ffc267f4:	81 3f 00 80 	lwz     r9,128(r31)                            <== NOT EXECUTED
static int                                                            
rtems_rfs_rtems_device_open ( rtems_libio_t *iop,                     
                              const char    *pathname,                
                              int            oflag,                   
                              mode_t         mode)                    
{                                                                     
ffc267f8:	93 21 00 54 	stw     r25,84(r1)                             <== NOT EXECUTED
ffc267fc:	7c 99 23 78 	mr      r25,r4                                 <== 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);
ffc26800:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc26804:	80 69 00 00 	lwz     r3,0(r9)                               <== NOT EXECUTED
ffc26808:	93 41 00 58 	stw     r26,88(r1)                             <== NOT EXECUTED
ffc2680c:	7c ba 2b 78 	mr      r26,r5                                 <== NOT EXECUTED
ffc26810:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc26814:	93 61 00 5c 	stw     r27,92(r1)                             <== NOT EXECUTED
ffc26818:	7c db 33 78 	mr      r27,r6                                 <== NOT EXECUTED
ffc2681c:	93 81 00 60 	stw     r28,96(r1)                             <== NOT EXECUTED
ffc26820:	93 a1 00 64 	stw     r29,100(r1)                            <== NOT EXECUTED
ffc26824:	92 41 00 38 	stw     r18,56(r1)                             <== NOT EXECUTED
ffc26828:	92 61 00 3c 	stw     r19,60(r1)                             <== NOT EXECUTED
ffc2682c:	92 81 00 40 	stw     r20,64(r1)                             <== NOT EXECUTED
ffc26830:	92 a1 00 44 	stw     r21,68(r1)                             <== NOT EXECUTED
ffc26834:	92 c1 00 48 	stw     r22,72(r1)                             <== NOT EXECUTED
ffc26838:	92 e1 00 4c 	stw     r23,76(r1)                             <== NOT EXECUTED
ffc2683c:	93 01 00 50 	stw     r24,80(r1)                             <== 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);
ffc26840:	83 be 00 1c 	lwz     r29,28(r30)                            <== NOT EXECUTED
ffc26844:	4b fe 95 99 	bl      ffc0fddc <rtems_semaphore_obtain>      <== NOT EXECUTED
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc26848:	7c 7c 1b 79 	mr.     r28,r3                                 <== NOT EXECUTED
ffc2684c:	40 82 00 90 	bne-    ffc268dc <rtems_rfs_rtems_device_open+0x108><== NOT EXECUTED
  rtems_device_minor_number     minor;                                
  int                           rc;                                   
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
ffc26850:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc26854:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc26858:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc2685c:	38 c0 00 01 	li      r6,1                                   <== NOT EXECUTED
ffc26860:	4b fe f5 4d 	bl      ffc15dac <rtems_rfs_inode_open>        <== NOT EXECUTED
  if (rc > 0)                                                         
ffc26864:	7c 7d 1b 79 	mr.     r29,r3                                 <== NOT EXECUTED
ffc26868:	40 81 00 c0 	ble-    ffc26928 <rtems_rfs_rtems_device_open+0x154><== NOT EXECUTED
 * 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);            
ffc2686c:	83 df 00 80 	lwz     r30,128(r31)                           <== NOT EXECUTED
  rtems_rfs_buffers_release (fs);                                     
ffc26870:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc26874:	4b ff bc 75 	bl      ffc224e8 <rtems_rfs_buffers_release>   <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)                       
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_release (*mutex);            
ffc26878:	80 7e 00 00 	lwz     r3,0(r30)                              <== NOT EXECUTED
ffc2687c:	4b fe 97 01 	bl      ffc0ff7c <rtems_semaphore_release>     <== NOT EXECUTED
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc26880:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc26884:	40 82 01 48 	bne-    ffc269cc <rtems_rfs_rtems_device_open+0x1f8><== NOT EXECUTED
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
    return rtems_rfs_rtems_error ("device_open: closing inode", rc);  
ffc26888:	48 00 27 71 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc2688c:	93 a3 00 00 	stw     r29,0(r3)                              <== NOT EXECUTED
ffc26890:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
                                                                      
  iop->data0 = major;                                                 
  iop->data1 = (void *) minor;                                        
                                                                      
  return rtems_deviceio_open (iop, pathname, oflag, mode, minor, major);
}                                                                     
ffc26894:	80 01 00 74 	lwz     r0,116(r1)                             <== NOT EXECUTED
ffc26898:	82 41 00 38 	lwz     r18,56(r1)                             <== NOT EXECUTED
ffc2689c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc268a0:	82 61 00 3c 	lwz     r19,60(r1)                             <== NOT EXECUTED
ffc268a4:	82 81 00 40 	lwz     r20,64(r1)                             <== NOT EXECUTED
ffc268a8:	82 a1 00 44 	lwz     r21,68(r1)                             <== NOT EXECUTED
ffc268ac:	82 c1 00 48 	lwz     r22,72(r1)                             <== NOT EXECUTED
ffc268b0:	82 e1 00 4c 	lwz     r23,76(r1)                             <== NOT EXECUTED
ffc268b4:	83 01 00 50 	lwz     r24,80(r1)                             <== NOT EXECUTED
ffc268b8:	83 21 00 54 	lwz     r25,84(r1)                             <== NOT EXECUTED
ffc268bc:	83 41 00 58 	lwz     r26,88(r1)                             <== NOT EXECUTED
ffc268c0:	83 61 00 5c 	lwz     r27,92(r1)                             <== NOT EXECUTED
ffc268c4:	83 81 00 60 	lwz     r28,96(r1)                             <== NOT EXECUTED
ffc268c8:	83 a1 00 64 	lwz     r29,100(r1)                            <== NOT EXECUTED
ffc268cc:	83 c1 00 68 	lwz     r30,104(r1)                            <== NOT EXECUTED
ffc268d0:	83 e1 00 6c 	lwz     r31,108(r1)                            <== NOT EXECUTED
ffc268d4:	38 21 00 70 	addi    r1,r1,112                              <== NOT EXECUTED
ffc268d8:	4e 80 00 20 	blr                                            <== 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))                      
ffc268dc:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc268e0:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc268e4:	4b ff 15 b9 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc268e8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc268ec:	41 9e ff 64 	beq+    cr7,ffc26850 <rtems_rfs_rtems_device_open+0x7c><== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
ffc268f0:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc268f4:	4b ff 59 15 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc268f8:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc268fc:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc26900:	38 63 c4 10 	addi    r3,r3,-15344                           <== NOT EXECUTED
ffc26904:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc26908:	48 00 41 91 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
  rtems_device_minor_number     minor;                                
  int                           rc;                                   
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
ffc2690c:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc26910:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc26914:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc26918:	38 c0 00 01 	li      r6,1                                   <== NOT EXECUTED
ffc2691c:	4b fe f4 91 	bl      ffc15dac <rtems_rfs_inode_open>        <== NOT EXECUTED
  if (rc > 0)                                                         
ffc26920:	7c 7d 1b 79 	mr.     r29,r3                                 <== NOT EXECUTED
ffc26924:	41 81 ff 48 	bgt+    ffc2686c <rtems_rfs_rtems_device_open+0x98><== 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);                      
ffc26928:	81 21 00 14 	lwz     r9,20(r1)                              <== NOT EXECUTED
  minor = rtems_rfs_inode_get_block (&inode, 1);                      
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc2692c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc26930:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
 * @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]);      
ffc26934:	8a 49 00 1c 	lbz     r18,28(r9)                             <== NOT EXECUTED
ffc26938:	8a 69 00 1d 	lbz     r19,29(r9)                             <== NOT EXECUTED
ffc2693c:	8b 09 00 1e 	lbz     r24,30(r9)                             <== NOT EXECUTED
ffc26940:	8a c9 00 1f 	lbz     r22,31(r9)                             <== NOT EXECUTED
ffc26944:	8a 89 00 20 	lbz     r20,32(r9)                             <== NOT EXECUTED
ffc26948:	8a a9 00 21 	lbz     r21,33(r9)                             <== NOT EXECUTED
ffc2694c:	8b 89 00 22 	lbz     r28,34(r9)                             <== NOT EXECUTED
ffc26950:	8a e9 00 23 	lbz     r23,35(r9)                             <== NOT EXECUTED
ffc26954:	4b fe f6 d5 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
  if (rc > 0)                                                         
ffc26958:	7c 7d 1b 79 	mr.     r29,r3                                 <== NOT EXECUTED
ffc2695c:	41 81 ff 10 	bgt+    ffc2686c <rtems_rfs_rtems_device_open+0x98><== NOT EXECUTED
 * 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);            
ffc26960:	83 bf 00 80 	lwz     r29,128(r31)                           <== NOT EXECUTED
  rtems_rfs_buffers_release (fs);                                     
ffc26964:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc26968:	4b ff bb 81 	bl      ffc224e8 <rtems_rfs_buffers_release>   <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)                       
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_release (*mutex);            
ffc2696c:	80 7d 00 00 	lwz     r3,0(r29)                              <== NOT EXECUTED
ffc26970:	4b fe 96 0d 	bl      ffc0ff7c <rtems_semaphore_release>     <== NOT EXECUTED
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc26974:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc26978:	40 82 00 88 	bne-    ffc26a00 <rtems_rfs_rtems_device_open+0x22c><== NOT EXECUTED
ffc2697c:	56 48 c0 0e 	rlwinm  r8,r18,24,0,7                          <== NOT EXECUTED
ffc26980:	56 73 80 1e 	rlwinm  r19,r19,16,0,15                        <== NOT EXECUTED
ffc26984:	56 87 c0 0e 	rlwinm  r7,r20,24,0,7                          <== NOT EXECUTED
ffc26988:	56 b5 80 1e 	rlwinm  r21,r21,16,0,15                        <== NOT EXECUTED
ffc2698c:	7d 08 9b 78 	or      r8,r8,r19                              <== NOT EXECUTED
ffc26990:	7c e7 ab 78 	or      r7,r7,r21                              <== NOT EXECUTED
ffc26994:	7d 16 b3 78 	or      r22,r8,r22                             <== NOT EXECUTED
ffc26998:	7c f7 bb 78 	or      r23,r7,r23                             <== NOT EXECUTED
ffc2699c:	57 18 40 2e 	rlwinm  r24,r24,8,0,23                         <== NOT EXECUTED
ffc269a0:	57 9c 40 2e 	rlwinm  r28,r28,8,0,23                         <== NOT EXECUTED
ffc269a4:	7e c8 c3 78 	or      r8,r22,r24                             <== NOT EXECUTED
ffc269a8:	7e e7 e3 78 	or      r7,r23,r28                             <== NOT EXECUTED
    return rtems_rfs_rtems_error ("device_open: closing inode", rc);  
  }                                                                   
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
                                                                      
  iop->data0 = major;                                                 
ffc269ac:	91 1e 00 2c 	stw     r8,44(r30)                             <== NOT EXECUTED
  iop->data1 = (void *) minor;                                        
                                                                      
  return rtems_deviceio_open (iop, pathname, oflag, mode, minor, major);
ffc269b0:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
                                                                      
  iop->data0 = major;                                                 
  iop->data1 = (void *) minor;                                        
ffc269b4:	90 fe 00 30 	stw     r7,48(r30)                             <== NOT EXECUTED
                                                                      
  return rtems_deviceio_open (iop, pathname, oflag, mode, minor, major);
ffc269b8:	7f 24 cb 78 	mr      r4,r25                                 <== NOT EXECUTED
ffc269bc:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc269c0:	7f 66 db 78 	mr      r6,r27                                 <== NOT EXECUTED
ffc269c4:	48 00 16 d5 	bl      ffc28098 <rtems_deviceio_open>         <== NOT EXECUTED
ffc269c8:	4b ff fe cc 	b       ffc26894 <rtems_rfs_rtems_device_open+0xc0><== NOT EXECUTED
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc269cc:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc269d0:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc269d4:	4b ff 14 c9 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc269d8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc269dc:	41 9e fe ac 	beq+    cr7,ffc26888 <rtems_rfs_rtems_device_open+0xb4><== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
ffc269e0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc269e4:	4b ff 58 25 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc269e8:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc269ec:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc269f0:	38 63 c3 ac 	addi    r3,r3,-15444                           <== NOT EXECUTED
ffc269f4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc269f8:	48 00 40 a1 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc269fc:	4b ff fe 8c 	b       ffc26888 <rtems_rfs_rtems_device_open+0xb4><== 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))                      
ffc26a00:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc26a04:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc26a08:	4b ff 14 95 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc26a0c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc26a10:	41 9e ff 6c 	beq+    cr7,ffc2697c <rtems_rfs_rtems_device_open+0x1a8><== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
ffc26a14:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc26a18:	4b ff 57 f1 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc26a1c:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc26a20:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc26a24:	38 63 c3 ac 	addi    r3,r3,-15444                           <== NOT EXECUTED
ffc26a28:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc26a2c:	48 00 40 6d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc26a30:	4b ff ff 4c 	b       ffc2697c <rtems_rfs_rtems_device_open+0x1a8><== NOT EXECUTED
                                                                      

ffc267bc <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);
ffc267bc:	80 c3 00 2c 	lwz     r6,44(r3)                              <== NOT EXECUTED
ffc267c0:	80 e3 00 30 	lwz     r7,48(r3)                              <== NOT EXECUTED
ffc267c4:	48 00 19 58 	b       ffc2811c <rtems_deviceio_read>         <== NOT EXECUTED
                                                                      

ffc267b0 <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);
ffc267b0:	80 c3 00 2c 	lwz     r6,44(r3)                              <== NOT EXECUTED
ffc267b4:	80 e3 00 30 	lwz     r7,48(r3)                              <== NOT EXECUTED
ffc267b8:	48 00 1a 0c 	b       ffc281c4 <rtems_deviceio_write>        <== NOT EXECUTED
                                                                      

ffc26cf4 <rtems_rfs_rtems_dir_open>: static int rtems_rfs_rtems_dir_open (rtems_libio_t* iop, const char* pathname, int oflag, mode_t mode) {
ffc26cf4:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc26cf8:	7c 08 02 a6 	mflr    r0                                     
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)                         
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
ffc26cfc:	38 80 00 00 	li      r4,0                                   
ffc26d00:	90 01 00 4c 	stw     r0,76(r1)                              
ffc26d04:	38 a0 00 00 	li      r5,0                                   
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
ffc26d08:	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)                        
{                                                                     
ffc26d0c:	93 e1 00 44 	stw     r31,68(r1)                             
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
ffc26d10:	83 e9 00 08 	lwz     r31,8(r9)                              
static int                                                            
rtems_rfs_rtems_dir_open (rtems_libio_t* iop,                         
                          const char*    pathname,                    
                          int            oflag,                       
                          mode_t         mode)                        
{                                                                     
ffc26d14:	93 a1 00 3c 	stw     r29,60(r1)                             
  .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                       
};                                                                    
ffc26d18:	81 3f 00 80 	lwz     r9,128(r31)                            
static int                                                            
rtems_rfs_rtems_dir_open (rtems_libio_t* iop,                         
                          const char*    pathname,                    
                          int            oflag,                       
                          mode_t         mode)                        
{                                                                     
ffc26d1c:	93 c1 00 40 	stw     r30,64(r1)                             
ffc26d20:	7c 7e 1b 78 	mr      r30,r3                                 
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
  rtems_rfs_ino          ino = rtems_rfs_rtems_get_iop_ino (iop);     
ffc26d24:	83 a3 00 1c 	lwz     r29,28(r3)                             
ffc26d28:	80 69 00 00 	lwz     r3,0(r9)                               
static int                                                            
rtems_rfs_rtems_dir_open (rtems_libio_t* iop,                         
                          const char*    pathname,                    
                          int            oflag,                       
                          mode_t         mode)                        
{                                                                     
ffc26d2c:	93 81 00 38 	stw     r28,56(r1)                             
ffc26d30:	4b fe 90 ad 	bl      ffc0fddc <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc26d34:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc26d38:	40 82 00 c4 	bne-    ffc26dfc <rtems_rfs_rtems_dir_open+0x108><== NEVER TAKEN
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
ffc26d3c:	7f a4 eb 78 	mr      r4,r29                                 
ffc26d40:	7f e3 fb 78 	mr      r3,r31                                 
ffc26d44:	38 a1 00 08 	addi    r5,r1,8                                
ffc26d48:	38 c0 00 01 	li      r6,1                                   
ffc26d4c:	4b fe f0 61 	bl      ffc15dac <rtems_rfs_inode_open>        
  if (rc)                                                             
ffc26d50:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc26d54:	40 82 00 f4 	bne-    ffc26e48 <rtems_rfs_rtems_dir_open+0x154><== NEVER TAKEN
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
    return rtems_rfs_rtems_error ("dir_open: opening inode", rc);     
  }                                                                   
                                                                      
  if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))         
ffc26d58:	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);                    
ffc26d5c:	89 29 00 02 	lbz     r9,2(r9)                               
ffc26d60:	55 29 44 26 	rlwinm  r9,r9,8,16,19                          
ffc26d64:	2f 89 40 00 	cmpwi   cr7,r9,16384                           
ffc26d68:	40 9e 01 5c 	bne-    cr7,ffc26ec4 <rtems_rfs_rtems_dir_open+0x1d0><== NEVER TAKEN
    rtems_rfs_inode_close (fs, &inode);                               
    rtems_rfs_rtems_unlock (fs);                                      
    return rtems_rfs_rtems_error ("dir_open: not dir", ENOTDIR);      
  }                                                                   
                                                                      
  iop->offset = 0;                                                    
ffc26d6c:	39 40 00 00 	li      r10,0                                  
ffc26d70:	39 60 00 00 	li      r11,0                                  
ffc26d74:	91 5e 00 08 	stw     r10,8(r30)                             
                                                                      
  rtems_rfs_inode_close (fs, &inode);                                 
ffc26d78:	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;                                                    
ffc26d7c:	91 7e 00 0c 	stw     r11,12(r30)                            
                                                                      
  rtems_rfs_inode_close (fs, &inode);                                 
ffc26d80:	7f e3 fb 78 	mr      r3,r31                                 
ffc26d84:	4b fe f2 a5 	bl      ffc16028 <rtems_rfs_inode_close>       
 * 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);            
ffc26d88:	83 df 00 80 	lwz     r30,128(r31)                           
  rtems_rfs_buffers_release (fs);                                     
ffc26d8c:	7f e3 fb 78 	mr      r3,r31                                 
ffc26d90:	4b ff b7 59 	bl      ffc224e8 <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);            
ffc26d94:	80 7e 00 00 	lwz     r3,0(r30)                              
ffc26d98:	4b fe 91 e5 	bl      ffc0ff7c <rtems_semaphore_release>     
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc26d9c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc26da0:	40 82 00 28 	bne-    ffc26dc8 <rtems_rfs_rtems_dir_open+0xd4><== NEVER TAKEN
  rtems_rfs_rtems_unlock (fs);                                        
  return 0;                                                           
ffc26da4:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc26da8:	80 01 00 4c 	lwz     r0,76(r1)                              
ffc26dac:	83 81 00 38 	lwz     r28,56(r1)                             
ffc26db0:	7c 08 03 a6 	mtlr    r0                                     
ffc26db4:	83 a1 00 3c 	lwz     r29,60(r1)                             
ffc26db8:	83 c1 00 40 	lwz     r30,64(r1)                             
ffc26dbc:	83 e1 00 44 	lwz     r31,68(r1)                             
ffc26dc0:	38 21 00 48 	addi    r1,r1,72                               
ffc26dc4:	4e 80 00 20 	blr                                            
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc26dc8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc26dcc:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc26dd0:	4b ff 10 cd 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc26dd4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc26dd8:	41 9e ff cc 	beq+    cr7,ffc26da4 <rtems_rfs_rtems_dir_open+0xb0><== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
ffc26ddc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc26de0:	4b ff 54 29 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc26de4:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc26de8:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc26dec:	38 63 c3 ac 	addi    r3,r3,-15444                           <== NOT EXECUTED
ffc26df0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc26df4:	48 00 3c a5 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc26df8:	4b ff ff ac 	b       ffc26da4 <rtems_rfs_rtems_dir_open+0xb0><== 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))                      
ffc26dfc:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc26e00:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc26e04:	4b ff 10 99 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc26e08:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc26e0c:	41 9e ff 30 	beq+    cr7,ffc26d3c <rtems_rfs_rtems_dir_open+0x48><== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
ffc26e10:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc26e14:	4b ff 53 f5 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc26e18:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc26e1c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc26e20:	38 63 c4 10 	addi    r3,r3,-15344                           <== NOT EXECUTED
ffc26e24:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc26e28:	48 00 3c 71 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
ffc26e2c:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc26e30:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc26e34:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc26e38:	38 c0 00 01 	li      r6,1                                   <== NOT EXECUTED
ffc26e3c:	4b fe ef 71 	bl      ffc15dac <rtems_rfs_inode_open>        <== NOT EXECUTED
  if (rc)                                                             
ffc26e40:	7c 7d 1b 79 	mr.     r29,r3                                 <== NOT EXECUTED
ffc26e44:	41 82 ff 14 	beq+    ffc26d58 <rtems_rfs_rtems_dir_open+0x64><== NOT EXECUTED
 * 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);            
ffc26e48:	83 df 00 80 	lwz     r30,128(r31)                           <== NOT EXECUTED
  rtems_rfs_buffers_release (fs);                                     
ffc26e4c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc26e50:	4b ff b6 99 	bl      ffc224e8 <rtems_rfs_buffers_release>   <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)                       
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_release (*mutex);            
ffc26e54:	80 7e 00 00 	lwz     r3,0(r30)                              <== NOT EXECUTED
ffc26e58:	4b fe 91 25 	bl      ffc0ff7c <rtems_semaphore_release>     <== NOT EXECUTED
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc26e5c:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc26e60:	40 82 00 30 	bne-    ffc26e90 <rtems_rfs_rtems_dir_open+0x19c><== NOT EXECUTED
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
    return rtems_rfs_rtems_error ("dir_open: opening inode", rc);     
ffc26e64:	48 00 21 95 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
  iop->offset = 0;                                                    
                                                                      
  rtems_rfs_inode_close (fs, &inode);                                 
  rtems_rfs_rtems_unlock (fs);                                        
  return 0;                                                           
}                                                                     
ffc26e68:	80 01 00 4c 	lwz     r0,76(r1)                              <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
  if (rc)                                                             
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
    return rtems_rfs_rtems_error ("dir_open: opening inode", rc);     
ffc26e6c:	93 a3 00 00 	stw     r29,0(r3)                              <== NOT EXECUTED
ffc26e70:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  iop->offset = 0;                                                    
                                                                      
  rtems_rfs_inode_close (fs, &inode);                                 
  rtems_rfs_rtems_unlock (fs);                                        
  return 0;                                                           
}                                                                     
ffc26e74:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc26e78:	83 81 00 38 	lwz     r28,56(r1)                             <== NOT EXECUTED
ffc26e7c:	83 a1 00 3c 	lwz     r29,60(r1)                             <== NOT EXECUTED
ffc26e80:	83 c1 00 40 	lwz     r30,64(r1)                             <== NOT EXECUTED
ffc26e84:	83 e1 00 44 	lwz     r31,68(r1)                             <== NOT EXECUTED
ffc26e88:	38 21 00 48 	addi    r1,r1,72                               <== NOT EXECUTED
ffc26e8c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc26e90:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc26e94:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc26e98:	4b ff 10 05 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc26e9c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc26ea0:	41 9e ff c4 	beq+    cr7,ffc26e64 <rtems_rfs_rtems_dir_open+0x170><== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
ffc26ea4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc26ea8:	4b ff 53 61 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc26eac:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc26eb0:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc26eb4:	38 63 c3 ac 	addi    r3,r3,-15444                           <== NOT EXECUTED
ffc26eb8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc26ebc:	48 00 3b dd 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc26ec0:	4b ff ff a4 	b       ffc26e64 <rtems_rfs_rtems_dir_open+0x170><== NOT EXECUTED
    return rtems_rfs_rtems_error ("dir_open: opening inode", rc);     
  }                                                                   
                                                                      
  if (!RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&inode)))         
  {                                                                   
    rtems_rfs_inode_close (fs, &inode);                               
ffc26ec4:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc26ec8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc26ecc:	4b fe f1 5d 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
 * 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);            
ffc26ed0:	83 df 00 80 	lwz     r30,128(r31)                           <== NOT EXECUTED
  rtems_rfs_buffers_release (fs);                                     
ffc26ed4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc26ed8:	4b ff b6 11 	bl      ffc224e8 <rtems_rfs_buffers_release>   <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)                       
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_release (*mutex);            
ffc26edc:	80 7e 00 00 	lwz     r3,0(r30)                              <== NOT EXECUTED
ffc26ee0:	4b fe 90 9d 	bl      ffc0ff7c <rtems_semaphore_release>     <== NOT EXECUTED
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc26ee4:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc26ee8:	40 82 00 18 	bne-    ffc26f00 <rtems_rfs_rtems_dir_open+0x20c><== NOT EXECUTED
    rtems_rfs_rtems_unlock (fs);                                      
    return rtems_rfs_rtems_error ("dir_open: not dir", ENOTDIR);      
ffc26eec:	48 00 21 0d 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc26ef0:	39 20 00 14 	li      r9,20                                  <== NOT EXECUTED
ffc26ef4:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc26ef8:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc26efc:	4b ff fe ac 	b       ffc26da8 <rtems_rfs_rtems_dir_open+0xb4><== NOT EXECUTED
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc26f00:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc26f04:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc26f08:	4b ff 0f 95 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc26f0c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc26f10:	41 9e ff dc 	beq+    cr7,ffc26eec <rtems_rfs_rtems_dir_open+0x1f8><== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
ffc26f14:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc26f18:	4b ff 52 f1 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc26f1c:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc26f20:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc26f24:	38 63 c3 ac 	addi    r3,r3,-15444                           <== NOT EXECUTED
ffc26f28:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc26f2c:	48 00 3b 6d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc26f30:	4b ff ff bc 	b       ffc26eec <rtems_rfs_rtems_dir_open+0x1f8><== NOT EXECUTED
                                                                      

ffc26a3c <rtems_rfs_rtems_dir_read>: */ static ssize_t rtems_rfs_rtems_dir_read (rtems_libio_t* iop, void* buffer, size_t count) {
ffc26a3c:	94 21 ff a0 	stwu    r1,-96(r1)                             
ffc26a40:	7c 08 02 a6 	mflr    r0                                     
ffc26a44:	90 01 00 64 	stw     r0,100(r1)                             
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
ffc26a48:	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)                       
{                                                                     
ffc26a4c:	93 21 00 44 	stw     r25,68(r1)                             
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
ffc26a50:	83 29 00 08 	lwz     r25,8(r9)                              
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_dir_read (rtems_libio_t* iop,                         
                          void*          buffer,                      
                          size_t         count)                       
{                                                                     
ffc26a54:	93 41 00 48 	stw     r26,72(r1)                             
ffc26a58:	7c 7a 1b 78 	mr      r26,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                       
};                                                                    
ffc26a5c:	81 39 00 80 	lwz     r9,128(r25)                            
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_dir_read (rtems_libio_t* iop,                         
                          void*          buffer,                      
                          size_t         count)                       
{                                                                     
ffc26a60:	92 e1 00 3c 	stw     r23,60(r1)                             
ffc26a64:	7c b7 2b 78 	mr      r23,r5                                 
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)                         
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
ffc26a68:	38 a0 00 00 	li      r5,0                                   
ffc26a6c:	80 69 00 00 	lwz     r3,0(r9)                               
ffc26a70:	93 01 00 40 	stw     r24,64(r1)                             
ffc26a74:	7c 98 23 78 	mr      r24,r4                                 
ffc26a78:	38 80 00 00 	li      r4,0                                   
ffc26a7c:	93 81 00 50 	stw     r28,80(r1)                             
ffc26a80:	93 a1 00 54 	stw     r29,84(r1)                             
ffc26a84:	93 61 00 4c 	stw     r27,76(r1)                             
ffc26a88:	93 c1 00 58 	stw     r30,88(r1)                             
ffc26a8c:	93 e1 00 5c 	stw     r31,92(r1)                             
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
  rtems_rfs_ino          ino = rtems_rfs_rtems_get_iop_ino (iop);     
ffc26a90:	83 ba 00 1c 	lwz     r29,28(r26)                            
ffc26a94:	4b fe 93 49 	bl      ffc0fddc <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc26a98:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc26a9c:	40 82 01 38 	bne-    ffc26bd4 <rtems_rfs_rtems_dir_read+0x198><== NEVER TAKEN
  count  = count / sizeof (struct dirent);                            
  dirent = buffer;                                                    
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
ffc26aa0:	7f a4 eb 78 	mr      r4,r29                                 
ffc26aa4:	7f 23 cb 78 	mr      r3,r25                                 
ffc26aa8:	38 a1 00 08 	addi    r5,r1,8                                
ffc26aac:	38 c0 00 01 	li      r6,1                                   
ffc26ab0:	4b fe f2 fd 	bl      ffc15dac <rtems_rfs_inode_open>        
  if (rc)                                                             
ffc26ab4:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc26ab8:	40 82 01 68 	bne-    ffc26c20 <rtems_rfs_rtems_dir_read+0x1e4><== NEVER TAKEN
  struct dirent*         dirent;                                      
  ssize_t                bytes_transferred;                           
  int                    d;                                           
  int                    rc;                                          
                                                                      
  count  = count / sizeof (struct dirent);                            
ffc26abc:	3d 20 0e a0 	lis     r9,3744                                
ffc26ac0:	56 f7 e8 fe 	rlwinm  r23,r23,29,3,31                        
ffc26ac4:	61 29 ea 0f 	ori     r9,r9,59919                            
ffc26ac8:	7e f7 48 16 	mulhwu  r23,r23,r9                             
    return rtems_rfs_rtems_error ("dir_read: read inode", rc);        
  }                                                                   
                                                                      
  bytes_transferred = 0;                                              
                                                                      
  for (d = 0; d < count; d++, dirent++)                               
ffc26acc:	56 f7 f8 7f 	rlwinm. r23,r23,31,1,31                        
ffc26ad0:	41 82 02 1c 	beq-    ffc26cec <rtems_rfs_rtems_dir_read+0x2b0><== NEVER TAKEN
ffc26ad4:	80 ba 00 08 	lwz     r5,8(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,                         
ffc26ad8:	3b 80 00 00 	li      r28,0                                  
ffc26adc:	80 da 00 0c 	lwz     r6,12(r26)                             
ffc26ae0:	3b a0 00 00 	li      r29,0                                  
ffc26ae4:	48 00 00 30 	b       ffc26b14 <rtems_rfs_rtems_dir_read+0xd8>
    if (rc == ENOENT)                                                 
    {                                                                 
      rc = 0;                                                         
      break;                                                          
    }                                                                 
    if (rc > 0)                                                       
ffc26ae8:	41 99 01 98 	bgt-    cr6,ffc26c80 <rtems_rfs_rtems_dir_read+0x244><== NEVER TAKEN
    {                                                                 
      bytes_transferred = rtems_rfs_rtems_error ("dir_read: dir read", rc);
      break;                                                          
    }                                                                 
    iop->offset += size;                                              
ffc26aec:	81 5a 00 08 	lwz     r10,8(r26)                             
ffc26af0:	3b c0 00 00 	li      r30,0                                  
ffc26af4:	81 7a 00 0c 	lwz     r11,12(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,                         
ffc26af8:	3b bd 01 18 	addi    r29,r29,280                            
    if (rc > 0)                                                       
    {                                                                 
      bytes_transferred = rtems_rfs_rtems_error ("dir_read: dir read", rc);
      break;                                                          
    }                                                                 
    iop->offset += size;                                              
ffc26afc:	83 e1 00 30 	lwz     r31,48(r1)                             
ffc26b00:	7c df 58 14 	addc    r6,r31,r11                             
ffc26b04:	7c be 51 14 	adde    r5,r30,r10                             
ffc26b08:	90 ba 00 08 	stw     r5,8(r26)                              
ffc26b0c:	90 da 00 0c 	stw     r6,12(r26)                             
    return rtems_rfs_rtems_error ("dir_read: read inode", rc);        
  }                                                                   
                                                                      
  bytes_transferred = 0;                                              
                                                                      
  for (d = 0; d < count; d++, dirent++)                               
ffc26b10:	41 86 00 30 	beq-    cr1,ffc26b40 <rtems_rfs_rtems_dir_read+0x104><== ALWAYS TAKEN
  {                                                                   
    size_t size;                                                      
    rc = rtems_rfs_dir_read (fs, &inode, iop->offset, dirent, &size); 
ffc26b14:	7c f8 ea 14 	add     r7,r24,r29                             
ffc26b18:	7f 23 cb 78 	mr      r3,r25                                 
ffc26b1c:	38 81 00 08 	addi    r4,r1,8                                
ffc26b20:	39 01 00 30 	addi    r8,r1,48                               
ffc26b24:	4b ff cc 59 	bl      ffc2377c <rtems_rfs_dir_read>          
    return rtems_rfs_rtems_error ("dir_read: read inode", rc);        
  }                                                                   
                                                                      
  bytes_transferred = 0;                                              
                                                                      
  for (d = 0; d < count; d++, dirent++)                               
ffc26b28:	3b 9c 00 01 	addi    r28,r28,1                              
  {                                                                   
    size_t size;                                                      
    rc = rtems_rfs_dir_read (fs, &inode, iop->offset, dirent, &size); 
    if (rc == ENOENT)                                                 
ffc26b2c:	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); 
ffc26b30:	7c 7b 1b 78 	mr      r27,r3                                 
    if (rc == ENOENT)                                                 
    {                                                                 
      rc = 0;                                                         
      break;                                                          
    }                                                                 
    if (rc > 0)                                                       
ffc26b34:	2f 03 00 00 	cmpwi   cr6,r3,0                               
    return rtems_rfs_rtems_error ("dir_read: read inode", rc);        
  }                                                                   
                                                                      
  bytes_transferred = 0;                                              
                                                                      
  for (d = 0; d < count; d++, dirent++)                               
ffc26b38:	7c 9c b8 00 	cmpw    cr1,r28,r23                            
  {                                                                   
    size_t size;                                                      
    rc = rtems_rfs_dir_read (fs, &inode, iop->offset, dirent, &size); 
    if (rc == ENOENT)                                                 
ffc26b3c:	40 9e ff ac 	bne+    cr7,ffc26ae8 <rtems_rfs_rtems_dir_read+0xac>
    }                                                                 
    iop->offset += size;                                              
    bytes_transferred += sizeof (struct dirent);                      
  }                                                                   
                                                                      
  rtems_rfs_inode_close (fs, &inode);                                 
ffc26b40:	38 81 00 08 	addi    r4,r1,8                                
ffc26b44:	7f 23 cb 78 	mr      r3,r25                                 
ffc26b48:	4b fe f4 e1 	bl      ffc16028 <rtems_rfs_inode_close>       
 * 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);            
ffc26b4c:	83 f9 00 80 	lwz     r31,128(r25)                           
  rtems_rfs_buffers_release (fs);                                     
ffc26b50:	7f 23 cb 78 	mr      r3,r25                                 
ffc26b54:	4b ff b9 95 	bl      ffc224e8 <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);            
ffc26b58:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc26b5c:	4b fe 94 21 	bl      ffc0ff7c <rtems_semaphore_release>     
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc26b60:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc26b64:	40 82 00 3c 	bne-    ffc26ba0 <rtems_rfs_rtems_dir_read+0x164><== NEVER TAKEN
  rtems_rfs_rtems_unlock (fs);                                        
                                                                      
  return bytes_transferred;                                           
}                                                                     
ffc26b68:	80 01 00 64 	lwz     r0,100(r1)                             
ffc26b6c:	7f a3 eb 78 	mr      r3,r29                                 
ffc26b70:	82 e1 00 3c 	lwz     r23,60(r1)                             
ffc26b74:	7c 08 03 a6 	mtlr    r0                                     
ffc26b78:	83 01 00 40 	lwz     r24,64(r1)                             
ffc26b7c:	83 21 00 44 	lwz     r25,68(r1)                             
ffc26b80:	83 41 00 48 	lwz     r26,72(r1)                             
ffc26b84:	83 61 00 4c 	lwz     r27,76(r1)                             
ffc26b88:	83 81 00 50 	lwz     r28,80(r1)                             
ffc26b8c:	83 a1 00 54 	lwz     r29,84(r1)                             
ffc26b90:	83 c1 00 58 	lwz     r30,88(r1)                             
ffc26b94:	83 e1 00 5c 	lwz     r31,92(r1)                             
ffc26b98:	38 21 00 60 	addi    r1,r1,96                               
ffc26b9c:	4e 80 00 20 	blr                                            
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc26ba0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc26ba4:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc26ba8:	4b ff 12 f5 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc26bac:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc26bb0:	41 9e ff b8 	beq+    cr7,ffc26b68 <rtems_rfs_rtems_dir_read+0x12c><== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
ffc26bb4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc26bb8:	4b ff 56 51 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc26bbc:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc26bc0:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc26bc4:	38 63 c3 ac 	addi    r3,r3,-15444                           <== NOT EXECUTED
ffc26bc8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc26bcc:	48 00 3e cd 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc26bd0:	4b ff ff 98 	b       ffc26b68 <rtems_rfs_rtems_dir_read+0x12c><== 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))                      
ffc26bd4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc26bd8:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc26bdc:	4b ff 12 c1 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc26be0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc26be4:	41 9e fe bc 	beq+    cr7,ffc26aa0 <rtems_rfs_rtems_dir_read+0x64><== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
ffc26be8:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc26bec:	4b ff 56 1d 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc26bf0:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc26bf4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc26bf8:	38 63 c4 10 	addi    r3,r3,-15344                           <== NOT EXECUTED
ffc26bfc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc26c00:	48 00 3e 99 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
  count  = count / sizeof (struct dirent);                            
  dirent = buffer;                                                    
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
ffc26c04:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc26c08:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc26c0c:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc26c10:	38 c0 00 01 	li      r6,1                                   <== NOT EXECUTED
ffc26c14:	4b fe f1 99 	bl      ffc15dac <rtems_rfs_inode_open>        <== NOT EXECUTED
  if (rc)                                                             
ffc26c18:	7c 7d 1b 79 	mr.     r29,r3                                 <== NOT EXECUTED
ffc26c1c:	41 82 fe a0 	beq+    ffc26abc <rtems_rfs_rtems_dir_read+0x80><== NOT EXECUTED
 * 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);            
ffc26c20:	83 f9 00 80 	lwz     r31,128(r25)                           <== NOT EXECUTED
  rtems_rfs_buffers_release (fs);                                     
ffc26c24:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc26c28:	4b ff b8 c1 	bl      ffc224e8 <rtems_rfs_buffers_release>   <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)                       
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_release (*mutex);            
ffc26c2c:	80 7f 00 00 	lwz     r3,0(r31)                              <== NOT EXECUTED
ffc26c30:	4b fe 93 4d 	bl      ffc0ff7c <rtems_semaphore_release>     <== NOT EXECUTED
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc26c34:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc26c38:	40 82 00 80 	bne-    ffc26cb8 <rtems_rfs_rtems_dir_read+0x27c><== NOT EXECUTED
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
    return rtems_rfs_rtems_error ("dir_read: read inode", rc);        
ffc26c3c:	48 00 23 bd 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
                                                                      
  rtems_rfs_inode_close (fs, &inode);                                 
  rtems_rfs_rtems_unlock (fs);                                        
                                                                      
  return bytes_transferred;                                           
}                                                                     
ffc26c40:	80 01 00 64 	lwz     r0,100(r1)                             <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
  if (rc)                                                             
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
    return rtems_rfs_rtems_error ("dir_read: read inode", rc);        
ffc26c44:	93 a3 00 00 	stw     r29,0(r3)                              <== NOT EXECUTED
ffc26c48:	3b a0 ff ff 	li      r29,-1                                 <== NOT EXECUTED
                                                                      
  rtems_rfs_inode_close (fs, &inode);                                 
  rtems_rfs_rtems_unlock (fs);                                        
                                                                      
  return bytes_transferred;                                           
}                                                                     
ffc26c4c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc26c50:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc26c54:	82 e1 00 3c 	lwz     r23,60(r1)                             <== NOT EXECUTED
ffc26c58:	83 01 00 40 	lwz     r24,64(r1)                             <== NOT EXECUTED
ffc26c5c:	83 21 00 44 	lwz     r25,68(r1)                             <== NOT EXECUTED
ffc26c60:	83 41 00 48 	lwz     r26,72(r1)                             <== NOT EXECUTED
ffc26c64:	83 61 00 4c 	lwz     r27,76(r1)                             <== NOT EXECUTED
ffc26c68:	83 81 00 50 	lwz     r28,80(r1)                             <== NOT EXECUTED
ffc26c6c:	83 a1 00 54 	lwz     r29,84(r1)                             <== NOT EXECUTED
ffc26c70:	83 c1 00 58 	lwz     r30,88(r1)                             <== NOT EXECUTED
ffc26c74:	83 e1 00 5c 	lwz     r31,92(r1)                             <== NOT EXECUTED
ffc26c78:	38 21 00 60 	addi    r1,r1,96                               <== NOT EXECUTED
ffc26c7c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
      rc = 0;                                                         
      break;                                                          
    }                                                                 
    if (rc > 0)                                                       
    {                                                                 
      bytes_transferred = rtems_rfs_rtems_error ("dir_read: dir read", rc);
ffc26c80:	48 00 23 79 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
    }                                                                 
    iop->offset += size;                                              
    bytes_transferred += sizeof (struct dirent);                      
  }                                                                   
                                                                      
  rtems_rfs_inode_close (fs, &inode);                                 
ffc26c84:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
      rc = 0;                                                         
      break;                                                          
    }                                                                 
    if (rc > 0)                                                       
    {                                                                 
      bytes_transferred = rtems_rfs_rtems_error ("dir_read: dir read", rc);
ffc26c88:	93 63 00 00 	stw     r27,0(r3)                              <== NOT EXECUTED
    }                                                                 
    iop->offset += size;                                              
    bytes_transferred += sizeof (struct dirent);                      
  }                                                                   
                                                                      
  rtems_rfs_inode_close (fs, &inode);                                 
ffc26c8c:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
      rc = 0;                                                         
      break;                                                          
    }                                                                 
    if (rc > 0)                                                       
    {                                                                 
      bytes_transferred = rtems_rfs_rtems_error ("dir_read: dir read", rc);
ffc26c90:	3b a0 ff ff 	li      r29,-1                                 <== NOT EXECUTED
    }                                                                 
    iop->offset += size;                                              
    bytes_transferred += sizeof (struct dirent);                      
  }                                                                   
                                                                      
  rtems_rfs_inode_close (fs, &inode);                                 
ffc26c94:	4b fe f3 95 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
 * 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);            
ffc26c98:	83 f9 00 80 	lwz     r31,128(r25)                           <== NOT EXECUTED
  rtems_rfs_buffers_release (fs);                                     
ffc26c9c:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc26ca0:	4b ff b8 49 	bl      ffc224e8 <rtems_rfs_buffers_release>   <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)                       
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_release (*mutex);            
ffc26ca4:	80 7f 00 00 	lwz     r3,0(r31)                              <== NOT EXECUTED
ffc26ca8:	4b fe 92 d5 	bl      ffc0ff7c <rtems_semaphore_release>     <== NOT EXECUTED
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc26cac:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc26cb0:	41 82 fe b8 	beq+    ffc26b68 <rtems_rfs_rtems_dir_read+0x12c><== NOT EXECUTED
ffc26cb4:	4b ff fe ec 	b       ffc26ba0 <rtems_rfs_rtems_dir_read+0x164><== NOT EXECUTED
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc26cb8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc26cbc:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc26cc0:	4b ff 11 dd 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc26cc4:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc26cc8:	41 9e ff 74 	beq+    cr7,ffc26c3c <rtems_rfs_rtems_dir_read+0x200><== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
ffc26ccc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc26cd0:	4b ff 55 39 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc26cd4:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc26cd8:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc26cdc:	38 63 c3 ac 	addi    r3,r3,-15444                           <== NOT EXECUTED
ffc26ce0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc26ce4:	48 00 3d b5 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc26ce8:	4b ff ff 54 	b       ffc26c3c <rtems_rfs_rtems_dir_read+0x200><== NOT EXECUTED
    return rtems_rfs_rtems_error ("dir_read: read inode", rc);        
  }                                                                   
                                                                      
  bytes_transferred = 0;                                              
                                                                      
  for (d = 0; d < count; d++, dirent++)                               
ffc26cec:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
ffc26cf0:	4b ff fe 50 	b       ffc26b40 <rtems_rfs_rtems_dir_read+0x104><== NOT EXECUTED
                                                                      

ffc17254 <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) {
ffc17254:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc17258:	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);                  
ffc1725c:	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) 
{                                                                     
ffc17260:	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);                  
ffc17264:	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);
ffc17268:	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) 
{                                                                     
ffc1726c:	93 c1 00 40 	stw     r30,64(r1)                             
  rtems_filesystem_location_info_t *currentloc =                      
    rtems_filesystem_eval_path_get_currentloc (ctx);                  
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (currentloc);
ffc17270:	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);                  
ffc17274:	80 83 00 20 	lwz     r4,32(r3)                              
  .eval_token = rtems_rfs_rtems_eval_token                            
};                                                                    
                                                                      
static void                                                           
rtems_rfs_rtems_eval_path (rtems_filesystem_eval_path_context_t *ctx) 
{                                                                     
ffc17278:	93 e1 00 44 	stw     r31,68(r1)                             
ffc1727c:	7c 7f 1b 78 	mr      r31,r3                                 
  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);                  
ffc17280:	7f c3 f3 78 	mr      r3,r30                                 
  .eval_token = rtems_rfs_rtems_eval_token                            
};                                                                    
                                                                      
static void                                                           
rtems_rfs_rtems_eval_path (rtems_filesystem_eval_path_context_t *ctx) 
{                                                                     
ffc17284:	93 a1 00 3c 	stw     r29,60(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);                  
ffc17288:	4b ff eb 25 	bl      ffc15dac <rtems_rfs_inode_open>        
  if (rc == 0) {                                                      
ffc1728c:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc17290:	40 82 00 48 	bne-    ffc172d8 <rtems_rfs_rtems_eval_path+0x84><== NEVER TAKEN
    rtems_filesystem_eval_path_generic (                              
ffc17294:	3c a0 ff c4 	lis     r5,-60                                 
ffc17298:	38 a5 c3 24 	addi    r5,r5,-15580                           
ffc1729c:	7f e3 fb 78 	mr      r3,r31                                 
ffc172a0:	38 81 00 08 	addi    r4,r1,8                                
ffc172a4:	48 00 5a 71 	bl      ffc1cd14 <rtems_filesystem_eval_path_generic>
      ctx,                                                            
      &inode,                                                         
      &rtems_rfs_rtems_eval_config                                    
    );                                                                
    rc = rtems_rfs_inode_close (fs, &inode);                          
ffc172a8:	7f c3 f3 78 	mr      r3,r30                                 
ffc172ac:	38 81 00 08 	addi    r4,r1,8                                
ffc172b0:	4b ff ed 79 	bl      ffc16028 <rtems_rfs_inode_close>       
    if (rc != 0) {                                                    
ffc172b4:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc172b8:	40 82 00 50 	bne-    ffc17308 <rtems_rfs_rtems_eval_path+0xb4><== NEVER TAKEN
    rtems_filesystem_eval_path_error (                                
      ctx,                                                            
      rtems_rfs_rtems_error ("eval_path: opening inode", rc)          
    );                                                                
  }                                                                   
}                                                                     
ffc172bc:	80 01 00 4c 	lwz     r0,76(r1)                              
ffc172c0:	83 a1 00 3c 	lwz     r29,60(r1)                             
ffc172c4:	7c 08 03 a6 	mtlr    r0                                     
ffc172c8:	83 c1 00 40 	lwz     r30,64(r1)                             
ffc172cc:	83 e1 00 44 	lwz     r31,68(r1)                             
ffc172d0:	38 21 00 48 	addi    r1,r1,72                               
ffc172d4:	4e 80 00 20 	blr                                            
      );                                                              
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error (                                
      ctx,                                                            
      rtems_rfs_rtems_error ("eval_path: opening inode", rc)          
ffc172d8:	48 01 1d 21 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
        ctx,                                                          
        rtems_rfs_rtems_error ("eval_path: closing inode", rc)        
      );                                                              
    }                                                                 
  } else {                                                            
    rtems_filesystem_eval_path_error (                                
ffc172dc:	38 80 ff ff 	li      r4,-1                                  <== NOT EXECUTED
      ctx,                                                            
      rtems_rfs_rtems_error ("eval_path: opening inode", rc)          
ffc172e0:	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 (                                
ffc172e4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc172e8:	4b ff 4b c9 	bl      ffc0beb0 <rtems_filesystem_eval_path_error><== NOT EXECUTED
      ctx,                                                            
      rtems_rfs_rtems_error ("eval_path: opening inode", rc)          
    );                                                                
  }                                                                   
}                                                                     
ffc172ec:	80 01 00 4c 	lwz     r0,76(r1)                              <== NOT EXECUTED
ffc172f0:	83 a1 00 3c 	lwz     r29,60(r1)                             <== NOT EXECUTED
ffc172f4:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc172f8:	83 c1 00 40 	lwz     r30,64(r1)                             <== NOT EXECUTED
ffc172fc:	83 e1 00 44 	lwz     r31,68(r1)                             <== NOT EXECUTED
ffc17300:	38 21 00 48 	addi    r1,r1,72                               <== NOT EXECUTED
ffc17304:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    );                                                                
    rc = rtems_rfs_inode_close (fs, &inode);                          
    if (rc != 0) {                                                    
      rtems_filesystem_eval_path_error (                              
        ctx,                                                          
        rtems_rfs_rtems_error ("eval_path: closing inode", rc)        
ffc17308:	48 01 1c f1 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
      &inode,                                                         
      &rtems_rfs_rtems_eval_config                                    
    );                                                                
    rc = rtems_rfs_inode_close (fs, &inode);                          
    if (rc != 0) {                                                    
      rtems_filesystem_eval_path_error (                              
ffc1730c:	38 80 ff ff 	li      r4,-1                                  <== NOT EXECUTED
        ctx,                                                          
        rtems_rfs_rtems_error ("eval_path: closing inode", rc)        
ffc17310:	93 c3 00 00 	stw     r30,0(r3)                              <== NOT EXECUTED
      &inode,                                                         
      &rtems_rfs_rtems_eval_config                                    
    );                                                                
    rc = rtems_rfs_inode_close (fs, &inode);                          
    if (rc != 0) {                                                    
      rtems_filesystem_eval_path_error (                              
ffc17314:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc17318:	4b ff 4b 99 	bl      ffc0beb0 <rtems_filesystem_eval_path_error><== NOT EXECUTED
    rtems_filesystem_eval_path_error (                                
      ctx,                                                            
      rtems_rfs_rtems_error ("eval_path: opening inode", rc)          
    );                                                                
  }                                                                   
}                                                                     
ffc1731c:	80 01 00 4c 	lwz     r0,76(r1)                              <== NOT EXECUTED
ffc17320:	83 a1 00 3c 	lwz     r29,60(r1)                             <== NOT EXECUTED
ffc17324:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc17328:	83 c1 00 40 	lwz     r30,64(r1)                             <== NOT EXECUTED
ffc1732c:	83 e1 00 44 	lwz     r31,68(r1)                             <== NOT EXECUTED
ffc17330:	38 21 00 48 	addi    r1,r1,72                               <== NOT EXECUTED
ffc17334:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc176d4 <rtems_rfs_rtems_eval_token>: rtems_filesystem_eval_path_context_t *ctx, void *arg, const char *token, size_t tokenlen ) {
ffc176d4:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc176d8:	7c 08 02 a6 	mflr    r0                                     
ffc176dc:	90 01 00 34 	stw     r0,52(r1)                              
ffc176e0:	93 81 00 20 	stw     r28,32(r1)                             
ffc176e4:	7c bc 2b 78 	mr      r28,r5                                 
ffc176e8:	93 a1 00 24 	stw     r29,36(r1)                             
ffc176ec:	7c 7d 1b 78 	mr      r29,r3                                 
ffc176f0:	93 c1 00 28 	stw     r30,40(r1)                             
ffc176f4:	7c de 33 78 	mr      r30,r6                                 
ffc176f8:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc176fc:	7c 9f 23 78 	mr      r31,r4                                 
  /* FIXME: Return value? */                                          
  rtems_rfs_fs_close(fs);                                             
                                                                      
  rtems_rfs_mutex_destroy (&rtems->access);                           
  free (rtems);                                                       
}                                                                     
ffc17700:	81 24 00 0c 	lwz     r9,12(r4)                              
  rtems_filesystem_eval_path_context_t *ctx,                          
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
ffc17704:	93 61 00 1c 	stw     r27,28(r1)                             
 * @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;  
ffc17708:	88 89 00 04 	lbz     r4,4(r9)                               
ffc1770c:	88 e9 00 05 	lbz     r7,5(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);                    
ffc17710:	89 69 00 02 	lbz     r11,2(r9)                              
 * @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;  
ffc17714:	54 84 c0 0e 	rlwinm  r4,r4,24,0,7                           
 * @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;          
ffc17718:	88 09 00 06 	lbz     r0,6(r9)                               
 * @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;  
ffc1771c:	54 e7 80 1e 	rlwinm  r7,r7,16,0,15                          
 * @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;          
ffc17720:	89 49 00 07 	lbz     r10,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);                    
ffc17724:	55 6b 40 2e 	rlwinm  r11,r11,8,0,23                         
ffc17728:	88 a9 00 03 	lbz     r5,3(r9)                               
 * @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;  
ffc1772c:	7c 87 3b 78 	or      r7,r4,r7                               
 * @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;          
ffc17730:	54 09 40 2e 	rlwinm  r9,r0,8,0,23                           
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(                     
ffc17734:	38 80 00 01 	li      r4,1                                   
ffc17738:	7d 65 2b 78 	or      r5,r11,r5                              
ffc1773c:	7d 46 4b 78 	or      r6,r10,r9                              
ffc17740:	54 e7 84 3e 	rlwinm  r7,r7,16,16,31                         
ffc17744:	48 00 55 75 	bl      ffc1ccb8 <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) {                                                    
ffc17748:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1774c:	41 9e 00 b4 	beq-    cr7,ffc17800 <rtems_rfs_rtems_eval_token+0x12c>
static inline bool rtems_filesystem_is_current_directory(             
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  return tokenlen == 1 && token [0] == '.';                           
ffc17750:	2f 9e 00 01 	cmpwi   cr7,r30,1                              
ffc17754:	41 9e 00 d4 	beq-    cr7,ffc17828 <rtems_rfs_rtems_eval_token+0x154>
    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);
ffc17758:	81 3d 00 2c 	lwz     r9,44(r29)                             
      rtems_rfs_ino entry_ino;                                        
      uint32_t entry_doff;                                            
      int rc = rtems_rfs_dir_lookup_ino (                             
ffc1775c:	7f e4 fb 78 	mr      r4,r31                                 
ffc17760:	7f 85 e3 78 	mr      r5,r28                                 
    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);
ffc17764:	83 69 00 08 	lwz     r27,8(r9)                              
      rtems_rfs_ino entry_ino;                                        
      uint32_t entry_doff;                                            
      int rc = rtems_rfs_dir_lookup_ino (                             
ffc17768:	7f c6 f3 78 	mr      r6,r30                                 
ffc1776c:	38 e1 00 10 	addi    r7,r1,16                               
ffc17770:	7f 63 db 78 	mr      r3,r27                                 
ffc17774:	39 01 00 0c 	addi    r8,r1,12                               
ffc17778:	48 00 b0 75 	bl      ffc227ec <rtems_rfs_dir_lookup_ino>    
        tokenlen,                                                     
        &entry_ino,                                                   
        &entry_doff                                                   
      );                                                              
                                                                      
      if (rc == 0) {                                                  
ffc1777c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc17780:	41 9e 00 c4 	beq-    cr7,ffc17844 <rtems_rfs_rtems_eval_token+0x170>
           * rtems_rfs_rtems_eval_path().                             
           */                                                         
          memset (inode, 0, sizeof(*inode));                          
        }                                                             
      } else {                                                        
        status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_NO_ENTRY;         
ffc17784:	38 60 00 02 	li      r3,2                                   
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc17788:	80 01 00 34 	lwz     r0,52(r1)                              
ffc1778c:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc17790:	7c 08 03 a6 	mtlr    r0                                     
ffc17794:	83 81 00 20 	lwz     r28,32(r1)                             
ffc17798:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc1779c:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc177a0:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc177a4:	38 21 00 30 	addi    r1,r1,48                               
ffc177a8:	4e 80 00 20 	blr                                            
  rtems_filesystem_eval_path_context_t* ctx,                          
  rtems_rfs_file_system* fs,                                          
  rtems_rfs_ino ino                                                   
)                                                                     
{                                                                     
  size_t len = MAXPATHLEN;                                            
ffc177ac:	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);           
ffc177b0:	83 c1 00 10 	lwz     r30,16(r1)                             
  rtems_rfs_file_system* fs,                                          
  rtems_rfs_ino ino                                                   
)                                                                     
{                                                                     
  size_t len = MAXPATHLEN;                                            
  char *link = malloc(len + 1);                                       
ffc177b4:	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;                                            
ffc177b8:	91 21 00 08 	stw     r9,8(r1)                               
  char *link = malloc(len + 1);                                       
ffc177bc:	4b ff 32 d9 	bl      ffc0aa94 <malloc>                      
                                                                      
  if (link != NULL) {                                                 
ffc177c0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc177c4:	41 82 01 7c 	beq-    ffc17940 <rtems_rfs_rtems_eval_token+0x26c><== NEVER TAKEN
    int rc = rtems_rfs_symlink_read (fs, ino, link, len, &len);       
ffc177c8:	7f 63 db 78 	mr      r3,r27                                 
ffc177cc:	7f c4 f3 78 	mr      r4,r30                                 
ffc177d0:	7f e5 fb 78 	mr      r5,r31                                 
ffc177d4:	38 c0 04 00 	li      r6,1024                                
ffc177d8:	38 e1 00 08 	addi    r7,r1,8                                
ffc177dc:	48 00 ec 75 	bl      ffc26450 <rtems_rfs_symlink_read>      
                                                                      
    if (rc == 0) {                                                    
ffc177e0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc177e4:	40 9e 01 4c 	bne-    cr7,ffc17930 <rtems_rfs_rtems_eval_token+0x25c><== NEVER TAKEN
      rtems_filesystem_eval_path_recursive (ctx, link, len);          
ffc177e8:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc177ec:	7f a3 eb 78 	mr      r3,r29                                 
ffc177f0:	7f e4 fb 78 	mr      r4,r31                                 
ffc177f4:	4b ff 4c fd 	bl      ffc0c4f0 <rtems_filesystem_eval_path_recursive>
    } else {                                                          
      rtems_filesystem_eval_path_error (ctx, 0);                      
    }                                                                 
                                                                      
    free(link);                                                       
ffc177f8:	7f e3 fb 78 	mr      r3,r31                                 
ffc177fc:	4b ff 2b 01 	bl      ffc0a2fc <free>                        
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
ffc17800:	38 60 00 01 	li      r3,1                                   
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  return status;                                                      
}                                                                     
ffc17804:	80 01 00 34 	lwz     r0,52(r1)                              
ffc17808:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc1780c:	7c 08 03 a6 	mtlr    r0                                     
ffc17810:	83 81 00 20 	lwz     r28,32(r1)                             
ffc17814:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc17818:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc1781c:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc17820:	38 21 00 30 	addi    r1,r1,48                               
ffc17824:	4e 80 00 20 	blr                                            
ffc17828:	89 3c 00 00 	lbz     r9,0(r28)                              
ffc1782c:	2f 89 00 2e 	cmpwi   cr7,r9,46                              
ffc17830:	40 9e ff 28 	bne+    cr7,ffc17758 <rtems_rfs_rtems_eval_token+0x84>
                                                                      
static inline void rtems_filesystem_eval_path_clear_token(            
  rtems_filesystem_eval_path_context_t *ctx                           
)                                                                     
{                                                                     
  ctx->tokenlen = 0;                                                  
ffc17834:	39 20 00 00 	li      r9,0                                   
ffc17838:	91 3d 00 0c 	stw     r9,12(r29)                             
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
ffc1783c:	38 60 00 01 	li      r3,1                                   
ffc17840:	4b ff ff 48 	b       ffc17788 <rtems_rfs_rtems_eval_token+0xb4>
        &entry_ino,                                                   
        &entry_doff                                                   
      );                                                              
                                                                      
      if (rc == 0) {                                                  
        rc = rtems_rfs_inode_close (fs, inode);                       
ffc17844:	7f 63 db 78 	mr      r3,r27                                 
ffc17848:	7f e4 fb 78 	mr      r4,r31                                 
ffc1784c:	4b ff e7 dd 	bl      ffc16028 <rtems_rfs_inode_close>       
        if (rc == 0) {                                                
ffc17850:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc17854:	41 9e 00 1c 	beq-    cr7,ffc17870 <rtems_rfs_rtems_eval_token+0x19c><== 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));                          
ffc17858:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1785c:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc17860:	38 a0 00 28 	li      r5,40                                  <== NOT EXECUTED
ffc17864:	48 01 2f d9 	bl      ffc2a83c <memset>                      <== NOT EXECUTED
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
ffc17868:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc1786c:	4b ff ff 1c 	b       ffc17788 <rtems_rfs_rtems_eval_token+0xb4><== 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);     
ffc17870:	80 81 00 10 	lwz     r4,16(r1)                              
ffc17874:	7f 63 db 78 	mr      r3,r27                                 
ffc17878:	7f e5 fb 78 	mr      r5,r31                                 
ffc1787c:	38 c0 00 01 	li      r6,1                                   
ffc17880:	4b ff e5 2d 	bl      ffc15dac <rtems_rfs_inode_open>        
        }                                                             
                                                                      
        if (rc != 0) {                                                
ffc17884:	2c 03 00 00 	cmpwi   r3,0                                   
ffc17888:	40 a2 ff d0 	bne-    ffc17858 <rtems_rfs_rtems_eval_token+0x184><== NEVER TAKEN
  /* FIXME: Return value? */                                          
  rtems_rfs_fs_close(fs);                                             
                                                                      
  rtems_rfs_mutex_destroy (&rtems->access);                           
  free (rtems);                                                       
}                                                                     
ffc1788c:	81 3f 00 0c 	lwz     r9,12(r31)                             
 * @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);                    
ffc17890:	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))                                       
ffc17894:	55 29 44 26 	rlwinm  r9,r9,8,16,19                          
ffc17898:	2f 89 40 00 	cmpwi   cr7,r9,16384                           
ffc1789c:	41 9e 00 10 	beq-    cr7,ffc178ac <rtems_rfs_rtems_eval_token+0x1d8>
    return RTEMS_FILESYSTEM_DIRECTORY;                                
  else if (RTEMS_RFS_S_ISLNK (mode))                                  
ffc178a0:	6d 2a ff ff 	xoris   r10,r9,65535                           
ffc178a4:	2f 8a a0 00 	cmpwi   cr7,r10,-24576                         
ffc178a8:	41 9e 00 64 	beq-    cr7,ffc1790c <rtems_rfs_rtems_eval_token+0x238>
      if (rc == 0) {                                                  
        bool is_sym_link = rtems_rfs_rtems_node_type_by_inode (inode) 
          == RTEMS_FILESYSTEM_SYM_LINK;                               
        int eval_flags = rtems_filesystem_eval_path_get_flags (ctx);  
        bool follow_sym_link = (eval_flags & RTEMS_FS_FOLLOW_SYM_LINK) != 0;
        bool terminal = !rtems_filesystem_eval_path_has_path (ctx);   
ffc178ac:	83 dd 00 04 	lwz     r30,4(r29)                             
ffc178b0:	39 20 00 00 	li      r9,0                                   
ffc178b4:	91 3d 00 0c 	stw     r9,12(r29)                             
ffc178b8:	7f de 00 34 	cntlzw  r30,r30                                
ffc178bc:	57 de d9 7e 	rlwinm  r30,r30,27,5,31                        
        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;
ffc178c0:	38 7d 00 18 	addi    r3,r29,24                              
ffc178c4:	7f e4 fb 78 	mr      r4,r31                                 
ffc178c8:	48 00 04 f9 	bl      ffc17dc0 <rtems_rfs_rtems_set_handlers>
ffc178cc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc178d0:	41 9e 00 1c 	beq-    cr7,ffc178ec <rtems_rfs_rtems_eval_token+0x218><== NEVER TAKEN
          if (rc == 0) {                                              
            rtems_rfs_rtems_set_pathloc_ino (currentloc, entry_ino);  
ffc178d4:	81 21 00 10 	lwz     r9,16(r1)                              
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
ffc178d8:	7f c3 f3 78 	mr      r3,r30                                 
        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);  
ffc178dc:	91 3d 00 20 	stw     r9,32(r29)                             
            rtems_rfs_rtems_set_pathloc_doff (currentloc, entry_doff);
ffc178e0:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc178e4:	91 3d 00 24 	stw     r9,36(r29)                             
ffc178e8:	4b ff fe a0 	b       ffc17788 <rtems_rfs_rtems_eval_token+0xb4>
              status = RTEMS_FILESYSTEM_EVAL_PATH_GENERIC_CONTINUE;   
            }                                                         
          } else {                                                    
            rtems_filesystem_eval_path_error (                        
              ctx,                                                    
              rtems_rfs_rtems_error ("eval_path: set handlers", rc)   
ffc178ec:	48 01 17 0d 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc178f0:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc178f4:	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 (                        
ffc178f8:	38 80 ff ff 	li      r4,-1                                  <== NOT EXECUTED
ffc178fc:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc17900:	4b ff 45 b1 	bl      ffc0beb0 <rtems_filesystem_eval_path_error><== NOT EXECUTED
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
ffc17904:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc17908:	4b ff fe fc 	b       ffc17804 <rtems_rfs_rtems_eval_token+0x130><== NOT EXECUTED
                                                                      
      if (rc == 0) {                                                  
        bool is_sym_link = rtems_rfs_rtems_node_type_by_inode (inode) 
          == RTEMS_FILESYSTEM_SYM_LINK;                               
        int eval_flags = rtems_filesystem_eval_path_get_flags (ctx);  
        bool follow_sym_link = (eval_flags & RTEMS_FS_FOLLOW_SYM_LINK) != 0;
ffc1790c:	81 5d 00 10 	lwz     r10,16(r29)                            
  /* FIXME: Return value? */                                          
  rtems_rfs_fs_close(fs);                                             
                                                                      
  rtems_rfs_mutex_destroy (&rtems->access);                           
  free (rtems);                                                       
}                                                                     
ffc17910:	81 3d 00 04 	lwz     r9,4(r29)                              
        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)) {          
ffc17914:	71 48 00 10 	andi.   r8,r10,16                              
ffc17918:	90 7d 00 0c 	stw     r3,12(r29)                             
ffc1791c:	40 a2 fe 90 	bne-    ffc177ac <rtems_rfs_rtems_eval_token+0xd8>
ffc17920:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc17924:	40 be fe 88 	bne-    cr7,ffc177ac <rtems_rfs_rtems_eval_token+0xd8>
ffc17928:	3b c0 00 01 	li      r30,1                                  
ffc1792c:	4b ff ff 94 	b       ffc178c0 <rtems_rfs_rtems_eval_token+0x1ec>
    int rc = rtems_rfs_symlink_read (fs, ino, link, len, &len);       
                                                                      
    if (rc == 0) {                                                    
      rtems_filesystem_eval_path_recursive (ctx, link, len);          
    } else {                                                          
      rtems_filesystem_eval_path_error (ctx, 0);                      
ffc17930:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc17934:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc17938:	4b ff 45 79 	bl      ffc0beb0 <rtems_filesystem_eval_path_error><== NOT EXECUTED
ffc1793c:	4b ff fe bc 	b       ffc177f8 <rtems_rfs_rtems_eval_token+0x124><== NOT EXECUTED
    }                                                                 
                                                                      
    free(link);                                                       
  } else {                                                            
    rtems_filesystem_eval_path_error (ctx, ENOMEM);                   
ffc17940:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc17944:	38 80 00 0c 	li      r4,12                                  <== NOT EXECUTED
ffc17948:	4b ff 45 69 	bl      ffc0beb0 <rtems_filesystem_eval_path_error><== NOT EXECUTED
  void *arg,                                                          
  const char *token,                                                  
  size_t tokenlen                                                     
)                                                                     
{                                                                     
  rtems_filesystem_eval_path_generic_status status =                  
ffc1794c:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc17950:	4b ff fe b4 	b       ffc17804 <rtems_rfs_rtems_eval_token+0x130><== NOT EXECUTED
                                                                      

ffc16e98 <rtems_rfs_rtems_fchmod>: } static int rtems_rfs_rtems_fchmod (const rtems_filesystem_location_info_t* pathloc, mode_t mode) {
ffc16e98:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc16e9c:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  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);                  
ffc16ea0:	38 c0 00 01 	li      r6,1                                   
}                                                                     
                                                                      
static int                                                            
rtems_rfs_rtems_fchmod (const rtems_filesystem_location_info_t* pathloc,
                        mode_t                                  mode) 
{                                                                     
ffc16ea4:	90 01 00 4c 	stw     r0,76(r1)                              
                                                                      
  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);                  
ffc16ea8:	38 a1 00 08 	addi    r5,r1,8                                
                                                                      
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); 
ffc16eac:	81 23 00 14 	lwz     r9,20(r3)                              
}                                                                     
                                                                      
static int                                                            
rtems_rfs_rtems_fchmod (const rtems_filesystem_location_info_t* pathloc,
                        mode_t                                  mode) 
{                                                                     
ffc16eb0:	93 e1 00 44 	stw     r31,68(r1)                             
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (pathloc); 
ffc16eb4:	83 e9 00 08 	lwz     r31,8(r9)                              
}                                                                     
                                                                      
static int                                                            
rtems_rfs_rtems_fchmod (const rtems_filesystem_location_info_t* pathloc,
                        mode_t                                  mode) 
{                                                                     
ffc16eb8:	93 a1 00 3c 	stw     r29,60(r1)                             
ffc16ebc:	7c 9d 23 78 	mr      r29,r4                                 
                                                                      
  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);                  
ffc16ec0:	80 83 00 08 	lwz     r4,8(r3)                               
ffc16ec4:	7f e3 fb 78 	mr      r3,r31                                 
}                                                                     
                                                                      
static int                                                            
rtems_rfs_rtems_fchmod (const rtems_filesystem_location_info_t* pathloc,
                        mode_t                                  mode) 
{                                                                     
ffc16ec8:	93 c1 00 40 	stw     r30,64(r1)                             
                                                                      
  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);                  
ffc16ecc:	4b ff ee e1 	bl      ffc15dac <rtems_rfs_inode_open>        
  if (rc)                                                             
ffc16ed0:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc16ed4:	41 82 00 2c 	beq-    ffc16f00 <rtems_rfs_rtems_fchmod+0x68> <== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("fchmod: opening inode", rc);       
ffc16ed8:	48 01 21 21 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc16edc:	93 c3 00 00 	stw     r30,0(r3)                              <== NOT EXECUTED
ffc16ee0:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("fchmod: closing inode", rc);       
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc16ee4:	80 01 00 4c 	lwz     r0,76(r1)                              
ffc16ee8:	83 a1 00 3c 	lwz     r29,60(r1)                             
ffc16eec:	7c 08 03 a6 	mtlr    r0                                     
ffc16ef0:	83 c1 00 40 	lwz     r30,64(r1)                             
ffc16ef4:	83 e1 00 44 	lwz     r31,68(r1)                             
ffc16ef8:	38 21 00 48 	addi    r1,r1,72                               
ffc16efc:	4e 80 00 20 	blr                                            
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("fchmod: opening inode", rc);       
  }                                                                   
                                                                      
  imode = rtems_rfs_inode_get_mode (&inode);                          
ffc16f00:	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);                    
ffc16f04:	89 49 00 02 	lbz     r10,2(r9)                              
ffc16f08:	89 29 00 03 	lbz     r9,3(r9)                               
ffc16f0c:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc16f10:	7d 5e 4b 78 	or      r30,r10,r9                             
                                                                      
  /*                                                                  
   *  Verify I am the owner of the node or the super user.            
   */                                                                 
#if defined (RTEMS_POSIX_API)                                         
  uid = geteuid();                                                    
ffc16f14:	48 00 57 3d 	bl      ffc1c650 <geteuid>                     
                                                                      
  if ((uid != rtems_rfs_inode_get_uid (&inode)) && (uid != 0))        
ffc16f18:	81 21 00 14 	lwz     r9,20(r1)                              
 * @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;          
ffc16f1c:	89 49 00 06 	lbz     r10,6(r9)                              
ffc16f20:	89 09 00 07 	lbz     r8,7(r9)                               
ffc16f24:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc16f28:	7d 4a 43 78 	or      r10,r10,r8                             
ffc16f2c:	55 4a 04 3e 	clrlwi  r10,r10,16                             
ffc16f30:	7f 83 50 00 	cmpw    cr7,r3,r10                             
ffc16f34:	41 9e 00 0c 	beq-    cr7,ffc16f40 <rtems_rfs_rtems_fchmod+0xa8><== ALWAYS TAKEN
ffc16f38:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc16f3c:	40 9e 00 68 	bne-    cr7,ffc16fa4 <rtems_rfs_rtems_fchmod+0x10c><== 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);
ffc16f40:	57 de 04 26 	rlwinm  r30,r30,0,16,19                        
  imode |= mode & (S_IRWXU | S_IRWXG | S_IRWXO | S_ISUID | S_ISGID | S_ISVTX);
ffc16f44:	57 bd 05 3e 	clrlwi  r29,r29,20                             
ffc16f48:	7f dd eb 78 	or      r29,r30,r29                            
 * @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);                    
ffc16f4c:	57 aa c2 3e 	rlwinm  r10,r29,24,8,31                        
ffc16f50:	99 49 00 02 	stb     r10,2(r9)                              
                                                                      
  rtems_rfs_inode_set_mode (&inode, imode);                           
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc16f54:	7f e3 fb 78 	mr      r3,r31                                 
ffc16f58:	38 81 00 08 	addi    r4,r1,8                                
ffc16f5c:	81 21 00 14 	lwz     r9,20(r1)                              
ffc16f60:	9b a9 00 03 	stb     r29,3(r9)                              
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc16f64:	39 20 00 01 	li      r9,1                                   
ffc16f68:	99 21 00 18 	stb     r9,24(r1)                              
ffc16f6c:	4b ff f0 bd 	bl      ffc16028 <rtems_rfs_inode_close>       
  if (rc > 0)                                                         
ffc16f70:	7c 7f 1b 79 	mr.     r31,r3                                 
  {                                                                   
    return rtems_rfs_rtems_error ("fchmod: closing inode", rc);       
  }                                                                   
                                                                      
  return 0;                                                           
ffc16f74:	38 60 00 00 	li      r3,0                                   
  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)                                                         
ffc16f78:	40 a1 ff 6c 	ble-    ffc16ee4 <rtems_rfs_rtems_fchmod+0x4c> <== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("fchmod: closing inode", rc);       
ffc16f7c:	48 01 20 7d 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc16f80:	80 01 00 4c 	lwz     r0,76(r1)                              <== NOT EXECUTED
  rtems_rfs_inode_set_mode (&inode, imode);                           
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
  if (rc > 0)                                                         
  {                                                                   
    return rtems_rfs_rtems_error ("fchmod: closing inode", rc);       
ffc16f84:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc16f88:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc16f8c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc16f90:	83 a1 00 3c 	lwz     r29,60(r1)                             <== NOT EXECUTED
ffc16f94:	83 c1 00 40 	lwz     r30,64(r1)                             <== NOT EXECUTED
ffc16f98:	83 e1 00 44 	lwz     r31,68(r1)                             <== NOT EXECUTED
ffc16f9c:	38 21 00 48 	addi    r1,r1,72                               <== NOT EXECUTED
ffc16fa0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
#if defined (RTEMS_POSIX_API)                                         
  uid = geteuid();                                                    
                                                                      
  if ((uid != rtems_rfs_inode_get_uid (&inode)) && (uid != 0))        
  {                                                                   
    rtems_rfs_inode_close (fs, &inode);                               
ffc16fa4:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc16fa8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc16fac:	4b ff f0 7d 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
    return rtems_rfs_rtems_error ("fchmod: checking uid", EPERM);     
ffc16fb0:	48 01 20 49 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc16fb4:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc16fb8:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc16fbc:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc16fc0:	4b ff ff 24 	b       ffc16ee4 <rtems_rfs_rtems_fchmod+0x4c> <== NOT EXECUTED
                                                                      

ffc17d64 <rtems_rfs_rtems_fdatasync>: * @param iop * @return int */ int rtems_rfs_rtems_fdatasync (rtems_libio_t* iop) {
ffc17d64:	94 21 ff f0 	stwu    r1,-16(r1)                             <== NOT EXECUTED
ffc17d68:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc17d6c:	90 01 00 14 	stw     r0,20(r1)                              <== NOT EXECUTED
  int rc;                                                             
                                                                      
  rc = rtems_rfs_buffer_sync (rtems_rfs_rtems_pathloc_dev (&iop->pathinfo));
ffc17d70:	81 23 00 28 	lwz     r9,40(r3)                              <== NOT EXECUTED
 * @param iop                                                         
 * @return int                                                        
 */                                                                   
int                                                                   
rtems_rfs_rtems_fdatasync (rtems_libio_t* iop)                        
{                                                                     
ffc17d74:	93 e1 00 0c 	stw     r31,12(r1)                             <== NOT EXECUTED
  int rc;                                                             
                                                                      
  rc = rtems_rfs_buffer_sync (rtems_rfs_rtems_pathloc_dev (&iop->pathinfo));
ffc17d78:	80 69 00 08 	lwz     r3,8(r9)                               <== NOT EXECUTED
ffc17d7c:	48 00 a6 95 	bl      ffc22410 <rtems_rfs_buffer_sync>       <== NOT EXECUTED
  if (rc)                                                             
ffc17d80:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc17d84:	40 82 00 1c 	bne-    ffc17da0 <rtems_rfs_rtems_fdatasync+0x3c><== NOT EXECUTED
    return rtems_rfs_rtems_error ("fdatasync: sync", rc);             
                                                                      
  return 0;                                                           
}                                                                     
ffc17d88:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_buffer_sync (rtems_rfs_rtems_pathloc_dev (&iop->pathinfo));
  if (rc)                                                             
    return rtems_rfs_rtems_error ("fdatasync: sync", rc);             
                                                                      
  return 0;                                                           
ffc17d8c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
}                                                                     
ffc17d90:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc17d94:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc17d98:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc17d9c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
{                                                                     
  int rc;                                                             
                                                                      
  rc = rtems_rfs_buffer_sync (rtems_rfs_rtems_pathloc_dev (&iop->pathinfo));
  if (rc)                                                             
    return rtems_rfs_rtems_error ("fdatasync: sync", rc);             
ffc17da0:	48 01 12 59 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
                                                                      
  return 0;                                                           
}                                                                     
ffc17da4:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
{                                                                     
  int rc;                                                             
                                                                      
  rc = rtems_rfs_buffer_sync (rtems_rfs_rtems_pathloc_dev (&iop->pathinfo));
  if (rc)                                                             
    return rtems_rfs_rtems_error ("fdatasync: sync", rc);             
ffc17da8:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc17dac:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
                                                                      
  return 0;                                                           
}                                                                     
ffc17db0:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc17db4:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc17db8:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc17dbc:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc27420 <rtems_rfs_rtems_file_close>: * @param iop * @return int */ static int rtems_rfs_rtems_file_close (rtems_libio_t* iop) {
ffc27420:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc27424:	7c 08 02 a6 	mflr    r0                                     
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)                         
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
ffc27428:	38 80 00 00 	li      r4,0                                   
ffc2742c:	90 01 00 1c 	stw     r0,28(r1)                              
ffc27430:	38 a0 00 00 	li      r5,0                                   
ffc27434:	93 c1 00 10 	stw     r30,16(r1)                             
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
ffc27438:	83 c3 00 20 	lwz     r30,32(r3)                             
 * @param iop                                                         
 * @return int                                                        
 */                                                                   
static int                                                            
rtems_rfs_rtems_file_close (rtems_libio_t* iop)                       
{                                                                     
ffc2743c:	93 e1 00 14 	stw     r31,20(r1)                             
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
  rtems_rfs_file_system* fs = rtems_rfs_file_fs (file);               
ffc27440:	81 3e 00 1c 	lwz     r9,28(r30)                             
 * @param iop                                                         
 * @return int                                                        
 */                                                                   
static int                                                            
rtems_rfs_rtems_file_close (rtems_libio_t* iop)                       
{                                                                     
ffc27444:	93 a1 00 0c 	stw     r29,12(r1)                             
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
  rtems_rfs_file_system* fs = rtems_rfs_file_fs (file);               
ffc27448:	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                       
};                                                                    
ffc2744c:	81 3f 00 80 	lwz     r9,128(r31)                            
ffc27450:	80 69 00 00 	lwz     r3,0(r9)                               
ffc27454:	4b fe 89 89 	bl      ffc0fddc <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc27458:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc2745c:	40 82 00 60 	bne-    ffc274bc <rtems_rfs_rtems_file_close+0x9c><== NEVER TAKEN
  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);                               
ffc27460:	7f c4 f3 78 	mr      r4,r30                                 
ffc27464:	7f e3 fb 78 	mr      r3,r31                                 
ffc27468:	4b ff cd e1 	bl      ffc24248 <rtems_rfs_file_close>        
  if (rc > 0)                                                         
ffc2746c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc27470:	40 81 00 10 	ble-    ffc27480 <rtems_rfs_rtems_file_close+0x60><== ALWAYS TAKEN
    rc = rtems_rfs_rtems_error ("file-close: file close", rc);        
ffc27474:	48 00 1b 85 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc27478:	93 c3 00 00 	stw     r30,0(r3)                              <== NOT EXECUTED
ffc2747c:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
 * 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);            
ffc27480:	83 bf 00 80 	lwz     r29,128(r31)                           
  rtems_rfs_buffers_release (fs);                                     
ffc27484:	7f e3 fb 78 	mr      r3,r31                                 
ffc27488:	4b ff b0 61 	bl      ffc224e8 <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);            
ffc2748c:	80 7d 00 00 	lwz     r3,0(r29)                              
ffc27490:	4b fe 8a ed 	bl      ffc0ff7c <rtems_semaphore_release>     
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc27494:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc27498:	40 82 00 58 	bne-    ffc274f0 <rtems_rfs_rtems_file_close+0xd0><== NEVER TAKEN
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
  return rc;                                                          
}                                                                     
ffc2749c:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc274a0:	7f c3 f3 78 	mr      r3,r30                                 
ffc274a4:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc274a8:	7c 08 03 a6 	mtlr    r0                                     
ffc274ac:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc274b0:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc274b4:	38 21 00 18 	addi    r1,r1,24                               
ffc274b8:	4e 80 00 20 	blr                                            
#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))                      
ffc274bc:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc274c0:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc274c4:	4b ff 09 d9 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc274c8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc274cc:	41 9e ff 94 	beq+    cr7,ffc27460 <rtems_rfs_rtems_file_close+0x40><== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
ffc274d0:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc274d4:	4b ff 4d 35 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc274d8:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc274dc:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc274e0:	38 63 c4 10 	addi    r3,r3,-15344                           <== NOT EXECUTED
ffc274e4:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc274e8:	48 00 35 b1 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc274ec:	4b ff ff 74 	b       ffc27460 <rtems_rfs_rtems_file_close+0x40><== 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))                      
ffc274f0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc274f4:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc274f8:	4b ff 09 a5 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc274fc:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc27500:	41 9e ff 9c 	beq+    cr7,ffc2749c <rtems_rfs_rtems_file_close+0x7c><== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
ffc27504:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc27508:	4b ff 4d 01 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc2750c:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc27510:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc27514:	38 63 c3 ac 	addi    r3,r3,-15444                           <== NOT EXECUTED
ffc27518:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2751c:	48 00 35 7d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc27520:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
ffc27524:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc27528:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc2752c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc27530:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc27534:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc27538:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc2753c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc27540 <rtems_rfs_rtems_file_ftruncate>: * @return int */ static int rtems_rfs_rtems_file_ftruncate (rtems_libio_t* iop, off_t length) {
ffc27540:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc27544:	7c 08 02 a6 	mflr    r0                                     
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)                         
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
ffc27548:	38 80 00 00 	li      r4,0                                   
ffc2754c:	90 01 00 1c 	stw     r0,28(r1)                              
ffc27550:	93 a1 00 0c 	stw     r29,12(r1)                             
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
ffc27554:	83 a3 00 20 	lwz     r29,32(r3)                             
 * @return int                                                        
 */                                                                   
static int                                                            
rtems_rfs_rtems_file_ftruncate (rtems_libio_t* iop,                   
                                off_t          length)                
{                                                                     
ffc27558:	93 c1 00 10 	stw     r30,16(r1)                             
ffc2755c:	7c be 2b 78 	mr      r30,r5                                 
ffc27560:	38 a0 00 00 	li      r5,0                                   
  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));                    
ffc27564:	81 3d 00 1c 	lwz     r9,28(r29)                             
 * @return int                                                        
 */                                                                   
static int                                                            
rtems_rfs_rtems_file_ftruncate (rtems_libio_t* iop,                   
                                off_t          length)                
{                                                                     
ffc27568:	93 81 00 08 	stw     r28,8(r1)                              
  .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                       
};                                                                    
ffc2756c:	81 29 00 98 	lwz     r9,152(r9)                             
 * @return int                                                        
 */                                                                   
static int                                                            
rtems_rfs_rtems_file_ftruncate (rtems_libio_t* iop,                   
                                off_t          length)                
{                                                                     
ffc27570:	93 e1 00 14 	stw     r31,20(r1)                             
ffc27574:	7c df 33 78 	mr      r31,r6                                 
  .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                       
};                                                                    
ffc27578:	81 29 00 80 	lwz     r9,128(r9)                             
ffc2757c:	80 69 00 00 	lwz     r3,0(r9)                               
ffc27580:	4b fe 88 5d 	bl      ffc0fddc <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc27584:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc27588:	40 82 00 6c 	bne-    ffc275f4 <rtems_rfs_rtems_file_ftruncate+0xb4><== NEVER TAKEN
  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);                        
ffc2758c:	7f e6 fb 78 	mr      r6,r31                                 
ffc27590:	7f a3 eb 78 	mr      r3,r29                                 
ffc27594:	7f c5 f3 78 	mr      r5,r30                                 
ffc27598:	4b ff d7 11 	bl      ffc24ca8 <rtems_rfs_file_set_size>     
  if (rc)                                                             
ffc2759c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc275a0:	41 a2 00 10 	beq+    ffc275b0 <rtems_rfs_rtems_file_ftruncate+0x70><== ALWAYS TAKEN
    rc = rtems_rfs_rtems_error ("file_ftruncate: set size", rc);      
ffc275a4:	48 00 1a 55 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc275a8:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc275ac:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
ffc275b0:	81 3d 00 1c 	lwz     r9,28(r29)                             
ffc275b4:	80 69 00 98 	lwz     r3,152(r9)                             
 * 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);            
ffc275b8:	83 c3 00 80 	lwz     r30,128(r3)                            
  rtems_rfs_buffers_release (fs);                                     
ffc275bc:	4b ff af 2d 	bl      ffc224e8 <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);            
ffc275c0:	80 7e 00 00 	lwz     r3,0(r30)                              
ffc275c4:	4b fe 89 b9 	bl      ffc0ff7c <rtems_semaphore_release>     
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc275c8:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc275cc:	40 82 00 5c 	bne-    ffc27628 <rtems_rfs_rtems_file_ftruncate+0xe8><== NEVER TAKEN
                                                                      
  return rc;                                                          
}                                                                     
ffc275d0:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc275d4:	7f e3 fb 78 	mr      r3,r31                                 
ffc275d8:	83 81 00 08 	lwz     r28,8(r1)                              
ffc275dc:	7c 08 03 a6 	mtlr    r0                                     
ffc275e0:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc275e4:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc275e8:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc275ec:	38 21 00 18 	addi    r1,r1,24                               
ffc275f0:	4e 80 00 20 	blr                                            
#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))                      
ffc275f4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc275f8:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc275fc:	4b ff 08 a1 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc27600:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc27604:	41 9e ff 88 	beq+    cr7,ffc2758c <rtems_rfs_rtems_file_ftruncate+0x4c><== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
ffc27608:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc2760c:	4b ff 4b fd 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc27610:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc27614:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc27618:	38 63 c4 10 	addi    r3,r3,-15344                           <== NOT EXECUTED
ffc2761c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc27620:	48 00 34 79 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc27624:	4b ff ff 68 	b       ffc2758c <rtems_rfs_rtems_file_ftruncate+0x4c><== 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))                      
ffc27628:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc2762c:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc27630:	4b ff 08 6d 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc27634:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc27638:	41 9e ff 98 	beq+    cr7,ffc275d0 <rtems_rfs_rtems_file_ftruncate+0x90><== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
ffc2763c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc27640:	4b ff 4b c9 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc27644:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc27648:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc2764c:	38 63 c3 ac 	addi    r3,r3,-15444                           <== NOT EXECUTED
ffc27650:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc27654:	48 00 34 45 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc27658:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
ffc2765c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc27660:	83 81 00 08 	lwz     r28,8(r1)                              <== NOT EXECUTED
ffc27664:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc27668:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc2766c:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc27670:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc27674:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc27678:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc26f34 <rtems_rfs_rtems_file_lseek>: */ static off_t rtems_rfs_rtems_file_lseek (rtems_libio_t* iop, off_t offset, int whence) {
ffc26f34:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc26f38:	7c 08 02 a6 	mflr    r0                                     
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)                         
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
ffc26f3c:	38 80 00 00 	li      r4,0                                   
ffc26f40:	90 01 00 3c 	stw     r0,60(r1)                              
ffc26f44:	93 41 00 20 	stw     r26,32(r1)                             
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
ffc26f48:	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)                    
{                                                                     
ffc26f4c:	93 61 00 24 	stw     r27,36(r1)                             
ffc26f50:	7c 7b 1b 78 	mr      r27,r3                                 
  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));                    
ffc26f54:	81 3a 00 1c 	lwz     r9,28(r26)                             
 */                                                                   
static off_t                                                          
rtems_rfs_rtems_file_lseek (rtems_libio_t* iop,                       
                            off_t          offset,                    
                            int            whence)                    
{                                                                     
ffc26f58:	93 c1 00 30 	stw     r30,48(r1)                             
ffc26f5c:	7c be 2b 78 	mr      r30,r5                                 
ffc26f60:	38 a0 00 00 	li      r5,0                                   
  .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                       
};                                                                    
ffc26f64:	81 29 00 98 	lwz     r9,152(r9)                             
 */                                                                   
static off_t                                                          
rtems_rfs_rtems_file_lseek (rtems_libio_t* iop,                       
                            off_t          offset,                    
                            int            whence)                    
{                                                                     
ffc26f68:	93 81 00 28 	stw     r28,40(r1)                             
  .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                       
};                                                                    
ffc26f6c:	81 29 00 80 	lwz     r9,128(r9)                             
 */                                                                   
static off_t                                                          
rtems_rfs_rtems_file_lseek (rtems_libio_t* iop,                       
                            off_t          offset,                    
                            int            whence)                    
{                                                                     
ffc26f70:	93 a1 00 2c 	stw     r29,44(r1)                             
ffc26f74:	7c fd 3b 78 	mr      r29,r7                                 
ffc26f78:	80 69 00 00 	lwz     r3,0(r9)                               
ffc26f7c:	93 e1 00 34 	stw     r31,52(r1)                             
ffc26f80:	7c df 33 78 	mr      r31,r6                                 
ffc26f84:	93 21 00 1c 	stw     r25,28(r1)                             
ffc26f88:	4b fe 8e 55 	bl      ffc0fddc <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc26f8c:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc26f90:	40 82 00 a8 	bne-    ffc27038 <rtems_rfs_rtems_file_lseek+0x104><== NEVER TAKEN
    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);
ffc26f94:	7f c5 f3 78 	mr      r5,r30                                 
  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;                                           
ffc26f98:	83 9b 00 08 	lwz     r28,8(r27)                             
  new_offset = rtems_filesystem_default_lseek_file (iop, offset, whence);
ffc26f9c:	7f e6 fb 78 	mr      r6,r31                                 
ffc26fa0:	7f a7 eb 78 	mr      r7,r29                                 
  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;                                           
ffc26fa4:	83 bb 00 0c 	lwz     r29,12(r27)                            
  new_offset = rtems_filesystem_default_lseek_file (iop, offset, whence);
ffc26fa8:	7f 63 db 78 	mr      r3,r27                                 
ffc26fac:	48 00 0c 7d 	bl      ffc27c28 <rtems_filesystem_default_lseek_file>
ffc26fb0:	7c 7e 1b 78 	mr      r30,r3                                 
  if (new_offset != -1)                                               
ffc26fb4:	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);
ffc26fb8:	7c 9f 23 78 	mr      r31,r4                                 
  if (new_offset != -1)                                               
ffc26fbc:	41 9e 00 d8 	beq-    cr7,ffc27094 <rtems_rfs_rtems_file_lseek+0x160>
  {                                                                   
    rtems_rfs_pos pos = iop->offset;                                  
ffc26fc0:	80 bb 00 08 	lwz     r5,8(r27)                              
ffc26fc4:	7c 27 0b 78 	mr      r7,r1                                  
ffc26fc8:	80 db 00 0c 	lwz     r6,12(r27)                             
    int           rc = rtems_rfs_file_seek (file, pos, &pos);         
ffc26fcc:	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;                                  
ffc26fd0:	94 a7 00 08 	stwu    r5,8(r7)                               
ffc26fd4:	90 c7 00 04 	stw     r6,4(r7)                               
    int           rc = rtems_rfs_file_seek (file, pos, &pos);         
ffc26fd8:	4b ff db 71 	bl      ffc24b48 <rtems_rfs_file_seek>         
                                                                      
    if (rc)                                                           
ffc26fdc:	7c 79 1b 79 	mr.     r25,r3                                 
ffc26fe0:	40 82 00 e0 	bne-    ffc270c0 <rtems_rfs_rtems_file_lseek+0x18c><== NEVER TAKEN
      iop->offset = old_offset;                                       
      new_offset = -1;                                                
    }                                                                 
  }                                                                   
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
ffc26fe4:	81 3a 00 1c 	lwz     r9,28(r26)                             
ffc26fe8:	80 69 00 98 	lwz     r3,152(r9)                             
 * 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);            
ffc26fec:	83 a3 00 80 	lwz     r29,128(r3)                            
  rtems_rfs_buffers_release (fs);                                     
ffc26ff0:	4b ff b4 f9 	bl      ffc224e8 <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);            
ffc26ff4:	80 7d 00 00 	lwz     r3,0(r29)                              
ffc26ff8:	4b fe 8f 85 	bl      ffc0ff7c <rtems_semaphore_release>     
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc26ffc:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc27000:	40 82 00 f8 	bne-    ffc270f8 <rtems_rfs_rtems_file_lseek+0x1c4><== NEVER TAKEN
                                                                      
  return new_offset;                                                  
}                                                                     
ffc27004:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc27008:	7f c3 f3 78 	mr      r3,r30                                 
ffc2700c:	7f e4 fb 78 	mr      r4,r31                                 
ffc27010:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc27014:	7c 08 03 a6 	mtlr    r0                                     
ffc27018:	83 41 00 20 	lwz     r26,32(r1)                             
ffc2701c:	83 61 00 24 	lwz     r27,36(r1)                             
ffc27020:	83 81 00 28 	lwz     r28,40(r1)                             
ffc27024:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc27028:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc2702c:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc27030:	38 21 00 38 	addi    r1,r1,56                               
ffc27034:	4e 80 00 20 	blr                                            
#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))                      
ffc27038:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc2703c:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc27040:	4b ff 0e 5d 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc27044:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc27048:	41 9e ff 4c 	beq+    cr7,ffc26f94 <rtems_rfs_rtems_file_lseek+0x60><== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
ffc2704c:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc27050:	4b ff 51 b9 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc27054:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc27058:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc2705c:	38 63 c4 10 	addi    r3,r3,-15344                           <== NOT EXECUTED
ffc27060:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc27064:	48 00 3a 35 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    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);
ffc27068:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc2706c:	7f e6 fb 78 	mr      r6,r31                                 <== NOT EXECUTED
  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;                                           
ffc27070:	83 9b 00 08 	lwz     r28,8(r27)                             <== NOT EXECUTED
  new_offset = rtems_filesystem_default_lseek_file (iop, offset, whence);
ffc27074:	7f a7 eb 78 	mr      r7,r29                                 <== NOT EXECUTED
  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;                                           
ffc27078:	83 bb 00 0c 	lwz     r29,12(r27)                            <== NOT EXECUTED
  new_offset = rtems_filesystem_default_lseek_file (iop, offset, whence);
ffc2707c:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc27080:	48 00 0b a9 	bl      ffc27c28 <rtems_filesystem_default_lseek_file><== NOT EXECUTED
ffc27084:	7c 7e 1b 78 	mr      r30,r3                                 <== NOT EXECUTED
  if (new_offset != -1)                                               
ffc27088:	2f 9e ff ff 	cmpwi   cr7,r30,-1                             <== NOT EXECUTED
    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);
ffc2708c:	7c 9f 23 78 	mr      r31,r4                                 <== NOT EXECUTED
  if (new_offset != -1)                                               
ffc27090:	40 9e ff 30 	bne+    cr7,ffc26fc0 <rtems_rfs_rtems_file_lseek+0x8c><== NOT EXECUTED
ffc27094:	2f 84 ff ff 	cmpwi   cr7,r4,-1                              
ffc27098:	41 be ff 4c 	beq-    cr7,ffc26fe4 <rtems_rfs_rtems_file_lseek+0xb0><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_pos pos = iop->offset;                                  
ffc2709c:	80 bb 00 08 	lwz     r5,8(r27)                              <== NOT EXECUTED
ffc270a0:	7c 27 0b 78 	mr      r7,r1                                  <== NOT EXECUTED
ffc270a4:	80 db 00 0c 	lwz     r6,12(r27)                             <== NOT EXECUTED
    int           rc = rtems_rfs_file_seek (file, pos, &pos);         
ffc270a8:	7f 43 d3 78 	mr      r3,r26                                 <== NOT EXECUTED
                                                                      
  old_offset = iop->offset;                                           
  new_offset = rtems_filesystem_default_lseek_file (iop, offset, whence);
  if (new_offset != -1)                                               
  {                                                                   
    rtems_rfs_pos pos = iop->offset;                                  
ffc270ac:	94 a7 00 08 	stwu    r5,8(r7)                               <== NOT EXECUTED
ffc270b0:	90 c7 00 04 	stw     r6,4(r7)                               <== NOT EXECUTED
    int           rc = rtems_rfs_file_seek (file, pos, &pos);         
ffc270b4:	4b ff da 95 	bl      ffc24b48 <rtems_rfs_file_seek>         <== NOT EXECUTED
                                                                      
    if (rc)                                                           
ffc270b8:	7c 79 1b 79 	mr.     r25,r3                                 <== NOT EXECUTED
ffc270bc:	41 82 ff 28 	beq+    ffc26fe4 <rtems_rfs_rtems_file_lseek+0xb0><== NOT EXECUTED
    {                                                                 
      rtems_rfs_rtems_error ("file_lseek: lseek", rc);                
ffc270c0:	48 00 1f 39 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
      iop->offset = old_offset;                                       
      new_offset = -1;                                                
    }                                                                 
  }                                                                   
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
ffc270c4:	81 3a 00 1c 	lwz     r9,28(r26)                             <== 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);                
ffc270c8:	93 23 00 00 	stw     r25,0(r3)                              <== NOT EXECUTED
      iop->offset = old_offset;                                       
      new_offset = -1;                                                
ffc270cc:	3b c0 ff ff 	li      r30,-1                                 <== NOT EXECUTED
ffc270d0:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
ffc270d4:	80 69 00 98 	lwz     r3,152(r9)                             <== 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;                                       
ffc270d8:	93 bb 00 0c 	stw     r29,12(r27)                            <== NOT EXECUTED
ffc270dc:	93 9b 00 08 	stw     r28,8(r27)                             <== NOT EXECUTED
 * 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);            
ffc270e0:	83 a3 00 80 	lwz     r29,128(r3)                            <== NOT EXECUTED
  rtems_rfs_buffers_release (fs);                                     
ffc270e4:	4b ff b4 05 	bl      ffc224e8 <rtems_rfs_buffers_release>   <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)                       
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_release (*mutex);            
ffc270e8:	80 7d 00 00 	lwz     r3,0(r29)                              <== NOT EXECUTED
ffc270ec:	4b fe 8e 91 	bl      ffc0ff7c <rtems_semaphore_release>     <== NOT EXECUTED
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc270f0:	7c 7d 1b 79 	mr.     r29,r3                                 <== NOT EXECUTED
ffc270f4:	41 82 ff 10 	beq+    ffc27004 <rtems_rfs_rtems_file_lseek+0xd0><== NOT EXECUTED
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc270f8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc270fc:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc27100:	4b ff 0d 9d 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc27104:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc27108:	41 9e fe fc 	beq+    cr7,ffc27004 <rtems_rfs_rtems_file_lseek+0xd0><== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
ffc2710c:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc27110:	4b ff 50 f9 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc27114:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc27118:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc2711c:	38 63 c3 ac 	addi    r3,r3,-15444                           <== NOT EXECUTED
ffc27120:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc27124:	48 00 39 75 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
                                                                      
  return new_offset;                                                  
}                                                                     
ffc27128:	80 01 00 3c 	lwz     r0,60(r1)                              <== NOT EXECUTED
ffc2712c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc27130:	83 21 00 1c 	lwz     r25,28(r1)                             <== NOT EXECUTED
ffc27134:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc27138:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc2713c:	83 41 00 20 	lwz     r26,32(r1)                             <== NOT EXECUTED
ffc27140:	83 61 00 24 	lwz     r27,36(r1)                             <== NOT EXECUTED
ffc27144:	83 81 00 28 	lwz     r28,40(r1)                             <== NOT EXECUTED
ffc27148:	83 a1 00 2c 	lwz     r29,44(r1)                             <== NOT EXECUTED
ffc2714c:	83 c1 00 30 	lwz     r30,48(r1)                             <== NOT EXECUTED
ffc27150:	83 e1 00 34 	lwz     r31,52(r1)                             <== NOT EXECUTED
ffc27154:	38 21 00 38 	addi    r1,r1,56                               <== NOT EXECUTED
ffc27158:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc2767c <rtems_rfs_rtems_file_open>: static int rtems_rfs_rtems_file_open (rtems_libio_t* iop, const char* pathname, int oflag, mode_t mode) {
ffc2767c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc27680:	7c 08 02 a6 	mflr    r0                                     
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)                         
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
ffc27684:	38 80 00 00 	li      r4,0                                   
ffc27688:	90 01 00 2c 	stw     r0,44(r1)                              
ffc2768c:	38 a0 00 00 	li      r5,0                                   
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
ffc27690:	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)                       
{                                                                     
ffc27694:	93 e1 00 24 	stw     r31,36(r1)                             
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (&iop->pathinfo);
ffc27698:	83 e9 00 08 	lwz     r31,8(r9)                              
static int                                                            
rtems_rfs_rtems_file_open (rtems_libio_t* iop,                        
                           const char*    pathname,                   
                           int            oflag,                      
                           mode_t         mode)                       
{                                                                     
ffc2769c:	93 c1 00 20 	stw     r30,32(r1)                             
ffc276a0:	7c 7e 1b 78 	mr      r30,r3                                 
  .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                       
};                                                                    
ffc276a4:	81 3f 00 80 	lwz     r9,128(r31)                            
static int                                                            
rtems_rfs_rtems_file_open (rtems_libio_t* iop,                        
                           const char*    pathname,                   
                           int            oflag,                      
                           mode_t         mode)                       
{                                                                     
ffc276a8:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc276ac:	80 69 00 00 	lwz     r3,0(r9)                               
ffc276b0:	4b fe 87 2d 	bl      ffc0fddc <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc276b4:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc276b8:	40 82 00 98 	bne-    ffc27750 <rtems_rfs_rtems_file_open+0xd4><== NEVER TAKEN
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
                                                                      
  ino = rtems_rfs_rtems_get_iop_ino (iop);                            
                                                                      
  rc = rtems_rfs_file_open (fs, ino, flags, &file);                   
ffc276bc:	80 9e 00 1c 	lwz     r4,28(r30)                             
ffc276c0:	7f e3 fb 78 	mr      r3,r31                                 
ffc276c4:	38 a0 00 00 	li      r5,0                                   
ffc276c8:	38 c1 00 08 	addi    r6,r1,8                                
ffc276cc:	4b ff c7 d9 	bl      ffc23ea4 <rtems_rfs_file_open>         
  if (rc > 0)                                                         
ffc276d0:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc276d4:	40 81 00 c8 	ble-    ffc2779c <rtems_rfs_rtems_file_open+0x120><== ALWAYS TAKEN
 * 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);            
ffc276d8:	83 df 00 80 	lwz     r30,128(r31)                           <== NOT EXECUTED
  rtems_rfs_buffers_release (fs);                                     
ffc276dc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc276e0:	4b ff ae 09 	bl      ffc224e8 <rtems_rfs_buffers_release>   <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)                       
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_release (*mutex);            
ffc276e4:	80 7e 00 00 	lwz     r3,0(r30)                              <== NOT EXECUTED
ffc276e8:	4b fe 88 95 	bl      ffc0ff7c <rtems_semaphore_release>     <== NOT EXECUTED
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc276ec:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc276f0:	40 82 00 2c 	bne-    ffc2771c <rtems_rfs_rtems_file_open+0xa0><== NOT EXECUTED
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
    return rtems_rfs_rtems_error ("file-open: open", rc);             
ffc276f4:	48 00 19 05 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
                                                                      
  rtems_rfs_rtems_set_iop_file_handle (iop, file);                    
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
  return 0;                                                           
}                                                                     
ffc276f8:	80 01 00 2c 	lwz     r0,44(r1)                              <== NOT EXECUTED
                                                                      
  rc = rtems_rfs_file_open (fs, ino, flags, &file);                   
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_rtems_unlock (fs);                                      
    return rtems_rfs_rtems_error ("file-open: open", rc);             
ffc276fc:	93 a3 00 00 	stw     r29,0(r3)                              <== NOT EXECUTED
ffc27700:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
                                                                      
  rtems_rfs_rtems_set_iop_file_handle (iop, file);                    
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
  return 0;                                                           
}                                                                     
ffc27704:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc27708:	83 a1 00 1c 	lwz     r29,28(r1)                             <== NOT EXECUTED
ffc2770c:	83 c1 00 20 	lwz     r30,32(r1)                             <== NOT EXECUTED
ffc27710:	83 e1 00 24 	lwz     r31,36(r1)                             <== NOT EXECUTED
ffc27714:	38 21 00 28 	addi    r1,r1,40                               <== NOT EXECUTED
ffc27718:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc2771c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc27720:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc27724:	4b ff 07 79 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc27728:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc2772c:	41 9e ff c8 	beq+    cr7,ffc276f4 <rtems_rfs_rtems_file_open+0x78><== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
ffc27730:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc27734:	4b ff 4a d5 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc27738:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc2773c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc27740:	38 63 c3 ac 	addi    r3,r3,-15444                           <== NOT EXECUTED
ffc27744:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc27748:	48 00 33 51 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc2774c:	4b ff ff a8 	b       ffc276f4 <rtems_rfs_rtems_file_open+0x78><== 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))                      
ffc27750:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc27754:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc27758:	4b ff 07 45 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc2775c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc27760:	41 9e ff 5c 	beq+    cr7,ffc276bc <rtems_rfs_rtems_file_open+0x40><== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
ffc27764:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc27768:	4b ff 4a a1 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc2776c:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc27770:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc27774:	38 63 c4 10 	addi    r3,r3,-15344                           <== NOT EXECUTED
ffc27778:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2777c:	48 00 33 1d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
                                                                      
  ino = rtems_rfs_rtems_get_iop_ino (iop);                            
                                                                      
  rc = rtems_rfs_file_open (fs, ino, flags, &file);                   
ffc27780:	80 9e 00 1c 	lwz     r4,28(r30)                             <== NOT EXECUTED
ffc27784:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc27788:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc2778c:	38 c1 00 08 	addi    r6,r1,8                                <== NOT EXECUTED
ffc27790:	4b ff c7 15 	bl      ffc23ea4 <rtems_rfs_file_open>         <== NOT EXECUTED
  if (rc > 0)                                                         
ffc27794:	7c 7d 1b 79 	mr.     r29,r3                                 <== NOT EXECUTED
ffc27798:	41 81 ff 40 	bgt+    ffc276d8 <rtems_rfs_rtems_file_open+0x5c><== 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);                    
ffc2779c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc277a0:	7f e3 fb 78 	mr      r3,r31                                 
 * 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);            
ffc277a4:	83 bf 00 80 	lwz     r29,128(r31)                           
ffc277a8:	91 3e 00 20 	stw     r9,32(r30)                             
  rtems_rfs_buffers_release (fs);                                     
ffc277ac:	4b ff ad 3d 	bl      ffc224e8 <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);            
ffc277b0:	80 7d 00 00 	lwz     r3,0(r29)                              
ffc277b4:	4b fe 87 c9 	bl      ffc0ff7c <rtems_semaphore_release>     
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc277b8:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc277bc:	40 82 00 24 	bne-    ffc277e0 <rtems_rfs_rtems_file_open+0x164><== NEVER TAKEN
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
  return 0;                                                           
ffc277c0:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc277c4:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc277c8:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc277cc:	7c 08 03 a6 	mtlr    r0                                     
ffc277d0:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc277d4:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc277d8:	38 21 00 28 	addi    r1,r1,40                               
ffc277dc:	4e 80 00 20 	blr                                            
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc277e0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc277e4:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc277e8:	4b ff 06 b5 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc277ec:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc277f0:	41 9e ff d0 	beq+    cr7,ffc277c0 <rtems_rfs_rtems_file_open+0x144><== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
ffc277f4:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc277f8:	4b ff 4a 11 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc277fc:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc27800:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc27804:	38 63 c3 ac 	addi    r3,r3,-15444                           <== NOT EXECUTED
ffc27808:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2780c:	48 00 32 8d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    printf("rtems-rfs: file-open: handle:%p\n", file);                
                                                                      
  rtems_rfs_rtems_set_iop_file_handle (iop, file);                    
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
  return 0;                                                           
ffc27810:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc27814:	4b ff ff b0 	b       ffc277c4 <rtems_rfs_rtems_file_open+0x148><== NOT EXECUTED
                                                                      

ffc2715c <rtems_rfs_rtems_file_read>: */ static ssize_t rtems_rfs_rtems_file_read (rtems_libio_t* iop, void* buffer, size_t count) {
ffc2715c:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc27160:	7c 08 02 a6 	mflr    r0                                     
ffc27164:	90 01 00 44 	stw     r0,68(r1)                              
ffc27168:	93 61 00 2c 	stw     r27,44(r1)                             
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
ffc2716c:	83 63 00 20 	lwz     r27,32(r3)                             
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_file_read (rtems_libio_t* iop,                        
                           void*          buffer,                     
                           size_t         count)                      
{                                                                     
ffc27170:	93 01 00 20 	stw     r24,32(r1)                             
ffc27174:	7c 78 1b 78 	mr      r24,r3                                 
  int                    rc;                                          
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_READ))        
    printf("rtems-rfs: file-read: handle:%p count:%zd\n", file, count);
                                                                      
  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));                    
ffc27178:	81 3b 00 1c 	lwz     r9,28(r27)                             
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_file_read (rtems_libio_t* iop,                        
                           void*          buffer,                     
                           size_t         count)                      
{                                                                     
ffc2717c:	93 41 00 28 	stw     r26,40(r1)                             
ffc27180:	7c 9a 23 78 	mr      r26,r4                                 
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)                         
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
ffc27184:	38 80 00 00 	li      r4,0                                   
  .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                       
};                                                                    
ffc27188:	81 29 00 98 	lwz     r9,152(r9)                             
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_file_read (rtems_libio_t* iop,                        
                           void*          buffer,                     
                           size_t         count)                      
{                                                                     
ffc2718c:	93 81 00 30 	stw     r28,48(r1)                             
ffc27190:	7c bc 2b 78 	mr      r28,r5                                 
ffc27194:	38 a0 00 00 	li      r5,0                                   
  .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                       
};                                                                    
ffc27198:	81 29 00 80 	lwz     r9,128(r9)                             
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_file_read (rtems_libio_t* iop,                        
                           void*          buffer,                     
                           size_t         count)                      
{                                                                     
ffc2719c:	93 e1 00 3c 	stw     r31,60(r1)                             
ffc271a0:	80 69 00 00 	lwz     r3,0(r9)                               
ffc271a4:	92 e1 00 1c 	stw     r23,28(r1)                             
ffc271a8:	93 21 00 24 	stw     r25,36(r1)                             
ffc271ac:	93 a1 00 34 	stw     r29,52(r1)                             
ffc271b0:	93 c1 00 38 	stw     r30,56(r1)                             
ffc271b4:	4b fe 8c 29 	bl      ffc0fddc <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc271b8:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc271bc:	40 82 02 20 	bne-    ffc273dc <rtems_rfs_rtems_file_read+0x280><== NEVER TAKEN
                                                                      
  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));                    
                                                                      
  pos = iop->offset;                                                  
                                                                      
  if (pos < rtems_rfs_file_size (file))                               
ffc271c0:	81 3b 00 1c 	lwz     r9,28(r27)                             
  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;                                                  
ffc271c4:	83 d8 00 08 	lwz     r30,8(r24)                             
ffc271c8:	80 69 00 98 	lwz     r3,152(r9)                             
ffc271cc:	38 89 00 84 	addi    r4,r9,132                              
ffc271d0:	83 f8 00 0c 	lwz     r31,12(r24)                            
ffc271d4:	4b ff 9a 25 	bl      ffc20bf8 <rtems_rfs_block_get_size>    
                                                                      
  if (pos < rtems_rfs_file_size (file))                               
ffc271d8:	7f 83 f0 40 	cmplw   cr7,r3,r30                             
ffc271dc:	41 9d 00 88 	bgt-    cr7,ffc27264 <rtems_rfs_rtems_file_read+0x108><== NEVER TAKEN
ffc271e0:	7f 83 f0 00 	cmpw    cr7,r3,r30                             
ffc271e4:	41 9e 00 78 	beq-    cr7,ffc2725c <rtems_rfs_rtems_file_read+0x100><== ALWAYS TAKEN
  {                                                                   
    while (count)                                                     
ffc271e8:	39 40 00 00 	li      r10,0                                  
ffc271ec:	39 60 00 00 	li      r11,0                                  
                           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;                                    
ffc271f0:	3b 20 00 00 	li      r25,0                                  
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if (read >= 0)                                                      
    iop->offset = pos + read;                                         
ffc271f4:	7f ff 58 14 	addc    r31,r31,r11                            
ffc271f8:	7f de 51 14 	adde    r30,r30,r10                            
ffc271fc:	93 d8 00 08 	stw     r30,8(r24)                             
ffc27200:	93 f8 00 0c 	stw     r31,12(r24)                            
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
ffc27204:	81 3b 00 1c 	lwz     r9,28(r27)                             
ffc27208:	80 69 00 98 	lwz     r3,152(r9)                             
 * 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);            
ffc2720c:	83 e3 00 80 	lwz     r31,128(r3)                            
  rtems_rfs_buffers_release (fs);                                     
ffc27210:	4b ff b2 d9 	bl      ffc224e8 <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);            
ffc27214:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc27218:	4b fe 8d 65 	bl      ffc0ff7c <rtems_semaphore_release>     
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc2721c:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc27220:	40 82 01 40 	bne-    ffc27360 <rtems_rfs_rtems_file_read+0x204><== NEVER TAKEN
                                                                      
  return read;                                                        
}                                                                     
ffc27224:	80 01 00 44 	lwz     r0,68(r1)                              
ffc27228:	7f 23 cb 78 	mr      r3,r25                                 
ffc2722c:	82 e1 00 1c 	lwz     r23,28(r1)                             
ffc27230:	7c 08 03 a6 	mtlr    r0                                     
ffc27234:	83 01 00 20 	lwz     r24,32(r1)                             
ffc27238:	83 21 00 24 	lwz     r25,36(r1)                             
ffc2723c:	83 41 00 28 	lwz     r26,40(r1)                             
ffc27240:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc27244:	83 81 00 30 	lwz     r28,48(r1)                             
ffc27248:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc2724c:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc27250:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc27254:	38 21 00 40 	addi    r1,r1,64                               
ffc27258:	4e 80 00 20 	blr                                            
                                                                      
  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));                    
                                                                      
  pos = iop->offset;                                                  
                                                                      
  if (pos < rtems_rfs_file_size (file))                               
ffc2725c:	7f 84 f8 40 	cmplw   cr7,r4,r31                             
ffc27260:	40 bd ff 88 	ble-    cr7,ffc271e8 <rtems_rfs_rtems_file_read+0x8c>
  {                                                                   
    while (count)                                                     
ffc27264:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc27268:	41 be ff 80 	beq-    cr7,ffc271e8 <rtems_rfs_rtems_file_read+0x8c><== NEVER TAKEN
ffc2726c:	3b 20 00 00 	li      r25,0                                  
ffc27270:	48 00 00 4c 	b       ffc272bc <rtems_rfs_rtems_file_read+0x160>
        break;                                                        
                                                                      
      if (size > count)                                               
        size = count;                                                 
                                                                      
      memcpy (data, rtems_rfs_file_data (file), size);                
ffc27274:	81 5b 00 0c 	lwz     r10,12(r27)                            
ffc27278:	7f 43 d3 78 	mr      r3,r26                                 
ffc2727c:	81 3b 00 14 	lwz     r9,20(r27)                             
ffc27280:	7f a5 eb 78 	mr      r5,r29                                 
ffc27284:	80 8a 00 1c 	lwz     r4,28(r10)                             
ffc27288:	7f 9d e0 50 	subf    r28,r29,r28                            
                                                                      
      data  += size;                                                  
ffc2728c:	7f 5a ea 14 	add     r26,r26,r29                            
        break;                                                        
                                                                      
      if (size > count)                                               
        size = count;                                                 
                                                                      
      memcpy (data, rtems_rfs_file_data (file), size);                
ffc27290:	7c 84 4a 14 	add     r4,r4,r9                               
ffc27294:	48 00 33 79 	bl      ffc2a60c <memcpy>                      
                                                                      
      data  += size;                                                  
      count -= size;                                                  
      read  += size;                                                  
                                                                      
      rc = rtems_rfs_file_io_end (file, size, true);                  
ffc27298:	7f 63 db 78 	mr      r3,r27                                 
ffc2729c:	7f a4 eb 78 	mr      r4,r29                                 
ffc272a0:	38 a0 00 01 	li      r5,1                                   
ffc272a4:	4b ff d5 95 	bl      ffc24838 <rtems_rfs_file_io_end>       
                                                                      
      memcpy (data, rtems_rfs_file_data (file), size);                
                                                                      
      data  += size;                                                  
      count -= size;                                                  
      read  += size;                                                  
ffc272a8:	7f 3d ca 14 	add     r25,r29,r25                            
                                                                      
      rc = rtems_rfs_file_io_end (file, size, true);                  
      if (rc > 0)                                                     
ffc272ac:	7c 77 1b 79 	mr.     r23,r3                                 
                                                                      
  pos = iop->offset;                                                  
                                                                      
  if (pos < rtems_rfs_file_size (file))                               
  {                                                                   
    while (count)                                                     
ffc272b0:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
      data  += size;                                                  
      count -= size;                                                  
      read  += size;                                                  
                                                                      
      rc = rtems_rfs_file_io_end (file, size, true);                  
      if (rc > 0)                                                     
ffc272b4:	41 81 00 80 	bgt-    ffc27334 <rtems_rfs_rtems_file_read+0x1d8><== NEVER TAKEN
                                                                      
  pos = iop->offset;                                                  
                                                                      
  if (pos < rtems_rfs_file_size (file))                               
  {                                                                   
    while (count)                                                     
ffc272b8:	41 9e 01 10 	beq-    cr7,ffc273c8 <rtems_rfs_rtems_file_read+0x26c>
    {                                                                 
      size_t size;                                                    
                                                                      
      rc = rtems_rfs_file_io_start (file, &size, true);               
ffc272bc:	38 81 00 08 	addi    r4,r1,8                                
ffc272c0:	38 a0 00 01 	li      r5,1                                   
ffc272c4:	7f 63 db 78 	mr      r3,r27                                 
ffc272c8:	4b ff d3 19 	bl      ffc245e0 <rtems_rfs_file_io_start>     
      if (rc > 0)                                                     
ffc272cc:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc272d0:	41 81 01 40 	bgt-    ffc27410 <rtems_rfs_rtems_file_read+0x2b4><== NEVER TAKEN
      {                                                               
        read = rtems_rfs_rtems_error ("file-read: read: io-start", rc);
        break;                                                        
      }                                                               
                                                                      
      if (size == 0)                                                  
ffc272d4:	83 a1 00 08 	lwz     r29,8(r1)                              
ffc272d8:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
        break;                                                        
                                                                      
      if (size > count)                                               
ffc272dc:	7f 1d e0 40 	cmplw   cr6,r29,r28                            
      {                                                               
        read = rtems_rfs_rtems_error ("file-read: read: io-start", rc);
        break;                                                        
      }                                                               
                                                                      
      if (size == 0)                                                  
ffc272e0:	41 9e 00 e8 	beq-    cr7,ffc273c8 <rtems_rfs_rtems_file_read+0x26c>
        break;                                                        
                                                                      
      if (size > count)                                               
ffc272e4:	40 b9 ff 90 	ble-    cr6,ffc27274 <rtems_rfs_rtems_file_read+0x118>
        size = count;                                                 
                                                                      
      memcpy (data, rtems_rfs_file_data (file), size);                
ffc272e8:	81 5b 00 0c 	lwz     r10,12(r27)                            
                                                                      
      if (size == 0)                                                  
        break;                                                        
                                                                      
      if (size > count)                                               
        size = count;                                                 
ffc272ec:	7f 9d e3 78 	mr      r29,r28                                
                                                                      
      memcpy (data, rtems_rfs_file_data (file), size);                
ffc272f0:	81 3b 00 14 	lwz     r9,20(r27)                             
ffc272f4:	7f 43 d3 78 	mr      r3,r26                                 
ffc272f8:	80 8a 00 1c 	lwz     r4,28(r10)                             
ffc272fc:	7f a5 eb 78 	mr      r5,r29                                 
                                                                      
      if (size == 0)                                                  
        break;                                                        
                                                                      
      if (size > count)                                               
        size = count;                                                 
ffc27300:	93 81 00 08 	stw     r28,8(r1)                              
ffc27304:	3b 80 00 00 	li      r28,0                                  
                                                                      
      memcpy (data, rtems_rfs_file_data (file), size);                
ffc27308:	7c 84 4a 14 	add     r4,r4,r9                               
ffc2730c:	48 00 33 01 	bl      ffc2a60c <memcpy>                      
                                                                      
      data  += size;                                                  
      count -= size;                                                  
      read  += size;                                                  
                                                                      
      rc = rtems_rfs_file_io_end (file, size, true);                  
ffc27310:	7f 63 db 78 	mr      r3,r27                                 
ffc27314:	7f a4 eb 78 	mr      r4,r29                                 
ffc27318:	38 a0 00 01 	li      r5,1                                   
ffc2731c:	4b ff d5 1d 	bl      ffc24838 <rtems_rfs_file_io_end>       
      if (size > count)                                               
        size = count;                                                 
                                                                      
      memcpy (data, rtems_rfs_file_data (file), size);                
                                                                      
      data  += size;                                                  
ffc27320:	7f 5a ea 14 	add     r26,r26,r29                            
      count -= size;                                                  
      read  += size;                                                  
                                                                      
      rc = rtems_rfs_file_io_end (file, size, true);                  
      if (rc > 0)                                                     
ffc27324:	7c 77 1b 79 	mr.     r23,r3                                 
                                                                      
  pos = iop->offset;                                                  
                                                                      
  if (pos < rtems_rfs_file_size (file))                               
  {                                                                   
    while (count)                                                     
ffc27328:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
                                                                      
      memcpy (data, rtems_rfs_file_data (file), size);                
                                                                      
      data  += size;                                                  
      count -= size;                                                  
      read  += size;                                                  
ffc2732c:	7f 3d ca 14 	add     r25,r29,r25                            
                                                                      
      rc = rtems_rfs_file_io_end (file, size, true);                  
      if (rc > 0)                                                     
ffc27330:	40 81 ff 88 	ble+    ffc272b8 <rtems_rfs_rtems_file_read+0x15c><== ALWAYS TAKEN
      {                                                               
        read = rtems_rfs_rtems_error ("file-read: read: io-end", rc); 
ffc27334:	48 00 1c c5 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
  }                                                                   
                                                                      
  if (read >= 0)                                                      
    iop->offset = pos + read;                                         
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
ffc27338:	81 3b 00 1c 	lwz     r9,28(r27)                             <== NOT EXECUTED
      read  += size;                                                  
                                                                      
      rc = rtems_rfs_file_io_end (file, size, true);                  
      if (rc > 0)                                                     
      {                                                               
        read = rtems_rfs_rtems_error ("file-read: read: io-end", rc); 
ffc2733c:	92 e3 00 00 	stw     r23,0(r3)                              <== NOT EXECUTED
ffc27340:	3b 20 ff ff 	li      r25,-1                                 <== NOT EXECUTED
  }                                                                   
                                                                      
  if (read >= 0)                                                      
    iop->offset = pos + read;                                         
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
ffc27344:	80 69 00 98 	lwz     r3,152(r9)                             <== NOT EXECUTED
 * 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);            
ffc27348:	83 e3 00 80 	lwz     r31,128(r3)                            <== NOT EXECUTED
  rtems_rfs_buffers_release (fs);                                     
ffc2734c:	4b ff b1 9d 	bl      ffc224e8 <rtems_rfs_buffers_release>   <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)                       
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_release (*mutex);            
ffc27350:	80 7f 00 00 	lwz     r3,0(r31)                              <== NOT EXECUTED
ffc27354:	4b fe 8c 29 	bl      ffc0ff7c <rtems_semaphore_release>     <== NOT EXECUTED
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc27358:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc2735c:	41 82 fe c8 	beq+    ffc27224 <rtems_rfs_rtems_file_read+0xc8><== NOT EXECUTED
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc27360:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc27364:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc27368:	4b ff 0b 35 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc2736c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc27370:	41 9e fe b4 	beq+    cr7,ffc27224 <rtems_rfs_rtems_file_read+0xc8><== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
ffc27374:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc27378:	4b ff 4e 91 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc2737c:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc27380:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc27384:	38 63 c3 ac 	addi    r3,r3,-15444                           <== NOT EXECUTED
ffc27388:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2738c:	48 00 37 0d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
                                                                      
  return read;                                                        
}                                                                     
ffc27390:	80 01 00 44 	lwz     r0,68(r1)                              <== NOT EXECUTED
ffc27394:	7f 23 cb 78 	mr      r3,r25                                 <== NOT EXECUTED
ffc27398:	82 e1 00 1c 	lwz     r23,28(r1)                             <== NOT EXECUTED
ffc2739c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc273a0:	83 01 00 20 	lwz     r24,32(r1)                             <== NOT EXECUTED
ffc273a4:	83 21 00 24 	lwz     r25,36(r1)                             <== NOT EXECUTED
ffc273a8:	83 41 00 28 	lwz     r26,40(r1)                             <== NOT EXECUTED
ffc273ac:	83 61 00 2c 	lwz     r27,44(r1)                             <== NOT EXECUTED
ffc273b0:	83 81 00 30 	lwz     r28,48(r1)                             <== NOT EXECUTED
ffc273b4:	83 a1 00 34 	lwz     r29,52(r1)                             <== NOT EXECUTED
ffc273b8:	83 c1 00 38 	lwz     r30,56(r1)                             <== NOT EXECUTED
ffc273bc:	83 e1 00 3c 	lwz     r31,60(r1)                             <== NOT EXECUTED
ffc273c0:	38 21 00 40 	addi    r1,r1,64                               <== NOT EXECUTED
ffc273c4:	4e 80 00 20 	blr                                            <== NOT EXECUTED
        break;                                                        
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if (read >= 0)                                                      
ffc273c8:	2f 99 00 00 	cmpwi   cr7,r25,0                              
ffc273cc:	41 bc fe 38 	blt-    cr7,ffc27204 <rtems_rfs_rtems_file_read+0xa8><== NEVER TAKEN
ffc273d0:	7f 2b cb 78 	mr      r11,r25                                
ffc273d4:	7f 2a fe 70 	srawi   r10,r25,31                             
ffc273d8:	4b ff fe 1c 	b       ffc271f4 <rtems_rfs_rtems_file_read+0x98>
#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))                      
ffc273dc:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc273e0:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc273e4:	4b ff 0a b9 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc273e8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc273ec:	41 9e fd d4 	beq+    cr7,ffc271c0 <rtems_rfs_rtems_file_read+0x64><== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
ffc273f0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc273f4:	4b ff 4e 15 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc273f8:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc273fc:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc27400:	38 63 c4 10 	addi    r3,r3,-15344                           <== NOT EXECUTED
ffc27404:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc27408:	48 00 36 91 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc2740c:	4b ff fd b4 	b       ffc271c0 <rtems_rfs_rtems_file_read+0x64><== NOT EXECUTED
      size_t size;                                                    
                                                                      
      rc = rtems_rfs_file_io_start (file, &size, true);               
      if (rc > 0)                                                     
      {                                                               
        read = rtems_rfs_rtems_error ("file-read: read: io-start", rc);
ffc27410:	48 00 1b e9 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc27414:	3b 20 ff ff 	li      r25,-1                                 <== NOT EXECUTED
ffc27418:	93 a3 00 00 	stw     r29,0(r3)                              <== NOT EXECUTED
ffc2741c:	4b ff fd e8 	b       ffc27204 <rtems_rfs_rtems_file_read+0xa8><== NOT EXECUTED
                                                                      

ffc27818 <rtems_rfs_rtems_file_write>: */ static ssize_t rtems_rfs_rtems_file_write (rtems_libio_t* iop, const void* buffer, size_t count) {
ffc27818:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc2781c:	7c 08 02 a6 	mflr    r0                                     
ffc27820:	90 01 00 34 	stw     r0,52(r1)                              
ffc27824:	93 c1 00 28 	stw     r30,40(r1)                             
  rtems_rfs_file_handle* file = rtems_rfs_rtems_get_iop_file_handle (iop);
ffc27828:	83 c3 00 20 	lwz     r30,32(r3)                             
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_file_write (rtems_libio_t* iop,                       
                            const void*    buffer,                    
                            size_t         count)                     
{                                                                     
ffc2782c:	93 61 00 1c 	stw     r27,28(r1)                             
ffc27830:	7c 7b 1b 78 	mr      r27,r3                                 
  int                    rc;                                          
                                                                      
  if (rtems_rfs_rtems_trace (RTEMS_RFS_RTEMS_DEBUG_FILE_WRITE))       
    printf("rtems-rfs: file-write: handle:%p count:%zd\n", file, count);
                                                                      
  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));                    
ffc27834:	81 3e 00 1c 	lwz     r9,28(r30)                             
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_file_write (rtems_libio_t* iop,                       
                            const void*    buffer,                    
                            size_t         count)                     
{                                                                     
ffc27838:	93 a1 00 24 	stw     r29,36(r1)                             
ffc2783c:	7c 9d 23 78 	mr      r29,r4                                 
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)                         
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
ffc27840:	38 80 00 00 	li      r4,0                                   
  .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                       
};                                                                    
ffc27844:	81 29 00 98 	lwz     r9,152(r9)                             
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_file_write (rtems_libio_t* iop,                       
                            const void*    buffer,                    
                            size_t         count)                     
{                                                                     
ffc27848:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc2784c:	7c bf 2b 78 	mr      r31,r5                                 
ffc27850:	38 a0 00 00 	li      r5,0                                   
  .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                       
};                                                                    
ffc27854:	81 29 00 80 	lwz     r9,128(r9)                             
 */                                                                   
static ssize_t                                                        
rtems_rfs_rtems_file_write (rtems_libio_t* iop,                       
                            const void*    buffer,                    
                            size_t         count)                     
{                                                                     
ffc27858:	93 81 00 20 	stw     r28,32(r1)                             
ffc2785c:	80 69 00 00 	lwz     r3,0(r9)                               
ffc27860:	93 41 00 18 	stw     r26,24(r1)                             
ffc27864:	4b fe 85 79 	bl      ffc0fddc <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc27868:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc2786c:	40 82 01 cc 	bne-    ffc27a38 <rtems_rfs_rtems_file_write+0x220><== NEVER TAKEN
    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);                             
ffc27870:	81 3e 00 1c 	lwz     r9,28(r30)                             
  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;                                                  
ffc27874:	81 1b 00 08 	lwz     r8,8(r27)                              
ffc27878:	38 89 00 84 	addi    r4,r9,132                              
ffc2787c:	80 69 00 98 	lwz     r3,152(r9)                             
ffc27880:	81 3b 00 0c 	lwz     r9,12(r27)                             
ffc27884:	91 01 00 08 	stw     r8,8(r1)                               
ffc27888:	91 21 00 0c 	stw     r9,12(r1)                              
ffc2788c:	4b ff 93 6d 	bl      ffc20bf8 <rtems_rfs_block_get_size>    
ffc27890:	7c 69 1b 78 	mr      r9,r3                                  
  file_size = rtems_rfs_file_size (file);                             
  if (pos > file_size)                                                
ffc27894:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc27898:	80 c1 00 0c 	lwz     r6,12(r1)                              
ffc2789c:	7f 85 48 40 	cmplw   cr7,r5,r9                              
ffc278a0:	41 9d 01 fc 	bgt-    cr7,ffc27a9c <rtems_rfs_rtems_file_write+0x284><== NEVER TAKEN
ffc278a4:	7f 85 48 00 	cmpw    cr7,r5,r9                              
ffc278a8:	41 9e 02 5c 	beq-    cr7,ffc27b04 <rtems_rfs_rtems_file_write+0x2ec><== ALWAYS TAKEN
      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) 
ffc278ac:	7f 89 28 40 	cmplw   cr7,r9,r5                              
ffc278b0:	40 9d 00 f8 	ble-    cr7,ffc279a8 <rtems_rfs_rtems_file_write+0x190><== ALWAYS TAKEN
ffc278b4:	81 5b 00 10 	lwz     r10,16(r27)                            
ffc278b8:	71 4b 02 00 	andi.   r11,r10,512                            
ffc278bc:	40 82 02 6c 	bne-    ffc27b28 <rtems_rfs_rtems_file_write+0x310>
      rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));              
      return rtems_rfs_rtems_error ("file-write: write append seek", rc);
    }                                                                 
  }                                                                   
                                                                      
  while (count)                                                       
ffc278c0:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc278c4:	39 40 00 00 	li      r10,0                                  
ffc278c8:	39 60 00 00 	li      r11,0                                  
ffc278cc:	3b 80 00 00 	li      r28,0                                  
ffc278d0:	40 be 00 60 	bne+    cr7,ffc27930 <rtems_rfs_rtems_file_write+0x118><== ALWAYS TAKEN
ffc278d4:	48 00 00 f8 	b       ffc279cc <rtems_rfs_rtems_file_write+0x1b4><== NOT EXECUTED
    {                                                                 
      write = rtems_rfs_rtems_error ("file-write: write open", rc);   
      break;                                                          
    }                                                                 
                                                                      
    if (size > count)                                                 
ffc278d8:	80 a1 00 10 	lwz     r5,16(r1)                              
ffc278dc:	7f 85 f8 40 	cmplw   cr7,r5,r31                             
ffc278e0:	40 9d 00 0c 	ble-    cr7,ffc278ec <rtems_rfs_rtems_file_write+0xd4>
      size = count;                                                   
ffc278e4:	93 e1 00 10 	stw     r31,16(r1)                             
ffc278e8:	7f e5 fb 78 	mr      r5,r31                                 
                                                                      
    memcpy (rtems_rfs_file_data (file), data, size);                  
ffc278ec:	81 5e 00 0c 	lwz     r10,12(r30)                            
ffc278f0:	80 7e 00 14 	lwz     r3,20(r30)                             
ffc278f4:	81 4a 00 1c 	lwz     r10,28(r10)                            
ffc278f8:	7c 6a 1a 14 	add     r3,r10,r3                              
ffc278fc:	48 00 2d 11 	bl      ffc2a60c <memcpy>                      
                                                                      
    data  += size;                                                    
ffc27900:	81 21 00 10 	lwz     r9,16(r1)                              
    count -= size;                                                    
    write  += size;                                                   
                                                                      
    rc = rtems_rfs_file_io_end (file, size, false);                   
ffc27904:	7f c3 f3 78 	mr      r3,r30                                 
ffc27908:	7d 24 4b 78 	mr      r4,r9                                  
ffc2790c:	38 a0 00 00 	li      r5,0                                   
      size = count;                                                   
                                                                      
    memcpy (rtems_rfs_file_data (file), data, size);                  
                                                                      
    data  += size;                                                    
    count -= size;                                                    
ffc27910:	7f e9 f8 50 	subf    r31,r9,r31                             
    if (size > count)                                                 
      size = count;                                                   
                                                                      
    memcpy (rtems_rfs_file_data (file), data, size);                  
                                                                      
    data  += size;                                                    
ffc27914:	7f bd 4a 14 	add     r29,r29,r9                             
    count -= size;                                                    
    write  += size;                                                   
ffc27918:	7f 9c 4a 14 	add     r28,r28,r9                             
                                                                      
    rc = rtems_rfs_file_io_end (file, size, false);                   
ffc2791c:	4b ff cf 1d 	bl      ffc24838 <rtems_rfs_file_io_end>       
    if (rc)                                                           
ffc27920:	7c 7a 1b 79 	mr.     r26,r3                                 
      rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));              
      return rtems_rfs_rtems_error ("file-write: write append seek", rc);
    }                                                                 
  }                                                                   
                                                                      
  while (count)                                                       
ffc27924:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
    data  += size;                                                    
    count -= size;                                                    
    write  += size;                                                   
                                                                      
    rc = rtems_rfs_file_io_end (file, size, false);                   
    if (rc)                                                           
ffc27928:	40 82 00 28 	bne-    ffc27950 <rtems_rfs_rtems_file_write+0x138><== NEVER TAKEN
      rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));              
      return rtems_rfs_rtems_error ("file-write: write append seek", rc);
    }                                                                 
  }                                                                   
                                                                      
  while (count)                                                       
ffc2792c:	41 9e 00 90 	beq-    cr7,ffc279bc <rtems_rfs_rtems_file_write+0x1a4>
  {                                                                   
    size_t size = count;                                              
                                                                      
    rc = rtems_rfs_file_io_start (file, &size, false);                
ffc27930:	38 81 00 10 	addi    r4,r1,16                               
    }                                                                 
  }                                                                   
                                                                      
  while (count)                                                       
  {                                                                   
    size_t size = count;                                              
ffc27934:	93 e1 00 10 	stw     r31,16(r1)                             
                                                                      
    rc = rtems_rfs_file_io_start (file, &size, false);                
ffc27938:	38 a0 00 00 	li      r5,0                                   
ffc2793c:	7f c3 f3 78 	mr      r3,r30                                 
ffc27940:	4b ff cc a1 	bl      ffc245e0 <rtems_rfs_file_io_start>     
    }                                                                 
                                                                      
    if (size > count)                                                 
      size = count;                                                   
                                                                      
    memcpy (rtems_rfs_file_data (file), data, size);                  
ffc27944:	7f a4 eb 78 	mr      r4,r29                                 
  while (count)                                                       
  {                                                                   
    size_t size = count;                                              
                                                                      
    rc = rtems_rfs_file_io_start (file, &size, false);                
    if (rc)                                                           
ffc27948:	7c 7a 1b 79 	mr.     r26,r3                                 
ffc2794c:	41 82 ff 8c 	beq+    ffc278d8 <rtems_rfs_rtems_file_write+0xc0>
    write  += size;                                                   
                                                                      
    rc = rtems_rfs_file_io_end (file, size, false);                   
    if (rc)                                                           
    {                                                                 
      write = rtems_rfs_rtems_error ("file-write: write close", rc);  
ffc27950:	48 00 16 a9 	bl      ffc28ff8 <__errno>                     
ffc27954:	3b 80 ff ff 	li      r28,-1                                 
ffc27958:	93 43 00 00 	stw     r26,0(r3)                              
  }                                                                   
                                                                      
  if (write >= 0)                                                     
    iop->offset = pos + write;                                        
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
ffc2795c:	81 3e 00 1c 	lwz     r9,28(r30)                             
ffc27960:	80 69 00 98 	lwz     r3,152(r9)                             
 * 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);            
ffc27964:	83 e3 00 80 	lwz     r31,128(r3)                            
  rtems_rfs_buffers_release (fs);                                     
ffc27968:	4b ff ab 81 	bl      ffc224e8 <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);            
ffc2796c:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc27970:	4b fe 86 0d 	bl      ffc0ff7c <rtems_semaphore_release>     
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc27974:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc27978:	40 82 00 8c 	bne-    ffc27a04 <rtems_rfs_rtems_file_write+0x1ec><== NEVER TAKEN
                                                                      
  return write;                                                       
}                                                                     
ffc2797c:	80 01 00 34 	lwz     r0,52(r1)                              
ffc27980:	7f 83 e3 78 	mr      r3,r28                                 
ffc27984:	83 41 00 18 	lwz     r26,24(r1)                             
ffc27988:	7c 08 03 a6 	mtlr    r0                                     
ffc2798c:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc27990:	83 81 00 20 	lwz     r28,32(r1)                             
ffc27994:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc27998:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc2799c:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc279a0:	38 21 00 30 	addi    r1,r1,48                               
ffc279a4:	4e 80 00 20 	blr                                            
      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) 
ffc279a8:	7f 89 28 00 	cmpw    cr7,r9,r5                              
ffc279ac:	40 be ff 14 	bne-    cr7,ffc278c0 <rtems_rfs_rtems_file_write+0xa8><== NEVER TAKEN
ffc279b0:	7f 84 30 40 	cmplw   cr7,r4,r6                              
ffc279b4:	40 bd ff 0c 	ble-    cr7,ffc278c0 <rtems_rfs_rtems_file_write+0xa8>
ffc279b8:	4b ff fe fc 	b       ffc278b4 <rtems_rfs_rtems_file_write+0x9c>
      write = rtems_rfs_rtems_error ("file-write: write close", rc);  
      break;                                                          
    }                                                                 
  }                                                                   
                                                                      
  if (write >= 0)                                                     
ffc279bc:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc279c0:	7f 8b e3 78 	mr      r11,r28                                
ffc279c4:	7f 8a fe 70 	srawi   r10,r28,31                             
ffc279c8:	41 bc ff 94 	blt-    cr7,ffc2795c <rtems_rfs_rtems_file_write+0x144><== NEVER TAKEN
    iop->offset = pos + write;                                        
ffc279cc:	81 01 00 08 	lwz     r8,8(r1)                               
ffc279d0:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc279d4:	7d 6b 48 14 	addc    r11,r11,r9                             
ffc279d8:	7d 4a 41 14 	adde    r10,r10,r8                             
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
ffc279dc:	81 3e 00 1c 	lwz     r9,28(r30)                             
      break;                                                          
    }                                                                 
  }                                                                   
                                                                      
  if (write >= 0)                                                     
    iop->offset = pos + write;                                        
ffc279e0:	91 5b 00 08 	stw     r10,8(r27)                             
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
ffc279e4:	80 69 00 98 	lwz     r3,152(r9)                             
      break;                                                          
    }                                                                 
  }                                                                   
                                                                      
  if (write >= 0)                                                     
    iop->offset = pos + write;                                        
ffc279e8:	91 7b 00 0c 	stw     r11,12(r27)                            
 * 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);            
ffc279ec:	83 e3 00 80 	lwz     r31,128(r3)                            
  rtems_rfs_buffers_release (fs);                                     
ffc279f0:	4b ff aa f9 	bl      ffc224e8 <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);            
ffc279f4:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc279f8:	4b fe 85 85 	bl      ffc0ff7c <rtems_semaphore_release>     
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc279fc:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc27a00:	41 82 ff 7c 	beq+    ffc2797c <rtems_rfs_rtems_file_write+0x164><== ALWAYS TAKEN
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc27a04:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc27a08:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc27a0c:	4b ff 04 91 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc27a10:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc27a14:	41 9e ff 68 	beq+    cr7,ffc2797c <rtems_rfs_rtems_file_write+0x164><== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
ffc27a18:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc27a1c:	4b ff 47 ed 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc27a20:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc27a24:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc27a28:	38 63 c3 ac 	addi    r3,r3,-15444                           <== NOT EXECUTED
ffc27a2c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc27a30:	48 00 30 69 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc27a34:	4b ff ff 48 	b       ffc2797c <rtems_rfs_rtems_file_write+0x164><== 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))                      
ffc27a38:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc27a3c:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc27a40:	4b ff 04 5d 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc27a44:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc27a48:	41 9e fe 28 	beq+    cr7,ffc27870 <rtems_rfs_rtems_file_write+0x58><== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
ffc27a4c:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc27a50:	4b ff 47 b9 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc27a54:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc27a58:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc27a5c:	38 63 c4 10 	addi    r3,r3,-15344                           <== NOT EXECUTED
ffc27a60:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc27a64:	48 00 30 35 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    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);                             
ffc27a68:	81 3e 00 1c 	lwz     r9,28(r30)                             <== NOT EXECUTED
  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;                                                  
ffc27a6c:	81 1b 00 08 	lwz     r8,8(r27)                              <== NOT EXECUTED
ffc27a70:	38 89 00 84 	addi    r4,r9,132                              <== NOT EXECUTED
ffc27a74:	80 69 00 98 	lwz     r3,152(r9)                             <== NOT EXECUTED
ffc27a78:	81 3b 00 0c 	lwz     r9,12(r27)                             <== NOT EXECUTED
ffc27a7c:	91 01 00 08 	stw     r8,8(r1)                               <== NOT EXECUTED
ffc27a80:	91 21 00 0c 	stw     r9,12(r1)                              <== NOT EXECUTED
ffc27a84:	4b ff 91 75 	bl      ffc20bf8 <rtems_rfs_block_get_size>    <== NOT EXECUTED
ffc27a88:	7c 69 1b 78 	mr      r9,r3                                  <== NOT EXECUTED
  file_size = rtems_rfs_file_size (file);                             
  if (pos > file_size)                                                
ffc27a8c:	80 a1 00 08 	lwz     r5,8(r1)                               <== NOT EXECUTED
ffc27a90:	80 c1 00 0c 	lwz     r6,12(r1)                              <== NOT EXECUTED
ffc27a94:	7f 85 48 40 	cmplw   cr7,r5,r9                              <== NOT EXECUTED
ffc27a98:	40 9d fe 0c 	ble+    cr7,ffc278a4 <rtems_rfs_rtems_file_write+0x8c><== NOT EXECUTED
    /*                                                                
     * 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);                         
ffc27a9c:	7f c3 f3 78 	mr      r3,r30                                 
ffc27aa0:	4b ff d2 09 	bl      ffc24ca8 <rtems_rfs_file_set_size>     
    if (rc)                                                           
    {                                                                 
      rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));              
ffc27aa4:	81 3e 00 1c 	lwz     r9,28(r30)                             
     * 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)                                                           
ffc27aa8:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc27aac:	41 82 00 64 	beq-    ffc27b10 <rtems_rfs_rtems_file_write+0x2f8><== ALWAYS TAKEN
  {                                                                   
    pos = file_size;                                                  
    rc = rtems_rfs_file_seek (file, pos, &pos);                       
    if (rc)                                                           
    {                                                                 
      rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));              
ffc27ab0:	80 69 00 98 	lwz     r3,152(r9)                             <== NOT EXECUTED
 * 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);            
ffc27ab4:	83 e3 00 80 	lwz     r31,128(r3)                            <== NOT EXECUTED
  rtems_rfs_buffers_release (fs);                                     
ffc27ab8:	4b ff aa 31 	bl      ffc224e8 <rtems_rfs_buffers_release>   <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_unlock (rtems_rfs_mutex* mutex)                       
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_release (*mutex);            
ffc27abc:	80 7f 00 00 	lwz     r3,0(r31)                              <== NOT EXECUTED
ffc27ac0:	4b fe 84 bd 	bl      ffc0ff7c <rtems_semaphore_release>     <== NOT EXECUTED
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc27ac4:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc27ac8:	40 82 00 8c 	bne-    ffc27b54 <rtems_rfs_rtems_file_write+0x33c><== NOT EXECUTED
      return rtems_rfs_rtems_error ("file-write: write append seek", rc);
ffc27acc:	48 00 15 2d 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
    iop->offset = pos + write;                                        
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
                                                                      
  return write;                                                       
}                                                                     
ffc27ad0:	80 01 00 34 	lwz     r0,52(r1)                              <== NOT EXECUTED
    pos = file_size;                                                  
    rc = rtems_rfs_file_seek (file, pos, &pos);                       
    if (rc)                                                           
    {                                                                 
      rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));              
      return rtems_rfs_rtems_error ("file-write: write append seek", rc);
ffc27ad4:	93 83 00 00 	stw     r28,0(r3)                              <== NOT EXECUTED
ffc27ad8:	3b 80 ff ff 	li      r28,-1                                 <== NOT EXECUTED
    iop->offset = pos + write;                                        
                                                                      
  rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));                  
                                                                      
  return write;                                                       
}                                                                     
ffc27adc:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc27ae0:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc27ae4:	83 41 00 18 	lwz     r26,24(r1)                             <== NOT EXECUTED
ffc27ae8:	83 61 00 1c 	lwz     r27,28(r1)                             <== NOT EXECUTED
ffc27aec:	83 81 00 20 	lwz     r28,32(r1)                             <== NOT EXECUTED
ffc27af0:	83 a1 00 24 	lwz     r29,36(r1)                             <== NOT EXECUTED
ffc27af4:	83 c1 00 28 	lwz     r30,40(r1)                             <== NOT EXECUTED
ffc27af8:	83 e1 00 2c 	lwz     r31,44(r1)                             <== NOT EXECUTED
ffc27afc:	38 21 00 30 	addi    r1,r1,48                               <== NOT EXECUTED
ffc27b00:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      
  rtems_rfs_rtems_lock (rtems_rfs_file_fs (file));                    
                                                                      
  pos = iop->offset;                                                  
  file_size = rtems_rfs_file_size (file);                             
  if (pos > file_size)                                                
ffc27b04:	7f 86 20 40 	cmplw   cr7,r6,r4                              
ffc27b08:	40 9d fd a4 	ble+    cr7,ffc278ac <rtems_rfs_rtems_file_write+0x94>
ffc27b0c:	4b ff ff 90 	b       ffc27a9c <rtems_rfs_rtems_file_write+0x284>
    {                                                                 
      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);                              
ffc27b10:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc27b14:	38 fe 00 10 	addi    r7,r30,16                              
ffc27b18:	80 c1 00 0c 	lwz     r6,12(r1)                              
ffc27b1c:	80 69 00 98 	lwz     r3,152(r9)                             
ffc27b20:	4b ff 8f 91 	bl      ffc20ab0 <rtems_rfs_block_get_bpos>    
ffc27b24:	4b ff fd 9c 	b       ffc278c0 <rtems_rfs_rtems_file_write+0xa8>
  }                                                                   
  else if (pos < file_size && (iop->flags & LIBIO_FLAGS_APPEND) != 0) 
  {                                                                   
    pos = file_size;                                                  
    rc = rtems_rfs_file_seek (file, pos, &pos);                       
ffc27b28:	7f c3 f3 78 	mr      r3,r30                                 
                                                                      
    rtems_rfs_file_set_bpos (file, pos);                              
  }                                                                   
  else if (pos < file_size && (iop->flags & LIBIO_FLAGS_APPEND) != 0) 
  {                                                                   
    pos = file_size;                                                  
ffc27b2c:	91 21 00 08 	stw     r9,8(r1)                               
    rc = rtems_rfs_file_seek (file, pos, &pos);                       
ffc27b30:	7d 25 4b 78 	mr      r5,r9                                  
ffc27b34:	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;                                                  
ffc27b38:	90 81 00 0c 	stw     r4,12(r1)                              
    rc = rtems_rfs_file_seek (file, pos, &pos);                       
ffc27b3c:	38 e1 00 08 	addi    r7,r1,8                                
ffc27b40:	4b ff d0 09 	bl      ffc24b48 <rtems_rfs_file_seek>         
    if (rc)                                                           
ffc27b44:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc27b48:	41 82 fd 78 	beq+    ffc278c0 <rtems_rfs_rtems_file_write+0xa8><== ALWAYS TAKEN
    {                                                                 
      rtems_rfs_rtems_unlock (rtems_rfs_file_fs (file));              
ffc27b4c:	81 3e 00 1c 	lwz     r9,28(r30)                             <== NOT EXECUTED
ffc27b50:	4b ff ff 60 	b       ffc27ab0 <rtems_rfs_rtems_file_write+0x298><== NOT EXECUTED
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc27b54:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc27b58:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc27b5c:	4b ff 03 41 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc27b60:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc27b64:	41 9e ff 68 	beq+    cr7,ffc27acc <rtems_rfs_rtems_file_write+0x2b4><== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
ffc27b68:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc27b6c:	4b ff 46 9d 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc27b70:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc27b74:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc27b78:	38 63 c3 ac 	addi    r3,r3,-15444                           <== NOT EXECUTED
ffc27b7c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc27b80:	48 00 2f 19 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc27b84:	4b ff ff 48 	b       ffc27acc <rtems_rfs_rtems_file_write+0x2b4><== NOT EXECUTED
                                                                      

ffc17374 <rtems_rfs_rtems_fstat>: } int rtems_rfs_rtems_fstat (const rtems_filesystem_location_info_t* pathloc, struct stat* buf) {
ffc17374:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc17378:	7c 08 02 a6 	mflr    r0                                     
  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);                  
ffc1737c:	38 c0 00 01 	li      r6,1                                   
}                                                                     
                                                                      
int                                                                   
rtems_rfs_rtems_fstat (const rtems_filesystem_location_info_t* pathloc,
                       struct stat*                            buf)   
{                                                                     
ffc17380:	90 01 00 4c 	stw     r0,76(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);                  
ffc17384:	38 a1 00 08 	addi    r5,r1,8                                
                                                                      
int                                                                   
rtems_rfs_rtems_fstat (const rtems_filesystem_location_info_t* pathloc,
                       struct stat*                            buf)   
{                                                                     
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
ffc17388:	81 23 00 14 	lwz     r9,20(r3)                              
}                                                                     
                                                                      
int                                                                   
rtems_rfs_rtems_fstat (const rtems_filesystem_location_info_t* pathloc,
                       struct stat*                            buf)   
{                                                                     
ffc1738c:	93 c1 00 40 	stw     r30,64(r1)                             
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
ffc17390:	83 c9 00 08 	lwz     r30,8(r9)                              
}                                                                     
                                                                      
int                                                                   
rtems_rfs_rtems_fstat (const rtems_filesystem_location_info_t* pathloc,
                       struct stat*                            buf)   
{                                                                     
ffc17394:	93 e1 00 44 	stw     r31,68(r1)                             
ffc17398:	7c 9f 23 78 	mr      r31,r4                                 
  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);                  
ffc1739c:	80 83 00 08 	lwz     r4,8(r3)                               
ffc173a0:	7f c3 f3 78 	mr      r3,r30                                 
}                                                                     
                                                                      
int                                                                   
rtems_rfs_rtems_fstat (const rtems_filesystem_location_info_t* pathloc,
                       struct stat*                            buf)   
{                                                                     
ffc173a4:	93 a1 00 3c 	stw     r29,60(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);                  
ffc173a8:	4b ff ea 05 	bl      ffc15dac <rtems_rfs_inode_open>        
  if (rc)                                                             
ffc173ac:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc173b0:	40 82 01 fc 	bne-    ffc175ac <rtems_rfs_rtems_fstat+0x238> <== NEVER TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("stat: opening inode", rc);         
  }                                                                   
                                                                      
  mode = rtems_rfs_inode_get_mode (&inode);                           
ffc173b4:	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);                    
ffc173b8:	88 69 00 02 	lbz     r3,2(r9)                               
ffc173bc:	89 49 00 03 	lbz     r10,3(r9)                              
ffc173c0:	54 63 40 2e 	rlwinm  r3,r3,8,0,23                           
ffc173c4:	7c 63 53 78 	or      r3,r3,r10                              
                                                                      
  if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK (mode))           
ffc173c8:	54 6a 04 26 	rlwinm  r10,r3,0,16,19                         
ffc173cc:	2f 8a 20 00 	cmpwi   cr7,r10,8192                           
ffc173d0:	41 9e 01 3c 	beq-    cr7,ffc1750c <rtems_rfs_rtems_fstat+0x198><== NEVER TAKEN
ffc173d4:	2f 8a 60 00 	cmpwi   cr7,r10,24576                          
ffc173d8:	41 9e 01 34 	beq-    cr7,ffc1750c <rtems_rfs_rtems_fstat+0x198><== NEVER TAKEN
    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);                         
ffc173dc:	81 3e 00 10 	lwz     r9,16(r30)                             
ffc173e0:	7d 2a fe 70 	srawi   r10,r9,31                              
ffc173e4:	91 3f 00 04 	stw     r9,4(r31)                              
  buf->st_ino     = rtems_rfs_inode_ino (&inode);                     
ffc173e8:	81 21 00 10 	lwz     r9,16(r1)                              
    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);                         
ffc173ec:	91 5f 00 00 	stw     r10,0(r31)                             
  buf->st_ino     = rtems_rfs_inode_ino (&inode);                     
ffc173f0:	91 3f 00 08 	stw     r9,8(r31)                              
  buf->st_mode    = rtems_rfs_rtems_mode (mode);                      
ffc173f4:	48 00 0a a5 	bl      ffc17e98 <rtems_rfs_rtems_mode>        
  buf->st_nlink   = rtems_rfs_inode_get_links (&inode);               
ffc173f8:	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);                      
ffc173fc:	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);                  
ffc17400:	89 49 00 00 	lbz     r10,0(r9)                              
ffc17404:	89 09 00 01 	lbz     r8,1(r9)                               
ffc17408:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc1740c:	7d 4a 43 78 	or      r10,r10,r8                             
  if (links == 0xffff)                                                
ffc17410:	6d 48 ff ff 	xoris   r8,r10,65535                           
ffc17414:	2f 88 ff ff 	cmpwi   cr7,r8,-1                              
ffc17418:	41 9e 01 8c 	beq-    cr7,ffc175a4 <rtems_rfs_rtems_fstat+0x230><== NEVER TAKEN
  buf->st_nlink   = rtems_rfs_inode_get_links (&inode);               
ffc1741c:	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));
ffc17420:	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;          
ffc17424:	89 49 00 06 	lbz     r10,6(r9)                              
ffc17428:	89 09 00 07 	lbz     r8,7(r9)                               
ffc1742c:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         
ffc17430:	80 81 00 10 	lwz     r4,16(r1)                              
ffc17434:	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);                 
ffc17438:	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;  
ffc1743c:	89 49 00 04 	lbz     r10,4(r9)                              
ffc17440:	89 29 00 05 	lbz     r9,5(r9)                               
ffc17444:	55 4a c0 0e 	rlwinm  r10,r10,24,0,7                         
ffc17448:	55 29 80 1e 	rlwinm  r9,r9,16,0,15                          
ffc1744c:	7d 49 4b 78 	or      r9,r10,r9                              
ffc17450:	55 29 84 3e 	rlwinm  r9,r9,16,16,31                         
ffc17454:	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));
ffc17458:	48 00 dc 05 	bl      ffc2505c <rtems_rfs_file_get_shared>   
                                                                      
  if (shared)                                                         
ffc1745c:	7c 64 1b 79 	mr.     r4,r3                                  
ffc17460:	41 82 01 74 	beq-    ffc175d4 <rtems_rfs_rtems_fstat+0x260> 
    buf->st_atime   = rtems_rfs_file_shared_get_atime (shared);       
    buf->st_mtime   = rtems_rfs_file_shared_get_mtime (shared);       
    buf->st_ctime   = rtems_rfs_file_shared_get_ctime (shared);       
    buf->st_blocks  = rtems_rfs_file_shared_get_block_count (shared); 
                                                                      
    if (S_ISLNK (buf->st_mode))                                       
ffc17464:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc17468:	39 40 00 00 	li      r10,0                                  
ffc1746c:	61 4a a0 00 	ori     r10,r10,40960                          
   */                                                                 
  shared = rtems_rfs_file_get_shared (fs, rtems_rfs_inode_ino (&inode));
                                                                      
  if (shared)                                                         
  {                                                                   
    buf->st_atime   = rtems_rfs_file_shared_get_atime (shared);       
ffc17470:	80 e4 00 8c 	lwz     r7,140(r4)                             
    buf->st_mtime   = rtems_rfs_file_shared_get_mtime (shared);       
    buf->st_ctime   = rtems_rfs_file_shared_get_ctime (shared);       
    buf->st_blocks  = rtems_rfs_file_shared_get_block_count (shared); 
                                                                      
    if (S_ISLNK (buf->st_mode))                                       
ffc17474:	55 29 04 26 	rlwinm  r9,r9,0,16,19                          
  shared = rtems_rfs_file_get_shared (fs, rtems_rfs_inode_ino (&inode));
                                                                      
  if (shared)                                                         
  {                                                                   
    buf->st_atime   = rtems_rfs_file_shared_get_atime (shared);       
    buf->st_mtime   = rtems_rfs_file_shared_get_mtime (shared);       
ffc17478:	81 04 00 90 	lwz     r8,144(r4)                             
    buf->st_ctime   = rtems_rfs_file_shared_get_ctime (shared);       
    buf->st_blocks  = rtems_rfs_file_shared_get_block_count (shared); 
                                                                      
    if (S_ISLNK (buf->st_mode))                                       
ffc1747c:	7f 89 50 00 	cmpw    cr7,r9,r10                             
                                                                      
  if (shared)                                                         
  {                                                                   
    buf->st_atime   = rtems_rfs_file_shared_get_atime (shared);       
    buf->st_mtime   = rtems_rfs_file_shared_get_mtime (shared);       
    buf->st_ctime   = rtems_rfs_file_shared_get_ctime (shared);       
ffc17480:	81 44 00 94 	lwz     r10,148(r4)                            
    buf->st_blocks  = rtems_rfs_file_shared_get_block_count (shared); 
ffc17484:	81 24 00 84 	lwz     r9,132(r4)                             
   */                                                                 
  shared = rtems_rfs_file_get_shared (fs, rtems_rfs_inode_ino (&inode));
                                                                      
  if (shared)                                                         
  {                                                                   
    buf->st_atime   = rtems_rfs_file_shared_get_atime (shared);       
ffc17488:	90 ff 00 28 	stw     r7,40(r31)                             
    buf->st_mtime   = rtems_rfs_file_shared_get_mtime (shared);       
ffc1748c:	91 1f 00 30 	stw     r8,48(r31)                             
    buf->st_ctime   = rtems_rfs_file_shared_get_ctime (shared);       
ffc17490:	91 5f 00 38 	stw     r10,56(r31)                            
    buf->st_blocks  = rtems_rfs_file_shared_get_block_count (shared); 
ffc17494:	91 3f 00 44 	stw     r9,68(r31)                             
                                                                      
    if (S_ISLNK (buf->st_mode))                                       
ffc17498:	41 9e 00 60 	beq-    cr7,ffc174f8 <rtems_rfs_rtems_fstat+0x184><== NEVER TAKEN
 */                                                                   
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);                
ffc1749c:	7f c3 f3 78 	mr      r3,r30                                 
ffc174a0:	38 84 00 84 	addi    r4,r4,132                              
ffc174a4:	48 00 97 55 	bl      ffc20bf8 <rtems_rfs_block_get_size>    
      buf->st_size = rtems_rfs_file_shared_get_block_offset (shared); 
    else                                                              
      buf->st_size = rtems_rfs_file_shared_get_size (fs, shared);     
ffc174a8:	90 7f 00 20 	stw     r3,32(r31)                             
ffc174ac:	90 9f 00 24 	stw     r4,36(r31)                             
      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);                     
ffc174b0:	81 3e 00 08 	lwz     r9,8(r30)                              
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc174b4:	7f c3 f3 78 	mr      r3,r30                                 
ffc174b8:	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);                     
ffc174bc:	91 3f 00 40 	stw     r9,64(r31)                             
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc174c0:	4b ff eb 69 	bl      ffc16028 <rtems_rfs_inode_close>       
  if (rc > 0)                                                         
ffc174c4:	7c 7f 1b 79 	mr.     r31,r3                                 
  {                                                                   
    return rtems_rfs_rtems_error ("stat: closing inode", rc);         
  }                                                                   
                                                                      
  return 0;                                                           
ffc174c8:	38 60 00 00 	li      r3,0                                   
  }                                                                   
                                                                      
  buf->st_blksize = rtems_rfs_fs_block_size (fs);                     
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
  if (rc > 0)                                                         
ffc174cc:	40 81 00 10 	ble-    ffc174dc <rtems_rfs_rtems_fstat+0x168> <== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("stat: closing inode", rc);         
ffc174d0:	48 01 1b 29 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc174d4:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc174d8:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc174dc:	80 01 00 4c 	lwz     r0,76(r1)                              
ffc174e0:	83 a1 00 3c 	lwz     r29,60(r1)                             
ffc174e4:	7c 08 03 a6 	mtlr    r0                                     
ffc174e8:	83 c1 00 40 	lwz     r30,64(r1)                             
ffc174ec:	83 e1 00 44 	lwz     r31,68(r1)                             
ffc174f0:	38 21 00 48 	addi    r1,r1,72                               
ffc174f4:	4e 80 00 20 	blr                                            
    buf->st_mtime   = rtems_rfs_file_shared_get_mtime (shared);       
    buf->st_ctime   = rtems_rfs_file_shared_get_ctime (shared);       
    buf->st_blocks  = rtems_rfs_file_shared_get_block_count (shared); 
                                                                      
    if (S_ISLNK (buf->st_mode))                                       
      buf->st_size = rtems_rfs_file_shared_get_block_offset (shared); 
ffc174f8:	a1 24 00 8a 	lhz     r9,138(r4)                             <== NOT EXECUTED
ffc174fc:	91 3f 00 24 	stw     r9,36(r31)                             <== NOT EXECUTED
ffc17500:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc17504:	91 3f 00 20 	stw     r9,32(r31)                             <== NOT EXECUTED
ffc17508:	4b ff ff a8 	b       ffc174b0 <rtems_rfs_rtems_fstat+0x13c> <== NOT EXECUTED
 * @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]);      
ffc1750c:	89 69 00 20 	lbz     r11,32(r9)                             <== NOT EXECUTED
ffc17510:	88 09 00 21 	lbz     r0,33(r9)                              <== NOT EXECUTED
ffc17514:	88 89 00 1c 	lbz     r4,28(r9)                              <== NOT EXECUTED
ffc17518:	55 6b c0 0e 	rlwinm  r11,r11,24,0,7                         <== NOT EXECUTED
ffc1751c:	89 49 00 1d 	lbz     r10,29(r9)                             <== NOT EXECUTED
ffc17520:	88 a9 00 23 	lbz     r5,35(r9)                              <== NOT EXECUTED
ffc17524:	54 84 c0 0e 	rlwinm  r4,r4,24,0,7                           <== NOT EXECUTED
ffc17528:	88 e9 00 22 	lbz     r7,34(r9)                              <== NOT EXECUTED
ffc1752c:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        <== NOT EXECUTED
ffc17530:	88 c9 00 1f 	lbz     r6,31(r9)                              <== NOT EXECUTED
ffc17534:	7c 8a 53 78 	or      r10,r4,r10                             <== NOT EXECUTED
ffc17538:	89 09 00 1e 	lbz     r8,30(r9)                              <== NOT EXECUTED
ffc1753c:	54 09 80 1e 	rlwinm  r9,r0,16,0,15                          <== NOT EXECUTED
ffc17540:	7d 69 4b 78 	or      r9,r11,r9                              <== NOT EXECUTED
ffc17544:	7d 29 2b 78 	or      r9,r9,r5                               <== NOT EXECUTED
ffc17548:	54 e7 40 2e 	rlwinm  r7,r7,8,0,23                           <== NOT EXECUTED
ffc1754c:	7d 29 3b 78 	or      r9,r9,r7                               <== NOT EXECUTED
ffc17550:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           <== NOT EXECUTED
                                                                      
  mode = rtems_rfs_inode_get_mode (&inode);                           
                                                                      
  if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK (mode))           
  {                                                                   
    buf->st_rdev =                                                    
ffc17554:	91 3f 00 1c 	stw     r9,28(r31)                             <== NOT EXECUTED
ffc17558:	7d 4a 33 78 	or      r10,r10,r6                             <== 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);                         
ffc1755c:	81 3e 00 10 	lwz     r9,16(r30)                             <== NOT EXECUTED
ffc17560:	7d 4a 43 78 	or      r10,r10,r8                             <== NOT EXECUTED
                                                                      
  mode = rtems_rfs_inode_get_mode (&inode);                           
                                                                      
  if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK (mode))           
  {                                                                   
    buf->st_rdev =                                                    
ffc17564:	91 5f 00 18 	stw     r10,24(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);                         
ffc17568:	7d 2a fe 70 	srawi   r10,r9,31                              <== NOT EXECUTED
ffc1756c:	91 3f 00 04 	stw     r9,4(r31)                              <== NOT EXECUTED
  buf->st_ino     = rtems_rfs_inode_ino (&inode);                     
ffc17570:	81 21 00 10 	lwz     r9,16(r1)                              <== NOT EXECUTED
    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);                         
ffc17574:	91 5f 00 00 	stw     r10,0(r31)                             <== NOT EXECUTED
  buf->st_ino     = rtems_rfs_inode_ino (&inode);                     
ffc17578:	91 3f 00 08 	stw     r9,8(r31)                              <== NOT EXECUTED
  buf->st_mode    = rtems_rfs_rtems_mode (mode);                      
ffc1757c:	48 00 09 1d 	bl      ffc17e98 <rtems_rfs_rtems_mode>        <== NOT EXECUTED
  buf->st_nlink   = rtems_rfs_inode_get_links (&inode);               
ffc17580:	81 21 00 14 	lwz     r9,20(r1)                              <== NOT EXECUTED
                                   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);                      
ffc17584:	90 7f 00 0c 	stw     r3,12(r31)                             <== NOT EXECUTED
 */                                                                   
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);                  
ffc17588:	89 49 00 00 	lbz     r10,0(r9)                              <== NOT EXECUTED
ffc1758c:	89 09 00 01 	lbz     r8,1(r9)                               <== NOT EXECUTED
ffc17590:	55 4a 40 2e 	rlwinm  r10,r10,8,0,23                         <== NOT EXECUTED
ffc17594:	7d 4a 43 78 	or      r10,r10,r8                             <== NOT EXECUTED
  if (links == 0xffff)                                                
ffc17598:	6d 48 ff ff 	xoris   r8,r10,65535                           <== NOT EXECUTED
ffc1759c:	2f 88 ff ff 	cmpwi   cr7,r8,-1                              <== NOT EXECUTED
ffc175a0:	40 9e fe 7c 	bne+    cr7,ffc1741c <rtems_rfs_rtems_fstat+0xa8><== NOT EXECUTED
    links = 0;                                                        
ffc175a4:	39 40 00 00 	li      r10,0                                  <== NOT EXECUTED
ffc175a8:	4b ff fe 74 	b       ffc1741c <rtems_rfs_rtems_fstat+0xa8>  <== NOT EXECUTED
    printf ("rtems-rfs-rtems: stat: in: ino:%" PRId32 "\n", ino);     
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("stat: opening inode", rc);         
ffc175ac:	48 01 1a 4d 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("stat: closing inode", rc);         
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc175b0:	80 01 00 4c 	lwz     r0,76(r1)                              <== NOT EXECUTED
    printf ("rtems-rfs-rtems: stat: in: ino:%" PRId32 "\n", ino);     
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("stat: opening inode", rc);         
ffc175b4:	93 a3 00 00 	stw     r29,0(r3)                              <== NOT EXECUTED
ffc175b8:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("stat: closing inode", rc);         
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc175bc:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc175c0:	83 a1 00 3c 	lwz     r29,60(r1)                             <== NOT EXECUTED
ffc175c4:	83 c1 00 40 	lwz     r30,64(r1)                             <== NOT EXECUTED
ffc175c8:	83 e1 00 44 	lwz     r31,68(r1)                             <== NOT EXECUTED
ffc175cc:	38 21 00 48 	addi    r1,r1,72                               <== NOT EXECUTED
ffc175d0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
    else                                                              
      buf->st_size = rtems_rfs_file_shared_get_size (fs, shared);     
  }                                                                   
  else                                                                
  {                                                                   
    buf->st_atime   = rtems_rfs_inode_get_atime (&inode);             
ffc175d4:	81 21 00 14 	lwz     r9,20(r1)                              
    buf->st_mtime   = rtems_rfs_inode_get_mtime (&inode);             
    buf->st_ctime   = rtems_rfs_inode_get_ctime (&inode);             
    buf->st_blocks  = rtems_rfs_inode_get_block_count (&inode);       
                                                                      
    if (S_ISLNK (buf->st_mode))                                       
ffc175d8:	81 5f 00 0c 	lwz     r10,12(r31)                            
 * @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);                   
ffc175dc:	88 a9 00 10 	lbz     r5,16(r9)                              
ffc175e0:	89 09 00 11 	lbz     r8,17(r9)                              
ffc175e4:	55 4a 04 26 	rlwinm  r10,r10,0,16,19                        
ffc175e8:	88 c9 00 13 	lbz     r6,19(r9)                              
ffc175ec:	54 a5 c0 0e 	rlwinm  r5,r5,24,0,7                           
ffc175f0:	88 e9 00 12 	lbz     r7,18(r9)                              
ffc175f4:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          
ffc175f8:	7c a8 43 78 	or      r8,r5,r8                               
ffc175fc:	7d 08 33 78 	or      r8,r8,r6                               
ffc17600:	54 e7 40 2e 	rlwinm  r7,r7,8,0,23                           
ffc17604:	7d 08 3b 78 	or      r8,r8,r7                               
    else                                                              
      buf->st_size = rtems_rfs_file_shared_get_size (fs, shared);     
  }                                                                   
  else                                                                
  {                                                                   
    buf->st_atime   = rtems_rfs_inode_get_atime (&inode);             
ffc17608:	91 1f 00 28 	stw     r8,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);                   
ffc1760c:	88 a9 00 14 	lbz     r5,20(r9)                              
ffc17610:	89 09 00 15 	lbz     r8,21(r9)                              
ffc17614:	88 c9 00 17 	lbz     r6,23(r9)                              
ffc17618:	54 a5 c0 0e 	rlwinm  r5,r5,24,0,7                           
ffc1761c:	88 e9 00 16 	lbz     r7,22(r9)                              
ffc17620:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          
ffc17624:	7c a8 43 78 	or      r8,r5,r8                               
ffc17628:	7d 08 33 78 	or      r8,r8,r6                               
ffc1762c:	54 e7 40 2e 	rlwinm  r7,r7,8,0,23                           
ffc17630:	7d 08 3b 78 	or      r8,r8,r7                               
    buf->st_mtime   = rtems_rfs_inode_get_mtime (&inode);             
ffc17634:	91 1f 00 30 	stw     r8,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);                   
ffc17638:	88 a9 00 18 	lbz     r5,24(r9)                              
ffc1763c:	89 09 00 19 	lbz     r8,25(r9)                              
ffc17640:	88 c9 00 1b 	lbz     r6,27(r9)                              
ffc17644:	54 a5 c0 0e 	rlwinm  r5,r5,24,0,7                           
ffc17648:	88 e9 00 1a 	lbz     r7,26(r9)                              
ffc1764c:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          
ffc17650:	7c a8 43 78 	or      r8,r5,r8                               
ffc17654:	7d 08 33 78 	or      r8,r8,r6                               
ffc17658:	54 e7 40 2e 	rlwinm  r7,r7,8,0,23                           
ffc1765c:	7d 08 3b 78 	or      r8,r8,r7                               
    buf->st_ctime   = rtems_rfs_inode_get_ctime (&inode);             
ffc17660:	91 1f 00 38 	stw     r8,56(r31)                             
    buf->st_blocks  = rtems_rfs_inode_get_block_count (&inode);       
                                                                      
    if (S_ISLNK (buf->st_mode))                                       
ffc17664:	38 e0 00 00 	li      r7,0                                   
ffc17668:	60 e7 a0 00 	ori     r7,r7,40960                            
 * @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);             
ffc1766c:	88 a9 00 0c 	lbz     r5,12(r9)                              
ffc17670:	7f 8a 38 00 	cmpw    cr7,r10,r7                             
ffc17674:	89 09 00 0d 	lbz     r8,13(r9)                              
ffc17678:	88 c9 00 0f 	lbz     r6,15(r9)                              
ffc1767c:	54 a5 c0 0e 	rlwinm  r5,r5,24,0,7                           
ffc17680:	88 e9 00 0e 	lbz     r7,14(r9)                              
ffc17684:	55 08 80 1e 	rlwinm  r8,r8,16,0,15                          
ffc17688:	7c a8 43 78 	or      r8,r5,r8                               
ffc1768c:	7d 08 33 78 	or      r8,r8,r6                               
ffc17690:	54 e7 40 2e 	rlwinm  r7,r7,8,0,23                           
ffc17694:	7d 08 3b 78 	or      r8,r8,r7                               
  else                                                                
  {                                                                   
    buf->st_atime   = rtems_rfs_inode_get_atime (&inode);             
    buf->st_mtime   = rtems_rfs_inode_get_mtime (&inode);             
    buf->st_ctime   = rtems_rfs_inode_get_ctime (&inode);             
    buf->st_blocks  = rtems_rfs_inode_get_block_count (&inode);       
ffc17698:	91 1f 00 44 	stw     r8,68(r31)                             
                                                                      
    if (S_ISLNK (buf->st_mode))                                       
ffc1769c:	40 9e 00 20 	bne-    cr7,ffc176bc <rtems_rfs_rtems_fstat+0x348>
 * @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);            
ffc176a0:	89 09 00 0a 	lbz     r8,10(r9)                              
ffc176a4:	89 49 00 0b 	lbz     r10,11(r9)                             
ffc176a8:	55 09 40 2e 	rlwinm  r9,r8,8,0,23                           
      buf->st_size = rtems_rfs_inode_get_block_offset (&inode);       
ffc176ac:	90 9f 00 20 	stw     r4,32(r31)                             
ffc176b0:	7d 29 53 78 	or      r9,r9,r10                              
ffc176b4:	91 3f 00 24 	stw     r9,36(r31)                             
ffc176b8:	4b ff fd f8 	b       ffc174b0 <rtems_rfs_rtems_fstat+0x13c> 
    else                                                              
      buf->st_size = rtems_rfs_inode_get_size (fs, &inode);           
ffc176bc:	7f c3 f3 78 	mr      r3,r30                                 
ffc176c0:	38 81 00 08 	addi    r4,r1,8                                
ffc176c4:	4b ff f1 55 	bl      ffc16818 <rtems_rfs_inode_get_size>    
ffc176c8:	90 7f 00 20 	stw     r3,32(r31)                             
ffc176cc:	90 9f 00 24 	stw     r4,36(r31)                             
ffc176d0:	4b ff fd e0 	b       ffc174b0 <rtems_rfs_rtems_fstat+0x13c> 
                                                                      

ffc179d4 <rtems_rfs_rtems_initialise>: int rc; /* * Parse the options the user specifiies. */ while (options)
ffc179d4:	2c 04 00 00 	cmpwi   r4,0                                   
 */                                                                   
                                                                      
int                                                                   
rtems_rfs_rtems_initialise (rtems_filesystem_mount_table_entry_t* mt_entry,
                            const void*                           data)
{                                                                     
ffc179d8:	94 21 ff c8 	stwu    r1,-56(r1)                             
ffc179dc:	7c 08 02 a6 	mflr    r0                                     
ffc179e0:	93 01 00 18 	stw     r24,24(r1)                             
ffc179e4:	7c 78 1b 78 	mr      r24,r3                                 
ffc179e8:	90 01 00 3c 	stw     r0,60(r1)                              
ffc179ec:	93 21 00 1c 	stw     r25,28(r1)                             
ffc179f0:	93 41 00 20 	stw     r26,32(r1)                             
ffc179f4:	93 61 00 24 	stw     r27,36(r1)                             
ffc179f8:	93 81 00 28 	stw     r28,40(r1)                             
ffc179fc:	93 a1 00 2c 	stw     r29,44(r1)                             
ffc17a00:	93 c1 00 30 	stw     r30,48(r1)                             
ffc17a04:	93 e1 00 34 	stw     r31,52(r1)                             
  int                      rc;                                        
                                                                      
  /*                                                                  
   * Parse the options the user specifiies.                           
   */                                                                 
  while (options)                                                     
ffc17a08:	41 82 02 0c 	beq-    ffc17c14 <rtems_rfs_rtems_initialise+0x240><== ALWAYS TAKEN
ffc17a0c:	3f 60 ff c4 	lis     r27,-60                                <== NOT EXECUTED
ffc17a10:	3f 80 ff c4 	lis     r28,-60                                <== NOT EXECUTED
  {                                                                   
    printf ("options=%s\n", options);                                 
    if (strncmp (options, "hold-bitmaps",                             
                 sizeof ("hold-bitmaps") - 1) == 0)                   
      flags |= RTEMS_RFS_FS_BITMAPS_HOLD;                             
    else if (strncmp (options, "no-local-cache",                      
ffc17a14:	3f a0 ff c4 	lis     r29,-60                                <== NOT EXECUTED
                      sizeof ("no-local-cache") - 1) == 0)            
      flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;                           
    else if (strncmp (options, "max-held-bufs",                       
ffc17a18:	3f 40 ff c4 	lis     r26,-60                                <== NOT EXECUTED
  int                      rc;                                        
                                                                      
  /*                                                                  
   * Parse the options the user specifiies.                           
   */                                                                 
  while (options)                                                     
ffc17a1c:	7c 9f 23 78 	mr      r31,r4                                 <== NOT EXECUTED
ffc17a20:	3b 20 00 05 	li      r25,5                                  <== NOT EXECUTED
ffc17a24:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
ffc17a28:	3b 7b c3 d4 	addi    r27,r27,-15404                         <== NOT EXECUTED
ffc17a2c:	3b 9c c3 e0 	addi    r28,r28,-15392                         <== NOT EXECUTED
  {                                                                   
    printf ("options=%s\n", options);                                 
    if (strncmp (options, "hold-bitmaps",                             
                 sizeof ("hold-bitmaps") - 1) == 0)                   
      flags |= RTEMS_RFS_FS_BITMAPS_HOLD;                             
    else if (strncmp (options, "no-local-cache",                      
ffc17a30:	3b bd c3 f0 	addi    r29,r29,-15376                         <== NOT EXECUTED
                      sizeof ("no-local-cache") - 1) == 0)            
      flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;                           
    else if (strncmp (options, "max-held-bufs",                       
ffc17a34:	3b 5a c4 00 	addi    r26,r26,-15360                         <== NOT EXECUTED
  /*                                                                  
   * Parse the options the user specifiies.                           
   */                                                                 
  while (options)                                                     
  {                                                                   
    printf ("options=%s\n", options);                                 
ffc17a38:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc17a3c:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc17a40:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc17a44:	48 01 30 55 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    if (strncmp (options, "hold-bitmaps",                             
ffc17a48:	7f 84 e3 78 	mr      r4,r28                                 <== NOT EXECUTED
ffc17a4c:	38 a0 00 0c 	li      r5,12                                  <== NOT EXECUTED
ffc17a50:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc17a54:	48 01 42 d9 	bl      ffc2bd2c <strncmp>                     <== NOT EXECUTED
                 sizeof ("hold-bitmaps") - 1) == 0)                   
      flags |= RTEMS_RFS_FS_BITMAPS_HOLD;                             
    else if (strncmp (options, "no-local-cache",                      
ffc17a58:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
   * Parse the options the user specifiies.                           
   */                                                                 
  while (options)                                                     
  {                                                                   
    printf ("options=%s\n", options);                                 
    if (strncmp (options, "hold-bitmaps",                             
ffc17a5c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
                 sizeof ("hold-bitmaps") - 1) == 0)                   
      flags |= RTEMS_RFS_FS_BITMAPS_HOLD;                             
    else if (strncmp (options, "no-local-cache",                      
ffc17a60:	38 a0 00 0e 	li      r5,14                                  <== NOT EXECUTED
ffc17a64:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
   * Parse the options the user specifiies.                           
   */                                                                 
  while (options)                                                     
  {                                                                   
    printf ("options=%s\n", options);                                 
    if (strncmp (options, "hold-bitmaps",                             
ffc17a68:	40 9e 00 98 	bne-    cr7,ffc17b00 <rtems_rfs_rtems_initialise+0x12c><== NOT EXECUTED
                 sizeof ("hold-bitmaps") - 1) == 0)                   
      flags |= RTEMS_RFS_FS_BITMAPS_HOLD;                             
ffc17a6c:	63 de 00 01 	ori     r30,r30,1                              <== NOT EXECUTED
      max_held_buffers = strtoul (options + sizeof ("max-held-bufs"), 0, 0);
    }                                                                 
    else                                                              
      return rtems_rfs_rtems_error ("initialise: invalid option", EINVAL);
                                                                      
    options = strchr (options, ',');                                  
ffc17a70:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc17a74:	38 80 00 2c 	li      r4,44                                  <== NOT EXECUTED
ffc17a78:	48 01 3b 19 	bl      ffc2b590 <strchr>                      <== NOT EXECUTED
    if (options)                                                      
ffc17a7c:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
  int                      rc;                                        
                                                                      
  /*                                                                  
   * Parse the options the user specifiies.                           
   */                                                                 
  while (options)                                                     
ffc17a80:	3b e3 00 01 	addi    r31,r3,1                               <== NOT EXECUTED
ffc17a84:	2f 9f 00 00 	cmpwi   cr7,r31,0                              <== NOT EXECUTED
    }                                                                 
    else                                                              
      return rtems_rfs_rtems_error ("initialise: invalid option", EINVAL);
                                                                      
    options = strchr (options, ',');                                  
    if (options)                                                      
ffc17a88:	41 82 00 10 	beq-    ffc17a98 <rtems_rfs_rtems_initialise+0xc4><== NOT EXECUTED
    {                                                                 
      ++options;                                                      
      if (*options == '\0')                                           
ffc17a8c:	89 23 00 01 	lbz     r9,1(r3)                               <== NOT EXECUTED
ffc17a90:	2f 09 00 00 	cmpwi   cr6,r9,0                               <== NOT EXECUTED
ffc17a94:	40 9a 00 8c 	bne-    cr6,ffc17b20 <rtems_rfs_rtems_initialise+0x14c><== NOT EXECUTED
        options = NULL;                                               
    }                                                                 
  }                                                                   
                                                                      
  rtems = malloc (sizeof (rtems_rfs_rtems_private));                  
ffc17a98:	38 60 00 04 	li      r3,4                                   
ffc17a9c:	4b ff 2f f9 	bl      ffc0aa94 <malloc>                      
  if (!rtems)                                                         
ffc17aa0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc17aa4:	41 82 02 28 	beq-    ffc17ccc <rtems_rfs_rtems_initialise+0x2f8><== NEVER TAKEN
    return rtems_rfs_rtems_error ("initialise: local data", ENOMEM);  
                                                                      
  memset (rtems, 0, sizeof (rtems_rfs_rtems_private));                
ffc17aa8:	39 20 00 00 	li      r9,0                                   
ffc17aac:	91 3f 00 00 	stw     r9,0(r31)                              
                                                                      
  rc = rtems_rfs_mutex_create (&rtems->access);                       
ffc17ab0:	48 00 eb b1 	bl      ffc26660 <rtems_rfs_mutex_create>      
  if (rc > 0)                                                         
ffc17ab4:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc17ab8:	40 81 00 94 	ble-    ffc17b4c <rtems_rfs_rtems_initialise+0x178><== ALWAYS TAKEN
  {                                                                   
    free (rtems);                                                     
ffc17abc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc17ac0:	4b ff 28 3d 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
    return rtems_rfs_rtems_error ("initialise: cannot create mutex", rc);
ffc17ac4:	48 01 15 35 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc17ac8:	93 a3 00 00 	stw     r29,0(r3)                              <== NOT EXECUTED
ffc17acc:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  mt_entry->mt_fs_root->location.handlers    = &rtems_rfs_rtems_dir_handlers;
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
                                                                      
  return 0;                                                           
}                                                                     
ffc17ad0:	80 01 00 3c 	lwz     r0,60(r1)                              
ffc17ad4:	83 01 00 18 	lwz     r24,24(r1)                             
ffc17ad8:	7c 08 03 a6 	mtlr    r0                                     
ffc17adc:	83 21 00 1c 	lwz     r25,28(r1)                             
ffc17ae0:	83 41 00 20 	lwz     r26,32(r1)                             
ffc17ae4:	83 61 00 24 	lwz     r27,36(r1)                             
ffc17ae8:	83 81 00 28 	lwz     r28,40(r1)                             
ffc17aec:	83 a1 00 2c 	lwz     r29,44(r1)                             
ffc17af0:	83 c1 00 30 	lwz     r30,48(r1)                             
ffc17af4:	83 e1 00 34 	lwz     r31,52(r1)                             
ffc17af8:	38 21 00 38 	addi    r1,r1,56                               
ffc17afc:	4e 80 00 20 	blr                                            
  {                                                                   
    printf ("options=%s\n", options);                                 
    if (strncmp (options, "hold-bitmaps",                             
                 sizeof ("hold-bitmaps") - 1) == 0)                   
      flags |= RTEMS_RFS_FS_BITMAPS_HOLD;                             
    else if (strncmp (options, "no-local-cache",                      
ffc17b00:	48 01 42 2d 	bl      ffc2bd2c <strncmp>                     <== NOT EXECUTED
                      sizeof ("no-local-cache") - 1) == 0)            
      flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;                           
    else if (strncmp (options, "max-held-bufs",                       
ffc17b04:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
  {                                                                   
    printf ("options=%s\n", options);                                 
    if (strncmp (options, "hold-bitmaps",                             
                 sizeof ("hold-bitmaps") - 1) == 0)                   
      flags |= RTEMS_RFS_FS_BITMAPS_HOLD;                             
    else if (strncmp (options, "no-local-cache",                      
ffc17b08:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
                      sizeof ("no-local-cache") - 1) == 0)            
      flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;                           
    else if (strncmp (options, "max-held-bufs",                       
ffc17b0c:	38 a0 00 0d 	li      r5,13                                  <== NOT EXECUTED
ffc17b10:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
  {                                                                   
    printf ("options=%s\n", options);                                 
    if (strncmp (options, "hold-bitmaps",                             
                 sizeof ("hold-bitmaps") - 1) == 0)                   
      flags |= RTEMS_RFS_FS_BITMAPS_HOLD;                             
    else if (strncmp (options, "no-local-cache",                      
ffc17b14:	40 9e 00 14 	bne-    cr7,ffc17b28 <rtems_rfs_rtems_initialise+0x154><== NOT EXECUTED
                      sizeof ("no-local-cache") - 1) == 0)            
      flags |= RTEMS_RFS_FS_NO_LOCAL_CACHE;                           
ffc17b18:	63 de 00 02 	ori     r30,r30,2                              <== NOT EXECUTED
ffc17b1c:	4b ff ff 54 	b       ffc17a70 <rtems_rfs_rtems_initialise+0x9c><== NOT EXECUTED
  int                      rc;                                        
                                                                      
  /*                                                                  
   * Parse the options the user specifiies.                           
   */                                                                 
  while (options)                                                     
ffc17b20:	40 9e ff 18 	bne+    cr7,ffc17a38 <rtems_rfs_rtems_initialise+0x64><== NOT EXECUTED
ffc17b24:	4b ff ff 74 	b       ffc17a98 <rtems_rfs_rtems_initialise+0xc4><== NOT EXECUTED
                 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",                       
ffc17b28:	48 01 42 05 	bl      ffc2bd2c <strncmp>                     <== NOT EXECUTED
                      sizeof ("max-held-bufs") - 1) == 0)             
    {                                                                 
      max_held_buffers = strtoul (options + sizeof ("max-held-bufs"), 0, 0);
ffc17b2c:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
                 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",                       
ffc17b30:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
                      sizeof ("max-held-bufs") - 1) == 0)             
    {                                                                 
      max_held_buffers = strtoul (options + sizeof ("max-held-bufs"), 0, 0);
ffc17b34:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc17b38:	38 7f 00 0e 	addi    r3,r31,14                              <== NOT EXECUTED
                 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",                       
ffc17b3c:	40 9e 00 98 	bne-    cr7,ffc17bd4 <rtems_rfs_rtems_initialise+0x200><== NOT EXECUTED
                      sizeof ("max-held-bufs") - 1) == 0)             
    {                                                                 
      max_held_buffers = strtoul (options + sizeof ("max-held-bufs"), 0, 0);
ffc17b40:	48 01 45 85 	bl      ffc2c0c4 <strtoul>                     <== NOT EXECUTED
ffc17b44:	7c 79 1b 78 	mr      r25,r3                                 <== NOT EXECUTED
ffc17b48:	4b ff ff 28 	b       ffc17a70 <rtems_rfs_rtems_initialise+0x9c><== 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);
ffc17b4c:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc17b50:	38 80 00 00 	li      r4,0                                   
ffc17b54:	38 a0 00 00 	li      r5,0                                   
ffc17b58:	4b ff 82 85 	bl      ffc0fddc <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc17b5c:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc17b60:	40 82 00 3c 	bne-    ffc17b9c <rtems_rfs_rtems_initialise+0x1c8><== NEVER TAKEN
    rtems_rfs_mutex_destroy (&rtems->access);                         
    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);
ffc17b64:	80 78 00 38 	lwz     r3,56(r24)                             
ffc17b68:	7f c5 f3 78 	mr      r5,r30                                 
ffc17b6c:	7f e4 fb 78 	mr      r4,r31                                 
ffc17b70:	7f 26 cb 78 	mr      r6,r25                                 
ffc17b74:	38 e1 00 08 	addi    r7,r1,8                                
ffc17b78:	48 00 d5 5d 	bl      ffc250d4 <rtems_rfs_fs_open>           
  if (rc)                                                             
ffc17b7c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc17b80:	41 82 00 a0 	beq-    ffc17c20 <rtems_rfs_rtems_initialise+0x24c><== ALWAYS TAKEN
  {                                                                   
    free (rtems);                                                     
ffc17b84:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc17b88:	4b ff 27 75 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
    return rtems_rfs_rtems_error ("initialise: open", rc);            
ffc17b8c:	48 01 14 6d 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc17b90:	93 c3 00 00 	stw     r30,0(r3)                              <== NOT EXECUTED
ffc17b94:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc17b98:	4b ff ff 38 	b       ffc17ad0 <rtems_rfs_rtems_initialise+0xfc><== NOT EXECUTED
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc17b9c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc17ba0:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc17ba4:	48 00 02 f9 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc17ba8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc17bac:	40 9e 01 00 	bne-    cr7,ffc17cac <rtems_rfs_rtems_initialise+0x2d8><== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_mutex_lock (&rtems->access);                         
  if (rc > 0)                                                         
  {                                                                   
    rtems_rfs_mutex_destroy (&rtems->access);                         
ffc17bb0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc17bb4:	48 00 eb 55 	bl      ffc26708 <rtems_rfs_mutex_destroy>     <== NOT EXECUTED
    free (rtems);                                                     
ffc17bb8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc17bbc:	4b ff 27 41 	bl      ffc0a2fc <free>                        <== NOT EXECUTED
    return rtems_rfs_rtems_error ("initialise: cannot lock access  mutex", rc);
ffc17bc0:	48 01 14 39 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc17bc4:	39 20 00 05 	li      r9,5                                   <== NOT EXECUTED
ffc17bc8:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc17bcc:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc17bd0:	4b ff ff 00 	b       ffc17ad0 <rtems_rfs_rtems_initialise+0xfc><== NOT EXECUTED
                      sizeof ("max-held-bufs") - 1) == 0)             
    {                                                                 
      max_held_buffers = strtoul (options + sizeof ("max-held-bufs"), 0, 0);
    }                                                                 
    else                                                              
      return rtems_rfs_rtems_error ("initialise: invalid option", EINVAL);
ffc17bd4:	48 01 14 25 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
  mt_entry->mt_fs_root->location.handlers    = &rtems_rfs_rtems_dir_handlers;
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
                                                                      
  return 0;                                                           
}                                                                     
ffc17bd8:	80 01 00 3c 	lwz     r0,60(r1)                              <== NOT EXECUTED
                      sizeof ("max-held-bufs") - 1) == 0)             
    {                                                                 
      max_held_buffers = strtoul (options + sizeof ("max-held-bufs"), 0, 0);
    }                                                                 
    else                                                              
      return rtems_rfs_rtems_error ("initialise: invalid option", EINVAL);
ffc17bdc:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
  mt_entry->mt_fs_root->location.handlers    = &rtems_rfs_rtems_dir_handlers;
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
                                                                      
  return 0;                                                           
}                                                                     
ffc17be0:	83 01 00 18 	lwz     r24,24(r1)                             <== NOT EXECUTED
ffc17be4:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
                      sizeof ("max-held-bufs") - 1) == 0)             
    {                                                                 
      max_held_buffers = strtoul (options + sizeof ("max-held-bufs"), 0, 0);
    }                                                                 
    else                                                              
      return rtems_rfs_rtems_error ("initialise: invalid option", EINVAL);
ffc17be8:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc17bec:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  mt_entry->mt_fs_root->location.handlers    = &rtems_rfs_rtems_dir_handlers;
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
                                                                      
  return 0;                                                           
}                                                                     
ffc17bf0:	83 21 00 1c 	lwz     r25,28(r1)                             <== NOT EXECUTED
ffc17bf4:	83 41 00 20 	lwz     r26,32(r1)                             <== NOT EXECUTED
ffc17bf8:	83 61 00 24 	lwz     r27,36(r1)                             <== NOT EXECUTED
ffc17bfc:	83 81 00 28 	lwz     r28,40(r1)                             <== NOT EXECUTED
ffc17c00:	83 a1 00 2c 	lwz     r29,44(r1)                             <== NOT EXECUTED
ffc17c04:	83 c1 00 30 	lwz     r30,48(r1)                             <== NOT EXECUTED
ffc17c08:	83 e1 00 34 	lwz     r31,52(r1)                             <== NOT EXECUTED
ffc17c0c:	38 21 00 38 	addi    r1,r1,56                               <== NOT EXECUTED
ffc17c10:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                            const void*                           data)
{                                                                     
  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;
ffc17c14:	3b 20 00 05 	li      r25,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;                                 
ffc17c18:	3b c0 00 00 	li      r30,0                                  
ffc17c1c:	4b ff fe 7c 	b       ffc17a98 <rtems_rfs_rtems_initialise+0xc4>
  {                                                                   
    free (rtems);                                                     
    return rtems_rfs_rtems_error ("initialise: open", rc);            
  }                                                                   
                                                                      
  mt_entry->fs_info                          = fs;                    
ffc17c20:	81 21 00 08 	lwz     r9,8(r1)                               
  mt_entry->ops                              = &rtems_rfs_ops;        
ffc17c24:	3d 00 ff c4 	lis     r8,-60                                 
  mt_entry->mt_fs_root->location.node_access = (void*) RTEMS_RFS_ROOT_INO;
ffc17c28:	81 58 00 24 	lwz     r10,36(r24)                            
    free (rtems);                                                     
    return rtems_rfs_rtems_error ("initialise: open", rc);            
  }                                                                   
                                                                      
  mt_entry->fs_info                          = fs;                    
  mt_entry->ops                              = &rtems_rfs_ops;        
ffc17c2c:	39 08 c3 24 	addi    r8,r8,-15580                           
 * 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);            
ffc17c30:	83 e9 00 80 	lwz     r31,128(r9)                            
ffc17c34:	39 08 00 08 	addi    r8,r8,8                                
  {                                                                   
    free (rtems);                                                     
    return rtems_rfs_rtems_error ("initialise: open", rc);            
  }                                                                   
                                                                      
  mt_entry->fs_info                          = fs;                    
ffc17c38:	91 38 00 08 	stw     r9,8(r24)                              
  rtems_rfs_buffers_release (fs);                                     
ffc17c3c:	7d 23 4b 78 	mr      r3,r9                                  
  mt_entry->ops                              = &rtems_rfs_ops;        
  mt_entry->mt_fs_root->location.node_access = (void*) RTEMS_RFS_ROOT_INO;
ffc17c40:	39 20 00 01 	li      r9,1                                   
    free (rtems);                                                     
    return rtems_rfs_rtems_error ("initialise: open", rc);            
  }                                                                   
                                                                      
  mt_entry->fs_info                          = fs;                    
  mt_entry->ops                              = &rtems_rfs_ops;        
ffc17c44:	91 18 00 0c 	stw     r8,12(r24)                             
  mt_entry->mt_fs_root->location.node_access = (void*) RTEMS_RFS_ROOT_INO;
ffc17c48:	91 2a 00 08 	stw     r9,8(r10)                              
  mt_entry->mt_fs_root->location.handlers    = &rtems_rfs_rtems_dir_handlers;
ffc17c4c:	3d 20 ff c4 	lis     r9,-60                                 
ffc17c50:	39 29 e6 18 	addi    r9,r9,-6632                            
ffc17c54:	91 2a 00 10 	stw     r9,16(r10)                             
ffc17c58:	48 00 a8 91 	bl      ffc224e8 <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);            
ffc17c5c:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc17c60:	4b ff 83 1d 	bl      ffc0ff7c <rtems_semaphore_release>     
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc17c64:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc17c68:	40 82 00 0c 	bne-    ffc17c74 <rtems_rfs_rtems_initialise+0x2a0><== NEVER TAKEN
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
                                                                      
  return 0;                                                           
ffc17c6c:	38 60 00 00 	li      r3,0                                   
ffc17c70:	4b ff fe 60 	b       ffc17ad0 <rtems_rfs_rtems_initialise+0xfc>
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc17c74:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc17c78:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc17c7c:	48 00 02 21 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc17c80:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc17c84:	41 9e ff e8 	beq+    cr7,ffc17c6c <rtems_rfs_rtems_initialise+0x298><== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
ffc17c88:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc17c8c:	48 00 45 7d 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc17c90:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc17c94:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc17c98:	38 63 c3 ac 	addi    r3,r3,-15444                           <== NOT EXECUTED
ffc17c9c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc17ca0:	48 01 2d f9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc17ca4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc17ca8:	4b ff fe 28 	b       ffc17ad0 <rtems_rfs_rtems_initialise+0xfc><== NOT EXECUTED
  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))                      
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
ffc17cac:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc17cb0:	48 00 45 59 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc17cb4:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc17cb8:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc17cbc:	38 63 c4 10 	addi    r3,r3,-15344                           <== NOT EXECUTED
ffc17cc0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc17cc4:	48 01 2d d5 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc17cc8:	4b ff fe e8 	b       ffc17bb0 <rtems_rfs_rtems_initialise+0x1dc><== NOT EXECUTED
    }                                                                 
  }                                                                   
                                                                      
  rtems = malloc (sizeof (rtems_rfs_rtems_private));                  
  if (!rtems)                                                         
    return rtems_rfs_rtems_error ("initialise: local data", ENOMEM);  
ffc17ccc:	48 01 13 2d 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc17cd0:	39 20 00 0c 	li      r9,12                                  <== NOT EXECUTED
ffc17cd4:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc17cd8:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc17cdc:	4b ff fd f4 	b       ffc17ad0 <rtems_rfs_rtems_initialise+0xfc><== NOT EXECUTED
                                                                      

ffc1695c <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) {
ffc1695c:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc16960:	7c 08 02 a6 	mflr    r0                                     
                                                                      
  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);     
ffc16964:	39 00 00 00 	li      r8,0                                   
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)                                 
{                                                                     
ffc16968:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (targetloc);
ffc1696c:	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);     
ffc16970:	81 23 00 08 	lwz     r9,8(r3)                               
ffc16974:	80 e4 00 08 	lwz     r7,8(r4)                               
ffc16978:	7c a4 2b 78 	mr      r4,r5                                  
ffc1697c:	80 6a 00 08 	lwz     r3,8(r10)                              
ffc16980:	7c c5 33 78 	mr      r5,r6                                  
ffc16984:	7d 26 4b 78 	mr      r6,r9                                  
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)                                 
{                                                                     
ffc16988:	93 e1 00 0c 	stw     r31,12(r1)                             
                                                                      
  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);     
ffc1698c:	48 00 f0 fd 	bl      ffc25a88 <rtems_rfs_link>              
  if (rc)                                                             
ffc16990:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc16994:	40 82 00 1c 	bne-    ffc169b0 <rtems_rfs_rtems_link+0x54>   <== NEVER TAKEN
    return rtems_rfs_rtems_error ("link: linking", rc);               
	}                                                                    
                                                                      
                                                                      
	return 0;                                                            
}                                                                     
ffc16998:	80 01 00 14 	lwz     r0,20(r1)                              
  {                                                                   
    return rtems_rfs_rtems_error ("link: linking", rc);               
	}                                                                    
                                                                      
                                                                      
	return 0;                                                            
ffc1699c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc169a0:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc169a4:	7c 08 03 a6 	mtlr    r0                                     
ffc169a8:	38 21 00 10 	addi    r1,r1,16                               
ffc169ac:	4e 80 00 20 	blr                                            
            parent, target);                                          
                                                                      
  rc = rtems_rfs_link (fs, name, namelen, parent, target, false);     
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("link: linking", rc);               
ffc169b0:	48 01 26 49 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
	}                                                                    
                                                                      
                                                                      
	return 0;                                                            
}                                                                     
ffc169b4:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
            parent, target);                                          
                                                                      
  rc = rtems_rfs_link (fs, name, namelen, parent, target, false);     
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("link: linking", rc);               
ffc169b8:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc169bc:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
	}                                                                    
                                                                      
                                                                      
	return 0;                                                            
}                                                                     
ffc169c0:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc169c4:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc169c8:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc169cc:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc17ce0 <rtems_rfs_rtems_lock_by_mt_entry>: static void rtems_rfs_rtems_lock_by_mt_entry ( const rtems_filesystem_mount_table_entry_t *mt_entry ) {
ffc17ce0:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc17ce4:	7c 08 02 a6 	mflr    r0                                     
 */                                                                   
static inline int                                                     
rtems_rfs_mutex_lock (rtems_rfs_mutex* mutex)                         
{                                                                     
#if __rtems__                                                         
  rtems_status_code sc = rtems_semaphore_obtain (*mutex, RTEMS_WAIT, 0);
ffc17ce8:	38 80 00 00 	li      r4,0                                   
ffc17cec:	90 01 00 14 	stw     r0,20(r1)                              
ffc17cf0:	38 a0 00 00 	li      r5,0                                   
  /* FIXME: Return value? */                                          
  rtems_rfs_fs_close(fs);                                             
                                                                      
  rtems_rfs_mutex_destroy (&rtems->access);                           
  free (rtems);                                                       
}                                                                     
ffc17cf4:	81 23 00 08 	lwz     r9,8(r3)                               
                                                                      
static void                                                           
rtems_rfs_rtems_lock_by_mt_entry (                                    
  const rtems_filesystem_mount_table_entry_t *mt_entry                
)                                                                     
{                                                                     
ffc17cf8:	93 e1 00 0c 	stw     r31,12(r1)                             
  /* FIXME: Return value? */                                          
  rtems_rfs_fs_close(fs);                                             
                                                                      
  rtems_rfs_mutex_destroy (&rtems->access);                           
  free (rtems);                                                       
}                                                                     
ffc17cfc:	81 29 00 80 	lwz     r9,128(r9)                             
ffc17d00:	80 69 00 00 	lwz     r3,0(r9)                               
ffc17d04:	4b ff 80 d9 	bl      ffc0fddc <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc17d08:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc17d0c:	40 82 00 18 	bne-    ffc17d24 <rtems_rfs_rtems_lock_by_mt_entry+0x44><== NEVER TAKEN
)                                                                     
{                                                                     
  rtems_rfs_file_system* fs = mt_entry->fs_info;                      
                                                                      
  rtems_rfs_rtems_lock (fs);                                          
}                                                                     
ffc17d10:	80 01 00 14 	lwz     r0,20(r1)                              
ffc17d14:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc17d18:	7c 08 03 a6 	mtlr    r0                                     
ffc17d1c:	38 21 00 10 	addi    r1,r1,16                               
ffc17d20:	4e 80 00 20 	blr                                            
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc17d24:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc17d28:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc17d2c:	48 00 01 71 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc17d30:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc17d34:	41 9e ff dc 	beq+    cr7,ffc17d10 <rtems_rfs_rtems_lock_by_mt_entry+0x30><== NOT EXECUTED
      printf ("rtems-rfs: mutex: obtain failed: %s\n",                
ffc17d38:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc17d3c:	48 00 44 cd 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc17d40:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
ffc17d44:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc17d48:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc17d4c:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc17d50:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc17d54:	38 63 c4 10 	addi    r3,r3,-15344                           <== NOT EXECUTED
ffc17d58:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc17d5c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc17d60:	48 01 2d 38 	b       ffc2aa98 <printf>                      <== NOT EXECUTED
                                                                      

ffc170a8 <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) {
ffc170a8:	94 21 ff 98 	stwu    r1,-104(r1)                            
ffc170ac:	7c 08 02 a6 	mflr    r0                                     
ffc170b0:	90 01 00 6c 	stw     r0,108(r1)                             
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (parentloc);
ffc170b4:	81 43 00 14 	lwz     r10,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)   
{                                                                     
ffc170b8:	92 e1 00 44 	stw     r23,68(r1)                             
ffc170bc:	7c f7 3b 78 	mr      r23,r7                                 
ffc170c0:	93 01 00 48 	stw     r24,72(r1)                             
ffc170c4:	7d 18 43 78 	mr      r24,r8                                 
ffc170c8:	93 21 00 4c 	stw     r25,76(r1)                             
ffc170cc:	93 41 00 50 	stw     r26,80(r1)                             
ffc170d0:	7c 9a 23 78 	mr      r26,r4                                 
ffc170d4:	93 61 00 54 	stw     r27,84(r1)                             
ffc170d8:	7c bb 2b 78 	mr      r27,r5                                 
ffc170dc:	93 81 00 58 	stw     r28,88(r1)                             
ffc170e0:	93 a1 00 5c 	stw     r29,92(r1)                             
ffc170e4:	93 c1 00 60 	stw     r30,96(r1)                             
ffc170e8:	7c de 33 78 	mr      r30,r6                                 
ffc170ec:	93 e1 00 64 	stw     r31,100(r1)                            
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (parentloc);
  rtems_rfs_ino           parent = rtems_rfs_rtems_get_pathloc_ino (parentloc);
ffc170f0:	83 23 00 08 	lwz     r25,8(r3)                              
                       const char                             *name,  
                       size_t                                  namelen,
                       mode_t                                  mode,  
                       dev_t                                   dev)   
{                                                                     
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (parentloc);
ffc170f4:	83 ea 00 08 	lwz     r31,8(r10)                             
  uid_t                   uid;                                        
  gid_t                   gid;                                        
  int                     rc;                                         
                                                                      
#if defined(RTEMS_POSIX_API)                                          
  uid = geteuid ();                                                   
ffc170f8:	48 00 55 59 	bl      ffc1c650 <geteuid>                     
ffc170fc:	7c 7c 1b 78 	mr      r28,r3                                 
  gid = getegid ();                                                   
ffc17100:	48 00 55 41 	bl      ffc1c640 <getegid>                     
ffc17104:	7c 7d 1b 78 	mr      r29,r3                                 
#else                                                                 
  uid = 0;                                                            
  gid = 0;                                                            
#endif                                                                
                                                                      
  rc = rtems_rfs_inode_create (fs, parent, name, namelen,             
ffc17108:	7f c3 f3 78 	mr      r3,r30                                 
ffc1710c:	48 00 0d 85 	bl      ffc17e90 <rtems_rfs_rtems_imode>       
ffc17110:	39 41 00 38 	addi    r10,r1,56                              
ffc17114:	91 41 00 08 	stw     r10,8(r1)                              
ffc17118:	7c 67 1b 78 	mr      r7,r3                                  
ffc1711c:	7f aa eb 78 	mr      r10,r29                                
ffc17120:	7f e3 fb 78 	mr      r3,r31                                 
ffc17124:	7f 24 cb 78 	mr      r4,r25                                 
ffc17128:	7f 45 d3 78 	mr      r5,r26                                 
ffc1712c:	7f 66 db 78 	mr      r6,r27                                 
ffc17130:	39 00 00 01 	li      r8,1                                   
ffc17134:	7f 89 e3 78 	mr      r9,r28                                 
ffc17138:	4b ff f3 0d 	bl      ffc16444 <rtems_rfs_inode_create>      
                               rtems_rfs_rtems_imode (mode),          
                               1, uid, gid, &ino);                    
  if (rc > 0)                                                         
ffc1713c:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc17140:	40 81 00 44 	ble-    ffc17184 <rtems_rfs_rtems_mknod+0xdc>  
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
  if (rc > 0)                                                         
  {                                                                   
    return rtems_rfs_rtems_error ("mknod: inode open", rc);           
ffc17144:	48 01 1e b5 	bl      ffc28ff8 <__errno>                     
ffc17148:	93 a3 00 00 	stw     r29,0(r3)                              
ffc1714c:	38 60 ff ff 	li      r3,-1                                  
  {                                                                   
    return rtems_rfs_rtems_error ("mknod: closing inode", rc);        
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc17150:	80 01 00 6c 	lwz     r0,108(r1)                             
ffc17154:	82 e1 00 44 	lwz     r23,68(r1)                             
ffc17158:	7c 08 03 a6 	mtlr    r0                                     
ffc1715c:	83 01 00 48 	lwz     r24,72(r1)                             
ffc17160:	83 21 00 4c 	lwz     r25,76(r1)                             
ffc17164:	83 41 00 50 	lwz     r26,80(r1)                             
ffc17168:	83 61 00 54 	lwz     r27,84(r1)                             
ffc1716c:	83 81 00 58 	lwz     r28,88(r1)                             
ffc17170:	83 a1 00 5c 	lwz     r29,92(r1)                             
ffc17174:	83 c1 00 60 	lwz     r30,96(r1)                             
ffc17178:	83 e1 00 64 	lwz     r31,100(r1)                            
ffc1717c:	38 21 00 68 	addi    r1,r1,104                              
ffc17180:	4e 80 00 20 	blr                                            
  if (rc > 0)                                                         
  {                                                                   
    return rtems_rfs_rtems_error ("mknod: inode create", rc);         
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
ffc17184:	80 81 00 38 	lwz     r4,56(r1)                              
ffc17188:	7f e3 fb 78 	mr      r3,r31                                 
ffc1718c:	38 a1 00 10 	addi    r5,r1,16                               
ffc17190:	38 c0 00 01 	li      r6,1                                   
ffc17194:	4b ff ec 19 	bl      ffc15dac <rtems_rfs_inode_open>        
  if (rc > 0)                                                         
ffc17198:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc1719c:	41 a1 ff a8 	bgt-    ffc17144 <rtems_rfs_rtems_mknod+0x9c>  <== NEVER TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("mknod: inode open", rc);           
  }                                                                   
                                                                      
  if (S_ISDIR(mode) || S_ISREG(mode))                                 
ffc171a0:	57 de 04 26 	rlwinm  r30,r30,0,16,19                        
ffc171a4:	2f 9e 40 00 	cmpwi   cr7,r30,16384                          
ffc171a8:	41 9e 00 64 	beq-    cr7,ffc1720c <rtems_rfs_rtems_mknod+0x164>
ffc171ac:	6f c9 ff ff 	xoris   r9,r30,65535                           
ffc171b0:	2f 89 80 00 	cmpwi   cr7,r9,-32768                          
ffc171b4:	41 9e 00 58 	beq-    cr7,ffc1720c <rtems_rfs_rtems_mknod+0x164><== ALWAYS TAKEN
  {                                                                   
  }                                                                   
  else if (S_ISCHR (mode) || S_ISBLK (mode))                          
ffc171b8:	2f 9e 20 00 	cmpwi   cr7,r30,8192                           <== NOT EXECUTED
ffc171bc:	41 9e 00 0c 	beq-    cr7,ffc171c8 <rtems_rfs_rtems_mknod+0x120><== NOT EXECUTED
ffc171c0:	2f 9e 60 00 	cmpwi   cr7,r30,24576                          <== NOT EXECUTED
ffc171c4:	40 9e 00 70 	bne-    cr7,ffc17234 <rtems_rfs_rtems_mknod+0x18c><== 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);       
ffc171c8:	81 21 00 1c 	lwz     r9,28(r1)                              <== NOT EXECUTED
ffc171cc:	56 e6 c2 3e 	rlwinm  r6,r23,24,8,31                         <== NOT EXECUTED
ffc171d0:	56 e4 46 3e 	rlwinm  r4,r23,8,24,31                         <== NOT EXECUTED
ffc171d4:	56 e5 84 3e 	rlwinm  r5,r23,16,16,31                        <== NOT EXECUTED
ffc171d8:	98 c9 00 1e 	stb     r6,30(r9)                              <== NOT EXECUTED
ffc171dc:	57 07 46 3e 	rlwinm  r7,r24,8,24,31                         <== NOT EXECUTED
ffc171e0:	57 08 84 3e 	rlwinm  r8,r24,16,16,31                        <== NOT EXECUTED
ffc171e4:	98 89 00 1c 	stb     r4,28(r9)                              <== NOT EXECUTED
ffc171e8:	57 0a c2 3e 	rlwinm  r10,r24,24,8,31                        <== NOT EXECUTED
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc171ec:	38 c0 00 01 	li      r6,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);       
ffc171f0:	98 a9 00 1d 	stb     r5,29(r9)                              <== NOT EXECUTED
ffc171f4:	9a e9 00 1f 	stb     r23,31(r9)                             <== NOT EXECUTED
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc171f8:	98 c1 00 20 	stb     r6,32(r1)                              <== 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);       
ffc171fc:	98 e9 00 20 	stb     r7,32(r9)                              <== NOT EXECUTED
ffc17200:	99 09 00 21 	stb     r8,33(r9)                              <== NOT EXECUTED
ffc17204:	99 49 00 22 	stb     r10,34(r9)                             <== NOT EXECUTED
ffc17208:	9b 09 00 23 	stb     r24,35(r9)                             <== NOT EXECUTED
  {                                                                   
    rtems_rfs_inode_close (fs, &inode);                               
    return rtems_rfs_rtems_error ("mknod: bad mode", EINVAL);         
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc1720c:	7f e3 fb 78 	mr      r3,r31                                 
ffc17210:	38 81 00 10 	addi    r4,r1,16                               
ffc17214:	4b ff ee 15 	bl      ffc16028 <rtems_rfs_inode_close>       
  if (rc > 0)                                                         
ffc17218:	7c 7f 1b 79 	mr.     r31,r3                                 
  {                                                                   
    return rtems_rfs_rtems_error ("mknod: closing inode", rc);        
  }                                                                   
                                                                      
  return 0;                                                           
ffc1721c:	38 60 00 00 	li      r3,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)                                                         
ffc17220:	40 a1 ff 30 	ble-    ffc17150 <rtems_rfs_rtems_mknod+0xa8>  <== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("mknod: closing inode", rc);        
ffc17224:	48 01 1d d5 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc17228:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc1722c:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc17230:	4b ff ff 20 	b       ffc17150 <rtems_rfs_rtems_mknod+0xa8>  <== 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);                               
ffc17234:	38 81 00 10 	addi    r4,r1,16                               <== NOT EXECUTED
ffc17238:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc1723c:	4b ff ed ed 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
    return rtems_rfs_rtems_error ("mknod: bad mode", EINVAL);         
ffc17240:	48 01 1d b9 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc17244:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc17248:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1724c:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc17250:	4b ff ff 00 	b       ffc17150 <rtems_rfs_rtems_mknod+0xa8>  <== NOT EXECUTED
                                                                      

ffc16fc4 <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) {
ffc16fc4:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc16fc8:	7c 08 02 a6 	mflr    r0                                     
  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);                  
ffc16fcc:	38 c0 00 01 	li      r6,1                                   
 * @return rtems_filesystem_node_types_t                              
 */                                                                   
                                                                      
static rtems_filesystem_node_types_t                                  
rtems_rfs_rtems_node_type (const rtems_filesystem_location_info_t* pathloc)
{                                                                     
ffc16fd0:	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);                  
ffc16fd4:	38 a1 00 08 	addi    r5,r1,8                                
 */                                                                   
                                                                      
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);
ffc16fd8:	81 23 00 14 	lwz     r9,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)
{                                                                     
ffc16fdc:	93 c1 00 38 	stw     r30,56(r1)                             
  rtems_rfs_file_system*        fs = rtems_rfs_rtems_pathloc_dev (pathloc);
ffc16fe0:	83 c9 00 08 	lwz     r30,8(r9)                              
  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);                  
ffc16fe4:	80 83 00 08 	lwz     r4,8(r3)                               
ffc16fe8:	7f c3 f3 78 	mr      r3,r30                                 
 * @return rtems_filesystem_node_types_t                              
 */                                                                   
                                                                      
static rtems_filesystem_node_types_t                                  
rtems_rfs_rtems_node_type (const rtems_filesystem_location_info_t* pathloc)
{                                                                     
ffc16fec:	93 e1 00 3c 	stw     r31,60(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);                  
ffc16ff0:	4b ff ed bd 	bl      ffc15dac <rtems_rfs_inode_open>        
  if (rc > 0)                                                         
ffc16ff4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc16ff8:	40 81 00 2c 	ble-    ffc17024 <rtems_rfs_rtems_node_type+0x60><== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("node_type: opening inode", rc);    
ffc16ffc:	48 01 1f fd 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc17000:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc17004:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("node_type: closing inode", rc);    
  }                                                                   
                                                                      
  return type;                                                        
}                                                                     
ffc17008:	80 01 00 44 	lwz     r0,68(r1)                              
ffc1700c:	7f e3 fb 78 	mr      r3,r31                                 
ffc17010:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc17014:	7c 08 03 a6 	mtlr    r0                                     
ffc17018:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc1701c:	38 21 00 40 	addi    r1,r1,64                               
ffc17020:	4e 80 00 20 	blr                                            
 * @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);                    
ffc17024:	81 21 00 14 	lwz     r9,20(r1)                              
   * 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;                                
ffc17028:	3b e0 00 00 	li      r31,0                                  
ffc1702c:	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))                                       
ffc17030:	55 29 44 26 	rlwinm  r9,r9,8,16,19                          
ffc17034:	2f 89 40 00 	cmpwi   cr7,r9,16384                           
ffc17038:	41 9e 00 2c 	beq-    cr7,ffc17064 <rtems_rfs_rtems_node_type+0xa0>
    return RTEMS_FILESYSTEM_DIRECTORY;                                
  else if (RTEMS_RFS_S_ISLNK (mode))                                  
ffc1703c:	39 40 00 00 	li      r10,0                                  
ffc17040:	61 4a a0 00 	ori     r10,r10,40960                          
ffc17044:	7f 89 50 00 	cmpw    cr7,r9,r10                             
    return RTEMS_FILESYSTEM_SYM_LINK;                                 
ffc17048:	3b e0 00 03 	li      r31,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))                                  
ffc1704c:	41 9e 00 18 	beq-    cr7,ffc17064 <rtems_rfs_rtems_node_type+0xa0>
    return RTEMS_FILESYSTEM_SYM_LINK;                                 
  else if (RTEMS_RFS_S_ISBLK (mode) || RTEMS_RFS_S_ISCHR (mode))      
ffc17050:	2f 89 60 00 	cmpwi   cr7,r9,24576                           
ffc17054:	41 9e 00 4c 	beq-    cr7,ffc170a0 <rtems_rfs_rtems_node_type+0xdc><== NEVER TAKEN
ffc17058:	2f 89 20 00 	cmpwi   cr7,r9,8192                            
ffc1705c:	41 9e 00 44 	beq-    cr7,ffc170a0 <rtems_rfs_rtems_node_type+0xdc><== NEVER TAKEN
    return RTEMS_FILESYSTEM_DEVICE;                                   
  else                                                                
    return RTEMS_FILESYSTEM_MEMORY_FILE;                              
ffc17060:	3b e0 00 04 	li      r31,4                                  
    return rtems_rfs_rtems_error ("node_type: opening inode", rc);    
  }                                                                   
                                                                      
  type = rtems_rfs_rtems_node_type_by_inode (&inode);                 
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc17064:	7f c3 f3 78 	mr      r3,r30                                 
ffc17068:	38 81 00 08 	addi    r4,r1,8                                
ffc1706c:	4b ff ef bd 	bl      ffc16028 <rtems_rfs_inode_close>       
  if (rc > 0)                                                         
ffc17070:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc17074:	40 a1 ff 94 	ble-    ffc17008 <rtems_rfs_rtems_node_type+0x44><== ALWAYS TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("node_type: closing inode", rc);    
ffc17078:	48 01 1f 81 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
  }                                                                   
                                                                      
  return type;                                                        
}                                                                     
ffc1707c:	80 01 00 44 	lwz     r0,68(r1)                              <== NOT EXECUTED
  type = rtems_rfs_rtems_node_type_by_inode (&inode);                 
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
  if (rc > 0)                                                         
  {                                                                   
    return rtems_rfs_rtems_error ("node_type: closing inode", rc);    
ffc17080:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
ffc17084:	93 c3 00 00 	stw     r30,0(r3)                              <== NOT EXECUTED
  }                                                                   
                                                                      
  return type;                                                        
}                                                                     
ffc17088:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc1708c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc17090:	83 c1 00 38 	lwz     r30,56(r1)                             <== NOT EXECUTED
ffc17094:	83 e1 00 3c 	lwz     r31,60(r1)                             <== NOT EXECUTED
ffc17098:	38 21 00 40 	addi    r1,r1,64                               <== NOT EXECUTED
ffc1709c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  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))      
    return RTEMS_FILESYSTEM_DEVICE;                                   
ffc170a0:	3b e0 00 01 	li      r31,1                                  <== NOT EXECUTED
ffc170a4:	4b ff ff c0 	b       ffc17064 <rtems_rfs_rtems_node_type+0xa0><== NOT EXECUTED
                                                                      

ffc16b24 <rtems_rfs_rtems_readlink>: static ssize_t rtems_rfs_rtems_readlink (const rtems_filesystem_location_info_t* pathloc, char* buf, size_t bufsize) {
ffc16b24:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc16b28:	7c 08 02 a6 	mflr    r0                                     
ffc16b2c:	7c 69 1b 78 	mr      r9,r3                                  
ffc16b30:	90 01 00 24 	stw     r0,36(r1)                              
ffc16b34:	7c 88 23 78 	mr      r8,r4                                  
ffc16b38:	7c a6 2b 78 	mr      r6,r5                                  
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (pathloc); 
ffc16b3c:	81 43 00 14 	lwz     r10,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);       
ffc16b40:	7d 05 43 78 	mr      r5,r8                                  
ffc16b44:	80 89 00 08 	lwz     r4,8(r9)                               
ffc16b48:	38 e1 00 08 	addi    r7,r1,8                                
ffc16b4c:	80 6a 00 08 	lwz     r3,8(r10)                              
                                                                      
static ssize_t                                                        
rtems_rfs_rtems_readlink (const rtems_filesystem_location_info_t* pathloc,
                          char*                                   buf,
                          size_t                                  bufsize)
{                                                                     
ffc16b50:	93 e1 00 1c 	stw     r31,28(r1)                             
  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);       
ffc16b54:	48 00 f8 fd 	bl      ffc26450 <rtems_rfs_symlink_read>      
  if (rc)                                                             
ffc16b58:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc16b5c:	40 82 00 1c 	bne-    ffc16b78 <rtems_rfs_rtems_readlink+0x54><== NEVER TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("readlink: reading link", rc);      
  }                                                                   
                                                                      
  return (ssize_t) length;                                            
}                                                                     
ffc16b60:	80 01 00 24 	lwz     r0,36(r1)                              
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("readlink: reading link", rc);      
  }                                                                   
                                                                      
  return (ssize_t) length;                                            
ffc16b64:	80 61 00 08 	lwz     r3,8(r1)                               
}                                                                     
ffc16b68:	7c 08 03 a6 	mtlr    r0                                     
ffc16b6c:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc16b70:	38 21 00 20 	addi    r1,r1,32                               
ffc16b74:	4e 80 00 20 	blr                                            
    printf ("rtems-rfs-rtems: readlink: in: ino:%" PRId32 "\n", ino); 
                                                                      
  rc = rtems_rfs_symlink_read (fs, ino, buf, bufsize, &length);       
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("readlink: reading link", rc);      
ffc16b78:	48 01 24 81 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
  }                                                                   
                                                                      
  return (ssize_t) length;                                            
}                                                                     
ffc16b7c:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
    printf ("rtems-rfs-rtems: readlink: in: ino:%" PRId32 "\n", ino); 
                                                                      
  rc = rtems_rfs_symlink_read (fs, ino, buf, bufsize, &length);       
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("readlink: reading link", rc);      
ffc16b80:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc16b84:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return (ssize_t) length;                                            
}                                                                     
ffc16b88:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc16b8c:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc16b90:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc16b94:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc169d0 <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) {
ffc169d0:	94 21 ff e0 	stwu    r1,-32(r1)                             <== NOT EXECUTED
ffc169d4:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc169d8:	7c 89 23 78 	mr      r9,r4                                  <== NOT EXECUTED
ffc169dc:	90 01 00 24 	stw     r0,36(r1)                              <== NOT EXECUTED
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (old_loc); 
ffc169e0:	81 44 00 14 	lwz     r10,20(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);
ffc169e4:	81 05 00 08 	lwz     r8,8(r5)                               <== NOT EXECUTED
ffc169e8:	7c e5 3b 78 	mr      r5,r7                                  <== 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)
{                                                                     
ffc169ec:	93 c1 00 18 	stw     r30,24(r1)                             <== NOT EXECUTED
ffc169f0:	93 e1 00 1c 	stw     r31,28(r1)                             <== NOT EXECUTED
  rtems_rfs_file_system*  fs = rtems_rfs_rtems_pathloc_dev (old_loc); 
ffc169f4:	83 ca 00 08 	lwz     r30,8(r10)                             <== 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);                   
ffc169f8:	83 e4 00 08 	lwz     r31,8(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);
ffc169fc:	7c c4 33 78 	mr      r4,r6                                  <== 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)
{                                                                     
ffc16a00:	93 81 00 10 	stw     r28,16(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);
ffc16a04:	7d 06 43 78 	mr      r6,r8                                  <== NOT EXECUTED
ffc16a08:	7f e7 fb 78 	mr      r7,r31                                 <== 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);      
ffc16a0c:	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);
ffc16a10:	39 00 00 01 	li      r8,1                                   <== NOT EXECUTED
ffc16a14:	7f c3 f3 78 	mr      r3,r30                                 <== 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)
{                                                                     
ffc16a18:	93 61 00 0c 	stw     r27,12(r1)                             <== NOT EXECUTED
ffc16a1c:	93 a1 00 14 	stw     r29,20(r1)                             <== 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);                  
ffc16a20:	83 a9 00 0c 	lwz     r29,12(r9)                             <== 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);
ffc16a24:	48 00 f0 65 	bl      ffc25a88 <rtems_rfs_link>              <== NOT EXECUTED
  if (rc)                                                             
ffc16a28:	7c 7b 1b 79 	mr.     r27,r3                                 <== NOT EXECUTED
ffc16a2c:	41 82 00 34 	beq-    ffc16a60 <rtems_rfs_rtems_rename+0x90> <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("rename: linking", rc);             
ffc16a30:	48 01 25 c9 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc16a34:	93 63 00 00 	stw     r27,0(r3)                              <== NOT EXECUTED
ffc16a38:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("rename: unlinking", rc);           
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc16a3c:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
ffc16a40:	83 61 00 0c 	lwz     r27,12(r1)                             <== NOT EXECUTED
ffc16a44:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc16a48:	83 81 00 10 	lwz     r28,16(r1)                             <== NOT EXECUTED
ffc16a4c:	83 a1 00 14 	lwz     r29,20(r1)                             <== NOT EXECUTED
ffc16a50:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc16a54:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc16a58:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc16a5c:	4e 80 00 20 	blr                                            <== 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,                   
ffc16a60:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc16a64:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc16a68:	7f 84 e3 78 	mr      r4,r28                                 <== NOT EXECUTED
ffc16a6c:	7f a6 eb 78 	mr      r6,r29                                 <== NOT EXECUTED
ffc16a70:	38 e0 00 02 	li      r7,2                                   <== NOT EXECUTED
ffc16a74:	48 00 f2 4d 	bl      ffc25cc0 <rtems_rfs_unlink>            <== NOT EXECUTED
                         rtems_rfs_unlink_dir_allowed);               
  if (rc)                                                             
ffc16a78:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("rename: unlinking", rc);           
  }                                                                   
                                                                      
  return 0;                                                           
ffc16a7c:	38 60 00 00 	li      r3,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)                                                             
ffc16a80:	41 82 ff bc 	beq+    ffc16a3c <rtems_rfs_rtems_rename+0x6c> <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("rename: unlinking", rc);           
ffc16a84:	48 01 25 75 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc16a88:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
   */                                                                 
  rc = rtems_rfs_unlink (fs, old_parent, ino, doff,                   
                         rtems_rfs_unlink_dir_allowed);               
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("rename: unlinking", rc);           
ffc16a8c:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc16a90:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc16a94:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc16a98:	83 61 00 0c 	lwz     r27,12(r1)                             <== NOT EXECUTED
ffc16a9c:	83 81 00 10 	lwz     r28,16(r1)                             <== NOT EXECUTED
ffc16aa0:	83 a1 00 14 	lwz     r29,20(r1)                             <== NOT EXECUTED
ffc16aa4:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc16aa8:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc16aac:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc16ab0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc17dc0 <rtems_rfs_rtems_set_handlers>: { /* * Mapping matches RTEMS so no need to change. */ return imode; }
ffc17dc0:	81 24 00 0c 	lwz     r9,12(r4)                              
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;                                               
ffc17dc4:	39 40 00 00 	li      r10,0                                  
ffc17dc8:	88 89 00 02 	lbz     r4,2(r9)                               
ffc17dcc:	89 29 00 03 	lbz     r9,3(r9)                               
ffc17dd0:	54 84 40 2e 	rlwinm  r4,r4,8,0,23                           
ffc17dd4:	91 43 00 10 	stw     r10,16(r3)                             
ffc17dd8:	7c 84 4b 78 	or      r4,r4,r9                               
  if (RTEMS_RFS_S_ISDIR (mode))                                       
ffc17ddc:	54 89 04 26 	rlwinm  r9,r4,0,16,19                          
ffc17de0:	2f 89 40 00 	cmpwi   cr7,r9,16384                           
ffc17de4:	41 9e 00 84 	beq-    cr7,ffc17e68 <rtems_rfs_rtems_set_handlers+0xa8>
    loc->handlers = rtems_rfs_rtems_handlers (dir);                   
  else if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK(mode))       
ffc17de8:	2f 89 20 00 	cmpwi   cr7,r9,8192                            
ffc17dec:	41 9e 00 54 	beq-    cr7,ffc17e40 <rtems_rfs_rtems_set_handlers+0x80><== NEVER TAKEN
ffc17df0:	2f 89 60 00 	cmpwi   cr7,r9,24576                           
ffc17df4:	41 9e 00 4c 	beq-    cr7,ffc17e40 <rtems_rfs_rtems_set_handlers+0x80><== NEVER TAKEN
    loc->handlers = rtems_rfs_rtems_handlers (device);                
  else if (RTEMS_RFS_S_ISLNK (mode))                                  
ffc17df8:	6d 2a ff ff 	xoris   r10,r9,65535                           
ffc17dfc:	2f 8a a0 00 	cmpwi   cr7,r10,-24576                         
ffc17e00:	41 9e 00 54 	beq-    cr7,ffc17e54 <rtems_rfs_rtems_set_handlers+0x94>
    loc->handlers = rtems_rfs_rtems_handlers (link);                  
  else if (RTEMS_RFS_S_ISREG (mode))                                  
ffc17e04:	6d 2a ff ff 	xoris   r10,r9,65535                           
ffc17e08:	2f 8a 80 00 	cmpwi   cr7,r10,-32768                         
ffc17e0c:	41 9e 00 70 	beq-    cr7,ffc17e7c <rtems_rfs_rtems_set_handlers+0xbc><== ALWAYS TAKEN
 */                                                                   
                                                                      
bool                                                                  
rtems_rfs_rtems_set_handlers (rtems_filesystem_location_info_t* loc,  
                              rtems_rfs_inode_handle*           inode)
{                                                                     
ffc17e10:	94 21 ff f8 	stwu    r1,-8(r1)                              <== NOT EXECUTED
ffc17e14:	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);            
ffc17e18:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc17e1c:	38 63 c4 38 	addi    r3,r3,-15304                           <== NOT EXECUTED
 */                                                                   
                                                                      
bool                                                                  
rtems_rfs_rtems_set_handlers (rtems_filesystem_location_info_t* loc,  
                              rtems_rfs_inode_handle*           inode)
{                                                                     
ffc17e20:	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);            
ffc17e24:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc17e28:	48 01 2c 71 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    return false;                                                     
ffc17e2c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
  }                                                                   
  return true;                                                        
}                                                                     
ffc17e30:	80 01 00 0c 	lwz     r0,12(r1)                              <== NOT EXECUTED
ffc17e34:	38 21 00 08 	addi    r1,r1,8                                <== NOT EXECUTED
ffc17e38:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc17e3c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  uint16_t mode = rtems_rfs_inode_get_mode (inode);                   
  loc->handlers = NULL;                                               
  if (RTEMS_RFS_S_ISDIR (mode))                                       
    loc->handlers = rtems_rfs_rtems_handlers (dir);                   
  else if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK(mode))       
    loc->handlers = rtems_rfs_rtems_handlers (device);                
ffc17e40:	3d 20 ff c4 	lis     r9,-60                                 <== NOT EXECUTED
ffc17e44:	39 29 e5 ec 	addi    r9,r9,-6676                            <== NOT EXECUTED
ffc17e48:	91 23 00 10 	stw     r9,16(r3)                              <== NOT EXECUTED
  else                                                                
  {                                                                   
    printf ("rtems-rfs: mode type unknown: %04x\n", mode);            
    return false;                                                     
  }                                                                   
  return true;                                                        
ffc17e4c:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
  uint16_t mode = rtems_rfs_inode_get_mode (inode);                   
  loc->handlers = NULL;                                               
  if (RTEMS_RFS_S_ISDIR (mode))                                       
    loc->handlers = rtems_rfs_rtems_handlers (dir);                   
  else if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK(mode))       
    loc->handlers = rtems_rfs_rtems_handlers (device);                
ffc17e50:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  else if (RTEMS_RFS_S_ISLNK (mode))                                  
    loc->handlers = rtems_rfs_rtems_handlers (link);                  
ffc17e54:	3d 20 ff c4 	lis     r9,-60                                 
ffc17e58:	39 29 c3 80 	addi    r9,r9,-15488                           
ffc17e5c:	91 23 00 10 	stw     r9,16(r3)                              
  else                                                                
  {                                                                   
    printf ("rtems-rfs: mode type unknown: %04x\n", mode);            
    return false;                                                     
  }                                                                   
  return true;                                                        
ffc17e60:	38 60 00 01 	li      r3,1                                   
ffc17e64:	4e 80 00 20 	blr                                            
                              rtems_rfs_inode_handle*           inode)
{                                                                     
  uint16_t mode = rtems_rfs_inode_get_mode (inode);                   
  loc->handlers = NULL;                                               
  if (RTEMS_RFS_S_ISDIR (mode))                                       
    loc->handlers = rtems_rfs_rtems_handlers (dir);                   
ffc17e68:	3d 20 ff c4 	lis     r9,-60                                 
ffc17e6c:	39 29 e6 18 	addi    r9,r9,-6632                            
ffc17e70:	91 23 00 10 	stw     r9,16(r3)                              
  else                                                                
  {                                                                   
    printf ("rtems-rfs: mode type unknown: %04x\n", mode);            
    return false;                                                     
  }                                                                   
  return true;                                                        
ffc17e74:	38 60 00 01 	li      r3,1                                   
}                                                                     
ffc17e78:	4e 80 00 20 	blr                                            
  else if (RTEMS_RFS_S_ISCHR (mode) || RTEMS_RFS_S_ISBLK(mode))       
    loc->handlers = rtems_rfs_rtems_handlers (device);                
  else if (RTEMS_RFS_S_ISLNK (mode))                                  
    loc->handlers = rtems_rfs_rtems_handlers (link);                  
  else if (RTEMS_RFS_S_ISREG (mode))                                  
    loc->handlers = rtems_rfs_rtems_handlers (file);                  
ffc17e7c:	3d 20 ff c4 	lis     r9,-60                                 
ffc17e80:	39 29 e6 44 	addi    r9,r9,-6588                            
ffc17e84:	91 23 00 10 	stw     r9,16(r3)                              
  else                                                                
  {                                                                   
    printf ("rtems-rfs: mode type unknown: %04x\n", mode);            
    return false;                                                     
  }                                                                   
  return true;                                                        
ffc17e88:	38 60 00 01 	li      r3,1                                   
ffc17e8c:	4e 80 00 20 	blr                                            
                                                                      

ffc1689c <rtems_rfs_rtems_statvfs>: * @return int */ static int rtems_rfs_rtems_statvfs (const rtems_filesystem_location_info_t* pathloc, struct statvfs* sb) {
ffc1689c:	94 21 ff e0 	stwu    r1,-32(r1)                             <== NOT EXECUTED
ffc168a0:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
ffc168a4:	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);                       
ffc168a8:	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);  
ffc168ac:	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)  
{                                                                     
ffc168b0:	93 c1 00 18 	stw     r30,24(r1)                             <== NOT EXECUTED
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
ffc168b4:	83 c9 00 08 	lwz     r30,8(r9)                              <== NOT EXECUTED
 * @return int                                                        
 */                                                                   
static int                                                            
rtems_rfs_rtems_statvfs (const rtems_filesystem_location_info_t* pathloc,
                         struct statvfs*                         sb)  
{                                                                     
ffc168b8:	93 e1 00 1c 	stw     r31,28(r1)                             <== NOT EXECUTED
ffc168bc:	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);                       
ffc168c0:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc168c4:	38 81 00 0c 	addi    r4,r1,12                               <== NOT EXECUTED
ffc168c8:	4b ff f3 2d 	bl      ffc15bf4 <rtems_rfs_group_usage>       <== 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;                                                           
}                                                                     
ffc168cc:	80 01 00 24 	lwz     r0,36(r1)                              <== 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);                 
ffc168d0:	81 3e 00 10 	lwz     r9,16(r30)                             <== NOT EXECUTED
  sb->f_blocks  = rtems_rfs_fs_media_blocks (fs);                     
  sb->f_bfree   = rtems_rfs_fs_blocks (fs) - blocks;                  
ffc168d4:	80 fe 00 04 	lwz     r7,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;                                                           
}                                                                     
ffc168d8:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
  rtems_rfs_group_usage (fs, &blocks, &inodes);                       
                                                                      
  sb->f_bsize   = rtems_rfs_fs_block_size (fs);                       
  sb->f_frsize  = rtems_rfs_fs_media_block_size (fs);                 
  sb->f_blocks  = rtems_rfs_fs_media_blocks (fs);                     
  sb->f_bfree   = rtems_rfs_fs_blocks (fs) - blocks;                  
ffc168dc:	81 01 00 0c 	lwz     r8,12(r1)                              <== NOT EXECUTED
  sb->f_bavail  = sb->f_bfree;                                        
  sb->f_files   = rtems_rfs_fs_inodes (fs);                           
ffc168e0:	81 5e 00 14 	lwz     r10,20(r30)                            <== 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);                 
ffc168e4:	81 69 00 20 	lwz     r11,32(r9)                             <== NOT EXECUTED
  sb->f_blocks  = rtems_rfs_fs_media_blocks (fs);                     
  sb->f_bfree   = rtems_rfs_fs_blocks (fs) - blocks;                  
ffc168e8:	7c e8 38 50 	subf    r7,r8,r7                               <== 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);                     
ffc168ec:	80 89 00 1c 	lwz     r4,28(r9)                              <== NOT EXECUTED
ffc168f0:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
  sb->f_bfree   = rtems_rfs_fs_blocks (fs) - blocks;                  
  sb->f_bavail  = sb->f_bfree;                                        
  sb->f_files   = rtems_rfs_fs_inodes (fs);                           
  sb->f_ffree   = rtems_rfs_fs_inodes (fs) - inodes;                  
ffc168f4:	81 01 00 08 	lwz     r8,8(r1)                               <== NOT EXECUTED
  size_t                 blocks;                                      
  size_t                 inodes;                                      
                                                                      
  rtems_rfs_group_usage (fs, &blocks, &inodes);                       
                                                                      
  sb->f_bsize   = rtems_rfs_fs_block_size (fs);                       
ffc168f8:	80 7e 00 08 	lwz     r3,8(r30)                              <== NOT EXECUTED
  sb->f_bavail  = sb->f_bfree;                                        
  sb->f_files   = rtems_rfs_fs_inodes (fs);                           
  sb->f_ffree   = rtems_rfs_fs_inodes (fs) - inodes;                  
  sb->f_favail  = sb->f_ffree;                                        
  sb->f_fsid    = RTEMS_RFS_SB_MAGIC;                                 
  sb->f_flag    = rtems_rfs_fs_flags (fs);                            
ffc168fc:	80 be 00 00 	lwz     r5,0(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;                  
  sb->f_bavail  = sb->f_bfree;                                        
  sb->f_files   = rtems_rfs_fs_inodes (fs);                           
  sb->f_ffree   = rtems_rfs_fs_inodes (fs) - inodes;                  
ffc16900:	7d 08 50 50 	subf    r8,r8,r10                              <== NOT EXECUTED
  sb->f_favail  = sb->f_ffree;                                        
  sb->f_fsid    = RTEMS_RFS_SB_MAGIC;                                 
  sb->f_flag    = rtems_rfs_fs_flags (fs);                            
  sb->f_namemax = rtems_rfs_fs_max_name (fs);                         
ffc16904:	80 de 00 1c 	lwz     r6,28(r30)                             <== 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);                     
ffc16908:	91 3f 00 08 	stw     r9,8(r31)                              <== NOT EXECUTED
  sb->f_bfree   = rtems_rfs_fs_blocks (fs) - blocks;                  
ffc1690c:	91 3f 00 10 	stw     r9,16(r31)                             <== NOT EXECUTED
  sb->f_bavail  = sb->f_bfree;                                        
ffc16910:	91 3f 00 18 	stw     r9,24(r31)                             <== NOT EXECUTED
  sb->f_files   = rtems_rfs_fs_inodes (fs);                           
  sb->f_ffree   = rtems_rfs_fs_inodes (fs) - inodes;                  
  sb->f_favail  = sb->f_ffree;                                        
  sb->f_fsid    = RTEMS_RFS_SB_MAGIC;                                 
ffc16914:	3d 20 28 09 	lis     r9,10249                               <== NOT EXECUTED
ffc16918:	61 29 20 01 	ori     r9,r9,8193                             <== NOT EXECUTED
  size_t                 blocks;                                      
  size_t                 inodes;                                      
                                                                      
  rtems_rfs_group_usage (fs, &blocks, &inodes);                       
                                                                      
  sb->f_bsize   = rtems_rfs_fs_block_size (fs);                       
ffc1691c:	90 7f 00 00 	stw     r3,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;                                                           
}                                                                     
ffc16920:	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);                 
ffc16924:	91 7f 00 04 	stw     r11,4(r31)                             <== NOT EXECUTED
  sb->f_blocks  = rtems_rfs_fs_media_blocks (fs);                     
ffc16928:	90 9f 00 0c 	stw     r4,12(r31)                             <== NOT EXECUTED
  sb->f_bfree   = rtems_rfs_fs_blocks (fs) - blocks;                  
ffc1692c:	90 ff 00 14 	stw     r7,20(r31)                             <== NOT EXECUTED
  sb->f_bavail  = sb->f_bfree;                                        
ffc16930:	90 ff 00 1c 	stw     r7,28(r31)                             <== NOT EXECUTED
  sb->f_files   = rtems_rfs_fs_inodes (fs);                           
ffc16934:	91 5f 00 20 	stw     r10,32(r31)                            <== NOT EXECUTED
  sb->f_ffree   = rtems_rfs_fs_inodes (fs) - inodes;                  
ffc16938:	91 1f 00 24 	stw     r8,36(r31)                             <== NOT EXECUTED
  sb->f_favail  = sb->f_ffree;                                        
ffc1693c:	91 1f 00 28 	stw     r8,40(r31)                             <== NOT EXECUTED
  sb->f_fsid    = RTEMS_RFS_SB_MAGIC;                                 
ffc16940:	91 3f 00 2c 	stw     r9,44(r31)                             <== NOT EXECUTED
  sb->f_flag    = rtems_rfs_fs_flags (fs);                            
ffc16944:	90 bf 00 30 	stw     r5,48(r31)                             <== NOT EXECUTED
  sb->f_namemax = rtems_rfs_fs_max_name (fs);                         
ffc16948:	90 df 00 34 	stw     r6,52(r31)                             <== NOT EXECUTED
                                                                      
  return 0;                                                           
}                                                                     
ffc1694c:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc16950:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc16954:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc16958:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc16b98 <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) {
ffc16b98:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc16b9c:	7c 08 02 a6 	mflr    r0                                     
ffc16ba0:	90 01 00 2c 	stw     r0,44(r1)                              
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
ffc16ba4:	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)
{                                                                     
ffc16ba8:	93 e1 00 24 	stw     r31,36(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);
ffc16bac:	83 e3 00 08 	lwz     r31,8(r3)                              
  int                    rc;                                          
                                                                      
  rc = rtems_rfs_symlink (fs, node_name, node_name_len,               
                          target, strlen (target),                    
ffc16bb0:	7c c3 33 78 	mr      r3,r6                                  
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)
{                                                                     
ffc16bb4:	93 81 00 18 	stw     r28,24(r1)                             
ffc16bb8:	93 a1 00 1c 	stw     r29,28(r1)                             
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
ffc16bbc:	83 8a 00 08 	lwz     r28,8(r10)                             
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)
{                                                                     
ffc16bc0:	93 c1 00 20 	stw     r30,32(r1)                             
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (parent_loc);
  rtems_rfs_ino          parent = rtems_rfs_rtems_get_pathloc_ino (parent_loc);
  int                    rc;                                          
                                                                      
  rc = rtems_rfs_symlink (fs, node_name, node_name_len,               
                          target, strlen (target),                    
ffc16bc4:	90 81 00 08 	stw     r4,8(r1)                               
ffc16bc8:	90 a1 00 0c 	stw     r5,12(r1)                              
ffc16bcc:	90 c1 00 10 	stw     r6,16(r1)                              
ffc16bd0:	48 01 50 c1 	bl      ffc2bc90 <strlen>                      
ffc16bd4:	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,               
ffc16bd8:	48 00 5a 79 	bl      ffc1c650 <geteuid>                     
ffc16bdc:	7c 7e 1b 78 	mr      r30,r3                                 
ffc16be0:	48 00 5a 61 	bl      ffc1c640 <getegid>                     
ffc16be4:	80 81 00 08 	lwz     r4,8(r1)                               
ffc16be8:	7c 69 1b 78 	mr      r9,r3                                  
ffc16bec:	80 a1 00 0c 	lwz     r5,12(r1)                              
ffc16bf0:	7f ea fb 78 	mr      r10,r31                                
ffc16bf4:	80 c1 00 10 	lwz     r6,16(r1)                              
ffc16bf8:	7f 83 e3 78 	mr      r3,r28                                 
ffc16bfc:	7f a7 eb 78 	mr      r7,r29                                 
ffc16c00:	7f c8 f3 78 	mr      r8,r30                                 
ffc16c04:	48 00 f5 69 	bl      ffc2616c <rtems_rfs_symlink>           
                          target, strlen (target),                    
                          geteuid(), getegid(), parent);              
  if (rc)                                                             
ffc16c08:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc16c0c:	40 82 00 28 	bne-    ffc16c34 <rtems_rfs_rtems_symlink+0x9c><== NEVER TAKEN
  {                                                                   
    return rtems_rfs_rtems_error ("symlink: linking", rc);            
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc16c10:	80 01 00 2c 	lwz     r0,44(r1)                              
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("symlink: linking", rc);            
  }                                                                   
                                                                      
  return 0;                                                           
ffc16c14:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc16c18:	83 81 00 18 	lwz     r28,24(r1)                             
ffc16c1c:	7c 08 03 a6 	mtlr    r0                                     
ffc16c20:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc16c24:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc16c28:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc16c2c:	38 21 00 28 	addi    r1,r1,40                               
ffc16c30:	4e 80 00 20 	blr                                            
  rc = rtems_rfs_symlink (fs, node_name, node_name_len,               
                          target, strlen (target),                    
                          geteuid(), getegid(), parent);              
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("symlink: linking", rc);            
ffc16c34:	48 01 23 c5 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc16c38:	80 01 00 2c 	lwz     r0,44(r1)                              <== NOT EXECUTED
  rc = rtems_rfs_symlink (fs, node_name, node_name_len,               
                          target, strlen (target),                    
                          geteuid(), getegid(), parent);              
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("symlink: linking", rc);            
ffc16c3c:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc16c40:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc16c44:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc16c48:	83 81 00 18 	lwz     r28,24(r1)                             <== NOT EXECUTED
ffc16c4c:	83 a1 00 1c 	lwz     r29,28(r1)                             <== NOT EXECUTED
ffc16c50:	83 c1 00 20 	lwz     r30,32(r1)                             <== NOT EXECUTED
ffc16c54:	83 e1 00 24 	lwz     r31,36(r1)                             <== NOT EXECUTED
ffc16c58:	38 21 00 28 	addi    r1,r1,40                               <== NOT EXECUTED
ffc16c5c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc17954 <rtems_rfs_rtems_unlock_by_mt_entry>: static void rtems_rfs_rtems_unlock_by_mt_entry ( const rtems_filesystem_mount_table_entry_t *mt_entry ) {
ffc17954:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc17958:	7c 08 02 a6 	mflr    r0                                     
ffc1795c:	90 01 00 14 	stw     r0,20(r1)                              
  rtems_rfs_file_system* fs = mt_entry->fs_info;                      
ffc17960:	80 63 00 08 	lwz     r3,8(r3)                               
                                                                      
static void                                                           
rtems_rfs_rtems_unlock_by_mt_entry (                                  
  const rtems_filesystem_mount_table_entry_t *mt_entry                
)                                                                     
{                                                                     
ffc17964:	93 e1 00 0c 	stw     r31,12(r1)                             
 * 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);            
ffc17968:	83 e3 00 80 	lwz     r31,128(r3)                            
  rtems_rfs_buffers_release (fs);                                     
ffc1796c:	48 00 ab 7d 	bl      ffc224e8 <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);            
ffc17970:	80 7f 00 00 	lwz     r3,0(r31)                              
ffc17974:	4b ff 86 09 	bl      ffc0ff7c <rtems_semaphore_release>     
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc17978:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc1797c:	40 82 00 18 	bne-    ffc17994 <rtems_rfs_rtems_unlock_by_mt_entry+0x40><== NEVER TAKEN
  rtems_rfs_file_system* fs = mt_entry->fs_info;                      
                                                                      
  rtems_rfs_rtems_unlock (fs);                                        
}                                                                     
ffc17980:	80 01 00 14 	lwz     r0,20(r1)                              
ffc17984:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc17988:	7c 08 03 a6 	mtlr    r0                                     
ffc1798c:	38 21 00 10 	addi    r1,r1,16                               
ffc17990:	4e 80 00 20 	blr                                            
  {                                                                   
#if RTEMS_RFS_TRACE                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_MUTEX))                      
ffc17994:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc17998:	38 80 00 04 	li      r4,4                                   <== NOT EXECUTED
ffc1799c:	48 00 05 01 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc179a0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc179a4:	41 9e ff dc 	beq+    cr7,ffc17980 <rtems_rfs_rtems_unlock_by_mt_entry+0x2c><== NOT EXECUTED
      printf ("rtems-rfs: mutex: release failed: %s\n",               
ffc179a8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc179ac:	48 00 48 5d 	bl      ffc1c208 <rtems_status_text>           <== NOT EXECUTED
ffc179b0:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
ffc179b4:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc179b8:	7c 64 1b 78 	mr      r4,r3                                  <== NOT EXECUTED
ffc179bc:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc179c0:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc179c4:	38 63 c3 ac 	addi    r3,r3,-15444                           <== NOT EXECUTED
ffc179c8:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc179cc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc179d0:	48 01 30 c8 	b       ffc2aa98 <printf>                      <== NOT EXECUTED
                                                                      

ffc16c60 <rtems_rfs_rtems_utime>: static int rtems_rfs_rtems_utime(const rtems_filesystem_location_info_t* pathloc, time_t atime, time_t mtime) {
ffc16c60:	94 21 ff b8 	stwu    r1,-72(r1)                             <== NOT EXECUTED
ffc16c64:	7c 08 02 a6 	mflr    r0                                     <== 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);                  
ffc16c68:	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)  
{                                                                     
ffc16c6c:	90 01 00 4c 	stw     r0,76(r1)                              <== NOT EXECUTED
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
ffc16c70:	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)  
{                                                                     
ffc16c74:	93 a1 00 3c 	stw     r29,60(r1)                             <== NOT EXECUTED
  rtems_rfs_file_system* fs = rtems_rfs_rtems_pathloc_dev (pathloc);  
ffc16c78:	83 aa 00 08 	lwz     r29,8(r10)                             <== NOT EXECUTED
                                                                      
static int                                                            
rtems_rfs_rtems_utime(const rtems_filesystem_location_info_t* pathloc,
                      time_t                                  atime,  
                      time_t                                  mtime)  
{                                                                     
ffc16c7c:	93 c1 00 40 	stw     r30,64(r1)                             <== NOT EXECUTED
ffc16c80:	7c 9e 23 78 	mr      r30,r4                                 <== 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);                  
ffc16c84:	80 83 00 08 	lwz     r4,8(r3)                               <== NOT EXECUTED
ffc16c88:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
                                                                      
static int                                                            
rtems_rfs_rtems_utime(const rtems_filesystem_location_info_t* pathloc,
                      time_t                                  atime,  
                      time_t                                  mtime)  
{                                                                     
ffc16c8c:	93 e1 00 44 	stw     r31,68(r1)                             <== NOT EXECUTED
ffc16c90:	7c bf 2b 78 	mr      r31,r5                                 <== 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);                  
ffc16c94:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
                                                                      
static int                                                            
rtems_rfs_rtems_utime(const rtems_filesystem_location_info_t* pathloc,
                      time_t                                  atime,  
                      time_t                                  mtime)  
{                                                                     
ffc16c98:	93 81 00 38 	stw     r28,56(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);                  
ffc16c9c:	4b ff f1 11 	bl      ffc15dac <rtems_rfs_inode_open>        <== NOT EXECUTED
  if (rc)                                                             
ffc16ca0:	7c 7c 1b 79 	mr.     r28,r3                                 <== NOT EXECUTED
ffc16ca4:	41 82 00 30 	beq-    ffc16cd4 <rtems_rfs_rtems_utime+0x74>  <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("utime: read inode", rc);           
ffc16ca8:	48 01 23 51 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
ffc16cac:	93 83 00 00 	stw     r28,0(r3)                              <== NOT EXECUTED
ffc16cb0:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("utime: closing inode", rc);        
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc16cb4:	80 01 00 4c 	lwz     r0,76(r1)                              <== NOT EXECUTED
ffc16cb8:	83 81 00 38 	lwz     r28,56(r1)                             <== NOT EXECUTED
ffc16cbc:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc16cc0:	83 a1 00 3c 	lwz     r29,60(r1)                             <== NOT EXECUTED
ffc16cc4:	83 c1 00 40 	lwz     r30,64(r1)                             <== NOT EXECUTED
ffc16cc8:	83 e1 00 44 	lwz     r31,68(r1)                             <== NOT EXECUTED
ffc16ccc:	38 21 00 48 	addi    r1,r1,72                               <== NOT EXECUTED
ffc16cd0:	4e 80 00 20 	blr                                            <== 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);                  
ffc16cd4:	81 21 00 14 	lwz     r9,20(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);                  
ffc16cd8:	57 e7 46 3e 	rlwinm  r7,r31,8,24,31                         <== NOT EXECUTED
ffc16cdc:	57 e8 84 3e 	rlwinm  r8,r31,16,16,31                        <== NOT EXECUTED
ffc16ce0:	57 ea c2 3e 	rlwinm  r10,r31,24,8,31                        <== NOT EXECUTED
ffc16ce4:	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);                  
ffc16ce8:	57 c4 46 3e 	rlwinm  r4,r30,8,24,31                         <== NOT EXECUTED
ffc16cec:	57 c5 84 3e 	rlwinm  r5,r30,16,16,31                        <== NOT EXECUTED
ffc16cf0:	98 89 00 10 	stb     r4,16(r9)                              <== NOT EXECUTED
ffc16cf4:	57 c6 c2 3e 	rlwinm  r6,r30,24,8,31                         <== NOT EXECUTED
ffc16cf8:	98 a9 00 11 	stb     r5,17(r9)                              <== NOT EXECUTED
  }                                                                   
                                                                      
  rtems_rfs_inode_set_atime (&inode, atime);                          
  rtems_rfs_inode_set_mtime (&inode, mtime);                          
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc16cfc:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc16d00:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc16d04:	98 c9 00 12 	stb     r6,18(r9)                              <== NOT EXECUTED
ffc16d08:	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);                  
ffc16d0c:	98 e9 00 14 	stb     r7,20(r9)                              <== NOT EXECUTED
ffc16d10:	99 09 00 15 	stb     r8,21(r9)                              <== NOT EXECUTED
ffc16d14:	99 49 00 16 	stb     r10,22(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);                  
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc16d18:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc16d1c:	99 21 00 18 	stb     r9,24(r1)                              <== NOT EXECUTED
ffc16d20:	4b ff f3 09 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
  if (rc)                                                             
ffc16d24:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("utime: closing inode", rc);        
  }                                                                   
                                                                      
  return 0;                                                           
ffc16d28:	38 60 00 00 	li      r3,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)                                                             
ffc16d2c:	41 82 ff 88 	beq+    ffc16cb4 <rtems_rfs_rtems_utime+0x54>  <== NOT EXECUTED
  {                                                                   
    return rtems_rfs_rtems_error ("utime: closing inode", rc);        
ffc16d30:	48 01 22 c9 	bl      ffc28ff8 <__errno>                     <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc16d34:	80 01 00 4c 	lwz     r0,76(r1)                              <== NOT EXECUTED
  rtems_rfs_inode_set_mtime (&inode, mtime);                          
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
  if (rc)                                                             
  {                                                                   
    return rtems_rfs_rtems_error ("utime: closing inode", rc);        
ffc16d38:	93 e3 00 00 	stw     r31,0(r3)                              <== NOT EXECUTED
ffc16d3c:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc16d40:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc16d44:	83 81 00 38 	lwz     r28,56(r1)                             <== NOT EXECUTED
ffc16d48:	83 a1 00 3c 	lwz     r29,60(r1)                             <== NOT EXECUTED
ffc16d4c:	83 c1 00 40 	lwz     r30,64(r1)                             <== NOT EXECUTED
ffc16d50:	83 e1 00 44 	lwz     r31,68(r1)                             <== NOT EXECUTED
ffc16d54:	38 21 00 48 	addi    r1,r1,72                               <== NOT EXECUTED
ffc16d58:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc143bc <rtems_rfs_rup_quotient>: * "quotient = dividend / divisor" */ int rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor) { if (dividend == 0)
ffc143bc:	2c 03 00 00 	cmpwi   r3,0                                   <== NOT EXECUTED
ffc143c0:	41 82 00 14 	beq-    ffc143d4 <rtems_rfs_rup_quotient+0x18> <== NOT EXECUTED
    return 1;                                                         
  return ((dividend - 1) / divisor) + 1;                              
ffc143c4:	38 63 ff ff 	addi    r3,r3,-1                               <== NOT EXECUTED
ffc143c8:	7c 63 23 96 	divwu   r3,r3,r4                               <== NOT EXECUTED
ffc143cc:	38 63 00 01 	addi    r3,r3,1                                <== NOT EXECUTED
ffc143d0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
 */                                                                   
int                                                                   
rtems_rfs_rup_quotient (uint32_t dividend, uint32_t divisor)          
{                                                                     
  if (dividend == 0)                                                  
    return 1;                                                         
ffc143d4:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
  return ((dividend - 1) / divisor) + 1;                              
}                                                                     
ffc143d8:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc21b90 <rtems_rfs_scan_chain>: */ static rtems_rfs_buffer* rtems_rfs_scan_chain (rtems_chain_control* chain, uint32_t* count, rtems_rfs_buffer_block block) {
ffc21b90:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc21b94:	7c 08 02 a6 	mflr    r0                                     
ffc21b98:	90 01 00 24 	stw     r0,36(r1)                              
ffc21b9c:	93 61 00 0c 	stw     r27,12(r1)                             
ffc21ba0:	7c 9b 23 78 	mr      r27,r4                                 
  rtems_rfs_buffer* buffer;                                           
  rtems_chain_node* node;                                             
                                                                      
  node = rtems_chain_last (chain);                                    
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
ffc21ba4:	38 80 00 80 	li      r4,128                                 
 */                                                                   
static rtems_rfs_buffer*                                              
rtems_rfs_scan_chain (rtems_chain_control*   chain,                   
                      uint32_t*              count,                   
                      rtems_rfs_buffer_block block)                   
{                                                                     
ffc21ba8:	93 c1 00 18 	stw     r30,24(r1)                             
ffc21bac:	7c 7e 1b 78 	mr      r30,r3                                 
  rtems_rfs_buffer* buffer;                                           
  rtems_chain_node* node;                                             
                                                                      
  node = rtems_chain_last (chain);                                    
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
ffc21bb0:	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)                   
{                                                                     
ffc21bb4:	93 a1 00 14 	stw     r29,20(r1)                             
ffc21bb8:	7c bd 2b 78 	mr      r29,r5                                 
ffc21bbc:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc21bc0:	93 81 00 10 	stw     r28,16(r1)                             
 */                                                                   
RTEMS_INLINE_ROUTINE Chain_Node *_Chain_Last(                         
  Chain_Control *the_chain                                            
)                                                                     
{                                                                     
  return _Chain_Tail( the_chain )->previous;                          
ffc21bc4:	83 fe 00 08 	lwz     r31,8(r30)                             
  rtems_rfs_buffer* buffer;                                           
  rtems_chain_node* node;                                             
                                                                      
  node = rtems_chain_last (chain);                                    
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
ffc21bc8:	4b ff 62 d5 	bl      ffc17e9c <rtems_rfs_trace>             
ffc21bcc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc21bd0:	40 9e 01 18 	bne-    cr7,ffc21ce8 <rtems_rfs_scan_chain+0x158><== NEVER TAKEN
    printf ("rtems-rfs: buffer-scan: count=%" PRIu32 ", block=%" PRIu32 ": ", *count, block);
                                                                      
  while (!rtems_chain_is_head (chain, node))                          
ffc21bd4:	7f 9f f0 00 	cmpw    cr7,r31,r30                            
ffc21bd8:	41 9e 00 c8 	beq-    cr7,ffc21ca0 <rtems_rfs_scan_chain+0x110><== NEVER TAKEN
  {                                                                   
    buffer = (rtems_rfs_buffer*) node;                                
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))              
      printf ("%" PRIuPTR " ", ((intptr_t) buffer->user));            
ffc21bdc:	3f 80 ff c4 	lis     r28,-60                                
ffc21be0:	3b 9c d1 74 	addi    r28,r28,-11916                         
ffc21be4:	48 00 00 1c 	b       ffc21c00 <rtems_rfs_scan_chain+0x70>   
                                                                      
    if (((rtems_rfs_buffer_block) ((intptr_t)(buffer->user))) == block)
ffc21be8:	81 3f 00 34 	lwz     r9,52(r31)                             
ffc21bec:	7f 89 e8 00 	cmpw    cr7,r9,r29                             
ffc21bf0:	41 9e 00 40 	beq-    cr7,ffc21c30 <rtems_rfs_scan_chain+0xa0>
                                true);                                
  if ((rc > 0) && (rrc == 0))                                         
    rrc = rc;                                                         
                                                                      
  return rrc;                                                         
}                                                                     
ffc21bf4:	83 ff 00 04 	lwz     r31,4(r31)                             
  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))                          
ffc21bf8:	7f 9f f0 00 	cmpw    cr7,r31,r30                            
ffc21bfc:	41 9e 00 a4 	beq-    cr7,ffc21ca0 <rtems_rfs_scan_chain+0x110>
  {                                                                   
    buffer = (rtems_rfs_buffer*) node;                                
                                                                      
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))              
ffc21c00:	38 60 00 00 	li      r3,0                                   
ffc21c04:	38 80 00 80 	li      r4,128                                 
ffc21c08:	4b ff 62 95 	bl      ffc17e9c <rtems_rfs_trace>             
ffc21c0c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc21c10:	41 9e ff d8 	beq+    cr7,ffc21be8 <rtems_rfs_scan_chain+0x58><== ALWAYS TAKEN
      printf ("%" PRIuPTR " ", ((intptr_t) buffer->user));            
ffc21c14:	80 9f 00 34 	lwz     r4,52(r31)                             <== NOT EXECUTED
ffc21c18:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc21c1c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc21c20:	48 00 8e 79 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
                                                                      
    if (((rtems_rfs_buffer_block) ((intptr_t)(buffer->user))) == block)
ffc21c24:	81 3f 00 34 	lwz     r9,52(r31)                             <== NOT EXECUTED
ffc21c28:	7f 89 e8 00 	cmpw    cr7,r9,r29                             <== NOT EXECUTED
ffc21c2c:	40 9e ff c8 	bne+    cr7,ffc21bf4 <rtems_rfs_scan_chain+0x64><== NOT EXECUTED
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))            
ffc21c30:	38 60 00 00 	li      r3,0                                   
ffc21c34:	38 80 00 80 	li      r4,128                                 
ffc21c38:	4b ff 62 65 	bl      ffc17e9c <rtems_rfs_trace>             
ffc21c3c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc21c40:	41 be 00 18 	beq+    cr7,ffc21c58 <rtems_rfs_scan_chain+0xc8><== ALWAYS TAKEN
        printf (": found block=%" PRIuPTR "\n",                       
ffc21c44:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc21c48:	80 9f 00 34 	lwz     r4,52(r31)                             <== NOT EXECUTED
ffc21c4c:	38 63 d1 78 	addi    r3,r3,-11912                           <== NOT EXECUTED
ffc21c50:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc21c54:	48 00 8e 45 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
                ((intptr_t)(buffer->user)));                          
                                                                      
      (*count)--;                                                     
ffc21c58:	81 3b 00 00 	lwz     r9,0(r27)                              
 */                                                                   
RTEMS_INLINE_ROUTINE void rtems_chain_extract(                        
  rtems_chain_node *the_node                                          
)                                                                     
{                                                                     
  _Chain_Extract( the_node );                                         
ffc21c5c:	7f e3 fb 78 	mr      r3,r31                                 
ffc21c60:	39 29 ff ff 	addi    r9,r9,-1                               
ffc21c64:	91 3b 00 00 	stw     r9,0(r27)                              
ffc21c68:	4b ff c4 d9 	bl      ffc1e140 <_Chain_Extract>              
 */                                                                   
RTEMS_INLINE_ROUTINE void _Chain_Set_off_chain(                       
  Chain_Node *node                                                    
)                                                                     
{                                                                     
  node->next = node->previous = NULL;                                 
ffc21c6c:	39 20 00 00 	li      r9,0                                   
ffc21c70:	91 3f 00 04 	stw     r9,4(r31)                              
      rtems_chain_extract (node);                                     
      rtems_chain_set_off_chain (node);                               
      return buffer;                                                  
ffc21c74:	7f e3 fb 78 	mr      r3,r31                                 
ffc21c78:	91 3f 00 00 	stw     r9,0(r31)                              
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
    printf (": not found\n");                                         
                                                                      
  return NULL;                                                        
}                                                                     
ffc21c7c:	80 01 00 24 	lwz     r0,36(r1)                              
ffc21c80:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc21c84:	7c 08 03 a6 	mtlr    r0                                     
ffc21c88:	83 81 00 10 	lwz     r28,16(r1)                             
ffc21c8c:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc21c90:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc21c94:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc21c98:	38 21 00 20 	addi    r1,r1,32                               
ffc21c9c:	4e 80 00 20 	blr                                            
      return buffer;                                                  
    }                                                                 
    node = rtems_chain_previous (node);                               
  }                                                                   
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
ffc21ca0:	38 60 00 00 	li      r3,0                                   
ffc21ca4:	38 80 00 80 	li      r4,128                                 
ffc21ca8:	4b ff 61 f5 	bl      ffc17e9c <rtems_rfs_trace>             
ffc21cac:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc21cb0:	41 9e ff cc 	beq+    cr7,ffc21c7c <rtems_rfs_scan_chain+0xec><== ALWAYS TAKEN
    printf (": not found\n");                                         
ffc21cb4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc21cb8:	38 63 d1 8c 	addi    r3,r3,-11892                           <== NOT EXECUTED
ffc21cbc:	48 00 91 45 	bl      ffc2ae00 <puts>                        <== NOT EXECUTED
                                                                      
  return NULL;                                                        
}                                                                     
ffc21cc0:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
ffc21cc4:	83 61 00 0c 	lwz     r27,12(r1)                             <== NOT EXECUTED
  }                                                                   
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_BUFFER_CHAINS))                
    printf (": not found\n");                                         
                                                                      
  return NULL;                                                        
ffc21cc8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
}                                                                     
ffc21ccc:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc21cd0:	83 81 00 10 	lwz     r28,16(r1)                             <== NOT EXECUTED
ffc21cd4:	83 a1 00 14 	lwz     r29,20(r1)                             <== NOT EXECUTED
ffc21cd8:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc21cdc:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc21ce0:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc21ce4:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  rtems_chain_node* node;                                             
                                                                      
  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);
ffc21ce8:	80 9b 00 00 	lwz     r4,0(r27)                              <== NOT EXECUTED
ffc21cec:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc21cf0:	7f a5 eb 78 	mr      r5,r29                                 <== NOT EXECUTED
ffc21cf4:	38 63 d1 44 	addi    r3,r3,-11964                           <== NOT EXECUTED
ffc21cf8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc21cfc:	48 00 8d 9d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc21d00:	4b ff fe d4 	b       ffc21bd4 <rtems_rfs_scan_chain+0x44>   <== NOT EXECUTED
                                                                      

ffc1fd30 <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,
ffc1fd30:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc1fd34:	7c 08 02 a6 	mflr    r0                                     
  rtems_rfs_bitmap_element* map_bits;                                 
  int                       map_index;                                
  int                       map_offset;                               
  int                       rc;                                       
                                                                      
  *found = false;                                                     
ffc1fd38:	39 20 00 00 	li      r9,0                                   
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
static int                                                            
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
ffc1fd3c:	93 01 00 20 	stw     r24,32(r1)                             
ffc1fd40:	7c b8 2b 78 	mr      r24,r5                                 
ffc1fd44:	93 41 00 28 	stw     r26,40(r1)                             
ffc1fd48:	7c 7a 1b 78 	mr      r26,r3                                 
ffc1fd4c:	93 61 00 2c 	stw     r27,44(r1)                             
ffc1fd50:	7c 9b 23 78 	mr      r27,r4                                 
  *found = false;                                                     
                                                                      
  /*                                                                  
   * Load the bitmap.                                                 
   */                                                                 
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
ffc1fd54:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
static int                                                            
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
ffc1fd58:	93 e1 00 3c 	stw     r31,60(r1)                             
ffc1fd5c:	7c df 33 78 	mr      r31,r6                                 
ffc1fd60:	90 01 00 44 	stw     r0,68(r1)                              
ffc1fd64:	92 e1 00 1c 	stw     r23,28(r1)                             
ffc1fd68:	93 21 00 24 	stw     r25,36(r1)                             
ffc1fd6c:	93 81 00 30 	stw     r28,48(r1)                             
ffc1fd70:	93 a1 00 34 	stw     r29,52(r1)                             
ffc1fd74:	93 c1 00 38 	stw     r30,56(r1)                             
  rtems_rfs_bitmap_element* map_bits;                                 
  int                       map_index;                                
  int                       map_offset;                               
  int                       rc;                                       
                                                                      
  *found = false;                                                     
ffc1fd78:	99 25 00 00 	stb     r9,0(r5)                               
                                                                      
  /*                                                                  
   * Load the bitmap.                                                 
   */                                                                 
  rc = rtems_rfs_bitmap_load_map (control, &map);                     
ffc1fd7c:	4b ff ff 3d 	bl      ffc1fcb8 <rtems_rfs_bitmap_load_map>   
  if (rc > 0)                                                         
ffc1fd80:	2c 03 00 00 	cmpwi   r3,0                                   
ffc1fd84:	40 81 00 38 	ble-    ffc1fdbc <rtems_rfs_search_map_for_clear_bit.constprop.1+0x8c><== ALWAYS TAKEN
  }                                                                   
  while (((direction < 0) && (test_bit >= end_bit))                   
         || ((direction > 0) && (test_bit <= end_bit)));              
                                                                      
  return 0;                                                           
}                                                                     
ffc1fd88:	80 01 00 44 	lwz     r0,68(r1)                              
ffc1fd8c:	82 e1 00 1c 	lwz     r23,28(r1)                             
ffc1fd90:	7c 08 03 a6 	mtlr    r0                                     
ffc1fd94:	83 01 00 20 	lwz     r24,32(r1)                             
ffc1fd98:	83 21 00 24 	lwz     r25,36(r1)                             
ffc1fd9c:	83 41 00 28 	lwz     r26,40(r1)                             
ffc1fda0:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc1fda4:	83 81 00 30 	lwz     r28,48(r1)                             
ffc1fda8:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc1fdac:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc1fdb0:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc1fdb4:	38 21 00 40 	addi    r1,r1,64                               
ffc1fdb8:	4e 80 00 20 	blr                                            
    return rc;                                                        
                                                                      
  /*                                                                  
   * Calculate the bit we are testing plus the end point we search over.
   */                                                                 
  test_bit = *bit;                                                    
ffc1fdbc:	81 5b 00 00 	lwz     r10,0(r27)                             
  end_bit  = test_bit + (window * direction);                         
ffc1fdc0:	57 e7 58 28 	rlwinm  r7,r31,11,0,20                         
                                                                      
  if (end_bit < 0)                                                    
ffc1fdc4:	7c e7 52 15 	add.    r7,r7,r10                              
ffc1fdc8:	41 80 01 e8 	blt-    ffc1ffb0 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x280>
    end_bit = 0;                                                      
  else if (end_bit >= control->size)                                  
ffc1fdcc:	81 3a 00 0c 	lwz     r9,12(r26)                             
ffc1fdd0:	7f 87 48 40 	cmplw   cr7,r7,r9                              
ffc1fdd4:	40 9c 01 a8 	bge-    cr7,ffc1ff7c <rtems_rfs_search_map_for_clear_bit.constprop.1+0x24c>
  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];                  
ffc1fdd8:	80 da 00 14 	lwz     r6,20(r26)                             
  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);             
ffc1fddc:	7d 43 56 70 	srawi   r3,r10,10                              
  search_offset = rtems_rfs_bitmap_map_offset (map_index);            
                                                                      
  search_bits = &control->search_bits[search_index];                  
ffc1fde0:	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);              
ffc1fde4:	7d 5d 2e 70 	srawi   r29,r10,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];                  
ffc1fde8:	7c 66 1a 14 	add     r3,r6,r3                               
  map_bits    = &map[map_index];                                      
ffc1fdec:	80 c1 00 08 	lwz     r6,8(r1)                               
          }                                                           
        }                                                             
                                                                      
        map_bits  += direction;                                       
        map_index += direction;                                       
        map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
ffc1fdf0:	2c 9f 00 00 	cmpwi   cr1,r31,0                              
  map_offset    = rtems_rfs_bitmap_map_offset (test_bit);             
  search_index  = rtems_rfs_bitmap_map_index (map_index);             
  search_offset = rtems_rfs_bitmap_map_offset (map_index);            
                                                                      
  search_bits = &control->search_bits[search_index];                  
  map_bits    = &map[map_index];                                      
ffc1fdf4:	57 be 10 3a 	rlwinm  r30,r29,2,0,29                         
ffc1fdf8:	7f c6 f2 14 	add     r30,r6,r30                             
    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);             
ffc1fdfc:	55 49 06 fe 	clrlwi  r9,r10,27                              
  search_index  = rtems_rfs_bitmap_map_index (map_index);             
  search_offset = rtems_rfs_bitmap_map_offset (map_index);            
ffc1fe00:	57 a8 06 fe 	clrlwi  r8,r29,27                              
            map_offset += direction;                                  
            test_bit   += direction;                                  
          }                                                           
        }                                                             
                                                                      
        map_bits  += direction;                                       
ffc1fe04:	57 f9 10 3a 	rlwinm  r25,r31,2,0,29                         
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
static int                                                            
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
ffc1fe08:	57 e5 28 34 	rlwinm  r5,r31,5,0,26                          
 */                                                                   
static bool                                                           
rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target,               
                       rtems_rfs_bitmap_bit     bit)                  
{                                                                     
  return RTEMS_RFS_BITMAP_TEST_BIT (target, bit);                     
ffc1fe0c:	38 c0 00 01 	li      r6,1                                   
    /*                                                                
     * 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))
ffc1fe10:	80 83 00 00 	lwz     r4,0(r3)                               
ffc1fe14:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc1fe18:	41 9e 00 94 	beq-    cr7,ffc1feac <rtems_rfs_search_map_for_clear_bit.constprop.1+0x17c>
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
static int                                                            
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
ffc1fe1c:	7d 9f ea 14 	add     r12,r31,r29                            
ffc1fe20:	7d 00 43 78 	mr      r0,r8                                  
ffc1fe24:	55 8c 28 34 	rlwinm  r12,r12,5,0,26                         
     * 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)                                     
ffc1fe28:	2b 80 00 1f 	cmplwi  cr7,r0,31                              
ffc1fe2c:	41 9d 00 a8 	bgt-    cr7,ffc1fed4 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x1a4>
 */                                                                   
static bool                                                           
rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target,               
                       rtems_rfs_bitmap_bit     bit)                  
{                                                                     
  return RTEMS_RFS_BITMAP_TEST_BIT (target, bit);                     
ffc1fe30:	7c dc 00 30 	slw     r28,r6,r0                              
    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))     
ffc1fe34:	7f 88 20 39 	and.    r8,r28,r4                              
ffc1fe38:	41 82 00 4c 	beq-    ffc1fe84 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x154>
        {                                                             
          /*                                                          
           * 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)                                    
ffc1fe3c:	2b 89 00 1f 	cmplwi  cr7,r9,31                              
ffc1fe40:	41 9d 00 44 	bgt-    cr7,ffc1fe84 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x154><== NEVER TAKEN
                 && (map_offset < rtems_rfs_bitmap_element_bits ()))  
          {                                                           
            if (!rtems_rfs_bitmap_test (*map_bits, map_offset))       
ffc1fe44:	81 7e 00 00 	lwz     r11,0(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);                     
ffc1fe48:	7c c8 48 30 	slw     r8,r6,r9                               
           * 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))       
ffc1fe4c:	7d 17 58 39 	and.    r23,r8,r11                             
ffc1fe50:	40 82 00 b8 	bne-    ffc1ff08 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x1d8>
              *found = true;                                          
              rtems_rfs_buffer_mark_dirty (control->buffer);          
              return 0;                                               
            }                                                         
                                                                      
            if (test_bit == end_bit)                                  
ffc1fe54:	7f 87 50 00 	cmpw    cr7,r7,r10                             
ffc1fe58:	40 be 00 10 	bne+    cr7,ffc1fe68 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x138>
ffc1fe5c:	48 00 00 28 	b       ffc1fe84 <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))       
ffc1fe60:	40 82 00 a8 	bne-    ffc1ff08 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x1d8>
              *found = true;                                          
              rtems_rfs_buffer_mark_dirty (control->buffer);          
              return 0;                                               
            }                                                         
                                                                      
            if (test_bit == end_bit)                                  
ffc1fe64:	41 9a 00 20 	beq-    cr6,ffc1fe84 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x154>
              break;                                                  
                                                                      
            map_offset += direction;                                  
ffc1fe68:	7d 29 fa 14 	add     r9,r9,r31                              
        {                                                             
          /*                                                          
           * 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)                                    
ffc1fe6c:	2b 89 00 1f 	cmplwi  cr7,r9,31                              
 */                                                                   
static bool                                                           
rtems_rfs_bitmap_test (rtems_rfs_bitmap_element target,               
                       rtems_rfs_bitmap_bit     bit)                  
{                                                                     
  return RTEMS_RFS_BITMAP_TEST_BIT (target, bit);                     
ffc1fe70:	7c c8 48 30 	slw     r8,r6,r9                               
                                                                      
            if (test_bit == end_bit)                                  
              break;                                                  
                                                                      
            map_offset += direction;                                  
            test_bit   += direction;                                  
ffc1fe74:	7d 4a fa 14 	add     r10,r10,r31                            
           * 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))       
ffc1fe78:	7d 77 40 39 	and.    r23,r11,r8                             
              *found = true;                                          
              rtems_rfs_buffer_mark_dirty (control->buffer);          
              return 0;                                               
            }                                                         
                                                                      
            if (test_bit == end_bit)                                  
ffc1fe7c:	7f 07 50 00 	cmpw    cr6,r7,r10                             
        {                                                             
          /*                                                          
           * 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)                                    
ffc1fe80:	40 9d ff e0 	ble+    cr7,ffc1fe60 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x130><== ALWAYS TAKEN
            map_offset += direction;                                  
            test_bit   += direction;                                  
          }                                                           
        }                                                             
                                                                      
        map_bits  += direction;                                       
ffc1fe84:	7f de ca 14 	add     r30,r30,r25                            
        map_index += direction;                                       
ffc1fe88:	7f bd fa 14 	add     r29,r29,r31                            
        map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
ffc1fe8c:	40 85 00 64 	ble-    cr1,ffc1fef0 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x1c0>
        test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
                                                                      
        search_offset += direction;                                   
                                                                      
        if (((direction < 0) && (test_bit <= end_bit))                
            || ((direction > 0) && (test_bit >= end_bit)))            
ffc1fe90:	7f 87 60 00 	cmpw    cr7,r7,r12                             
                                                                      
        map_bits  += direction;                                       
        map_index += direction;                                       
        map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
                                                                      
        test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
ffc1fe94:	7d 8a 63 78 	mr      r10,r12                                
                                                                      
        search_offset += direction;                                   
                                                                      
        if (((direction < 0) && (test_bit <= end_bit))                
            || ((direction > 0) && (test_bit >= end_bit)))            
ffc1fe98:	40 9d 01 34 	ble-    cr7,ffc1ffcc <rtems_rfs_search_map_for_clear_bit.constprop.1+0x29c>
          }                                                           
        }                                                             
                                                                      
        map_bits  += direction;                                       
        map_index += direction;                                       
        map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
ffc1fe9c:	39 20 00 00 	li      r9,0                                   
ffc1fea0:	7c 00 fa 14 	add     r0,r0,r31                              
ffc1fea4:	7d 8c 2a 14 	add     r12,r12,r5                             
ffc1fea8:	4b ff ff 80 	b       ffc1fe28 <rtems_rfs_search_map_for_clear_bit.constprop.1+0xf8>
       *                                                              
       * 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);       
ffc1feac:	55 4a 00 34 	rlwinm  r10,r10,0,0,26                         
      if (direction > 0)                                              
ffc1feb0:	40 85 00 e8 	ble-    cr1,ffc1ff98 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x268>
      {                                                               
        bits_skipped = rtems_rfs_bitmap_element_bits () - search_offset;
ffc1feb4:	20 08 00 20 	subfic  r0,r8,32                               
        test_bit += bits_skipped * rtems_rfs_bitmap_element_bits ();  
ffc1feb8:	54 09 28 34 	rlwinm  r9,r0,5,0,26                           
ffc1febc:	7d 49 52 14 	add     r10,r9,r10                             
        map_offset = 0;                                               
ffc1fec0:	39 20 00 00 	li      r9,0                                   
         * adds 1. Remember the logic is for subtraction.             
         */                                                           
        test_bit -= ((bits_skipped - 1) * rtems_rfs_bitmap_element_bits ()) + 1;
        map_offset = rtems_rfs_bitmap_element_bits () - 1;            
      }                                                               
      map_bits += direction * bits_skipped;                           
ffc1fec4:	7c 1f 01 d6 	mullw   r0,r31,r0                              
ffc1fec8:	54 08 10 3a 	rlwinm  r8,r0,2,0,29                           
ffc1fecc:	7f de 42 14 	add     r30,r30,r8                             
      map_index += direction * bits_skipped;                          
ffc1fed0:	7f bd 02 14 	add     r29,r29,r0                             
    }                                                                 
                                                                      
    search_bits  += direction;                                        
ffc1fed4:	7c 63 ca 14 	add     r3,r3,r25                              
    search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
ffc1fed8:	40 85 00 ac 	ble-    cr1,ffc1ff84 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x254>
  }                                                                   
  while (((direction < 0) && (test_bit >= end_bit))                   
         || ((direction > 0) && (test_bit <= end_bit)));              
ffc1fedc:	40 85 00 dc 	ble-    cr1,ffc1ffb8 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x288><== NEVER TAKEN
ffc1fee0:	7f 87 50 00 	cmpw    cr7,r7,r10                             
ffc1fee4:	41 9c 00 d4 	blt-    cr7,ffc1ffb8 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x288>
ffc1fee8:	39 00 00 00 	li      r8,0                                   
ffc1feec:	4b ff ff 24 	b       ffc1fe10 <rtems_rfs_search_map_for_clear_bit.constprop.1+0xe0>
                                                                      
  return 0;                                                           
}                                                                     
                                                                      
static int                                                            
rtems_rfs_search_map_for_clear_bit (rtems_rfs_bitmap_control* control,
ffc1fef0:	39 4c 00 1f 	addi    r10,r12,31                             
                                                                      
        test_bit = (map_index * rtems_rfs_bitmap_element_bits ()) + map_offset;
                                                                      
        search_offset += direction;                                   
                                                                      
        if (((direction < 0) && (test_bit <= end_bit))                
ffc1fef4:	41 86 00 0c 	beq-    cr1,ffc1ff00 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x1d0><== NEVER TAKEN
ffc1fef8:	7f 87 50 00 	cmpw    cr7,r7,r10                             
ffc1fefc:	40 9c 00 c4 	bge-    cr7,ffc1ffc0 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x290>
          }                                                           
        }                                                             
                                                                      
        map_bits  += direction;                                       
        map_index += direction;                                       
        map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
ffc1ff00:	39 20 00 1f 	li      r9,31                                  
ffc1ff04:	4b ff ff 9c 	b       ffc1fea0 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x170>
 */                                                                   
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);                    
ffc1ff08:	7d 68 40 78 	andc    r8,r11,r8                              
                 && (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,                   
ffc1ff0c:	2f 88 00 00 	cmpwi   cr7,r8,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);
ffc1ff10:	91 1e 00 00 	stw     r8,0(r30)                              
              if (rtems_rfs_bitmap_match(*map_bits,                   
ffc1ff14:	40 9e 00 10 	bne-    cr7,ffc1ff24 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x1f4>
 */                                                                   
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);                    
ffc1ff18:	81 23 00 00 	lwz     r9,0(r3)                               
ffc1ff1c:	7d 29 e0 78 	andc    r9,r9,r28                              
            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,    
ffc1ff20:	91 23 00 00 	stw     r9,0(r3)                               
  }                                                                   
  while (((direction < 0) && (test_bit >= end_bit))                   
         || ((direction > 0) && (test_bit <= end_bit)));              
                                                                      
  return 0;                                                           
}                                                                     
ffc1ff24:	80 01 00 44 	lwz     r0,68(r1)                              
                                         RTEMS_RFS_BITMAP_ELEMENT_SET))
                *search_bits = rtems_rfs_bitmap_set (*search_bits,    
                                                     1 << search_offset);
              control->free--;                                        
              *bit = test_bit;                                        
              *found = true;                                          
ffc1ff28:	39 20 00 01 	li      r9,1                                   
              *map_bits = rtems_rfs_bitmap_set (*map_bits, 1 << map_offset);
              if (rtems_rfs_bitmap_match(*map_bits,                   
                                         RTEMS_RFS_BITMAP_ELEMENT_SET))
                *search_bits = rtems_rfs_bitmap_set (*search_bits,    
                                                     1 << search_offset);
              control->free--;                                        
ffc1ff2c:	81 1a 00 10 	lwz     r8,16(r26)                             
              *bit = test_bit;                                        
              *found = true;                                          
              rtems_rfs_buffer_mark_dirty (control->buffer);          
              return 0;                                               
ffc1ff30:	38 60 00 00 	li      r3,0                                   
  }                                                                   
  while (((direction < 0) && (test_bit >= end_bit))                   
         || ((direction > 0) && (test_bit <= end_bit)));              
                                                                      
  return 0;                                                           
}                                                                     
ffc1ff34:	7c 08 03 a6 	mtlr    r0                                     
                *search_bits = rtems_rfs_bitmap_set (*search_bits,    
                                                     1 << search_offset);
              control->free--;                                        
              *bit = test_bit;                                        
              *found = true;                                          
              rtems_rfs_buffer_mark_dirty (control->buffer);          
ffc1ff38:	80 fa 00 00 	lwz     r7,0(r26)                              
              *map_bits = rtems_rfs_bitmap_set (*map_bits, 1 << map_offset);
              if (rtems_rfs_bitmap_match(*map_bits,                   
                                         RTEMS_RFS_BITMAP_ELEMENT_SET))
                *search_bits = rtems_rfs_bitmap_set (*search_bits,    
                                                     1 << search_offset);
              control->free--;                                        
ffc1ff3c:	39 08 ff ff 	addi    r8,r8,-1                               
  }                                                                   
  while (((direction < 0) && (test_bit >= end_bit))                   
         || ((direction > 0) && (test_bit <= end_bit)));              
                                                                      
  return 0;                                                           
}                                                                     
ffc1ff40:	82 e1 00 1c 	lwz     r23,28(r1)                             
              *map_bits = rtems_rfs_bitmap_set (*map_bits, 1 << map_offset);
              if (rtems_rfs_bitmap_match(*map_bits,                   
                                         RTEMS_RFS_BITMAP_ELEMENT_SET))
                *search_bits = rtems_rfs_bitmap_set (*search_bits,    
                                                     1 << search_offset);
              control->free--;                                        
ffc1ff44:	91 1a 00 10 	stw     r8,16(r26)                             
              *bit = test_bit;                                        
ffc1ff48:	91 5b 00 00 	stw     r10,0(r27)                             
  }                                                                   
  while (((direction < 0) && (test_bit >= end_bit))                   
         || ((direction > 0) && (test_bit <= end_bit)));              
                                                                      
  return 0;                                                           
}                                                                     
ffc1ff4c:	83 21 00 24 	lwz     r25,36(r1)                             
                                         RTEMS_RFS_BITMAP_ELEMENT_SET))
                *search_bits = rtems_rfs_bitmap_set (*search_bits,    
                                                     1 << search_offset);
              control->free--;                                        
              *bit = test_bit;                                        
              *found = true;                                          
ffc1ff50:	99 38 00 00 	stb     r9,0(r24)                              
  }                                                                   
  while (((direction < 0) && (test_bit >= end_bit))                   
         || ((direction > 0) && (test_bit <= end_bit)));              
                                                                      
  return 0;                                                           
}                                                                     
ffc1ff54:	83 41 00 28 	lwz     r26,40(r1)                             
ffc1ff58:	83 01 00 20 	lwz     r24,32(r1)                             
ffc1ff5c:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc1ff60:	83 81 00 30 	lwz     r28,48(r1)                             
ffc1ff64:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc1ff68:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc1ff6c:	83 e1 00 3c 	lwz     r31,60(r1)                             
                *search_bits = rtems_rfs_bitmap_set (*search_bits,    
                                                     1 << search_offset);
              control->free--;                                        
              *bit = test_bit;                                        
              *found = true;                                          
              rtems_rfs_buffer_mark_dirty (control->buffer);          
ffc1ff70:	99 27 00 00 	stb     r9,0(r7)                               
  }                                                                   
  while (((direction < 0) && (test_bit >= end_bit))                   
         || ((direction > 0) && (test_bit <= end_bit)));              
                                                                      
  return 0;                                                           
}                                                                     
ffc1ff74:	38 21 00 40 	addi    r1,r1,64                               
ffc1ff78:	4e 80 00 20 	blr                                            
  end_bit  = test_bit + (window * direction);                         
                                                                      
  if (end_bit < 0)                                                    
    end_bit = 0;                                                      
  else if (end_bit >= control->size)                                  
    end_bit = control->size - 1;                                      
ffc1ff7c:	38 e9 ff ff 	addi    r7,r9,-1                               
ffc1ff80:	4b ff fe 58 	b       ffc1fdd8 <rtems_rfs_search_map_for_clear_bit.constprop.1+0xa8>
                                                                      
    search_bits  += direction;                                        
    search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
  }                                                                   
  while (((direction < 0) && (test_bit >= end_bit))                   
         || ((direction > 0) && (test_bit <= end_bit)));              
ffc1ff84:	41 86 00 34 	beq-    cr1,ffc1ffb8 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x288><== NEVER TAKEN
ffc1ff88:	7f 87 50 00 	cmpw    cr7,r7,r10                             
    }                                                                 
                                                                      
    search_bits  += direction;                                        
    search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
  }                                                                   
  while (((direction < 0) && (test_bit >= end_bit))                   
ffc1ff8c:	41 9d 00 2c 	bgt-    cr7,ffc1ffb8 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x288>
ffc1ff90:	39 00 00 1f 	li      r8,31                                  
ffc1ff94:	4b ff fe 7c 	b       ffc1fe10 <rtems_rfs_search_map_for_clear_bit.constprop.1+0xe0>
        bits_skipped = search_offset + 1;                             
        /*                                                            
         * Need to remove 1 for the rounding up. The above rounds down and
         * adds 1. Remember the logic is for subtraction.             
         */                                                           
        test_bit -= ((bits_skipped - 1) * rtems_rfs_bitmap_element_bits ()) + 1;
ffc1ff98:	55 09 28 34 	rlwinm  r9,r8,5,0,26                           
ffc1ff9c:	7d 29 48 f8 	not     r9,r9                                  
ffc1ffa0:	7d 49 52 14 	add     r10,r9,r10                             
        test_bit += bits_skipped * rtems_rfs_bitmap_element_bits ();  
        map_offset = 0;                                               
      }                                                               
      else                                                            
      {                                                               
        bits_skipped = search_offset + 1;                             
ffc1ffa4:	38 08 00 01 	addi    r0,r8,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;
        map_offset = rtems_rfs_bitmap_element_bits () - 1;            
ffc1ffa8:	39 20 00 1f 	li      r9,31                                  
ffc1ffac:	4b ff ff 18 	b       ffc1fec4 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x194>
   */                                                                 
  test_bit = *bit;                                                    
  end_bit  = test_bit + (window * direction);                         
                                                                      
  if (end_bit < 0)                                                    
    end_bit = 0;                                                      
ffc1ffb0:	38 e0 00 00 	li      r7,0                                   
ffc1ffb4:	4b ff fe 24 	b       ffc1fdd8 <rtems_rfs_search_map_for_clear_bit.constprop.1+0xa8>
    search_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
  }                                                                   
  while (((direction < 0) && (test_bit >= end_bit))                   
         || ((direction > 0) && (test_bit <= end_bit)));              
                                                                      
  return 0;                                                           
ffc1ffb8:	38 60 00 00 	li      r3,0                                   
ffc1ffbc:	4b ff fd cc 	b       ffc1fd88 <rtems_rfs_search_map_for_clear_bit.constprop.1+0x58>
      }                                                               
      map_bits += direction * bits_skipped;                           
      map_index += direction * bits_skipped;                          
    }                                                                 
                                                                      
    search_bits  += direction;                                        
ffc1ffc0:	7c 63 ca 14 	add     r3,r3,r25                              
          }                                                           
        }                                                             
                                                                      
        map_bits  += direction;                                       
        map_index += direction;                                       
        map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
ffc1ffc4:	39 20 00 1f 	li      r9,31                                  
ffc1ffc8:	4b ff ff c4 	b       ffc1ff8c <rtems_rfs_search_map_for_clear_bit.constprop.1+0x25c>
      }                                                               
      map_bits += direction * bits_skipped;                           
      map_index += direction * bits_skipped;                          
    }                                                                 
                                                                      
    search_bits  += direction;                                        
ffc1ffcc:	7c 63 ca 14 	add     r3,r3,r25                              
          }                                                           
        }                                                             
                                                                      
        map_bits  += direction;                                       
        map_index += direction;                                       
        map_offset = direction > 0 ? 0 : rtems_rfs_bitmap_element_bits () - 1;
ffc1ffd0:	39 20 00 00 	li      r9,0                                   
ffc1ffd4:	4b ff ff 08 	b       ffc1fedc <rtems_rfs_search_map_for_clear_bit.constprop.1+0x1ac>
                                                                      

ffc2616c <rtems_rfs_symlink>: const char* link, int link_length, uid_t uid, gid_t gid, rtems_rfs_ino parent) {
ffc2616c:	94 21 ff 38 	stwu    r1,-200(r1)                            
ffc26170:	7c 08 02 a6 	mflr    r0                                     
ffc26174:	93 61 00 b4 	stw     r27,180(r1)                            
ffc26178:	7c 9b 23 78 	mr      r27,r4                                 
  rtems_rfs_inode_handle inode;                                       
  rtems_rfs_ino          ino;                                         
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK))                      
ffc2617c:	38 80 00 00 	li      r4,0                                   
                   const char*            link,                       
                   int                    link_length,                
                   uid_t                  uid,                        
                   gid_t                  gid,                        
                   rtems_rfs_ino          parent)                     
{                                                                     
ffc26180:	93 81 00 b8 	stw     r28,184(r1)                            
ffc26184:	7c 7c 1b 78 	mr      r28,r3                                 
  rtems_rfs_inode_handle inode;                                       
  rtems_rfs_ino          ino;                                         
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK))                      
ffc26188:	38 60 00 02 	li      r3,2                                   
                   const char*            link,                       
                   int                    link_length,                
                   uid_t                  uid,                        
                   gid_t                  gid,                        
                   rtems_rfs_ino          parent)                     
{                                                                     
ffc2618c:	92 e1 00 a4 	stw     r23,164(r1)                            
ffc26190:	7d 17 43 78 	mr      r23,r8                                 
ffc26194:	93 01 00 a8 	stw     r24,168(r1)                            
ffc26198:	7d 38 4b 78 	mr      r24,r9                                 
ffc2619c:	93 21 00 ac 	stw     r25,172(r1)                            
ffc261a0:	7c d9 33 78 	mr      r25,r6                                 
ffc261a4:	93 41 00 b0 	stw     r26,176(r1)                            
ffc261a8:	7d 5a 53 78 	mr      r26,r10                                
ffc261ac:	93 a1 00 bc 	stw     r29,188(r1)                            
ffc261b0:	7c fd 3b 78 	mr      r29,r7                                 
ffc261b4:	93 c1 00 c0 	stw     r30,192(r1)                            
ffc261b8:	7c be 2b 78 	mr      r30,r5                                 
ffc261bc:	90 01 00 cc 	stw     r0,204(r1)                             
ffc261c0:	93 e1 00 c4 	stw     r31,196(r1)                            
  rtems_rfs_inode_handle inode;                                       
  rtems_rfs_ino          ino;                                         
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK))                      
ffc261c4:	4b ff 1c d9 	bl      ffc17e9c <rtems_rfs_trace>             
ffc261c8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc261cc:	40 9e 00 4c 	bne-    cr7,ffc26218 <rtems_rfs_symlink+0xac>  <== NEVER TAKEN
    printf (" link:");                                                
    for (c = 0; c < link_length; c++)                                 
      printf ("%c", link[c]);                                         
  }                                                                   
                                                                      
  if (link_length >= rtems_rfs_fs_block_size (fs))                    
ffc261d0:	80 fc 00 08 	lwz     r7,8(r28)                              
    return ENAMETOOLONG;                                              
ffc261d4:	3b e0 00 5b 	li      r31,91                                 
    printf (" link:");                                                
    for (c = 0; c < link_length; c++)                                 
      printf ("%c", link[c]);                                         
  }                                                                   
                                                                      
  if (link_length >= rtems_rfs_fs_block_size (fs))                    
ffc261d8:	7f 9d 38 40 	cmplw   cr7,r29,r7                             
ffc261dc:	41 9c 00 b0 	blt-    cr7,ffc2628c <rtems_rfs_symlink+0x120> <== ALWAYS TAKEN
  rtems_rfs_inode_set_block_offset (&inode, link_length);             
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
                                                                      
  return rc;                                                          
}                                                                     
ffc261e0:	80 01 00 cc 	lwz     r0,204(r1)                             
ffc261e4:	7f e3 fb 78 	mr      r3,r31                                 
ffc261e8:	82 e1 00 a4 	lwz     r23,164(r1)                            
ffc261ec:	7c 08 03 a6 	mtlr    r0                                     
ffc261f0:	83 01 00 a8 	lwz     r24,168(r1)                            
ffc261f4:	83 21 00 ac 	lwz     r25,172(r1)                            
ffc261f8:	83 41 00 b0 	lwz     r26,176(r1)                            
ffc261fc:	83 61 00 b4 	lwz     r27,180(r1)                            
ffc26200:	83 81 00 b8 	lwz     r28,184(r1)                            
ffc26204:	83 a1 00 bc 	lwz     r29,188(r1)                            
ffc26208:	83 c1 00 c0 	lwz     r30,192(r1)                            
ffc2620c:	83 e1 00 c4 	lwz     r31,196(r1)                            
ffc26210:	38 21 00 c8 	addi    r1,r1,200                              
ffc26214:	4e 80 00 20 	blr                                            
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK))                      
  {                                                                   
    int c;                                                            
    printf ("rtems-rfs: symlink: parent:%" PRIu32 " name:", parent);  
ffc26218:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc2621c:	38 63 e5 50 	addi    r3,r3,-6832                            <== NOT EXECUTED
ffc26220:	7f 44 d3 78 	mr      r4,r26                                 <== NOT EXECUTED
ffc26224:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc26228:	48 00 48 71 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    for (c = 0; c < length; c++)                                      
ffc2622c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              <== NOT EXECUTED
                                                                      
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_symlink (rtems_rfs_file_system* fs,                         
ffc26230:	3b fb ff ff 	addi    r31,r27,-1                             <== NOT EXECUTED
ffc26234:	7f df f2 14 	add     r30,r31,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++)                                      
ffc26238:	40 9d 00 14 	ble-    cr7,ffc2624c <rtems_rfs_symlink+0xe0>  <== NOT EXECUTED
      printf ("%c", name[c]);                                         
ffc2623c:	8c 7f 00 01 	lbzu    r3,1(r31)                              <== NOT EXECUTED
ffc26240:	48 00 4a e5 	bl      ffc2ad24 <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++)                                      
ffc26244:	7f 9f f0 00 	cmpw    cr7,r31,r30                            <== NOT EXECUTED
ffc26248:	40 9e ff f4 	bne+    cr7,ffc2623c <rtems_rfs_symlink+0xd0>  <== NOT EXECUTED
      printf ("%c", name[c]);                                         
    printf (" link:");                                                
ffc2624c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc26250:	38 63 e5 78 	addi    r3,r3,-6792                            <== NOT EXECUTED
ffc26254:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc26258:	48 00 48 41 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
    for (c = 0; c < link_length; c++)                                 
ffc2625c:	2f 9d 00 00 	cmpwi   cr7,r29,0                              <== NOT EXECUTED
                                                                      
  return rc;                                                          
}                                                                     
                                                                      
int                                                                   
rtems_rfs_symlink (rtems_rfs_file_system* fs,                         
ffc26260:	3b f9 ff ff 	addi    r31,r25,-1                             <== NOT EXECUTED
ffc26264:	7f df ea 14 	add     r30,r31,r29                            <== 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++)                                 
ffc26268:	40 bd ff 68 	ble-    cr7,ffc261d0 <rtems_rfs_symlink+0x64>  <== NOT EXECUTED
      printf ("%c", link[c]);                                         
ffc2626c:	8c 7f 00 01 	lbzu    r3,1(r31)                              <== NOT EXECUTED
ffc26270:	48 00 4a b5 	bl      ffc2ad24 <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++)                                 
ffc26274:	7f 9f f0 00 	cmpw    cr7,r31,r30                            <== NOT EXECUTED
ffc26278:	40 9e ff f4 	bne+    cr7,ffc2626c <rtems_rfs_symlink+0x100> <== NOT EXECUTED
      printf ("%c", link[c]);                                         
  }                                                                   
                                                                      
  if (link_length >= rtems_rfs_fs_block_size (fs))                    
ffc2627c:	80 fc 00 08 	lwz     r7,8(r28)                              <== NOT EXECUTED
    return ENAMETOOLONG;                                              
ffc26280:	3b e0 00 5b 	li      r31,91                                 <== NOT EXECUTED
    printf (" link:");                                                
    for (c = 0; c < link_length; c++)                                 
      printf ("%c", link[c]);                                         
  }                                                                   
                                                                      
  if (link_length >= rtems_rfs_fs_block_size (fs))                    
ffc26284:	7f 9d 38 40 	cmplw   cr7,r29,r7                             <== NOT EXECUTED
ffc26288:	40 9c ff 58 	bge+    cr7,ffc261e0 <rtems_rfs_symlink+0x74>  <== NOT EXECUTED
    return ENAMETOOLONG;                                              
                                                                      
  rc = rtems_rfs_inode_create (fs, parent, name, strlen (name),       
ffc2628c:	7f 63 db 78 	mr      r3,r27                                 
ffc26290:	48 00 5a 01 	bl      ffc2bc90 <strlen>                      
ffc26294:	39 21 00 98 	addi    r9,r1,152                              
ffc26298:	91 21 00 08 	stw     r9,8(r1)                               
ffc2629c:	38 e0 00 00 	li      r7,0                                   
ffc262a0:	7c 66 1b 78 	mr      r6,r3                                  
ffc262a4:	7f 44 d3 78 	mr      r4,r26                                 
ffc262a8:	7f 83 e3 78 	mr      r3,r28                                 
ffc262ac:	7f 65 db 78 	mr      r5,r27                                 
ffc262b0:	60 e7 a1 ff 	ori     r7,r7,41471                            
ffc262b4:	39 00 00 01 	li      r8,1                                   
ffc262b8:	7e e9 bb 78 	mr      r9,r23                                 
ffc262bc:	7f 0a c3 78 	mr      r10,r24                                
ffc262c0:	4b ff 01 85 	bl      ffc16444 <rtems_rfs_inode_create>      
                               RTEMS_RFS_S_SYMLINK,                   
                               1, uid, gid, &ino);                    
  if (rc > 0)                                                         
ffc262c4:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc262c8:	41 81 ff 18 	bgt+    ffc261e0 <rtems_rfs_symlink+0x74>      <== NEVER TAKEN
    return rc;                                                        
                                                                      
  rc = rtems_rfs_inode_open (fs, ino, &inode, true);                  
ffc262cc:	80 81 00 98 	lwz     r4,152(r1)                             
ffc262d0:	7f 83 e3 78 	mr      r3,r28                                 
ffc262d4:	38 a1 00 60 	addi    r5,r1,96                               
ffc262d8:	38 c0 00 01 	li      r6,1                                   
ffc262dc:	4b fe fa d1 	bl      ffc15dac <rtems_rfs_inode_open>        
  if (rc > 0)                                                         
ffc262e0:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc262e4:	41 81 fe fc 	bgt+    ffc261e0 <rtems_rfs_symlink+0x74>      <== 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)                   
ffc262e8:	2b 9d 00 13 	cmplwi  cr7,r29,19                             
ffc262ec:	41 9d 00 84 	bgt-    cr7,ffc26370 <rtems_rfs_symlink+0x204> <== NEVER TAKEN
  {                                                                   
    memset (inode.node->data.name, 0, RTEMS_RFS_INODE_DATA_NAME_SIZE);
ffc262f0:	81 41 00 6c 	lwz     r10,108(r1)                            
ffc262f4:	3b e0 00 00 	li      r31,0                                  
    memcpy (inode.node->data.name, link, link_length);                
ffc262f8:	7f 24 cb 78 	mr      r4,r25                                 
   * 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)                   
  {                                                                   
    memset (inode.node->data.name, 0, RTEMS_RFS_INODE_DATA_NAME_SIZE);
ffc262fc:	39 2a 00 1c 	addi    r9,r10,28                              
ffc26300:	93 ea 00 1c 	stw     r31,28(r10)                            
    memcpy (inode.node->data.name, link, link_length);                
ffc26304:	7d 23 4b 78 	mr      r3,r9                                  
   * 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)                   
  {                                                                   
    memset (inode.node->data.name, 0, RTEMS_RFS_INODE_DATA_NAME_SIZE);
ffc26308:	93 ea 00 20 	stw     r31,32(r10)                            
    memcpy (inode.node->data.name, link, link_length);                
ffc2630c:	7f a5 eb 78 	mr      r5,r29                                 
   * 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)                   
  {                                                                   
    memset (inode.node->data.name, 0, RTEMS_RFS_INODE_DATA_NAME_SIZE);
ffc26310:	93 ea 00 24 	stw     r31,36(r10)                            
ffc26314:	93 ea 00 28 	stw     r31,40(r10)                            
ffc26318:	93 ea 00 2c 	stw     r31,44(r10)                            
    memcpy (inode.node->data.name, link, link_length);                
ffc2631c:	48 00 42 f1 	bl      ffc2a60c <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);      
ffc26320:	81 21 00 6c 	lwz     r9,108(r1)                             
ffc26324:	9b e9 00 0c 	stb     r31,12(r9)                             
ffc26328:	81 21 00 6c 	lwz     r9,108(r1)                             
ffc2632c:	9b e9 00 0d 	stb     r31,13(r9)                             
ffc26330:	81 21 00 6c 	lwz     r9,108(r1)                             
ffc26334:	9b e9 00 0e 	stb     r31,14(r9)                             
ffc26338:	81 21 00 6c 	lwz     r9,108(r1)                             
ffc2633c:	9b e9 00 0f 	stb     r31,15(r9)                             
 */                                                                   
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);    
ffc26340:	81 21 00 6c 	lwz     r9,108(r1)                             
ffc26344:	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);                            
ffc26348:	7f 83 e3 78 	mr      r3,r28                                 
ffc2634c:	99 49 00 0a 	stb     r10,10(r9)                             
ffc26350:	38 81 00 60 	addi    r4,r1,96                               
ffc26354:	81 21 00 6c 	lwz     r9,108(r1)                             
ffc26358:	9b a9 00 0b 	stb     r29,11(r9)                             
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc2635c:	39 20 00 01 	li      r9,1                                   
ffc26360:	99 21 00 70 	stb     r9,112(r1)                             
ffc26364:	4b fe fc c5 	bl      ffc16028 <rtems_rfs_inode_close>       
ffc26368:	7c 7f 1b 78 	mr      r31,r3                                 
ffc2636c:	4b ff fe 74 	b       ffc261e0 <rtems_rfs_symlink+0x74>      
    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);                 
ffc26370:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc26374:	38 81 00 60 	addi    r4,r1,96                               <== NOT EXECUTED
ffc26378:	38 a1 00 10 	addi    r5,r1,16                               <== NOT EXECUTED
ffc2637c:	4b ff a8 e1 	bl      ffc20c5c <rtems_rfs_block_map_open>    <== NOT EXECUTED
    if (rc > 0)                                                       
ffc26380:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
    {                                                                 
      rtems_rfs_inode_close (fs, &inode);                             
ffc26384:	7f 83 e3 78 	mr      r3,r28                                 <== 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)                                                       
ffc26388:	40 81 00 10 	ble-    ffc26398 <rtems_rfs_symlink+0x22c>     <== NOT EXECUTED
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, false); 
    if (rc > 0)                                                       
    {                                                                 
      rtems_rfs_block_map_close (fs, &map);                           
      rtems_rfs_inode_close (fs, &inode);                             
ffc2638c:	38 81 00 60 	addi    r4,r1,96                               <== NOT EXECUTED
ffc26390:	4b fe fc 99 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
ffc26394:	4b ff fe 4c 	b       ffc261e0 <rtems_rfs_symlink+0x74>      <== NOT EXECUTED
    {                                                                 
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
                                                                      
    rc = rtems_rfs_block_map_grow (fs, &map, 1, &block);              
ffc26398:	38 81 00 10 	addi    r4,r1,16                               <== NOT EXECUTED
ffc2639c:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc263a0:	38 c1 00 94 	addi    r6,r1,148                              <== NOT EXECUTED
ffc263a4:	4b ff af 61 	bl      ffc21304 <rtems_rfs_block_map_grow>    <== NOT EXECUTED
    if (rc > 0)                                                       
ffc263a8:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc263ac:	40 81 00 18 	ble-    ffc263c4 <rtems_rfs_symlink+0x258>     <== NOT EXECUTED
    }                                                                 
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, false); 
    if (rc > 0)                                                       
    {                                                                 
      rtems_rfs_block_map_close (fs, &map);                           
ffc263b0:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc263b4:	38 81 00 10 	addi    r4,r1,16                               <== NOT EXECUTED
ffc263b8:	4b ff aa 91 	bl      ffc20e48 <rtems_rfs_block_map_close>   <== NOT EXECUTED
      rtems_rfs_inode_close (fs, &inode);                             
ffc263bc:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc263c0:	4b ff ff cc 	b       ffc2638c <rtems_rfs_symlink+0x220>     <== 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); 
ffc263c4:	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;                                              
  handle->bnum  = 0;                                                  
ffc263c8:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc263cc:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc263d0:	93 c1 00 8c 	stw     r30,140(r1)                            <== NOT EXECUTED
ffc263d4:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc263d8:	38 81 00 88 	addi    r4,r1,136                              <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc263dc:	99 21 00 88 	stb     r9,136(r1)                             <== NOT EXECUTED
ffc263e0:	38 c0 00 00 	li      r6,0                                   <== NOT EXECUTED
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc263e4:	93 c1 00 90 	stw     r30,144(r1)                            <== NOT EXECUTED
ffc263e8:	4b ff bb 31 	bl      ffc21f18 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
    if (rc > 0)                                                       
ffc263ec:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc263f0:	41 81 ff c0 	bgt+    ffc263b0 <rtems_rfs_symlink+0x244>     <== NOT EXECUTED
      rtems_rfs_block_map_close (fs, &map);                           
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
                                                                      
    data = rtems_rfs_buffer_data (&buffer);                           
ffc263f4:	81 21 00 90 	lwz     r9,144(r1)                             <== NOT EXECUTED
                                                                      
    memset (data, 0xff, rtems_rfs_fs_block_size (fs));                
ffc263f8:	38 80 00 ff 	li      r4,255                                 <== NOT EXECUTED
ffc263fc:	80 bc 00 08 	lwz     r5,8(r28)                              <== NOT EXECUTED
      rtems_rfs_block_map_close (fs, &map);                           
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
                                                                      
    data = rtems_rfs_buffer_data (&buffer);                           
ffc26400:	83 e9 00 1c 	lwz     r31,28(r9)                             <== NOT EXECUTED
                                                                      
    memset (data, 0xff, rtems_rfs_fs_block_size (fs));                
ffc26404:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc26408:	48 00 44 35 	bl      ffc2a83c <memset>                      <== NOT EXECUTED
    memcpy (data, link, link_length);                                 
ffc2640c:	7f a5 eb 78 	mr      r5,r29                                 <== NOT EXECUTED
ffc26410:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc26414:	7f 24 cb 78 	mr      r4,r25                                 <== NOT EXECUTED
ffc26418:	48 00 41 f5 	bl      ffc2a60c <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);                       
ffc2641c:	38 81 00 88 	addi    r4,r1,136                              <== NOT EXECUTED
ffc26420:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc26424:	4b ff b8 e1 	bl      ffc21d04 <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);                        
ffc26428:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc2642c:	38 81 00 10 	addi    r4,r1,16                               <== NOT EXECUTED
  handle->dirty = false;                                              
ffc26430:	9b c1 00 88 	stb     r30,136(r1)                            <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc26434:	93 c1 00 8c 	stw     r30,140(r1)                            <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc26438:	93 c1 00 90 	stw     r30,144(r1)                            <== NOT EXECUTED
ffc2643c:	4b ff aa 0d 	bl      ffc20e48 <rtems_rfs_block_map_close>   <== NOT EXECUTED
    if (rc > 0)                                                       
ffc26440:	7c 7f 1b 79 	mr.     r31,r3                                 <== NOT EXECUTED
ffc26444:	40 a1 fe fc 	ble-    ffc26340 <rtems_rfs_symlink+0x1d4>     <== NOT EXECUTED
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, false); 
    if (rc > 0)                                                       
    {                                                                 
      rtems_rfs_block_map_close (fs, &map);                           
      rtems_rfs_inode_close (fs, &inode);                             
ffc26448:	7f 83 e3 78 	mr      r3,r28                                 <== NOT EXECUTED
ffc2644c:	4b ff ff 40 	b       ffc2638c <rtems_rfs_symlink+0x220>     <== NOT EXECUTED
                                                                      

ffc26450 <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) {
ffc26450:	94 21 ff 50 	stwu    r1,-176(r1)                            
ffc26454:	7c 08 02 a6 	mflr    r0                                     
ffc26458:	93 c1 00 a8 	stw     r30,168(r1)                            
ffc2645c:	7c 9e 23 78 	mr      r30,r4                                 
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK_READ))                 
ffc26460:	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)                
{                                                                     
ffc26464:	93 e1 00 ac 	stw     r31,172(r1)                            
ffc26468:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK_READ))                 
ffc2646c:	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)                
{                                                                     
ffc26470:	93 61 00 9c 	stw     r27,156(r1)                            
ffc26474:	7c bb 2b 78 	mr      r27,r5                                 
ffc26478:	93 81 00 a0 	stw     r28,160(r1)                            
ffc2647c:	7c fc 3b 78 	mr      r28,r7                                 
ffc26480:	93 a1 00 a4 	stw     r29,164(r1)                            
ffc26484:	7c dd 33 78 	mr      r29,r6                                 
ffc26488:	90 01 00 b4 	stw     r0,180(r1)                             
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK_READ))                 
ffc2648c:	4b ff 1a 11 	bl      ffc17e9c <rtems_rfs_trace>             
ffc26490:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc26494:	40 9e 00 70 	bne-    cr7,ffc26504 <rtems_rfs_symlink_read+0xb4><== NEVER TAKEN
    printf ("rtems-rfs: symlink-read: link:%" PRIu32 "\n", link);     
                                                                      
  rc = rtems_rfs_inode_open (fs, link, &inode, true);                 
ffc26498:	7f c4 f3 78 	mr      r4,r30                                 
ffc2649c:	7f e3 fb 78 	mr      r3,r31                                 
ffc264a0:	38 a1 00 58 	addi    r5,r1,88                               
ffc264a4:	38 c0 00 01 	li      r6,1                                   
ffc264a8:	4b fe f9 05 	bl      ffc15dac <rtems_rfs_inode_open>        
  if (rc)                                                             
ffc264ac:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc264b0:	40 82 00 2c 	bne-    ffc264dc <rtems_rfs_symlink_read+0x8c> <== NEVER TAKEN
    return rc;                                                        
                                                                      
  if (!RTEMS_RFS_S_ISLNK (rtems_rfs_inode_get_mode (&inode)))         
ffc264b4:	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);                    
ffc264b8:	89 44 00 02 	lbz     r10,2(r4)                              
ffc264bc:	55 4a 44 26 	rlwinm  r10,r10,8,16,19                        
ffc264c0:	6d 49 ff ff 	xoris   r9,r10,65535                           
ffc264c4:	2f 89 a0 00 	cmpwi   cr7,r9,-24576                          
ffc264c8:	41 9e 00 54 	beq-    cr7,ffc2651c <rtems_rfs_symlink_read+0xcc><== ALWAYS TAKEN
  {                                                                   
    rtems_rfs_inode_close (fs, &inode);                               
ffc264cc:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc264d0:	38 81 00 58 	addi    r4,r1,88                               <== NOT EXECUTED
ffc264d4:	4b fe fb 55 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
    return EINVAL;                                                    
ffc264d8:	3b c0 00 16 	li      r30,22                                 <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
                                                                      
  return rc;                                                          
}                                                                     
ffc264dc:	80 01 00 b4 	lwz     r0,180(r1)                             
ffc264e0:	7f c3 f3 78 	mr      r3,r30                                 
ffc264e4:	83 61 00 9c 	lwz     r27,156(r1)                            
ffc264e8:	7c 08 03 a6 	mtlr    r0                                     
ffc264ec:	83 81 00 a0 	lwz     r28,160(r1)                            
ffc264f0:	83 a1 00 a4 	lwz     r29,164(r1)                            
ffc264f4:	83 c1 00 a8 	lwz     r30,168(r1)                            
ffc264f8:	83 e1 00 ac 	lwz     r31,172(r1)                            
ffc264fc:	38 21 00 b0 	addi    r1,r1,176                              
ffc26500:	4e 80 00 20 	blr                                            
{                                                                     
  rtems_rfs_inode_handle inode;                                       
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_SYMLINK_READ))                 
    printf ("rtems-rfs: symlink-read: link:%" PRIu32 "\n", link);     
ffc26504:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc26508:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc2650c:	38 63 e5 80 	addi    r3,r3,-6784                            <== NOT EXECUTED
ffc26510:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc26514:	48 00 45 85 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc26518:	4b ff ff 80 	b       ffc26498 <rtems_rfs_symlink_read+0x48> <== 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);            
ffc2651c:	88 a4 00 0a 	lbz     r5,10(r4)                              
ffc26520:	89 24 00 0b 	lbz     r9,11(r4)                              
ffc26524:	54 a5 40 2e 	rlwinm  r5,r5,8,0,23                           
  {                                                                   
    rtems_rfs_inode_close (fs, &inode);                               
    return EINVAL;                                                    
  }                                                                   
                                                                      
  *length = rtems_rfs_inode_get_block_offset (&inode);                
ffc26528:	7c a5 4b 78 	or      r5,r5,r9                               
ffc2652c:	7f 85 e8 40 	cmplw   cr7,r5,r29                             
ffc26530:	40 9d 00 08 	ble-    cr7,ffc26538 <rtems_rfs_symlink_read+0xe8>
ffc26534:	7f a5 eb 78 	mr      r5,r29                                 
ffc26538:	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);             
ffc2653c:	88 e4 00 0c 	lbz     r7,12(r4)                              
ffc26540:	89 44 00 0d 	lbz     r10,13(r4)                             
ffc26544:	89 04 00 0f 	lbz     r8,15(r4)                              
ffc26548:	54 e7 c0 0e 	rlwinm  r7,r7,24,0,7                           
ffc2654c:	55 4a 80 1e 	rlwinm  r10,r10,16,0,15                        
ffc26550:	89 24 00 0e 	lbz     r9,14(r4)                              
ffc26554:	7c ea 53 78 	or      r10,r7,r10                             
ffc26558:	7d 4a 43 78 	or      r10,r10,r8                             
ffc2655c:	55 29 40 2e 	rlwinm  r9,r9,8,0,23                           
  if (size < *length)                                                 
  {                                                                   
    *length = size;                                                   
  }                                                                   
                                                                      
  if (rtems_rfs_inode_get_block_count (&inode) == 0)                  
ffc26560:	7d 48 4b 79 	or.     r8,r10,r9                              
ffc26564:	40 82 00 24 	bne-    ffc26588 <rtems_rfs_symlink_read+0x138><== NEVER TAKEN
  {                                                                   
    memcpy (path, inode.node->data.name, *length);                    
ffc26568:	7f 63 db 78 	mr      r3,r27                                 
ffc2656c:	38 84 00 1c 	addi    r4,r4,28                               
ffc26570:	48 00 40 9d 	bl      ffc2a60c <memcpy>                      
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &inode);                            
ffc26574:	7f e3 fb 78 	mr      r3,r31                                 
ffc26578:	38 81 00 58 	addi    r4,r1,88                               
ffc2657c:	4b fe fa ad 	bl      ffc16028 <rtems_rfs_inode_close>       
ffc26580:	7c 7e 1b 78 	mr      r30,r3                                 
ffc26584:	4b ff ff 58 	b       ffc264dc <rtems_rfs_symlink_read+0x8c> 
    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);                 
ffc26588:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc2658c:	38 81 00 58 	addi    r4,r1,88                               <== NOT EXECUTED
ffc26590:	38 a1 00 08 	addi    r5,r1,8                                <== NOT EXECUTED
ffc26594:	4b ff a6 c9 	bl      ffc20c5c <rtems_rfs_block_map_open>    <== NOT EXECUTED
    if (rc > 0)                                                       
ffc26598:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
    {                                                                 
      rtems_rfs_inode_close (fs, &inode);                             
ffc2659c:	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)                                                       
ffc265a0:	40 81 00 10 	ble-    ffc265b0 <rtems_rfs_symlink_read+0x160><== NOT EXECUTED
    }                                                                 
                                                                      
    rc = rtems_rfs_block_map_close (fs, &map);                        
    if (rc > 0)                                                       
    {                                                                 
      rtems_rfs_inode_close (fs, &inode);                             
ffc265a4:	38 81 00 58 	addi    r4,r1,88                               <== NOT EXECUTED
ffc265a8:	4b fe fa 81 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
ffc265ac:	4b ff ff 30 	b       ffc264dc <rtems_rfs_symlink_read+0x8c> <== NOT EXECUTED
    {                                                                 
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
                                                                      
    rc = rtems_rfs_block_map_seek (fs, &map, 0, &block);              
ffc265b0:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc265b4:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc265b8:	38 c0 00 00 	li      r6,0                                   <== NOT EXECUTED
ffc265bc:	38 e1 00 8c 	addi    r7,r1,140                              <== NOT EXECUTED
ffc265c0:	4b ff ac 41 	bl      ffc21200 <rtems_rfs_block_map_seek>    <== NOT EXECUTED
    if (rc > 0)                                                       
ffc265c4:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
ffc265c8:	40 81 00 20 	ble-    ffc265e8 <rtems_rfs_symlink_read+0x198><== NOT EXECUTED
    }                                                                 
                                                                      
    rc = rtems_rfs_buffer_handle_request (fs, &buffer, block, false); 
    if (rc > 0)                                                       
    {                                                                 
      rtems_rfs_block_map_close (fs, &map);                           
ffc265cc:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc265d0:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc265d4:	4b ff a8 75 	bl      ffc20e48 <rtems_rfs_block_map_close>   <== NOT EXECUTED
      rtems_rfs_inode_close (fs, &inode);                             
ffc265d8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc265dc:	38 81 00 58 	addi    r4,r1,88                               <== NOT EXECUTED
ffc265e0:	4b fe fa 49 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
ffc265e4:	4b ff fe f8 	b       ffc264dc <rtems_rfs_symlink_read+0x8c> <== 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); 
ffc265e8:	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;                                              
  handle->bnum  = 0;                                                  
ffc265ec:	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;                                              
ffc265f0:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc265f4:	93 a1 00 84 	stw     r29,132(r1)                            <== NOT EXECUTED
ffc265f8:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc265fc:	38 81 00 80 	addi    r4,r1,128                              <== NOT EXECUTED
 */                                                                   
static inline int                                                     
rtems_rfs_buffer_handle_open (rtems_rfs_file_system*   fs,            
                              rtems_rfs_buffer_handle* handle)        
{                                                                     
  handle->dirty = false;                                              
ffc26600:	99 21 00 80 	stb     r9,128(r1)                             <== NOT EXECUTED
ffc26604:	38 c0 00 00 	li      r6,0                                   <== NOT EXECUTED
  handle->bnum  = 0;                                                  
  handle->buffer = NULL;                                              
ffc26608:	93 a1 00 88 	stw     r29,136(r1)                            <== NOT EXECUTED
ffc2660c:	4b ff b9 0d 	bl      ffc21f18 <rtems_rfs_buffer_handle_request><== NOT EXECUTED
    if (rc > 0)                                                       
ffc26610:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
ffc26614:	41 81 ff b8 	bgt+    ffc265cc <rtems_rfs_symlink_read+0x17c><== NOT EXECUTED
      rtems_rfs_inode_close (fs, &inode);                             
      return rc;                                                      
    }                                                                 
                                                                      
    data = rtems_rfs_buffer_data (&buffer);                           
    memcpy (path, data, *length);                                     
ffc26618:	81 21 00 88 	lwz     r9,136(r1)                             <== NOT EXECUTED
ffc2661c:	7f 63 db 78 	mr      r3,r27                                 <== NOT EXECUTED
ffc26620:	80 bc 00 00 	lwz     r5,0(r28)                              <== NOT EXECUTED
ffc26624:	80 89 00 1c 	lwz     r4,28(r9)                              <== NOT EXECUTED
ffc26628:	48 00 3f e5 	bl      ffc2a60c <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);                       
ffc2662c:	38 81 00 80 	addi    r4,r1,128                              <== NOT EXECUTED
ffc26630:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc26634:	4b ff b6 d1 	bl      ffc21d04 <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);                        
ffc26638:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc2663c:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
  handle->dirty = false;                                              
ffc26640:	9b a1 00 80 	stb     r29,128(r1)                            <== NOT EXECUTED
  handle->bnum  = 0;                                                  
ffc26644:	93 a1 00 84 	stw     r29,132(r1)                            <== NOT EXECUTED
  handle->buffer = NULL;                                              
ffc26648:	93 a1 00 88 	stw     r29,136(r1)                            <== NOT EXECUTED
ffc2664c:	4b ff a7 fd 	bl      ffc20e48 <rtems_rfs_block_map_close>   <== NOT EXECUTED
    if (rc > 0)                                                       
ffc26650:	7c 7e 1b 79 	mr.     r30,r3                                 <== NOT EXECUTED
ffc26654:	40 a1 ff 20 	ble-    ffc26574 <rtems_rfs_symlink_read+0x124><== NOT EXECUTED
    {                                                                 
      rtems_rfs_inode_close (fs, &inode);                             
ffc26658:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc2665c:	4b ff ff 48 	b       ffc265a4 <rtems_rfs_symlink_read+0x154><== NOT EXECUTED
                                                                      

ffc17ef4 <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;
ffc17ef4:	3d 20 00 01 	lis     r9,1                                   <== NOT EXECUTED
ffc17ef8:	39 09 2a 98 	addi    r8,r9,10904                            <== NOT EXECUTED
ffc17efc:	80 e9 2a 98 	lwz     r7,10904(r9)                           <== NOT EXECUTED
ffc17f00:	81 48 00 04 	lwz     r10,4(r8)                              <== NOT EXECUTED
  rtems_rfs_trace_flags &= ~mask;                                     
ffc17f04:	7c e3 18 78 	andc    r3,r7,r3                               <== NOT EXECUTED
ffc17f08:	7d 44 20 78 	andc    r4,r10,r4                              <== NOT EXECUTED
ffc17f0c:	90 69 2a 98 	stw     r3,10904(r9)                           <== NOT EXECUTED
  return state;                                                       
}                                                                     
ffc17f10:	7c e3 3b 78 	mr      r3,r7                                  <== 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;                                     
ffc17f14:	90 88 00 04 	stw     r4,4(r8)                               <== NOT EXECUTED
  return state;                                                       
}                                                                     
ffc17f18:	7d 44 53 78 	mr      r4,r10                                 <== NOT EXECUTED
ffc17f1c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc17ec8 <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;
ffc17ec8:	3d 20 00 01 	lis     r9,1                                   <== NOT EXECUTED
ffc17ecc:	39 09 2a 98 	addi    r8,r9,10904                            <== NOT EXECUTED
ffc17ed0:	80 e9 2a 98 	lwz     r7,10904(r9)                           <== NOT EXECUTED
ffc17ed4:	81 48 00 04 	lwz     r10,4(r8)                              <== NOT EXECUTED
  rtems_rfs_trace_flags |= mask;                                      
ffc17ed8:	7c 63 3b 78 	or      r3,r3,r7                               <== NOT EXECUTED
ffc17edc:	7c 84 53 78 	or      r4,r4,r10                              <== NOT EXECUTED
ffc17ee0:	90 69 2a 98 	stw     r3,10904(r9)                           <== NOT EXECUTED
  return state;                                                       
}                                                                     
ffc17ee4:	7c e3 3b 78 	mr      r3,r7                                  <== 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;                                      
ffc17ee8:	90 88 00 04 	stw     r4,4(r8)                               <== NOT EXECUTED
  return state;                                                       
}                                                                     
ffc17eec:	7d 44 53 78 	mr      r4,r10                                 <== NOT EXECUTED
ffc17ef0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc17f20 <rtems_rfs_trace_shell_command>: int rtems_rfs_trace_shell_command (int argc, char *argv[]) {
ffc17f20:	94 21 ff 10 	stwu    r1,-240(r1)                            <== NOT EXECUTED
ffc17f24:	7c 08 02 a6 	mflr    r0                                     <== NOT EXECUTED
  const char* table[] =                                               
ffc17f28:	38 a0 00 9c 	li      r5,156                                 <== NOT EXECUTED
  return state;                                                       
}                                                                     
                                                                      
int                                                                   
rtems_rfs_trace_shell_command (int argc, char *argv[])                
{                                                                     
ffc17f2c:	91 e1 00 ac 	stw     r15,172(r1)                            <== NOT EXECUTED
ffc17f30:	7c 8f 23 78 	mr      r15,r4                                 <== NOT EXECUTED
  const char* table[] =                                               
ffc17f34:	3c 80 ff c4 	lis     r4,-60                                 <== NOT EXECUTED
  return state;                                                       
}                                                                     
                                                                      
int                                                                   
rtems_rfs_trace_shell_command (int argc, char *argv[])                
{                                                                     
ffc17f38:	92 81 00 c0 	stw     r20,192(r1)                            <== NOT EXECUTED
  const char* table[] =                                               
ffc17f3c:	38 84 c4 5c 	addi    r4,r4,-15268                           <== NOT EXECUTED
  return state;                                                       
}                                                                     
                                                                      
int                                                                   
rtems_rfs_trace_shell_command (int argc, char *argv[])                
{                                                                     
ffc17f40:	7c 74 1b 78 	mr      r20,r3                                 <== NOT EXECUTED
  const char* table[] =                                               
ffc17f44:	38 61 00 08 	addi    r3,r1,8                                <== NOT EXECUTED
  return state;                                                       
}                                                                     
                                                                      
int                                                                   
rtems_rfs_trace_shell_command (int argc, char *argv[])                
{                                                                     
ffc17f48:	90 01 00 f4 	stw     r0,244(r1)                             <== NOT EXECUTED
ffc17f4c:	91 c1 00 a8 	stw     r14,168(r1)                            <== NOT EXECUTED
ffc17f50:	92 01 00 b0 	stw     r16,176(r1)                            <== NOT EXECUTED
ffc17f54:	92 21 00 b4 	stw     r17,180(r1)                            <== NOT EXECUTED
ffc17f58:	92 41 00 b8 	stw     r18,184(r1)                            <== NOT EXECUTED
ffc17f5c:	92 61 00 bc 	stw     r19,188(r1)                            <== NOT EXECUTED
ffc17f60:	92 a1 00 c4 	stw     r21,196(r1)                            <== NOT EXECUTED
ffc17f64:	92 c1 00 c8 	stw     r22,200(r1)                            <== NOT EXECUTED
ffc17f68:	92 e1 00 cc 	stw     r23,204(r1)                            <== NOT EXECUTED
ffc17f6c:	93 01 00 d0 	stw     r24,208(r1)                            <== NOT EXECUTED
ffc17f70:	93 21 00 d4 	stw     r25,212(r1)                            <== NOT EXECUTED
ffc17f74:	93 41 00 d8 	stw     r26,216(r1)                            <== NOT EXECUTED
ffc17f78:	93 61 00 dc 	stw     r27,220(r1)                            <== NOT EXECUTED
ffc17f7c:	93 81 00 e0 	stw     r28,224(r1)                            <== NOT EXECUTED
ffc17f80:	93 a1 00 e4 	stw     r29,228(r1)                            <== NOT EXECUTED
ffc17f84:	93 c1 00 e8 	stw     r30,232(r1)                            <== NOT EXECUTED
ffc17f88:	93 e1 00 ec 	stw     r31,236(r1)                            <== NOT EXECUTED
  const char* table[] =                                               
ffc17f8c:	48 01 26 81 	bl      ffc2a60c <memcpy>                      <== NOT EXECUTED
  rtems_rfs_trace_mask clear_value = 0;                               
  bool                 set = true;                                    
  int                  arg;                                           
  int                  t;                                             
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
ffc17f90:	2f 94 00 01 	cmpwi   cr7,r20,1                              <== NOT EXECUTED
ffc17f94:	40 9d 01 00 	ble-    cr7,ffc18094 <rtems_rfs_trace_shell_command+0x174><== NOT EXECUTED
  {                                                                   
    if (argv[arg][0] == '-')                                          
ffc17f98:	83 0f 00 04 	lwz     r24,4(r15)                             <== NOT EXECUTED
ffc17f9c:	89 38 00 00 	lbz     r9,0(r24)                              <== NOT EXECUTED
ffc17fa0:	2f 89 00 2d 	cmpwi   cr7,r9,45                              <== NOT EXECUTED
ffc17fa4:	41 9e 01 d0 	beq-    cr7,ffc18174 <rtems_rfs_trace_shell_command+0x254><== NOT EXECUTED
ffc17fa8:	3e 60 00 01 	lis     r19,1                                  <== NOT EXECUTED
ffc17fac:	3a 73 2a 98 	addi    r19,r19,10904                          <== NOT EXECUTED
ffc17fb0:	3e 20 ff c4 	lis     r17,-60                                <== NOT EXECUTED
ffc17fb4:	83 d3 00 00 	lwz     r30,0(r19)                             <== NOT EXECUTED
ffc17fb8:	3e 40 ff c4 	lis     r18,-60                                <== NOT EXECUTED
ffc17fbc:	83 f3 00 04 	lwz     r31,4(r19)                             <== 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)                        
ffc17fc0:	3e 00 ff c4 	lis     r16,-60                                <== NOT EXECUTED
  rtems_rfs_trace_flags &= ~mask;                                     
  return state;                                                       
}                                                                     
                                                                      
int                                                                   
rtems_rfs_trace_shell_command (int argc, char *argv[])                
ffc17fc4:	3a cf 00 04 	addi    r22,r15,4                              <== NOT EXECUTED
  rtems_rfs_trace_mask clear_value = 0;                               
  bool                 set = true;                                    
  int                  arg;                                           
  int                  t;                                             
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
ffc17fc8:	3a e0 00 01 	li      r23,1                                  <== NOT EXECUTED
    "file-set"                                                        
  };                                                                  
                                                                      
  rtems_rfs_trace_mask set_value = 0;                                 
  rtems_rfs_trace_mask clear_value = 0;                               
  bool                 set = true;                                    
ffc17fcc:	3a a0 00 01 	li      r21,1                                  <== NOT EXECUTED
    "file-io",                                                        
    "file-set"                                                        
  };                                                                  
                                                                      
  rtems_rfs_trace_mask set_value = 0;                                 
  rtems_rfs_trace_mask clear_value = 0;                               
ffc17fd0:	3b 80 00 00 	li      r28,0                                  <== NOT EXECUTED
ffc17fd4:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
    "file-close",                                                     
    "file-io",                                                        
    "file-set"                                                        
  };                                                                  
                                                                      
  rtems_rfs_trace_mask set_value = 0;                                 
ffc17fd8:	3b 40 00 00 	li      r26,0                                  <== NOT EXECUTED
ffc17fdc:	3b 60 00 00 	li      r27,0                                  <== NOT EXECUTED
ffc17fe0:	3a 31 aa 38 	addi    r17,r17,-21960                         <== NOT EXECUTED
ffc17fe4:	3a 52 c5 68 	addi    r18,r18,-15000                         <== 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)                        
ffc17fe8:	3a 10 ea ec 	addi    r16,r16,-5396                          <== NOT EXECUTED
ffc17fec:	48 00 00 3c 	b       ffc18028 <rtems_rfs_trace_shell_command+0x108><== NOT EXECUTED
ffc17ff0:	7f 4a f3 78 	or      r10,r26,r30                            <== NOT EXECUTED
ffc17ff4:	7f 69 fb 78 	or      r9,r27,r31                             <== NOT EXECUTED
ffc17ff8:	7d 5e e0 78 	andc    r30,r10,r28                            <== NOT EXECUTED
ffc17ffc:	7d 3f e8 78 	andc    r31,r9,r29                             <== NOT EXECUTED
    else                                                              
    {                                                                 
      if (strcmp (argv[arg], "set") == 0)                             
        set = true;                                                   
      if (strcmp (argv[arg], "clear") == 0)                           
        set = false;                                                  
ffc18000:	3a a0 00 00 	li      r21,0                                  <== NOT EXECUTED
  rtems_rfs_trace_mask clear_value = 0;                               
  bool                 set = true;                                    
  int                  arg;                                           
  int                  t;                                             
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
ffc18004:	3a f7 00 01 	addi    r23,r23,1                              <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      rtems_rfs_trace_flags |= set_value;                             
      rtems_rfs_trace_flags &= ~clear_value;                          
ffc18008:	93 d3 00 00 	stw     r30,0(r19)                             <== NOT EXECUTED
  rtems_rfs_trace_mask clear_value = 0;                               
  bool                 set = true;                                    
  int                  arg;                                           
  int                  t;                                             
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
ffc1800c:	7f 97 a0 00 	cmpw    cr7,r23,r20                            <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      rtems_rfs_trace_flags |= set_value;                             
      rtems_rfs_trace_flags &= ~clear_value;                          
ffc18010:	93 f3 00 04 	stw     r31,4(r19)                             <== NOT EXECUTED
  rtems_rfs_trace_mask clear_value = 0;                               
  bool                 set = true;                                    
  int                  arg;                                           
  int                  t;                                             
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
ffc18014:	41 9e 00 80 	beq-    cr7,ffc18094 <rtems_rfs_trace_shell_command+0x174><== NOT EXECUTED
  {                                                                   
    if (argv[arg][0] == '-')                                          
ffc18018:	87 16 00 04 	lwzu    r24,4(r22)                             <== NOT EXECUTED
ffc1801c:	89 38 00 00 	lbz     r9,0(r24)                              <== NOT EXECUTED
ffc18020:	2f 89 00 2d 	cmpwi   cr7,r9,45                              <== NOT EXECUTED
ffc18024:	41 9e 01 50 	beq-    cr7,ffc18174 <rtems_rfs_trace_shell_command+0x254><== NOT EXECUTED
          return 1;                                                   
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      if (strcmp (argv[arg], "set") == 0)                             
ffc18028:	7f 03 c3 78 	mr      r3,r24                                 <== NOT EXECUTED
ffc1802c:	7e 24 8b 78 	mr      r4,r17                                 <== NOT EXECUTED
ffc18030:	48 01 36 d5 	bl      ffc2b704 <strcmp>                      <== NOT EXECUTED
ffc18034:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc18038:	40 9e 00 08 	bne-    cr7,ffc18040 <rtems_rfs_trace_shell_command+0x120><== NOT EXECUTED
        set = true;                                                   
ffc1803c:	3a a0 00 01 	li      r21,1                                  <== NOT EXECUTED
      if (strcmp (argv[arg], "clear") == 0)                           
ffc18040:	7f 03 c3 78 	mr      r3,r24                                 <== NOT EXECUTED
ffc18044:	7e 44 93 78 	mr      r4,r18                                 <== NOT EXECUTED
ffc18048:	48 01 36 bd 	bl      ffc2b704 <strcmp>                      <== NOT EXECUTED
ffc1804c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc18050:	41 be ff a0 	beq-    cr7,ffc17ff0 <rtems_rfs_trace_shell_command+0xd0><== NOT EXECUTED
        set = false;                                                  
      else if (strcmp (argv[arg], "all") == 0)                        
ffc18054:	7f 03 c3 78 	mr      r3,r24                                 <== NOT EXECUTED
ffc18058:	7e 04 83 78 	mr      r4,r16                                 <== NOT EXECUTED
ffc1805c:	48 01 36 a9 	bl      ffc2b704 <strcmp>                      <== NOT EXECUTED
ffc18060:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc18064:	40 9e 00 8c 	bne-    cr7,ffc180f0 <rtems_rfs_trace_shell_command+0x1d0><== NOT EXECUTED
      {                                                               
        if (set)                                                      
ffc18068:	2f 95 00 00 	cmpwi   cr7,r21,0                              <== NOT EXECUTED
ffc1806c:	41 9e 00 e0 	beq-    cr7,ffc1814c <rtems_rfs_trace_shell_command+0x22c><== NOT EXECUTED
  rtems_rfs_trace_mask clear_value = 0;                               
  bool                 set = true;                                    
  int                  arg;                                           
  int                  t;                                             
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
ffc18070:	3a f7 00 01 	addi    r23,r23,1                              <== NOT EXECUTED
ffc18074:	7f 97 a0 00 	cmpw    cr7,r23,r20                            <== NOT EXECUTED
ffc18078:	7f 9e e0 f8 	not     r30,r28                                <== NOT EXECUTED
ffc1807c:	7f bf e8 f8 	not     r31,r29                                <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      rtems_rfs_trace_flags |= set_value;                             
      rtems_rfs_trace_flags &= ~clear_value;                          
ffc18080:	93 d3 00 00 	stw     r30,0(r19)                             <== NOT EXECUTED
      if (strcmp (argv[arg], "clear") == 0)                           
        set = false;                                                  
      else if (strcmp (argv[arg], "all") == 0)                        
      {                                                               
        if (set)                                                      
          set_value = RTEMS_RFS_TRACE_ALL;                            
ffc18084:	3b 40 ff ff 	li      r26,-1                                 <== NOT EXECUTED
ffc18088:	3b 60 ff ff 	li      r27,-1                                 <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      rtems_rfs_trace_flags |= set_value;                             
      rtems_rfs_trace_flags &= ~clear_value;                          
ffc1808c:	93 f3 00 04 	stw     r31,4(r19)                             <== NOT EXECUTED
  rtems_rfs_trace_mask clear_value = 0;                               
  bool                 set = true;                                    
  int                  arg;                                           
  int                  t;                                             
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
ffc18090:	40 9e ff 88 	bne+    cr7,ffc18018 <rtems_rfs_trace_shell_command+0xf8><== NOT EXECUTED
    {                                                                 
      switch (argv[arg][1])                                           
      {                                                               
        case 'h':                                                     
          printf ("usage: %s [-hl] [set/clear] [flags]\n", argv[0]);  
          return 0;                                                   
ffc18094:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
      rtems_rfs_trace_flags &= ~clear_value;                          
    }                                                                 
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc18098:	80 01 00 f4 	lwz     r0,244(r1)                             <== NOT EXECUTED
ffc1809c:	81 c1 00 a8 	lwz     r14,168(r1)                            <== NOT EXECUTED
ffc180a0:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc180a4:	81 e1 00 ac 	lwz     r15,172(r1)                            <== NOT EXECUTED
ffc180a8:	82 01 00 b0 	lwz     r16,176(r1)                            <== NOT EXECUTED
ffc180ac:	82 21 00 b4 	lwz     r17,180(r1)                            <== NOT EXECUTED
ffc180b0:	82 41 00 b8 	lwz     r18,184(r1)                            <== NOT EXECUTED
ffc180b4:	82 61 00 bc 	lwz     r19,188(r1)                            <== NOT EXECUTED
ffc180b8:	82 81 00 c0 	lwz     r20,192(r1)                            <== NOT EXECUTED
ffc180bc:	82 a1 00 c4 	lwz     r21,196(r1)                            <== NOT EXECUTED
ffc180c0:	82 c1 00 c8 	lwz     r22,200(r1)                            <== NOT EXECUTED
ffc180c4:	82 e1 00 cc 	lwz     r23,204(r1)                            <== NOT EXECUTED
ffc180c8:	83 01 00 d0 	lwz     r24,208(r1)                            <== NOT EXECUTED
ffc180cc:	83 21 00 d4 	lwz     r25,212(r1)                            <== NOT EXECUTED
ffc180d0:	83 41 00 d8 	lwz     r26,216(r1)                            <== NOT EXECUTED
ffc180d4:	83 61 00 dc 	lwz     r27,220(r1)                            <== NOT EXECUTED
ffc180d8:	83 81 00 e0 	lwz     r28,224(r1)                            <== NOT EXECUTED
ffc180dc:	83 a1 00 e4 	lwz     r29,228(r1)                            <== NOT EXECUTED
ffc180e0:	83 c1 00 e8 	lwz     r30,232(r1)                            <== NOT EXECUTED
ffc180e4:	83 e1 00 ec 	lwz     r31,236(r1)                            <== NOT EXECUTED
ffc180e8:	38 21 00 f0 	addi    r1,r1,240                              <== NOT EXECUTED
ffc180ec:	4e 80 00 20 	blr                                            <== NOT EXECUTED
ffc180f0:	39 c1 00 04 	addi    r14,r1,4                               <== 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)                        
ffc180f4:	3b 20 00 00 	li      r25,0                                  <== NOT EXECUTED
ffc180f8:	48 00 00 0c 	b       ffc18104 <rtems_rfs_trace_shell_command+0x1e4><== NOT EXECUTED
        else                                                          
          clear_value = RTEMS_RFS_TRACE_ALL;                          
      }                                                               
      else                                                            
      {                                                               
        for (t = 0; t < (sizeof (table) / sizeof (const char*)); t++) 
ffc180fc:	3b 39 00 01 	addi    r25,r25,1                              <== NOT EXECUTED
ffc18100:	41 9a 00 38 	beq-    cr6,ffc18138 <rtems_rfs_trace_shell_command+0x218><== NOT EXECUTED
        {                                                             
          if (strcmp (argv[arg], table[t]) == 0)                      
ffc18104:	84 8e 00 04 	lwzu    r4,4(r14)                              <== NOT EXECUTED
ffc18108:	7f 03 c3 78 	mr      r3,r24                                 <== NOT EXECUTED
ffc1810c:	48 01 35 f9 	bl      ffc2b704 <strcmp>                      <== NOT EXECUTED
        else                                                          
          clear_value = RTEMS_RFS_TRACE_ALL;                          
      }                                                               
      else                                                            
      {                                                               
        for (t = 0; t < (sizeof (table) / sizeof (const char*)); t++) 
ffc18110:	2f 19 00 26 	cmpwi   cr6,r25,38                             <== NOT EXECUTED
        {                                                             
          if (strcmp (argv[arg], table[t]) == 0)                      
ffc18114:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc18118:	40 9e ff e4 	bne+    cr7,ffc180fc <rtems_rfs_trace_shell_command+0x1dc><== NOT EXECUTED
          {                                                           
            if (set)                                                  
ffc1811c:	2f 95 00 00 	cmpwi   cr7,r21,0                              <== NOT EXECUTED
              set_value = 1ULL << t;                                  
ffc18120:	35 39 ff e0 	addic.  r9,r25,-32                             <== NOT EXECUTED
      {                                                               
        for (t = 0; t < (sizeof (table) / sizeof (const char*)); t++) 
        {                                                             
          if (strcmp (argv[arg], table[t]) == 0)                      
          {                                                           
            if (set)                                                  
ffc18124:	41 9e 00 3c 	beq-    cr7,ffc18160 <rtems_rfs_trace_shell_command+0x240><== NOT EXECUTED
              set_value = 1ULL << t;                                  
ffc18128:	41 80 00 84 	blt-    ffc181ac <rtems_rfs_trace_shell_command+0x28c><== NOT EXECUTED
ffc1812c:	39 40 00 01 	li      r10,1                                  <== NOT EXECUTED
ffc18130:	7d 5a 48 30 	slw     r26,r10,r9                             <== NOT EXECUTED
ffc18134:	3b 60 00 00 	li      r27,0                                  <== NOT EXECUTED
ffc18138:	7f 4a f3 78 	or      r10,r26,r30                            <== NOT EXECUTED
ffc1813c:	7f 69 fb 78 	or      r9,r27,r31                             <== NOT EXECUTED
ffc18140:	7d 5e e0 78 	andc    r30,r10,r28                            <== NOT EXECUTED
ffc18144:	7d 3f e8 78 	andc    r31,r9,r29                             <== NOT EXECUTED
ffc18148:	4b ff fe bc 	b       ffc18004 <rtems_rfs_trace_shell_command+0xe4><== NOT EXECUTED
        set = true;                                                   
      if (strcmp (argv[arg], "clear") == 0)                           
        set = false;                                                  
      else if (strcmp (argv[arg], "all") == 0)                        
      {                                                               
        if (set)                                                      
ffc1814c:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
ffc18150:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
          set_value = RTEMS_RFS_TRACE_ALL;                            
        else                                                          
          clear_value = RTEMS_RFS_TRACE_ALL;                          
ffc18154:	3b 80 ff ff 	li      r28,-1                                 <== NOT EXECUTED
ffc18158:	3b a0 ff ff 	li      r29,-1                                 <== NOT EXECUTED
ffc1815c:	4b ff fe a8 	b       ffc18004 <rtems_rfs_trace_shell_command+0xe4><== NOT EXECUTED
          if (strcmp (argv[arg], table[t]) == 0)                      
          {                                                           
            if (set)                                                  
              set_value = 1ULL << t;                                  
            else                                                      
              clear_value = 1ULL << t;                                
ffc18160:	41 80 00 3c 	blt-    ffc1819c <rtems_rfs_trace_shell_command+0x27c><== NOT EXECUTED
ffc18164:	39 40 00 01 	li      r10,1                                  <== NOT EXECUTED
ffc18168:	7d 5c 48 30 	slw     r28,r10,r9                             <== NOT EXECUTED
ffc1816c:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
ffc18170:	4b ff ff c8 	b       ffc18138 <rtems_rfs_trace_shell_command+0x218><== NOT EXECUTED
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
  {                                                                   
    if (argv[arg][0] == '-')                                          
    {                                                                 
      switch (argv[arg][1])                                           
ffc18174:	89 38 00 01 	lbz     r9,1(r24)                              <== NOT EXECUTED
ffc18178:	2f 89 00 68 	cmpwi   cr7,r9,104                             <== NOT EXECUTED
ffc1817c:	41 9e 00 80 	beq-    cr7,ffc181fc <rtems_rfs_trace_shell_command+0x2dc><== NOT EXECUTED
ffc18180:	2f 89 00 6c 	cmpwi   cr7,r9,108                             <== NOT EXECUTED
ffc18184:	41 9e 00 38 	beq-    cr7,ffc181bc <rtems_rfs_trace_shell_command+0x29c><== NOT EXECUTED
          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]);                              
          return 0;                                                   
        default:                                                      
          printf ("error: unknown option\n");                         
ffc18188:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc1818c:	38 63 c5 50 	addi    r3,r3,-15024                           <== NOT EXECUTED
ffc18190:	48 01 2c 71 	bl      ffc2ae00 <puts>                        <== NOT EXECUTED
          return 1;                                                   
ffc18194:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc18198:	4b ff ff 00 	b       ffc18098 <rtems_rfs_trace_shell_command+0x178><== NOT EXECUTED
          if (strcmp (argv[arg], table[t]) == 0)                      
          {                                                           
            if (set)                                                  
              set_value = 1ULL << t;                                  
            else                                                      
              clear_value = 1ULL << t;                                
ffc1819c:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc181a0:	3b 80 00 00 	li      r28,0                                  <== NOT EXECUTED
ffc181a4:	7d 3d c8 30 	slw     r29,r9,r25                             <== NOT EXECUTED
ffc181a8:	4b ff ff 90 	b       ffc18138 <rtems_rfs_trace_shell_command+0x218><== NOT EXECUTED
        for (t = 0; t < (sizeof (table) / sizeof (const char*)); t++) 
        {                                                             
          if (strcmp (argv[arg], table[t]) == 0)                      
          {                                                           
            if (set)                                                  
              set_value = 1ULL << t;                                  
ffc181ac:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc181b0:	3b 40 00 00 	li      r26,0                                  <== NOT EXECUTED
ffc181b4:	7d 3b c8 30 	slw     r27,r9,r25                             <== NOT EXECUTED
ffc181b8:	4b ff ff 80 	b       ffc18138 <rtems_rfs_trace_shell_command+0x218><== 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]); 
ffc181bc:	80 8f 00 00 	lwz     r4,0(r15)                              <== NOT EXECUTED
ffc181c0:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc181c4:	38 63 c5 20 	addi    r3,r3,-15072                           <== NOT EXECUTED
ffc181c8:	3f c0 ff c4 	lis     r30,-60                                <== NOT EXECUTED
ffc181cc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc181d0:	48 01 28 c9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc181d4:	3b e1 00 04 	addi    r31,r1,4                               <== NOT EXECUTED
  rtems_rfs_trace_flags &= ~mask;                                     
  return state;                                                       
}                                                                     
                                                                      
int                                                                   
rtems_rfs_trace_shell_command (int argc, char *argv[])                
ffc181d8:	3b a1 00 a0 	addi    r29,r1,160                             <== NOT EXECUTED
ffc181dc:	3b de c5 48 	addi    r30,r30,-15032                         <== 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]);                              
ffc181e0:	84 9f 00 04 	lwzu    r4,4(r31)                              <== NOT EXECUTED
ffc181e4:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc181e8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc181ec:	48 01 28 ad 	bl      ffc2aa98 <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++)
ffc181f0:	7f 9f e8 00 	cmpw    cr7,r31,r29                            <== NOT EXECUTED
ffc181f4:	40 9e ff ec 	bne+    cr7,ffc181e0 <rtems_rfs_trace_shell_command+0x2c0><== NOT EXECUTED
ffc181f8:	4b ff fe 9c 	b       ffc18094 <rtems_rfs_trace_shell_command+0x174><== NOT EXECUTED
    if (argv[arg][0] == '-')                                          
    {                                                                 
      switch (argv[arg][1])                                           
      {                                                               
        case 'h':                                                     
          printf ("usage: %s [-hl] [set/clear] [flags]\n", argv[0]);  
ffc181fc:	80 8f 00 00 	lwz     r4,0(r15)                              <== NOT EXECUTED
ffc18200:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc18204:	38 63 c4 f8 	addi    r3,r3,-15112                           <== NOT EXECUTED
ffc18208:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc1820c:	48 01 28 8d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc18210:	4b ff fe 84 	b       ffc18094 <rtems_rfs_trace_shell_command+0x174><== NOT EXECUTED
                                                                      

ffc25cc0 <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) {
ffc25cc0:	94 21 ff 88 	stwu    r1,-120(r1)                            
ffc25cc4:	7d 80 00 26 	mfcr    r12                                    
ffc25cc8:	7c 08 02 a6 	mflr    r0                                     
ffc25ccc:	93 81 00 68 	stw     r28,104(r1)                            
ffc25cd0:	7c 9c 23 78 	mr      r28,r4                                 
  rtems_rfs_inode_handle target_inode;                                
  uint16_t               links;                                       
  bool                   dir;                                         
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                       
ffc25cd4:	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)                    
{                                                                     
ffc25cd8:	93 e1 00 74 	stw     r31,116(r1)                            
ffc25cdc:	7c 7f 1b 78 	mr      r31,r3                                 
  rtems_rfs_inode_handle target_inode;                                
  uint16_t               links;                                       
  bool                   dir;                                         
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                       
ffc25ce0:	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)                    
{                                                                     
ffc25ce4:	93 41 00 60 	stw     r26,96(r1)                             
ffc25ce8:	7c da 33 78 	mr      r26,r6                                 
ffc25cec:	93 61 00 64 	stw     r27,100(r1)                            
ffc25cf0:	7c fb 3b 78 	mr      r27,r7                                 
ffc25cf4:	93 a1 00 6c 	stw     r29,108(r1)                            
ffc25cf8:	7c bd 2b 78 	mr      r29,r5                                 
ffc25cfc:	90 01 00 7c 	stw     r0,124(r1)                             
ffc25d00:	93 c1 00 70 	stw     r30,112(r1)                            
ffc25d04:	91 81 00 5c 	stw     r12,92(r1)                             
  rtems_rfs_inode_handle target_inode;                                
  uint16_t               links;                                       
  bool                   dir;                                         
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                       
ffc25d08:	4b ff 21 95 	bl      ffc17e9c <rtems_rfs_trace>             
ffc25d0c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc25d10:	40 9e 01 60 	bne-    cr7,ffc25e70 <rtems_rfs_unlink+0x1b0>  <== NEVER TAKEN
    printf ("rtems-rfs: unlink: parent(%" PRIu32 ") -X-> (%" PRIu32 ")\n", parent, target);
                                                                      
  rc = rtems_rfs_inode_open (fs, target, &target_inode, true);        
ffc25d14:	7f e3 fb 78 	mr      r3,r31                                 
ffc25d18:	7f a4 eb 78 	mr      r4,r29                                 
ffc25d1c:	38 a1 00 08 	addi    r5,r1,8                                
ffc25d20:	38 c0 00 01 	li      r6,1                                   
ffc25d24:	4b ff 00 89 	bl      ffc15dac <rtems_rfs_inode_open>        
  if (rc)                                                             
ffc25d28:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc25d2c:	40 82 00 50 	bne-    ffc25d7c <rtems_rfs_unlink+0xbc>       <== NEVER TAKEN
                                                                      
  /*                                                                  
   * If a directory process the unlink mode.                          
   */                                                                 
                                                                      
  dir = RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&target_inode)); 
ffc25d30:	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);                    
ffc25d34:	89 29 00 02 	lbz     r9,2(r9)                               
ffc25d38:	55 29 44 26 	rlwinm  r9,r9,8,16,19                          
ffc25d3c:	69 29 40 00 	xori    r9,r9,16384                            
ffc25d40:	7d 29 00 34 	cntlzw  r9,r9                                  
ffc25d44:	55 29 d9 7e 	rlwinm  r9,r9,27,5,31                          
  if (dir)                                                            
ffc25d48:	2e 09 00 00 	cmpwi   cr4,r9,0                               
ffc25d4c:	41 92 00 6c 	beq-    cr4,ffc25db8 <rtems_rfs_unlink+0xf8>   
  {                                                                   
    switch (dir_mode)                                                 
ffc25d50:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc25d54:	40 9e 00 5c 	bne-    cr7,ffc25db0 <rtems_rfs_unlink+0xf0>   <== ALWAYS TAKEN
    {                                                                 
      case rtems_rfs_unlink_dir_denied:                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                 
ffc25d58:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc25d5c:	3c 80 02 00 	lis     r4,512                                 <== NOT EXECUTED
ffc25d60:	4b ff 21 3d 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc25d64:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc25d68:	40 9e 01 e4 	bne-    cr7,ffc25f4c <rtems_rfs_unlink+0x28c>  <== NOT EXECUTED
          printf ("rtems-rfs: link is a directory\n");                
        rtems_rfs_inode_close (fs, &target_inode);                    
ffc25d6c:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc25d70:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc25d74:	4b ff 02 b5 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
        return EISDIR;                                                
ffc25d78:	3b c0 00 15 	li      r30,21                                 <== NOT EXECUTED
  if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))           
    printf ("rtems-rfs: link: target inode-close failed: %d: %s\n",   
            rc, strerror (rc));                                       
                                                                      
  return rc;                                                          
}                                                                     
ffc25d7c:	80 01 00 7c 	lwz     r0,124(r1)                             
ffc25d80:	7f c3 f3 78 	mr      r3,r30                                 
ffc25d84:	81 81 00 5c 	lwz     r12,92(r1)                             
ffc25d88:	7c 08 03 a6 	mtlr    r0                                     
ffc25d8c:	83 41 00 60 	lwz     r26,96(r1)                             
ffc25d90:	83 61 00 64 	lwz     r27,100(r1)                            
ffc25d94:	7d 80 81 20 	mtcrf   8,r12                                  
ffc25d98:	83 81 00 68 	lwz     r28,104(r1)                            
ffc25d9c:	83 a1 00 6c 	lwz     r29,108(r1)                            
ffc25da0:	83 c1 00 70 	lwz     r30,112(r1)                            
ffc25da4:	83 e1 00 74 	lwz     r31,116(r1)                            
ffc25da8:	38 21 00 78 	addi    r1,r1,120                              
ffc25dac:	4e 80 00 20 	blr                                            
   */                                                                 
                                                                      
  dir = RTEMS_RFS_S_ISDIR (rtems_rfs_inode_get_mode (&target_inode)); 
  if (dir)                                                            
  {                                                                   
    switch (dir_mode)                                                 
ffc25db0:	2f 9b 00 01 	cmpwi   cr7,r27,1                              
ffc25db4:	41 9e 01 4c 	beq-    cr7,ffc25f00 <rtems_rfs_unlink+0x240>  <== ALWAYS TAKEN
      default:                                                        
        break;                                                        
    }                                                                 
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);        
ffc25db8:	7f e3 fb 78 	mr      r3,r31                                 
ffc25dbc:	7f 84 e3 78 	mr      r4,r28                                 
ffc25dc0:	38 a1 00 30 	addi    r5,r1,48                               
ffc25dc4:	38 c0 00 01 	li      r6,1                                   
ffc25dc8:	4b fe ff e5 	bl      ffc15dac <rtems_rfs_inode_open>        
  if (rc)                                                             
ffc25dcc:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc25dd0:	40 82 00 bc 	bne-    ffc25e8c <rtems_rfs_unlink+0x1cc>      <== NEVER TAKEN
              rc, strerror (rc));                                     
    rtems_rfs_inode_close (fs, &target_inode);                        
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_dir_del_entry (fs, &parent_inode, target, doff);     
ffc25dd4:	7f e3 fb 78 	mr      r3,r31                                 
ffc25dd8:	38 81 00 30 	addi    r4,r1,48                               
ffc25ddc:	7f a5 eb 78 	mr      r5,r29                                 
ffc25de0:	7f 46 d3 78 	mr      r6,r26                                 
ffc25de4:	4b ff d4 d1 	bl      ffc232b4 <rtems_rfs_dir_del_entry>     
  if (rc > 0)                                                         
ffc25de8:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc25dec:	40 81 01 70 	ble-    ffc25f5c <rtems_rfs_unlink+0x29c>      <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                     
ffc25df0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc25df4:	3c 80 02 00 	lis     r4,512                                 <== NOT EXECUTED
ffc25df8:	4b ff 20 a5 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc25dfc:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc25e00:	41 be 00 24 	beq+    cr7,ffc25e24 <rtems_rfs_unlink+0x164>  <== NOT EXECUTED
      printf ("rtems-rfs: unlink: dir-del failed: %d: %s\n",          
ffc25e04:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc25e08:	48 00 5e 0d 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc25e0c:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc25e10:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc25e14:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc25e18:	38 63 e4 30 	addi    r3,r3,-7120                            <== NOT EXECUTED
ffc25e1c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc25e20:	48 00 4c 79 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
  if (rc > 0)                                                         
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                     
      printf ("rtems-rfs: link: inode-time-stamp failed: %d: %s\n",   
              rc, strerror (rc));                                     
    rtems_rfs_inode_close (fs, &parent_inode);                        
ffc25e24:	38 81 00 30 	addi    r4,r1,48                               <== NOT EXECUTED
ffc25e28:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc25e2c:	4b ff 01 fd 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
    rtems_rfs_inode_close (fs, &target_inode);                        
ffc25e30:	7f e3 fb 78 	mr      r3,r31                                 <== NOT EXECUTED
ffc25e34:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc25e38:	4b ff 01 f1 	bl      ffc16028 <rtems_rfs_inode_close>       <== NOT EXECUTED
  if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))           
    printf ("rtems-rfs: link: target inode-close failed: %d: %s\n",   
            rc, strerror (rc));                                       
                                                                      
  return rc;                                                          
}                                                                     
ffc25e3c:	80 01 00 7c 	lwz     r0,124(r1)                             <== NOT EXECUTED
ffc25e40:	81 81 00 5c 	lwz     r12,92(r1)                             <== NOT EXECUTED
ffc25e44:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc25e48:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc25e4c:	83 41 00 60 	lwz     r26,96(r1)                             <== NOT EXECUTED
ffc25e50:	83 61 00 64 	lwz     r27,100(r1)                            <== NOT EXECUTED
ffc25e54:	7d 80 81 20 	mtcrf   8,r12                                  <== NOT EXECUTED
ffc25e58:	83 81 00 68 	lwz     r28,104(r1)                            <== NOT EXECUTED
ffc25e5c:	83 a1 00 6c 	lwz     r29,108(r1)                            <== NOT EXECUTED
ffc25e60:	83 c1 00 70 	lwz     r30,112(r1)                            <== NOT EXECUTED
ffc25e64:	83 e1 00 74 	lwz     r31,116(r1)                            <== NOT EXECUTED
ffc25e68:	38 21 00 78 	addi    r1,r1,120                              <== NOT EXECUTED
ffc25e6c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  uint16_t               links;                                       
  bool                   dir;                                         
  int                    rc;                                          
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                       
    printf ("rtems-rfs: unlink: parent(%" PRIu32 ") -X-> (%" PRIu32 ")\n", parent, target);
ffc25e70:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc25e74:	7f 84 e3 78 	mr      r4,r28                                 <== NOT EXECUTED
ffc25e78:	7f a5 eb 78 	mr      r5,r29                                 <== NOT EXECUTED
ffc25e7c:	38 63 e3 98 	addi    r3,r3,-7272                            <== NOT EXECUTED
ffc25e80:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc25e84:	48 00 4c 15 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc25e88:	4b ff fe 8c 	b       ffc25d14 <rtems_rfs_unlink+0x54>       <== NOT EXECUTED
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_open (fs, parent, &parent_inode, true);        
  if (rc)                                                             
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                     
ffc25e8c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc25e90:	3c 80 02 00 	lis     r4,512                                 <== NOT EXECUTED
ffc25e94:	4b ff 20 09 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc25e98:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc25e9c:	41 be 00 24 	beq+    cr7,ffc25ec0 <rtems_rfs_unlink+0x200>  <== NOT EXECUTED
      printf ("rtems-rfs: link: inode-open failed: %d: %s\n",         
ffc25ea0:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc25ea4:	48 00 5d 71 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc25ea8:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc25eac:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc25eb0:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc25eb4:	38 63 e4 04 	addi    r3,r3,-7164                            <== NOT EXECUTED
ffc25eb8:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc25ebc:	48 00 4b dd 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
  if (rc > 0)                                                         
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                     
      printf ("rtems-rfs: link: parent inode-close failed: %d: %s\n", 
              rc, strerror (rc));                                     
    rtems_rfs_inode_close (fs, &target_inode);                        
ffc25ec0:	7f e3 fb 78 	mr      r3,r31                                 
ffc25ec4:	38 81 00 08 	addi    r4,r1,8                                
ffc25ec8:	4b ff 01 61 	bl      ffc16028 <rtems_rfs_inode_close>       
  if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))           
    printf ("rtems-rfs: link: target inode-close failed: %d: %s\n",   
            rc, strerror (rc));                                       
                                                                      
  return rc;                                                          
}                                                                     
ffc25ecc:	80 01 00 7c 	lwz     r0,124(r1)                             
ffc25ed0:	81 81 00 5c 	lwz     r12,92(r1)                             
ffc25ed4:	7f c3 f3 78 	mr      r3,r30                                 
ffc25ed8:	7c 08 03 a6 	mtlr    r0                                     
ffc25edc:	83 41 00 60 	lwz     r26,96(r1)                             
ffc25ee0:	83 61 00 64 	lwz     r27,100(r1)                            
ffc25ee4:	7d 80 81 20 	mtcrf   8,r12                                  
ffc25ee8:	83 81 00 68 	lwz     r28,104(r1)                            
ffc25eec:	83 a1 00 6c 	lwz     r29,108(r1)                            
ffc25ef0:	83 c1 00 70 	lwz     r30,112(r1)                            
ffc25ef4:	83 e1 00 74 	lwz     r31,116(r1)                            
ffc25ef8:	38 21 00 78 	addi    r1,r1,120                              
ffc25efc:	4e 80 00 20 	blr                                            
          printf ("rtems-rfs: link is a directory\n");                
        rtems_rfs_inode_close (fs, &target_inode);                    
        return EISDIR;                                                
                                                                      
      case rtems_rfs_unlink_dir_if_empty:                             
        rc = rtems_rfs_dir_empty (fs, &target_inode);                 
ffc25f00:	7f e3 fb 78 	mr      r3,r31                                 
ffc25f04:	38 81 00 08 	addi    r4,r1,8                                
ffc25f08:	4b ff dc a1 	bl      ffc23ba8 <rtems_rfs_dir_empty>         
        if (rc > 0)                                                   
ffc25f0c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc25f10:	40 a1 fe a8 	ble-    ffc25db8 <rtems_rfs_unlink+0xf8>       
        {                                                             
          if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))               
ffc25f14:	38 60 00 00 	li      r3,0                                   
ffc25f18:	3c 80 02 00 	lis     r4,512                                 
ffc25f1c:	4b ff 1f 81 	bl      ffc17e9c <rtems_rfs_trace>             
ffc25f20:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc25f24:	41 9e ff 9c 	beq+    cr7,ffc25ec0 <rtems_rfs_unlink+0x200>  <== ALWAYS TAKEN
            printf ("rtems-rfs: dir-empty: %d: %s\n", rc, strerror (rc));
ffc25f28:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc25f2c:	48 00 5c e9 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc25f30:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc25f34:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc25f38:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc25f3c:	38 63 e3 e4 	addi    r3,r3,-7196                            <== NOT EXECUTED
ffc25f40:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc25f44:	48 00 4b 55 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc25f48:	4b ff ff 78 	b       ffc25ec0 <rtems_rfs_unlink+0x200>      <== NOT EXECUTED
  {                                                                   
    switch (dir_mode)                                                 
    {                                                                 
      case rtems_rfs_unlink_dir_denied:                               
        if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                 
          printf ("rtems-rfs: link is a directory\n");                
ffc25f4c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc25f50:	38 63 e3 c4 	addi    r3,r3,-7228                            <== NOT EXECUTED
ffc25f54:	48 00 4e ad 	bl      ffc2ae00 <puts>                        <== NOT EXECUTED
ffc25f58:	4b ff fe 14 	b       ffc25d6c <rtems_rfs_unlink+0xac>       <== 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);                  
ffc25f5c:	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);                  
ffc25f60:	8b c9 00 00 	lbz     r30,0(r9)                              
ffc25f64:	89 29 00 01 	lbz     r9,1(r9)                               
ffc25f68:	57 de 40 2e 	rlwinm  r30,r30,8,0,23                         
ffc25f6c:	7f de 4b 78 	or      r30,r30,r9                             
  if (links == 0xffff)                                                
ffc25f70:	6f c9 ff ff 	xoris   r9,r30,65535                           
ffc25f74:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc25f78:	41 9e 00 b0 	beq-    cr7,ffc26028 <rtems_rfs_unlink+0x368>  <== NEVER TAKEN
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                       
ffc25f7c:	38 60 00 00 	li      r3,0                                   
ffc25f80:	3c 80 02 00 	lis     r4,512                                 
ffc25f84:	4b ff 1f 19 	bl      ffc17e9c <rtems_rfs_trace>             
ffc25f88:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc25f8c:	40 9e 00 80 	bne-    cr7,ffc2600c <rtems_rfs_unlink+0x34c>  <== NEVER TAKEN
    printf ("rtems-rfs: unlink: target:%" PRIu32 " links:%u\n", target, links);
                                                                      
  if (links > 1)                                                      
ffc25f90:	2b 9e 00 01 	cmplwi  cr7,r30,1                              
ffc25f94:	40 9d 00 e8 	ble-    cr7,ffc2607c <rtems_rfs_unlink+0x3bc>  
  {                                                                   
    links--;                                                          
ffc25f98:	3b de ff ff 	addi    r30,r30,-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);                  
ffc25f9c:	81 21 00 14 	lwz     r9,20(r1)                              
ffc25fa0:	57 de 04 3e 	clrlwi  r30,r30,16                             
ffc25fa4:	57 ca c2 3e 	rlwinm  r10,r30,24,8,31                        
ffc25fa8:	99 49 00 00 	stb     r10,0(r9)                              
ffc25fac:	81 21 00 14 	lwz     r9,20(r1)                              
ffc25fb0:	9b c9 00 01 	stb     r30,1(r9)                              
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc25fb4:	39 20 00 01 	li      r9,1                                   
ffc25fb8:	99 21 00 18 	stb     r9,24(r1)                              
        links--;                                                      
      rtems_rfs_inode_set_links (&parent_inode, links);               
    }                                                                 
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_time_stamp_now (&parent_inode, true, true);    
ffc25fbc:	38 61 00 30 	addi    r3,r1,48                               
ffc25fc0:	38 80 00 01 	li      r4,1                                   
ffc25fc4:	38 a0 00 01 	li      r5,1                                   
ffc25fc8:	4b ff 02 45 	bl      ffc1620c <rtems_rfs_inode_time_stamp_now>
  if (rc > 0)                                                         
ffc25fcc:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc25fd0:	40 81 00 60 	ble-    ffc26030 <rtems_rfs_unlink+0x370>      <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                     
ffc25fd4:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc25fd8:	3c 80 02 00 	lis     r4,512                                 <== NOT EXECUTED
ffc25fdc:	4b ff 1e c1 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc25fe0:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc25fe4:	41 9e fe 40 	beq+    cr7,ffc25e24 <rtems_rfs_unlink+0x164>  <== NOT EXECUTED
      printf ("rtems-rfs: link: inode-time-stamp failed: %d: %s\n",   
ffc25fe8:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc25fec:	48 00 5c 29 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc25ff0:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc25ff4:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc25ff8:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc25ffc:	38 63 e4 b4 	addi    r3,r3,-6988                            <== NOT EXECUTED
ffc26000:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc26004:	48 00 4a 95 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc26008:	4b ff fe 1c 	b       ffc25e24 <rtems_rfs_unlink+0x164>      <== NOT EXECUTED
  }                                                                   
                                                                      
  links = rtems_rfs_inode_get_links (&target_inode);                  
                                                                      
  if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                       
    printf ("rtems-rfs: unlink: target:%" PRIu32 " links:%u\n", target, links);
ffc2600c:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc26010:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc26014:	7f c5 f3 78 	mr      r5,r30                                 <== NOT EXECUTED
ffc26018:	38 63 e4 5c 	addi    r3,r3,-7076                            <== NOT EXECUTED
ffc2601c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc26020:	48 00 4a 79 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc26024:	4b ff ff 6c 	b       ffc25f90 <rtems_rfs_unlink+0x2d0>      <== NOT EXECUTED
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)            
{                                                                     
  uint16_t links;                                                     
  links = rtems_rfs_read_u16 (&handle->node->links);                  
  if (links == 0xffff)                                                
    links = 0;                                                        
ffc26028:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
ffc2602c:	4b ff ff 50 	b       ffc25f7c <rtems_rfs_unlink+0x2bc>      <== 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);                     
ffc26030:	7f e3 fb 78 	mr      r3,r31                                 
ffc26034:	38 81 00 30 	addi    r4,r1,48                               
ffc26038:	4b fe ff f1 	bl      ffc16028 <rtems_rfs_inode_close>       
  if (rc > 0)                                                         
ffc2603c:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc26040:	40 81 00 88 	ble-    ffc260c8 <rtems_rfs_unlink+0x408>      <== ALWAYS TAKEN
  {                                                                   
    if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                     
ffc26044:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc26048:	3c 80 02 00 	lis     r4,512                                 <== NOT EXECUTED
ffc2604c:	4b ff 1e 51 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc26050:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc26054:	41 9e fe 6c 	beq+    cr7,ffc25ec0 <rtems_rfs_unlink+0x200>  <== NOT EXECUTED
      printf ("rtems-rfs: link: parent inode-close failed: %d: %s\n", 
ffc26058:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc2605c:	48 00 5b b9 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc26060:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc26064:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc26068:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc2606c:	38 63 e4 e8 	addi    r3,r3,-6936                            <== NOT EXECUTED
ffc26070:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc26074:	48 00 4a 25 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc26078:	4b ff fe 48 	b       ffc25ec0 <rtems_rfs_unlink+0x200>      <== NOT EXECUTED
  else                                                                
  {                                                                   
    /*                                                                
     * Erasing the inode releases all blocks attached to it.          
     */                                                               
    rc = rtems_rfs_inode_delete (fs, &target_inode);                  
ffc2607c:	7f e3 fb 78 	mr      r3,r31                                 
ffc26080:	38 81 00 08 	addi    r4,r1,8                                
ffc26084:	4b ff 00 85 	bl      ffc16108 <rtems_rfs_inode_delete>      
    if (rc > 0)                                                       
ffc26088:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc2608c:	40 81 00 88 	ble-    ffc26114 <rtems_rfs_unlink+0x454>      <== ALWAYS TAKEN
    {                                                                 
      if (rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))                   
ffc26090:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc26094:	3c 80 02 00 	lis     r4,512                                 <== NOT EXECUTED
ffc26098:	4b ff 1e 05 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc2609c:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc260a0:	41 9e fd 84 	beq+    cr7,ffc25e24 <rtems_rfs_unlink+0x164>  <== NOT EXECUTED
        printf ("rtems-rfs: unlink: inode-del failed: %d: %s\n",      
ffc260a4:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc260a8:	48 00 5b 6d 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc260ac:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc260b0:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc260b4:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc260b8:	38 63 e4 84 	addi    r3,r3,-7036                            <== NOT EXECUTED
ffc260bc:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc260c0:	48 00 49 d9 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc260c4:	4b ff fd 60 	b       ffc25e24 <rtems_rfs_unlink+0x164>      <== NOT EXECUTED
              rc, strerror (rc));                                     
    rtems_rfs_inode_close (fs, &target_inode);                        
    return rc;                                                        
  }                                                                   
                                                                      
  rc = rtems_rfs_inode_close (fs, &target_inode);                     
ffc260c8:	7f e3 fb 78 	mr      r3,r31                                 
ffc260cc:	38 81 00 08 	addi    r4,r1,8                                
ffc260d0:	4b fe ff 59 	bl      ffc16028 <rtems_rfs_inode_close>       
                                                                      
  if ((rc > 0) && rtems_rfs_trace (RTEMS_RFS_TRACE_UNLINK))           
ffc260d4:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc260d8:	40 a1 fc a4 	ble-    ffc25d7c <rtems_rfs_unlink+0xbc>       <== ALWAYS TAKEN
ffc260dc:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc260e0:	3c 80 02 00 	lis     r4,512                                 <== NOT EXECUTED
ffc260e4:	4b ff 1d b9 	bl      ffc17e9c <rtems_rfs_trace>             <== NOT EXECUTED
ffc260e8:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
ffc260ec:	41 9e fc 90 	beq+    cr7,ffc25d7c <rtems_rfs_unlink+0xbc>   <== NOT EXECUTED
    printf ("rtems-rfs: link: target inode-close failed: %d: %s\n",   
ffc260f0:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc260f4:	48 00 5b 21 	bl      ffc2bc14 <strerror>                    <== NOT EXECUTED
ffc260f8:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc260fc:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc26100:	3c 60 ff c4 	lis     r3,-60                                 <== NOT EXECUTED
ffc26104:	38 63 e5 1c 	addi    r3,r3,-6884                            <== NOT EXECUTED
ffc26108:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc2610c:	48 00 49 8d 	bl      ffc2aa98 <printf>                      <== NOT EXECUTED
ffc26110:	4b ff fc 6c 	b       ffc25d7c <rtems_rfs_unlink+0xbc>       <== NOT EXECUTED
      rtems_rfs_inode_close (fs, &parent_inode);                      
      rtems_rfs_inode_close (fs, &target_inode);                      
      return rc;                                                      
    }                                                                 
                                                                      
    if (dir)                                                          
ffc26114:	41 b2 fe a8 	beq-    cr4,ffc25fbc <rtems_rfs_unlink+0x2fc>  
    {                                                                 
      links = rtems_rfs_inode_get_links (&parent_inode);              
ffc26118:	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);                  
ffc2611c:	89 0a 00 00 	lbz     r8,0(r10)                              
ffc26120:	89 2a 00 01 	lbz     r9,1(r10)                              
ffc26124:	55 08 40 2e 	rlwinm  r8,r8,8,0,23                           
ffc26128:	7d 09 4b 78 	or      r9,r8,r9                               
  if (links == 0xffff)                                                
ffc2612c:	6d 28 ff ff 	xoris   r8,r9,65535                            
ffc26130:	2f 88 ff ff 	cmpwi   cr7,r8,-1                              
ffc26134:	41 9e 00 30 	beq-    cr7,ffc26164 <rtems_rfs_unlink+0x4a4>  <== NEVER TAKEN
      if (links > 1)                                                  
ffc26138:	2b 89 00 01 	cmplwi  cr7,r9,1                               
ffc2613c:	40 9d 00 0c 	ble-    cr7,ffc26148 <rtems_rfs_unlink+0x488>  
        links--;                                                      
ffc26140:	39 29 ff ff 	addi    r9,r9,-1                               
ffc26144:	55 29 04 3e 	clrlwi  r9,r9,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);                  
ffc26148:	55 28 c2 3e 	rlwinm  r8,r9,24,8,31                          
ffc2614c:	99 0a 00 00 	stb     r8,0(r10)                              
ffc26150:	81 41 00 3c 	lwz     r10,60(r1)                             
ffc26154:	99 2a 00 01 	stb     r9,1(r10)                              
  rtems_rfs_buffer_mark_dirty (&handle->buffer);                      
ffc26158:	39 20 00 01 	li      r9,1                                   
ffc2615c:	99 21 00 40 	stb     r9,64(r1)                              
ffc26160:	4b ff fe 5c 	b       ffc25fbc <rtems_rfs_unlink+0x2fc>      
rtems_rfs_inode_get_links (rtems_rfs_inode_handle* handle)            
{                                                                     
  uint16_t links;                                                     
  links = rtems_rfs_read_u16 (&handle->node->links);                  
  if (links == 0xffff)                                                
    links = 0;                                                        
ffc26164:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc26168:	4b ff ff e0 	b       ffc26148 <rtems_rfs_unlink+0x488>      <== NOT EXECUTED
                                                                      

ffc2826c <rtems_shell_rfs_format>: const char* driver = NULL; int arg; memset (&config, 0, sizeof (rtems_rfs_format_config)); for (arg = 1; arg < argc; arg++)
ffc2826c:	2f 83 00 01 	cmpwi   cr7,r3,1                               <== NOT EXECUTED
  return 1;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_shell_rfs_format (int argc, char* argv[])                       
{                                                                     
ffc28270:	94 21 ff c0 	stwu    r1,-64(r1)                             <== NOT EXECUTED
ffc28274:	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));              
ffc28278:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
  return 1;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_shell_rfs_format (int argc, char* argv[])                       
{                                                                     
ffc2827c:	93 a1 00 34 	stw     r29,52(r1)                             <== NOT EXECUTED
ffc28280:	7c 7d 1b 78 	mr      r29,r3                                 <== NOT EXECUTED
ffc28284:	93 c1 00 38 	stw     r30,56(r1)                             <== NOT EXECUTED
  const char*             driver = NULL;                              
  int                     arg;                                        
                                                                      
  memset (&config, 0, sizeof (rtems_rfs_format_config));              
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
ffc28288:	3b c0 00 00 	li      r30,0                                  <== NOT EXECUTED
  return 1;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_shell_rfs_format (int argc, char* argv[])                       
{                                                                     
ffc2828c:	93 e1 00 3c 	stw     r31,60(r1)                             <== NOT EXECUTED
  const char*             driver = NULL;                              
  int                     arg;                                        
                                                                      
  memset (&config, 0, sizeof (rtems_rfs_format_config));              
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
ffc28290:	3b e0 00 01 	li      r31,1                                  <== NOT EXECUTED
  return 1;                                                           
}                                                                     
                                                                      
int                                                                   
rtems_shell_rfs_format (int argc, char* argv[])                       
{                                                                     
ffc28294:	90 01 00 44 	stw     r0,68(r1)                              <== NOT EXECUTED
ffc28298:	93 41 00 28 	stw     r26,40(r1)                             <== NOT EXECUTED
ffc2829c:	93 61 00 2c 	stw     r27,44(r1)                             <== NOT EXECUTED
ffc282a0:	93 81 00 30 	stw     r28,48(r1)                             <== NOT EXECUTED
  rtems_rfs_format_config config;                                     
  const char*             driver = NULL;                              
  int                     arg;                                        
                                                                      
  memset (&config, 0, sizeof (rtems_rfs_format_config));              
ffc282a4:	91 21 00 08 	stw     r9,8(r1)                               <== NOT EXECUTED
ffc282a8:	91 21 00 0c 	stw     r9,12(r1)                              <== NOT EXECUTED
ffc282ac:	91 21 00 10 	stw     r9,16(r1)                              <== NOT EXECUTED
ffc282b0:	91 21 00 14 	stw     r9,20(r1)                              <== NOT EXECUTED
ffc282b4:	91 21 00 18 	stw     r9,24(r1)                              <== NOT EXECUTED
ffc282b8:	91 21 00 1c 	stw     r9,28(r1)                              <== NOT EXECUTED
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
ffc282bc:	40 9d 01 e8 	ble-    cr7,ffc284a4 <rtems_shell_rfs_format+0x238><== NOT EXECUTED
  {                                                                   
    if (argv[arg][0] == '-')                                          
    {                                                                 
      switch (argv[arg][1])                                           
ffc282c0:	3f 60 ff c6 	lis     r27,-58                                <== NOT EXECUTED
ffc282c4:	7c 9c 23 78 	mr      r28,r4                                 <== NOT EXECUTED
ffc282c8:	3b 7b 64 4c 	addi    r27,r27,25676                          <== NOT EXECUTED
          }                                                           
          config.group_inodes = strtoul (argv[arg], 0, 0);            
          break;                                                      
                                                                      
        case 'I':                                                     
          config.initialise_inodes = true;                            
ffc282cc:	3b 40 00 01 	li      r26,1                                  <== NOT EXECUTED
ffc282d0:	48 00 00 1c 	b       ffc282ec <rtems_shell_rfs_format+0x80> <== NOT EXECUTED
          return 1;                                                   
      }                                                               
    }                                                                 
    else                                                              
    {                                                                 
      if (!driver)                                                    
ffc282d4:	2f 9e 00 00 	cmpwi   cr7,r30,0                              <== NOT EXECUTED
ffc282d8:	40 9e 01 90 	bne-    cr7,ffc28468 <rtems_shell_rfs_format+0x1fc><== NOT EXECUTED
ffc282dc:	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++)                                    
ffc282e0:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
ffc282e4:	7f 9d f8 00 	cmpw    cr7,r29,r31                            <== NOT EXECUTED
ffc282e8:	40 9d 00 8c 	ble-    cr7,ffc28374 <rtems_shell_rfs_format+0x108><== NOT EXECUTED
  {                                                                   
    if (argv[arg][0] == '-')                                          
ffc282ec:	57 e9 10 3a 	rlwinm  r9,r31,2,0,29                          <== NOT EXECUTED
ffc282f0:	7c 9c 48 2e 	lwzx    r4,r28,r9                              <== NOT EXECUTED
ffc282f4:	89 44 00 00 	lbz     r10,0(r4)                              <== NOT EXECUTED
ffc282f8:	2f 8a 00 2d 	cmpwi   cr7,r10,45                             <== NOT EXECUTED
ffc282fc:	40 9e ff d8 	bne+    cr7,ffc282d4 <rtems_shell_rfs_format+0x68><== NOT EXECUTED
    {                                                                 
      switch (argv[arg][1])                                           
ffc28300:	89 44 00 01 	lbz     r10,1(r4)                              <== NOT EXECUTED
ffc28304:	39 4a ff b7 	addi    r10,r10,-73                            <== NOT EXECUTED
ffc28308:	55 4a 06 3e 	clrlwi  r10,r10,24                             <== NOT EXECUTED
ffc2830c:	2b 8a 00 2d 	cmplwi  cr7,r10,45                             <== NOT EXECUTED
ffc28310:	40 9d 00 40 	ble-    cr7,ffc28350 <rtems_shell_rfs_format+0xe4><== NOT EXECUTED
          }                                                           
          config.inode_overhead = strtoul (argv[arg], 0, 0);          
          break;                                                      
                                                                      
        default:                                                      
          printf ("error: invalid option: %s\n", argv[arg]);          
ffc28314:	3c 60 ff c6 	lis     r3,-58                                 <== NOT EXECUTED
ffc28318:	38 63 46 c8 	addi    r3,r3,18120                            <== NOT EXECUTED
ffc2831c:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc28320:	48 02 0a c5 	bl      ffc48de4 <printf>                      <== NOT EXECUTED
          return 1;                                                   
ffc28324:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
            driver, strerror (errno));                                
    return 1;                                                         
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc28328:	80 01 00 44 	lwz     r0,68(r1)                              <== NOT EXECUTED
ffc2832c:	83 41 00 28 	lwz     r26,40(r1)                             <== NOT EXECUTED
ffc28330:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc28334:	83 61 00 2c 	lwz     r27,44(r1)                             <== NOT EXECUTED
ffc28338:	83 81 00 30 	lwz     r28,48(r1)                             <== NOT EXECUTED
ffc2833c:	83 a1 00 34 	lwz     r29,52(r1)                             <== NOT EXECUTED
ffc28340:	83 c1 00 38 	lwz     r30,56(r1)                             <== NOT EXECUTED
ffc28344:	83 e1 00 3c 	lwz     r31,60(r1)                             <== NOT EXECUTED
ffc28348:	38 21 00 40 	addi    r1,r1,64                               <== NOT EXECUTED
ffc2834c:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
  {                                                                   
    if (argv[arg][0] == '-')                                          
    {                                                                 
      switch (argv[arg][1])                                           
ffc28350:	55 4a 10 3a 	rlwinm  r10,r10,2,0,29                         <== NOT EXECUTED
ffc28354:	7d 5b 50 2e 	lwzx    r10,r27,r10                            <== NOT EXECUTED
ffc28358:	7d 4a da 14 	add     r10,r10,r27                            <== NOT EXECUTED
ffc2835c:	7d 49 03 a6 	mtctr   r10                                    <== NOT EXECUTED
ffc28360:	4e 80 04 20 	bctr                                           <== NOT EXECUTED
  const char*             driver = NULL;                              
  int                     arg;                                        
                                                                      
  memset (&config, 0, sizeof (rtems_rfs_format_config));              
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
ffc28364:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
    if (argv[arg][0] == '-')                                          
    {                                                                 
      switch (argv[arg][1])                                           
      {                                                               
        case 'v':                                                     
          config.verbose = true;                                      
ffc28368:	9b 41 00 1d 	stb     r26,29(r1)                             <== NOT EXECUTED
  const char*             driver = NULL;                              
  int                     arg;                                        
                                                                      
  memset (&config, 0, sizeof (rtems_rfs_format_config));              
                                                                      
  for (arg = 1; arg < argc; arg++)                                    
ffc2836c:	7f 9d f8 00 	cmpw    cr7,r29,r31                            <== NOT EXECUTED
ffc28370:	41 9d ff 7c 	bgt+    cr7,ffc282ec <rtems_shell_rfs_format+0x80><== NOT EXECUTED
        return 1;                                                     
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if (!driver) {                                                      
ffc28374:	2f 9e 00 00 	cmpwi   cr7,r30,0                              <== NOT EXECUTED
ffc28378:	41 9e 01 2c 	beq-    cr7,ffc284a4 <rtems_shell_rfs_format+0x238><== NOT EXECUTED
    printf ("error: no driver name provided\n");                      
    return 1;                                                         
  }                                                                   
                                                                      
  if (rtems_rfs_format (driver, &config) < 0)                         
ffc2837c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc28380:	38 81 00 08 	addi    r4,r1,8                                <== NOT EXECUTED
ffc28384:	48 01 0d 25 	bl      ffc390a8 <rtems_rfs_format>            <== NOT EXECUTED
ffc28388:	2f 83 00 00 	cmpwi   cr7,r3,0                               <== NOT EXECUTED
    printf ("error: format of %s failed: %s\n",                       
            driver, strerror (errno));                                
    return 1;                                                         
  }                                                                   
                                                                      
  return 0;                                                           
ffc2838c:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
  if (!driver) {                                                      
    printf ("error: no driver name provided\n");                      
    return 1;                                                         
  }                                                                   
                                                                      
  if (rtems_rfs_format (driver, &config) < 0)                         
ffc28390:	40 9c ff 98 	bge+    cr7,ffc28328 <rtems_shell_rfs_format+0xbc><== NOT EXECUTED
  {                                                                   
    printf ("error: format of %s failed: %s\n",                       
            driver, strerror (errno));                                
ffc28394:	48 01 b6 85 	bl      ffc43a18 <__errno>                     <== NOT EXECUTED
    return 1;                                                         
  }                                                                   
                                                                      
  if (rtems_rfs_format (driver, &config) < 0)                         
  {                                                                   
    printf ("error: format of %s failed: %s\n",                       
ffc28398:	80 63 00 00 	lwz     r3,0(r3)                               <== NOT EXECUTED
ffc2839c:	48 02 35 61 	bl      ffc4b8fc <strerror>                    <== NOT EXECUTED
ffc283a0:	7f c4 f3 78 	mr      r4,r30                                 <== NOT EXECUTED
ffc283a4:	7c 65 1b 78 	mr      r5,r3                                  <== NOT EXECUTED
ffc283a8:	3c 60 ff c6 	lis     r3,-58                                 <== NOT EXECUTED
ffc283ac:	38 63 6d c0 	addi    r3,r3,28096                            <== NOT EXECUTED
ffc283b0:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc283b4:	48 02 0a 31 	bl      ffc48de4 <printf>                      <== NOT EXECUTED
            driver, strerror (errno));                                
    return 1;                                                         
ffc283b8:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc283bc:	4b ff ff 6c 	b       ffc28328 <rtems_shell_rfs_format+0xbc> <== NOT EXECUTED
        case 'v':                                                     
          config.verbose = true;                                      
          break;                                                      
                                                                      
        case 's':                                                     
          arg++;                                                      
ffc283c0:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
          if (arg >= argc)                                            
ffc283c4:	7f 9d f8 00 	cmpw    cr7,r29,r31                            <== NOT EXECUTED
ffc283c8:	40 9d 01 04 	ble-    cr7,ffc284cc <rtems_shell_rfs_format+0x260><== NOT EXECUTED
          {                                                           
            printf ("error: block size needs an argument\n");         
            return 1;                                                 
          }                                                           
          config.block_size = strtoul (argv[arg], 0, 0);              
ffc283cc:	57 e9 10 3a 	rlwinm  r9,r31,2,0,29                          <== NOT EXECUTED
ffc283d0:	7c 7c 48 2e 	lwzx    r3,r28,r9                              <== NOT EXECUTED
ffc283d4:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc283d8:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc283dc:	48 02 4e ad 	bl      ffc4d288 <strtoul>                     <== NOT EXECUTED
ffc283e0:	90 61 00 08 	stw     r3,8(r1)                               <== NOT EXECUTED
          break;                                                      
ffc283e4:	4b ff fe fc 	b       ffc282e0 <rtems_shell_rfs_format+0x74> <== NOT EXECUTED
        case 'I':                                                     
          config.initialise_inodes = true;                            
          break;                                                      
                                                                      
        case 'o':                                                     
          arg++;                                                      
ffc283e8:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
          if (arg >= argc)                                            
ffc283ec:	7f 9d f8 00 	cmpw    cr7,r29,r31                            <== NOT EXECUTED
ffc283f0:	40 9d 01 04 	ble-    cr7,ffc284f4 <rtems_shell_rfs_format+0x288><== NOT EXECUTED
          {                                                           
            printf ("error: inode percentage overhead needs an argument\n");
            return 1;                                                 
          }                                                           
          config.inode_overhead = strtoul (argv[arg], 0, 0);          
ffc283f4:	57 e9 10 3a 	rlwinm  r9,r31,2,0,29                          <== NOT EXECUTED
ffc283f8:	7c 7c 48 2e 	lwzx    r3,r28,r9                              <== NOT EXECUTED
ffc283fc:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc28400:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc28404:	48 02 4e 85 	bl      ffc4d288 <strtoul>                     <== NOT EXECUTED
ffc28408:	90 61 00 14 	stw     r3,20(r1)                              <== NOT EXECUTED
          break;                                                      
ffc2840c:	4b ff fe d4 	b       ffc282e0 <rtems_shell_rfs_format+0x74> <== NOT EXECUTED
          }                                                           
          config.group_blocks = strtoul (argv[arg], 0, 0);            
          break;                                                      
                                                                      
        case 'i':                                                     
          arg++;                                                      
ffc28410:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
          if (arg >= argc)                                            
ffc28414:	7f 9d f8 00 	cmpw    cr7,r29,r31                            <== NOT EXECUTED
ffc28418:	40 9d 00 c8 	ble-    cr7,ffc284e0 <rtems_shell_rfs_format+0x274><== NOT EXECUTED
          {                                                           
            printf ("error: group inode count needs an argument\n");  
            return 1;                                                 
          }                                                           
          config.group_inodes = strtoul (argv[arg], 0, 0);            
ffc2841c:	57 e9 10 3a 	rlwinm  r9,r31,2,0,29                          <== NOT EXECUTED
ffc28420:	7c 7c 48 2e 	lwzx    r3,r28,r9                              <== NOT EXECUTED
ffc28424:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc28428:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc2842c:	48 02 4e 5d 	bl      ffc4d288 <strtoul>                     <== NOT EXECUTED
ffc28430:	90 61 00 10 	stw     r3,16(r1)                              <== NOT EXECUTED
          break;                                                      
ffc28434:	4b ff fe ac 	b       ffc282e0 <rtems_shell_rfs_format+0x74> <== NOT EXECUTED
          }                                                           
          config.block_size = strtoul (argv[arg], 0, 0);              
          break;                                                      
                                                                      
        case 'b':                                                     
          arg++;                                                      
ffc28438:	3b ff 00 01 	addi    r31,r31,1                              <== NOT EXECUTED
          if (arg >= argc)                                            
ffc2843c:	7f 9d f8 00 	cmpw    cr7,r29,r31                            <== NOT EXECUTED
ffc28440:	40 9d 00 78 	ble-    cr7,ffc284b8 <rtems_shell_rfs_format+0x24c><== NOT EXECUTED
          {                                                           
            printf ("error: group block count needs an argument\n");  
            return 1;                                                 
          }                                                           
          config.group_blocks = strtoul (argv[arg], 0, 0);            
ffc28444:	57 e9 10 3a 	rlwinm  r9,r31,2,0,29                          <== NOT EXECUTED
ffc28448:	7c 7c 48 2e 	lwzx    r3,r28,r9                              <== NOT EXECUTED
ffc2844c:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc28450:	38 a0 00 00 	li      r5,0                                   <== NOT EXECUTED
ffc28454:	48 02 4e 35 	bl      ffc4d288 <strtoul>                     <== NOT EXECUTED
ffc28458:	90 61 00 0c 	stw     r3,12(r1)                              <== NOT EXECUTED
          break;                                                      
ffc2845c:	4b ff fe 84 	b       ffc282e0 <rtems_shell_rfs_format+0x74> <== NOT EXECUTED
          }                                                           
          config.group_inodes = strtoul (argv[arg], 0, 0);            
          break;                                                      
                                                                      
        case 'I':                                                     
          config.initialise_inodes = true;                            
ffc28460:	9b 41 00 1c 	stb     r26,28(r1)                             <== NOT EXECUTED
          break;                                                      
ffc28464:	4b ff fe 7c 	b       ffc282e0 <rtems_shell_rfs_format+0x74> <== NOT EXECUTED
    {                                                                 
      if (!driver)                                                    
        driver = argv[arg];                                           
      else                                                            
      {                                                               
        printf ("error: only one driver name allowed: %s\n", argv[arg]);
ffc28468:	3c 60 ff c6 	lis     r3,-58                                 <== NOT EXECUTED
ffc2846c:	38 63 6d 94 	addi    r3,r3,28052                            <== NOT EXECUTED
ffc28470:	4c c6 31 82 	crclr   4*cr1+eq                               <== NOT EXECUTED
ffc28474:	48 02 09 71 	bl      ffc48de4 <printf>                      <== NOT EXECUTED
            driver, strerror (errno));                                
    return 1;                                                         
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc28478:	80 01 00 44 	lwz     r0,68(r1)                              <== NOT EXECUTED
ffc2847c:	83 41 00 28 	lwz     r26,40(r1)                             <== NOT EXECUTED
      if (!driver)                                                    
        driver = argv[arg];                                           
      else                                                            
      {                                                               
        printf ("error: only one driver name allowed: %s\n", argv[arg]);
        return 1;                                                     
ffc28480:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
            driver, strerror (errno));                                
    return 1;                                                         
  }                                                                   
                                                                      
  return 0;                                                           
}                                                                     
ffc28484:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc28488:	83 61 00 2c 	lwz     r27,44(r1)                             <== NOT EXECUTED
ffc2848c:	83 81 00 30 	lwz     r28,48(r1)                             <== NOT EXECUTED
ffc28490:	83 a1 00 34 	lwz     r29,52(r1)                             <== NOT EXECUTED
ffc28494:	83 c1 00 38 	lwz     r30,56(r1)                             <== NOT EXECUTED
ffc28498:	83 e1 00 3c 	lwz     r31,60(r1)                             <== NOT EXECUTED
ffc2849c:	38 21 00 40 	addi    r1,r1,64                               <== NOT EXECUTED
ffc284a0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if (!driver) {                                                      
    printf ("error: no driver name provided\n");                      
ffc284a4:	3c 60 ff c6 	lis     r3,-58                                 <== NOT EXECUTED
ffc284a8:	38 63 6c c4 	addi    r3,r3,27844                            <== NOT EXECUTED
ffc284ac:	48 02 0c a1 	bl      ffc4914c <puts>                        <== NOT EXECUTED
    return 1;                                                         
ffc284b0:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc284b4:	4b ff fe 74 	b       ffc28328 <rtems_shell_rfs_format+0xbc> <== NOT EXECUTED
                                                                      
        case 'b':                                                     
          arg++;                                                      
          if (arg >= argc)                                            
          {                                                           
            printf ("error: group block count needs an argument\n");  
ffc284b8:	3c 60 ff c6 	lis     r3,-58                                 <== NOT EXECUTED
ffc284bc:	38 63 6d 08 	addi    r3,r3,27912                            <== NOT EXECUTED
ffc284c0:	48 02 0c 8d 	bl      ffc4914c <puts>                        <== NOT EXECUTED
            return 1;                                                 
ffc284c4:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc284c8:	4b ff fe 60 	b       ffc28328 <rtems_shell_rfs_format+0xbc> <== NOT EXECUTED
                                                                      
        case 's':                                                     
          arg++;                                                      
          if (arg >= argc)                                            
          {                                                           
            printf ("error: block size needs an argument\n");         
ffc284cc:	3c 60 ff c6 	lis     r3,-58                                 <== NOT EXECUTED
ffc284d0:	38 63 6c e4 	addi    r3,r3,27876                            <== NOT EXECUTED
ffc284d4:	48 02 0c 79 	bl      ffc4914c <puts>                        <== NOT EXECUTED
            return 1;                                                 
ffc284d8:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc284dc:	4b ff fe 4c 	b       ffc28328 <rtems_shell_rfs_format+0xbc> <== NOT EXECUTED
                                                                      
        case 'i':                                                     
          arg++;                                                      
          if (arg >= argc)                                            
          {                                                           
            printf ("error: group inode count needs an argument\n");  
ffc284e0:	3c 60 ff c6 	lis     r3,-58                                 <== NOT EXECUTED
ffc284e4:	38 63 6d 34 	addi    r3,r3,27956                            <== NOT EXECUTED
ffc284e8:	48 02 0c 65 	bl      ffc4914c <puts>                        <== NOT EXECUTED
            return 1;                                                 
ffc284ec:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc284f0:	4b ff fe 38 	b       ffc28328 <rtems_shell_rfs_format+0xbc> <== NOT EXECUTED
                                                                      
        case 'o':                                                     
          arg++;                                                      
          if (arg >= argc)                                            
          {                                                           
            printf ("error: inode percentage overhead needs an argument\n");
ffc284f4:	3c 60 ff c6 	lis     r3,-58                                 <== NOT EXECUTED
ffc284f8:	38 63 6d 60 	addi    r3,r3,28000                            <== NOT EXECUTED
ffc284fc:	48 02 0c 51 	bl      ffc4914c <puts>                        <== NOT EXECUTED
            return 1;                                                 
ffc28500:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc28504:	4b ff fe 24 	b       ffc28328 <rtems_shell_rfs_format+0xbc> <== NOT EXECUTED
                                                                      

ffc1be94 <rtems_signal_send>: rtems_status_code rtems_signal_send( rtems_id id, rtems_signal_set signal_set ) {
ffc1be94:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc1be98:	7c 08 02 a6 	mflr    r0                                     
ffc1be9c:	93 e1 00 1c 	stw     r31,28(r1)                             
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
  RTEMS_API_Control       *api;                                       
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
ffc1bea0:	7c 9f 23 79 	mr.     r31,r4                                 
                                                                      
rtems_status_code rtems_signal_send(                                  
  rtems_id          id,                                               
  rtems_signal_set  signal_set                                        
)                                                                     
{                                                                     
ffc1bea4:	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 )                                                  
ffc1bea8:	40 82 00 1c 	bne-    ffc1bec4 <rtems_signal_send+0x30>      
    return RTEMS_INVALID_NUMBER;                                      
ffc1beac:	38 60 00 0a 	li      r3,10                                  
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc1beb0:	80 01 00 24 	lwz     r0,36(r1)                              
ffc1beb4:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc1beb8:	7c 08 03 a6 	mtlr    r0                                     
ffc1bebc:	38 21 00 20 	addi    r1,r1,32                               
ffc1bec0:	4e 80 00 20 	blr                                            
  ASR_Information         *asr;                                       
                                                                      
  if ( !signal_set )                                                  
    return RTEMS_INVALID_NUMBER;                                      
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc1bec4:	38 81 00 08 	addi    r4,r1,8                                
ffc1bec8:	48 00 5b e5 	bl      ffc21aac <_Thread_Get>                 
  switch ( location ) {                                               
ffc1becc:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1bed0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1bed4:	40 9e 00 6c 	bne-    cr7,ffc1bf40 <rtems_signal_send+0xac>  
                                                                      
    case OBJECTS_LOCAL:                                               
      api = the_thread->API_Extensions[ THREAD_API_RTEMS ];           
ffc1bed8:	81 23 01 4c 	lwz     r9,332(r3)                             
      asr = &api->Signal;                                             
                                                                      
      if ( ! _ASR_Is_null_handler( asr->handler ) ) {                 
ffc1bedc:	81 49 00 0c 	lwz     r10,12(r9)                             
ffc1bee0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1bee4:	41 9e 00 74 	beq-    cr7,ffc1bf58 <rtems_signal_send+0xc4>  
        if ( asr->is_enabled ) {                                      
ffc1bee8:	89 49 00 08 	lbz     r10,8(r9)                              
ffc1beec:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc1bef0:	7d 00 00 a6 	mfmsr   r8                                     
ffc1bef4:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc1bef8:	7d 0a 50 78 	andc    r10,r8,r10                             
ffc1befc:	7d 40 01 24 	mtmsr   r10                                    
ffc1bf00:	41 9e 00 64 	beq-    cr7,ffc1bf64 <rtems_signal_send+0xd0>  
)                                                                     
{                                                                     
  ISR_Level              _level;                                      
                                                                      
  _ISR_Disable( _level );                                             
    *signal_set |= signals;                                           
ffc1bf04:	81 49 00 14 	lwz     r10,20(r9)                             
ffc1bf08:	7d 4a fb 78 	or      r10,r10,r31                            
ffc1bf0c:	91 49 00 14 	stw     r10,20(r9)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc1bf10:	7d 00 01 24 	mtmsr   r8                                     
          _ASR_Post_signals( signal_set, &asr->signals_posted );      
                                                                      
          if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
ffc1bf14:	3d 20 00 00 	lis     r9,0                                   
ffc1bf18:	39 29 75 c0 	addi    r9,r9,30144                            
ffc1bf1c:	81 49 00 08 	lwz     r10,8(r9)                              
ffc1bf20:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1bf24:	41 9e 00 10 	beq-    cr7,ffc1bf34 <rtems_signal_send+0xa0>  
ffc1bf28:	81 49 00 10 	lwz     r10,16(r9)                             
ffc1bf2c:	7f 83 50 00 	cmpw    cr7,r3,r10                             
ffc1bf30:	41 9e 00 48 	beq-    cr7,ffc1bf78 <rtems_signal_send+0xe4>  <== ALWAYS TAKEN
            _Thread_Dispatch_necessary = true;                        
        } else {                                                      
          _ASR_Post_signals( signal_set, &asr->signals_pending );     
        }                                                             
        _Thread_Enable_dispatch();                                    
ffc1bf34:	48 00 5b 5d 	bl      ffc21a90 <_Thread_Enable_dispatch>     
        return RTEMS_SUCCESSFUL;                                      
ffc1bf38:	38 60 00 00 	li      r3,0                                   
ffc1bf3c:	4b ff ff 74 	b       ffc1beb0 <rtems_signal_send+0x1c>      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc1bf40:	80 01 00 24 	lwz     r0,36(r1)                              
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc1bf44:	38 60 00 04 	li      r3,4                                   
}                                                                     
ffc1bf48:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc1bf4c:	7c 08 03 a6 	mtlr    r0                                     
ffc1bf50:	38 21 00 20 	addi    r1,r1,32                               
ffc1bf54:	4e 80 00 20 	blr                                            
          _ASR_Post_signals( signal_set, &asr->signals_pending );     
        }                                                             
        _Thread_Enable_dispatch();                                    
        return RTEMS_SUCCESSFUL;                                      
      }                                                               
      _Thread_Enable_dispatch();                                      
ffc1bf58:	48 00 5b 39 	bl      ffc21a90 <_Thread_Enable_dispatch>     
      return RTEMS_NOT_DEFINED;                                       
ffc1bf5c:	38 60 00 0b 	li      r3,11                                  
ffc1bf60:	4b ff ff 50 	b       ffc1beb0 <rtems_signal_send+0x1c>      
ffc1bf64:	81 49 00 18 	lwz     r10,24(r9)                             
ffc1bf68:	7d 4a fb 78 	or      r10,r10,r31                            
ffc1bf6c:	91 49 00 18 	stw     r10,24(r9)                             
ffc1bf70:	7d 00 01 24 	mtmsr   r8                                     
ffc1bf74:	4b ff ff c0 	b       ffc1bf34 <rtems_signal_send+0xa0>      
      if ( ! _ASR_Is_null_handler( asr->handler ) ) {                 
        if ( asr->is_enabled ) {                                      
          _ASR_Post_signals( signal_set, &asr->signals_posted );      
                                                                      
          if ( _ISR_Is_in_progress() && _Thread_Is_executing( the_thread ) )
            _Thread_Dispatch_necessary = true;                        
ffc1bf78:	39 40 00 01 	li      r10,1                                  
ffc1bf7c:	99 49 00 0c 	stb     r10,12(r9)                             
ffc1bf80:	4b ff ff b4 	b       ffc1bf34 <rtems_signal_send+0xa0>      
                                                                      

ffc11ee8 <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 ) {
ffc11ee8:	39 24 00 08 	addi    r9,r4,8                                
ffc11eec:	94 21 ff e0 	stwu    r1,-32(r1)                             
  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 )           
ffc11ef0:	7d 29 29 d6 	mullw   r9,r9,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 )                                    
{                                                                     
ffc11ef4:	7c 08 02 a6 	mflr    r0                                     
ffc11ef8:	93 81 00 10 	stw     r28,16(r1)                             
ffc11efc:	7c 7c 1b 78 	mr      r28,r3                                 
                                * 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(         
ffc11f00:	38 69 00 1c 	addi    r3,r9,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 )                                    
{                                                                     
ffc11f04:	93 61 00 0c 	stw     r27,12(r1)                             
ffc11f08:	7c fb 3b 78 	mr      r27,r7                                 
ffc11f0c:	93 a1 00 14 	stw     r29,20(r1)                             
ffc11f10:	7c dd 33 78 	mr      r29,r6                                 
ffc11f14:	93 c1 00 18 	stw     r30,24(r1)                             
ffc11f18:	7c 9e 23 78 	mr      r30,r4                                 
ffc11f1c:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc11f20:	7c bf 2b 78 	mr      r31,r5                                 
ffc11f24:	90 01 00 24 	stw     r0,36(r1)                              
                                * 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(         
ffc11f28:	4b ff 4e 75 	bl      ffc06d9c <malloc>                      
  rtems_sparse_disk *sparse_disk = sparse_disk_allocate(              
    media_block_size,                                                 
    blocks_with_buffer                                                
  );                                                                  
                                                                      
  if ( sparse_disk != NULL ) {                                        
ffc11f2c:	7c 64 1b 79 	mr.     r4,r3                                  
ffc11f30:	41 82 00 44 	beq-    ffc11f74 <rtems_sparse_disk_create_and_register+0x8c><== NEVER TAKEN
  } else {                                                            
    sc = RTEMS_NO_MEMORY;                                             
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc11f34:	80 01 00 24 	lwz     r0,36(r1)                              
    media_block_size,                                                 
    blocks_with_buffer                                                
  );                                                                  
                                                                      
  if ( sparse_disk != NULL ) {                                        
    sc = rtems_sparse_disk_register(                                  
ffc11f38:	7f 83 e3 78 	mr      r3,r28                                 
ffc11f3c:	7f c5 f3 78 	mr      r5,r30                                 
  } else {                                                            
    sc = RTEMS_NO_MEMORY;                                             
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc11f40:	83 81 00 10 	lwz     r28,16(r1)                             
ffc11f44:	7c 08 03 a6 	mtlr    r0                                     
ffc11f48:	83 c1 00 18 	lwz     r30,24(r1)                             
    media_block_size,                                                 
    blocks_with_buffer                                                
  );                                                                  
                                                                      
  if ( sparse_disk != NULL ) {                                        
    sc = rtems_sparse_disk_register(                                  
ffc11f4c:	7f e6 fb 78 	mr      r6,r31                                 
  } else {                                                            
    sc = RTEMS_NO_MEMORY;                                             
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc11f50:	83 e1 00 1c 	lwz     r31,28(r1)                             
    media_block_size,                                                 
    blocks_with_buffer                                                
  );                                                                  
                                                                      
  if ( sparse_disk != NULL ) {                                        
    sc = rtems_sparse_disk_register(                                  
ffc11f54:	7f a7 eb 78 	mr      r7,r29                                 
  } else {                                                            
    sc = RTEMS_NO_MEMORY;                                             
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc11f58:	83 a1 00 14 	lwz     r29,20(r1)                             
    media_block_size,                                                 
    blocks_with_buffer                                                
  );                                                                  
                                                                      
  if ( sparse_disk != NULL ) {                                        
    sc = rtems_sparse_disk_register(                                  
ffc11f5c:	7f 68 db 78 	mr      r8,r27                                 
  } else {                                                            
    sc = RTEMS_NO_MEMORY;                                             
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc11f60:	83 61 00 0c 	lwz     r27,12(r1)                             
    media_block_size,                                                 
    blocks_with_buffer                                                
  );                                                                  
                                                                      
  if ( sparse_disk != NULL ) {                                        
    sc = rtems_sparse_disk_register(                                  
ffc11f64:	3d 20 ff c1 	lis     r9,-63                                 
ffc11f68:	39 29 1d 70 	addi    r9,r9,7536                             
  } else {                                                            
    sc = RTEMS_NO_MEMORY;                                             
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc11f6c:	38 21 00 20 	addi    r1,r1,32                               
    media_block_size,                                                 
    blocks_with_buffer                                                
  );                                                                  
                                                                      
  if ( sparse_disk != NULL ) {                                        
    sc = rtems_sparse_disk_register(                                  
ffc11f70:	4b ff fe 04 	b       ffc11d74 <rtems_sparse_disk_register>  
  } else {                                                            
    sc = RTEMS_NO_MEMORY;                                             
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc11f74:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
ffc11f78:	38 60 00 1a 	li      r3,26                                  <== NOT EXECUTED
ffc11f7c:	83 61 00 0c 	lwz     r27,12(r1)                             <== NOT EXECUTED
ffc11f80:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc11f84:	83 81 00 10 	lwz     r28,16(r1)                             <== NOT EXECUTED
ffc11f88:	83 a1 00 14 	lwz     r29,20(r1)                             <== NOT EXECUTED
ffc11f8c:	83 c1 00 18 	lwz     r30,24(r1)                             <== NOT EXECUTED
ffc11f90:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc11f94:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc11f98:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc11d74 <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 ) {
ffc11d74:	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 )               
{                                                                     
ffc11d78:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc11d7c:	7c 08 02 a6 	mflr    r0                                     
ffc11d80:	93 c1 00 28 	stw     r30,40(r1)                             
ffc11d84:	7c fe 3b 78 	mr      r30,r7                                 
ffc11d88:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc11d8c:	7c df 33 78 	mr      r31,r6                                 
ffc11d90:	90 01 00 34 	stw     r0,52(r1)                              
ffc11d94:	93 21 00 14 	stw     r25,20(r1)                             
ffc11d98:	93 41 00 18 	stw     r26,24(r1)                             
ffc11d9c:	93 61 00 1c 	stw     r27,28(r1)                             
ffc11da0:	93 81 00 20 	stw     r28,32(r1)                             
ffc11da4:	93 a1 00 24 	stw     r29,36(r1)                             
  rtems_status_code sc;                                               
                                                                      
  if ( blocks_with_buffer <= media_block_count ) {                    
ffc11da8:	40 9d 00 34 	ble-    cr7,ffc11ddc <rtems_sparse_disk_register+0x68><== ALWAYS TAKEN
        sparse_disk_ioctl,                                            
        sparse_disk                                                   
      );                                                              
    }                                                                 
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
ffc11dac:	38 60 00 0a 	li      r3,10                                  <== NOT EXECUTED
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc11db0:	80 01 00 34 	lwz     r0,52(r1)                              <== NOT EXECUTED
ffc11db4:	83 21 00 14 	lwz     r25,20(r1)                             <== NOT EXECUTED
ffc11db8:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc11dbc:	83 41 00 18 	lwz     r26,24(r1)                             <== NOT EXECUTED
ffc11dc0:	83 61 00 1c 	lwz     r27,28(r1)                             <== NOT EXECUTED
ffc11dc4:	83 81 00 20 	lwz     r28,32(r1)                             <== NOT EXECUTED
ffc11dc8:	83 a1 00 24 	lwz     r29,36(r1)                             <== NOT EXECUTED
ffc11dcc:	83 c1 00 28 	lwz     r30,40(r1)                             <== NOT EXECUTED
ffc11dd0:	83 e1 00 2c 	lwz     r31,44(r1)                             <== NOT EXECUTED
ffc11dd4:	38 21 00 30 	addi    r1,r1,48                               <== NOT EXECUTED
ffc11dd8:	4e 80 00 20 	blr                                            <== NOT EXECUTED
  const uint8_t                                                     fill_pattern )
{                                                                     
  rtems_status_code sc;                                               
  rtems_blkdev_bnum i;                                                
                                                                      
  if ( NULL == sd )                                                   
ffc11ddc:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc11de0:	7c 9d 23 78 	mr      r29,r4                                 
ffc11de4:	41 9e 00 fc 	beq-    cr7,ffc11ee0 <rtems_sparse_disk_register+0x16c><== NEVER TAKEN
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  uint8_t     *data           = (uint8_t *) sd;                       
  size_t const key_table_size = blocks_with_buffer                    
ffc11de8:	54 da 18 38 	rlwinm  r26,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 );    
ffc11dec:	91 21 00 0c 	stw     r9,12(r1)                              
ffc11df0:	3b 3a 00 1c 	addi    r25,r26,28                             
ffc11df4:	7c bc 2b 78 	mr      r28,r5                                 
ffc11df8:	91 01 00 08 	stw     r8,8(r1)                               
ffc11dfc:	38 80 00 00 	li      r4,0                                   
ffc11e00:	7f 25 cb 78 	mr      r5,r25                                 
ffc11e04:	7c 7b 1b 78 	mr      r27,r3                                 
ffc11e08:	7f a3 eb 78 	mr      r3,r29                                 
ffc11e0c:	48 01 06 65 	bl      ffc22470 <memset>                      
                                                                      
  sd->fill_pattern = fill_pattern;                                    
ffc11e10:	81 01 00 08 	lwz     r8,8(r1)                               
  memset( (uint8_t *) ( data + sizeof( rtems_sparse_disk ) + key_table_size ),
ffc11e14:	7c bf e1 d6 	mullw   r5,r31,r28                             
                                * 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;                                    
ffc11e18:	99 1d 00 14 	stb     r8,20(r29)                             
  memset( (uint8_t *) ( data + sizeof( rtems_sparse_disk ) + key_table_size ),
ffc11e1c:	7d 04 43 78 	mr      r4,r8                                  
ffc11e20:	7c 7d ca 14 	add     r3,r29,r25                             
ffc11e24:	48 01 06 4d 	bl      ffc22470 <memset>                      
          sd->fill_pattern,                                           
          data_size );                                                
                                                                      
  sd->delete_handler = sparse_disk_delete;                            
ffc11e28:	81 21 00 0c 	lwz     r9,12(r1)                              
                                                                      
  sc                 = rtems_semaphore_create(                        
ffc11e2c:	3c 60 53 50 	lis     r3,21328                               
  sd->fill_pattern = fill_pattern;                                    
  memset( (uint8_t *) ( data + sizeof( rtems_sparse_disk ) + key_table_size ),
          sd->fill_pattern,                                           
          data_size );                                                
                                                                      
  sd->delete_handler = sparse_disk_delete;                            
ffc11e30:	91 3d 00 10 	stw     r9,16(r29)                             
                                                                      
  sc                 = rtems_semaphore_create(                        
ffc11e34:	60 63 41 52 	ori     r3,r3,16722                            
ffc11e38:	38 80 00 01 	li      r4,1                                   
ffc11e3c:	38 a0 00 54 	li      r5,84                                  
ffc11e40:	38 c0 00 00 	li      r6,0                                   
ffc11e44:	7f a7 eb 78 	mr      r7,r29                                 
ffc11e48:	4b ff 9a 79 	bl      ffc0b8c0 <rtems_semaphore_create>      
    RTEMS_PRIORITY | RTEMS_BINARY_SEMAPHORE | RTEMS_INHERIT_PRIORITY, 
    0,                                                                
    &sd->mutex                                                        
    );                                                                
                                                                      
  if ( sc != RTEMS_SUCCESSFUL ) {                                     
ffc11e4c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc11e50:	40 a2 ff 60 	bne-    ffc11db0 <rtems_sparse_disk_register+0x3c><== NEVER TAKEN
  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 ) {
ffc11e54:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
    return sc;                                                        
  }                                                                   
                                                                      
  data                  += sizeof( rtems_sparse_disk );               
                                                                      
  sd->blocks_with_buffer = blocks_with_buffer;                        
ffc11e58:	93 fd 00 04 	stw     r31,4(r29)                             
                                                                      
  if ( sc != RTEMS_SUCCESSFUL ) {                                     
    return sc;                                                        
  }                                                                   
                                                                      
  data                  += sizeof( rtems_sparse_disk );               
ffc11e5c:	39 3d 00 1c 	addi    r9,r29,28                              
                                                                      
  sd->blocks_with_buffer = blocks_with_buffer;                        
  sd->key_table          = (rtems_sparse_disk_key *) data;            
                                                                      
  data                  += key_table_size;                            
ffc11e60:	7d 49 d2 14 	add     r10,r9,r26                             
  }                                                                   
                                                                      
  data                  += sizeof( rtems_sparse_disk );               
                                                                      
  sd->blocks_with_buffer = blocks_with_buffer;                        
  sd->key_table          = (rtems_sparse_disk_key *) data;            
ffc11e64:	91 3d 00 18 	stw     r9,24(r29)                             
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
                                                                      
rtems_status_code rtems_sparse_disk_register(                         
ffc11e68:	7f 5a ea 14 	add     r26,r26,r29                            
ffc11e6c:	7f a9 eb 78 	mr      r9,r29                                 
  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 ) {
ffc11e70:	41 9e 00 28 	beq-    cr7,ffc11e98 <rtems_sparse_disk_register+0x124><== NEVER TAKEN
ffc11e74:	7d 1d d0 50 	subf    r8,r29,r26                             
ffc11e78:	39 08 ff f8 	addi    r8,r8,-8                               
ffc11e7c:	55 08 e8 fe 	rlwinm  r8,r8,29,3,31                          
ffc11e80:	39 08 00 01 	addi    r8,r8,1                                
ffc11e84:	7d 09 03 a6 	mtctr   r8                                     
    sd->key_table[i].data = data;                                     
ffc11e88:	91 49 00 20 	stw     r10,32(r9)                             
  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 ) {
ffc11e8c:	7d 4a e2 14 	add     r10,r10,r28                            
ffc11e90:	39 29 00 08 	addi    r9,r9,8                                
ffc11e94:	42 00 ff f4 	bdnz+   ffc11e88 <rtems_sparse_disk_register+0x114>
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc11e98:	80 01 00 34 	lwz     r0,52(r1)                              
      sparse_disk_delete,                                             
      fill_pattern                                                    
    );                                                                
                                                                      
    if ( RTEMS_SUCCESSFUL == sc ) {                                   
      sc = rtems_blkdev_create(                                       
ffc11e9c:	7f 63 db 78 	mr      r3,r27                                 
                                                                      
  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;                            
ffc11ea0:	93 9d 00 0c 	stw     r28,12(r29)                            
      sparse_disk_delete,                                             
      fill_pattern                                                    
    );                                                                
                                                                      
    if ( RTEMS_SUCCESSFUL == sc ) {                                   
      sc = rtems_blkdev_create(                                       
ffc11ea4:	7f 84 e3 78 	mr      r4,r28                                 
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc11ea8:	7c 08 03 a6 	mtlr    r0                                     
      sparse_disk_delete,                                             
      fill_pattern                                                    
    );                                                                
                                                                      
    if ( RTEMS_SUCCESSFUL == sc ) {                                   
      sc = rtems_blkdev_create(                                       
ffc11eac:	7f c5 f3 78 	mr      r5,r30                                 
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc11eb0:	83 21 00 14 	lwz     r25,20(r1)                             
      sparse_disk_delete,                                             
      fill_pattern                                                    
    );                                                                
                                                                      
    if ( RTEMS_SUCCESSFUL == sc ) {                                   
      sc = rtems_blkdev_create(                                       
ffc11eb4:	3c c0 ff c1 	lis     r6,-63                                 
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc11eb8:	83 41 00 18 	lwz     r26,24(r1)                             
      sparse_disk_delete,                                             
      fill_pattern                                                    
    );                                                                
                                                                      
    if ( RTEMS_SUCCESSFUL == sc ) {                                   
      sc = rtems_blkdev_create(                                       
ffc11ebc:	7f a7 eb 78 	mr      r7,r29                                 
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc11ec0:	83 61 00 1c 	lwz     r27,28(r1)                             
      sparse_disk_delete,                                             
      fill_pattern                                                    
    );                                                                
                                                                      
    if ( RTEMS_SUCCESSFUL == sc ) {                                   
      sc = rtems_blkdev_create(                                       
ffc11ec4:	38 c6 1a 54 	addi    r6,r6,6740                             
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc11ec8:	83 81 00 20 	lwz     r28,32(r1)                             
ffc11ecc:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc11ed0:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc11ed4:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc11ed8:	38 21 00 30 	addi    r1,r1,48                               
      sparse_disk_delete,                                             
      fill_pattern                                                    
    );                                                                
                                                                      
    if ( RTEMS_SUCCESSFUL == sc ) {                                   
      sc = rtems_blkdev_create(                                       
ffc11edc:	48 00 35 04 	b       ffc153e0 <rtems_blkdev_create>         
{                                                                     
  rtems_status_code sc;                                               
  rtems_blkdev_bnum i;                                                
                                                                      
  if ( NULL == sd )                                                   
    return RTEMS_INVALID_ADDRESS;                                     
ffc11ee0:	38 60 00 09 	li      r3,9                                   <== NOT EXECUTED
ffc11ee4:	4b ff fe cc 	b       ffc11db0 <rtems_sparse_disk_register+0x3c><== NOT EXECUTED
                                                                      

ffc2a43c <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 )
ffc2a43c:	3c c0 00 00 	lis     r6,0                                   
ffc2a440:	38 c6 5d 48 	addi    r6,r6,23880                            
ffc2a444:	81 26 00 08 	lwz     r9,8(r6)                               
ffc2a448:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc2a44c:	40 9e 00 38 	bne-    cr7,ffc2a484 <rtems_stack_checker_create_extension+0x48>
ffc2a450:	39 00 00 20 	li      r8,32                                  
ffc2a454:	7d 09 03 a6 	mtctr   r8                                     
ffc2a458:	3d 40 00 00 	lis     r10,0                                  
ffc2a45c:	3c e0 ff c6 	lis     r7,-58                                 
ffc2a460:	39 4a 6e 38 	addi    r10,r10,28216                          
ffc2a464:	38 e7 76 a0 	addi    r7,r7,30368                            
  /*                                                                  
   * Dope the pattern and fill areas                                  
   */                                                                 
  p = Stack_check_Pattern.pattern;                                    
  for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {                        
      p[i] = pattern[ i%4 ];                                          
ffc2a468:	55 28 17 3a 	rlwinm  r8,r9,2,28,29                          
ffc2a46c:	7d 07 40 2e 	lwzx    r8,r7,r8                               
                                                                      
  /*                                                                  
   * Dope the pattern and fill areas                                  
   */                                                                 
  p = Stack_check_Pattern.pattern;                                    
  for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {                        
ffc2a470:	39 29 00 01 	addi    r9,r9,1                                
      p[i] = pattern[ i%4 ];                                          
ffc2a474:	95 0a 00 04 	stwu    r8,4(r10)                              
                                                                      
  /*                                                                  
   * Dope the pattern and fill areas                                  
   */                                                                 
  p = Stack_check_Pattern.pattern;                                    
  for ( i = 0; i < PATTERN_SIZE_WORDS; i++ ) {                        
ffc2a478:	42 00 ff f0 	bdnz+   ffc2a468 <rtems_stack_checker_create_extension+0x2c>
                                  (char *) _CPU_Interrupt_stack_low;  
      Stack_check_Dope_stack(&Stack_check_Interrupt_stack);           
   }                                                                  
  #endif                                                              
                                                                      
  Stack_check_Initialized = 1;                                        
ffc2a47c:	39 20 00 01 	li      r9,1                                   
ffc2a480:	91 26 00 08 	stw     r9,8(r6)                               
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
  Stack_check_Initialize();                                           
                                                                      
  if (the_thread)                                                     
ffc2a484:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc2a488:	41 9e 00 34 	beq-    cr7,ffc2a4bc <rtems_stack_checker_create_extension+0x80><== NEVER TAKEN
 */                                                                   
bool rtems_stack_checker_create_extension(                            
  Thread_Control *running __attribute__((unused)),                    
  Thread_Control *the_thread                                          
)                                                                     
{                                                                     
ffc2a48c:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc2a490:	7c 08 02 a6 	mflr    r0                                     
ffc2a494:	90 01 00 0c 	stw     r0,12(r1)                              
  Stack_check_Initialize();                                           
                                                                      
  if (the_thread)                                                     
    Stack_check_Dope_stack(&the_thread->Start.Initial_stack);         
ffc2a498:	80 64 00 b8 	lwz     r3,184(r4)                             
ffc2a49c:	80 a4 00 b4 	lwz     r5,180(r4)                             
ffc2a4a0:	38 80 00 a5 	li      r4,165                                 
ffc2a4a4:	48 01 d5 65 	bl      ffc47a08 <memset>                      
                                                                      
  return true;                                                        
}                                                                     
ffc2a4a8:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc2a4ac:	38 60 00 01 	li      r3,1                                   
ffc2a4b0:	7c 08 03 a6 	mtlr    r0                                     
ffc2a4b4:	38 21 00 08 	addi    r1,r1,8                                
ffc2a4b8:	4e 80 00 20 	blr                                            
ffc2a4bc:	38 60 00 01 	li      r3,1                                   <== NOT EXECUTED
ffc2a4c0:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc2a67c <rtems_stack_checker_is_blown>: /* * Check if blown */ bool rtems_stack_checker_is_blown( void ) {
ffc2a67c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc2a680:	7c 08 02 a6 	mflr    r0                                     
ffc2a684:	93 c1 00 10 	stw     r30,16(r1)                             
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
ffc2a688:	3f c0 00 00 	lis     r30,0                                  
ffc2a68c:	3b de 69 20 	addi    r30,r30,26912                          
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
{                                                                     
ffc2a690:	90 01 00 1c 	stw     r0,28(r1)                              
  Stack_Control *the_stack = &_Thread_Executing->Start.Initial_stack; 
ffc2a694:	81 5e 00 10 	lwz     r10,16(r30)                            
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
{                                                                     
ffc2a698:	93 e1 00 14 	stw     r31,20(r1)                             
ffc2a69c:	7c 3f 0b 78 	mr      r31,r1                                 
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
ffc2a6a0:	80 6a 00 b8 	lwz     r3,184(r10)                            
                                                                      
/*                                                                    
 *  Check if blown                                                    
 */                                                                   
bool rtems_stack_checker_is_blown( void )                             
{                                                                     
ffc2a6a4:	93 a1 00 0c 	stw     r29,12(r1)                             
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
ffc2a6a8:	7f 9f 18 40 	cmplw   cr7,r31,r3                             
ffc2a6ac:	40 9c 00 38 	bge-    cr7,ffc2a6e4 <rtems_stack_checker_is_blown+0x68><== ALWAYS TAKEN
                                                                      
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
ffc2a6b0:	3d 40 00 00 	lis     r10,0                                  <== NOT EXECUTED
ffc2a6b4:	81 4a 5d 50 	lwz     r10,23888(r10)                         <== 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;                                   
ffc2a6b8:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
                                                                      
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
ffc2a6bc:	2f 8a 00 00 	cmpwi   cr7,r10,0                              <== NOT EXECUTED
ffc2a6c0:	41 9e 00 54 	beq-    cr7,ffc2a714 <rtems_stack_checker_is_blown+0x98><== NOT EXECUTED
    pattern_ok = (!memcmp(                                            
ffc2a6c4:	3c 80 00 00 	lis     r4,0                                   <== NOT EXECUTED
ffc2a6c8:	38 84 6e 3c 	addi    r4,r4,28220                            <== NOT EXECUTED
ffc2a6cc:	38 63 00 08 	addi    r3,r3,8                                <== NOT EXECUTED
ffc2a6d0:	38 a0 00 80 	li      r5,128                                 <== NOT EXECUTED
ffc2a6d4:	48 01 d0 81 	bl      ffc47754 <memcmp>                      <== NOT EXECUTED
ffc2a6d8:	7c 64 00 34 	cntlzw  r4,r3                                  <== NOT EXECUTED
ffc2a6dc:	54 84 d9 7e 	rlwinm  r4,r4,27,5,31                          <== NOT EXECUTED
ffc2a6e0:	48 00 00 34 	b       ffc2a714 <rtems_stack_checker_is_blown+0x98><== NOT EXECUTED
                                                                      
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
ffc2a6e4:	3d 00 00 00 	lis     r8,0                                   
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
ffc2a6e8:	83 aa 00 b4 	lwz     r29,180(r10)                           
                                                                      
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
ffc2a6ec:	81 08 5d 50 	lwz     r8,23888(r8)                           
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
ffc2a6f0:	7f a3 ea 14 	add     r29,r3,r29                             
                                                                      
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
ffc2a6f4:	2f 88 00 00 	cmpwi   cr7,r8,0                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
ffc2a6f8:	7f bf e8 10 	subfc   r29,r31,r29                            
ffc2a6fc:	3b a0 00 00 	li      r29,0                                  
ffc2a700:	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 ) {                                    
ffc2a704:	40 9e 00 18 	bne-    cr7,ffc2a71c <rtems_stack_checker_is_blown+0xa0><== ALWAYS TAKEN
                                                                      
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  if ( !sp_ok || !pattern_ok ) {                                      
ffc2a708:	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;                                   
ffc2a70c:	38 80 00 01 	li      r4,1                                   <== NOT EXECUTED
                                                                      
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  if ( !sp_ok || !pattern_ok ) {                                      
ffc2a710:	40 be 00 38 	bne+    cr7,ffc2a748 <rtems_stack_checker_is_blown+0xcc><== NOT EXECUTED
    Stack_check_report_blown_task( _Thread_Executing, pattern_ok );   
ffc2a714:	80 7e 00 10 	lwz     r3,16(r30)                             <== NOT EXECUTED
ffc2a718:	4b ff fd ed 	bl      ffc2a504 <Stack_check_report_blown_task><== NOT EXECUTED
  /*                                                                  
   * The stack checker must be initialized before the pattern is there
   * to check.                                                        
   */                                                                 
  if ( Stack_check_Initialized ) {                                    
    pattern_ok = (!memcmp(                                            
ffc2a71c:	3c 80 00 00 	lis     r4,0                                   
ffc2a720:	38 84 6e 3c 	addi    r4,r4,28220                            
ffc2a724:	38 63 00 08 	addi    r3,r3,8                                
ffc2a728:	38 a0 00 80 	li      r5,128                                 
ffc2a72c:	48 01 d0 29 	bl      ffc47754 <memcmp>                      
                                                                      
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  if ( !sp_ok || !pattern_ok ) {                                      
ffc2a730:	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(                                            
ffc2a734:	7c 64 00 34 	cntlzw  r4,r3                                  
ffc2a738:	54 84 d9 7e 	rlwinm  r4,r4,27,5,31                          
                                                                      
                                                                      
  /*                                                                  
   * Let's report as much as we can.                                  
   */                                                                 
  if ( !sp_ok || !pattern_ok ) {                                      
ffc2a73c:	41 be ff d8 	beq-    cr7,ffc2a714 <rtems_stack_checker_is_blown+0x98><== NEVER TAKEN
ffc2a740:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc2a744:	41 be ff d0 	beq-    cr7,ffc2a714 <rtems_stack_checker_is_blown+0x98><== NEVER TAKEN
                                                                      
  /*                                                                  
   * The Stack Pointer and the Pattern Area are OK so return false.   
   */                                                                 
  return false;                                                       
}                                                                     
ffc2a748:	39 7f 00 18 	addi    r11,r31,24                             
ffc2a74c:	80 0b 00 04 	lwz     r0,4(r11)                              
ffc2a750:	38 60 00 00 	li      r3,0                                   
ffc2a754:	83 ab ff f4 	lwz     r29,-12(r11)                           
ffc2a758:	7c 08 03 a6 	mtlr    r0                                     
ffc2a75c:	83 cb ff f8 	lwz     r30,-8(r11)                            
ffc2a760:	83 eb ff fc 	lwz     r31,-4(r11)                            
ffc2a764:	7d 61 5b 78 	mr      r1,r11                                 
ffc2a768:	4e 80 00 20 	blr                                            
                                                                      

ffc2a76c <rtems_stack_checker_report_usage_with_plugin>: void rtems_stack_checker_report_usage_with_plugin( void *context, rtems_printk_plugin_t print ) {
ffc2a76c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc2a770:	7c 08 02 a6 	mflr    r0                                     
ffc2a774:	93 e1 00 14 	stw     r31,20(r1)                             
  if ( !print )                                                       
ffc2a778:	7c 9f 23 79 	mr.     r31,r4                                 
                                                                      
void rtems_stack_checker_report_usage_with_plugin(                    
  void                  *context,                                     
  rtems_printk_plugin_t  print                                        
)                                                                     
{                                                                     
ffc2a77c:	90 01 00 1c 	stw     r0,28(r1)                              
ffc2a780:	93 81 00 08 	stw     r28,8(r1)                              
ffc2a784:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc2a788:	93 c1 00 10 	stw     r30,16(r1)                             
  if ( !print )                                                       
ffc2a78c:	41 82 00 5c 	beq-    ffc2a7e8 <rtems_stack_checker_report_usage_with_plugin+0x7c><== NEVER TAKEN
    return;                                                           
                                                                      
  print_context = context;                                            
ffc2a790:	3f c0 00 00 	lis     r30,0                                  
  print_handler = print;                                              
                                                                      
  (*print)( context, "Stack usage by thread\n");                      
ffc2a794:	7f e9 03 a6 	mtctr   r31                                    
)                                                                     
{                                                                     
  if ( !print )                                                       
    return;                                                           
                                                                      
  print_context = context;                                            
ffc2a798:	3b 9e 5d 48 	addi    r28,r30,23880                          
  print_handler = print;                                              
ffc2a79c:	93 fe 5d 48 	stw     r31,23880(r30)                         
                                                                      
  (*print)( context, "Stack usage by thread\n");                      
ffc2a7a0:	3c 80 ff c6 	lis     r4,-58                                 
ffc2a7a4:	38 84 77 c8 	addi    r4,r4,30664                            
)                                                                     
{                                                                     
  if ( !print )                                                       
    return;                                                           
                                                                      
  print_context = context;                                            
ffc2a7a8:	90 7c 00 04 	stw     r3,4(r28)                              
ffc2a7ac:	7c 7d 1b 78 	mr      r29,r3                                 
  print_handler = print;                                              
                                                                      
  (*print)( context, "Stack usage by thread\n");                      
ffc2a7b0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2a7b4:	4e 80 04 21 	bctrl                                          
  (*print)( context,                                                  
ffc2a7b8:	3c 80 ff c6 	lis     r4,-58                                 
ffc2a7bc:	38 84 77 e0 	addi    r4,r4,30688                            
ffc2a7c0:	7f e9 03 a6 	mtctr   r31                                    
ffc2a7c4:	7f a3 eb 78 	mr      r3,r29                                 
ffc2a7c8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc2a7cc:	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 );   
ffc2a7d0:	3c 60 ff c3 	lis     r3,-61                                 
ffc2a7d4:	38 63 a2 7c 	addi    r3,r3,-23940                           
ffc2a7d8:	48 00 5b 89 	bl      ffc30360 <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;                                               
ffc2a7dc:	39 20 00 00 	li      r9,0                                   
ffc2a7e0:	91 3c 00 04 	stw     r9,4(r28)                              
  print_handler = NULL;                                               
ffc2a7e4:	91 3e 5d 48 	stw     r9,23880(r30)                          
}                                                                     
ffc2a7e8:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc2a7ec:	83 81 00 08 	lwz     r28,8(r1)                              
ffc2a7f0:	7c 08 03 a6 	mtlr    r0                                     
ffc2a7f4:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc2a7f8:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc2a7fc:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc2a800:	38 21 00 18 	addi    r1,r1,24                               
ffc2a804:	4e 80 00 20 	blr                                            
                                                                      

ffc2a5e8 <rtems_stack_checker_switch_extension>: */ void rtems_stack_checker_switch_extension( Thread_Control *running __attribute__((unused)), Thread_Control *heir __attribute__((unused)) ) {
ffc2a5e8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc2a5ec:	7c 08 02 a6 	mflr    r0                                     
ffc2a5f0:	90 01 00 14 	stw     r0,20(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);                  
ffc2a5f4:	81 23 00 b8 	lwz     r9,184(r3)                             
 */                                                                   
void rtems_stack_checker_switch_extension(                            
  Thread_Control *running __attribute__((unused)),                    
  Thread_Control *heir __attribute__((unused))                        
)                                                                     
{                                                                     
ffc2a5f8:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc2a5fc:	7c 3f 0b 78 	mr      r31,r1                                 
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
ffc2a600:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
 */                                                                   
void rtems_stack_checker_switch_extension(                            
  Thread_Control *running __attribute__((unused)),                    
  Thread_Control *heir __attribute__((unused))                        
)                                                                     
{                                                                     
ffc2a604:	93 c1 00 08 	stw     r30,8(r1)                              
ffc2a608:	7c 7e 1b 78 	mr      r30,r3                                 
  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);                  
ffc2a60c:	38 69 00 08 	addi    r3,r9,8                                
)                                                                     
{                                                                     
  #if defined(__GNUC__)                                               
    void *sp = __builtin_frame_address(0);                            
                                                                      
    if ( sp < the_stack->area ) {                                     
ffc2a610:	41 9c 00 14 	blt-    cr7,ffc2a624 <rtems_stack_checker_switch_extension+0x3c><== NEVER TAKEN
      return false;                                                   
    }                                                                 
    if ( sp > (the_stack->area + the_stack->size) ) {                 
ffc2a614:	81 5e 00 b4 	lwz     r10,180(r30)                           
ffc2a618:	7d 29 52 14 	add     r9,r9,r10                              
ffc2a61c:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
ffc2a620:	40 9d 00 24 	ble-    cr7,ffc2a644 <rtems_stack_checker_switch_extension+0x5c><== ALWAYS TAKEN
  /*                                                                  
   *  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,                                     
ffc2a624:	3c 80 00 00 	lis     r4,0                                   <== NOT EXECUTED
ffc2a628:	38 84 6e 3c 	addi    r4,r4,28220                            <== NOT EXECUTED
ffc2a62c:	38 a0 00 80 	li      r5,128                                 <== NOT EXECUTED
ffc2a630:	48 01 d1 25 	bl      ffc47754 <memcmp>                      <== NOT EXECUTED
ffc2a634:	7c 64 00 34 	cntlzw  r4,r3                                  <== NOT EXECUTED
ffc2a638:	54 84 d9 7e 	rlwinm  r4,r4,27,5,31                          <== NOT EXECUTED
            (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
                                                                      
  if ( !sp_ok || !pattern_ok ) {                                      
    Stack_check_report_blown_task( running, pattern_ok );             
ffc2a63c:	7f c3 f3 78 	mr      r3,r30                                 
ffc2a640:	4b ff fe c5 	bl      ffc2a504 <Stack_check_report_blown_task>
  /*                                                                  
   *  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,                                     
ffc2a644:	3c 80 00 00 	lis     r4,0                                   
ffc2a648:	38 84 6e 3c 	addi    r4,r4,28220                            
ffc2a64c:	38 a0 00 80 	li      r5,128                                 
ffc2a650:	48 01 d1 05 	bl      ffc47754 <memcmp>                      
            (void *) Stack_check_Pattern.pattern, PATTERN_SIZE_BYTES));
                                                                      
  if ( !sp_ok || !pattern_ok ) {                                      
ffc2a654:	38 80 00 00 	li      r4,0                                   
ffc2a658:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2a65c:	40 be ff e0 	bne-    cr7,ffc2a63c <rtems_stack_checker_switch_extension+0x54>
    Stack_check_report_blown_task( running, pattern_ok );             
  }                                                                   
}                                                                     
ffc2a660:	39 7f 00 10 	addi    r11,r31,16                             
ffc2a664:	80 0b 00 04 	lwz     r0,4(r11)                              
ffc2a668:	83 cb ff f8 	lwz     r30,-8(r11)                            
ffc2a66c:	7c 08 03 a6 	mtlr    r0                                     
ffc2a670:	83 eb ff fc 	lwz     r31,-4(r11)                            
ffc2a674:	7d 61 5b 78 	mr      r1,r11                                 
ffc2a678:	4e 80 00 20 	blr                                            
                                                                      

ffc103e4 <rtems_string_to_double>: rtems_status_code rtems_string_to_double ( const char *s, double *n, char **endptr ) {
ffc103e4:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc103e8:	7c 08 02 a6 	mflr    r0                                     
ffc103ec:	93 a1 00 1c 	stw     r29,28(r1)                             
  double result;                                                      
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc103f0:	7c 9d 23 79 	mr.     r29,r4                                 
rtems_status_code rtems_string_to_double (                            
  const char *s,                                                      
  double *n,                                                          
  char **endptr                                                       
)                                                                     
{                                                                     
ffc103f4:	90 01 00 34 	stw     r0,52(r1)                              
ffc103f8:	db e1 00 28 	stfd    f31,40(r1)                             
ffc103fc:	93 81 00 18 	stw     r28,24(r1)                             
ffc10400:	93 c1 00 20 	stw     r30,32(r1)                             
ffc10404:	93 e1 00 24 	stw     r31,36(r1)                             
  double result;                                                      
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc10408:	41 82 00 8c 	beq-    ffc10494 <rtems_string_to_double+0xb0> 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc1040c:	3f 80 ff c2 	lis     r28,-62                                
ffc10410:	7c be 2b 78 	mr      r30,r5                                 
ffc10414:	7c 7f 1b 78 	mr      r31,r3                                 
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc10418:	48 00 3a 0d 	bl      ffc13e24 <__errno>                     
  *n = 0;                                                             
ffc1041c:	c8 1c 1c c0 	lfd     f0,7360(r28)                           
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc10420:	39 20 00 00 	li      r9,0                                   
ffc10424:	91 23 00 00 	stw     r9,0(r3)                               
  *n = 0;                                                             
                                                                      
  result = strtod( s, &end );                                         
ffc10428:	38 81 00 08 	addi    r4,r1,8                                
ffc1042c:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc10430:	d8 1d 00 00 	stfd    f0,0(r29)                              
                                                                      
  result = strtod( s, &end );                                         
ffc10434:	48 00 65 55 	bl      ffc16988 <strtod>                      
                                                                      
  if ( endptr )                                                       
ffc10438:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtod( s, &end );                                         
ffc1043c:	ff e0 08 90 	fmr     f31,f1                                 
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
ffc10440:	81 21 00 08 	lwz     r9,8(r1)                               
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtod( s, &end );                                         
                                                                      
  if ( endptr )                                                       
ffc10444:	41 9e 00 08 	beq-    cr7,ffc1044c <rtems_string_to_double+0x68>
    *endptr = end;                                                    
ffc10448:	91 3e 00 00 	stw     r9,0(r30)                              
                                                                      
  if ( end == s )                                                     
ffc1044c:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
    return RTEMS_NOT_DEFINED;                                         
ffc10450:	38 60 00 0b 	li      r3,11                                  
  result = strtod( s, &end );                                         
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
ffc10454:	41 9e 00 1c 	beq-    cr7,ffc10470 <rtems_string_to_double+0x8c>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc10458:	48 00 39 cd 	bl      ffc13e24 <__errno>                     
ffc1045c:	81 23 00 00 	lwz     r9,0(r3)                               
ffc10460:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc10464:	41 9e 00 58 	beq-    cr7,ffc104bc <rtems_string_to_double+0xd8>
    (( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
ffc10468:	db fd 00 00 	stfd    f31,0(r29)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc1046c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc10470:	80 01 00 34 	lwz     r0,52(r1)                              
ffc10474:	83 81 00 18 	lwz     r28,24(r1)                             
ffc10478:	7c 08 03 a6 	mtlr    r0                                     
ffc1047c:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc10480:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc10484:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc10488:	cb e1 00 28 	lfd     f31,40(r1)                             
ffc1048c:	38 21 00 30 	addi    r1,r1,48                               
ffc10490:	4e 80 00 20 	blr                                            
ffc10494:	80 01 00 34 	lwz     r0,52(r1)                              
{                                                                     
  double result;                                                      
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc10498:	38 60 00 09 	li      r3,9                                   
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc1049c:	83 81 00 18 	lwz     r28,24(r1)                             
ffc104a0:	7c 08 03 a6 	mtlr    r0                                     
ffc104a4:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc104a8:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc104ac:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc104b0:	cb e1 00 28 	lfd     f31,40(r1)                             
ffc104b4:	38 21 00 30 	addi    r1,r1,48                               
ffc104b8:	4e 80 00 20 	blr                                            
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc104bc:	c8 1c 1c c0 	lfd     f0,7360(r28)                           
    (( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
      return RTEMS_INVALID_NUMBER;                                    
ffc104c0:	38 60 00 0a 	li      r3,10                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc104c4:	ff 9f 00 00 	fcmpu   cr7,f31,f0                             
ffc104c8:	41 9e ff a8 	beq+    cr7,ffc10470 <rtems_string_to_double+0x8c><== NEVER TAKEN
    (( result == 0 ) || ( result == HUGE_VAL ) || ( result == -HUGE_VAL )))
ffc104cc:	3d 20 ff c2 	lis     r9,-62                                 
ffc104d0:	c8 09 44 28 	lfd     f0,17448(r9)                           
ffc104d4:	ff 9f 00 00 	fcmpu   cr7,f31,f0                             
ffc104d8:	41 9d ff 98 	bgt+    cr7,ffc10470 <rtems_string_to_double+0x8c>
ffc104dc:	3d 20 ff c2 	lis     r9,-62                                 
ffc104e0:	c8 09 44 30 	lfd     f0,17456(r9)                           
ffc104e4:	ff 9f 00 00 	fcmpu   cr7,f31,f0                             
ffc104e8:	41 9c ff 88 	blt+    cr7,ffc10470 <rtems_string_to_double+0x8c><== ALWAYS TAKEN
ffc104ec:	4b ff ff 7c 	b       ffc10468 <rtems_string_to_double+0x84> <== NOT EXECUTED
                                                                      

ffc104f0 <rtems_string_to_float>: rtems_status_code rtems_string_to_float ( const char *s, float *n, char **endptr ) {
ffc104f0:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc104f4:	7c 08 02 a6 	mflr    r0                                     
ffc104f8:	93 a1 00 1c 	stw     r29,28(r1)                             
  float result;                                                       
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc104fc:	7c 9d 23 79 	mr.     r29,r4                                 
rtems_status_code rtems_string_to_float (                             
  const char *s,                                                      
  float *n,                                                           
  char **endptr                                                       
)                                                                     
{                                                                     
ffc10500:	90 01 00 34 	stw     r0,52(r1)                              
ffc10504:	db e1 00 28 	stfd    f31,40(r1)                             
ffc10508:	93 c1 00 20 	stw     r30,32(r1)                             
ffc1050c:	93 e1 00 24 	stw     r31,36(r1)                             
  float result;                                                       
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc10510:	41 82 00 84 	beq-    ffc10594 <rtems_string_to_float+0xa4>  
ffc10514:	7c be 2b 78 	mr      r30,r5                                 
ffc10518:	7c 7f 1b 78 	mr      r31,r3                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc1051c:	48 00 39 09 	bl      ffc13e24 <__errno>                     
ffc10520:	39 20 00 00 	li      r9,0                                   
ffc10524:	91 23 00 00 	stw     r9,0(r3)                               
  *n = 0;                                                             
ffc10528:	39 20 00 00 	li      r9,0                                   
                                                                      
  result = strtof( s, &end );                                         
ffc1052c:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc10530:	91 3d 00 00 	stw     r9,0(r29)                              
                                                                      
  result = strtof( s, &end );                                         
ffc10534:	38 81 00 08 	addi    r4,r1,8                                
ffc10538:	48 00 64 69 	bl      ffc169a0 <strtof>                      
                                                                      
  if ( endptr )                                                       
ffc1053c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtof( s, &end );                                         
ffc10540:	ff e0 08 90 	fmr     f31,f1                                 
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
ffc10544:	81 21 00 08 	lwz     r9,8(r1)                               
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtof( s, &end );                                         
                                                                      
  if ( endptr )                                                       
ffc10548:	41 9e 00 08 	beq-    cr7,ffc10550 <rtems_string_to_float+0x60>
    *endptr = end;                                                    
ffc1054c:	91 3e 00 00 	stw     r9,0(r30)                              
                                                                      
  if ( end == s )                                                     
ffc10550:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
    return RTEMS_NOT_DEFINED;                                         
ffc10554:	38 60 00 0b 	li      r3,11                                  
  result = strtof( s, &end );                                         
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
ffc10558:	41 9e 00 1c 	beq-    cr7,ffc10574 <rtems_string_to_float+0x84>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc1055c:	48 00 38 c9 	bl      ffc13e24 <__errno>                     
ffc10560:	81 23 00 00 	lwz     r9,0(r3)                               
ffc10564:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc10568:	41 9e 00 50 	beq-    cr7,ffc105b8 <rtems_string_to_float+0xc8>
    (( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
ffc1056c:	d3 fd 00 00 	stfs    f31,0(r29)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc10570:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc10574:	80 01 00 34 	lwz     r0,52(r1)                              
ffc10578:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc1057c:	7c 08 03 a6 	mtlr    r0                                     
ffc10580:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc10584:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc10588:	cb e1 00 28 	lfd     f31,40(r1)                             
ffc1058c:	38 21 00 30 	addi    r1,r1,48                               
ffc10590:	4e 80 00 20 	blr                                            
ffc10594:	80 01 00 34 	lwz     r0,52(r1)                              
{                                                                     
  float result;                                                       
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc10598:	38 60 00 09 	li      r3,9                                   
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc1059c:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc105a0:	7c 08 03 a6 	mtlr    r0                                     
ffc105a4:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc105a8:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc105ac:	cb e1 00 28 	lfd     f31,40(r1)                             
ffc105b0:	38 21 00 30 	addi    r1,r1,48                               
ffc105b4:	4e 80 00 20 	blr                                            
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc105b8:	3d 20 ff c2 	lis     r9,-62                                 
ffc105bc:	c0 09 1c b0 	lfs     f0,7344(r9)                            
    (( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
      return RTEMS_INVALID_NUMBER;                                    
ffc105c0:	38 60 00 0a 	li      r3,10                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc105c4:	ff 9f 00 00 	fcmpu   cr7,f31,f0                             
ffc105c8:	41 9e ff ac 	beq+    cr7,ffc10574 <rtems_string_to_float+0x84><== NEVER TAKEN
    (( result == 0 ) || ( result == HUGE_VALF ) || ( result == -HUGE_VALF )))
ffc105cc:	3d 20 ff c2 	lis     r9,-62                                 
ffc105d0:	c0 09 44 38 	lfs     f0,17464(r9)                           
ffc105d4:	ff 9f 00 00 	fcmpu   cr7,f31,f0                             
ffc105d8:	41 9d ff 9c 	bgt+    cr7,ffc10574 <rtems_string_to_float+0x84>
ffc105dc:	3d 20 ff c2 	lis     r9,-62                                 
ffc105e0:	c0 09 44 3c 	lfs     f0,17468(r9)                           
ffc105e4:	ff 9f 00 00 	fcmpu   cr7,f31,f0                             
ffc105e8:	41 9c ff 8c 	blt+    cr7,ffc10574 <rtems_string_to_float+0x84><== ALWAYS TAKEN
ffc105ec:	4b ff ff 80 	b       ffc1056c <rtems_string_to_float+0x7c>  <== NOT EXECUTED
                                                                      

ffc239a4 <rtems_string_to_int>: const char *s, int *n, char **endptr, int base ) {
ffc239a4:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc239a8:	7c 08 02 a6 	mflr    r0                                     
ffc239ac:	93 a1 00 1c 	stw     r29,28(r1)                             
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc239b0:	7c 9d 23 79 	mr.     r29,r4                                 
  const char *s,                                                      
  int *n,                                                             
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
ffc239b4:	90 01 00 2c 	stw     r0,44(r1)                              
ffc239b8:	93 81 00 18 	stw     r28,24(r1)                             
ffc239bc:	93 c1 00 20 	stw     r30,32(r1)                             
ffc239c0:	93 e1 00 24 	stw     r31,36(r1)                             
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc239c4:	41 82 00 88 	beq-    ffc23a4c <rtems_string_to_int+0xa8>    
ffc239c8:	7c dc 33 78 	mr      r28,r6                                 
ffc239cc:	7c be 2b 78 	mr      r30,r5                                 
ffc239d0:	7c 7f 1b 78 	mr      r31,r3                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc239d4:	48 02 00 45 	bl      ffc43a18 <__errno>                     
ffc239d8:	39 20 00 00 	li      r9,0                                   
ffc239dc:	91 23 00 00 	stw     r9,0(r3)                               
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
ffc239e0:	7f 85 e3 78 	mr      r5,r28                                 
ffc239e4:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc239e8:	91 3d 00 00 	stw     r9,0(r29)                              
                                                                      
  result = strtol( s, &end, base );                                   
ffc239ec:	38 81 00 08 	addi    r4,r1,8                                
ffc239f0:	48 02 92 a1 	bl      ffc4cc90 <strtol>                      
                                                                      
  if ( endptr )                                                       
ffc239f4:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
ffc239f8:	7c 7c 1b 78 	mr      r28,r3                                 
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
ffc239fc:	81 21 00 08 	lwz     r9,8(r1)                               
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
                                                                      
  if ( endptr )                                                       
ffc23a00:	41 9e 00 08 	beq-    cr7,ffc23a08 <rtems_string_to_int+0x64>
    *endptr = end;                                                    
ffc23a04:	91 3e 00 00 	stw     r9,0(r30)                              
                                                                      
  if ( end == s )                                                     
ffc23a08:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
    return RTEMS_NOT_DEFINED;                                         
ffc23a0c:	38 60 00 0b 	li      r3,11                                  
  result = strtol( s, &end, base );                                   
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
ffc23a10:	41 9e 00 1c 	beq-    cr7,ffc23a2c <rtems_string_to_int+0x88>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc23a14:	48 02 00 05 	bl      ffc43a18 <__errno>                     
ffc23a18:	81 23 00 00 	lwz     r9,0(r3)                               
ffc23a1c:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc23a20:	41 9e 00 50 	beq-    cr7,ffc23a70 <rtems_string_to_int+0xcc>
    errno = ERANGE;                                                   
    return RTEMS_INVALID_NUMBER;                                      
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
ffc23a24:	93 9d 00 00 	stw     r28,0(r29)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc23a28:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc23a2c:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc23a30:	83 81 00 18 	lwz     r28,24(r1)                             
ffc23a34:	7c 08 03 a6 	mtlr    r0                                     
ffc23a38:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc23a3c:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc23a40:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc23a44:	38 21 00 28 	addi    r1,r1,40                               
ffc23a48:	4e 80 00 20 	blr                                            
ffc23a4c:	80 01 00 2c 	lwz     r0,44(r1)                              
{                                                                     
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc23a50:	38 60 00 09 	li      r3,9                                   
#endif                                                                
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc23a54:	83 81 00 18 	lwz     r28,24(r1)                             
ffc23a58:	7c 08 03 a6 	mtlr    r0                                     
ffc23a5c:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc23a60:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc23a64:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc23a68:	38 21 00 28 	addi    r1,r1,40                               
ffc23a6c:	4e 80 00 20 	blr                                            
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc23a70:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
ffc23a74:	38 60 00 0a 	li      r3,10                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc23a78:	41 9e ff b4 	beq+    cr7,ffc23a2c <rtems_string_to_int+0x88><== NEVER TAKEN
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
ffc23a7c:	6f 89 80 00 	xoris   r9,r28,32768                           
ffc23a80:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc23a84:	41 9e ff a8 	beq+    cr7,ffc23a2c <rtems_string_to_int+0x88>
ffc23a88:	3d 20 80 00 	lis     r9,-32768                              
ffc23a8c:	7f 9c 48 00 	cmpw    cr7,r28,r9                             
ffc23a90:	40 9e ff 94 	bne+    cr7,ffc23a24 <rtems_string_to_int+0x80><== NEVER TAKEN
ffc23a94:	4b ff ff 98 	b       ffc23a2c <rtems_string_to_int+0x88>    
                                                                      

ffc10810 <rtems_string_to_long>: const char *s, long *n, char **endptr, int base ) {
ffc10810:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc10814:	7c 08 02 a6 	mflr    r0                                     
ffc10818:	93 a1 00 1c 	stw     r29,28(r1)                             
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc1081c:	7c 9d 23 79 	mr.     r29,r4                                 
  const char *s,                                                      
  long *n,                                                            
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
ffc10820:	90 01 00 2c 	stw     r0,44(r1)                              
ffc10824:	93 81 00 18 	stw     r28,24(r1)                             
ffc10828:	93 c1 00 20 	stw     r30,32(r1)                             
ffc1082c:	93 e1 00 24 	stw     r31,36(r1)                             
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc10830:	41 82 00 88 	beq-    ffc108b8 <rtems_string_to_long+0xa8>   
ffc10834:	7c dc 33 78 	mr      r28,r6                                 
ffc10838:	7c be 2b 78 	mr      r30,r5                                 
ffc1083c:	7c 7f 1b 78 	mr      r31,r3                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc10840:	48 00 35 e5 	bl      ffc13e24 <__errno>                     
ffc10844:	39 20 00 00 	li      r9,0                                   
ffc10848:	91 23 00 00 	stw     r9,0(r3)                               
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
ffc1084c:	7f 85 e3 78 	mr      r5,r28                                 
ffc10850:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc10854:	91 3d 00 00 	stw     r9,0(r29)                              
                                                                      
  result = strtol( s, &end, base );                                   
ffc10858:	38 81 00 08 	addi    r4,r1,8                                
ffc1085c:	48 00 63 ed 	bl      ffc16c48 <strtol>                      
                                                                      
  if ( endptr )                                                       
ffc10860:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
ffc10864:	7c 7c 1b 78 	mr      r28,r3                                 
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
ffc10868:	81 21 00 08 	lwz     r9,8(r1)                               
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtol( s, &end, base );                                   
                                                                      
  if ( endptr )                                                       
ffc1086c:	41 9e 00 08 	beq-    cr7,ffc10874 <rtems_string_to_long+0x64>
    *endptr = end;                                                    
ffc10870:	91 3e 00 00 	stw     r9,0(r30)                              
                                                                      
  if ( end == s )                                                     
ffc10874:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
    return RTEMS_NOT_DEFINED;                                         
ffc10878:	38 60 00 0b 	li      r3,11                                  
  result = strtol( s, &end, base );                                   
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
ffc1087c:	41 9e 00 1c 	beq-    cr7,ffc10898 <rtems_string_to_long+0x88>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc10880:	48 00 35 a5 	bl      ffc13e24 <__errno>                     
ffc10884:	81 23 00 00 	lwz     r9,0(r3)                               
ffc10888:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc1088c:	41 9e 00 50 	beq-    cr7,ffc108dc <rtems_string_to_long+0xcc>
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
ffc10890:	93 9d 00 00 	stw     r28,0(r29)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc10894:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc10898:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc1089c:	83 81 00 18 	lwz     r28,24(r1)                             
ffc108a0:	7c 08 03 a6 	mtlr    r0                                     
ffc108a4:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc108a8:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc108ac:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc108b0:	38 21 00 28 	addi    r1,r1,40                               
ffc108b4:	4e 80 00 20 	blr                                            
ffc108b8:	80 01 00 2c 	lwz     r0,44(r1)                              
{                                                                     
  long result;                                                        
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc108bc:	38 60 00 09 	li      r3,9                                   
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc108c0:	83 81 00 18 	lwz     r28,24(r1)                             
ffc108c4:	7c 08 03 a6 	mtlr    r0                                     
ffc108c8:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc108cc:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc108d0:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc108d4:	38 21 00 28 	addi    r1,r1,40                               
ffc108d8:	4e 80 00 20 	blr                                            
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc108dc:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
ffc108e0:	38 60 00 0a 	li      r3,10                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc108e4:	41 9e ff b4 	beq+    cr7,ffc10898 <rtems_string_to_long+0x88><== NEVER TAKEN
    (( result == 0 ) || ( result == LONG_MAX ) || ( result == LONG_MIN )))
ffc108e8:	6f 89 80 00 	xoris   r9,r28,32768                           
ffc108ec:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc108f0:	41 9e ff a8 	beq+    cr7,ffc10898 <rtems_string_to_long+0x88>
ffc108f4:	3d 20 80 00 	lis     r9,-32768                              
ffc108f8:	7f 9c 48 00 	cmpw    cr7,r28,r9                             
ffc108fc:	40 9e ff 94 	bne+    cr7,ffc10890 <rtems_string_to_long+0x80><== NEVER TAKEN
ffc10900:	4b ff ff 98 	b       ffc10898 <rtems_string_to_long+0x88>   
                                                                      

ffc106e4 <rtems_string_to_long_long>: const char *s, long long *n, char **endptr, int base ) {
ffc106e4:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc106e8:	7c 08 02 a6 	mflr    r0                                     
ffc106ec:	93 a1 00 24 	stw     r29,36(r1)                             
  long long result;                                                   
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc106f0:	7c 9d 23 79 	mr.     r29,r4                                 
  const char *s,                                                      
  long long *n,                                                       
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
ffc106f4:	90 01 00 34 	stw     r0,52(r1)                              
ffc106f8:	93 61 00 1c 	stw     r27,28(r1)                             
ffc106fc:	93 81 00 20 	stw     r28,32(r1)                             
ffc10700:	93 c1 00 28 	stw     r30,40(r1)                             
ffc10704:	93 e1 00 2c 	stw     r31,44(r1)                             
  long long result;                                                   
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc10708:	41 82 00 a0 	beq-    ffc107a8 <rtems_string_to_long_long+0xc4>
ffc1070c:	7c dc 33 78 	mr      r28,r6                                 
ffc10710:	7c be 2b 78 	mr      r30,r5                                 
ffc10714:	7c 7f 1b 78 	mr      r31,r3                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc10718:	48 00 37 0d 	bl      ffc13e24 <__errno>                     
ffc1071c:	39 20 00 00 	li      r9,0                                   
  *n = 0;                                                             
ffc10720:	39 40 00 00 	li      r10,0                                  
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc10724:	91 23 00 00 	stw     r9,0(r3)                               
  *n = 0;                                                             
ffc10728:	39 60 00 00 	li      r11,0                                  
ffc1072c:	91 5d 00 00 	stw     r10,0(r29)                             
                                                                      
  result = strtoll( s, &end, base );                                  
ffc10730:	7f 85 e3 78 	mr      r5,r28                                 
ffc10734:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc10738:	91 7d 00 04 	stw     r11,4(r29)                             
                                                                      
  result = strtoll( s, &end, base );                                  
ffc1073c:	38 81 00 08 	addi    r4,r1,8                                
ffc10740:	48 00 65 29 	bl      ffc16c68 <strtoll>                     
                                                                      
  if ( endptr )                                                       
ffc10744:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoll( s, &end, base );                                  
ffc10748:	7c 7c 1b 78 	mr      r28,r3                                 
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
ffc1074c:	81 21 00 08 	lwz     r9,8(r1)                               
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoll( s, &end, base );                                  
ffc10750:	7c 9b 23 78 	mr      r27,r4                                 
                                                                      
  if ( endptr )                                                       
ffc10754:	41 9e 00 08 	beq-    cr7,ffc1075c <rtems_string_to_long_long+0x78>
    *endptr = end;                                                    
ffc10758:	91 3e 00 00 	stw     r9,0(r30)                              
                                                                      
  if ( end == s )                                                     
ffc1075c:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
    return RTEMS_NOT_DEFINED;                                         
ffc10760:	38 60 00 0b 	li      r3,11                                  
  result = strtoll( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
ffc10764:	41 9e 00 20 	beq-    cr7,ffc10784 <rtems_string_to_long_long+0xa0>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc10768:	48 00 36 bd 	bl      ffc13e24 <__errno>                     
ffc1076c:	81 23 00 00 	lwz     r9,0(r3)                               
ffc10770:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc10774:	41 9e 00 5c 	beq-    cr7,ffc107d0 <rtems_string_to_long_long+0xec>
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
ffc10778:	93 9d 00 00 	stw     r28,0(r29)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc1077c:	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;                                                        
ffc10780:	93 7d 00 04 	stw     r27,4(r29)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc10784:	80 01 00 34 	lwz     r0,52(r1)                              
ffc10788:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc1078c:	7c 08 03 a6 	mtlr    r0                                     
ffc10790:	83 81 00 20 	lwz     r28,32(r1)                             
ffc10794:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc10798:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc1079c:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc107a0:	38 21 00 30 	addi    r1,r1,48                               
ffc107a4:	4e 80 00 20 	blr                                            
ffc107a8:	80 01 00 34 	lwz     r0,52(r1)                              
{                                                                     
  long long result;                                                   
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc107ac:	38 60 00 09 	li      r3,9                                   
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc107b0:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc107b4:	7c 08 03 a6 	mtlr    r0                                     
ffc107b8:	83 81 00 20 	lwz     r28,32(r1)                             
ffc107bc:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc107c0:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc107c4:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc107c8:	38 21 00 30 	addi    r1,r1,48                               
ffc107cc:	4e 80 00 20 	blr                                            
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc107d0:	7f 89 db 79 	or.     r9,r28,r27                             
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
      return RTEMS_INVALID_NUMBER;                                    
ffc107d4:	38 60 00 0a 	li      r3,10                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc107d8:	41 82 ff ac 	beq+    ffc10784 <rtems_string_to_long_long+0xa0><== NEVER TAKEN
    (( result == 0 ) || ( result == LONG_LONG_MAX ) || ( result == LONG_LONG_MIN )))
ffc107dc:	6f 89 80 00 	xoris   r9,r28,32768                           
ffc107e0:	2f 89 ff ff 	cmpwi   cr7,r9,-1                              
ffc107e4:	41 9e 00 20 	beq-    cr7,ffc10804 <rtems_string_to_long_long+0x120>
ffc107e8:	3d 20 80 00 	lis     r9,-32768                              
ffc107ec:	7f 9c 48 00 	cmpw    cr7,r28,r9                             
ffc107f0:	40 9e ff 88 	bne+    cr7,ffc10778 <rtems_string_to_long_long+0x94><== NEVER TAKEN
ffc107f4:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
      return RTEMS_INVALID_NUMBER;                                    
ffc107f8:	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 )))
ffc107fc:	40 9e ff 7c 	bne+    cr7,ffc10778 <rtems_string_to_long_long+0x94><== NEVER TAKEN
ffc10800:	4b ff ff 84 	b       ffc10784 <rtems_string_to_long_long+0xa0>
ffc10804:	2f 9b ff ff 	cmpwi   cr7,r27,-1                             
ffc10808:	40 9e ff e0 	bne+    cr7,ffc107e8 <rtems_string_to_long_long+0x104><== NEVER TAKEN
ffc1080c:	4b ff ff 78 	b       ffc10784 <rtems_string_to_long_long+0xa0>
                                                                      

ffc23aa0 <rtems_string_to_unsigned_char>: const char *s, unsigned char *n, char **endptr, int base ) {
ffc23aa0:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc23aa4:	7c 08 02 a6 	mflr    r0                                     
ffc23aa8:	93 a1 00 1c 	stw     r29,28(r1)                             
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc23aac:	7c 9d 23 79 	mr.     r29,r4                                 
  const char *s,                                                      
  unsigned char *n,                                                   
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
ffc23ab0:	90 01 00 2c 	stw     r0,44(r1)                              
ffc23ab4:	93 81 00 18 	stw     r28,24(r1)                             
ffc23ab8:	93 c1 00 20 	stw     r30,32(r1)                             
ffc23abc:	93 e1 00 24 	stw     r31,36(r1)                             
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc23ac0:	41 82 00 90 	beq-    ffc23b50 <rtems_string_to_unsigned_char+0xb0>
ffc23ac4:	7c dc 33 78 	mr      r28,r6                                 
ffc23ac8:	7c be 2b 78 	mr      r30,r5                                 
ffc23acc:	7c 7f 1b 78 	mr      r31,r3                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc23ad0:	48 01 ff 49 	bl      ffc43a18 <__errno>                     
ffc23ad4:	39 20 00 00 	li      r9,0                                   
ffc23ad8:	91 23 00 00 	stw     r9,0(r3)                               
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
ffc23adc:	7f 85 e3 78 	mr      r5,r28                                 
ffc23ae0:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc23ae4:	99 3d 00 00 	stb     r9,0(r29)                              
                                                                      
  result = strtoul( s, &end, base );                                  
ffc23ae8:	38 81 00 08 	addi    r4,r1,8                                
ffc23aec:	48 02 97 9d 	bl      ffc4d288 <strtoul>                     
                                                                      
  if ( endptr )                                                       
ffc23af0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
ffc23af4:	7c 7c 1b 78 	mr      r28,r3                                 
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
ffc23af8:	81 21 00 08 	lwz     r9,8(r1)                               
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
ffc23afc:	41 9e 00 08 	beq-    cr7,ffc23b04 <rtems_string_to_unsigned_char+0x64>
    *endptr = end;                                                    
ffc23b00:	91 3e 00 00 	stw     r9,0(r30)                              
                                                                      
  if ( end == s )                                                     
ffc23b04:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
    return RTEMS_NOT_DEFINED;                                         
ffc23b08:	38 60 00 0b 	li      r3,11                                  
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
ffc23b0c:	41 9e 00 24 	beq-    cr7,ffc23b30 <rtems_string_to_unsigned_char+0x90>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc23b10:	48 01 ff 09 	bl      ffc43a18 <__errno>                     
ffc23b14:	81 23 00 00 	lwz     r9,0(r3)                               
ffc23b18:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc23b1c:	41 9e 00 88 	beq-    cr7,ffc23ba4 <rtems_string_to_unsigned_char+0x104>
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
#if (UCHAR_MAX < ULONG_MAX)                                           
  if ( result > UCHAR_MAX ) {                                         
ffc23b20:	2b 9c 00 ff 	cmplwi  cr7,r28,255                            
ffc23b24:	41 9d 00 50 	bgt-    cr7,ffc23b74 <rtems_string_to_unsigned_char+0xd4>
    errno = ERANGE;                                                   
    return RTEMS_INVALID_NUMBER;                                      
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
ffc23b28:	9b 9d 00 00 	stb     r28,0(r29)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc23b2c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc23b30:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc23b34:	83 81 00 18 	lwz     r28,24(r1)                             
ffc23b38:	7c 08 03 a6 	mtlr    r0                                     
ffc23b3c:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc23b40:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc23b44:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc23b48:	38 21 00 28 	addi    r1,r1,40                               
ffc23b4c:	4e 80 00 20 	blr                                            
ffc23b50:	80 01 00 2c 	lwz     r0,44(r1)                              
{                                                                     
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc23b54:	38 60 00 09 	li      r3,9                                   
#endif                                                                
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc23b58:	83 81 00 18 	lwz     r28,24(r1)                             
ffc23b5c:	7c 08 03 a6 	mtlr    r0                                     
ffc23b60:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc23b64:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc23b68:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc23b6c:	38 21 00 28 	addi    r1,r1,40                               
ffc23b70:	4e 80 00 20 	blr                                            
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
#if (UCHAR_MAX < ULONG_MAX)                                           
  if ( result > UCHAR_MAX ) {                                         
    errno = ERANGE;                                                   
ffc23b74:	48 01 fe a5 	bl      ffc43a18 <__errno>                     
#endif                                                                
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc23b78:	80 01 00 2c 	lwz     r0,44(r1)                              
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
#if (UCHAR_MAX < ULONG_MAX)                                           
  if ( result > UCHAR_MAX ) {                                         
    errno = ERANGE;                                                   
ffc23b7c:	39 20 00 22 	li      r9,34                                  
#endif                                                                
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc23b80:	83 81 00 18 	lwz     r28,24(r1)                             
ffc23b84:	7c 08 03 a6 	mtlr    r0                                     
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
#if (UCHAR_MAX < ULONG_MAX)                                           
  if ( result > UCHAR_MAX ) {                                         
    errno = ERANGE;                                                   
ffc23b88:	91 23 00 00 	stw     r9,0(r3)                               
    return RTEMS_INVALID_NUMBER;                                      
ffc23b8c:	38 60 00 0a 	li      r3,10                                  
#endif                                                                
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc23b90:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc23b94:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc23b98:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc23b9c:	38 21 00 28 	addi    r1,r1,40                               
ffc23ba0:	4e 80 00 20 	blr                                            
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == ULONG_MAX )))                     
ffc23ba4:	39 5c ff ff 	addi    r10,r28,-1                             
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc23ba8:	39 20 ff fd 	li      r9,-3                                  
ffc23bac:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
ffc23bb0:	38 60 00 0a 	li      r3,10                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc23bb4:	41 9d ff 7c 	bgt+    cr7,ffc23b30 <rtems_string_to_unsigned_char+0x90><== ALWAYS TAKEN
ffc23bb8:	4b ff ff 68 	b       ffc23b20 <rtems_string_to_unsigned_char+0x80><== NOT EXECUTED
                                                                      

ffc10a28 <rtems_string_to_unsigned_int>: const char *s, unsigned int *n, char **endptr, int base ) {
ffc10a28:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc10a2c:	7c 08 02 a6 	mflr    r0                                     
ffc10a30:	93 a1 00 1c 	stw     r29,28(r1)                             
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc10a34:	7c 9d 23 79 	mr.     r29,r4                                 
  const char *s,                                                      
  unsigned int *n,                                                    
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
ffc10a38:	90 01 00 2c 	stw     r0,44(r1)                              
ffc10a3c:	93 81 00 18 	stw     r28,24(r1)                             
ffc10a40:	93 c1 00 20 	stw     r30,32(r1)                             
ffc10a44:	93 e1 00 24 	stw     r31,36(r1)                             
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc10a48:	41 82 00 88 	beq-    ffc10ad0 <rtems_string_to_unsigned_int+0xa8>
ffc10a4c:	7c dc 33 78 	mr      r28,r6                                 
ffc10a50:	7c be 2b 78 	mr      r30,r5                                 
ffc10a54:	7c 7f 1b 78 	mr      r31,r3                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc10a58:	48 00 33 cd 	bl      ffc13e24 <__errno>                     
ffc10a5c:	39 20 00 00 	li      r9,0                                   
ffc10a60:	91 23 00 00 	stw     r9,0(r3)                               
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
ffc10a64:	7f 85 e3 78 	mr      r5,r28                                 
ffc10a68:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc10a6c:	91 3d 00 00 	stw     r9,0(r29)                              
                                                                      
  result = strtoul( s, &end, base );                                  
ffc10a70:	38 81 00 08 	addi    r4,r1,8                                
ffc10a74:	48 00 67 cd 	bl      ffc17240 <strtoul>                     
                                                                      
  if ( endptr )                                                       
ffc10a78:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
ffc10a7c:	7c 7c 1b 78 	mr      r28,r3                                 
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
ffc10a80:	81 21 00 08 	lwz     r9,8(r1)                               
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
ffc10a84:	41 9e 00 08 	beq-    cr7,ffc10a8c <rtems_string_to_unsigned_int+0x64>
    *endptr = end;                                                    
ffc10a88:	91 3e 00 00 	stw     r9,0(r30)                              
                                                                      
  if ( end == s )                                                     
ffc10a8c:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
    return RTEMS_NOT_DEFINED;                                         
ffc10a90:	38 60 00 0b 	li      r3,11                                  
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
ffc10a94:	41 9e 00 1c 	beq-    cr7,ffc10ab0 <rtems_string_to_unsigned_int+0x88>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc10a98:	48 00 33 8d 	bl      ffc13e24 <__errno>                     
ffc10a9c:	81 23 00 00 	lwz     r9,0(r3)                               
ffc10aa0:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc10aa4:	41 9e 00 50 	beq-    cr7,ffc10af4 <rtems_string_to_unsigned_int+0xcc>
    errno = ERANGE;                                                   
    return RTEMS_INVALID_NUMBER;                                      
  }                                                                   
#endif                                                                
                                                                      
  *n = result;                                                        
ffc10aa8:	93 9d 00 00 	stw     r28,0(r29)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc10aac:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc10ab0:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc10ab4:	83 81 00 18 	lwz     r28,24(r1)                             
ffc10ab8:	7c 08 03 a6 	mtlr    r0                                     
ffc10abc:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc10ac0:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc10ac4:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc10ac8:	38 21 00 28 	addi    r1,r1,40                               
ffc10acc:	4e 80 00 20 	blr                                            
ffc10ad0:	80 01 00 2c 	lwz     r0,44(r1)                              
{                                                                     
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc10ad4:	38 60 00 09 	li      r3,9                                   
#endif                                                                
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc10ad8:	83 81 00 18 	lwz     r28,24(r1)                             
ffc10adc:	7c 08 03 a6 	mtlr    r0                                     
ffc10ae0:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc10ae4:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc10ae8:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc10aec:	38 21 00 28 	addi    r1,r1,40                               
ffc10af0:	4e 80 00 20 	blr                                            
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == ULONG_MAX )))                     
ffc10af4:	39 5c ff ff 	addi    r10,r28,-1                             
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc10af8:	39 20 ff fd 	li      r9,-3                                  
ffc10afc:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
ffc10b00:	38 60 00 0a 	li      r3,10                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc10b04:	41 9d ff ac 	bgt+    cr7,ffc10ab0 <rtems_string_to_unsigned_int+0x88><== ALWAYS TAKEN
ffc10b08:	4b ff ff a0 	b       ffc10aa8 <rtems_string_to_unsigned_int+0x80><== NOT EXECUTED
                                                                      

ffc0e488 <rtems_string_to_unsigned_long>: const char *s, unsigned long *n, char **endptr, int base ) {
ffc0e488:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0e48c:	7c 08 02 a6 	mflr    r0                                     
ffc0e490:	93 a1 00 1c 	stw     r29,28(r1)                             
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc0e494:	7c 9d 23 79 	mr.     r29,r4                                 
  const char *s,                                                      
  unsigned long *n,                                                   
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
ffc0e498:	90 01 00 2c 	stw     r0,44(r1)                              
ffc0e49c:	93 81 00 18 	stw     r28,24(r1)                             
ffc0e4a0:	93 c1 00 20 	stw     r30,32(r1)                             
ffc0e4a4:	93 e1 00 24 	stw     r31,36(r1)                             
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc0e4a8:	41 82 00 88 	beq-    ffc0e530 <rtems_string_to_unsigned_long+0xa8>
ffc0e4ac:	7c dc 33 78 	mr      r28,r6                                 
ffc0e4b0:	7c be 2b 78 	mr      r30,r5                                 
ffc0e4b4:	7c 7f 1b 78 	mr      r31,r3                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc0e4b8:	48 03 55 61 	bl      ffc43a18 <__errno>                     
ffc0e4bc:	39 20 00 00 	li      r9,0                                   
ffc0e4c0:	91 23 00 00 	stw     r9,0(r3)                               
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
ffc0e4c4:	7f 85 e3 78 	mr      r5,r28                                 
ffc0e4c8:	7f e3 fb 78 	mr      r3,r31                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc0e4cc:	91 3d 00 00 	stw     r9,0(r29)                              
                                                                      
  result = strtoul( s, &end, base );                                  
ffc0e4d0:	38 81 00 08 	addi    r4,r1,8                                
ffc0e4d4:	48 03 ed b5 	bl      ffc4d288 <strtoul>                     
                                                                      
  if ( endptr )                                                       
ffc0e4d8:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
ffc0e4dc:	7c 7c 1b 78 	mr      r28,r3                                 
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
ffc0e4e0:	81 21 00 08 	lwz     r9,8(r1)                               
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
ffc0e4e4:	41 9e 00 08 	beq-    cr7,ffc0e4ec <rtems_string_to_unsigned_long+0x64>
    *endptr = end;                                                    
ffc0e4e8:	91 3e 00 00 	stw     r9,0(r30)                              
                                                                      
  if ( end == s )                                                     
ffc0e4ec:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
    return RTEMS_NOT_DEFINED;                                         
ffc0e4f0:	38 60 00 0b 	li      r3,11                                  
  result = strtoul( s, &end, base );                                  
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
ffc0e4f4:	41 9e 00 1c 	beq-    cr7,ffc0e510 <rtems_string_to_unsigned_long+0x88>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0e4f8:	48 03 55 21 	bl      ffc43a18 <__errno>                     
ffc0e4fc:	81 23 00 00 	lwz     r9,0(r3)                               
ffc0e500:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc0e504:	41 9e 00 50 	beq-    cr7,ffc0e554 <rtems_string_to_unsigned_long+0xcc>
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
ffc0e508:	93 9d 00 00 	stw     r28,0(r29)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc0e50c:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc0e510:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc0e514:	83 81 00 18 	lwz     r28,24(r1)                             
ffc0e518:	7c 08 03 a6 	mtlr    r0                                     
ffc0e51c:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0e520:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0e524:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0e528:	38 21 00 28 	addi    r1,r1,40                               
ffc0e52c:	4e 80 00 20 	blr                                            
ffc0e530:	80 01 00 2c 	lwz     r0,44(r1)                              
{                                                                     
  unsigned long result;                                               
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc0e534:	38 60 00 09 	li      r3,9                                   
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc0e538:	83 81 00 18 	lwz     r28,24(r1)                             
ffc0e53c:	7c 08 03 a6 	mtlr    r0                                     
ffc0e540:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc0e544:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc0e548:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0e54c:	38 21 00 28 	addi    r1,r1,40                               
ffc0e550:	4e 80 00 20 	blr                                            
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == ULONG_MAX )))                     
ffc0e554:	39 5c ff ff 	addi    r10,r28,-1                             
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0e558:	39 20 ff fd 	li      r9,-3                                  
ffc0e55c:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
    (( result == 0 ) || ( result == ULONG_MAX )))                     
      return RTEMS_INVALID_NUMBER;                                    
ffc0e560:	38 60 00 0a 	li      r3,10                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc0e564:	41 9d ff ac 	bgt+    cr7,ffc0e510 <rtems_string_to_unsigned_long+0x88><== ALWAYS TAKEN
ffc0e568:	4b ff ff a0 	b       ffc0e508 <rtems_string_to_unsigned_long+0x80><== NOT EXECUTED
                                                                      

ffc10b0c <rtems_string_to_unsigned_long_long>: const char *s, unsigned long long *n, char **endptr, int base ) {
ffc10b0c:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc10b10:	7c 08 02 a6 	mflr    r0                                     
ffc10b14:	93 61 00 1c 	stw     r27,28(r1)                             
  unsigned long long result;                                          
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc10b18:	7c 9b 23 79 	mr.     r27,r4                                 
  const char *s,                                                      
  unsigned long long *n,                                              
  char **endptr,                                                      
  int base                                                            
)                                                                     
{                                                                     
ffc10b1c:	90 01 00 34 	stw     r0,52(r1)                              
ffc10b20:	93 81 00 20 	stw     r28,32(r1)                             
ffc10b24:	93 a1 00 24 	stw     r29,36(r1)                             
ffc10b28:	93 c1 00 28 	stw     r30,40(r1)                             
ffc10b2c:	93 e1 00 2c 	stw     r31,44(r1)                             
  unsigned long long result;                                          
  char *end;                                                          
                                                                      
  if ( !n )                                                           
ffc10b30:	41 82 00 a0 	beq-    ffc10bd0 <rtems_string_to_unsigned_long_long+0xc4>
ffc10b34:	7c df 33 78 	mr      r31,r6                                 
ffc10b38:	7c bc 2b 78 	mr      r28,r5                                 
ffc10b3c:	7c 7d 1b 78 	mr      r29,r3                                 
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc10b40:	48 00 32 e5 	bl      ffc13e24 <__errno>                     
ffc10b44:	39 20 00 00 	li      r9,0                                   
  *n = 0;                                                             
ffc10b48:	39 40 00 00 	li      r10,0                                  
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
ffc10b4c:	91 23 00 00 	stw     r9,0(r3)                               
  *n = 0;                                                             
ffc10b50:	39 60 00 00 	li      r11,0                                  
ffc10b54:	91 5b 00 00 	stw     r10,0(r27)                             
                                                                      
  result = strtoull( s, &end, base );                                 
ffc10b58:	7f e5 fb 78 	mr      r5,r31                                 
ffc10b5c:	7f a3 eb 78 	mr      r3,r29                                 
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
ffc10b60:	91 7b 00 04 	stw     r11,4(r27)                             
                                                                      
  result = strtoull( s, &end, base );                                 
ffc10b64:	38 81 00 08 	addi    r4,r1,8                                
ffc10b68:	48 00 66 f9 	bl      ffc17260 <strtoull>                    
                                                                      
  if ( endptr )                                                       
ffc10b6c:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoull( s, &end, base );                                 
ffc10b70:	7c 9f 23 78 	mr      r31,r4                                 
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
ffc10b74:	81 21 00 08 	lwz     r9,8(r1)                               
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  errno = 0;                                                          
  *n = 0;                                                             
                                                                      
  result = strtoull( s, &end, base );                                 
ffc10b78:	7c 7e 1b 78 	mr      r30,r3                                 
                                                                      
  if ( endptr )                                                       
ffc10b7c:	41 9e 00 08 	beq-    cr7,ffc10b84 <rtems_string_to_unsigned_long_long+0x78>
    *endptr = end;                                                    
ffc10b80:	91 3c 00 00 	stw     r9,0(r28)                              
                                                                      
  if ( end == s )                                                     
ffc10b84:	7f 9d 48 00 	cmpw    cr7,r29,r9                             
    return RTEMS_NOT_DEFINED;                                         
ffc10b88:	38 60 00 0b 	li      r3,11                                  
  result = strtoull( s, &end, base );                                 
                                                                      
  if ( endptr )                                                       
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
ffc10b8c:	41 9e 00 20 	beq-    cr7,ffc10bac <rtems_string_to_unsigned_long_long+0xa0>
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc10b90:	48 00 32 95 	bl      ffc13e24 <__errno>                     
ffc10b94:	81 23 00 00 	lwz     r9,0(r3)                               
ffc10b98:	2f 89 00 22 	cmpwi   cr7,r9,34                              
ffc10b9c:	41 9e 00 5c 	beq-    cr7,ffc10bf8 <rtems_string_to_unsigned_long_long+0xec>
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
ffc10ba0:	93 db 00 00 	stw     r30,0(r27)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc10ba4:	38 60 00 00 	li      r3,0                                   
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
ffc10ba8:	93 fb 00 04 	stw     r31,4(r27)                             
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc10bac:	80 01 00 34 	lwz     r0,52(r1)                              
ffc10bb0:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc10bb4:	7c 08 03 a6 	mtlr    r0                                     
ffc10bb8:	83 81 00 20 	lwz     r28,32(r1)                             
ffc10bbc:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc10bc0:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc10bc4:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc10bc8:	38 21 00 30 	addi    r1,r1,48                               
ffc10bcc:	4e 80 00 20 	blr                                            
ffc10bd0:	80 01 00 34 	lwz     r0,52(r1)                              
{                                                                     
  unsigned long long result;                                          
  char *end;                                                          
                                                                      
  if ( !n )                                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc10bd4:	38 60 00 09 	li      r3,9                                   
      return RTEMS_INVALID_NUMBER;                                    
                                                                      
  *n = result;                                                        
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc10bd8:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc10bdc:	7c 08 03 a6 	mtlr    r0                                     
ffc10be0:	83 81 00 20 	lwz     r28,32(r1)                             
ffc10be4:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc10be8:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc10bec:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc10bf0:	38 21 00 30 	addi    r1,r1,48                               
ffc10bf4:	4e 80 00 20 	blr                                            
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
ffc10bf8:	31 7f ff ff 	addic   r11,r31,-1                             
ffc10bfc:	7d 5e 01 d4 	addme   r10,r30                                
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc10c00:	2f 8a ff ff 	cmpwi   cr7,r10,-1                             
ffc10c04:	40 be ff 9c 	bne-    cr7,ffc10ba0 <rtems_string_to_unsigned_long_long+0x94><== NEVER TAKEN
ffc10c08:	39 20 ff fd 	li      r9,-3                                  
ffc10c0c:	7f 8b 48 40 	cmplw   cr7,r11,r9                             
    (( result == 0 ) || ( result == ULONG_LONG_MAX )))                
      return RTEMS_INVALID_NUMBER;                                    
ffc10c10:	38 60 00 0a 	li      r3,10                                  
    *endptr = end;                                                    
                                                                      
  if ( end == s )                                                     
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( ( errno == ERANGE ) &&                                         
ffc10c14:	41 9d ff 98 	bgt+    cr7,ffc10bac <rtems_string_to_unsigned_long_long+0xa0><== ALWAYS TAKEN
ffc10c18:	4b ff ff 88 	b       ffc10ba0 <rtems_string_to_unsigned_long_long+0x94><== NOT EXECUTED
                                                                      

ffc041b0 <rtems_tarfs_load>: int rtems_tarfs_load( const char *mountpoint, uint8_t *tar_image, size_t tar_size ) {
ffc041b0:	94 21 fd f0 	stwu    r1,-528(r1)                            
ffc041b4:	7c 08 02 a6 	mflr    r0                                     
ffc041b8:	92 61 01 dc 	stw     r19,476(r1)                            
ffc041bc:	7c 73 1b 78 	mr      r19,r3                                 
ffc041c0:	92 e1 01 ec 	stw     r23,492(r1)                            
ffc041c4:	7c b7 2b 78 	mr      r23,r5                                 
   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 =                     
ffc041c8:	38 a0 00 18 	li      r5,24                                  
int rtems_tarfs_load(                                                 
  const char *mountpoint,                                             
  uint8_t *tar_image,                                                 
  size_t tar_size                                                     
)                                                                     
{                                                                     
ffc041cc:	93 21 01 f4 	stw     r25,500(r1)                            
ffc041d0:	7c 99 23 78 	mr      r25,r4                                 
   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 =                     
ffc041d4:	7c 64 1b 78 	mr      r4,r3                                  
ffc041d8:	38 61 01 6c 	addi    r3,r1,364                              
int rtems_tarfs_load(                                                 
  const char *mountpoint,                                             
  uint8_t *tar_image,                                                 
  size_t tar_size                                                     
)                                                                     
{                                                                     
ffc041dc:	90 01 02 14 	stw     r0,532(r1)                             
ffc041e0:	92 81 01 e0 	stw     r20,480(r1)                            
ffc041e4:	91 c1 01 c8 	stw     r14,456(r1)                            
ffc041e8:	91 e1 01 cc 	stw     r15,460(r1)                            
ffc041ec:	92 01 01 d0 	stw     r16,464(r1)                            
ffc041f0:	92 21 01 d4 	stw     r17,468(r1)                            
ffc041f4:	92 41 01 d8 	stw     r18,472(r1)                            
ffc041f8:	92 a1 01 e4 	stw     r21,484(r1)                            
ffc041fc:	92 c1 01 e8 	stw     r22,488(r1)                            
ffc04200:	93 01 01 f0 	stw     r24,496(r1)                            
ffc04204:	93 41 01 f8 	stw     r26,504(r1)                            
ffc04208:	93 61 01 fc 	stw     r27,508(r1)                            
ffc0420c:	93 81 02 00 	stw     r28,512(r1)                            
ffc04210:	93 a1 02 04 	stw     r29,516(r1)                            
ffc04214:	93 c1 02 08 	stw     r30,520(r1)                            
ffc04218:	93 e1 02 0c 	stw     r31,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 =                     
ffc0421c:	48 00 27 41 	bl      ffc0695c <rtems_filesystem_eval_path_start>
ffc04220:	7c 74 1b 78 	mr      r20,r3                                 
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(                          
ffc04224:	38 81 01 84 	addi    r4,r1,388                              
ffc04228:	38 61 01 a4 	addi    r3,r1,420                              
ffc0422c:	48 00 2c 7d 	bl      ffc06ea8 <rtems_filesystem_location_copy_and_detach>
     &ctx,                                                            
     RTEMS_FS_MAKE | RTEMS_FS_EXCLUSIVE                               
   );                                                                 
                                                                      
   if (                                                               
     rootloc.mt_entry->ops != &IMFS_ops                               
ffc04230:	81 21 01 b8 	lwz     r9,440(r1)                             
   rtems_filesystem_eval_path_set_flags(                              
     &ctx,                                                            
     RTEMS_FS_MAKE | RTEMS_FS_EXCLUSIVE                               
   );                                                                 
                                                                      
   if (                                                               
ffc04234:	3d 40 ff c2 	lis     r10,-62                                
     rootloc.mt_entry->ops != &IMFS_ops                               
ffc04238:	81 29 00 0c 	lwz     r9,12(r9)                              
   rtems_filesystem_eval_path_set_flags(                              
     &ctx,                                                            
     RTEMS_FS_MAKE | RTEMS_FS_EXCLUSIVE                               
   );                                                                 
                                                                      
   if (                                                               
ffc0423c:	39 4a 49 0c 	addi    r10,r10,18700                          
ffc04240:	7f 89 50 00 	cmpw    cr7,r9,r10                             
static inline void rtems_filesystem_eval_path_set_flags(              
  rtems_filesystem_eval_path_context_t *ctx,                          
  int flags                                                           
)                                                                     
{                                                                     
  ctx->flags = flags;                                                 
ffc04244:	39 40 00 60 	li      r10,96                                 
ffc04248:	91 41 01 7c 	stw     r10,380(r1)                            
ffc0424c:	41 9e 00 14 	beq-    cr7,ffc04260 <rtems_tarfs_load+0xb0>   
     rootloc.mt_entry->ops != &IMFS_ops                               
       && rootloc.mt_entry->ops != &fifoIMFS_ops                      
ffc04250:	3d 40 ff c2 	lis     r10,-62                                
ffc04254:	39 4a 51 2c 	addi    r10,r10,20780                          
ffc04258:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc0425c:	40 9e 02 10 	bne-    cr7,ffc0446c <rtems_tarfs_load+0x2bc>  <== ALWAYS TAKEN
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while ( rv == 0 ) {                                                
    if (offset + 512 > tar_size)                                      
ffc04260:	2b 97 01 ff 	cmplwi  cr7,r23,511                            
ffc04264:	40 9d 01 18 	ble-    cr7,ffc0437c <rtems_tarfs_load+0x1cc>  <== NEVER TAKEN
     * - For directories, just create directories as usual.  IMFS     
     *   will take care of the rest.                                  
     * - For files, create a file node with special tarfs properties. 
     */                                                               
    if (linkflag == DIRTYPE) {                                        
      strcpy(full_filename, mountpoint);                              
ffc04268:	3a a1 00 08 	addi    r21,r1,8                               
ffc0426c:	3e c0 ff c2 	lis     r22,-62                                
        filename,                                                     
        strlen( filename )                                            
      );                                                              
      rtems_filesystem_eval_path_continue( &ctx );                    
                                                                      
      if ( !rtems_filesystem_location_is_null( currentloc ) ) {       
ffc04270:	3e 20 ff c2 	lis     r17,-62                                
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while ( rv == 0 ) {                                                
    if (offset + 512 > tar_size)                                      
ffc04274:	3b 40 02 00 	li      r26,512                                
ffc04278:	3b c0 02 00 	li      r30,512                                
ffc0427c:	3b e0 00 00 	li      r31,0                                  
ffc04280:	3a d6 49 90 	addi    r22,r22,18832                          
    hdr_ptr = (char *) &tar_image[offset];                            
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
ffc04284:	3b 61 01 08 	addi    r27,r1,264                             
        filename,                                                     
        strlen( filename )                                            
      );                                                              
      rtems_filesystem_eval_path_continue( &ctx );                    
                                                                      
      if ( !rtems_filesystem_location_is_null( currentloc ) ) {       
ffc04288:	3a 31 4f ac 	addi    r17,r17,20396                          
     * - For directories, just create directories as usual.  IMFS     
     *   will take care of the rest.                                  
     * - For files, create a file node with special tarfs properties. 
     */                                                               
    if (linkflag == DIRTYPE) {                                        
      strcpy(full_filename, mountpoint);                              
ffc0428c:	7e b2 a8 f8 	not     r18,r21                                
      if (full_filename[strlen(full_filename)-1] != '/')              
        strcat(full_filename, "/");                                   
ffc04290:	3a 00 2f 00 	li      r16,12032                              
ffc04294:	48 00 00 20 	b       ffc042b4 <rtems_tarfs_load+0x104>      
      mkdir(full_filename, S_IRWXU | S_IRWXG | S_IRWXO);              
    }                                                                 
    /*                                                                
     * Create a LINEAR_FILE node                                      
     */                                                               
    else if (linkflag == REGTYPE) {                                   
ffc04298:	2f 9d 00 30 	cmpwi   cr7,r29,48                             
ffc0429c:	7f df f3 78 	mr      r31,r30                                
ffc042a0:	41 9e 01 4c 	beq-    cr7,ffc043ec <rtems_tarfs_load+0x23c>  
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while ( rv == 0 ) {                                                
    if (offset + 512 > tar_size)                                      
ffc042a4:	3b df 02 00 	addi    r30,r31,512                            
ffc042a8:	7f 9e b8 40 	cmplw   cr7,r30,r23                            
ffc042ac:	7f da f3 78 	mr      r26,r30                                
ffc042b0:	41 9d 00 cc 	bgt-    cr7,ffc0437c <rtems_tarfs_load+0x1cc>  <== NEVER TAKEN
      break;                                                          
                                                                      
    /*                                                                
     * Read a header.                                                 
     */                                                               
    hdr_ptr = (char *) &tar_image[offset];                            
ffc042b4:	7f f9 fa 14 	add     r31,r25,r31                            
    offset += 512;                                                    
    if (strncmp(&hdr_ptr[257], "ustar", 5))                           
ffc042b8:	38 7f 01 01 	addi    r3,r31,257                             
ffc042bc:	7e c4 b3 78 	mr      r4,r22                                 
ffc042c0:	38 a0 00 05 	li      r5,5                                   
ffc042c4:	48 01 40 fd 	bl      ffc183c0 <strncmp>                     
ffc042c8:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc042cc:	40 82 00 b0 	bne-    ffc0437c <rtems_tarfs_load+0x1cc>      
      break;                                                          
                                                                      
    strncpy(filename, hdr_ptr, MAX_NAME_FIELD_SIZE);                  
ffc042d0:	38 a0 00 63 	li      r5,99                                  
ffc042d4:	7f e4 fb 78 	mr      r4,r31                                 
ffc042d8:	7f 63 db 78 	mr      r3,r27                                 
ffc042dc:	48 01 42 1d 	bl      ffc184f8 <strncpy>                     
    filename[MAX_NAME_FIELD_SIZE] = '\0';                             
                                                                      
    linkflag   = hdr_ptr[156];                                        
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
ffc042e0:	38 80 00 08 	li      r4,8                                   
ffc042e4:	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';                             
ffc042e8:	9b 81 01 6b 	stb     r28,363(r1)                            
                                                                      
    linkflag   = hdr_ptr[156];                                        
ffc042ec:	8b bf 00 9c 	lbz     r29,156(r31)                           
    file_mode  = _rtems_octal2ulong(&hdr_ptr[100], 8);                
ffc042f0:	48 00 a1 49 	bl      ffc0e438 <_rtems_octal2ulong>          
ffc042f4:	7c 6f 1b 78 	mr      r15,r3                                 
    file_size  = _rtems_octal2ulong(&hdr_ptr[124], 12);               
ffc042f8:	38 80 00 0c 	li      r4,12                                  
ffc042fc:	38 7f 00 7c 	addi    r3,r31,124                             
ffc04300:	48 00 a1 39 	bl      ffc0e438 <_rtems_octal2ulong>          
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
ffc04304:	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);               
ffc04308:	7c 78 1b 78 	mr      r24,r3                                 
    hdr_chksum = _rtems_octal2ulong(&hdr_ptr[148], 8);                
ffc0430c:	38 7f 00 94 	addi    r3,r31,148                             
ffc04310:	48 00 a1 29 	bl      ffc0e438 <_rtems_octal2ulong>          
ffc04314:	7c 6e 1b 78 	mr      r14,r3                                 
                                                                      
    if (_rtems_tar_header_checksum(hdr_ptr) != hdr_chksum)            
ffc04318:	7f e3 fb 78 	mr      r3,r31                                 
ffc0431c:	48 00 a6 dd 	bl      ffc0e9f8 <_rtems_tar_header_checksum>  
ffc04320:	7f 83 70 00 	cmpw    cr7,r3,r14                             
ffc04324:	40 9e 00 58 	bne-    cr7,ffc0437c <rtems_tarfs_load+0x1cc>  <== 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) {                                        
ffc04328:	2f 9d 00 35 	cmpwi   cr7,r29,53                             
ffc0432c:	40 9e ff 6c 	bne+    cr7,ffc04298 <rtems_tarfs_load+0xe8>   
      strcpy(full_filename, mountpoint);                              
ffc04330:	7e a3 ab 78 	mr      r3,r21                                 
ffc04334:	7e 64 9b 78 	mr      r4,r19                                 
ffc04338:	48 01 39 59 	bl      ffc17c90 <stpcpy>                      
      if (full_filename[strlen(full_filename)-1] != '/')              
ffc0433c:	7d 35 1a 14 	add     r9,r21,r3                              
ffc04340:	7d 29 90 ae 	lbzx    r9,r9,r18                              
ffc04344:	2f 89 00 2f 	cmpwi   cr7,r9,47                              
ffc04348:	41 9e 00 08 	beq-    cr7,ffc04350 <rtems_tarfs_load+0x1a0>  <== ALWAYS TAKEN
        strcat(full_filename, "/");                                   
ffc0434c:	b2 03 00 00 	sth     r16,0(r3)                              <== NOT EXECUTED
      strcat(full_filename, filename);                                
ffc04350:	7f 64 db 78 	mr      r4,r27                                 
ffc04354:	7e a3 ab 78 	mr      r3,r21                                 
      mkdir(full_filename, S_IRWXU | S_IRWXG | S_IRWXO);              
ffc04358:	7f df f3 78 	mr      r31,r30                                
     */                                                               
    if (linkflag == DIRTYPE) {                                        
      strcpy(full_filename, mountpoint);                              
      if (full_filename[strlen(full_filename)-1] != '/')              
        strcat(full_filename, "/");                                   
      strcat(full_filename, filename);                                
ffc0435c:	48 01 39 a1 	bl      ffc17cfc <strcat>                      
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while ( rv == 0 ) {                                                
    if (offset + 512 > tar_size)                                      
ffc04360:	3b df 02 00 	addi    r30,r31,512                            
    if (linkflag == DIRTYPE) {                                        
      strcpy(full_filename, mountpoint);                              
      if (full_filename[strlen(full_filename)-1] != '/')              
        strcat(full_filename, "/");                                   
      strcat(full_filename, filename);                                
      mkdir(full_filename, S_IRWXU | S_IRWXG | S_IRWXO);              
ffc04364:	7e a3 ab 78 	mr      r3,r21                                 
ffc04368:	38 80 01 ff 	li      r4,511                                 
ffc0436c:	48 00 13 ed 	bl      ffc05758 <mkdir>                       
   /*                                                                 
    * Create an IMFS node structure pointing to tar image memory.     
    */                                                                
   offset = 0;                                                        
   while ( rv == 0 ) {                                                
    if (offset + 512 > tar_size)                                      
ffc04370:	7f 9e b8 40 	cmplw   cr7,r30,r23                            
ffc04374:	7f da f3 78 	mr      r26,r30                                
ffc04378:	40 9d ff 3c 	ble+    cr7,ffc042b4 <rtems_tarfs_load+0x104>  <== ALWAYS TAKEN
                                                                      
   if (                                                               
     rootloc.mt_entry->ops != &IMFS_ops                               
       && rootloc.mt_entry->ops != &fifoIMFS_ops                      
   ) {                                                                
     rv = -1;                                                         
ffc0437c:	3b e0 00 00 	li      r31,0                                  
      nblocks = (((file_size) + 511) & ~511) / 512;                   
      offset += 512 * nblocks;                                        
    }                                                                 
  }                                                                   
                                                                      
  rtems_filesystem_location_free( &rootloc );                         
ffc04380:	38 61 01 a4 	addi    r3,r1,420                              
ffc04384:	48 00 0b f9 	bl      ffc04f7c <rtems_filesystem_location_free>
  rtems_filesystem_eval_path_cleanup( &ctx );                         
ffc04388:	38 61 01 6c 	addi    r3,r1,364                              
ffc0438c:	48 00 27 19 	bl      ffc06aa4 <rtems_filesystem_eval_path_cleanup>
                                                                      
  return rv;                                                          
}                                                                     
ffc04390:	80 01 02 14 	lwz     r0,532(r1)                             
ffc04394:	7f e3 fb 78 	mr      r3,r31                                 
ffc04398:	81 c1 01 c8 	lwz     r14,456(r1)                            
ffc0439c:	7c 08 03 a6 	mtlr    r0                                     
ffc043a0:	81 e1 01 cc 	lwz     r15,460(r1)                            
ffc043a4:	82 01 01 d0 	lwz     r16,464(r1)                            
ffc043a8:	82 21 01 d4 	lwz     r17,468(r1)                            
ffc043ac:	82 41 01 d8 	lwz     r18,472(r1)                            
ffc043b0:	82 61 01 dc 	lwz     r19,476(r1)                            
ffc043b4:	82 81 01 e0 	lwz     r20,480(r1)                            
ffc043b8:	82 a1 01 e4 	lwz     r21,484(r1)                            
ffc043bc:	82 c1 01 e8 	lwz     r22,488(r1)                            
ffc043c0:	82 e1 01 ec 	lwz     r23,492(r1)                            
ffc043c4:	83 01 01 f0 	lwz     r24,496(r1)                            
ffc043c8:	83 21 01 f4 	lwz     r25,500(r1)                            
ffc043cc:	83 41 01 f8 	lwz     r26,504(r1)                            
ffc043d0:	83 61 01 fc 	lwz     r27,508(r1)                            
ffc043d4:	83 81 02 00 	lwz     r28,512(r1)                            
ffc043d8:	83 a1 02 04 	lwz     r29,516(r1)                            
ffc043dc:	83 c1 02 08 	lwz     r30,520(r1)                            
ffc043e0:	83 e1 02 0c 	lwz     r31,524(r1)                            
ffc043e4:	38 21 02 10 	addi    r1,r1,528                              
ffc043e8:	4e 80 00 20 	blr                                            
    }                                                                 
    /*                                                                
     * Create a LINEAR_FILE node                                      
     */                                                               
    else if (linkflag == REGTYPE) {                                   
      rtems_filesystem_location_free( currentloc );                   
ffc043ec:	7e 83 a3 78 	mr      r3,r20                                 
ffc043f0:	48 00 0b 8d 	bl      ffc04f7c <rtems_filesystem_location_free>
      rtems_filesystem_location_clone( currentloc, &rootloc );        
ffc043f4:	38 81 01 a4 	addi    r4,r1,420                              
ffc043f8:	7e 83 a3 78 	mr      r3,r20                                 
ffc043fc:	48 00 07 41 	bl      ffc04b3c <rtems_filesystem_location_clone>
      rtems_filesystem_eval_path_set_path(                            
ffc04400:	7f 63 db 78 	mr      r3,r27                                 
ffc04404:	48 01 3f 21 	bl      ffc18324 <strlen>                      
  rtems_filesystem_eval_path_context_t *ctx,                          
  const char *path,                                                   
  size_t pathlen                                                      
)                                                                     
{                                                                     
  ctx->path = path;                                                   
ffc04408:	93 61 01 6c 	stw     r27,364(r1)                            
  ctx->pathlen = pathlen;                                             
ffc0440c:	90 61 01 70 	stw     r3,368(r1)                             
        &ctx,                                                         
        filename,                                                     
        strlen( filename )                                            
      );                                                              
      rtems_filesystem_eval_path_continue( &ctx );                    
ffc04410:	38 61 01 6c 	addi    r3,r1,364                              
ffc04414:	48 00 22 fd 	bl      ffc06710 <rtems_filesystem_eval_path_continue>
                                                                      
      if ( !rtems_filesystem_location_is_null( currentloc ) ) {       
ffc04418:	81 34 00 10 	lwz     r9,16(r20)                             
ffc0441c:	7f 89 88 00 	cmpw    cr7,r9,r17                             
ffc04420:	41 9e 00 3c 	beq-    cr7,ffc0445c <rtems_tarfs_load+0x2ac>  <== NEVER TAKEN
  size_t namelen,                                                     
  mode_t mode,                                                        
  const IMFS_types_union *info                                        
)                                                                     
{                                                                     
  const IMFS_fs_info_t *fs_info =                                     
ffc04424:	81 34 00 14 	lwz     r9,20(r20)                             
        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,      
ffc04428:	55 e7 05 fe 	clrlwi  r7,r15,23                              
    (const IMFS_fs_info_t *) parentloc->mt_entry->fs_info;            
                                                                      
  return IMFS_create_node_with_control(                               
ffc0442c:	80 a1 01 74 	lwz     r5,372(r1)                             
ffc04430:	7e 83 a3 78 	mr      r3,r20                                 
ffc04434:	81 29 00 08 	lwz     r9,8(r9)                               
ffc04438:	60 e7 80 00 	ori     r7,r7,32768                            
ffc0443c:	80 c1 01 78 	lwz     r6,376(r1)                             
ffc04440:	39 00 00 00 	li      r8,0                                   
ffc04444:	80 89 00 1c 	lwz     r4,28(r9)                              
ffc04448:	48 00 a9 91 	bl      ffc0edd8 <IMFS_create_node_with_control>
          NULL                                                        
        );                                                            
        node->info.linearfile.size   = file_size;                     
        node->info.linearfile.direct = &tar_image[offset];            
ffc0444c:	7d 39 d2 14 	add     r9,r25,r26                             
          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;                     
ffc04450:	93 03 00 54 	stw     r24,84(r3)                             
ffc04454:	93 83 00 50 	stw     r28,80(r3)                             
        node->info.linearfile.direct = &tar_image[offset];            
ffc04458:	91 23 00 58 	stw     r9,88(r3)                              
      }                                                               
                                                                      
      nblocks = (((file_size) + 511) & ~511) / 512;                   
ffc0445c:	3b f8 01 ff 	addi    r31,r24,511                            
      offset += 512 * nblocks;                                        
ffc04460:	57 ff 00 2c 	rlwinm  r31,r31,0,0,22                         
ffc04464:	7f ff d2 14 	add     r31,r31,r26                            
ffc04468:	4b ff fe 3c 	b       ffc042a4 <rtems_tarfs_load+0xf4>       
                                                                      
   if (                                                               
     rootloc.mt_entry->ops != &IMFS_ops                               
       && rootloc.mt_entry->ops != &fifoIMFS_ops                      
   ) {                                                                
     rv = -1;                                                         
ffc0446c:	3b e0 ff ff 	li      r31,-1                                 
ffc04470:	4b ff ff 10 	b       ffc04380 <rtems_tarfs_load+0x1d0>      
                                                                      

ffc153b8 <rtems_task_mode>: ASR_Information *asr; bool is_asr_enabled = false; bool needs_asr_dispatching = false; rtems_mode old_mode; if ( !previous_mode_set )
ffc153b8:	2c 05 00 00 	cmpwi   r5,0                                   
rtems_status_code rtems_task_mode(                                    
  rtems_mode  mode_set,                                               
  rtems_mode  mask,                                                   
  rtems_mode *previous_mode_set                                       
)                                                                     
{                                                                     
ffc153bc:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc153c0:	7c 08 02 a6 	mflr    r0                                     
ffc153c4:	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 )                                           
ffc153c8:	41 82 01 b4 	beq-    ffc1557c <rtems_task_mode+0x1c4>       
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
ffc153cc:	3d 60 00 00 	lis     r11,0                                  
ffc153d0:	39 6b 32 00 	addi    r11,r11,12800                          
ffc153d4:	81 2b 00 10 	lwz     r9,16(r11)                             
  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 )
ffc153d8:	81 49 00 78 	lwz     r10,120(r9)                            
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
ffc153dc:	88 e9 00 70 	lbz     r7,112(r9)                             
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
ffc153e0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  executing     = _Thread_Executing;                                  
  api = executing->API_Extensions[ THREAD_API_RTEMS ];                
ffc153e4:	81 49 01 4c 	lwz     r10,332(r9)                            
  asr = &api->Signal;                                                 
                                                                      
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
ffc153e8:	7c e7 00 34 	cntlzw  r7,r7                                  
ffc153ec:	54 e7 d9 7e 	rlwinm  r7,r7,27,5,31                          
ffc153f0:	54 e6 40 2e 	rlwinm  r6,r7,8,0,23                           
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
ffc153f4:	40 9e 01 08 	bne-    cr7,ffc154fc <rtems_task_mode+0x144>   
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
ffc153f8:	88 ea 00 08 	lbz     r7,8(r10)                              
#ifndef ASM                                                           
                                                                      
static inline uint32_t   _CPU_ISR_Get_level( void )                   
{                                                                     
  register unsigned int msr;                                          
  _CPU_MSR_GET(msr);                                                  
ffc153fc:	39 00 00 00 	li      r8,0                                   
ffc15400:	7c e7 00 34 	cntlzw  r7,r7                                  
ffc15404:	54 e7 d9 7e 	rlwinm  r7,r7,27,5,31                          
ffc15408:	54 e7 50 2a 	rlwinm  r7,r7,10,0,21                          
ffc1540c:	7c e6 33 78 	or      r6,r7,r6                               
ffc15410:	7d 00 00 a6 	mfmsr   r8                                     
  *previous_mode_set = old_mode;                                      
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
ffc15414:	70 87 01 00 	andi.   r7,r4,256                              
  if (msr & MSR_EE) return 0;                                         
ffc15418:	69 08 80 00 	xori    r8,r8,32768                            
ffc1541c:	55 08 8f fe 	rlwinm  r8,r8,17,31,31                         
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
  old_mode |= _ISR_Get_level();                                       
ffc15420:	7c c6 43 78 	or      r6,r6,r8                               
                                                                      
  *previous_mode_set = old_mode;                                      
ffc15424:	90 c5 00 00 	stw     r6,0(r5)                               
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
ffc15428:	41 82 00 10 	beq-    ffc15438 <rtems_task_mode+0x80>        
ffc1542c:	68 68 01 00 	xori    r8,r3,256                              
ffc15430:	55 08 c7 fe 	rlwinm  r8,r8,24,31,31                         
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
ffc15434:	99 09 00 70 	stb     r8,112(r9)                             
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
ffc15438:	70 88 02 00 	andi.   r8,r4,512                              
ffc1543c:	41 82 00 20 	beq-    ffc1545c <rtems_task_mode+0xa4>        
    if ( _Modes_Is_timeslice(mode_set) ) {                            
ffc15440:	70 68 02 00 	andi.   r8,r3,512                              
ffc15444:	41 82 01 4c 	beq-    ffc15590 <rtems_task_mode+0x1d8>       
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
ffc15448:	3d 00 00 00 	lis     r8,0                                   
ffc1544c:	81 08 28 1c 	lwz     r8,10268(r8)                           
  if ( mask & RTEMS_PREEMPT_MASK )                                    
    executing->is_preemptible = _Modes_Is_preempt(mode_set) ? true : false;
                                                                      
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
    if ( _Modes_Is_timeslice(mode_set) ) {                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
ffc15450:	38 e0 00 01 	li      r7,1                                   
ffc15454:	90 e9 00 78 	stw     r7,120(r9)                             
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
ffc15458:	91 09 00 74 	stw     r8,116(r9)                             
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
ffc1545c:	70 89 00 01 	andi.   r9,r4,1                                
ffc15460:	41 82 00 20 	beq-    ffc15480 <rtems_task_mode+0xc8>        
}                                                                     
                                                                      
static inline void _CPU_ISR_Set_level( uint32_t   level )             
{                                                                     
  register unsigned int msr;                                          
  _CPU_MSR_GET(msr);                                                  
ffc15464:	39 20 00 00 	li      r9,0                                   
ffc15468:	7d 20 00 a6 	mfmsr   r9                                     
                                                                      
static inline uint32_t ppc_interrupt_get_disable_mask( void )         
{                                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc1546c:	7d 10 42 a6 	mfsprg  r8,0                                   
  if (!(level & CPU_MODES_INTERRUPT_MASK)) {                          
ffc15470:	70 67 00 01 	andi.   r7,r3,1                                
ffc15474:	40 82 01 2c 	bne-    ffc155a0 <rtems_task_mode+0x1e8>       
    msr |= ppc_interrupt_get_disable_mask();                          
ffc15478:	7d 09 4b 78 	or      r9,r8,r9                               
  }                                                                   
  else {                                                              
    msr &= ~ppc_interrupt_get_disable_mask();                         
  }                                                                   
  _CPU_MSR_SET(msr);                                                  
ffc1547c:	7d 20 01 24 	mtmsr   r9                                     
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
ffc15480:	70 88 04 00 	andi.   r8,r4,1024                             
                                                                      
  /*                                                                  
   *  This is specific to the RTEMS API                               
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
ffc15484:	39 00 00 00 	li      r8,0                                   
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
ffc15488:	41 82 00 50 	beq-    ffc154d8 <rtems_task_mode+0x120>       
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
ffc1548c:	68 63 04 00 	xori    r3,r3,1024                             
    if ( is_asr_enabled != asr->is_enabled ) {                        
ffc15490:	89 2a 00 08 	lbz     r9,8(r10)                              
   */                                                                 
  is_asr_enabled = false;                                             
  needs_asr_dispatching = false;                                      
                                                                      
  if ( mask & RTEMS_ASR_MASK ) {                                      
    is_asr_enabled = _Modes_Is_asr_disabled( mode_set ) ? false : true;
ffc15494:	54 63 b7 fe 	rlwinm  r3,r3,22,31,31                         
    if ( is_asr_enabled != asr->is_enabled ) {                        
ffc15498:	7f 89 18 00 	cmpw    cr7,r9,r3                              
ffc1549c:	41 9e 00 3c 	beq-    cr7,ffc154d8 <rtems_task_mode+0x120>   
      asr->is_enabled = is_asr_enabled;                               
ffc154a0:	98 6a 00 08 	stb     r3,8(r10)                              
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc154a4:	7d 00 00 a6 	mfmsr   r8                                     
ffc154a8:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc154ac:	7d 09 48 78 	andc    r9,r8,r9                               
ffc154b0:	7d 20 01 24 	mtmsr   r9                                     
{                                                                     
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
    _signals                     = information->signals_pending;      
ffc154b4:	81 2a 00 18 	lwz     r9,24(r10)                             
    information->signals_pending = information->signals_posted;       
ffc154b8:	80 ea 00 14 	lwz     r7,20(r10)                             
    information->signals_posted  = _signals;                          
ffc154bc:	91 2a 00 14 	stw     r9,20(r10)                             
  rtems_signal_set _signals;                                          
  ISR_Level        _level;                                            
                                                                      
  _ISR_Disable( _level );                                             
    _signals                     = information->signals_pending;      
    information->signals_pending = information->signals_posted;       
ffc154c0:	90 ea 00 18 	stw     r7,24(r10)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc154c4:	7d 00 01 24 	mtmsr   r8                                     
      _ASR_Swap_signals( asr );                                       
      if ( _ASR_Are_signals_pending( asr ) ) {                        
ffc154c8:	81 0a 00 14 	lwz     r8,20(r10)                             
ffc154cc:	7d 08 00 34 	cntlzw  r8,r8                                  
ffc154d0:	55 08 d9 7e 	rlwinm  r8,r8,27,5,31                          
ffc154d4:	69 08 00 01 	xori    r8,r8,1                                
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
ffc154d8:	3d 20 00 00 	lis     r9,0                                   
ffc154dc:	81 29 28 48 	lwz     r9,10312(r9)                           
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc154e0:	38 60 00 00 	li      r3,0                                   
        needs_asr_dispatching = true;                                 
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
ffc154e4:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc154e8:	41 9e 00 50 	beq-    cr7,ffc15538 <rtems_task_mode+0x180>   
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc154ec:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc154f0:	38 21 00 08 	addi    r1,r1,8                                
ffc154f4:	7c 08 03 a6 	mtlr    r0                                     
ffc154f8:	4e 80 00 20 	blr                                            
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
ffc154fc:	88 ea 00 08 	lbz     r7,8(r10)                              
  old_mode  = (executing->is_preemptible) ? RTEMS_PREEMPT : RTEMS_NO_PREEMPT;
                                                                      
  if ( executing->budget_algorithm == THREAD_CPU_BUDGET_ALGORITHM_NONE )
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
ffc15500:	60 c6 02 00 	ori     r6,r6,512                              
#ifndef ASM                                                           
                                                                      
static inline uint32_t   _CPU_ISR_Get_level( void )                   
{                                                                     
  register unsigned int msr;                                          
  _CPU_MSR_GET(msr);                                                  
ffc15504:	39 00 00 00 	li      r8,0                                   
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
ffc15508:	7c e7 00 34 	cntlzw  r7,r7                                  
ffc1550c:	54 e7 d9 7e 	rlwinm  r7,r7,27,5,31                          
ffc15510:	54 e7 50 2a 	rlwinm  r7,r7,10,0,21                          
ffc15514:	7c e6 33 78 	or      r6,r7,r6                               
ffc15518:	7d 00 00 a6 	mfmsr   r8                                     
  *previous_mode_set = old_mode;                                      
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
ffc1551c:	70 87 01 00 	andi.   r7,r4,256                              
  if (msr & MSR_EE) return 0;                                         
ffc15520:	69 08 80 00 	xori    r8,r8,32768                            
ffc15524:	55 08 8f fe 	rlwinm  r8,r8,17,31,31                         
    old_mode |= RTEMS_NO_TIMESLICE;                                   
  else                                                                
    old_mode |= RTEMS_TIMESLICE;                                      
                                                                      
  old_mode |= (asr->is_enabled) ? RTEMS_ASR : RTEMS_NO_ASR;           
  old_mode |= _ISR_Get_level();                                       
ffc15528:	7c c6 43 78 	or      r6,r6,r8                               
                                                                      
  *previous_mode_set = old_mode;                                      
ffc1552c:	90 c5 00 00 	stw     r6,0(r5)                               
                                                                      
  /*                                                                  
   *  These are generic thread scheduling characteristics.            
   */                                                                 
  if ( mask & RTEMS_PREEMPT_MASK )                                    
ffc15530:	41 a2 ff 08 	beq-    ffc15438 <rtems_task_mode+0x80>        
ffc15534:	4b ff fe f8 	b       ffc1542c <rtems_task_mode+0x74>        
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
                                                                      
  if ( are_signals_pending ||                                         
ffc15538:	2f 88 00 00 	cmpwi   cr7,r8,0                               
  bool are_signals_pending                                            
)                                                                     
{                                                                     
  Thread_Control     *executing;                                      
                                                                      
  executing = _Thread_Executing;                                      
ffc1553c:	81 2b 00 10 	lwz     r9,16(r11)                             
                                                                      
  if ( are_signals_pending ||                                         
ffc15540:	40 9e 00 1c 	bne-    cr7,ffc1555c <rtems_task_mode+0x1a4>   
ffc15544:	81 4b 00 14 	lwz     r10,20(r11)                            
ffc15548:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc1554c:	41 be ff a0 	beq-    cr7,ffc154ec <rtems_task_mode+0x134>   
       (!_Thread_Is_heir( executing ) && executing->is_preemptible) ) {
ffc15550:	89 29 00 70 	lbz     r9,112(r9)                             
ffc15554:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc15558:	41 be ff 94 	beq-    cr7,ffc154ec <rtems_task_mode+0x134>   <== NEVER TAKEN
    _Thread_Dispatch_necessary = true;                                
ffc1555c:	39 20 00 01 	li      r9,1                                   
ffc15560:	99 2b 00 0c 	stb     r9,12(r11)                             
    }                                                                 
  }                                                                   
                                                                      
  if ( _System_state_Is_up( _System_state_Get() ) ) {                 
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
ffc15564:	4b ff 89 59 	bl      ffc0debc <_Thread_Dispatch>            
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
ffc15568:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc1556c:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc15570:	38 21 00 08 	addi    r1,r1,8                                
ffc15574:	7c 08 03 a6 	mtlr    r0                                     
ffc15578:	4e 80 00 20 	blr                                            
ffc1557c:	80 01 00 0c 	lwz     r0,12(r1)                              
  bool                is_asr_enabled = false;                         
  bool                needs_asr_dispatching = false;                  
  rtems_mode          old_mode;                                       
                                                                      
  if ( !previous_mode_set )                                           
    return RTEMS_INVALID_ADDRESS;                                     
ffc15580:	38 60 00 09 	li      r3,9                                   
     if (_Thread_Evaluate_is_dispatch_needed( needs_asr_dispatching ) )
      _Thread_Dispatch();                                             
  }                                                                   
                                                                      
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc15584:	7c 08 03 a6 	mtlr    r0                                     
ffc15588:	38 21 00 08 	addi    r1,r1,8                                
ffc1558c:	4e 80 00 20 	blr                                            
  if ( mask & RTEMS_TIMESLICE_MASK ) {                                
    if ( _Modes_Is_timeslice(mode_set) ) {                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_RESET_TIMESLICE;
      executing->cpu_time_budget  = _Thread_Ticks_per_timeslice;      
    } else                                                            
      executing->budget_algorithm = THREAD_CPU_BUDGET_ALGORITHM_NONE; 
ffc15590:	91 09 00 78 	stw     r8,120(r9)                             
  }                                                                   
                                                                      
  /*                                                                  
   *  Set the new interrupt level                                     
   */                                                                 
  if ( mask & RTEMS_INTERRUPT_MASK )                                  
ffc15594:	70 89 00 01 	andi.   r9,r4,1                                
ffc15598:	41 a2 fe e8 	beq-    ffc15480 <rtems_task_mode+0xc8>        
ffc1559c:	4b ff fe c8 	b       ffc15464 <rtems_task_mode+0xac>        
  _CPU_MSR_GET(msr);                                                  
  if (!(level & CPU_MODES_INTERRUPT_MASK)) {                          
    msr |= ppc_interrupt_get_disable_mask();                          
  }                                                                   
  else {                                                              
    msr &= ~ppc_interrupt_get_disable_mask();                         
ffc155a0:	7d 29 40 78 	andc    r9,r9,r8                               
  }                                                                   
  _CPU_MSR_SET(msr);                                                  
ffc155a4:	7d 20 01 24 	mtmsr   r9                                     
 */                                                                   
RTEMS_INLINE_ROUTINE void _Modes_Set_interrupt_level (                
  Modes_Control mode_set                                              
)                                                                     
{                                                                     
  _ISR_Set_level( _Modes_Get_interrupt_level( mode_set ) );           
ffc155a8:	4b ff fe d8 	b       ffc15480 <rtems_task_mode+0xc8>        
                                                                      

ffc0f188 <rtems_task_set_priority>: rtems_status_code rtems_task_set_priority( rtems_id id, rtems_task_priority new_priority, rtems_task_priority *old_priority ) {
ffc0f188:	7d 80 00 26 	mfcr    r12                                    
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
ffc0f18c:	2e 04 00 00 	cmpwi   cr4,r4,0                               
rtems_status_code rtems_task_set_priority(                            
  rtems_id             id,                                            
  rtems_task_priority  new_priority,                                  
  rtems_task_priority *old_priority                                   
)                                                                     
{                                                                     
ffc0f190:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc0f194:	7c 08 02 a6 	mflr    r0                                     
ffc0f198:	93 e1 00 24 	stw     r31,36(r1)                             
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
ffc0f19c:	7c 9f 23 78 	mr      r31,r4                                 
rtems_status_code rtems_task_set_priority(                            
  rtems_id             id,                                            
  rtems_task_priority  new_priority,                                  
  rtems_task_priority *old_priority                                   
)                                                                     
{                                                                     
ffc0f1a0:	90 01 00 2c 	stw     r0,44(r1)                              
ffc0f1a4:	91 81 00 20 	stw     r12,32(r1)                             
  register Thread_Control *the_thread;                                
  Objects_Locations        location;                                  
                                                                      
  if ( new_priority != RTEMS_CURRENT_PRIORITY &&                      
ffc0f1a8:	41 92 00 18 	beq-    cr4,ffc0f1c0 <rtems_task_set_priority+0x38>
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 ) );             
ffc0f1ac:	3d 20 00 00 	lis     r9,0                                   
ffc0f1b0:	89 49 27 64 	lbz     r10,10084(r9)                          
       !_RTEMS_tasks_Priority_is_valid( new_priority ) )              
    return RTEMS_INVALID_PRIORITY;                                    
ffc0f1b4:	39 20 00 13 	li      r9,19                                  
 */                                                                   
RTEMS_INLINE_ROUTINE bool _RTEMS_tasks_Priority_is_valid (            
  rtems_task_priority the_priority                                    
)                                                                     
{                                                                     
  return (  ( the_priority >= RTEMS_MINIMUM_PRIORITY ) &&             
ffc0f1b8:	7f 84 50 40 	cmplw   cr7,r4,r10                             
ffc0f1bc:	41 9d 00 68 	bgt-    cr7,ffc0f224 <rtems_task_set_priority+0x9c>
                                                                      
  if ( !old_priority )                                                
ffc0f1c0:	2f 85 00 00 	cmpwi   cr7,r5,0                               
    return RTEMS_INVALID_ADDRESS;                                     
ffc0f1c4:	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 )                                                
ffc0f1c8:	41 9e 00 5c 	beq-    cr7,ffc0f224 <rtems_task_set_priority+0x9c>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get( id, &location );                          
ffc0f1cc:	38 81 00 08 	addi    r4,r1,8                                
ffc0f1d0:	90 a1 00 18 	stw     r5,24(r1)                              
ffc0f1d4:	48 00 2c f1 	bl      ffc11ec4 <_Thread_Get>                 
  switch ( location ) {                                               
ffc0f1d8:	81 21 00 08 	lwz     r9,8(r1)                               
ffc0f1dc:	80 a1 00 18 	lwz     r5,24(r1)                              
ffc0f1e0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f1e4:	40 9e 00 60 	bne-    cr7,ffc0f244 <rtems_task_set_priority+0xbc>
                                                                      
    case OBJECTS_LOCAL:                                               
      /* XXX need helper to "convert" from core priority */           
      *old_priority = the_thread->current_priority;                   
ffc0f1e8:	81 23 00 14 	lwz     r9,20(r3)                              
ffc0f1ec:	91 25 00 00 	stw     r9,0(r5)                               
      if ( new_priority != RTEMS_CURRENT_PRIORITY ) {                 
ffc0f1f0:	41 92 00 2c 	beq-    cr4,ffc0f21c <rtems_task_set_priority+0x94>
        the_thread->real_priority = new_priority;                     
        if ( the_thread->resource_count == 0 ||                       
ffc0f1f4:	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;                     
ffc0f1f8:	93 e3 00 18 	stw     r31,24(r3)                             
        if ( the_thread->resource_count == 0 ||                       
ffc0f1fc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0f200:	41 9e 00 10 	beq-    cr7,ffc0f210 <rtems_task_set_priority+0x88>
ffc0f204:	81 23 00 14 	lwz     r9,20(r3)                              
ffc0f208:	7f 9f 48 40 	cmplw   cr7,r31,r9                             
ffc0f20c:	40 9c 00 10 	bge-    cr7,ffc0f21c <rtems_task_set_priority+0x94><== ALWAYS TAKEN
             the_thread->current_priority > new_priority )            
          _Thread_Change_priority( the_thread, new_priority, false ); 
ffc0f210:	7f e4 fb 78 	mr      r4,r31                                 
ffc0f214:	38 a0 00 00 	li      r5,0                                   
ffc0f218:	48 00 26 05 	bl      ffc1181c <_Thread_Change_priority>     
      }                                                               
      _Thread_Enable_dispatch();                                      
ffc0f21c:	48 00 2c 8d 	bl      ffc11ea8 <_Thread_Enable_dispatch>     
      return RTEMS_SUCCESSFUL;                                        
ffc0f220:	39 20 00 00 	li      r9,0                                   
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc0f224:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc0f228:	7d 23 4b 78 	mr      r3,r9                                  
ffc0f22c:	81 81 00 20 	lwz     r12,32(r1)                             
ffc0f230:	7c 08 03 a6 	mtlr    r0                                     
ffc0f234:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0f238:	7d 80 81 20 	mtcrf   8,r12                                  
ffc0f23c:	38 21 00 28 	addi    r1,r1,40                               
ffc0f240:	4e 80 00 20 	blr                                            
ffc0f244:	80 01 00 2c 	lwz     r0,44(r1)                              
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc0f248:	39 20 00 04 	li      r9,4                                   
}                                                                     
ffc0f24c:	81 81 00 20 	lwz     r12,32(r1)                             
ffc0f250:	7d 23 4b 78 	mr      r3,r9                                  
ffc0f254:	7c 08 03 a6 	mtlr    r0                                     
ffc0f258:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0f25c:	7d 80 81 20 	mtcrf   8,r12                                  
ffc0f260:	38 21 00 28 	addi    r1,r1,40                               
ffc0f264:	4e 80 00 20 	blr                                            
                                                                      

ffc0874c <rtems_task_variable_delete>: rtems_status_code rtems_task_variable_delete( rtems_id tid, void **ptr ) {
ffc0874c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc08750:	7c 08 02 a6 	mflr    r0                                     
ffc08754:	93 e1 00 1c 	stw     r31,28(r1)                             
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp, *prev;                                  
                                                                      
  if ( !ptr )                                                         
ffc08758:	7c 9f 23 79 	mr.     r31,r4                                 
                                                                      
rtems_status_code rtems_task_variable_delete(                         
  rtems_id  tid,                                                      
  void    **ptr                                                       
)                                                                     
{                                                                     
ffc0875c:	90 01 00 24 	stw     r0,36(r1)                              
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp, *prev;                                  
                                                                      
  if ( !ptr )                                                         
ffc08760:	41 82 00 74 	beq-    ffc087d4 <rtems_task_variable_delete+0x88>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  prev = NULL;                                                        
                                                                      
  the_thread = _Thread_Get (tid, &location);                          
ffc08764:	38 81 00 08 	addi    r4,r1,8                                
ffc08768:	48 00 25 b9 	bl      ffc0ad20 <_Thread_Get>                 
  switch (location) {                                                 
ffc0876c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc08770:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08774:	40 9e 00 48 	bne-    cr7,ffc087bc <rtems_task_variable_delete+0x70>
                                                                      
    case OBJECTS_LOCAL:                                               
      tvp = the_thread->task_variables;                               
ffc08778:	81 23 01 58 	lwz     r9,344(r3)                             
      while (tvp) {                                                   
ffc0877c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08780:	41 9e 00 30 	beq-    cr7,ffc087b0 <rtems_task_variable_delete+0x64>
        if (tvp->ptr == ptr) {                                        
ffc08784:	81 49 00 04 	lwz     r10,4(r9)                              
ffc08788:	7f 8a f8 00 	cmpw    cr7,r10,r31                            
ffc0878c:	40 be 00 18 	bne+    cr7,ffc087a4 <rtems_task_variable_delete+0x58>
ffc08790:	48 00 00 74 	b       ffc08804 <rtems_task_variable_delete+0xb8>
ffc08794:	81 44 00 04 	lwz     r10,4(r4)                              
ffc08798:	7f 8a f8 00 	cmpw    cr7,r10,r31                            
ffc0879c:	41 9e 00 50 	beq-    cr7,ffc087ec <rtems_task_variable_delete+0xa0>
ffc087a0:	7c 89 23 78 	mr      r9,r4                                  
          _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );  
          _Thread_Enable_dispatch();                                  
          return RTEMS_SUCCESSFUL;                                    
        }                                                             
        prev = tvp;                                                   
        tvp = (rtems_task_variable_t *)tvp->next;                     
ffc087a4:	80 89 00 00 	lwz     r4,0(r9)                               
  the_thread = _Thread_Get (tid, &location);                          
  switch (location) {                                                 
                                                                      
    case OBJECTS_LOCAL:                                               
      tvp = the_thread->task_variables;                               
      while (tvp) {                                                   
ffc087a8:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc087ac:	40 9e ff e8 	bne+    cr7,ffc08794 <rtems_task_variable_delete+0x48><== ALWAYS TAKEN
          return RTEMS_SUCCESSFUL;                                    
        }                                                             
        prev = tvp;                                                   
        tvp = (rtems_task_variable_t *)tvp->next;                     
      }                                                               
      _Thread_Enable_dispatch();                                      
ffc087b0:	48 00 25 55 	bl      ffc0ad04 <_Thread_Enable_dispatch>     
      return RTEMS_INVALID_ADDRESS;                                   
ffc087b4:	38 60 00 09 	li      r3,9                                   
ffc087b8:	48 00 00 08 	b       ffc087c0 <rtems_task_variable_delete+0x74>
                                                                      
    case OBJECTS_ERROR:                                               
        break;                                                        
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc087bc:	38 60 00 04 	li      r3,4                                   
}                                                                     
ffc087c0:	80 01 00 24 	lwz     r0,36(r1)                              
ffc087c4:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc087c8:	7c 08 03 a6 	mtlr    r0                                     
ffc087cc:	38 21 00 20 	addi    r1,r1,32                               
ffc087d0:	4e 80 00 20 	blr                                            
ffc087d4:	80 01 00 24 	lwz     r0,36(r1)                              
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp, *prev;                                  
                                                                      
  if ( !ptr )                                                         
    return RTEMS_INVALID_ADDRESS;                                     
ffc087d8:	38 60 00 09 	li      r3,9                                   
    case OBJECTS_ERROR:                                               
        break;                                                        
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc087dc:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc087e0:	7c 08 03 a6 	mtlr    r0                                     
ffc087e4:	38 21 00 20 	addi    r1,r1,32                               
ffc087e8:	4e 80 00 20 	blr                                            
    case OBJECTS_LOCAL:                                               
      tvp = the_thread->task_variables;                               
      while (tvp) {                                                   
        if (tvp->ptr == ptr) {                                        
          if (prev)                                                   
            prev->next = tvp->next;                                   
ffc087ec:	81 44 00 00 	lwz     r10,0(r4)                              
ffc087f0:	91 49 00 00 	stw     r10,0(r9)                              
          else                                                        
            the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
                                                                      
          _RTEMS_Tasks_Invoke_task_variable_dtor( the_thread, tvp );  
ffc087f4:	48 00 00 dd 	bl      ffc088d0 <_RTEMS_Tasks_Invoke_task_variable_dtor>
          _Thread_Enable_dispatch();                                  
ffc087f8:	48 00 25 0d 	bl      ffc0ad04 <_Thread_Enable_dispatch>     
          return RTEMS_SUCCESSFUL;                                    
ffc087fc:	38 60 00 00 	li      r3,0                                   
ffc08800:	4b ff ff c0 	b       ffc087c0 <rtems_task_variable_delete+0x74>
      while (tvp) {                                                   
        if (tvp->ptr == ptr) {                                        
          if (prev)                                                   
            prev->next = tvp->next;                                   
          else                                                        
            the_thread->task_variables = (rtems_task_variable_t *)tvp->next;
ffc08804:	81 49 00 00 	lwz     r10,0(r9)                              
ffc08808:	7d 24 4b 78 	mr      r4,r9                                  
ffc0880c:	91 43 01 58 	stw     r10,344(r3)                            
ffc08810:	4b ff ff e4 	b       ffc087f4 <rtems_task_variable_delete+0xa8>
                                                                      

ffc08814 <rtems_task_variable_get>: rtems_status_code rtems_task_variable_get( rtems_id tid, void **ptr, void **result ) {
ffc08814:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc08818:	7c 08 02 a6 	mflr    r0                                     
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp;                                         
                                                                      
  if ( !ptr )                                                         
    return RTEMS_INVALID_ADDRESS;                                     
ffc0881c:	39 20 00 09 	li      r9,9                                   
rtems_status_code rtems_task_variable_get(                            
  rtems_id tid,                                                       
  void **ptr,                                                         
  void **result                                                       
)                                                                     
{                                                                     
ffc08820:	93 e1 00 24 	stw     r31,36(r1)                             
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp;                                         
                                                                      
  if ( !ptr )                                                         
ffc08824:	7c 9f 23 79 	mr.     r31,r4                                 
rtems_status_code rtems_task_variable_get(                            
  rtems_id tid,                                                       
  void **ptr,                                                         
  void **result                                                       
)                                                                     
{                                                                     
ffc08828:	90 01 00 2c 	stw     r0,44(r1)                              
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp;                                         
                                                                      
  if ( !ptr )                                                         
ffc0882c:	41 82 00 64 	beq-    ffc08890 <rtems_task_variable_get+0x7c>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !result )                                                      
ffc08830:	2f 85 00 00 	cmpwi   cr7,r5,0                               
  Thread_Control        *the_thread;                                  
  Objects_Locations      location;                                    
  rtems_task_variable_t *tvp;                                         
                                                                      
  if ( !ptr )                                                         
    return RTEMS_INVALID_ADDRESS;                                     
ffc08834:	39 20 00 09 	li      r9,9                                   
                                                                      
  if ( !result )                                                      
ffc08838:	41 9e 00 58 	beq-    cr7,ffc08890 <rtems_task_variable_get+0x7c>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  the_thread = _Thread_Get (tid, &location);                          
ffc0883c:	38 81 00 08 	addi    r4,r1,8                                
ffc08840:	90 a1 00 18 	stw     r5,24(r1)                              
ffc08844:	48 00 24 dd 	bl      ffc0ad20 <_Thread_Get>                 
  switch (location) {                                                 
ffc08848:	81 21 00 08 	lwz     r9,8(r1)                               
ffc0884c:	80 a1 00 18 	lwz     r5,24(r1)                              
ffc08850:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08854:	40 9e 00 54 	bne-    cr7,ffc088a8 <rtems_task_variable_get+0x94>
                                                                      
    case OBJECTS_LOCAL:                                               
      /*                                                              
       *  Figure out if the variable is in this task's list.          
       */                                                             
      tvp = the_thread->task_variables;                               
ffc08858:	81 23 01 58 	lwz     r9,344(r3)                             
      while (tvp) {                                                   
ffc0885c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08860:	40 be 00 14 	bne+    cr7,ffc08874 <rtems_task_variable_get+0x60>
ffc08864:	48 00 00 60 	b       ffc088c4 <rtems_task_variable_get+0xb0>
	   */                                                                
          *result = tvp->tval;                                        
          _Thread_Enable_dispatch();                                  
          return RTEMS_SUCCESSFUL;                                    
        }                                                             
        tvp = (rtems_task_variable_t *)tvp->next;                     
ffc08868:	81 29 00 00 	lwz     r9,0(r9)                               
    case OBJECTS_LOCAL:                                               
      /*                                                              
       *  Figure out if the variable is in this task's list.          
       */                                                             
      tvp = the_thread->task_variables;                               
      while (tvp) {                                                   
ffc0886c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08870:	41 9e 00 54 	beq-    cr7,ffc088c4 <rtems_task_variable_get+0xb0><== NEVER TAKEN
        if (tvp->ptr == ptr) {                                        
ffc08874:	81 49 00 04 	lwz     r10,4(r9)                              
ffc08878:	7f 8a f8 00 	cmpw    cr7,r10,r31                            
ffc0887c:	40 9e ff ec 	bne+    cr7,ffc08868 <rtems_task_variable_get+0x54>
	  /*                                                                 
	   * Should this return the current (i.e not the                     
	   * saved) value if `tid' is the current task?                      
	   */                                                                
          *result = tvp->tval;                                        
ffc08880:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc08884:	91 25 00 00 	stw     r9,0(r5)                               
          _Thread_Enable_dispatch();                                  
ffc08888:	48 00 24 7d 	bl      ffc0ad04 <_Thread_Enable_dispatch>     
          return RTEMS_SUCCESSFUL;                                    
ffc0888c:	39 20 00 00 	li      r9,0                                   
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc08890:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc08894:	7d 23 4b 78 	mr      r3,r9                                  
ffc08898:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc0889c:	7c 08 03 a6 	mtlr    r0                                     
ffc088a0:	38 21 00 28 	addi    r1,r1,40                               
ffc088a4:	4e 80 00 20 	blr                                            
ffc088a8:	80 01 00 2c 	lwz     r0,44(r1)                              
#endif                                                                
                                                                      
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
  return RTEMS_INVALID_ID;                                            
ffc088ac:	39 20 00 04 	li      r9,4                                   
}                                                                     
ffc088b0:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc088b4:	7d 23 4b 78 	mr      r3,r9                                  
ffc088b8:	7c 08 03 a6 	mtlr    r0                                     
ffc088bc:	38 21 00 28 	addi    r1,r1,40                               
ffc088c0:	4e 80 00 20 	blr                                            
          _Thread_Enable_dispatch();                                  
          return RTEMS_SUCCESSFUL;                                    
        }                                                             
        tvp = (rtems_task_variable_t *)tvp->next;                     
      }                                                               
      _Thread_Enable_dispatch();                                      
ffc088c4:	48 00 24 41 	bl      ffc0ad04 <_Thread_Enable_dispatch>     
      return RTEMS_INVALID_ADDRESS;                                   
ffc088c8:	39 20 00 09 	li      r9,9                                   
ffc088cc:	4b ff ff c4 	b       ffc08890 <rtems_task_variable_get+0x7c>
                                                                      

ffc08104 <rtems_termios_baud_to_index>: rtems_termios_baud_t termios_baud ) { int baud_index; switch (termios_baud) {
ffc08104:	2f 83 00 09 	cmpwi   cr7,r3,9                               
    case B134:      baud_index =  4;  break;                          
    case B150:      baud_index =  5;  break;                          
    case B200:      baud_index =  6;  break;                          
    case B300:      baud_index =  7;  break;                          
    case B600:      baud_index =  8;  break;                          
    case B1200:     baud_index =  9;  break;                          
ffc08108:	39 20 00 09 	li      r9,9                                   
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc0810c:	41 9e 00 50 	beq-    cr7,ffc0815c <rtems_termios_baud_to_index+0x58>
ffc08110:	2b 83 00 09 	cmplwi  cr7,r3,9                               
ffc08114:	40 9d 00 50 	ble-    cr7,ffc08164 <rtems_termios_baud_to_index+0x60>
ffc08118:	2f 83 00 0e 	cmpwi   cr7,r3,14                              
    case B1200:     baud_index =  9;  break;                          
    case B1800:     baud_index = 10;  break;                          
    case B2400:     baud_index = 11;  break;                          
    case B4800:     baud_index = 12;  break;                          
    case B9600:     baud_index = 13;  break;                          
    case B19200:    baud_index = 14;  break;                          
ffc0811c:	39 20 00 0e 	li      r9,14                                  
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc08120:	41 9e 00 3c 	beq-    cr7,ffc0815c <rtems_termios_baud_to_index+0x58>
ffc08124:	2b 83 00 0e 	cmplwi  cr7,r3,14                              
ffc08128:	40 9d 00 88 	ble-    cr7,ffc081b0 <rtems_termios_baud_to_index+0xac>
ffc0812c:	2f 83 10 02 	cmpwi   cr7,r3,4098                            
    case B4800:     baud_index = 12;  break;                          
    case B9600:     baud_index = 13;  break;                          
    case B19200:    baud_index = 14;  break;                          
    case B38400:    baud_index = 15;  break;                          
    case B57600:    baud_index = 16;  break;                          
    case B115200:   baud_index = 17;  break;                          
ffc08130:	39 20 00 11 	li      r9,17                                  
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc08134:	41 9e 00 28 	beq-    cr7,ffc0815c <rtems_termios_baud_to_index+0x58>
ffc08138:	2b 83 10 02 	cmplwi  cr7,r3,4098                            
ffc0813c:	40 9d 00 e4 	ble-    cr7,ffc08220 <rtems_termios_baud_to_index+0x11c>
ffc08140:	2f 83 10 03 	cmpwi   cr7,r3,4099                            
    case B9600:     baud_index = 13;  break;                          
    case B19200:    baud_index = 14;  break;                          
    case B38400:    baud_index = 15;  break;                          
    case B57600:    baud_index = 16;  break;                          
    case B115200:   baud_index = 17;  break;                          
    case B230400:   baud_index = 18;  break;                          
ffc08144:	39 20 00 12 	li      r9,18                                  
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc08148:	41 9e 00 14 	beq-    cr7,ffc0815c <rtems_termios_baud_to_index+0x58>
ffc0814c:	2f 83 10 04 	cmpwi   cr7,r3,4100                            
    case B19200:    baud_index = 14;  break;                          
    case B38400:    baud_index = 15;  break;                          
    case B57600:    baud_index = 16;  break;                          
    case B115200:   baud_index = 17;  break;                          
    case B230400:   baud_index = 18;  break;                          
    case B460800:   baud_index = 19;  break;                          
ffc08150:	39 20 00 13 	li      r9,19                                  
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc08154:	41 9e 00 08 	beq-    cr7,ffc0815c <rtems_termios_baud_to_index+0x58>
    case B38400:    baud_index = 15;  break;                          
    case B57600:    baud_index = 16;  break;                          
    case B115200:   baud_index = 17;  break;                          
    case B230400:   baud_index = 18;  break;                          
    case B460800:   baud_index = 19;  break;                          
    default:        baud_index = -1;  break;                          
ffc08158:	39 20 ff ff 	li      r9,-1                                  
  }                                                                   
                                                                      
  return baud_index;                                                  
}                                                                     
ffc0815c:	7d 23 4b 78 	mr      r3,r9                                  
ffc08160:	4e 80 00 20 	blr                                            
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc08164:	2f 83 00 04 	cmpwi   cr7,r3,4                               
    case B0:        baud_index =  0;  break;                          
    case B50:       baud_index =  1;  break;                          
    case B75:       baud_index =  2;  break;                          
    case B110:      baud_index =  3;  break;                          
    case B134:      baud_index =  4;  break;                          
ffc08168:	39 20 00 04 	li      r9,4                                   
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc0816c:	41 be ff f0 	beq-    cr7,ffc0815c <rtems_termios_baud_to_index+0x58>
ffc08170:	2b 83 00 04 	cmplwi  cr7,r3,4                               
ffc08174:	40 9d 00 74 	ble-    cr7,ffc081e8 <rtems_termios_baud_to_index+0xe4>
ffc08178:	2f 83 00 06 	cmpwi   cr7,r3,6                               
    case B50:       baud_index =  1;  break;                          
    case B75:       baud_index =  2;  break;                          
    case B110:      baud_index =  3;  break;                          
    case B134:      baud_index =  4;  break;                          
    case B150:      baud_index =  5;  break;                          
    case B200:      baud_index =  6;  break;                          
ffc0817c:	39 20 00 06 	li      r9,6                                   
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc08180:	41 be ff dc 	beq-    cr7,ffc0815c <rtems_termios_baud_to_index+0x58>
ffc08184:	2b 83 00 06 	cmplwi  cr7,r3,6                               
    case B0:        baud_index =  0;  break;                          
    case B50:       baud_index =  1;  break;                          
    case B75:       baud_index =  2;  break;                          
    case B110:      baud_index =  3;  break;                          
    case B134:      baud_index =  4;  break;                          
    case B150:      baud_index =  5;  break;                          
ffc08188:	39 20 00 05 	li      r9,5                                   
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc0818c:	41 bc ff d0 	blt-    cr7,ffc0815c <rtems_termios_baud_to_index+0x58>
ffc08190:	2f 83 00 07 	cmpwi   cr7,r3,7                               
    case B75:       baud_index =  2;  break;                          
    case B110:      baud_index =  3;  break;                          
    case B134:      baud_index =  4;  break;                          
    case B150:      baud_index =  5;  break;                          
    case B200:      baud_index =  6;  break;                          
    case B300:      baud_index =  7;  break;                          
ffc08194:	39 20 00 07 	li      r9,7                                   
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc08198:	41 be ff c4 	beq-    cr7,ffc0815c <rtems_termios_baud_to_index+0x58>
ffc0819c:	2f 83 00 08 	cmpwi   cr7,r3,8                               
    case B110:      baud_index =  3;  break;                          
    case B134:      baud_index =  4;  break;                          
    case B150:      baud_index =  5;  break;                          
    case B200:      baud_index =  6;  break;                          
    case B300:      baud_index =  7;  break;                          
    case B600:      baud_index =  8;  break;                          
ffc081a0:	39 20 00 08 	li      r9,8                                   
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc081a4:	41 be ff b8 	beq-    cr7,ffc0815c <rtems_termios_baud_to_index+0x58><== ALWAYS TAKEN
    case B38400:    baud_index = 15;  break;                          
    case B57600:    baud_index = 16;  break;                          
    case B115200:   baud_index = 17;  break;                          
    case B230400:   baud_index = 18;  break;                          
    case B460800:   baud_index = 19;  break;                          
    default:        baud_index = -1;  break;                          
ffc081a8:	39 20 ff ff 	li      r9,-1                                  <== NOT EXECUTED
ffc081ac:	4b ff ff b0 	b       ffc0815c <rtems_termios_baud_to_index+0x58><== NOT EXECUTED
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc081b0:	2f 83 00 0b 	cmpwi   cr7,r3,11                              
    case B200:      baud_index =  6;  break;                          
    case B300:      baud_index =  7;  break;                          
    case B600:      baud_index =  8;  break;                          
    case B1200:     baud_index =  9;  break;                          
    case B1800:     baud_index = 10;  break;                          
    case B2400:     baud_index = 11;  break;                          
ffc081b4:	39 20 00 0b 	li      r9,11                                  
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc081b8:	41 be ff a4 	beq-    cr7,ffc0815c <rtems_termios_baud_to_index+0x58>
ffc081bc:	2b 83 00 0b 	cmplwi  cr7,r3,11                              
    case B150:      baud_index =  5;  break;                          
    case B200:      baud_index =  6;  break;                          
    case B300:      baud_index =  7;  break;                          
    case B600:      baud_index =  8;  break;                          
    case B1200:     baud_index =  9;  break;                          
    case B1800:     baud_index = 10;  break;                          
ffc081c0:	39 20 00 0a 	li      r9,10                                  
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc081c4:	41 bc ff 98 	blt-    cr7,ffc0815c <rtems_termios_baud_to_index+0x58>
ffc081c8:	2f 83 00 0c 	cmpwi   cr7,r3,12                              
    case B300:      baud_index =  7;  break;                          
    case B600:      baud_index =  8;  break;                          
    case B1200:     baud_index =  9;  break;                          
    case B1800:     baud_index = 10;  break;                          
    case B2400:     baud_index = 11;  break;                          
    case B4800:     baud_index = 12;  break;                          
ffc081cc:	39 20 00 0c 	li      r9,12                                  
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc081d0:	41 be ff 8c 	beq-    cr7,ffc0815c <rtems_termios_baud_to_index+0x58>
ffc081d4:	2f 83 00 0d 	cmpwi   cr7,r3,13                              
    case B600:      baud_index =  8;  break;                          
    case B1200:     baud_index =  9;  break;                          
    case B1800:     baud_index = 10;  break;                          
    case B2400:     baud_index = 11;  break;                          
    case B4800:     baud_index = 12;  break;                          
    case B9600:     baud_index = 13;  break;                          
ffc081d8:	39 20 00 0d 	li      r9,13                                  
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc081dc:	41 be ff 80 	beq-    cr7,ffc0815c <rtems_termios_baud_to_index+0x58><== ALWAYS TAKEN
    case B38400:    baud_index = 15;  break;                          
    case B57600:    baud_index = 16;  break;                          
    case B115200:   baud_index = 17;  break;                          
    case B230400:   baud_index = 18;  break;                          
    case B460800:   baud_index = 19;  break;                          
    default:        baud_index = -1;  break;                          
ffc081e0:	39 20 ff ff 	li      r9,-1                                  <== NOT EXECUTED
ffc081e4:	4b ff ff 78 	b       ffc0815c <rtems_termios_baud_to_index+0x58><== NOT EXECUTED
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc081e8:	2f 83 00 01 	cmpwi   cr7,r3,1                               
    case B0:        baud_index =  0;  break;                          
    case B50:       baud_index =  1;  break;                          
ffc081ec:	39 20 00 01 	li      r9,1                                   
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc081f0:	41 be ff 6c 	beq-    cr7,ffc0815c <rtems_termios_baud_to_index+0x58>
ffc081f4:	2b 83 00 01 	cmplwi  cr7,r3,1                               
    case B0:        baud_index =  0;  break;                          
ffc081f8:	39 20 00 00 	li      r9,0                                   
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc081fc:	41 bc ff 60 	blt-    cr7,ffc0815c <rtems_termios_baud_to_index+0x58>
ffc08200:	2f 83 00 02 	cmpwi   cr7,r3,2                               
    case B0:        baud_index =  0;  break;                          
    case B50:       baud_index =  1;  break;                          
    case B75:       baud_index =  2;  break;                          
ffc08204:	39 20 00 02 	li      r9,2                                   
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc08208:	41 be ff 54 	beq-    cr7,ffc0815c <rtems_termios_baud_to_index+0x58>
ffc0820c:	2f 83 00 03 	cmpwi   cr7,r3,3                               
    case B0:        baud_index =  0;  break;                          
    case B50:       baud_index =  1;  break;                          
    case B75:       baud_index =  2;  break;                          
    case B110:      baud_index =  3;  break;                          
ffc08210:	39 20 00 03 	li      r9,3                                   
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc08214:	41 be ff 48 	beq-    cr7,ffc0815c <rtems_termios_baud_to_index+0x58><== ALWAYS TAKEN
    case B38400:    baud_index = 15;  break;                          
    case B57600:    baud_index = 16;  break;                          
    case B115200:   baud_index = 17;  break;                          
    case B230400:   baud_index = 18;  break;                          
    case B460800:   baud_index = 19;  break;                          
    default:        baud_index = -1;  break;                          
ffc08218:	39 20 ff ff 	li      r9,-1                                  <== NOT EXECUTED
ffc0821c:	4b ff ff 40 	b       ffc0815c <rtems_termios_baud_to_index+0x58><== NOT EXECUTED
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc08220:	2f 83 00 0f 	cmpwi   cr7,r3,15                              
    case B1800:     baud_index = 10;  break;                          
    case B2400:     baud_index = 11;  break;                          
    case B4800:     baud_index = 12;  break;                          
    case B9600:     baud_index = 13;  break;                          
    case B19200:    baud_index = 14;  break;                          
    case B38400:    baud_index = 15;  break;                          
ffc08224:	39 20 00 0f 	li      r9,15                                  
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc08228:	41 be ff 34 	beq-    cr7,ffc0815c <rtems_termios_baud_to_index+0x58>
ffc0822c:	2f 83 10 01 	cmpwi   cr7,r3,4097                            
    case B2400:     baud_index = 11;  break;                          
    case B4800:     baud_index = 12;  break;                          
    case B9600:     baud_index = 13;  break;                          
    case B19200:    baud_index = 14;  break;                          
    case B38400:    baud_index = 15;  break;                          
    case B57600:    baud_index = 16;  break;                          
ffc08230:	39 20 00 10 	li      r9,16                                  
  rtems_termios_baud_t termios_baud                                   
)                                                                     
{                                                                     
  int baud_index;                                                     
                                                                      
  switch (termios_baud) {                                             
ffc08234:	40 9e ff 24 	bne+    cr7,ffc08158 <rtems_termios_baud_to_index+0x54><== NEVER TAKEN
ffc08238:	4b ff ff 24 	b       ffc0815c <rtems_termios_baud_to_index+0x58>
                                                                      

ffc0732c <rtems_termios_close>: rtems_interrupt_enable (level); } rtems_status_code rtems_termios_close (void *arg) {
ffc0732c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc07330:	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(                                        
ffc07334:	38 80 00 00 	li      r4,0                                   
  rtems_interrupt_enable (level);                                     
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
ffc07338:	90 01 00 1c 	stw     r0,28(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(                                        
ffc0733c:	38 a0 00 00 	li      r5,0                                   
  rtems_interrupt_enable (level);                                     
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
ffc07340:	93 c1 00 10 	stw     r30,16(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(                                        
ffc07344:	3f c0 00 00 	lis     r30,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;                   
ffc07348:	81 23 00 00 	lwz     r9,0(r3)                               
  rtems_interrupt_enable (level);                                     
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
ffc0734c:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc07350:	7c 7d 1b 78 	mr      r29,r3                                 
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
ffc07354:	80 7e 28 58 	lwz     r3,10328(r30)                          
  rtems_interrupt_enable (level);                                     
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_close (void *arg)                                       
{                                                                     
ffc07358:	93 e1 00 14 	stw     r31,20(r1)                             
  rtems_libio_open_close_args_t *args = arg;                          
  struct rtems_termios_tty *tty = args->iop->data1;                   
ffc0735c:	83 e9 00 30 	lwz     r31,48(r9)                             
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain(                                        
ffc07360:	48 00 26 c1 	bl      ffc09a20 <rtems_semaphore_obtain>      
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc07364:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07368:	40 9e 01 ac 	bne-    cr7,ffc07514 <rtems_termios_close+0x1e8><== NEVER TAKEN
    rtems_fatal_error_occurred (sc);                                  
  if (--tty->refcount == 0) {                                         
ffc0736c:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc07370:	39 29 ff ff 	addi    r9,r9,-1                               
ffc07374:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07378:	91 3f 00 08 	stw     r9,8(r31)                              
ffc0737c:	40 9e 00 d0 	bne-    cr7,ffc0744c <rtems_termios_close+0x120>
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
ffc07380:	81 3f 00 cc 	lwz     r9,204(r31)                            
ffc07384:	3d 40 00 00 	lis     r10,0                                  
ffc07388:	39 4a 29 38 	addi    r10,r10,10552                          
ffc0738c:	55 29 28 34 	rlwinm  r9,r9,5,0,26                           
ffc07390:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc07394:	81 29 00 04 	lwz     r9,4(r9)                               
ffc07398:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0739c:	41 9e 01 10 	beq-    cr7,ffc074ac <rtems_termios_close+0x180>
      /*                                                              
       * call discipline-specific close                               
       */                                                             
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
ffc073a0:	7d 29 03 a6 	mtctr   r9                                     
ffc073a4:	7f e3 fb 78 	mr      r3,r31                                 
ffc073a8:	4e 80 04 21 	bctrl                                          
      }                                                               
      drainOutput (tty);                                              
      rtems_semaphore_release (tty->osem);                            
    }                                                                 
                                                                      
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
ffc073ac:	81 3f 00 b4 	lwz     r9,180(r31)                            
ffc073b0:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc073b4:	41 9e 01 38 	beq-    cr7,ffc074ec <rtems_termios_close+0x1c0><== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_event_send( tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT );
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
    }                                                                 
    if (tty->device.lastClose)                                        
ffc073b8:	81 3f 00 9c 	lwz     r9,156(r31)                            
ffc073bc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc073c0:	41 9e 00 18 	beq-    cr7,ffc073d8 <rtems_termios_close+0xac><== ALWAYS TAKEN
       (*tty->device.lastClose)(tty->major, tty->minor, arg);         
ffc073c4:	80 7f 00 0c 	lwz     r3,12(r31)                             <== NOT EXECUTED
ffc073c8:	7f a5 eb 78 	mr      r5,r29                                 <== NOT EXECUTED
ffc073cc:	80 9f 00 10 	lwz     r4,16(r31)                             <== NOT EXECUTED
ffc073d0:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc073d4:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
    if (tty->forw == NULL) {                                          
ffc073d8:	81 3f 00 00 	lwz     r9,0(r31)                              
      rtems_termios_ttyTail = tty->back;                              
ffc073dc:	81 5f 00 04 	lwz     r10,4(r31)                             
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
    }                                                                 
    if (tty->device.lastClose)                                        
       (*tty->device.lastClose)(tty->major, tty->minor, arg);         
    if (tty->forw == NULL) {                                          
ffc073e0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc073e4:	41 9e 00 ac 	beq-    cr7,ffc07490 <rtems_termios_close+0x164>
      rtems_termios_ttyTail = tty->back;                              
      if ( rtems_termios_ttyTail != NULL ) {                          
        rtems_termios_ttyTail->forw = NULL;                           
      }                                                               
    } else {                                                          
      tty->forw->back = tty->back;                                    
ffc073e8:	91 49 00 04 	stw     r10,4(r9)                              
ffc073ec:	81 5f 00 04 	lwz     r10,4(r31)                             
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
ffc073f0:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc073f4:	41 9e 00 8c 	beq-    cr7,ffc07480 <rtems_termios_close+0x154><== ALWAYS TAKEN
      rtems_termios_ttyHead = tty->forw;                              
      if ( rtems_termios_ttyHead != NULL ) {                          
        rtems_termios_ttyHead->back = NULL;                           
      }                                                               
    } else {                                                          
      tty->back->forw = tty->forw;                                    
ffc073f8:	91 2a 00 00 	stw     r9,0(r10)                              <== NOT EXECUTED
    }                                                                 
                                                                      
    rtems_semaphore_delete (tty->isem);                               
ffc073fc:	80 7f 00 14 	lwz     r3,20(r31)                             
ffc07400:	48 00 25 2d 	bl      ffc0992c <rtems_semaphore_delete>      
    rtems_semaphore_delete (tty->osem);                               
ffc07404:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc07408:	48 00 25 25 	bl      ffc0992c <rtems_semaphore_delete>      
    rtems_semaphore_delete (tty->rawOutBuf.Semaphore);                
ffc0740c:	80 7f 00 8c 	lwz     r3,140(r31)                            
ffc07410:	48 00 25 1d 	bl      ffc0992c <rtems_semaphore_delete>      
    if ((tty->device.pollRead == NULL) ||                             
ffc07414:	81 3f 00 a0 	lwz     r9,160(r31)                            
ffc07418:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0741c:	41 9e 00 58 	beq-    cr7,ffc07474 <rtems_termios_close+0x148>
ffc07420:	81 3f 00 b4 	lwz     r9,180(r31)                            
ffc07424:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc07428:	41 9e 00 4c 	beq-    cr7,ffc07474 <rtems_termios_close+0x148>
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))    
      rtems_semaphore_delete (tty->rawInBuf.Semaphore);               
    free (tty->rawInBuf.theBuf);                                      
ffc0742c:	80 7f 00 58 	lwz     r3,88(r31)                             
ffc07430:	4b ff d7 39 	bl      ffc04b68 <free>                        
    free (tty->rawOutBuf.theBuf);                                     
ffc07434:	80 7f 00 7c 	lwz     r3,124(r31)                            
ffc07438:	4b ff d7 31 	bl      ffc04b68 <free>                        
    free (tty->cbuf);                                                 
ffc0743c:	80 7f 00 1c 	lwz     r3,28(r31)                             
ffc07440:	4b ff d7 29 	bl      ffc04b68 <free>                        
    free (tty);                                                       
ffc07444:	7f e3 fb 78 	mr      r3,r31                                 
ffc07448:	4b ff d7 21 	bl      ffc04b68 <free>                        
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
ffc0744c:	80 7e 28 58 	lwz     r3,10328(r30)                          
ffc07450:	48 00 27 71 	bl      ffc09bc0 <rtems_semaphore_release>     
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc07454:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc07458:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0745c:	38 60 00 00 	li      r3,0                                   
ffc07460:	7c 08 03 a6 	mtlr    r0                                     
ffc07464:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc07468:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0746c:	38 21 00 18 	addi    r1,r1,24                               
ffc07470:	4e 80 00 20 	blr                                            
    rtems_semaphore_delete (tty->isem);                               
    rtems_semaphore_delete (tty->osem);                               
    rtems_semaphore_delete (tty->rawOutBuf.Semaphore);                
    if ((tty->device.pollRead == NULL) ||                             
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN))    
      rtems_semaphore_delete (tty->rawInBuf.Semaphore);               
ffc07474:	80 7f 00 68 	lwz     r3,104(r31)                            
ffc07478:	48 00 24 b5 	bl      ffc0992c <rtems_semaphore_delete>      
ffc0747c:	4b ff ff b0 	b       ffc0742c <rtems_termios_close+0x100>   
    } else {                                                          
      tty->forw->back = tty->back;                                    
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
      rtems_termios_ttyHead = tty->forw;                              
ffc07480:	3d 00 00 00 	lis     r8,0                                   
      if ( rtems_termios_ttyHead != NULL ) {                          
        rtems_termios_ttyHead->back = NULL;                           
ffc07484:	91 49 00 04 	stw     r10,4(r9)                              
    } else {                                                          
      tty->forw->back = tty->back;                                    
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
      rtems_termios_ttyHead = tty->forw;                              
ffc07488:	91 28 28 60 	stw     r9,10336(r8)                           
ffc0748c:	4b ff ff 70 	b       ffc073fc <rtems_termios_close+0xd0>    
    }                                                                 
    if (tty->device.lastClose)                                        
       (*tty->device.lastClose)(tty->major, tty->minor, arg);         
    if (tty->forw == NULL) {                                          
      rtems_termios_ttyTail = tty->back;                              
      if ( rtems_termios_ttyTail != NULL ) {                          
ffc07490:	2f 8a 00 00 	cmpwi   cr7,r10,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;                              
ffc07494:	3d 00 00 00 	lis     r8,0                                   
ffc07498:	91 48 28 5c 	stw     r10,10332(r8)                          
      if ( rtems_termios_ttyTail != NULL ) {                          
ffc0749c:	41 9e 00 7c 	beq-    cr7,ffc07518 <rtems_termios_close+0x1ec><== ALWAYS TAKEN
        rtems_termios_ttyTail->forw = NULL;                           
ffc074a0:	91 2a 00 00 	stw     r9,0(r10)                              <== NOT EXECUTED
ffc074a4:	81 3f 00 00 	lwz     r9,0(r31)                              <== NOT EXECUTED
ffc074a8:	4b ff ff 50 	b       ffc073f8 <rtems_termios_close+0xcc>    <== NOT EXECUTED
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
    } else {                                                          
      /*                                                              
       * default: just flush output buffer                            
       */                                                             
      sc = rtems_semaphore_obtain(tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc074ac:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc074b0:	38 80 00 00 	li      r4,0                                   
ffc074b4:	38 a0 00 00 	li      r5,0                                   
ffc074b8:	48 00 25 69 	bl      ffc09a20 <rtems_semaphore_obtain>      
      if (sc != RTEMS_SUCCESSFUL) {                                   
ffc074bc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc074c0:	40 9e 00 54 	bne-    cr7,ffc07514 <rtems_termios_close+0x1e8><== NEVER TAKEN
drainOutput (struct rtems_termios_tty *tty)                           
{                                                                     
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
ffc074c4:	81 3f 00 b4 	lwz     r9,180(r31)                            
ffc074c8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc074cc:	41 9e 00 0c 	beq-    cr7,ffc074d8 <rtems_termios_close+0x1ac>
ffc074d0:	7f e3 fb 78 	mr      r3,r31                                 
ffc074d4:	4b ff f9 19 	bl      ffc06dec <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);                            
ffc074d8:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc074dc:	48 00 26 e5 	bl      ffc09bc0 <rtems_semaphore_release>     
    }                                                                 
                                                                      
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
ffc074e0:	81 3f 00 b4 	lwz     r9,180(r31)                            
ffc074e4:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc074e8:	40 9e fe d0 	bne+    cr7,ffc073b8 <rtems_termios_close+0x8c>
      /*                                                              
       * send "terminate" to I/O tasks                                
       */                                                             
      sc = rtems_event_send( tty->rxTaskId, TERMIOS_RX_TERMINATE_EVENT );
ffc074ec:	80 7f 00 c4 	lwz     r3,196(r31)                            
ffc074f0:	38 80 00 01 	li      r4,1                                   
ffc074f4:	48 00 1f c5 	bl      ffc094b8 <rtems_event_send>            
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc074f8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc074fc:	40 9e 00 18 	bne-    cr7,ffc07514 <rtems_termios_close+0x1e8><== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_event_send( tty->txTaskId, TERMIOS_TX_TERMINATE_EVENT );
ffc07500:	80 7f 00 c8 	lwz     r3,200(r31)                            
ffc07504:	38 80 00 01 	li      r4,1                                   
ffc07508:	48 00 1f b1 	bl      ffc094b8 <rtems_event_send>            
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc0750c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07510:	41 9e fe a8 	beq+    cr7,ffc073b8 <rtems_termios_close+0x8c><== ALWAYS TAKEN
        rtems_fatal_error_occurred (sc);                              
ffc07514:	48 00 2e 89 	bl      ffc0a39c <rtems_fatal_error_occurred>  <== NOT EXECUTED
    } else {                                                          
      tty->forw->back = tty->back;                                    
    }                                                                 
                                                                      
    if (tty->back == NULL) {                                          
      rtems_termios_ttyHead = tty->forw;                              
ffc07518:	3d 20 00 00 	lis     r9,0                                   
ffc0751c:	91 49 28 60 	stw     r10,10336(r9)                          
ffc07520:	4b ff fe dc 	b       ffc073fc <rtems_termios_close+0xd0>    
                                                                      

ffc08ce4 <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) {
ffc08ce4:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc08ce8:	7c 08 02 a6 	mflr    r0                                     
ffc08cec:	90 01 00 0c 	stw     r0,12(r1)                              
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
ffc08cf0:	81 03 00 b4 	lwz     r8,180(r3)                             
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
ffc08cf4:	81 43 00 90 	lwz     r10,144(r3)                            
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
ffc08cf8:	2f 88 00 02 	cmpwi   cr7,r8,2                               
  rtems_status_code sc;                                               
                                                                      
  /*                                                                  
   * sum up character count already sent                              
   */                                                                 
  tty->t_dqlen += len;                                                
ffc08cfc:	7c 8a 22 14 	add     r4,r10,r4                              
ffc08d00:	90 83 00 90 	stw     r4,144(r3)                             
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
ffc08d04:	41 9e 00 4c 	beq-    cr7,ffc08d50 <rtems_termios_dequeue_characters+0x6c>
    if (sc != RTEMS_SUCCESSFUL)                                       
      rtems_fatal_error_occurred (sc);                                
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  if (tty->t_line == PPPDISC ) {                                      
ffc08d08:	81 23 00 cc 	lwz     r9,204(r3)                             
ffc08d0c:	2f 89 00 05 	cmpwi   cr7,r9,5                               
ffc08d10:	41 9e 00 14 	beq-    cr7,ffc08d24 <rtems_termios_dequeue_characters+0x40>
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  return rtems_termios_refill_transmitter(tty);                       
}                                                                     
ffc08d14:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc08d18:	38 21 00 08 	addi    r1,r1,8                                
ffc08d1c:	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);                       
ffc08d20:	4b ff dd ec 	b       ffc06b0c <rtems_termios_refill_transmitter>
                                                                      
  if (tty->t_line == PPPDISC ) {                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
ffc08d24:	3d 20 00 00 	lis     r9,0                                   
ffc08d28:	81 29 29 ec 	lwz     r9,10732(r9)                           
ffc08d2c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08d30:	41 9e 00 0c 	beq-    cr7,ffc08d3c <rtems_termios_dequeue_characters+0x58><== NEVER TAKEN
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
ffc08d34:	7d 29 03 a6 	mtctr   r9                                     
ffc08d38:	4e 80 04 21 	bctrl                                          
    }                                                                 
    return 0; /* nothing to output in IRQ... */                       
  }                                                                   
                                                                      
  return rtems_termios_refill_transmitter(tty);                       
}                                                                     
ffc08d3c:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc08d40:	38 60 00 00 	li      r3,0                                   
ffc08d44:	7c 08 03 a6 	mtlr    r0                                     
ffc08d48:	38 21 00 08 	addi    r1,r1,8                                
ffc08d4c:	4e 80 00 20 	blr                                            
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {      
    /*                                                                
     * send wake up to transmitter task                               
     */                                                               
    sc = rtems_event_send(tty->txTaskId, TERMIOS_TX_START_EVENT);     
ffc08d50:	80 63 00 c8 	lwz     r3,200(r3)                             
ffc08d54:	38 80 00 02 	li      r4,2                                   
ffc08d58:	48 00 07 61 	bl      ffc094b8 <rtems_event_send>            
    if (sc != RTEMS_SUCCESSFUL)                                       
ffc08d5c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc08d60:	41 9e ff dc 	beq+    cr7,ffc08d3c <rtems_termios_dequeue_characters+0x58><== ALWAYS TAKEN
      rtems_fatal_error_occurred (sc);                                
ffc08d64:	48 00 16 39 	bl      ffc0a39c <rtems_fatal_error_occurred>  <== NOT EXECUTED
                                                                      

ffc088a8 <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) {
ffc088a8:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc088ac:	7c 08 02 a6 	mflr    r0                                     
ffc088b0:	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) {             
ffc088b4:	81 23 00 cc 	lwz     r9,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)
{                                                                     
ffc088b8:	93 a1 00 24 	stw     r29,36(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) {             
ffc088bc:	3f a0 00 00 	lis     r29,0                                  
ffc088c0:	3b bd 29 38 	addi    r29,r29,10552                          
ffc088c4:	55 29 28 34 	rlwinm  r9,r9,5,0,26                           
 *       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)
{                                                                     
ffc088c8:	93 81 00 20 	stw     r28,32(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) {             
ffc088cc:	7d 3d 4a 14 	add     r9,r29,r9                              
ffc088d0:	81 29 00 10 	lwz     r9,16(r9)                              
 *       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)
{                                                                     
ffc088d4:	7c 9c 23 78 	mr      r28,r4                                 
ffc088d8:	93 e1 00 2c 	stw     r31,44(r1)                             
ffc088dc:	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) {             
ffc088e0:	2f 89 00 00 	cmpwi   cr7,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)
{                                                                     
ffc088e4:	92 c1 00 08 	stw     r22,8(r1)                              
ffc088e8:	92 e1 00 0c 	stw     r23,12(r1)                             
ffc088ec:	93 01 00 10 	stw     r24,16(r1)                             
ffc088f0:	93 21 00 14 	stw     r25,20(r1)                             
ffc088f4:	93 41 00 18 	stw     r26,24(r1)                             
ffc088f8:	93 61 00 1c 	stw     r27,28(r1)                             
ffc088fc:	93 c1 00 28 	stw     r30,40(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) {             
ffc08900:	41 9e 00 b8 	beq-    cr7,ffc089b8 <rtems_termios_enqueue_raw_characters+0x110>
    while (len--) {                                                   
ffc08904:	2f 85 00 00 	cmpwi   cr7,r5,0                               
 * 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)
ffc08908:	3b 65 ff ff 	addi    r27,r5,-1                              
ffc0890c:	3b c0 00 00 	li      r30,0                                  
  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--) {                                                   
ffc08910:	40 be 00 18 	bne+    cr7,ffc08928 <rtems_termios_enqueue_raw_characters+0x80><== ALWAYS TAKEN
ffc08914:	48 00 00 30 	b       ffc08944 <rtems_termios_enqueue_raw_characters+0x9c><== NOT EXECUTED
ffc08918:	81 3f 00 cc 	lwz     r9,204(r31)                            
ffc0891c:	55 29 28 34 	rlwinm  r9,r9,5,0,26                           
ffc08920:	7d 3d 4a 14 	add     r9,r29,r9                              
ffc08924:	81 29 00 10 	lwz     r9,16(r9)                              
      c = *buf++;                                                     
      rtems_termios_linesw[tty->t_line].l_rint(c,tty);                
ffc08928:	7c 7c f0 ae 	lbzx    r3,r28,r30                             
ffc0892c:	7f e4 fb 78 	mr      r4,r31                                 
ffc08930:	7d 29 03 a6 	mtctr   r9                                     
ffc08934:	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--) {                                                   
ffc08938:	7f 9e d8 00 	cmpw    cr7,r30,r27                            
ffc0893c:	3b de 00 01 	addi    r30,r30,1                              
ffc08940:	40 9e ff d8 	bne+    cr7,ffc08918 <rtems_termios_enqueue_raw_characters+0x70>
    }                                                                 
                                                                      
    /*                                                                
     * check to see if rcv wakeup callback was set                    
     */                                                               
    if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 
ffc08944:	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;                                                         
ffc08948:	3b c0 00 00 	li      r30,0                                  
    }                                                                 
                                                                      
    /*                                                                
     * check to see if rcv wakeup callback was set                    
     */                                                               
    if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 
ffc0894c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08950:	40 9e 00 2c 	bne-    cr7,ffc0897c <rtems_termios_enqueue_raw_characters+0xd4><== NEVER TAKEN
ffc08954:	81 3f 00 dc 	lwz     r9,220(r31)                            
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
ffc08958:	3b c0 00 00 	li      r30,0                                  
    }                                                                 
                                                                      
    /*                                                                
     * check to see if rcv wakeup callback was set                    
     */                                                               
    if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) { 
ffc0895c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08960:	41 9e 00 1c 	beq-    cr7,ffc0897c <rtems_termios_enqueue_raw_characters+0xd4>
      (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg);     
ffc08964:	7d 29 03 a6 	mtctr   r9                                     
ffc08968:	38 7f 00 30 	addi    r3,r31,48                              
ffc0896c:	80 9f 00 e0 	lwz     r4,224(r31)                            
ffc08970:	4e 80 04 21 	bctrl                                          
      tty->tty_rcvwakeup = 1;                                         
ffc08974:	39 20 00 01 	li      r9,1                                   
ffc08978:	91 3f 00 e4 	stw     r9,228(r31)                            
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
  return dropped;                                                     
}                                                                     
ffc0897c:	80 01 00 34 	lwz     r0,52(r1)                              
ffc08980:	7f c3 f3 78 	mr      r3,r30                                 
ffc08984:	82 c1 00 08 	lwz     r22,8(r1)                              
ffc08988:	7c 08 03 a6 	mtlr    r0                                     
ffc0898c:	82 e1 00 0c 	lwz     r23,12(r1)                             
ffc08990:	83 01 00 10 	lwz     r24,16(r1)                             
ffc08994:	83 21 00 14 	lwz     r25,20(r1)                             
ffc08998:	83 41 00 18 	lwz     r26,24(r1)                             
ffc0899c:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc089a0:	83 81 00 20 	lwz     r28,32(r1)                             
ffc089a4:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc089a8:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc089ac:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc089b0:	38 21 00 30 	addi    r1,r1,48                               
ffc089b4:	4e 80 00 20 	blr                                            
 * 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)
ffc089b8:	3b 84 ff ff 	addi    r28,r4,-1                              
ffc089bc:	7f 5c 2a 14 	add     r26,r28,r5                             
ffc089c0:	3b 20 00 00 	li      r25,0                                  
ffc089c4:	3b c0 00 00 	li      r30,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); 
ffc089c8:	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);              
ffc089cc:	3a e3 00 4a 	addi    r23,r3,74                              
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
ffc089d0:	7f 9c d0 00 	cmpw    cr7,r28,r26                            
ffc089d4:	41 9e 01 14 	beq-    cr7,ffc08ae8 <rtems_termios_enqueue_raw_characters+0x240>
    c = *buf++;                                                       
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
ffc089d8:	81 3f 00 b8 	lwz     r9,184(r31)                            
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
    c = *buf++;                                                       
ffc089dc:	8f 7c 00 01 	lbzu    r27,1(r28)                             
    /* FIXME: implement IXANY: any character restarts output */       
    /* if incoming XON/XOFF controls outgoing stream: */              
    if (tty->flow_ctrl & FL_MDXON) {                                  
ffc089e0:	71 2a 02 00 	andi.   r10,r9,512                             
ffc089e4:	41 82 00 1c 	beq-    ffc08a00 <rtems_termios_enqueue_raw_characters+0x158>
      /* if received char is V_STOP and V_START (both are equal value) */
      if (c == tty->termios.c_cc[VSTOP]) {                            
ffc089e8:	89 3f 00 4a 	lbz     r9,74(r31)                             
ffc089ec:	7f 89 d8 00 	cmpw    cr7,r9,r27                             
ffc089f0:	41 9e 01 48 	beq-    cr7,ffc08b38 <rtems_termios_enqueue_raw_characters+0x290>
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
        }                                                             
        flow_rcv = true;                                              
      }                                                               
      else if (c == tty->termios.c_cc[VSTART]) {                      
ffc089f4:	89 3f 00 49 	lbz     r9,73(r31)                             
ffc089f8:	7f 89 d8 00 	cmpw    cr7,r9,r27                             
ffc089fc:	41 9e 01 c8 	beq-    cr7,ffc08bc4 <rtems_termios_enqueue_raw_characters+0x31c><== NEVER TAKEN
        /* restart output  */                                         
        tty->flow_ctrl &= ~FL_ORCVXOF;                                
        flow_rcv = true;                                              
      }                                                               
    }                                                                 
    if (flow_rcv) {                                                   
ffc08a00:	2f 99 00 00 	cmpwi   cr7,r25,0                              
ffc08a04:	40 9e 01 50 	bne-    cr7,ffc08b54 <rtems_termios_enqueue_raw_characters+0x2ac><== NEVER TAKEN
        }                                                             
        /* reenable interrupts */                                     
        rtems_interrupt_enable(level);                                
      }                                                               
    } else {                                                          
      newTail = (tty->rawInBuf.Tail + 1) % tty->rawInBuf.Size;        
ffc08a08:	81 3f 00 60 	lwz     r9,96(r31)                             
ffc08a0c:	81 5f 00 64 	lwz     r10,100(r31)                           
ffc08a10:	39 29 00 01 	addi    r9,r9,1                                
ffc08a14:	7f a9 53 96 	divwu   r29,r9,r10                             
ffc08a18:	7f bd 51 d6 	mullw   r29,r29,r10                            
ffc08a1c:	7f bd 48 50 	subf    r29,r29,r9                             
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc08a20:	7e c0 00 a6 	mfmsr   r22                                    
ffc08a24:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc08a28:	7e c9 48 78 	andc    r9,r22,r9                              
ffc08a2c:	7d 20 01 24 	mtmsr   r9                                     
      /* if chars_in_buffer > highwater                */             
      rtems_interrupt_disable(level);                                 
      if ((((newTail - tty->rawInBuf.Head + tty->rawInBuf.Size)       
ffc08a30:	81 3f 00 5c 	lwz     r9,92(r31)                             
ffc08a34:	81 1f 00 64 	lwz     r8,100(r31)                            
            % tty->rawInBuf.Size) > tty->highwater) &&                
ffc08a38:	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)       
ffc08a3c:	7d 29 40 50 	subf    r9,r9,r8                               
ffc08a40:	81 1f 00 c0 	lwz     r8,192(r31)                            
ffc08a44:	7d 29 ea 14 	add     r9,r9,r29                              
            % tty->rawInBuf.Size) > tty->highwater) &&                
ffc08a48:	7c e9 53 96 	divwu   r7,r9,r10                              
ffc08a4c:	7d 47 51 d6 	mullw   r10,r7,r10                             
ffc08a50:	7d 2a 48 50 	subf    r9,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)       
ffc08a54:	7f 89 40 40 	cmplw   cr7,r9,r8                              
ffc08a58:	40 9d 00 3c 	ble-    cr7,ffc08a94 <rtems_termios_enqueue_raw_characters+0x1ec><== ALWAYS TAKEN
            % tty->rawInBuf.Size) > tty->highwater) &&                
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
ffc08a5c:	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) &&                
ffc08a60:	71 2a 00 01 	andi.   r10,r9,1                               <== NOT EXECUTED
ffc08a64:	40 82 00 30 	bne-    ffc08a94 <rtems_termios_enqueue_raw_characters+0x1ec><== NOT EXECUTED
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
        /* incoming data stream should be stopped */                  
        tty->flow_ctrl |= FL_IREQXOF;                                 
ffc08a68:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc08a6c:	61 29 00 01 	ori     r9,r9,1                                <== NOT EXECUTED
ffc08a70:	91 3f 00 b8 	stw     r9,184(r31)                            <== NOT EXECUTED
        if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))                
ffc08a74:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc08a78:	71 29 04 02 	andi.   r9,r9,1026                             <== NOT EXECUTED
ffc08a7c:	2f 89 04 00 	cmpwi   cr7,r9,1024                            <== NOT EXECUTED
            ==                (FL_MDXOF             ) ) {             
          if ((tty->flow_ctrl & FL_OSTOP) ||                          
ffc08a80:	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))                
ffc08a84:	41 9e 01 64 	beq-    cr7,ffc08be8 <rtems_termios_enqueue_raw_characters+0x340><== NOT EXECUTED
            /*    call write function here                 */         
            tty->flow_ctrl |= FL_ISNTXOF;                             
            (*tty->device.write)(tty->minor,                          
                (void *)&(tty->termios.c_cc[VSTOP]), 1);              
          }                                                           
        } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS) ) {
ffc08a88:	71 29 01 04 	andi.   r9,r9,260                              <== NOT EXECUTED
ffc08a8c:	2f 89 01 00 	cmpwi   cr7,r9,256                             <== NOT EXECUTED
ffc08a90:	41 9e 01 94 	beq-    cr7,ffc08c24 <rtems_termios_enqueue_raw_characters+0x37c><== NOT EXECUTED
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc08a94:	7e c0 01 24 	mtmsr   r22                                    
      }                                                               
                                                                      
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
ffc08a98:	81 3f 00 5c 	lwz     r9,92(r31)                             
ffc08a9c:	7f 89 e8 00 	cmpw    cr7,r9,r29                             
ffc08aa0:	41 9e 01 1c 	beq-    cr7,ffc08bbc <rtems_termios_enqueue_raw_characters+0x314><== NEVER TAKEN
        dropped++;                                                    
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
ffc08aa4:	81 3f 00 58 	lwz     r9,88(r31)                             
ffc08aa8:	7f 69 e9 ae 	stbx    r27,r9,r29                             
        tty->rawInBuf.Tail = newTail;                                 
                                                                      
        /*                                                            
         * check to see if rcv wakeup callback was set                
         */                                                           
        if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
ffc08aac:	81 3f 00 e4 	lwz     r9,228(r31)                            
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
        dropped++;                                                    
      } else {                                                        
        tty->rawInBuf.theBuf[newTail] = c;                            
        tty->rawInBuf.Tail = newTail;                                 
ffc08ab0:	93 bf 00 60 	stw     r29,96(r31)                            
                                                                      
        /*                                                            
         * check to see if rcv wakeup callback was set                
         */                                                           
        if (( !tty->tty_rcvwakeup ) && ( tty->tty_rcv.sw_pfn != NULL )) {
ffc08ab4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08ab8:	40 be ff 18 	bne-    cr7,ffc089d0 <rtems_termios_enqueue_raw_characters+0x128><== NEVER TAKEN
ffc08abc:	81 3f 00 dc 	lwz     r9,220(r31)                            
ffc08ac0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08ac4:	41 be ff 0c 	beq-    cr7,ffc089d0 <rtems_termios_enqueue_raw_characters+0x128><== ALWAYS TAKEN
          (*tty->tty_rcv.sw_pfn)(&tty->termios, tty->tty_rcv.sw_arg); 
ffc08ac8:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc08acc:	7f 03 c3 78 	mr      r3,r24                                 <== NOT EXECUTED
ffc08ad0:	80 9f 00 e0 	lwz     r4,224(r31)                            <== NOT EXECUTED
ffc08ad4:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
ffc08ad8:	7f 9c d0 00 	cmpw    cr7,r28,r26                            <== NOT EXECUTED
        /*                                                            
         * 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); 
          tty->tty_rcvwakeup = 1;                                     
ffc08adc:	39 20 00 01 	li      r9,1                                   <== NOT EXECUTED
ffc08ae0:	91 3f 00 e4 	stw     r9,228(r31)                            <== NOT EXECUTED
      tty->tty_rcvwakeup = 1;                                         
        }                                                             
    return 0;                                                         
  }                                                                   
                                                                      
  while (len--) {                                                     
ffc08ae4:	40 9e fe f4 	bne+    cr7,ffc089d8 <rtems_termios_enqueue_raw_characters+0x130><== NOT EXECUTED
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
ffc08ae8:	81 3f 00 78 	lwz     r9,120(r31)                            
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
ffc08aec:	80 7f 00 68 	lwz     r3,104(r31)                            
        }                                                             
      }                                                               
    }                                                                 
  }                                                                   
                                                                      
  tty->rawInBufDropped += dropped;                                    
ffc08af0:	7d 29 f2 14 	add     r9,r9,r30                              
ffc08af4:	91 3f 00 78 	stw     r9,120(r31)                            
  rtems_semaphore_release (tty->rawInBuf.Semaphore);                  
ffc08af8:	48 00 10 c9 	bl      ffc09bc0 <rtems_semaphore_release>     
  return dropped;                                                     
}                                                                     
ffc08afc:	80 01 00 34 	lwz     r0,52(r1)                              
ffc08b00:	7f c3 f3 78 	mr      r3,r30                                 
ffc08b04:	82 c1 00 08 	lwz     r22,8(r1)                              
ffc08b08:	7c 08 03 a6 	mtlr    r0                                     
ffc08b0c:	82 e1 00 0c 	lwz     r23,12(r1)                             
ffc08b10:	83 01 00 10 	lwz     r24,16(r1)                             
ffc08b14:	83 21 00 14 	lwz     r25,20(r1)                             
ffc08b18:	83 41 00 18 	lwz     r26,24(r1)                             
ffc08b1c:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc08b20:	83 81 00 20 	lwz     r28,32(r1)                             
ffc08b24:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc08b28:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc08b2c:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc08b30:	38 21 00 30 	addi    r1,r1,48                               
ffc08b34:	4e 80 00 20 	blr                                            
    /* 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]) {                         
ffc08b38:	89 5f 00 49 	lbz     r10,73(r31)                            
ffc08b3c:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
          /* received VSTOP and VSTART==VSTOP? */                     
          /* then toggle "stop output" status  */                     
          tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;               
ffc08b40:	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]) {                         
ffc08b44:	41 9e 00 94 	beq-    cr7,ffc08bd8 <rtems_termios_enqueue_raw_characters+0x330><== NEVER TAKEN
          tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;               
        }                                                             
        else {                                                        
          /* VSTOP received (other code than VSTART) */               
          /* stop output                             */               
          tty->flow_ctrl |= FL_ORCVXOF;                               
ffc08b48:	61 29 00 10 	ori     r9,r9,16                               
ffc08b4c:	91 3f 00 b8 	stw     r9,184(r31)                            
 * 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)
ffc08b50:	3b 20 00 01 	li      r25,1                                  
        flow_rcv = true;                                              
      }                                                               
    }                                                                 
    if (flow_rcv) {                                                   
      /* restart output according to FL_ORCVXOF flag */               
      if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {   
ffc08b54:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc08b58:	55 29 06 b6 	rlwinm  r9,r9,0,26,27                          
ffc08b5c:	2f 89 00 20 	cmpwi   cr7,r9,32                              
ffc08b60:	40 9e fe 70 	bne+    cr7,ffc089d0 <rtems_termios_enqueue_raw_characters+0x128><== ALWAYS TAKEN
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc08b64:	7f a0 00 a6 	mfmsr   r29                                    <== NOT EXECUTED
ffc08b68:	7d 30 42 a6 	mfsprg  r9,0                                   <== NOT EXECUTED
ffc08b6c:	7f a9 48 78 	andc    r9,r29,r9                              <== NOT EXECUTED
ffc08b70:	7d 20 01 24 	mtmsr   r9                                     <== NOT EXECUTED
        /* disable interrupts    */                                   
        rtems_interrupt_disable(level);                               
        tty->flow_ctrl &= ~FL_OSTOP;                                  
        /* check for chars in output buffer (or rob_state?) */        
        if (tty->rawOutBufState != rob_idle) {                        
ffc08b74:	81 3f 00 94 	lwz     r9,148(r31)                            <== NOT EXECUTED
    if (flow_rcv) {                                                   
      /* restart output according to FL_ORCVXOF flag */               
      if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {   
        /* disable interrupts    */                                   
        rtems_interrupt_disable(level);                               
        tty->flow_ctrl &= ~FL_OSTOP;                                  
ffc08b78:	81 5f 00 b8 	lwz     r10,184(r31)                           <== NOT EXECUTED
        /* check for chars in output buffer (or rob_state?) */        
        if (tty->rawOutBufState != rob_idle) {                        
ffc08b7c:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
    if (flow_rcv) {                                                   
      /* restart output according to FL_ORCVXOF flag */               
      if ((tty->flow_ctrl & (FL_ORCVXOF | FL_OSTOP)) == FL_OSTOP) {   
        /* disable interrupts    */                                   
        rtems_interrupt_disable(level);                               
        tty->flow_ctrl &= ~FL_OSTOP;                                  
ffc08b80:	55 4a 06 f2 	rlwinm  r10,r10,0,27,25                        <== NOT EXECUTED
ffc08b84:	91 5f 00 b8 	stw     r10,184(r31)                           <== NOT EXECUTED
        /* check for chars in output buffer (or rob_state?) */        
        if (tty->rawOutBufState != rob_idle) {                        
ffc08b88:	40 9e 00 0c 	bne-    cr7,ffc08b94 <rtems_termios_enqueue_raw_characters+0x2ec><== NOT EXECUTED
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc08b8c:	7f a0 01 24 	mtmsr   r29                                    <== NOT EXECUTED
ffc08b90:	4b ff fe 40 	b       ffc089d0 <rtems_termios_enqueue_raw_characters+0x128><== NOT EXECUTED
          /* if chars available, call write function... */            
          (*tty->device.write)(                                       
            tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail], 1);
ffc08b94:	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)(                                       
ffc08b98:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc08b9c:	81 5f 00 7c 	lwz     r10,124(r31)                           <== NOT EXECUTED
ffc08ba0:	81 3f 00 a4 	lwz     r9,164(r31)                            <== NOT EXECUTED
ffc08ba4:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc08ba8:	7c 8a 22 14 	add     r4,r10,r4                              <== NOT EXECUTED
ffc08bac:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc08bb0:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc08bb4:	7f a0 01 24 	mtmsr   r29                                    <== NOT EXECUTED
ffc08bb8:	4b ff fe 18 	b       ffc089d0 <rtems_termios_enqueue_raw_characters+0x128><== NOT EXECUTED
                                                                      
      /* reenable interrupts */                                       
      rtems_interrupt_enable(level);                                  
                                                                      
      if (newTail == tty->rawInBuf.Head) {                            
        dropped++;                                                    
ffc08bbc:	3b de 00 01 	addi    r30,r30,1                              <== NOT EXECUTED
ffc08bc0:	4b ff fe 10 	b       ffc089d0 <rtems_termios_enqueue_raw_characters+0x128><== NOT EXECUTED
        flow_rcv = true;                                              
      }                                                               
      else if (c == tty->termios.c_cc[VSTART]) {                      
        /* VSTART received */                                         
        /* restart output  */                                         
        tty->flow_ctrl &= ~FL_ORCVXOF;                                
ffc08bc4:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
 * NOTE: This routine runs in the context of the                      
 *       device receive interrupt handler.                            
 * Returns the number of characters dropped because of overflow.      
 */                                                                   
int                                                                   
rtems_termios_enqueue_raw_characters (void *ttyp, const char *buf, int len)
ffc08bc8:	3b 20 00 01 	li      r25,1                                  <== NOT EXECUTED
        flow_rcv = true;                                              
      }                                                               
      else if (c == tty->termios.c_cc[VSTART]) {                      
        /* VSTART received */                                         
        /* restart output  */                                         
        tty->flow_ctrl &= ~FL_ORCVXOF;                                
ffc08bcc:	55 29 07 34 	rlwinm  r9,r9,0,28,26                          <== NOT EXECUTED
ffc08bd0:	91 3f 00 b8 	stw     r9,184(r31)                            <== NOT EXECUTED
ffc08bd4:	4b ff ff 80 	b       ffc08b54 <rtems_termios_enqueue_raw_characters+0x2ac><== NOT EXECUTED
      /* if received char is V_STOP and V_START (both are equal value) */
      if (c == tty->termios.c_cc[VSTOP]) {                            
        if (c == tty->termios.c_cc[VSTART]) {                         
          /* received VSTOP and VSTART==VSTOP? */                     
          /* then toggle "stop output" status  */                     
          tty->flow_ctrl = tty->flow_ctrl ^ FL_ORCVXOF;               
ffc08bd8:	69 29 00 10 	xori    r9,r9,16                               <== NOT EXECUTED
ffc08bdc:	91 3f 00 b8 	stw     r9,184(r31)                            <== NOT EXECUTED
 * NOTE: This routine runs in the context of the                      
 *       device receive interrupt handler.                            
 * Returns the number of characters dropped because of overflow.      
 */                                                                   
int                                                                   
rtems_termios_enqueue_raw_characters (void *ttyp, const char *buf, int len)
ffc08be0:	3b 20 00 01 	li      r25,1                                  <== NOT EXECUTED
ffc08be4:	4b ff ff 70 	b       ffc08b54 <rtems_termios_enqueue_raw_characters+0x2ac><== NOT EXECUTED
          !(tty->flow_ctrl & FL_IREQXOF)) {                           
        /* incoming data stream should be stopped */                  
        tty->flow_ctrl |= FL_IREQXOF;                                 
        if ((tty->flow_ctrl & (FL_MDXOF | FL_ISNTXOF))                
            ==                (FL_MDXOF             ) ) {             
          if ((tty->flow_ctrl & FL_OSTOP) ||                          
ffc08be8:	71 2a 00 20 	andi.   r10,r9,32                              <== NOT EXECUTED
ffc08bec:	40 82 00 10 	bne-    ffc08bfc <rtems_termios_enqueue_raw_characters+0x354><== NOT EXECUTED
ffc08bf0:	81 3f 00 94 	lwz     r9,148(r31)                            <== NOT EXECUTED
ffc08bf4:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc08bf8:	40 be fe 9c 	bne-    cr7,ffc08a94 <rtems_termios_enqueue_raw_characters+0x1ec><== 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;                             
ffc08bfc:	81 5f 00 b8 	lwz     r10,184(r31)                           <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
ffc08c00:	7e e4 bb 78 	mr      r4,r23                                 <== NOT EXECUTED
ffc08c04:	81 3f 00 a4 	lwz     r9,164(r31)                            <== NOT EXECUTED
ffc08c08:	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;                             
ffc08c0c:	61 4a 00 02 	ori     r10,r10,2                              <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
ffc08c10:	80 7f 00 10 	lwz     r3,16(r31)                             <== 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;                             
ffc08c14:	91 5f 00 b8 	stw     r10,184(r31)                           <== NOT EXECUTED
            (*tty->device.write)(tty->minor,                          
ffc08c18:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc08c1c:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc08c20:	4b ff fe 74 	b       ffc08a94 <rtems_termios_enqueue_raw_characters+0x1ec><== NOT EXECUTED
                (void *)&(tty->termios.c_cc[VSTOP]), 1);              
          }                                                           
        } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS) ) {
          tty->flow_ctrl |= FL_IRTSOFF;                               
          /* deactivate RTS line */                                   
          if (tty->device.stopRemoteTx != NULL) {                     
ffc08c24:	81 3f 00 ac 	lwz     r9,172(r31)                            <== NOT EXECUTED
            tty->flow_ctrl |= FL_ISNTXOF;                             
            (*tty->device.write)(tty->minor,                          
                (void *)&(tty->termios.c_cc[VSTOP]), 1);              
          }                                                           
        } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS) ) {
          tty->flow_ctrl |= FL_IRTSOFF;                               
ffc08c28:	81 5f 00 b8 	lwz     r10,184(r31)                           <== NOT EXECUTED
          /* deactivate RTS line */                                   
          if (tty->device.stopRemoteTx != NULL) {                     
ffc08c2c:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
            tty->flow_ctrl |= FL_ISNTXOF;                             
            (*tty->device.write)(tty->minor,                          
                (void *)&(tty->termios.c_cc[VSTOP]), 1);              
          }                                                           
        } else if ((tty->flow_ctrl & (FL_MDRTS | FL_IRTSOFF)) == (FL_MDRTS) ) {
          tty->flow_ctrl |= FL_IRTSOFF;                               
ffc08c30:	61 4a 00 04 	ori     r10,r10,4                              <== NOT EXECUTED
ffc08c34:	91 5f 00 b8 	stw     r10,184(r31)                           <== NOT EXECUTED
          /* deactivate RTS line */                                   
          if (tty->device.stopRemoteTx != NULL) {                     
ffc08c38:	41 be fe 5c 	beq-    cr7,ffc08a94 <rtems_termios_enqueue_raw_characters+0x1ec><== NOT EXECUTED
            tty->device.stopRemoteTx(tty->minor);                     
ffc08c3c:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc08c40:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc08c44:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc08c48:	4b ff fe 4c 	b       ffc08a94 <rtems_termios_enqueue_raw_characters+0x1ec><== NOT EXECUTED
                                                                      

ffc07540 <rtems_termios_ioctl>: } } rtems_status_code rtems_termios_ioctl (void *arg) {
ffc07540:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc07544:	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);
ffc07548:	38 80 00 00 	li      r4,0                                   
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
ffc0754c:	90 01 00 24 	stw     r0,36(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);
ffc07550:	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;                   
ffc07554:	81 23 00 00 	lwz     r9,0(r3)                               
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
ffc07558:	93 c1 00 18 	stw     r30,24(r1)                             
  rtems_libio_ioctl_args_t *args = arg;                               
  struct rtems_termios_tty *tty = args->iop->data1;                   
ffc0755c:	83 c9 00 30 	lwz     r30,48(r9)                             
  struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer;
  rtems_status_code sc;                                               
                                                                      
  args->ioctl_return = 0;                                             
ffc07560:	39 20 00 00 	li      r9,0                                   
  }                                                                   
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_ioctl (void *arg)                                       
{                                                                     
ffc07564:	93 81 00 10 	stw     r28,16(r1)                             
ffc07568:	93 a1 00 14 	stw     r29,20(r1)                             
ffc0756c:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc07570:	7c 7f 1b 78 	mr      r31,r3                                 
ffc07574:	93 61 00 0c 	stw     r27,12(r1)                             
  rtems_libio_ioctl_args_t *args = arg;                               
  struct rtems_termios_tty *tty = args->iop->data1;                   
  struct ttywakeup         *wakeup = (struct ttywakeup *)args->buffer;
  rtems_status_code sc;                                               
                                                                      
  args->ioctl_return = 0;                                             
ffc07578:	91 23 00 0c 	stw     r9,12(r3)                              
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc0757c:	80 7e 00 18 	lwz     r3,24(r30)                             
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;
ffc07580:	83 9f 00 08 	lwz     r28,8(r31)                             
  rtems_status_code sc;                                               
                                                                      
  args->ioctl_return = 0;                                             
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc07584:	48 00 24 9d 	bl      ffc09a20 <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL) {                                       
ffc07588:	7c 7d 1b 79 	mr.     r29,r3                                 
ffc0758c:	40 82 00 84 	bne-    ffc07610 <rtems_termios_ioctl+0xd0>    <== NEVER TAKEN
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
ffc07590:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc07594:	2f 89 00 05 	cmpwi   cr7,r9,5                               
ffc07598:	41 9e 00 60 	beq-    cr7,ffc075f8 <rtems_termios_ioctl+0xb8>
ffc0759c:	2b 89 00 05 	cmplwi  cr7,r9,5                               
ffc075a0:	41 9d 00 98 	bgt-    cr7,ffc07638 <rtems_termios_ioctl+0xf8>
ffc075a4:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc075a8:	41 9e 00 ec 	beq-    cr7,ffc07694 <rtems_termios_ioctl+0x154>
ffc075ac:	2b 89 00 02 	cmplwi  cr7,r9,2                               
ffc075b0:	41 9d 02 fc 	bgt-    cr7,ffc078ac <rtems_termios_ioctl+0x36c>
ffc075b4:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc075b8:	41 9e 03 40 	beq-    cr7,ffc078f8 <rtems_termios_ioctl+0x3b8><== ALWAYS TAKEN
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
ffc075bc:	81 3e 00 cc 	lwz     r9,204(r30)                            
ffc075c0:	3d 40 00 00 	lis     r10,0                                  
ffc075c4:	39 4a 29 38 	addi    r10,r10,10552                          
ffc075c8:	55 29 28 34 	rlwinm  r9,r9,5,0,26                           
ffc075cc:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc075d0:	81 29 00 18 	lwz     r9,24(r9)                              
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
    }                                                                 
    else {                                                            
      sc = RTEMS_INVALID_NUMBER;                                      
ffc075d4:	3b a0 00 0a 	li      r29,10                                 
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
  default:                                                            
    if (rtems_termios_linesw[tty->t_line].l_ioctl != NULL) {          
ffc075d8:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc075dc:	41 9e 00 2c 	beq-    cr7,ffc07608 <rtems_termios_ioctl+0xc8>
      sc = rtems_termios_linesw[tty->t_line].l_ioctl(tty,args);       
ffc075e0:	7f c3 f3 78 	mr      r3,r30                                 
ffc075e4:	7d 29 03 a6 	mtctr   r9                                     
ffc075e8:	7f e4 fb 78 	mr      r4,r31                                 
ffc075ec:	4e 80 04 21 	bctrl                                          
ffc075f0:	7c 7d 1b 78 	mr      r29,r3                                 
ffc075f4:	48 00 00 14 	b       ffc07608 <rtems_termios_ioctl+0xc8>    
        break;                                                        
    }                                                                 
    break;                                                            
                                                                      
  case RTEMS_IO_SNDWAKEUP:                                            
    tty->tty_snd = *wakeup;                                           
ffc075f8:	81 3c 00 00 	lwz     r9,0(r28)                              
ffc075fc:	81 5c 00 04 	lwz     r10,4(r28)                             
ffc07600:	91 3e 00 d4 	stw     r9,212(r30)                            
ffc07604:	91 5e 00 d8 	stw     r10,216(r30)                           
      *(int *)args->buffer = tty->ccount - tty->cindex + rawnc;       
    }                                                                 
    break;                                                            
  }                                                                   
                                                                      
  rtems_semaphore_release (tty->osem);                                
ffc07608:	80 7e 00 18 	lwz     r3,24(r30)                             
ffc0760c:	48 00 25 b5 	bl      ffc09bc0 <rtems_semaphore_release>     
  return sc;                                                          
}                                                                     
ffc07610:	80 01 00 24 	lwz     r0,36(r1)                              
ffc07614:	7f a3 eb 78 	mr      r3,r29                                 
ffc07618:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0761c:	7c 08 03 a6 	mtlr    r0                                     
ffc07620:	83 81 00 10 	lwz     r28,16(r1)                             
ffc07624:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc07628:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc0762c:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc07630:	38 21 00 20 	addi    r1,r1,32                               
ffc07634:	4e 80 00 20 	blr                                            
  args->ioctl_return = 0;                                             
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
ffc07638:	3d 40 40 04 	lis     r10,16388                              
ffc0763c:	61 4a 66 7f 	ori     r10,r10,26239                          
ffc07640:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc07644:	41 9e 01 bc 	beq-    cr7,ffc07800 <rtems_termios_ioctl+0x2c0><== NEVER TAKEN
ffc07648:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc0764c:	41 9d 01 e0 	bgt-    cr7,ffc0782c <rtems_termios_ioctl+0x2ec>
ffc07650:	2f 89 00 06 	cmpwi   cr7,r9,6                               
ffc07654:	40 9e ff 68 	bne+    cr7,ffc075bc <rtems_termios_ioctl+0x7c>
  case RTEMS_IO_TCDRAIN:                                              
    drainOutput (tty);                                                
    break;                                                            
                                                                      
  case RTEMS_IO_TCFLUSH:                                              
    switch ((intptr_t) args->buffer) {                                
ffc07658:	81 3f 00 08 	lwz     r9,8(r31)                              
ffc0765c:	2f 89 00 01 	cmpwi   cr7,r9,1                               
ffc07660:	41 9e 02 f4 	beq-    cr7,ffc07954 <rtems_termios_ioctl+0x414>
ffc07664:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc07668:	41 9e 03 5c 	beq-    cr7,ffc079c4 <rtems_termios_ioctl+0x484>
ffc0766c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07670:	40 9e 03 4c 	bne-    cr7,ffc079bc <rtems_termios_ioctl+0x47c>
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc07674:	7d 20 00 a6 	mfmsr   r9                                     
ffc07678:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc0767c:	7d 2a 50 78 	andc    r10,r9,r10                             
ffc07680:	7d 40 01 24 	mtmsr   r10                                    
flushInput (struct rtems_termios_tty *tty)                            
{                                                                     
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable (level);                                    
  tty->rawInBuf.Tail = 0;                                             
ffc07684:	93 be 00 60 	stw     r29,96(r30)                            
  tty->rawInBuf.Head = 0;                                             
ffc07688:	93 be 00 5c 	stw     r29,92(r30)                            
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0768c:	7d 20 01 24 	mtmsr   r9                                     
ffc07690:	4b ff ff 78 	b       ffc07608 <rtems_termios_ioctl+0xc8>    
  case RTEMS_IO_GET_ATTRIBUTES:                                       
    *(struct termios *)args->buffer = tty->termios;                   
    break;                                                            
                                                                      
  case RTEMS_IO_SET_ATTRIBUTES:                                       
    tty->termios = *(struct termios *)args->buffer;                   
ffc07694:	3b 9e 00 30 	addi    r28,r30,48                             
ffc07698:	80 9f 00 08 	lwz     r4,8(r31)                              
ffc0769c:	7f 83 e3 78 	mr      r3,r28                                 
ffc076a0:	38 a0 00 24 	li      r5,36                                  
ffc076a4:	48 00 c6 d9 	bl      ffc13d7c <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) &&                                 
ffc076a8:	81 3e 00 b8 	lwz     r9,184(r30)                            
ffc076ac:	71 2a 02 00 	andi.   r10,r9,512                             
ffc076b0:	41 82 00 58 	beq-    ffc07708 <rtems_termios_ioctl+0x1c8>   
      !(tty->termios.c_iflag & IXON)) {                               
ffc076b4:	81 3e 00 30 	lwz     r9,48(r30)                             
  /*                                                                  
   * check for flow control options to be switched off                
   */                                                                 
                                                                      
  /* check for outgoing XON/XOFF flow control switched off */         
  if (( tty->flow_ctrl & FL_MDXON) &&                                 
ffc076b8:	71 2a 04 00 	andi.   r10,r9,1024                            
ffc076bc:	40 82 00 4c 	bne-    ffc07708 <rtems_termios_ioctl+0x1c8>   
      !(tty->termios.c_iflag & IXON)) {                               
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXON | FL_ORCVXOF);                       
ffc076c0:	81 5e 00 b8 	lwz     r10,184(r30)                           
ffc076c4:	39 20 fd ef 	li      r9,-529                                
ffc076c8:	7d 49 48 38 	and     r9,r10,r9                              
ffc076cc:	91 3e 00 b8 	stw     r9,184(r30)                            
                                                                      
    /* has output been stopped due to received XOFF? */               
    if (tty->flow_ctrl & FL_OSTOP) {                                  
ffc076d0:	81 3e 00 b8 	lwz     r9,184(r30)                            
ffc076d4:	71 2a 00 20 	andi.   r10,r9,32                              
ffc076d8:	41 82 00 30 	beq-    ffc07708 <rtems_termios_ioctl+0x1c8>   <== ALWAYS TAKEN
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc076dc:	7f e0 00 a6 	mfmsr   r31                                    <== NOT EXECUTED
ffc076e0:	7d 30 42 a6 	mfsprg  r9,0                                   <== NOT EXECUTED
ffc076e4:	7f e9 48 78 	andc    r9,r31,r9                              <== NOT EXECUTED
ffc076e8:	7d 20 01 24 	mtmsr   r9                                     <== NOT EXECUTED
      /* disable interrupts    */                                     
      rtems_interrupt_disable(level);                                 
      tty->flow_ctrl &= ~FL_OSTOP;                                    
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
ffc076ec:	81 3e 00 94 	lwz     r9,148(r30)                            <== NOT EXECUTED
                                                                      
    /* has output been stopped due to received XOFF? */               
    if (tty->flow_ctrl & FL_OSTOP) {                                  
      /* disable interrupts    */                                     
      rtems_interrupt_disable(level);                                 
      tty->flow_ctrl &= ~FL_OSTOP;                                    
ffc076f0:	81 5e 00 b8 	lwz     r10,184(r30)                           <== NOT EXECUTED
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
ffc076f4:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
                                                                      
    /* has output been stopped due to received XOFF? */               
    if (tty->flow_ctrl & FL_OSTOP) {                                  
      /* disable interrupts    */                                     
      rtems_interrupt_disable(level);                                 
      tty->flow_ctrl &= ~FL_OSTOP;                                    
ffc076f8:	55 4a 06 f2 	rlwinm  r10,r10,0,27,25                        <== NOT EXECUTED
ffc076fc:	91 5e 00 b8 	stw     r10,184(r30)                           <== NOT EXECUTED
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
ffc07700:	40 9e 02 94 	bne-    cr7,ffc07994 <rtems_termios_ioctl+0x454><== NOT EXECUTED
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc07704:	7f e0 01 24 	mtmsr   r31                                    <== 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)) {
ffc07708:	81 3e 00 b8 	lwz     r9,184(r30)                            
ffc0770c:	71 2a 04 00 	andi.   r10,r9,1024                            
ffc07710:	41 82 00 28 	beq-    ffc07738 <rtems_termios_ioctl+0x1f8>   
ffc07714:	81 3e 00 30 	lwz     r9,48(r30)                             
ffc07718:	71 2a 10 00 	andi.   r10,r9,4096                            
ffc0771c:	40 82 00 1c 	bne-    ffc07738 <rtems_termios_ioctl+0x1f8>   <== NEVER TAKEN
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDXOF);                                    
ffc07720:	81 3e 00 b8 	lwz     r9,184(r30)                            
ffc07724:	55 29 05 a8 	rlwinm  r9,r9,0,22,20                          
ffc07728:	91 3e 00 b8 	stw     r9,184(r30)                            
    /* FIXME: what happens, if we had sent XOFF but not yet XON? */   
    tty->flow_ctrl &= ~(FL_ISNTXOF);                                  
ffc0772c:	81 3e 00 b8 	lwz     r9,184(r30)                            
ffc07730:	55 29 07 fa 	rlwinm  r9,r9,0,31,29                          
ffc07734:	91 3e 00 b8 	stw     r9,184(r30)                            
  }                                                                   
                                                                      
  /* check for incoming RTS/CTS flow control switched off */          
  if (( tty->flow_ctrl & FL_MDRTS) && !(tty->termios.c_cflag & CRTSCTS)) {
ffc07738:	81 3e 00 b8 	lwz     r9,184(r30)                            
ffc0773c:	71 2a 01 00 	andi.   r10,r9,256                             
ffc07740:	81 3e 00 38 	lwz     r9,56(r30)                             
ffc07744:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07748:	41 82 00 4c 	beq-    ffc07794 <rtems_termios_ioctl+0x254>   <== ALWAYS TAKEN
ffc0774c:	41 9c 02 38 	blt-    cr7,ffc07984 <rtems_termios_ioctl+0x444><== NOT EXECUTED
    /* clear related flags in flow_ctrl */                            
    tty->flow_ctrl &= ~(FL_MDRTS);                                    
ffc07750:	81 3e 00 b8 	lwz     r9,184(r30)                            <== NOT EXECUTED
ffc07754:	55 29 06 2c 	rlwinm  r9,r9,0,24,22                          <== NOT EXECUTED
ffc07758:	91 3e 00 b8 	stw     r9,184(r30)                            <== NOT EXECUTED
                                                                      
    /* restart remote Tx, if it was stopped */                        
    if ((tty->flow_ctrl & FL_IRTSOFF) && (tty->device.startRemoteTx != NULL)) {
ffc0775c:	81 3e 00 b8 	lwz     r9,184(r30)                            <== NOT EXECUTED
ffc07760:	71 2a 00 04 	andi.   r10,r9,4                               <== NOT EXECUTED
ffc07764:	41 82 00 24 	beq-    ffc07788 <rtems_termios_ioctl+0x248>   <== NOT EXECUTED
ffc07768:	81 3e 00 b0 	lwz     r9,176(r30)                            <== NOT EXECUTED
ffc0776c:	2f 09 00 00 	cmpwi   cr6,r9,0                               <== NOT EXECUTED
ffc07770:	41 9a 00 18 	beq-    cr6,ffc07788 <rtems_termios_ioctl+0x248><== NOT EXECUTED
      tty->device.startRemoteTx(tty->minor);                          
ffc07774:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc07778:	80 7e 00 10 	lwz     r3,16(r30)                             <== NOT EXECUTED
ffc0777c:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc07780:	81 3e 00 38 	lwz     r9,56(r30)                             <== NOT EXECUTED
ffc07784:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
    }                                                                 
    tty->flow_ctrl &= ~(FL_IRTSOFF);                                  
ffc07788:	81 3e 00 b8 	lwz     r9,184(r30)                            <== NOT EXECUTED
ffc0778c:	55 29 07 b8 	rlwinm  r9,r9,0,30,28                          <== NOT EXECUTED
ffc07790:	91 3e 00 b8 	stw     r9,184(r30)                            <== 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) {                               
ffc07794:	41 9c 01 f0 	blt-    cr7,ffc07984 <rtems_termios_ioctl+0x444><== NEVER TAKEN
    tty->flow_ctrl |= FL_MDRTS;                                       
  }                                                                   
  /* check for incoming XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXOFF) {                                 
ffc07798:	81 3e 00 30 	lwz     r9,48(r30)                             
ffc0779c:	71 2a 10 00 	andi.   r10,r9,4096                            
ffc077a0:	41 82 00 10 	beq-    ffc077b0 <rtems_termios_ioctl+0x270>   
    tty->flow_ctrl |= FL_MDXOF;                                       
ffc077a4:	81 5e 00 b8 	lwz     r10,184(r30)                           
ffc077a8:	61 4a 04 00 	ori     r10,r10,1024                           
ffc077ac:	91 5e 00 b8 	stw     r10,184(r30)                           
  }                                                                   
  /* check for outgoing XON/XOF flow control switched on */           
  if (tty->termios.c_iflag & IXON) {                                  
ffc077b0:	71 2a 04 00 	andi.   r10,r9,1024                            
ffc077b4:	41 82 00 10 	beq-    ffc077c4 <rtems_termios_ioctl+0x284>   
    tty->flow_ctrl |= FL_MDXON;                                       
ffc077b8:	81 3e 00 b8 	lwz     r9,184(r30)                            
ffc077bc:	61 29 02 00 	ori     r9,r9,512                              
ffc077c0:	91 3e 00 b8 	stw     r9,184(r30)                            
    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) {                              
ffc077c4:	81 3e 00 3c 	lwz     r9,60(r30)                             
ffc077c8:	71 3f 00 02 	andi.   r31,r9,2                               
ffc077cc:	41 82 01 40 	beq-    ffc0790c <rtems_termios_ioctl+0x3cc>   
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
ffc077d0:	39 20 00 00 	li      r9,0                                   
ffc077d4:	91 3e 00 6c 	stw     r9,108(r30)                            
      tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;               
ffc077d8:	91 3e 00 70 	stw     r9,112(r30)                            
      tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;          
ffc077dc:	91 3e 00 74 	stw     r9,116(r30)                            
        } else {                                                      
          tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;              
        }                                                             
      }                                                               
    }                                                                 
    if (tty->device.setAttributes)                                    
ffc077e0:	81 3e 00 a8 	lwz     r9,168(r30)                            
ffc077e4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc077e8:	41 be fe 20 	beq-    cr7,ffc07608 <rtems_termios_ioctl+0xc8>
      (*tty->device.setAttributes)(tty->minor, &tty->termios);        
ffc077ec:	80 7e 00 10 	lwz     r3,16(r30)                             
ffc077f0:	7f 84 e3 78 	mr      r4,r28                                 
ffc077f4:	7d 29 03 a6 	mtctr   r9                                     
ffc077f8:	4e 80 04 21 	bctrl                                          
ffc077fc:	4b ff fe 0c 	b       ffc07608 <rtems_termios_ioctl+0xc8>    
  case TIOCGETD:                                                      
    *(int*)(args->buffer)=tty->t_line;                                
    break;                                                            
#endif                                                                
   case FIONREAD: {                                                   
      int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;            
ffc07800:	81 5e 00 60 	lwz     r10,96(r30)                            <== NOT EXECUTED
ffc07804:	81 3e 00 5c 	lwz     r9,92(r30)                             <== NOT EXECUTED
      if ( rawnc < 0 )                                                
ffc07808:	7d 09 50 51 	subf.   r8,r9,r10                              <== NOT EXECUTED
ffc0780c:	41 80 01 6c 	blt-    ffc07978 <rtems_termios_ioctl+0x438>   <== NOT EXECUTED
        rawnc += tty->rawInBuf.Size;                                  
      /* Half guess that this is the right operation */               
      *(int *)args->buffer = tty->ccount - tty->cindex + rawnc;       
ffc07810:	81 5e 00 20 	lwz     r10,32(r30)                            <== NOT EXECUTED
ffc07814:	81 3e 00 24 	lwz     r9,36(r30)                             <== NOT EXECUTED
ffc07818:	80 ff 00 08 	lwz     r7,8(r31)                              <== NOT EXECUTED
ffc0781c:	7d 29 50 50 	subf    r9,r9,r10                              <== NOT EXECUTED
ffc07820:	7d 09 42 14 	add     r8,r9,r8                               <== NOT EXECUTED
ffc07824:	91 07 00 00 	stw     r8,0(r7)                               <== NOT EXECUTED
    }                                                                 
    break;                                                            
ffc07828:	4b ff fd e0 	b       ffc07608 <rtems_termios_ioctl+0xc8>    <== NOT EXECUTED
  args->ioctl_return = 0;                                             
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
ffc0782c:	6d 2a 40 04 	xoris   r10,r9,16388                           
ffc07830:	2f 8a 74 1a 	cmpwi   cr7,r10,29722                          
ffc07834:	41 9e 00 b4 	beq-    cr7,ffc078e8 <rtems_termios_ioctl+0x3a8>
ffc07838:	6d 2a 80 04 	xoris   r10,r9,32772                           
ffc0783c:	2f 8a 74 1b 	cmpwi   cr7,r10,29723                          
ffc07840:	40 9e fd 7c 	bne+    cr7,ffc075bc <rtems_termios_ioctl+0x7c><== NEVER TAKEN
#if 1 /* FIXME */                                                     
  case TIOCSETD:                                                      
    /*                                                                
     * close old line discipline                                      
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_close != NULL) {          
ffc07844:	81 3e 00 cc 	lwz     r9,204(r30)                            
ffc07848:	3f 80 00 00 	lis     r28,0                                  
ffc0784c:	3b 9c 29 38 	addi    r28,r28,10552                          
ffc07850:	55 29 28 34 	rlwinm  r9,r9,5,0,26                           
ffc07854:	7d 3c 4a 14 	add     r9,r28,r9                              
ffc07858:	81 29 00 04 	lwz     r9,4(r9)                               
ffc0785c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07860:	41 9e 00 14 	beq-    cr7,ffc07874 <rtems_termios_ioctl+0x334>
      sc = rtems_termios_linesw[tty->t_line].l_close(tty);            
ffc07864:	7f c3 f3 78 	mr      r3,r30                                 
ffc07868:	7d 29 03 a6 	mtctr   r9                                     
ffc0786c:	4e 80 04 21 	bctrl                                          
ffc07870:	7c 7d 1b 78 	mr      r29,r3                                 
    }                                                                 
    tty->t_line=*(int*)(args->buffer);                                
ffc07874:	81 3f 00 08 	lwz     r9,8(r31)                              
    tty->t_sc = NULL; /* ensure that no more valid data */            
ffc07878:	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);                                
ffc0787c:	81 29 00 00 	lwz     r9,0(r9)                               
    tty->t_sc = NULL; /* ensure that no more valid data */            
ffc07880:	91 5e 00 d0 	stw     r10,208(r30)                           
    /*                                                                
     * open new line discipline                                       
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
ffc07884:	55 2a 28 34 	rlwinm  r10,r9,5,0,26                          
ffc07888:	7d 5c 50 2e 	lwzx    r10,r28,r10                            
     * 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);                                
ffc0788c:	91 3e 00 cc 	stw     r9,204(r30)                            
    tty->t_sc = NULL; /* ensure that no more valid data */            
    /*                                                                
     * open new line discipline                                       
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
ffc07890:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc07894:	41 be fd 74 	beq-    cr7,ffc07608 <rtems_termios_ioctl+0xc8>
      sc = rtems_termios_linesw[tty->t_line].l_open(tty);             
ffc07898:	7f c3 f3 78 	mr      r3,r30                                 
ffc0789c:	7d 49 03 a6 	mtctr   r10                                    
ffc078a0:	4e 80 04 21 	bctrl                                          
ffc078a4:	7c 7d 1b 78 	mr      r29,r3                                 
ffc078a8:	4b ff fd 60 	b       ffc07608 <rtems_termios_ioctl+0xc8>    
  args->ioctl_return = 0;                                             
  sc = rtems_semaphore_obtain (tty->osem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  if (sc != RTEMS_SUCCESSFUL) {                                       
    return sc;                                                        
  }                                                                   
  switch (args->command) {                                            
ffc078ac:	2f 89 00 03 	cmpwi   cr7,r9,3                               
ffc078b0:	41 9e 00 20 	beq-    cr7,ffc078d0 <rtems_termios_ioctl+0x390>
ffc078b4:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc078b8:	40 9e fd 04 	bne+    cr7,ffc075bc <rtems_termios_ioctl+0x7c><== NEVER TAKEN
  case RTEMS_IO_SNDWAKEUP:                                            
    tty->tty_snd = *wakeup;                                           
    break;                                                            
                                                                      
  case RTEMS_IO_RCVWAKEUP:                                            
    tty->tty_rcv = *wakeup;                                           
ffc078bc:	81 3c 00 00 	lwz     r9,0(r28)                              
ffc078c0:	81 5c 00 04 	lwz     r10,4(r28)                             
ffc078c4:	91 3e 00 dc 	stw     r9,220(r30)                            
ffc078c8:	91 5e 00 e0 	stw     r10,224(r30)                           
    break;                                                            
ffc078cc:	4b ff fd 3c 	b       ffc07608 <rtems_termios_ioctl+0xc8>    
drainOutput (struct rtems_termios_tty *tty)                           
{                                                                     
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts != TERMIOS_POLLED) {           
ffc078d0:	81 3e 00 b4 	lwz     r9,180(r30)                            
ffc078d4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc078d8:	41 be fd 30 	beq-    cr7,ffc07608 <rtems_termios_ioctl+0xc8><== ALWAYS TAKEN
ffc078dc:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc078e0:	4b ff f5 0d 	bl      ffc06dec <drainOutput.part.0>          <== NOT EXECUTED
ffc078e4:	4b ff fd 24 	b       ffc07608 <rtems_termios_ioctl+0xc8>    <== NOT EXECUTED
    if (rtems_termios_linesw[tty->t_line].l_open != NULL) {           
      sc = rtems_termios_linesw[tty->t_line].l_open(tty);             
    }                                                                 
    break;                                                            
  case TIOCGETD:                                                      
    *(int*)(args->buffer)=tty->t_line;                                
ffc078e8:	81 3e 00 cc 	lwz     r9,204(r30)                            
ffc078ec:	81 5f 00 08 	lwz     r10,8(r31)                             
ffc078f0:	91 2a 00 00 	stw     r9,0(r10)                              
    break;                                                            
ffc078f4:	4b ff fd 14 	b       ffc07608 <rtems_termios_ioctl+0xc8>    
      sc = RTEMS_INVALID_NUMBER;                                      
    }                                                                 
    break;                                                            
                                                                      
  case RTEMS_IO_GET_ATTRIBUTES:                                       
    *(struct termios *)args->buffer = tty->termios;                   
ffc078f8:	80 7f 00 08 	lwz     r3,8(r31)                              
ffc078fc:	38 9e 00 30 	addi    r4,r30,48                              
ffc07900:	38 a0 00 24 	li      r5,36                                  
ffc07904:	48 00 c4 79 	bl      ffc13d7c <memcpy>                      
    break;                                                            
ffc07908:	4b ff fd 00 	b       ffc07608 <rtems_termios_ioctl+0xc8>    
    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] *                    
ffc0790c:	8b 7e 00 46 	lbz     r27,70(r30)                            
                    rtems_clock_get_ticks_per_second() / 10;          
ffc07910:	48 00 18 fd 	bl      ffc0920c <rtems_clock_get_ticks_per_second>
      if (tty->termios.c_cc[VTIME]) {                                 
ffc07914:	89 3e 00 46 	lbz     r9,70(r30)                             
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
      tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;               
      tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;          
    } else {                                                          
      tty->vtimeTicks = tty->termios.c_cc[VTIME] *                    
                    rtems_clock_get_ticks_per_second() / 10;          
ffc07918:	3d 40 cc cc 	lis     r10,-13108                             
    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] *                    
ffc0791c:	7c 63 d9 d6 	mullw   r3,r3,r27                              
                    rtems_clock_get_ticks_per_second() / 10;          
ffc07920:	61 4a cc cd 	ori     r10,r10,52429                          
      if (tty->termios.c_cc[VTIME]) {                                 
ffc07924:	2f 89 00 00 	cmpwi   cr7,r9,0                               
      tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                     
      tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;               
      tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;          
    } else {                                                          
      tty->vtimeTicks = tty->termios.c_cc[VTIME] *                    
                    rtems_clock_get_ticks_per_second() / 10;          
ffc07928:	7d 43 50 16 	mulhwu  r10,r3,r10                             
ffc0792c:	55 4a e8 fe 	rlwinm  r10,r10,29,3,31                        
    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] *                    
ffc07930:	91 5e 00 54 	stw     r10,84(r30)                            
                    rtems_clock_get_ticks_per_second() / 10;          
      if (tty->termios.c_cc[VTIME]) {                                 
ffc07934:	41 9e 00 d4 	beq-    cr7,ffc07a08 <rtems_termios_ioctl+0x4c8>
        tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                   
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
        if (tty->termios.c_cc[VMIN])                                  
ffc07938:	89 3e 00 47 	lbz     r9,71(r30)                             
      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;                   
ffc0793c:	93 fe 00 6c 	stw     r31,108(r30)                           
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
        if (tty->termios.c_cc[VMIN])                                  
ffc07940:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    } 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;                   
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
ffc07944:	91 5e 00 70 	stw     r10,112(r30)                           
        if (tty->termios.c_cc[VMIN])                                  
ffc07948:	41 9e 00 dc 	beq-    cr7,ffc07a24 <rtems_termios_ioctl+0x4e4>
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
ffc0794c:	93 fe 00 74 	stw     r31,116(r30)                           
ffc07950:	4b ff fe 90 	b       ffc077e0 <rtems_termios_ioctl+0x2a0>   
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc07954:	7d 20 00 a6 	mfmsr   r9                                     
ffc07958:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc0795c:	7d 2a 50 78 	andc    r10,r9,r10                             
ffc07960:	7d 40 01 24 	mtmsr   r10                                    
flushOutput (struct rtems_termios_tty *tty)                           
{                                                                     
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable (level);                                    
  tty->rawOutBuf.Tail = 0;                                            
ffc07964:	93 be 00 84 	stw     r29,132(r30)                           
  tty->rawOutBuf.Head = 0;                                            
  tty->rawOutBufState = rob_idle;                                     
ffc07968:	93 be 00 94 	stw     r29,148(r30)                           
{                                                                     
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable (level);                                    
  tty->rawOutBuf.Tail = 0;                                            
  tty->rawOutBuf.Head = 0;                                            
ffc0796c:	93 be 00 80 	stw     r29,128(r30)                           
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc07970:	7d 20 01 24 	mtmsr   r9                                     
ffc07974:	4b ff fc 94 	b       ffc07608 <rtems_termios_ioctl+0xc8>    
    break;                                                            
#endif                                                                
   case FIONREAD: {                                                   
      int rawnc = tty->rawInBuf.Tail - tty->rawInBuf.Head;            
      if ( rawnc < 0 )                                                
        rawnc += tty->rawInBuf.Size;                                  
ffc07978:	81 3e 00 64 	lwz     r9,100(r30)                            <== NOT EXECUTED
ffc0797c:	7d 08 4a 14 	add     r8,r8,r9                               <== NOT EXECUTED
ffc07980:	4b ff fe 90 	b       ffc07810 <rtems_termios_ioctl+0x2d0>   <== NOT EXECUTED
  /*                                                                  
   * check for flow control options to be switched on                 
   */                                                                 
  /* check for incoming RTS/CTS flow control switched on */           
  if (tty->termios.c_cflag & CRTSCTS) {                               
    tty->flow_ctrl |= FL_MDRTS;                                       
ffc07984:	81 3e 00 b8 	lwz     r9,184(r30)                            <== NOT EXECUTED
ffc07988:	61 29 01 00 	ori     r9,r9,256                              <== NOT EXECUTED
ffc0798c:	91 3e 00 b8 	stw     r9,184(r30)                            <== NOT EXECUTED
ffc07990:	4b ff fe 08 	b       ffc07798 <rtems_termios_ioctl+0x258>   <== NOT EXECUTED
      tty->flow_ctrl &= ~FL_OSTOP;                                    
      /* check for chars in output buffer (or rob_state?) */          
      if (tty->rawOutBufState != rob_idle) {                          
        /* if chars available, call write function... */              
        (*tty->device.write)(                                         
          tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 
ffc07994:	80 9e 00 84 	lwz     r4,132(r30)                            <== 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)(                                         
ffc07998:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc0799c:	81 5e 00 7c 	lwz     r10,124(r30)                           <== NOT EXECUTED
ffc079a0:	81 3e 00 a4 	lwz     r9,164(r30)                            <== NOT EXECUTED
ffc079a4:	80 7e 00 10 	lwz     r3,16(r30)                             <== NOT EXECUTED
ffc079a8:	7c 8a 22 14 	add     r4,r10,r4                              <== NOT EXECUTED
ffc079ac:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc079b0:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc079b4:	7f e0 01 24 	mtmsr   r31                                    <== NOT EXECUTED
ffc079b8:	4b ff fd 50 	b       ffc07708 <rtems_termios_ioctl+0x1c8>   <== NOT EXECUTED
      case TCIOFLUSH:                                                 
        flushOutput (tty);                                            
        flushInput (tty);                                             
        break;                                                        
      default:                                                        
        sc = RTEMS_INVALID_NAME;                                      
ffc079bc:	3b a0 00 03 	li      r29,3                                  
ffc079c0:	4b ff fc 48 	b       ffc07608 <rtems_termios_ioctl+0xc8>    
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc079c4:	7d 20 00 a6 	mfmsr   r9                                     
ffc079c8:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc079cc:	7d 2a 50 78 	andc    r10,r9,r10                             
ffc079d0:	7d 40 01 24 	mtmsr   r10                                    
flushOutput (struct rtems_termios_tty *tty)                           
{                                                                     
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable (level);                                    
  tty->rawOutBuf.Tail = 0;                                            
ffc079d4:	93 be 00 84 	stw     r29,132(r30)                           
  tty->rawOutBuf.Head = 0;                                            
  tty->rawOutBufState = rob_idle;                                     
ffc079d8:	93 be 00 94 	stw     r29,148(r30)                           
{                                                                     
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable (level);                                    
  tty->rawOutBuf.Tail = 0;                                            
  tty->rawOutBuf.Head = 0;                                            
ffc079dc:	93 be 00 80 	stw     r29,128(r30)                           
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc079e0:	7d 20 01 24 	mtmsr   r9                                     
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc079e4:	7d 40 00 a6 	mfmsr   r10                                    
ffc079e8:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc079ec:	7d 49 48 78 	andc    r9,r10,r9                              
ffc079f0:	7d 20 01 24 	mtmsr   r9                                     
flushInput (struct rtems_termios_tty *tty)                            
{                                                                     
  rtems_interrupt_level level;                                        
                                                                      
  rtems_interrupt_disable (level);                                    
  tty->rawInBuf.Tail = 0;                                             
ffc079f4:	39 20 00 00 	li      r9,0                                   
ffc079f8:	91 3e 00 60 	stw     r9,96(r30)                             
  tty->rawInBuf.Head = 0;                                             
ffc079fc:	91 3e 00 5c 	stw     r9,92(r30)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc07a00:	7d 40 01 24 	mtmsr   r10                                    
ffc07a04:	4b ff fc 04 	b       ffc07608 <rtems_termios_ioctl+0xc8>    
        if (tty->termios.c_cc[VMIN])                                  
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
        else                                                          
          tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;       
      } else {                                                        
        if (tty->termios.c_cc[VMIN]) {                                
ffc07a08:	89 5e 00 47 	lbz     r10,71(r30)                            
ffc07a0c:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc07a10:	41 9e 00 1c 	beq-    cr7,ffc07a2c <rtems_termios_ioctl+0x4ec><== ALWAYS TAKEN
          tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                 
ffc07a14:	91 3e 00 6c 	stw     r9,108(r30)                            <== NOT EXECUTED
          tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;           
ffc07a18:	91 3e 00 70 	stw     r9,112(r30)                            <== NOT EXECUTED
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
ffc07a1c:	91 3e 00 74 	stw     r9,116(r30)                            <== NOT EXECUTED
ffc07a20:	4b ff fd c0 	b       ffc077e0 <rtems_termios_ioctl+0x2a0>   <== NOT EXECUTED
        tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                   
        tty->rawInBufSemaphoreTimeout = tty->vtimeTicks;              
        if (tty->termios.c_cc[VMIN])                                  
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
        else                                                          
          tty->rawInBufSemaphoreFirstTimeout = tty->vtimeTicks;       
ffc07a24:	91 5e 00 74 	stw     r10,116(r30)                           
ffc07a28:	4b ff fd b8 	b       ffc077e0 <rtems_termios_ioctl+0x2a0>   
        if (tty->termios.c_cc[VMIN]) {                                
          tty->rawInBufSemaphoreOptions = RTEMS_WAIT;                 
          tty->rawInBufSemaphoreTimeout = RTEMS_NO_TIMEOUT;           
          tty->rawInBufSemaphoreFirstTimeout = RTEMS_NO_TIMEOUT;      
        } else {                                                      
          tty->rawInBufSemaphoreOptions = RTEMS_NO_WAIT;              
ffc07a2c:	39 20 00 01 	li      r9,1                                   
ffc07a30:	91 3e 00 6c 	stw     r9,108(r30)                            
ffc07a34:	4b ff fd ac 	b       ffc077e0 <rtems_termios_ioctl+0x2a0>   
                                                                      

ffc06e88 <rtems_termios_open>: rtems_device_major_number major, rtems_device_minor_number minor, void *arg, const rtems_termios_callbacks *callbacks ) {
ffc06e88:	94 21 ff c0 	stwu    r1,-64(r1)                             
ffc06e8c:	7d 80 00 26 	mfcr    r12                                    
ffc06e90:	7c 08 02 a6 	mflr    r0                                     
ffc06e94:	93 61 00 2c 	stw     r27,44(r1)                             
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
ffc06e98:	3f 60 00 00 	lis     r27,0                                  
  rtems_device_major_number      major,                               
  rtems_device_minor_number      minor,                               
  void                          *arg,                                 
  const rtems_termios_callbacks *callbacks                            
)                                                                     
{                                                                     
ffc06e9c:	93 c1 00 38 	stw     r30,56(r1)                             
ffc06ea0:	7c 7e 1b 78 	mr      r30,r3                                 
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
ffc06ea4:	80 7b 28 58 	lwz     r3,10328(r27)                          
  rtems_device_major_number      major,                               
  rtems_device_minor_number      minor,                               
  void                          *arg,                                 
  const rtems_termios_callbacks *callbacks                            
)                                                                     
{                                                                     
ffc06ea8:	93 41 00 28 	stw     r26,40(r1)                             
ffc06eac:	7c ba 2b 78 	mr      r26,r5                                 
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
ffc06eb0:	38 a0 00 00 	li      r5,0                                   
  rtems_device_major_number      major,                               
  rtems_device_minor_number      minor,                               
  void                          *arg,                                 
  const rtems_termios_callbacks *callbacks                            
)                                                                     
{                                                                     
ffc06eb4:	93 a1 00 34 	stw     r29,52(r1)                             
ffc06eb8:	7c 9d 23 78 	mr      r29,r4                                 
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
ffc06ebc:	38 80 00 00 	li      r4,0                                   
  rtems_device_major_number      major,                               
  rtems_device_minor_number      minor,                               
  void                          *arg,                                 
  const rtems_termios_callbacks *callbacks                            
)                                                                     
{                                                                     
ffc06ec0:	92 e1 00 1c 	stw     r23,28(r1)                             
ffc06ec4:	7c d7 33 78 	mr      r23,r6                                 
ffc06ec8:	93 81 00 30 	stw     r28,48(r1)                             
ffc06ecc:	90 01 00 44 	stw     r0,68(r1)                              
ffc06ed0:	92 81 00 10 	stw     r20,16(r1)                             
ffc06ed4:	92 a1 00 14 	stw     r21,20(r1)                             
ffc06ed8:	92 c1 00 18 	stw     r22,24(r1)                             
ffc06edc:	93 01 00 20 	stw     r24,32(r1)                             
ffc06ee0:	93 21 00 24 	stw     r25,36(r1)                             
ffc06ee4:	93 e1 00 3c 	stw     r31,60(r1)                             
ffc06ee8:	91 81 00 0c 	stw     r12,12(r1)                             
  struct rtems_termios_tty *tty;                                      
                                                                      
  /*                                                                  
   * See if the device has already been opened                        
   */                                                                 
  sc = rtems_semaphore_obtain(                                        
ffc06eec:	48 00 2b 35 	bl      ffc09a20 <rtems_semaphore_obtain>      
    rtems_termios_ttyMutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT);            
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc06ef0:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc06ef4:	40 82 00 90 	bne-    ffc06f84 <rtems_termios_open+0xfc>     <== NEVER TAKEN
    return sc;                                                        
                                                                      
  for (tty = rtems_termios_ttyHead ; tty != NULL ; tty = tty->forw) { 
ffc06ef8:	3f 00 00 00 	lis     r24,0                                  
ffc06efc:	83 38 28 60 	lwz     r25,10336(r24)                         
ffc06f00:	2e 19 00 00 	cmpwi   cr4,r25,0                              
ffc06f04:	41 92 00 cc 	beq-    cr4,ffc06fd0 <rtems_termios_open+0x148>
ffc06f08:	7f 3f cb 78 	mr      r31,r25                                
ffc06f0c:	48 00 00 10 	b       ffc06f1c <rtems_termios_open+0x94>     
ffc06f10:	83 ff 00 00 	lwz     r31,0(r31)                             
ffc06f14:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc06f18:	41 9e 00 b8 	beq-    cr7,ffc06fd0 <rtems_termios_open+0x148><== ALWAYS TAKEN
    if ((tty->major == major) && (tty->minor == minor))               
ffc06f1c:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc06f20:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc06f24:	40 9e ff ec 	bne+    cr7,ffc06f10 <rtems_termios_open+0x88> 
ffc06f28:	81 3f 00 10 	lwz     r9,16(r31)                             
ffc06f2c:	7f 89 e8 00 	cmpw    cr7,r9,r29                             
ffc06f30:	40 9e ff e0 	bne+    cr7,ffc06f10 <rtems_termios_open+0x88> <== NEVER TAKEN
    if (c++ == 'z')                                                   
      c = 'a';                                                        
                                                                      
  }                                                                   
  args->iop->data1 = tty;                                             
  if (!tty->refcount++) {                                             
ffc06f34:	81 3f 00 08 	lwz     r9,8(r31)                              
     */                                                               
    if (c++ == 'z')                                                   
      c = 'a';                                                        
                                                                      
  }                                                                   
  args->iop->data1 = tty;                                             
ffc06f38:	81 5a 00 00 	lwz     r10,0(r26)                             
  if (!tty->refcount++) {                                             
ffc06f3c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06f40:	39 29 00 01 	addi    r9,r9,1                                
     */                                                               
    if (c++ == 'z')                                                   
      c = 'a';                                                        
                                                                      
  }                                                                   
  args->iop->data1 = tty;                                             
ffc06f44:	93 ea 00 30 	stw     r31,48(r10)                            
  if (!tty->refcount++) {                                             
ffc06f48:	91 3f 00 08 	stw     r9,8(r31)                              
ffc06f4c:	40 9e 00 30 	bne-    cr7,ffc06f7c <rtems_termios_open+0xf4> 
    if (tty->device.firstOpen)                                        
ffc06f50:	81 3f 00 98 	lwz     r9,152(r31)                            
ffc06f54:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06f58:	41 9e 00 18 	beq-    cr7,ffc06f70 <rtems_termios_open+0xe8> <== ALWAYS TAKEN
      (*tty->device.firstOpen)(major, minor, arg);                    
ffc06f5c:	7f c3 f3 78 	mr      r3,r30                                 <== NOT EXECUTED
ffc06f60:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc06f64:	7f a4 eb 78 	mr      r4,r29                                 <== NOT EXECUTED
ffc06f68:	7f 45 d3 78 	mr      r5,r26                                 <== NOT EXECUTED
ffc06f6c:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
                                                                      
    /*                                                                
     * start I/O tasks, if needed                                     
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
ffc06f70:	81 3f 00 b4 	lwz     r9,180(r31)                            
ffc06f74:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc06f78:	41 9e 02 b4 	beq-    cr7,ffc0722c <rtems_termios_open+0x3a4>
        tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
    }                                                                 
  }                                                                   
  rtems_semaphore_release (rtems_termios_ttyMutex);                   
ffc06f7c:	80 7b 28 58 	lwz     r3,10328(r27)                          
ffc06f80:	48 00 2c 41 	bl      ffc09bc0 <rtems_semaphore_release>     
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
ffc06f84:	80 01 00 44 	lwz     r0,68(r1)                              
ffc06f88:	7f 83 e3 78 	mr      r3,r28                                 
ffc06f8c:	81 81 00 0c 	lwz     r12,12(r1)                             
ffc06f90:	7c 08 03 a6 	mtlr    r0                                     
ffc06f94:	82 81 00 10 	lwz     r20,16(r1)                             
ffc06f98:	82 a1 00 14 	lwz     r21,20(r1)                             
ffc06f9c:	7d 80 81 20 	mtcrf   8,r12                                  
ffc06fa0:	82 c1 00 18 	lwz     r22,24(r1)                             
ffc06fa4:	82 e1 00 1c 	lwz     r23,28(r1)                             
ffc06fa8:	83 01 00 20 	lwz     r24,32(r1)                             
ffc06fac:	83 21 00 24 	lwz     r25,36(r1)                             
ffc06fb0:	83 41 00 28 	lwz     r26,40(r1)                             
ffc06fb4:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc06fb8:	83 81 00 30 	lwz     r28,48(r1)                             
ffc06fbc:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc06fc0:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc06fc4:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc06fc8:	38 21 00 40 	addi    r1,r1,64                               
ffc06fcc:	4e 80 00 20 	blr                                            
    static char c = 'a';                                              
                                                                      
    /*                                                                
     * Create a new device                                            
     */                                                               
    tty = calloc (1, sizeof (struct rtems_termios_tty));              
ffc06fd0:	38 60 00 01 	li      r3,1                                   
ffc06fd4:	38 80 00 e8 	li      r4,232                                 
ffc06fd8:	4b ff d7 e1 	bl      ffc047b8 <calloc>                      
    if (tty == NULL) {                                                
ffc06fdc:	7c 7f 1b 79 	mr.     r31,r3                                 
ffc06fe0:	41 82 02 a0 	beq-    ffc07280 <rtems_termios_open+0x3f8>    
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate raw input buffer                                      
     */                                                               
    tty->rawInBuf.Size = RAW_INPUT_BUFFER_SIZE;                       
ffc06fe4:	3e c0 00 00 	lis     r22,0                                  
ffc06fe8:	81 36 21 5c 	lwz     r9,8540(r22)                           
ffc06fec:	3a d6 21 5c 	addi    r22,r22,8540                           
ffc06ff0:	91 3f 00 64 	stw     r9,100(r31)                            
    tty->rawInBuf.theBuf = malloc (tty->rawInBuf.Size);               
ffc06ff4:	80 7f 00 64 	lwz     r3,100(r31)                            
ffc06ff8:	4b ff df 9d 	bl      ffc04f94 <malloc>                      
    if (tty->rawInBuf.theBuf == NULL) {                               
ffc06ffc:	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);               
ffc07000:	90 7f 00 58 	stw     r3,88(r31)                             
ffc07004:	7c 75 1b 78 	mr      r21,r3                                 
    if (tty->rawInBuf.theBuf == NULL) {                               
ffc07008:	41 9e 02 70 	beq-    cr7,ffc07278 <rtems_termios_open+0x3f0>
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate raw output buffer                                     
     */                                                               
    tty->rawOutBuf.Size = RAW_OUTPUT_BUFFER_SIZE;                     
ffc0700c:	81 36 00 04 	lwz     r9,4(r22)                              
ffc07010:	91 3f 00 88 	stw     r9,136(r31)                            
    tty->rawOutBuf.theBuf = malloc (tty->rawOutBuf.Size);             
ffc07014:	80 7f 00 88 	lwz     r3,136(r31)                            
ffc07018:	4b ff df 7d 	bl      ffc04f94 <malloc>                      
    if (tty->rawOutBuf.theBuf == NULL) {                              
ffc0701c:	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);             
ffc07020:	90 7f 00 7c 	stw     r3,124(r31)                            
ffc07024:	7c 74 1b 78 	mr      r20,r3                                 
    if (tty->rawOutBuf.theBuf == NULL) {                              
ffc07028:	41 9e 02 48 	beq-    cr7,ffc07270 <rtems_termios_open+0x3e8>
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate cooked buffer                                         
     */                                                               
    tty->cbuf  = malloc (CBUFSIZE);                                   
ffc0702c:	80 76 00 08 	lwz     r3,8(r22)                              
ffc07030:	4b ff df 65 	bl      ffc04f94 <malloc>                      
    if (tty->cbuf == NULL) {                                          
ffc07034:	2f 83 00 00 	cmpwi   cr7,r3,0                               
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * allocate cooked buffer                                         
     */                                                               
    tty->cbuf  = malloc (CBUFSIZE);                                   
ffc07038:	90 7f 00 1c 	stw     r3,28(r31)                             
    if (tty->cbuf == NULL) {                                          
ffc0703c:	41 9e 02 2c 	beq-    cr7,ffc07268 <rtems_termios_open+0x3e0>
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * Initialize wakeup callbacks                                    
     */                                                               
    tty->tty_snd.sw_pfn = NULL;                                       
ffc07040:	39 20 00 00 	li      r9,0                                   
    tty->tty_rcvwakeup  = 0;                                          
                                                                      
    /*                                                                
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
ffc07044:	93 3f 00 00 	stw     r25,0(r31)                             
      return RTEMS_NO_MEMORY;                                         
    }                                                                 
    /*                                                                
     * Initialize wakeup callbacks                                    
     */                                                               
    tty->tty_snd.sw_pfn = NULL;                                       
ffc07048:	91 3f 00 d4 	stw     r9,212(r31)                            
    tty->tty_snd.sw_arg = NULL;                                       
ffc0704c:	91 3f 00 d8 	stw     r9,216(r31)                            
    tty->tty_rcv.sw_pfn = NULL;                                       
ffc07050:	91 3f 00 dc 	stw     r9,220(r31)                            
    tty->tty_rcv.sw_arg = NULL;                                       
ffc07054:	91 3f 00 e0 	stw     r9,224(r31)                            
    tty->tty_rcvwakeup  = 0;                                          
ffc07058:	91 3f 00 e4 	stw     r9,228(r31)                            
                                                                      
    /*                                                                
     * link tty                                                       
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
    tty->back = NULL;                                                 
ffc0705c:	91 3f 00 04 	stw     r9,4(r31)                              
    if (rtems_termios_ttyHead != NULL)                                
ffc07060:	41 92 00 08 	beq-    cr4,ffc07068 <rtems_termios_open+0x1e0>
      rtems_termios_ttyHead->back = tty;                              
ffc07064:	93 f9 00 04 	stw     r31,4(r25)                             
    rtems_termios_ttyHead = tty;                                      
    if (rtems_termios_ttyTail == NULL)                                
ffc07068:	3d 20 00 00 	lis     r9,0                                   
     */                                                               
    tty->forw = rtems_termios_ttyHead;                                
    tty->back = NULL;                                                 
    if (rtems_termios_ttyHead != NULL)                                
      rtems_termios_ttyHead->back = tty;                              
    rtems_termios_ttyHead = tty;                                      
ffc0706c:	93 f8 28 60 	stw     r31,10336(r24)                         
    if (rtems_termios_ttyTail == NULL)                                
ffc07070:	81 49 28 5c 	lwz     r10,10332(r9)                          
ffc07074:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc07078:	41 9e 02 ac 	beq-    cr7,ffc07324 <rtems_termios_open+0x49c>
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'i', c),                            
ffc0707c:	88 76 00 0c 	lbz     r3,12(r22)                             
    tty->major = major;                                               
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
ffc07080:	38 80 00 01 	li      r4,1                                   
      rtems_termios_ttyHead->back = tty;                              
    rtems_termios_ttyHead = tty;                                      
    if (rtems_termios_ttyTail == NULL)                                
      rtems_termios_ttyTail = tty;                                    
                                                                      
    tty->minor = minor;                                               
ffc07084:	93 bf 00 10 	stw     r29,16(r31)                            
    tty->major = major;                                               
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
ffc07088:	38 a0 00 54 	li      r5,84                                  
ffc0708c:	64 63 54 52 	oris    r3,r3,21586                            
    rtems_termios_ttyHead = tty;                                      
    if (rtems_termios_ttyTail == NULL)                                
      rtems_termios_ttyTail = tty;                                    
                                                                      
    tty->minor = minor;                                               
    tty->major = major;                                               
ffc07090:	93 df 00 0c 	stw     r30,12(r31)                            
                                                                      
    /*                                                                
     * Set up mutex semaphores                                        
     */                                                               
    sc = rtems_semaphore_create (                                     
ffc07094:	60 63 69 00 	ori     r3,r3,26880                            
ffc07098:	38 c0 00 00 	li      r6,0                                   
ffc0709c:	38 ff 00 14 	addi    r7,r31,20                              
ffc070a0:	48 00 26 6d 	bl      ffc0970c <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)                                       
ffc070a4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc070a8:	40 9e 02 1c 	bne-    cr7,ffc072c4 <rtems_termios_open+0x43c>
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'o', c),                            
ffc070ac:	88 76 00 0c 	lbz     r3,12(r22)                             
      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 (                                     
ffc070b0:	38 80 00 01 	li      r4,1                                   
ffc070b4:	38 a0 00 54 	li      r5,84                                  
ffc070b8:	64 63 54 52 	oris    r3,r3,21586                            
ffc070bc:	60 63 6f 00 	ori     r3,r3,28416                            
ffc070c0:	38 c0 00 00 	li      r6,0                                   
ffc070c4:	38 ff 00 18 	addi    r7,r31,24                              
ffc070c8:	48 00 26 45 	bl      ffc0970c <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)                                       
ffc070cc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc070d0:	40 9e 01 f4 	bne-    cr7,ffc072c4 <rtems_termios_open+0x43c>
      rtems_fatal_error_occurred (sc);                                
    sc = rtems_semaphore_create (                                     
      rtems_build_name ('T', 'R', 'x', c),                            
ffc070d4:	88 76 00 0c 	lbz     r3,12(r22)                             
      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 (                                     
ffc070d8:	38 80 00 00 	li      r4,0                                   
ffc070dc:	38 a0 00 20 	li      r5,32                                  
ffc070e0:	64 63 54 52 	oris    r3,r3,21586                            
ffc070e4:	60 63 78 00 	ori     r3,r3,30720                            
ffc070e8:	38 c0 00 00 	li      r6,0                                   
ffc070ec:	38 ff 00 8c 	addi    r7,r31,140                             
ffc070f0:	48 00 26 1d 	bl      ffc0970c <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)                                       
ffc070f4:	7c 68 1b 79 	mr.     r8,r3                                  
ffc070f8:	40 82 01 cc 	bne-    ffc072c4 <rtems_termios_open+0x43c>    
    tty->rawOutBufState = rob_idle;                                   
                                                                      
    /*                                                                
     * Set callbacks                                                  
     */                                                               
    tty->device = *callbacks;                                         
ffc070fc:	81 37 00 00 	lwz     r9,0(r23)                              
ffc07100:	80 d7 00 04 	lwz     r6,4(r23)                              
ffc07104:	80 f7 00 08 	lwz     r7,8(r23)                              
ffc07108:	81 57 00 0c 	lwz     r10,12(r23)                            
ffc0710c:	91 3f 00 98 	stw     r9,152(r31)                            
ffc07110:	90 df 00 9c 	stw     r6,156(r31)                            
ffc07114:	90 ff 00 a0 	stw     r7,160(r31)                            
ffc07118:	91 5f 00 a4 	stw     r10,164(r31)                           
ffc0711c:	81 37 00 1c 	lwz     r9,28(r23)                             
ffc07120:	80 d7 00 10 	lwz     r6,16(r23)                             
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
ffc07124:	2f 89 00 02 	cmpwi   cr7,r9,2                               
    tty->rawOutBufState = rob_idle;                                   
                                                                      
    /*                                                                
     * Set callbacks                                                  
     */                                                               
    tty->device = *callbacks;                                         
ffc07128:	80 f7 00 14 	lwz     r7,20(r23)                             
ffc0712c:	81 57 00 18 	lwz     r10,24(r23)                            
      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;                                   
ffc07130:	91 1f 00 94 	stw     r8,148(r31)                            
                                                                      
    /*                                                                
     * Set callbacks                                                  
     */                                                               
    tty->device = *callbacks;                                         
ffc07134:	90 df 00 a8 	stw     r6,168(r31)                            
ffc07138:	90 ff 00 ac 	stw     r7,172(r31)                            
ffc0713c:	91 5f 00 b0 	stw     r10,176(r31)                           
ffc07140:	91 3f 00 b4 	stw     r9,180(r31)                            
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
ffc07144:	41 9e 01 84 	beq-    cr7,ffc072c8 <rtems_termios_open+0x440>
           &tty->rxTaskId);                                           
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
ffc07148:	81 3f 00 a0 	lwz     r9,160(r31)                            
ffc0714c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07150:	41 9e 01 4c 	beq-    cr7,ffc0729c <rtems_termios_open+0x414>
ffc07154:	81 3f 00 b4 	lwz     r9,180(r31)                            
ffc07158:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc0715c:	41 9e 01 40 	beq-    cr7,ffc0729c <rtems_termios_open+0x414>
    }                                                                 
                                                                      
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
ffc07160:	38 c0 25 02 	li      r6,9474                                
ffc07164:	90 df 00 30 	stw     r6,48(r31)                             
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
ffc07168:	38 c0 18 05 	li      r6,6149                                
    tty->termios.c_cc[VINTR] = '\003';                                
    tty->termios.c_cc[VQUIT] = '\034';                                
    tty->termios.c_cc[VERASE] = '\177';                               
    tty->termios.c_cc[VKILL] = '\025';                                
    tty->termios.c_cc[VEOF] = '\004';                                 
    tty->termios.c_cc[VEOL] = '\000';                                 
ffc0716c:	39 40 00 00 	li      r10,0                                  
    tty->termios.c_cc[VDISCARD] = '\017';                             
    tty->termios.c_cc[VWERASE] = '\027';                              
    tty->termios.c_cc[VLNEXT] = '\026';                               
                                                                      
    /* start with no flow control, clear flow control flags */        
    tty->flow_ctrl = 0;                                               
ffc07170:	39 20 00 00 	li      r9,0                                   
                                                                      
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
ffc07174:	90 df 00 34 	stw     r6,52(r31)                             
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
ffc07178:	38 c0 08 bd 	li      r6,2237                                
    tty->termios.c_cc[VDISCARD] = '\017';                             
    tty->termios.c_cc[VWERASE] = '\027';                              
    tty->termios.c_cc[VLNEXT] = '\026';                               
                                                                      
    /* start with no flow control, clear flow control flags */        
    tty->flow_ctrl = 0;                                               
ffc0717c:	91 3f 00 b8 	stw     r9,184(r31)                            
    tty->termios.c_cc[VINTR] = '\003';                                
    tty->termios.c_cc[VQUIT] = '\034';                                
    tty->termios.c_cc[VERASE] = '\177';                               
    tty->termios.c_cc[VKILL] = '\025';                                
    tty->termios.c_cc[VEOF] = '\004';                                 
    tty->termios.c_cc[VEOL] = '\000';                                 
ffc07180:	99 5f 00 4c 	stb     r10,76(r31)                            
    tty->lowwater  = tty->rawInBuf.Size * 1/2;                        
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
ffc07184:	89 36 00 0c 	lbz     r9,12(r22)                             
    /*                                                                
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
ffc07188:	90 df 00 38 	stw     r6,56(r31)                             
    tty->termios.c_lflag =                                            
ffc0718c:	38 c0 00 00 	li      r6,0                                   
ffc07190:	60 c6 82 3b 	ori     r6,r6,33339                            
    tty->termios.c_cc[VQUIT] = '\034';                                
    tty->termios.c_cc[VERASE] = '\177';                               
    tty->termios.c_cc[VKILL] = '\025';                                
    tty->termios.c_cc[VEOF] = '\004';                                 
    tty->termios.c_cc[VEOL] = '\000';                                 
    tty->termios.c_cc[VEOL2] = '\000';                                
ffc07194:	99 5f 00 51 	stb     r10,81(r31)                            
    tty->termios.c_cc[VSTART] = '\021';                               
ffc07198:	39 40 00 11 	li      r10,17                                 
    tty->lowwater  = tty->rawInBuf.Size * 1/2;                        
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
ffc0719c:	2f 89 00 7a 	cmpwi   cr7,r9,122                             
    tty->termios.c_cc[VERASE] = '\177';                               
    tty->termios.c_cc[VKILL] = '\025';                                
    tty->termios.c_cc[VEOF] = '\004';                                 
    tty->termios.c_cc[VEOL] = '\000';                                 
    tty->termios.c_cc[VEOL2] = '\000';                                
    tty->termios.c_cc[VSTART] = '\021';                               
ffc071a0:	99 5f 00 49 	stb     r10,73(r31)                            
    tty->termios.c_cc[VSTOP] = '\023';                                
ffc071a4:	39 40 00 13 	li      r10,19                                 
    /* start with no flow control, clear flow control flags */        
    tty->flow_ctrl = 0;                                               
    /*                                                                
     * set low/highwater mark for XON/XOFF support                    
     */                                                               
    tty->lowwater  = tty->rawInBuf.Size * 1/2;                        
ffc071a8:	80 ff 00 64 	lwz     r7,100(r31)                            
     * Set default parameters                                         
     */                                                               
    tty->termios.c_iflag = BRKINT | ICRNL | IXON | IMAXBEL;           
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
    tty->termios.c_lflag =                                            
ffc071ac:	90 df 00 3c 	stw     r6,60(r31)                             
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
ffc071b0:	38 c0 00 03 	li      r6,3                                   
    /* start with no flow control, clear flow control flags */        
    tty->flow_ctrl = 0;                                               
    /*                                                                
     * set low/highwater mark for XON/XOFF support                    
     */                                                               
    tty->lowwater  = tty->rawInBuf.Size * 1/2;                        
ffc071b4:	54 e7 f8 7e 	rlwinm  r7,r7,31,1,31                          
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
ffc071b8:	81 1f 00 64 	lwz     r8,100(r31)                            
    tty->termios.c_cc[VKILL] = '\025';                                
    tty->termios.c_cc[VEOF] = '\004';                                 
    tty->termios.c_cc[VEOL] = '\000';                                 
    tty->termios.c_cc[VEOL2] = '\000';                                
    tty->termios.c_cc[VSTART] = '\021';                               
    tty->termios.c_cc[VSTOP] = '\023';                                
ffc071bc:	99 5f 00 4a 	stb     r10,74(r31)                            
    tty->termios.c_cc[VSUSP] = '\032';                                
ffc071c0:	39 40 00 1a 	li      r10,26                                 
    tty->flow_ctrl = 0;                                               
    /*                                                                
     * set low/highwater mark for XON/XOFF support                    
     */                                                               
    tty->lowwater  = tty->rawInBuf.Size * 1/2;                        
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
ffc071c4:	1d 08 00 03 	mulli   r8,r8,3                                
    tty->termios.c_oflag = OPOST | ONLCR | XTABS;                     
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
    tty->termios.c_lflag =                                            
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
ffc071c8:	98 df 00 41 	stb     r6,65(r31)                             
    tty->termios.c_cc[VQUIT] = '\034';                                
ffc071cc:	38 c0 00 1c 	li      r6,28                                  
    tty->termios.c_cc[VEOF] = '\004';                                 
    tty->termios.c_cc[VEOL] = '\000';                                 
    tty->termios.c_cc[VEOL2] = '\000';                                
    tty->termios.c_cc[VSTART] = '\021';                               
    tty->termios.c_cc[VSTOP] = '\023';                                
    tty->termios.c_cc[VSUSP] = '\032';                                
ffc071d0:	99 5f 00 4b 	stb     r10,75(r31)                            
    tty->termios.c_cc[VREPRINT] = '\022';                             
ffc071d4:	39 40 00 12 	li      r10,18                                 
    tty->flow_ctrl = 0;                                               
    /*                                                                
     * set low/highwater mark for XON/XOFF support                    
     */                                                               
    tty->lowwater  = tty->rawInBuf.Size * 1/2;                        
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
ffc071d8:	55 08 f0 be 	rlwinm  r8,r8,30,2,31                          
    tty->termios.c_cflag = B9600 | CS8 | CREAD | CLOCAL;              
    tty->termios.c_lflag =                                            
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
    tty->termios.c_cc[VQUIT] = '\034';                                
ffc071dc:	98 df 00 42 	stb     r6,66(r31)                             
    tty->termios.c_cc[VERASE] = '\177';                               
ffc071e0:	38 c0 00 7f 	li      r6,127                                 
    tty->termios.c_cc[VEOL] = '\000';                                 
    tty->termios.c_cc[VEOL2] = '\000';                                
    tty->termios.c_cc[VSTART] = '\021';                               
    tty->termios.c_cc[VSTOP] = '\023';                                
    tty->termios.c_cc[VSUSP] = '\032';                                
    tty->termios.c_cc[VREPRINT] = '\022';                             
ffc071e4:	99 5f 00 4d 	stb     r10,77(r31)                            
    tty->termios.c_cc[VDISCARD] = '\017';                             
ffc071e8:	39 40 00 0f 	li      r10,15                                 
    tty->termios.c_lflag =                                            
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
    tty->termios.c_cc[VQUIT] = '\034';                                
    tty->termios.c_cc[VERASE] = '\177';                               
ffc071ec:	98 df 00 43 	stb     r6,67(r31)                             
    tty->termios.c_cc[VKILL] = '\025';                                
ffc071f0:	38 c0 00 15 	li      r6,21                                  
    tty->termios.c_cc[VEOL2] = '\000';                                
    tty->termios.c_cc[VSTART] = '\021';                               
    tty->termios.c_cc[VSTOP] = '\023';                                
    tty->termios.c_cc[VSUSP] = '\032';                                
    tty->termios.c_cc[VREPRINT] = '\022';                             
    tty->termios.c_cc[VDISCARD] = '\017';                             
ffc071f4:	99 5f 00 4e 	stb     r10,78(r31)                            
    tty->termios.c_cc[VWERASE] = '\027';                              
ffc071f8:	39 40 00 17 	li      r10,23                                 
       ISIG | ICANON | IEXTEN | ECHO | ECHOK | ECHOE | ECHOCTL;       
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
    tty->termios.c_cc[VQUIT] = '\034';                                
    tty->termios.c_cc[VERASE] = '\177';                               
    tty->termios.c_cc[VKILL] = '\025';                                
ffc071fc:	98 df 00 44 	stb     r6,68(r31)                             
    tty->termios.c_cc[VEOF] = '\004';                                 
ffc07200:	38 c0 00 04 	li      r6,4                                   
    tty->termios.c_cc[VSTART] = '\021';                               
    tty->termios.c_cc[VSTOP] = '\023';                                
    tty->termios.c_cc[VSUSP] = '\032';                                
    tty->termios.c_cc[VREPRINT] = '\022';                             
    tty->termios.c_cc[VDISCARD] = '\017';                             
    tty->termios.c_cc[VWERASE] = '\027';                              
ffc07204:	99 5f 00 4f 	stb     r10,79(r31)                            
    tty->termios.c_cc[VLNEXT] = '\026';                               
ffc07208:	39 40 00 16 	li      r10,22                                 
                                                                      
    tty->termios.c_cc[VINTR] = '\003';                                
    tty->termios.c_cc[VQUIT] = '\034';                                
    tty->termios.c_cc[VERASE] = '\177';                               
    tty->termios.c_cc[VKILL] = '\025';                                
    tty->termios.c_cc[VEOF] = '\004';                                 
ffc0720c:	98 df 00 45 	stb     r6,69(r31)                             
    tty->termios.c_cc[VSTOP] = '\023';                                
    tty->termios.c_cc[VSUSP] = '\032';                                
    tty->termios.c_cc[VREPRINT] = '\022';                             
    tty->termios.c_cc[VDISCARD] = '\017';                             
    tty->termios.c_cc[VWERASE] = '\027';                              
    tty->termios.c_cc[VLNEXT] = '\026';                               
ffc07210:	99 5f 00 50 	stb     r10,80(r31)                            
    /* start with no flow control, clear flow control flags */        
    tty->flow_ctrl = 0;                                               
    /*                                                                
     * set low/highwater mark for XON/XOFF support                    
     */                                                               
    tty->lowwater  = tty->rawInBuf.Size * 1/2;                        
ffc07214:	90 ff 00 bc 	stw     r7,188(r31)                            
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
ffc07218:	91 1f 00 c0 	stw     r8,192(r31)                            
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
ffc0721c:	41 9e 00 74 	beq-    cr7,ffc07290 <rtems_termios_open+0x408>
ffc07220:	39 29 00 01 	addi    r9,r9,1                                
ffc07224:	99 36 00 0c 	stb     r9,12(r22)                             
ffc07228:	4b ff fd 0c 	b       ffc06f34 <rtems_termios_open+0xac>     
                                                                      
    /*                                                                
     * start I/O tasks, if needed                                     
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
      sc = rtems_task_start(                                          
ffc0722c:	80 7f 00 c4 	lwz     r3,196(r31)                            
ffc07230:	3c 80 ff c1 	lis     r4,-63                                 
ffc07234:	38 84 8c 4c 	addi    r4,r4,-29620                           
ffc07238:	7f e5 fb 78 	mr      r5,r31                                 
ffc0723c:	48 00 2e 4d 	bl      ffc0a088 <rtems_task_start>            
        tty->rxTaskId, rtems_termios_rxdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc07240:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07244:	40 9e 00 80 	bne-    cr7,ffc072c4 <rtems_termios_open+0x43c><== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
                                                                      
      sc = rtems_task_start(                                          
ffc07248:	80 7f 00 c8 	lwz     r3,200(r31)                            
ffc0724c:	3c 80 ff c0 	lis     r4,-64                                 
ffc07250:	38 84 6d 68 	addi    r4,r4,28008                            
ffc07254:	7f e5 fb 78 	mr      r5,r31                                 
ffc07258:	48 00 2e 31 	bl      ffc0a088 <rtems_task_start>            
        tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc0725c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07260:	41 9e fd 1c 	beq+    cr7,ffc06f7c <rtems_termios_open+0xf4> <== ALWAYS TAKEN
ffc07264:	48 00 00 60 	b       ffc072c4 <rtems_termios_open+0x43c>    <== NOT EXECUTED
    /*                                                                
     * allocate cooked buffer                                         
     */                                                               
    tty->cbuf  = malloc (CBUFSIZE);                                   
    if (tty->cbuf == NULL) {                                          
            free((void *)(tty->rawOutBuf.theBuf));                    
ffc07268:	7e 83 a3 78 	mr      r3,r20                                 
ffc0726c:	4b ff d8 fd 	bl      ffc04b68 <free>                        
            free((void *)(tty->rawInBuf.theBuf));                     
ffc07270:	7e a3 ab 78 	mr      r3,r21                                 
ffc07274:	4b ff d8 f5 	bl      ffc04b68 <free>                        
            free(tty);                                                
ffc07278:	7f e3 fb 78 	mr      r3,r31                                 
ffc0727c:	4b ff d8 ed 	bl      ffc04b68 <free>                        
      rtems_semaphore_release (rtems_termios_ttyMutex);               
ffc07280:	80 7b 28 58 	lwz     r3,10328(r27)                          
      return RTEMS_NO_MEMORY;                                         
ffc07284:	3b 80 00 1a 	li      r28,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);               
ffc07288:	48 00 29 39 	bl      ffc09bc0 <rtems_semaphore_release>     
      return RTEMS_NO_MEMORY;                                         
ffc0728c:	4b ff fc f8 	b       ffc06f84 <rtems_termios_open+0xfc>     
    tty->highwater = tty->rawInBuf.Size * 3/4;                        
    /*                                                                
     * Bump name characer                                             
     */                                                               
    if (c++ == 'z')                                                   
      c = 'a';                                                        
ffc07290:	39 20 00 61 	li      r9,97                                  
ffc07294:	99 36 00 0c 	stb     r9,12(r22)                             
ffc07298:	4b ff fc 9c 	b       ffc06f34 <rtems_termios_open+0xac>     
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
        rtems_build_name ('T', 'R', 'r', c),                          
ffc0729c:	88 76 00 0c 	lbz     r3,12(r22)                             
        rtems_fatal_error_occurred (sc);                              
                                                                      
    }                                                                 
    if ((tty->device.pollRead == NULL) ||                             
        (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN)){   
      sc = rtems_semaphore_create (                                   
ffc072a0:	38 80 00 00 	li      r4,0                                   
ffc072a4:	38 a0 00 24 	li      r5,36                                  
ffc072a8:	64 63 54 52 	oris    r3,r3,21586                            
ffc072ac:	60 63 72 00 	ori     r3,r3,29184                            
ffc072b0:	38 c0 00 00 	li      r6,0                                   
ffc072b4:	38 ff 00 68 	addi    r7,r31,104                             
ffc072b8:	48 00 24 55 	bl      ffc0970c <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)                                     
ffc072bc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc072c0:	41 9e fe a0 	beq+    cr7,ffc07160 <rtems_termios_open+0x2d8><== ALWAYS TAKEN
        rtems_fatal_error_occurred (sc);                              
                                                                      
      sc = rtems_task_start(                                          
        tty->txTaskId, rtems_termios_txdaemon, (rtems_task_argument)tty);
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
ffc072c4:	48 00 30 d9 	bl      ffc0a39c <rtems_fatal_error_occurred>  
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
      sc = rtems_task_create (                                        
                                   rtems_build_name ('T', 'x', 'T', c),
ffc072c8:	88 76 00 0c 	lbz     r3,12(r22)                             
                                                                      
    /*                                                                
     * Create I/O tasks                                               
     */                                                               
    if (tty->device.outputUsesInterrupts == TERMIOS_TASK_DRIVEN) {    
      sc = rtems_task_create (                                        
ffc072cc:	38 80 00 0a 	li      r4,10                                  
ffc072d0:	38 a0 04 00 	li      r5,1024                                
ffc072d4:	64 63 54 78 	oris    r3,r3,21624                            
ffc072d8:	60 63 54 00 	ori     r3,r3,21504                            
ffc072dc:	38 c0 05 00 	li      r6,1280                                
ffc072e0:	38 e0 00 00 	li      r7,0                                   
ffc072e4:	39 1f 00 c8 	addi    r8,r31,200                             
ffc072e8:	48 00 2a 31 	bl      ffc09d18 <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)                                     
ffc072ec:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc072f0:	40 be ff d4 	bne-    cr7,ffc072c4 <rtems_termios_open+0x43c><== NEVER TAKEN
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_task_create (                                        
                                   rtems_build_name ('R', 'x', 'T', c),
ffc072f4:	88 76 00 0c 	lbz     r3,12(r22)                             
           RTEMS_NO_ASR,                                              
           RTEMS_NO_FLOATING_POINT | RTEMS_LOCAL,                     
           &tty->txTaskId);                                           
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
      sc = rtems_task_create (                                        
ffc072f8:	38 80 00 09 	li      r4,9                                   
ffc072fc:	38 a0 04 00 	li      r5,1024                                
ffc07300:	64 63 52 78 	oris    r3,r3,21112                            
ffc07304:	60 63 54 00 	ori     r3,r3,21504                            
ffc07308:	38 c0 05 00 	li      r6,1280                                
ffc0730c:	38 e0 00 00 	li      r7,0                                   
ffc07310:	39 1f 00 c4 	addi    r8,r31,196                             
ffc07314:	48 00 2a 05 	bl      ffc09d18 <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)                                     
ffc07318:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0731c:	41 9e fe 2c 	beq+    cr7,ffc07148 <rtems_termios_open+0x2c0><== ALWAYS TAKEN
ffc07320:	4b ff ff a4 	b       ffc072c4 <rtems_termios_open+0x43c>    <== NOT EXECUTED
    tty->back = NULL;                                                 
    if (rtems_termios_ttyHead != NULL)                                
      rtems_termios_ttyHead->back = tty;                              
    rtems_termios_ttyHead = tty;                                      
    if (rtems_termios_ttyTail == NULL)                                
      rtems_termios_ttyTail = tty;                                    
ffc07324:	93 e9 28 5c 	stw     r31,10332(r9)                          
ffc07328:	4b ff fd 54 	b       ffc0707c <rtems_termios_open+0x1f4>    
                                                                      

ffc07a38 <rtems_termios_puts>: * Send characters to device-specific code */ void rtems_termios_puts ( const void *_buf, size_t len, struct rtems_termios_tty *tty) {
ffc07a38:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc07a3c:	7c 08 02 a6 	mflr    r0                                     
ffc07a40:	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) {           
ffc07a44:	81 25 00 b4 	lwz     r9,180(r5)                             
 * Send characters to device-specific code                            
 */                                                                   
void                                                                  
rtems_termios_puts (                                                  
  const void *_buf, size_t len, struct rtems_termios_tty *tty)        
{                                                                     
ffc07a48:	93 21 00 0c 	stw     r25,12(r1)                             
ffc07a4c:	7c 79 1b 78 	mr      r25,r3                                 
  const unsigned char *buf = _buf;                                    
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
ffc07a50:	2f 89 00 00 	cmpwi   cr7,r9,0                               
 * Send characters to device-specific code                            
 */                                                                   
void                                                                  
rtems_termios_puts (                                                  
  const void *_buf, size_t len, struct rtems_termios_tty *tty)        
{                                                                     
ffc07a54:	93 41 00 10 	stw     r26,16(r1)                             
ffc07a58:	7c 9a 23 78 	mr      r26,r4                                 
ffc07a5c:	93 e1 00 24 	stw     r31,36(r1)                             
ffc07a60:	7c bf 2b 78 	mr      r31,r5                                 
ffc07a64:	93 01 00 08 	stw     r24,8(r1)                              
ffc07a68:	93 61 00 14 	stw     r27,20(r1)                             
ffc07a6c:	93 81 00 18 	stw     r28,24(r1)                             
ffc07a70:	93 a1 00 1c 	stw     r29,28(r1)                             
ffc07a74:	93 c1 00 20 	stw     r30,32(r1)                             
  const unsigned char *buf = _buf;                                    
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
ffc07a78:	41 9e 01 24 	beq-    cr7,ffc07b9c <rtems_termios_puts+0x164>
    (*tty->device.write)(tty->minor, buf, len);                       
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
  while (len) {                                                       
ffc07a7c:	2f 84 00 00 	cmpwi   cr7,r4,0                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, buf, len);                       
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
ffc07a80:	83 65 00 80 	lwz     r27,128(r5)                            
                                                                      
/*                                                                    
 * Send characters to device-specific code                            
 */                                                                   
void                                                                  
rtems_termios_puts (                                                  
ffc07a84:	3b 23 ff ff 	addi    r25,r3,-1                              
     * with interrupts enabled.                                       
     */                                                               
    newHead = (newHead + 1) % tty->rawOutBuf.Size;                    
    rtems_interrupt_disable (level);                                  
    while (newHead == tty->rawOutBuf.Tail) {                          
      tty->rawOutBufState = rob_wait;                                 
ffc07a88:	3b 80 00 02 	li      r28,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;                                 
ffc07a8c:	3b 00 00 01 	li      r24,1                                  
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, buf, len);                       
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
  while (len) {                                                       
ffc07a90:	41 9e 00 b8 	beq-    cr7,ffc07b48 <rtems_termios_puts+0x110><== NEVER TAKEN
     *  len -= ncopy                                                  
     *                                                                
     * To minimize latency, the memcpy should be done                 
     * with interrupts enabled.                                       
     */                                                               
    newHead = (newHead + 1) % tty->rawOutBuf.Size;                    
ffc07a94:	81 3f 00 88 	lwz     r9,136(r31)                            
ffc07a98:	3b 7b 00 01 	addi    r27,r27,1                              
ffc07a9c:	7d 5b 4b 96 	divwu   r10,r27,r9                             
ffc07aa0:	7d 2a 49 d6 	mullw   r9,r10,r9                              
ffc07aa4:	7f 69 d8 50 	subf    r27,r9,r27                             
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc07aa8:	7f c0 00 a6 	mfmsr   r30                                    
ffc07aac:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc07ab0:	7f c9 48 78 	andc    r9,r30,r9                              
ffc07ab4:	7d 20 01 24 	mtmsr   r9                                     
    rtems_interrupt_disable (level);                                  
    while (newHead == tty->rawOutBuf.Tail) {                          
ffc07ab8:	83 bf 00 84 	lwz     r29,132(r31)                           
ffc07abc:	7f 9d d8 00 	cmpw    cr7,r29,r27                            
ffc07ac0:	40 9e 00 40 	bne-    cr7,ffc07b00 <rtems_termios_puts+0xc8> 
      tty->rawOutBufState = rob_wait;                                 
ffc07ac4:	93 9f 00 94 	stw     r28,148(r31)                           
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc07ac8:	7f c0 01 24 	mtmsr   r30                                    
      rtems_interrupt_enable (level);                                 
      sc = rtems_semaphore_obtain(                                    
ffc07acc:	80 7f 00 8c 	lwz     r3,140(r31)                            
ffc07ad0:	38 80 00 00 	li      r4,0                                   
ffc07ad4:	38 a0 00 00 	li      r5,0                                   
ffc07ad8:	48 00 1f 49 	bl      ffc09a20 <rtems_semaphore_obtain>      
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc07adc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc07ae0:	40 9e 01 00 	bne-    cr7,ffc07be0 <rtems_termios_puts+0x1a8><== NEVER TAKEN
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc07ae4:	7f c0 00 a6 	mfmsr   r30                                    
ffc07ae8:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc07aec:	7f c9 48 78 	andc    r9,r30,r9                              
ffc07af0:	7d 20 01 24 	mtmsr   r9                                     
     * 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) {                          
ffc07af4:	81 3f 00 84 	lwz     r9,132(r31)                            
ffc07af8:	7f 89 e8 00 	cmpw    cr7,r9,r29                             
ffc07afc:	41 9e ff c8 	beq+    cr7,ffc07ac4 <rtems_termios_puts+0x8c> <== NEVER TAKEN
        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++;              
ffc07b00:	81 5f 00 80 	lwz     r10,128(r31)                           
ffc07b04:	8d 19 00 01 	lbzu    r8,1(r25)                              
ffc07b08:	81 3f 00 7c 	lwz     r9,124(r31)                            
ffc07b0c:	7d 09 51 ae 	stbx    r8,r9,r10                              
    tty->rawOutBuf.Head = newHead;                                    
    if (tty->rawOutBufState == rob_idle) {                            
ffc07b10:	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;                                    
ffc07b14:	93 7f 00 80 	stw     r27,128(r31)                           
    if (tty->rawOutBufState == rob_idle) {                            
ffc07b18:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc07b1c:	40 9e 00 20 	bne-    cr7,ffc07b3c <rtems_termios_puts+0x104>
      /* check, whether XOFF has been received */                     
      if (!(tty->flow_ctrl & FL_ORCVXOF)) {                           
ffc07b20:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc07b24:	71 2a 00 10 	andi.   r10,r9,16                              
ffc07b28:	41 82 00 50 	beq-    ffc07b78 <rtems_termios_puts+0x140>    <== ALWAYS TAKEN
        (*tty->device.write)(                                         
          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;                                   
ffc07b2c:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc07b30:	61 29 00 20 	ori     r9,r9,32                               <== NOT EXECUTED
ffc07b34:	91 3f 00 b8 	stw     r9,184(r31)                            <== NOT EXECUTED
      }                                                               
      tty->rawOutBufState = rob_busy;                                 
ffc07b38:	93 1f 00 94 	stw     r24,148(r31)                           
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc07b3c:	7f c0 01 24 	mtmsr   r30                                    
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, buf, len);                       
    return;                                                           
  }                                                                   
  newHead = tty->rawOutBuf.Head;                                      
  while (len) {                                                       
ffc07b40:	37 5a ff ff 	addic.  r26,r26,-1                             
ffc07b44:	40 82 ff 50 	bne+    ffc07a94 <rtems_termios_puts+0x5c>     
      tty->rawOutBufState = rob_busy;                                 
    }                                                                 
    rtems_interrupt_enable (level);                                   
    len--;                                                            
  }                                                                   
}                                                                     
ffc07b48:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc07b4c:	83 01 00 08 	lwz     r24,8(r1)                              
ffc07b50:	7c 08 03 a6 	mtlr    r0                                     
ffc07b54:	83 21 00 0c 	lwz     r25,12(r1)                             
ffc07b58:	83 41 00 10 	lwz     r26,16(r1)                             
ffc07b5c:	83 61 00 14 	lwz     r27,20(r1)                             
ffc07b60:	83 81 00 18 	lwz     r28,24(r1)                             
ffc07b64:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc07b68:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc07b6c:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc07b70:	38 21 00 28 	addi    r1,r1,40                               
ffc07b74:	4e 80 00 20 	blr                                            
    tty->rawOutBuf.Head = newHead;                                    
    if (tty->rawOutBufState == rob_idle) {                            
      /* check, whether XOFF has been received */                     
      if (!(tty->flow_ctrl & FL_ORCVXOF)) {                           
        (*tty->device.write)(                                         
          tty->minor, &tty->rawOutBuf.theBuf[tty->rawOutBuf.Tail],1); 
ffc07b78:	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)(                                         
ffc07b7c:	38 a0 00 01 	li      r5,1                                   
ffc07b80:	81 5f 00 7c 	lwz     r10,124(r31)                           
ffc07b84:	81 3f 00 a4 	lwz     r9,164(r31)                            
ffc07b88:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc07b8c:	7c 8a 22 14 	add     r4,r10,r4                              
ffc07b90:	7d 29 03 a6 	mtctr   r9                                     
ffc07b94:	4e 80 04 21 	bctrl                                          
ffc07b98:	4b ff ff a0 	b       ffc07b38 <rtems_termios_puts+0x100>    
  unsigned int newHead;                                               
  rtems_interrupt_level level;                                        
  rtems_status_code sc;                                               
                                                                      
  if (tty->device.outputUsesInterrupts == TERMIOS_POLLED) {           
    (*tty->device.write)(tty->minor, buf, len);                       
ffc07b9c:	81 25 00 a4 	lwz     r9,164(r5)                             
ffc07ba0:	7f 24 cb 78 	mr      r4,r25                                 
      tty->rawOutBufState = rob_busy;                                 
    }                                                                 
    rtems_interrupt_enable (level);                                   
    len--;                                                            
  }                                                                   
}                                                                     
ffc07ba4:	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);                       
ffc07ba8:	7d 29 03 a6 	mtctr   r9                                     
ffc07bac:	80 65 00 10 	lwz     r3,16(r5)                              
      tty->rawOutBufState = rob_busy;                                 
    }                                                                 
    rtems_interrupt_enable (level);                                   
    len--;                                                            
  }                                                                   
}                                                                     
ffc07bb0:	7c 08 03 a6 	mtlr    r0                                     
ffc07bb4:	83 01 00 08 	lwz     r24,8(r1)                              
ffc07bb8:	83 21 00 0c 	lwz     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);                       
ffc07bbc:	7f 45 d3 78 	mr      r5,r26                                 
      tty->rawOutBufState = rob_busy;                                 
    }                                                                 
    rtems_interrupt_enable (level);                                   
    len--;                                                            
  }                                                                   
}                                                                     
ffc07bc0:	83 61 00 14 	lwz     r27,20(r1)                             
ffc07bc4:	83 41 00 10 	lwz     r26,16(r1)                             
ffc07bc8:	83 81 00 18 	lwz     r28,24(r1)                             
ffc07bcc:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc07bd0:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc07bd4:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc07bd8:	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);                       
ffc07bdc:	4e 80 04 20 	bctr                                           
      tty->rawOutBufState = rob_wait;                                 
      rtems_interrupt_enable (level);                                 
      sc = rtems_semaphore_obtain(                                    
        tty->rawOutBuf.Semaphore, RTEMS_WAIT, RTEMS_NO_TIMEOUT);      
      if (sc != RTEMS_SUCCESSFUL)                                     
        rtems_fatal_error_occurred (sc);                              
ffc07be0:	48 00 27 bd 	bl      ffc0a39c <rtems_fatal_error_occurred>  <== NOT EXECUTED
                                                                      

ffc0845c <rtems_termios_read>: return RTEMS_SUCCESSFUL; } rtems_status_code rtems_termios_read (void *arg) {
ffc0845c:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc08460:	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);
ffc08464:	38 80 00 00 	li      r4,0                                   
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
{                                                                     
ffc08468:	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);
ffc0846c:	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;                   
ffc08470:	81 23 00 00 	lwz     r9,0(r3)                               
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
{                                                                     
ffc08474:	93 e1 00 2c 	stw     r31,44(r1)                             
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
ffc08478:	83 e9 00 30 	lwz     r31,48(r9)                             
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
{                                                                     
ffc0847c:	93 41 00 18 	stw     r26,24(r1)                             
ffc08480:	7c 7a 1b 78 	mr      r26,r3                                 
  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);
ffc08484:	80 7f 00 14 	lwz     r3,20(r31)                             
  return RTEMS_SUCCESSFUL;                                            
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_read (void *arg)                                        
{                                                                     
ffc08488:	93 01 00 10 	stw     r24,16(r1)                             
ffc0848c:	93 21 00 14 	stw     r25,20(r1)                             
ffc08490:	93 81 00 20 	stw     r28,32(r1)                             
ffc08494:	92 c1 00 08 	stw     r22,8(r1)                              
ffc08498:	92 e1 00 0c 	stw     r23,12(r1)                             
ffc0849c:	93 61 00 1c 	stw     r27,28(r1)                             
ffc084a0:	93 a1 00 24 	stw     r29,36(r1)                             
ffc084a4:	93 c1 00 28 	stw     r30,40(r1)                             
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
  uint32_t   count = args->count;                                     
ffc084a8:	83 9a 00 14 	lwz     r28,20(r26)                            
  char      *buffer = args->buffer;                                   
ffc084ac:	83 1a 00 10 	lwz     r24,16(r26)                            
  rtems_status_code sc;                                               
                                                                      
  sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
ffc084b0:	48 00 15 71 	bl      ffc09a20 <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc084b4:	7c 79 1b 79 	mr.     r25,r3                                 
ffc084b8:	40 82 00 48 	bne-    ffc08500 <rtems_termios_read+0xa4>     <== NEVER TAKEN
    return sc;                                                        
                                                                      
  if (rtems_termios_linesw[tty->t_line].l_read != NULL) {             
ffc084bc:	81 3f 00 cc 	lwz     r9,204(r31)                            
ffc084c0:	3d 40 00 00 	lis     r10,0                                  
ffc084c4:	39 4a 29 38 	addi    r10,r10,10552                          
ffc084c8:	55 29 28 34 	rlwinm  r9,r9,5,0,26                           
ffc084cc:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc084d0:	81 29 00 08 	lwz     r9,8(r9)                               
ffc084d4:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc084d8:	41 9e 00 64 	beq-    cr7,ffc0853c <rtems_termios_read+0xe0> 
    sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);          
ffc084dc:	7d 29 03 a6 	mtctr   r9                                     
ffc084e0:	7f e3 fb 78 	mr      r3,r31                                 
ffc084e4:	7f 44 d3 78 	mr      r4,r26                                 
ffc084e8:	4e 80 04 21 	bctrl                                          
    tty->tty_rcvwakeup = 0;                                           
ffc084ec:	39 20 00 00 	li      r9,0                                   
  sc = rtems_semaphore_obtain (tty->isem, RTEMS_WAIT, RTEMS_NO_TIMEOUT);
  if (sc != RTEMS_SUCCESSFUL)                                         
    return sc;                                                        
                                                                      
  if (rtems_termios_linesw[tty->t_line].l_read != NULL) {             
    sc = rtems_termios_linesw[tty->t_line].l_read(tty,args);          
ffc084f0:	7c 79 1b 78 	mr      r25,r3                                 
    tty->tty_rcvwakeup = 0;                                           
ffc084f4:	91 3f 00 e4 	stw     r9,228(r31)                            
    rtems_semaphore_release (tty->isem);                              
ffc084f8:	80 7f 00 14 	lwz     r3,20(r31)                             
ffc084fc:	48 00 16 c5 	bl      ffc09bc0 <rtems_semaphore_release>     
  }                                                                   
  args->bytes_moved = args->count - count;                            
  tty->tty_rcvwakeup = 0;                                             
  rtems_semaphore_release (tty->isem);                                
  return sc;                                                          
}                                                                     
ffc08500:	80 01 00 34 	lwz     r0,52(r1)                              
ffc08504:	7f 23 cb 78 	mr      r3,r25                                 
ffc08508:	82 c1 00 08 	lwz     r22,8(r1)                              
ffc0850c:	7c 08 03 a6 	mtlr    r0                                     
ffc08510:	82 e1 00 0c 	lwz     r23,12(r1)                             
ffc08514:	83 01 00 10 	lwz     r24,16(r1)                             
ffc08518:	83 21 00 14 	lwz     r25,20(r1)                             
ffc0851c:	83 41 00 18 	lwz     r26,24(r1)                             
ffc08520:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc08524:	83 81 00 20 	lwz     r28,32(r1)                             
ffc08528:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc0852c:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc08530:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc08534:	38 21 00 30 	addi    r1,r1,48                               
ffc08538:	4e 80 00 20 	blr                                            
    tty->tty_rcvwakeup = 0;                                           
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
ffc0853c:	81 5f 00 24 	lwz     r10,36(r31)                            
ffc08540:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc08544:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc08548:	41 9e 00 ac 	beq-    cr7,ffc085f4 <rtems_termios_read+0x198><== ALWAYS TAKEN
      sc = fillBufferQueue (tty);                                     
                                                                      
    if (sc != RTEMS_SUCCESSFUL)                                       
      tty->cindex = tty->ccount = 0;                                  
  }                                                                   
  while (count && (tty->cindex < tty->ccount)) {                      
ffc0854c:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc08550:	41 9e 00 48 	beq-    cr7,ffc08598 <rtems_termios_read+0x13c><== NEVER TAKEN
ffc08554:	81 3f 00 24 	lwz     r9,36(r31)                             
ffc08558:	81 5f 00 20 	lwz     r10,32(r31)                            
ffc0855c:	7f 89 50 00 	cmpw    cr7,r9,r10                             
ffc08560:	40 9c 00 3c 	bge-    cr7,ffc0859c <rtems_termios_read+0x140>
ffc08564:	7f 09 c0 50 	subf    r24,r9,r24                             
ffc08568:	7f 89 03 a6 	mtctr   r28                                    
ffc0856c:	48 00 00 10 	b       ffc0857c <rtems_termios_read+0x120>    
ffc08570:	81 5f 00 20 	lwz     r10,32(r31)                            
ffc08574:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc08578:	40 9d 00 24 	ble-    cr7,ffc0859c <rtems_termios_read+0x140>
    *buffer++ = tty->cbuf[tty->cindex++];                             
ffc0857c:	81 5f 00 1c 	lwz     r10,28(r31)                            
    count--;                                                          
ffc08580:	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++];                             
ffc08584:	7d 4a 48 ae 	lbzx    r10,r10,r9                             
ffc08588:	7d 58 49 ae 	stbx    r10,r24,r9                             
ffc0858c:	39 29 00 01 	addi    r9,r9,1                                
ffc08590:	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)) {                      
ffc08594:	42 00 ff dc 	bdnz+   ffc08570 <rtems_termios_read+0x114>    
ffc08598:	3b 80 00 00 	li      r28,0                                  
    *buffer++ = tty->cbuf[tty->cindex++];                             
    count--;                                                          
  }                                                                   
  args->bytes_moved = args->count - count;                            
ffc0859c:	81 3a 00 14 	lwz     r9,20(r26)                             
  tty->tty_rcvwakeup = 0;                                             
  rtems_semaphore_release (tty->isem);                                
ffc085a0:	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;                            
ffc085a4:	7d 3c 48 50 	subf    r9,r28,r9                              
ffc085a8:	91 3a 00 1c 	stw     r9,28(r26)                             
  tty->tty_rcvwakeup = 0;                                             
ffc085ac:	39 20 00 00 	li      r9,0                                   
ffc085b0:	91 3f 00 e4 	stw     r9,228(r31)                            
  rtems_semaphore_release (tty->isem);                                
ffc085b4:	48 00 16 0d 	bl      ffc09bc0 <rtems_semaphore_release>     
  return sc;                                                          
}                                                                     
ffc085b8:	80 01 00 34 	lwz     r0,52(r1)                              
ffc085bc:	7f 23 cb 78 	mr      r3,r25                                 
ffc085c0:	82 c1 00 08 	lwz     r22,8(r1)                              
ffc085c4:	7c 08 03 a6 	mtlr    r0                                     
ffc085c8:	82 e1 00 0c 	lwz     r23,12(r1)                             
ffc085cc:	83 01 00 10 	lwz     r24,16(r1)                             
ffc085d0:	83 21 00 14 	lwz     r25,20(r1)                             
ffc085d4:	83 41 00 18 	lwz     r26,24(r1)                             
ffc085d8:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc085dc:	83 81 00 20 	lwz     r28,32(r1)                             
ffc085e0:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc085e4:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc085e8:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc085ec:	38 21 00 30 	addi    r1,r1,48                               
ffc085f0:	4e 80 00 20 	blr                                            
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
    tty->cindex = tty->ccount = 0;                                    
    tty->read_start_column = tty->column;                             
    if (tty->device.pollRead != NULL &&                               
ffc085f4:	81 3f 00 a0 	lwz     r9,160(r31)                            
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
    tty->cindex = tty->ccount = 0;                                    
    tty->read_start_column = tty->column;                             
ffc085f8:	81 5f 00 28 	lwz     r10,40(r31)                            
    if (tty->device.pollRead != NULL &&                               
ffc085fc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    rtems_semaphore_release (tty->isem);                              
    return sc;                                                        
  }                                                                   
                                                                      
  if (tty->cindex == tty->ccount) {                                   
    tty->cindex = tty->ccount = 0;                                    
ffc08600:	93 3f 00 20 	stw     r25,32(r31)                            
ffc08604:	93 3f 00 24 	stw     r25,36(r31)                            
    tty->read_start_column = tty->column;                             
ffc08608:	91 5f 00 2c 	stw     r10,44(r31)                            
    if (tty->device.pollRead != NULL &&                               
ffc0860c:	41 9e 00 10 	beq-    cr7,ffc0861c <rtems_termios_read+0x1c0>
ffc08610:	81 5f 00 b4 	lwz     r10,180(r31)                           
ffc08614:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc08618:	41 9e 01 94 	beq-    cr7,ffc087ac <rtems_termios_read+0x350>
 * Fill the input buffer from the raw input queue                     
 */                                                                   
static rtems_status_code                                              
fillBufferQueue (struct rtems_termios_tty *tty)                       
{                                                                     
  rtems_interval timeout = tty->rawInBufSemaphoreFirstTimeout;        
ffc0861c:	83 df 00 74 	lwz     r30,116(r31)                           
  rtems_status_code sc;                                               
  int               wait = 1;                                         
ffc08620:	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))) {                
ffc08624:	3e e0 00 00 	lis     r23,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);     
ffc08628:	3a df 00 49 	addi    r22,r31,73                             
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
ffc0862c:	81 5f 00 5c 	lwz     r10,92(r31)                            
ffc08630:	81 3f 00 60 	lwz     r9,96(r31)                             
ffc08634:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc08638:	41 9e 01 00 	beq-    cr7,ffc08738 <rtems_termios_read+0x2dc>
                       (tty->ccount < (CBUFSIZE-1))) {                
ffc0863c:	3b b7 21 5c 	addi    r29,r23,8540                           
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
ffc08640:	81 5f 00 20 	lwz     r10,32(r31)                            
                       (tty->ccount < (CBUFSIZE-1))) {                
ffc08644:	81 3d 00 08 	lwz     r9,8(r29)                              
ffc08648:	39 29 ff ff 	addi    r9,r9,-1                               
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
ffc0864c:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc08650:	40 9d 00 e8 	ble-    cr7,ffc08738 <rtems_termios_read+0x2dc><== NEVER TAKEN
                       (tty->ccount < (CBUFSIZE-1))) {                
      unsigned char c;                                                
      unsigned int newHead;                                           
                                                                      
      newHead = (tty->rawInBuf.Head + 1) % tty->rawInBuf.Size;        
ffc08654:	80 ff 00 5c 	lwz     r7,92(r31)                             
ffc08658:	80 df 00 64 	lwz     r6,100(r31)                            
ffc0865c:	38 e7 00 01 	addi    r7,r7,1                                
      c = tty->rawInBuf.theBuf[newHead];                              
ffc08660:	80 bf 00 58 	lwz     r5,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;        
ffc08664:	7d 27 33 96 	divwu   r9,r7,r6                               
      c = tty->rawInBuf.theBuf[newHead];                              
      tty->rawInBuf.Head = newHead;                                   
      if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)             
ffc08668:	81 7f 00 bc 	lwz     r11,188(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;        
ffc0866c:	7d 29 31 d6 	mullw   r9,r9,r6                               
ffc08670:	7d 29 38 50 	subf    r9,r9,r7                               
      c = tty->rawInBuf.theBuf[newHead];                              
ffc08674:	7f c5 48 ae 	lbzx    r30,r5,r9                              
      tty->rawInBuf.Head = newHead;                                   
ffc08678:	91 3f 00 5c 	stw     r9,92(r31)                             
      if(((tty->rawInBuf.Tail-newHead+tty->rawInBuf.Size)             
ffc0867c:	81 5f 00 60 	lwz     r10,96(r31)                            
ffc08680:	80 ff 00 64 	lwz     r7,100(r31)                            
          % tty->rawInBuf.Size)                                       
ffc08684:	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)             
ffc08688:	7d 47 52 14 	add     r10,r7,r10                             
ffc0868c:	7d 49 50 50 	subf    r10,r9,r10                             
          % tty->rawInBuf.Size)                                       
ffc08690:	7d 2a 43 96 	divwu   r9,r10,r8                              
ffc08694:	7d 09 41 d6 	mullw   r8,r9,r8                               
ffc08698:	7d 48 50 50 	subf    r10,r8,r10                             
      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)             
ffc0869c:	7f 8a 58 40 	cmplw   cr7,r10,r11                            
ffc086a0:	40 9c 00 50 	bge-    cr7,ffc086f0 <rtems_termios_read+0x294><== NEVER TAKEN
          % tty->rawInBuf.Size)                                       
         < tty->lowwater) {                                           
        tty->flow_ctrl &= ~FL_IREQXOF;                                
ffc086a4:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc086a8:	55 29 00 3c 	rlwinm  r9,r9,0,0,30                           
ffc086ac:	91 3f 00 b8 	stw     r9,184(r31)                            
        /* if tx stopped and XON should be sent... */                 
        if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))               
ffc086b0:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc086b4:	71 29 02 02 	andi.   r9,r9,514                              
ffc086b8:	2f 89 02 02 	cmpwi   cr7,r9,514                             
ffc086bc:	41 9e 00 bc 	beq-    cr7,ffc08778 <rtems_termios_read+0x31c><== NEVER TAKEN
            && ((tty->rawOutBufState == rob_idle)                     
          || (tty->flow_ctrl & FL_OSTOP))) {                          
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
            tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);     
        } else if (tty->flow_ctrl & FL_MDRTS) {                       
ffc086c0:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc086c4:	71 28 01 00 	andi.   r8,r9,256                              
ffc086c8:	41 82 00 28 	beq-    ffc086f0 <rtems_termios_read+0x294>    <== ALWAYS TAKEN
          tty->flow_ctrl &= ~FL_IRTSOFF;                              
          /* activate RTS line */                                     
          if (tty->device.startRemoteTx != NULL) {                    
ffc086cc:	81 3f 00 b0 	lwz     r9,176(r31)                            <== NOT EXECUTED
          || (tty->flow_ctrl & FL_OSTOP))) {                          
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
            tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);     
        } else if (tty->flow_ctrl & FL_MDRTS) {                       
          tty->flow_ctrl &= ~FL_IRTSOFF;                              
ffc086d0:	81 5f 00 b8 	lwz     r10,184(r31)                           <== NOT EXECUTED
          /* activate RTS line */                                     
          if (tty->device.startRemoteTx != NULL) {                    
ffc086d4:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
          || (tty->flow_ctrl & FL_OSTOP))) {                          
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
            tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);     
        } else if (tty->flow_ctrl & FL_MDRTS) {                       
          tty->flow_ctrl &= ~FL_IRTSOFF;                              
ffc086d8:	55 4a 07 b8 	rlwinm  r10,r10,0,30,28                        <== NOT EXECUTED
ffc086dc:	91 5f 00 b8 	stw     r10,184(r31)                           <== NOT EXECUTED
          /* activate RTS line */                                     
          if (tty->device.startRemoteTx != NULL) {                    
ffc086e0:	41 9e 00 10 	beq-    cr7,ffc086f0 <rtems_termios_read+0x294><== NOT EXECUTED
            tty->device.startRemoteTx(tty->minor);                    
ffc086e4:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc086e8:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc086ec:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
ffc086f0:	81 3f 00 3c 	lwz     r9,60(r31)                             
        if (siproc (c, tty))                                          
ffc086f4:	7f c3 f3 78 	mr      r3,r30                                 
ffc086f8:	7f e4 fb 78 	mr      r4,r31                                 
          }                                                           
        }                                                             
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
ffc086fc:	71 28 00 02 	andi.   r8,r9,2                                
ffc08700:	41 82 00 5c 	beq-    ffc0875c <rtems_termios_read+0x300>    <== NEVER TAKEN
        if (siproc (c, tty))                                          
ffc08704:	4b ff fb a5 	bl      ffc082a8 <siproc>                      
ffc08708:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0870c:	40 9e 00 64 	bne-    cr7,ffc08770 <rtems_termios_read+0x314>
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
ffc08710:	81 5f 00 5c 	lwz     r10,92(r31)                            
ffc08714:	81 3f 00 60 	lwz     r9,96(r31)                             
      } else {                                                        
        siproc (c, tty);                                              
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
          wait = 0;                                                   
      }                                                               
      timeout = tty->rawInBufSemaphoreTimeout;                        
ffc08718:	83 df 00 70 	lwz     r30,112(r31)                           
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
ffc0871c:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc08720:	41 9e 00 18 	beq-    cr7,ffc08738 <rtems_termios_read+0x2dc>
                       (tty->ccount < (CBUFSIZE-1))) {                
ffc08724:	81 3d 00 08 	lwz     r9,8(r29)                              
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
ffc08728:	81 5f 00 20 	lwz     r10,32(r31)                            
                       (tty->ccount < (CBUFSIZE-1))) {                
ffc0872c:	39 29 ff ff 	addi    r9,r9,-1                               
                                                                      
  while ( wait ) {                                                    
    /*                                                                
     * Process characters read from raw queue                         
     */                                                               
    while ((tty->rawInBuf.Head != tty->rawInBuf.Tail) &&              
ffc08730:	7f 8a 48 40 	cmplw   cr7,r10,r9                             
ffc08734:	41 9c ff 20 	blt+    cr7,ffc08654 <rtems_termios_read+0x1f8><== ALWAYS TAKEN
    }                                                                 
                                                                      
    /*                                                                
     * Wait for characters                                            
     */                                                               
    if ( wait ) {                                                     
ffc08738:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc0873c:	41 9e fe 10 	beq+    cr7,ffc0854c <rtems_termios_read+0xf0> 
      sc = rtems_semaphore_obtain(                                    
ffc08740:	80 7f 00 68 	lwz     r3,104(r31)                            
ffc08744:	7f c5 f3 78 	mr      r5,r30                                 
ffc08748:	80 9f 00 6c 	lwz     r4,108(r31)                            
ffc0874c:	48 00 12 d5 	bl      ffc09a20 <rtems_semaphore_obtain>      
        tty->rawInBuf.Semaphore, tty->rawInBufSemaphoreOptions, timeout);
      if (sc != RTEMS_SUCCESSFUL)                                     
ffc08750:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc08754:	41 9e fe d8 	beq+    cr7,ffc0862c <rtems_termios_read+0x1d0><== ALWAYS TAKEN
ffc08758:	4b ff fd f4 	b       ffc0854c <rtems_termios_read+0xf0>     <== NOT EXECUTED
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
        if (siproc (c, tty))                                          
          wait = 0;                                                   
      } else {                                                        
        siproc (c, tty);                                              
ffc0875c:	4b ff fb 4d 	bl      ffc082a8 <siproc>                      <== NOT EXECUTED
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
ffc08760:	89 5f 00 47 	lbz     r10,71(r31)                            <== NOT EXECUTED
ffc08764:	81 3f 00 20 	lwz     r9,32(r31)                             <== NOT EXECUTED
ffc08768:	7f 89 50 00 	cmpw    cr7,r9,r10                             <== NOT EXECUTED
ffc0876c:	41 bc ff a4 	blt-    cr7,ffc08710 <rtems_termios_read+0x2b4><== NOT EXECUTED
      }                                                               
                                                                      
      /* continue processing new character */                         
      if (tty->termios.c_lflag & ICANON) {                            
        if (siproc (c, tty))                                          
          wait = 0;                                                   
ffc08770:	3b 60 00 00 	li      r27,0                                  
ffc08774:	4b ff ff 9c 	b       ffc08710 <rtems_termios_read+0x2b4>    
         < tty->lowwater) {                                           
        tty->flow_ctrl &= ~FL_IREQXOF;                                
        /* if tx stopped and XON should be sent... */                 
        if (((tty->flow_ctrl & (FL_MDXON | FL_ISNTXOF))               
             ==                (FL_MDXON | FL_ISNTXOF))               
            && ((tty->rawOutBufState == rob_idle)                     
ffc08778:	81 3f 00 94 	lwz     r9,148(r31)                            <== NOT EXECUTED
ffc0877c:	2f 89 00 00 	cmpwi   cr7,r9,0                               <== NOT EXECUTED
ffc08780:	41 9e 00 10 	beq-    cr7,ffc08790 <rtems_termios_read+0x334><== NOT EXECUTED
          || (tty->flow_ctrl & FL_OSTOP))) {                          
ffc08784:	81 3f 00 b8 	lwz     r9,184(r31)                            <== NOT EXECUTED
ffc08788:	71 28 00 20 	andi.   r8,r9,32                               <== NOT EXECUTED
ffc0878c:	41 a2 ff 34 	beq-    ffc086c0 <rtems_termios_read+0x264>    <== NOT EXECUTED
          /* XON should be sent now... */                             
          (*tty->device.write)(                                       
ffc08790:	81 3f 00 a4 	lwz     r9,164(r31)                            <== NOT EXECUTED
ffc08794:	7e c4 b3 78 	mr      r4,r22                                 <== NOT EXECUTED
ffc08798:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc0879c:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc087a0:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc087a4:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc087a8:	4b ff ff 48 	b       ffc086f0 <rtems_termios_read+0x294>    <== NOT EXECUTED
static rtems_status_code                                              
fillBufferPoll (struct rtems_termios_tty *tty)                        
{                                                                     
  int n;                                                              
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
ffc087ac:	81 5f 00 3c 	lwz     r10,60(r31)                            
ffc087b0:	71 48 00 02 	andi.   r8,r10,2                               
ffc087b4:	41 82 00 34 	beq-    ffc087e8 <rtems_termios_read+0x38c>    
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
ffc087b8:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc087bc:	7d 29 03 a6 	mtctr   r9                                     
ffc087c0:	4e 80 04 21 	bctrl                                          
      if (n < 0) {                                                    
        rtems_task_wake_after (1);                                    
      } else {                                                        
        if  (siproc (n, tty))                                         
ffc087c4:	7f e4 fb 78 	mr      r4,r31                                 
  int n;                                                              
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
      if (n < 0) {                                                    
ffc087c8:	2c 03 00 00 	cmpwi   r3,0                                   
        rtems_task_wake_after (1);                                    
      } else {                                                        
        if  (siproc (n, tty))                                         
ffc087cc:	54 63 06 3e 	clrlwi  r3,r3,24                               
  int n;                                                              
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
      if (n < 0) {                                                    
ffc087d0:	41 80 00 bc 	blt-    ffc0888c <rtems_termios_read+0x430>    
        rtems_task_wake_after (1);                                    
      } else {                                                        
        if  (siproc (n, tty))                                         
ffc087d4:	4b ff fa d5 	bl      ffc082a8 <siproc>                      
ffc087d8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc087dc:	40 be fd 70 	bne-    cr7,ffc0854c <rtems_termios_read+0xf0> 
ffc087e0:	81 3f 00 a0 	lwz     r9,160(r31)                            
ffc087e4:	4b ff ff d4 	b       ffc087b8 <rtems_termios_read+0x35c>    
      }                                                               
    }                                                                 
  } else {                                                            
    rtems_interval then, now;                                         
                                                                      
    then = rtems_clock_get_ticks_since_boot();                        
ffc087e8:	48 00 0a 3d 	bl      ffc09224 <rtems_clock_get_ticks_since_boot>
ffc087ec:	7c 7e 1b 78 	mr      r30,r3                                 
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
ffc087f0:	81 3f 00 a0 	lwz     r9,160(r31)                            
ffc087f4:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc087f8:	7d 29 03 a6 	mtctr   r9                                     
ffc087fc:	4e 80 04 21 	bctrl                                          
      if (n < 0) {                                                    
ffc08800:	2c 03 00 00 	cmpwi   r3,0                                   
ffc08804:	41 80 00 38 	blt-    ffc0883c <rtems_termios_read+0x3e0>    
            break;                                                    
          }                                                           
        }                                                             
        rtems_task_wake_after (1);                                    
      } else {                                                        
        siproc (n, tty);                                              
ffc08808:	54 63 06 3e 	clrlwi  r3,r3,24                               
ffc0880c:	7f e4 fb 78 	mr      r4,r31                                 
ffc08810:	4b ff fa 99 	bl      ffc082a8 <siproc>                      
        if (tty->ccount >= tty->termios.c_cc[VMIN])                   
ffc08814:	89 3f 00 47 	lbz     r9,71(r31)                             
ffc08818:	81 5f 00 20 	lwz     r10,32(r31)                            
ffc0881c:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc08820:	40 bc fd 2c 	bge-    cr7,ffc0854c <rtems_termios_read+0xf0> 
          break;                                                      
        if (tty->termios.c_cc[VMIN] && tty->termios.c_cc[VTIME])      
ffc08824:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08828:	41 be ff c8 	beq-    cr7,ffc087f0 <rtems_termios_read+0x394><== NEVER TAKEN
ffc0882c:	89 3f 00 46 	lbz     r9,70(r31)                             
ffc08830:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08834:	41 9e ff bc 	beq+    cr7,ffc087f0 <rtems_termios_read+0x394><== NEVER TAKEN
ffc08838:	4b ff ff b0 	b       ffc087e8 <rtems_termios_read+0x38c>    
                                                                      
    then = rtems_clock_get_ticks_since_boot();                        
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
      if (n < 0) {                                                    
        if (tty->termios.c_cc[VMIN]) {                                
ffc0883c:	89 3f 00 47 	lbz     r9,71(r31)                             
ffc08840:	2f 89 00 00 	cmpwi   cr7,r9,0                               
          if (tty->termios.c_cc[VTIME] && tty->ccount) {              
ffc08844:	89 3f 00 46 	lbz     r9,70(r31)                             
                                                                      
    then = rtems_clock_get_ticks_since_boot();                        
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
      if (n < 0) {                                                    
        if (tty->termios.c_cc[VMIN]) {                                
ffc08848:	41 9e 00 24 	beq-    cr7,ffc0886c <rtems_termios_read+0x410>
          if (tty->termios.c_cc[VTIME] && tty->ccount) {              
ffc0884c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08850:	41 9e 00 10 	beq-    cr7,ffc08860 <rtems_termios_read+0x404><== NEVER TAKEN
ffc08854:	81 3f 00 20 	lwz     r9,32(r31)                             
ffc08858:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0885c:	40 9e 00 18 	bne-    cr7,ffc08874 <rtems_termios_read+0x418>
          now = rtems_clock_get_ticks_since_boot();                   
          if ((now - then) > tty->vtimeTicks) {                       
            break;                                                    
          }                                                           
        }                                                             
        rtems_task_wake_after (1);                                    
ffc08860:	38 60 00 01 	li      r3,1                                   
ffc08864:	48 00 18 c5 	bl      ffc0a128 <rtems_task_wake_after>       
ffc08868:	4b ff ff 88 	b       ffc087f0 <rtems_termios_read+0x394>    
            if ((now - then) > tty->vtimeTicks) {                     
              break;                                                  
            }                                                         
          }                                                           
        } else {                                                      
          if (!tty->termios.c_cc[VTIME])                              
ffc0886c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08870:	41 be fc dc 	beq-    cr7,ffc0854c <rtems_termios_read+0xf0> <== NEVER TAKEN
            break;                                                    
          now = rtems_clock_get_ticks_since_boot();                   
ffc08874:	48 00 09 b1 	bl      ffc09224 <rtems_clock_get_ticks_since_boot>
          if ((now - then) > tty->vtimeTicks) {                       
ffc08878:	81 3f 00 54 	lwz     r9,84(r31)                             
ffc0887c:	7c 7e 18 50 	subf    r3,r30,r3                              
ffc08880:	7f 83 48 40 	cmplw   cr7,r3,r9                              
ffc08884:	40 9d ff dc 	ble+    cr7,ffc08860 <rtems_termios_read+0x404>
ffc08888:	4b ff fc c4 	b       ffc0854c <rtems_termios_read+0xf0>     
                                                                      
  if (tty->termios.c_lflag & ICANON) {                                
    for (;;) {                                                        
      n = (*tty->device.pollRead)(tty->minor);                        
      if (n < 0) {                                                    
        rtems_task_wake_after (1);                                    
ffc0888c:	38 60 00 01 	li      r3,1                                   
ffc08890:	48 00 18 99 	bl      ffc0a128 <rtems_task_wake_after>       
ffc08894:	81 3f 00 a0 	lwz     r9,160(r31)                            
ffc08898:	4b ff ff 20 	b       ffc087b8 <rtems_termios_read+0x35c>    
                                                                      

ffc06b0c <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) {
ffc06b0c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc06b10:	7c 08 02 a6 	mflr    r0                                     
ffc06b14:	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))         
ffc06b18:	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)      
{                                                                     
ffc06b1c:	93 e1 00 14 	stw     r31,20(r1)                             
ffc06b20:	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))         
ffc06b24:	71 29 04 03 	andi.   r9,r9,1027                             
 * 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)      
{                                                                     
ffc06b28:	93 a1 00 0c 	stw     r29,12(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))         
ffc06b2c:	2f 89 04 01 	cmpwi   cr7,r9,1025                            
 * 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)      
{                                                                     
ffc06b30:	93 c1 00 10 	stw     r30,16(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))         
ffc06b34:	41 9e 01 5c 	beq-    cr7,ffc06c90 <rtems_termios_refill_transmitter+0x184><== NEVER TAKEN
    tty->flow_ctrl |= FL_ISNTXOF;                                     
    rtems_interrupt_enable(level);                                    
                                                                      
    nToSend = 1;                                                      
                                                                      
  } else if ((tty->flow_ctrl & (FL_IREQXOF | FL_ISNTXOF)) == FL_ISNTXOF) {
ffc06b38:	81 23 00 b8 	lwz     r9,184(r3)                             
ffc06b3c:	55 29 07 be 	clrlwi  r9,r9,30                               
ffc06b40:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc06b44:	41 9e 01 b4 	beq-    cr7,ffc06cf8 <rtems_termios_refill_transmitter+0x1ec><== NEVER TAKEN
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
    rtems_interrupt_enable(level);                                    
                                                                      
    nToSend = 1;                                                      
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
ffc06b48:	81 43 00 80 	lwz     r10,128(r3)                            
ffc06b4c:	81 23 00 84 	lwz     r9,132(r3)                             
ffc06b50:	7f 8a 48 00 	cmpw    cr7,r10,r9                             
ffc06b54:	41 9e 00 d8 	beq-    cr7,ffc06c2c <rtems_termios_refill_transmitter+0x120>
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc06b58:	7d 20 00 a6 	mfmsr   r9                                     
ffc06b5c:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc06b60:	7d 2a 50 78 	andc    r10,r9,r10                             
ffc06b64:	7d 40 01 24 	mtmsr   r10                                    
      return 0;                                                       
    }                                                                 
                                                                      
    rtems_interrupt_disable(level);                                   
    len = tty->t_dqlen;                                               
    tty->t_dqlen = 0;                                                 
ffc06b68:	39 40 00 00 	li      r10,0                                  
      }                                                               
      return 0;                                                       
    }                                                                 
                                                                      
    rtems_interrupt_disable(level);                                   
    len = tty->t_dqlen;                                               
ffc06b6c:	83 c3 00 90 	lwz     r30,144(r3)                            
    tty->t_dqlen = 0;                                                 
ffc06b70:	91 43 00 90 	stw     r10,144(r3)                            
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc06b74:	7d 20 01 24 	mtmsr   r9                                     
    rtems_interrupt_enable(level);                                    
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
ffc06b78:	81 23 00 84 	lwz     r9,132(r3)                             
ffc06b7c:	81 43 00 88 	lwz     r10,136(r3)                            
ffc06b80:	7d 3e 4a 14 	add     r9,r30,r9                              
    tty->rawOutBuf.Tail = newTail;                                    
    if (tty->rawOutBufState == rob_wait) {                            
ffc06b84:	81 03 00 94 	lwz     r8,148(r3)                             
    rtems_interrupt_disable(level);                                   
    len = tty->t_dqlen;                                               
    tty->t_dqlen = 0;                                                 
    rtems_interrupt_enable(level);                                    
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
ffc06b88:	7f c9 53 96 	divwu   r30,r9,r10                             
    tty->rawOutBuf.Tail = newTail;                                    
    if (tty->rawOutBufState == rob_wait) {                            
ffc06b8c:	2f 88 00 02 	cmpwi   cr7,r8,2                               
    rtems_interrupt_disable(level);                                   
    len = tty->t_dqlen;                                               
    tty->t_dqlen = 0;                                                 
    rtems_interrupt_enable(level);                                    
                                                                      
    newTail = (tty->rawOutBuf.Tail + len) % tty->rawOutBuf.Size;      
ffc06b90:	7f de 51 d6 	mullw   r30,r30,r10                            
ffc06b94:	7f de 48 50 	subf    r30,r30,r9                             
    tty->rawOutBuf.Tail = newTail;                                    
ffc06b98:	93 c3 00 84 	stw     r30,132(r3)                            
    if (tty->rawOutBufState == rob_wait) {                            
ffc06b9c:	41 9e 00 e8 	beq-    cr7,ffc06c84 <rtems_termios_refill_transmitter+0x178>
       * wake up any pending writer task                              
       */                                                             
      rtems_semaphore_release (tty->rawOutBuf.Semaphore);             
    }                                                                 
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
ffc06ba0:	81 3f 00 80 	lwz     r9,128(r31)                            
ffc06ba4:	7f 89 f0 00 	cmpw    cr7,r9,r30                             
ffc06ba8:	41 9e 00 a0 	beq-    cr7,ffc06c48 <rtems_termios_refill_transmitter+0x13c>
      if ( tty->tty_snd.sw_pfn != NULL) {                             
        (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);   
      }                                                               
    }                                                                 
    /* check, whether output should stop due to received XOFF */      
    else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))               
ffc06bac:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc06bb0:	71 29 02 10 	andi.   r9,r9,528                              
ffc06bb4:	2f 89 02 10 	cmpwi   cr7,r9,528                             
ffc06bb8:	41 9e 01 7c 	beq-    cr7,ffc06d34 <rtems_termios_refill_transmitter+0x228><== NEVER TAKEN
      nToSend = 0;                                                    
    } else {                                                          
      /*                                                              
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
ffc06bbc:	81 3f 00 80 	lwz     r9,128(r31)                            
ffc06bc0:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc06bc4:	41 9d 00 b4 	bgt-    cr7,ffc06c78 <rtems_termios_refill_transmitter+0x16c>
        nToSend = tty->rawOutBuf.Size - newTail;                      
      else                                                            
        nToSend = tty->rawOutBuf.Head - newTail;                      
ffc06bc8:	83 bf 00 80 	lwz     r29,128(r31)                           
ffc06bcc:	7f be e8 50 	subf    r29,r30,r29                            
      /* 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)) {                   
ffc06bd0:	81 3f 00 b8 	lwz     r9,184(r31)                            
ffc06bd4:	7f a5 eb 78 	mr      r5,r29                                 
ffc06bd8:	71 2a 06 00 	andi.   r10,r9,1536                            
ffc06bdc:	41 82 00 0c 	beq-    ffc06be8 <rtems_termios_refill_transmitter+0xdc>
ffc06be0:	38 a0 00 01 	li      r5,1                                   
        nToSend = 1;                                                  
ffc06be4:	3b a0 00 01 	li      r29,1                                  
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
ffc06be8:	39 20 00 01 	li      r9,1                                   
      (*tty->device.write)(                                           
ffc06bec:	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*/                         
ffc06bf0:	91 3f 00 94 	stw     r9,148(r31)                            
      (*tty->device.write)(                                           
ffc06bf4:	7c 84 f2 14 	add     r4,r4,r30                              
ffc06bf8:	81 3f 00 a4 	lwz     r9,164(r31)                            
ffc06bfc:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc06c00:	7d 29 03 a6 	mtctr   r9                                     
ffc06c04:	4e 80 04 21 	bctrl                                          
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
ffc06c08:	93 df 00 84 	stw     r30,132(r31)                           
  }                                                                   
  return nToSend;                                                     
}                                                                     
ffc06c0c:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc06c10:	7f a3 eb 78 	mr      r3,r29                                 
ffc06c14:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc06c18:	7c 08 03 a6 	mtlr    r0                                     
ffc06c1c:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc06c20:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc06c24:	38 21 00 18 	addi    r1,r1,24                               
ffc06c28:	4e 80 00 20 	blr                                            
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
      /*                                                              
       * buffer was empty                                             
       */                                                             
      if (tty->rawOutBufState == rob_wait) {                          
ffc06c2c:	81 23 00 94 	lwz     r9,148(r3)                             
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
      }                                                               
      return 0;                                                       
ffc06c30:	3b a0 00 00 	li      r29,0                                  
  } else {                                                            
    if ( tty->rawOutBuf.Head == tty->rawOutBuf.Tail ) {               
      /*                                                              
       * buffer was empty                                             
       */                                                             
      if (tty->rawOutBufState == rob_wait) {                          
ffc06c34:	2f 89 00 02 	cmpwi   cr7,r9,2                               
ffc06c38:	40 9e ff d4 	bne+    cr7,ffc06c0c <rtems_termios_refill_transmitter+0x100><== ALWAYS TAKEN
        /*                                                            
         * this should never happen...                                
         */                                                           
        rtems_semaphore_release (tty->rawOutBuf.Semaphore);           
ffc06c3c:	80 63 00 8c 	lwz     r3,140(r3)                             <== NOT EXECUTED
ffc06c40:	48 00 2f 81 	bl      ffc09bc0 <rtems_semaphore_release>     <== NOT EXECUTED
ffc06c44:	4b ff ff c8 	b       ffc06c0c <rtems_termios_refill_transmitter+0x100><== NOT EXECUTED
      nToSend = 0;                                                    
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
ffc06c48:	81 3f 00 d4 	lwz     r9,212(r31)                            
                                                                      
    if (newTail == tty->rawOutBuf.Head) {                             
      /*                                                              
       * Buffer has become empty                                      
       */                                                             
      tty->rawOutBufState = rob_idle;                                 
ffc06c4c:	39 40 00 00 	li      r10,0                                  
ffc06c50:	91 5f 00 94 	stw     r10,148(r31)                           
      nToSend = 0;                                                    
ffc06c54:	3b a0 00 00 	li      r29,0                                  
                                                                      
      /*                                                              
       * check to see if snd wakeup callback was set                  
       */                                                             
      if ( tty->tty_snd.sw_pfn != NULL) {                             
ffc06c58:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06c5c:	41 be ff ac 	beq-    cr7,ffc06c08 <rtems_termios_refill_transmitter+0xfc><== ALWAYS TAKEN
        (*tty->tty_snd.sw_pfn)(&tty->termios, tty->tty_snd.sw_arg);   
ffc06c60:	38 7f 00 30 	addi    r3,r31,48                              <== NOT EXECUTED
ffc06c64:	80 9f 00 d8 	lwz     r4,216(r31)                            <== NOT EXECUTED
ffc06c68:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc06c6c:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
      (*tty->device.write)(                                           
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
ffc06c70:	93 df 00 84 	stw     r30,132(r31)                           <== NOT EXECUTED
ffc06c74:	4b ff ff 98 	b       ffc06c0c <rtems_termios_refill_transmitter+0x100><== NOT EXECUTED
    } else {                                                          
      /*                                                              
       * Buffer not empty, start tranmitter                           
       */                                                             
      if (newTail > tty->rawOutBuf.Head)                              
        nToSend = tty->rawOutBuf.Size - newTail;                      
ffc06c78:	83 bf 00 88 	lwz     r29,136(r31)                           
ffc06c7c:	7f be e8 50 	subf    r29,r30,r29                            
ffc06c80:	4b ff ff 50 	b       ffc06bd0 <rtems_termios_refill_transmitter+0xc4>
    tty->rawOutBuf.Tail = newTail;                                    
    if (tty->rawOutBufState == rob_wait) {                            
      /*                                                              
       * wake up any pending writer task                              
       */                                                             
      rtems_semaphore_release (tty->rawOutBuf.Semaphore);             
ffc06c84:	80 63 00 8c 	lwz     r3,140(r3)                             
ffc06c88:	48 00 2f 39 	bl      ffc09bc0 <rtems_semaphore_release>     
ffc06c8c:	4b ff ff 14 	b       ffc06ba0 <rtems_termios_refill_transmitter+0x94>
                                                                      
  /* check for XOF/XON to send */                                     
  if ((tty->flow_ctrl & (FL_MDXOF | FL_IREQXOF | FL_ISNTXOF))         
      == (FL_MDXOF | FL_IREQXOF)) {                                   
    /* XOFF should be sent now... */                                  
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1);
ffc06c90:	81 23 00 a4 	lwz     r9,164(r3)                             <== NOT EXECUTED
ffc06c94:	38 9f 00 4a 	addi    r4,r31,74                              <== NOT EXECUTED
ffc06c98:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc06c9c:	80 63 00 10 	lwz     r3,16(r3)                              <== NOT EXECUTED
ffc06ca0:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc06ca4:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc06ca8:	7d 40 00 a6 	mfmsr   r10                                    <== NOT EXECUTED
ffc06cac:	7d 30 42 a6 	mfsprg  r9,0                                   <== NOT EXECUTED
ffc06cb0:	7d 49 48 78 	andc    r9,r10,r9                              <== NOT EXECUTED
ffc06cb4:	7d 20 01 24 	mtmsr   r9                                     <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
    tty->t_dqlen--;                                                   
ffc06cb8:	81 3f 00 90 	lwz     r9,144(r31)                            <== NOT EXECUTED
    tty->flow_ctrl |= FL_ISNTXOF;                                     
ffc06cbc:	81 1f 00 b8 	lwz     r8,184(r31)                            <== NOT EXECUTED
      == (FL_MDXOF | FL_IREQXOF)) {                                   
    /* XOFF should be sent now... */                                  
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTOP]), 1);
                                                                      
    rtems_interrupt_disable(level);                                   
    tty->t_dqlen--;                                                   
ffc06cc0:	39 29 ff ff 	addi    r9,r9,-1                               <== NOT EXECUTED
    tty->flow_ctrl |= FL_ISNTXOF;                                     
ffc06cc4:	61 08 00 02 	ori     r8,r8,2                                <== NOT EXECUTED
     * Therefore the dequeue "length" should be reduced by 1          
     */                                                               
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);
                                                                      
    rtems_interrupt_disable(level);                                   
    tty->t_dqlen--;                                                   
ffc06cc8:	91 3f 00 90 	stw     r9,144(r31)                            <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
ffc06ccc:	91 1f 00 b8 	stw     r8,184(r31)                            <== NOT EXECUTED
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc06cd0:	7d 40 01 24 	mtmsr   r10                                    <== NOT EXECUTED
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
  }                                                                   
  return nToSend;                                                     
}                                                                     
ffc06cd4:	80 01 00 1c 	lwz     r0,28(r1)                              <== NOT EXECUTED
    rtems_interrupt_disable(level);                                   
    tty->t_dqlen--;                                                   
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
    rtems_interrupt_enable(level);                                    
                                                                      
    nToSend = 1;                                                      
ffc06cd8:	3b a0 00 01 	li      r29,1                                  <== NOT EXECUTED
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
  }                                                                   
  return nToSend;                                                     
}                                                                     
ffc06cdc:	7f a3 eb 78 	mr      r3,r29                                 <== NOT EXECUTED
ffc06ce0:	83 c1 00 10 	lwz     r30,16(r1)                             <== NOT EXECUTED
ffc06ce4:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc06ce8:	83 a1 00 0c 	lwz     r29,12(r1)                             <== NOT EXECUTED
ffc06cec:	83 e1 00 14 	lwz     r31,20(r1)                             <== NOT EXECUTED
ffc06cf0:	38 21 00 18 	addi    r1,r1,24                               <== NOT EXECUTED
ffc06cf4:	4e 80 00 20 	blr                                            <== NOT EXECUTED
     * FIXME: this .write call will generate another                  
     * dequeue callback. This will advance the "Tail" in the data     
     * buffer, although the corresponding data is not yet out!        
     * Therefore the dequeue "length" should be reduced by 1          
     */                                                               
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);
ffc06cf8:	81 23 00 a4 	lwz     r9,164(r3)                             <== NOT EXECUTED
ffc06cfc:	38 9f 00 49 	addi    r4,r31,73                              <== NOT EXECUTED
ffc06d00:	38 a0 00 01 	li      r5,1                                   <== NOT EXECUTED
ffc06d04:	80 63 00 10 	lwz     r3,16(r3)                              <== NOT EXECUTED
ffc06d08:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc06d0c:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc06d10:	7d 40 00 a6 	mfmsr   r10                                    <== NOT EXECUTED
ffc06d14:	7d 30 42 a6 	mfsprg  r9,0                                   <== NOT EXECUTED
ffc06d18:	7d 49 48 78 	andc    r9,r10,r9                              <== NOT EXECUTED
ffc06d1c:	7d 20 01 24 	mtmsr   r9                                     <== NOT EXECUTED
                                                                      
    rtems_interrupt_disable(level);                                   
    tty->t_dqlen--;                                                   
ffc06d20:	81 3f 00 90 	lwz     r9,144(r31)                            <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
ffc06d24:	81 1f 00 b8 	lwz     r8,184(r31)                            <== NOT EXECUTED
     * Therefore the dequeue "length" should be reduced by 1          
     */                                                               
    (*tty->device.write)(tty->minor, (void *)&(tty->termios.c_cc[VSTART]), 1);
                                                                      
    rtems_interrupt_disable(level);                                   
    tty->t_dqlen--;                                                   
ffc06d28:	39 29 ff ff 	addi    r9,r9,-1                               <== NOT EXECUTED
    tty->flow_ctrl &= ~FL_ISNTXOF;                                    
ffc06d2c:	55 08 07 fa 	rlwinm  r8,r8,0,31,29                          <== NOT EXECUTED
ffc06d30:	4b ff ff 98 	b       ffc06cc8 <rtems_termios_refill_transmitter+0x1bc><== NOT EXECUTED
ffc06d34:	7d 20 00 a6 	mfmsr   r9                                     <== NOT EXECUTED
ffc06d38:	7d 50 42 a6 	mfsprg  r10,0                                  <== NOT EXECUTED
ffc06d3c:	7d 2a 50 78 	andc    r10,r9,r10                             <== NOT EXECUTED
ffc06d40:	7d 40 01 24 	mtmsr   r10                                    <== NOT EXECUTED
    else if ((tty->flow_ctrl & (FL_MDXON | FL_ORCVXOF))               
       ==                (FL_MDXON | FL_ORCVXOF)) {                   
      /* Buffer not empty, but output stops due to XOFF */            
      /* set flag, that output has been stopped */                    
      rtems_interrupt_disable(level);                                 
      tty->flow_ctrl |= FL_OSTOP;                                     
ffc06d44:	81 5f 00 b8 	lwz     r10,184(r31)                           <== NOT EXECUTED
ffc06d48:	61 4a 00 20 	ori     r10,r10,32                             <== NOT EXECUTED
ffc06d4c:	91 5f 00 b8 	stw     r10,184(r31)                           <== NOT EXECUTED
      tty->rawOutBufState = rob_busy; /*apm*/                         
ffc06d50:	39 40 00 01 	li      r10,1                                  <== NOT EXECUTED
ffc06d54:	91 5f 00 94 	stw     r10,148(r31)                           <== NOT EXECUTED
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc06d58:	7d 20 01 24 	mtmsr   r9                                     <== NOT EXECUTED
      rtems_interrupt_enable(level);                                  
      nToSend = 0;                                                    
ffc06d5c:	3b a0 00 00 	li      r29,0                                  <== NOT EXECUTED
      }                                                               
      tty->rawOutBufState = rob_busy; /*apm*/                         
      (*tty->device.write)(                                           
        tty->minor, &tty->rawOutBuf.theBuf[newTail], nToSend);        
    }                                                                 
    tty->rawOutBuf.Tail = newTail; /*apm*/                            
ffc06d60:	93 df 00 84 	stw     r30,132(r31)                           <== NOT EXECUTED
ffc06d64:	4b ff fe a8 	b       ffc06c0c <rtems_termios_refill_transmitter+0x100><== NOT EXECUTED
                                                                      

ffc08c4c <rtems_termios_rxdaemon>: /* * this task actually processes any receive events */ static rtems_task rtems_termios_rxdaemon(rtems_task_argument argument) {
ffc08c4c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc08c50:	7c 08 02 a6 	mflr    r0                                     
ffc08c54:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc08c58:	7c 7f 1b 78 	mr      r31,r3                                 
ffc08c5c:	90 01 00 24 	stw     r0,36(r1)                              
ffc08c60:	48 00 00 20 	b       ffc08c80 <rtems_termios_rxdaemon+0x34> 
    }                                                                 
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
ffc08c64:	81 3f 00 a0 	lwz     r9,160(r31)                            
ffc08c68:	80 7f 00 10 	lwz     r3,16(r31)                             
ffc08c6c:	7d 29 03 a6 	mtctr   r9                                     
ffc08c70:	4e 80 04 21 	bctrl                                          
    if (c != EOF) {                                                   
ffc08c74:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
    }                                                                 
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
ffc08c78:	7c 69 1b 78 	mr      r9,r3                                  
    if (c != EOF) {                                                   
ffc08c7c:	40 9e 00 50 	bne-    cr7,ffc08ccc <rtems_termios_rxdaemon+0x80>
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
ffc08c80:	38 c1 00 08 	addi    r6,r1,8                                
ffc08c84:	38 80 00 02 	li      r4,2                                   
ffc08c88:	38 a0 00 00 	li      r5,0                                   
ffc08c8c:	38 60 00 03 	li      r3,3                                   
ffc08c90:	48 00 06 25 	bl      ffc092b4 <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) {              
ffc08c94:	81 21 00 08 	lwz     r9,8(r1)                               
ffc08c98:	71 2a 00 01 	andi.   r10,r9,1                               
ffc08c9c:	41 82 ff c8 	beq+    ffc08c64 <rtems_termios_rxdaemon+0x18> <== ALWAYS TAKEN
      tty->rxTaskId = 0;                                              
ffc08ca0:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc08ca4:	91 3f 00 c4 	stw     r9,196(r31)                            <== NOT EXECUTED
      rtems_task_delete(RTEMS_SELF);                                  
ffc08ca8:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc08cac:	48 00 12 0d 	bl      ffc09eb8 <rtems_task_delete>           <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
ffc08cb0:	81 3f 00 a0 	lwz     r9,160(r31)                            <== NOT EXECUTED
ffc08cb4:	80 7f 00 10 	lwz     r3,16(r31)                             <== NOT EXECUTED
ffc08cb8:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc08cbc:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
    if (c != EOF) {                                                   
ffc08cc0:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * do something                                                   
     */                                                               
    c = tty->device.pollRead(tty->minor);                             
ffc08cc4:	7c 69 1b 78 	mr      r9,r3                                  <== NOT EXECUTED
    if (c != EOF) {                                                   
ffc08cc8:	41 9e ff b8 	beq+    cr7,ffc08c80 <rtems_termios_rxdaemon+0x34><== NOT EXECUTED
      /*                                                              
       * pollRead did call enqueue on its own                         
       */                                                             
      c_buf = c;                                                      
      rtems_termios_enqueue_raw_characters ( tty,&c_buf,1);           
ffc08ccc:	7f e3 fb 78 	mr      r3,r31                                 
    c = tty->device.pollRead(tty->minor);                             
    if (c != EOF) {                                                   
      /*                                                              
       * pollRead did call enqueue on its own                         
       */                                                             
      c_buf = c;                                                      
ffc08cd0:	99 21 00 0c 	stb     r9,12(r1)                              
      rtems_termios_enqueue_raw_characters ( tty,&c_buf,1);           
ffc08cd4:	38 81 00 0c 	addi    r4,r1,12                               
ffc08cd8:	38 a0 00 01 	li      r5,1                                   
ffc08cdc:	4b ff fb cd 	bl      ffc088a8 <rtems_termios_enqueue_raw_characters>
ffc08ce0:	4b ff ff a0 	b       ffc08c80 <rtems_termios_rxdaemon+0x34> 
                                                                      

ffc06d68 <rtems_termios_txdaemon>: /* * this task actually processes any transmit events */ static rtems_task rtems_termios_txdaemon(rtems_task_argument argument) {
ffc06d68:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc06d6c:	7c 08 02 a6 	mflr    r0                                     
ffc06d70:	93 c1 00 18 	stw     r30,24(r1)                             
ffc06d74:	3f c0 00 00 	lis     r30,0                                  
ffc06d78:	3b de 29 38 	addi    r30,r30,10552                          
ffc06d7c:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc06d80:	7c 7f 1b 78 	mr      r31,r3                                 
ffc06d84:	90 01 00 24 	stw     r0,36(r1)                              
ffc06d88:	48 00 00 30 	b       ffc06db8 <rtems_termios_txdaemon+0x50> 
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
ffc06d8c:	81 3f 00 cc 	lwz     r9,204(r31)                            
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
ffc06d90:	7f e3 fb 78 	mr      r3,r31                                 
    }                                                                 
                                                                      
    /*                                                                
     * call any line discipline start function                        
     */                                                               
    if (rtems_termios_linesw[tty->t_line].l_start != NULL) {          
ffc06d94:	55 29 28 34 	rlwinm  r9,r9,5,0,26                           
ffc06d98:	7d 3e 4a 14 	add     r9,r30,r9                              
ffc06d9c:	81 29 00 14 	lwz     r9,20(r9)                              
ffc06da0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc06da4:	41 9e 00 0c 	beq-    cr7,ffc06db0 <rtems_termios_txdaemon+0x48><== ALWAYS TAKEN
      rtems_termios_linesw[tty->t_line].l_start(tty);                 
ffc06da8:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc06dac:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
    }                                                                 
                                                                      
    /*                                                                
     * try to push further characters to device                       
     */                                                               
    rtems_termios_refill_transmitter(tty);                            
ffc06db0:	7f e3 fb 78 	mr      r3,r31                                 
ffc06db4:	4b ff fd 59 	bl      ffc06b0c <rtems_termios_refill_transmitter>
                                                                      
  while (1) {                                                         
    /*                                                                
     * wait for rtems event                                           
     */                                                               
    rtems_event_receive(                                              
ffc06db8:	38 80 00 02 	li      r4,2                                   
ffc06dbc:	38 a0 00 00 	li      r5,0                                   
ffc06dc0:	38 c1 00 08 	addi    r6,r1,8                                
ffc06dc4:	38 60 00 03 	li      r3,3                                   
ffc06dc8:	48 00 24 ed 	bl      ffc092b4 <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) {              
ffc06dcc:	81 21 00 08 	lwz     r9,8(r1)                               
ffc06dd0:	71 2a 00 01 	andi.   r10,r9,1                               
ffc06dd4:	41 82 ff b8 	beq+    ffc06d8c <rtems_termios_txdaemon+0x24> <== ALWAYS TAKEN
      tty->txTaskId = 0;                                              
ffc06dd8:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc06ddc:	91 3f 00 c8 	stw     r9,200(r31)                            <== NOT EXECUTED
      rtems_task_delete(RTEMS_SELF);                                  
ffc06de0:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc06de4:	48 00 30 d5 	bl      ffc09eb8 <rtems_task_delete>           <== NOT EXECUTED
ffc06de8:	4b ff ff a4 	b       ffc06d8c <rtems_termios_txdaemon+0x24> <== NOT EXECUTED
                                                                      

ffc0832c <rtems_termios_write>: rtems_termios_puts (&c, 1, tty); } rtems_status_code rtems_termios_write (void *arg) {
ffc0832c:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc08330:	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);
ffc08334:	38 80 00 00 	li      r4,0                                   
  rtems_termios_puts (&c, 1, tty);                                    
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_write (void *arg)                                       
{                                                                     
ffc08338:	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);
ffc0833c:	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;                   
ffc08340:	81 23 00 00 	lwz     r9,0(r3)                               
  rtems_termios_puts (&c, 1, tty);                                    
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_write (void *arg)                                       
{                                                                     
ffc08344:	93 e1 00 1c 	stw     r31,28(r1)                             
  rtems_libio_rw_args_t *args = arg;                                  
  struct rtems_termios_tty *tty = args->iop->data1;                   
ffc08348:	83 e9 00 30 	lwz     r31,48(r9)                             
  rtems_termios_puts (&c, 1, tty);                                    
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_write (void *arg)                                       
{                                                                     
ffc0834c:	93 81 00 10 	stw     r28,16(r1)                             
ffc08350:	7c 7c 1b 78 	mr      r28,r3                                 
  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);
ffc08354:	80 7f 00 18 	lwz     r3,24(r31)                             
  rtems_termios_puts (&c, 1, tty);                                    
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_write (void *arg)                                       
{                                                                     
ffc08358:	93 61 00 0c 	stw     r27,12(r1)                             
ffc0835c:	93 a1 00 14 	stw     r29,20(r1)                             
ffc08360:	93 c1 00 18 	stw     r30,24(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);
ffc08364:	48 00 16 bd 	bl      ffc09a20 <rtems_semaphore_obtain>      
  if (sc != RTEMS_SUCCESSFUL)                                         
ffc08368:	7c 7b 1b 79 	mr.     r27,r3                                 
ffc0836c:	40 82 00 40 	bne-    ffc083ac <rtems_termios_write+0x80>    
    return sc;                                                        
  if (rtems_termios_linesw[tty->t_line].l_write != NULL) {            
ffc08370:	81 3f 00 cc 	lwz     r9,204(r31)                            
ffc08374:	3d 40 00 00 	lis     r10,0                                  
ffc08378:	39 4a 29 38 	addi    r10,r10,10552                          
ffc0837c:	55 29 28 34 	rlwinm  r9,r9,5,0,26                           
ffc08380:	7d 2a 4a 14 	add     r9,r10,r9                              
ffc08384:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc08388:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0838c:	41 9e 00 48 	beq-    cr7,ffc083d4 <rtems_termios_write+0xa8>
    sc = rtems_termios_linesw[tty->t_line].l_write(tty,args);         
ffc08390:	7f e3 fb 78 	mr      r3,r31                                 
ffc08394:	7d 29 03 a6 	mtctr   r9                                     
ffc08398:	7f 84 e3 78 	mr      r4,r28                                 
ffc0839c:	4e 80 04 21 	bctrl                                          
ffc083a0:	7c 7b 1b 78 	mr      r27,r3                                 
    rtems_semaphore_release (tty->osem);                              
ffc083a4:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc083a8:	48 00 18 19 	bl      ffc09bc0 <rtems_semaphore_release>     
    rtems_termios_puts (args->buffer, args->count, tty);              
    args->bytes_moved = args->count;                                  
  }                                                                   
  rtems_semaphore_release (tty->osem);                                
  return sc;                                                          
}                                                                     
ffc083ac:	80 01 00 24 	lwz     r0,36(r1)                              
ffc083b0:	7f 63 db 78 	mr      r3,r27                                 
ffc083b4:	83 81 00 10 	lwz     r28,16(r1)                             
ffc083b8:	7c 08 03 a6 	mtlr    r0                                     
ffc083bc:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc083c0:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc083c4:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc083c8:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc083cc:	38 21 00 20 	addi    r1,r1,32                               
ffc083d0:	4e 80 00 20 	blr                                            
  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) {                                 
ffc083d4:	81 3f 00 34 	lwz     r9,52(r31)                             
ffc083d8:	71 2a 00 01 	andi.   r10,r9,1                               
ffc083dc:	41 82 00 64 	beq-    ffc08440 <rtems_termios_write+0x114>   <== NEVER TAKEN
    uint32_t   count = args->count;                                   
ffc083e0:	83 dc 00 14 	lwz     r30,20(r28)                            
    char      *buffer = args->buffer;                                 
ffc083e4:	83 bc 00 10 	lwz     r29,16(r28)                            
    while (count--)                                                   
ffc083e8:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc083ec:	41 9e 00 68 	beq-    cr7,ffc08454 <rtems_termios_write+0x128><== NEVER TAKEN
  }                                                                   
  rtems_termios_puts (&c, 1, tty);                                    
}                                                                     
                                                                      
rtems_status_code                                                     
rtems_termios_write (void *arg)                                       
ffc083f0:	3b bd ff ff 	addi    r29,r29,-1                             
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
    uint32_t   count = args->count;                                   
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
      oproc (*buffer++, tty);                                         
ffc083f4:	8c 7d 00 01 	lbzu    r3,1(r29)                              
ffc083f8:	7f e4 fb 78 	mr      r4,r31                                 
ffc083fc:	4b ff f7 e9 	bl      ffc07be4 <oproc>                       
    return sc;                                                        
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
    uint32_t   count = args->count;                                   
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
ffc08400:	37 de ff ff 	addic.  r30,r30,-1                             
ffc08404:	40 82 ff f0 	bne+    ffc083f4 <rtems_termios_write+0xc8>    
      oproc (*buffer++, tty);                                         
    args->bytes_moved = args->count;                                  
  } else {                                                            
    rtems_termios_puts (args->buffer, args->count, tty);              
    args->bytes_moved = args->count;                                  
ffc08408:	81 3c 00 14 	lwz     r9,20(r28)                             
ffc0840c:	91 3c 00 1c 	stw     r9,28(r28)                             
  }                                                                   
  rtems_semaphore_release (tty->osem);                                
ffc08410:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc08414:	48 00 17 ad 	bl      ffc09bc0 <rtems_semaphore_release>     
  return sc;                                                          
}                                                                     
ffc08418:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0841c:	7f 63 db 78 	mr      r3,r27                                 
ffc08420:	83 81 00 10 	lwz     r28,16(r1)                             
ffc08424:	7c 08 03 a6 	mtlr    r0                                     
ffc08428:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0842c:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc08430:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc08434:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc08438:	38 21 00 20 	addi    r1,r1,32                               
ffc0843c:	4e 80 00 20 	blr                                            
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
      oproc (*buffer++, tty);                                         
    args->bytes_moved = args->count;                                  
  } else {                                                            
    rtems_termios_puts (args->buffer, args->count, tty);              
ffc08440:	80 7c 00 10 	lwz     r3,16(r28)                             <== NOT EXECUTED
ffc08444:	7f e5 fb 78 	mr      r5,r31                                 <== NOT EXECUTED
ffc08448:	80 9c 00 14 	lwz     r4,20(r28)                             <== NOT EXECUTED
ffc0844c:	4b ff f5 ed 	bl      ffc07a38 <rtems_termios_puts>          <== NOT EXECUTED
ffc08450:	4b ff ff b8 	b       ffc08408 <rtems_termios_write+0xdc>    <== NOT EXECUTED
    return sc;                                                        
  }                                                                   
  if (tty->termios.c_oflag & OPOST) {                                 
    uint32_t   count = args->count;                                   
    char      *buffer = args->buffer;                                 
    while (count--)                                                   
ffc08454:	39 20 00 00 	li      r9,0                                   <== NOT EXECUTED
ffc08458:	4b ff ff b4 	b       ffc0840c <rtems_termios_write+0xe0>    <== NOT EXECUTED
                                                                      

ffc1cc7c <rtems_timer_cancel>: */ rtems_status_code rtems_timer_cancel( rtems_id id ) {
ffc1cc7c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc1cc80:	7c 08 02 a6 	mflr    r0                                     
ffc1cc84:	7c 64 1b 78 	mr      r4,r3                                  
RTEMS_INLINE_ROUTINE Timer_Control *_Timer_Get (                      
  Objects_Id         id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (Timer_Control *)                                            
ffc1cc88:	3c 60 00 00 	lis     r3,0                                   
ffc1cc8c:	90 01 00 1c 	stw     r0,28(r1)                              
ffc1cc90:	38 63 7a 1c 	addi    r3,r3,31260                            
ffc1cc94:	38 a1 00 08 	addi    r5,r1,8                                
ffc1cc98:	48 00 3d 11 	bl      ffc209a8 <_Objects_Get>                
  Timer_Control   *the_timer;                                         
  Objects_Locations       location;                                   
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
ffc1cc9c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc1cca0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc1cca4:	40 9e 00 30 	bne-    cr7,ffc1ccd4 <rtems_timer_cancel+0x58> 
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( !_Timer_Is_dormant_class( the_timer->the_class ) )         
ffc1cca8:	81 23 00 38 	lwz     r9,56(r3)                              
ffc1ccac:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc1ccb0:	41 9e 00 0c 	beq-    cr7,ffc1ccbc <rtems_timer_cancel+0x40> <== NEVER TAKEN
        (void) _Watchdog_Remove( &the_timer->Ticker );                
ffc1ccb4:	38 63 00 10 	addi    r3,r3,16                               
ffc1ccb8:	48 00 61 b1 	bl      ffc22e68 <_Watchdog_Remove>            
      _Thread_Enable_dispatch();                                      
ffc1ccbc:	48 00 4d d5 	bl      ffc21a90 <_Thread_Enable_dispatch>     
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc1ccc0:	80 01 00 1c 	lwz     r0,28(r1)                              
                                                                      
    case OBJECTS_LOCAL:                                               
      if ( !_Timer_Is_dormant_class( the_timer->the_class ) )         
        (void) _Watchdog_Remove( &the_timer->Ticker );                
      _Thread_Enable_dispatch();                                      
      return RTEMS_SUCCESSFUL;                                        
ffc1ccc4:	38 60 00 00 	li      r3,0                                   
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc1ccc8:	7c 08 03 a6 	mtlr    r0                                     
ffc1cccc:	38 21 00 18 	addi    r1,r1,24                               
ffc1ccd0:	4e 80 00 20 	blr                                            
ffc1ccd4:	80 01 00 1c 	lwz     r0,28(r1)                              
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc1ccd8:	38 60 00 04 	li      r3,4                                   
}                                                                     
ffc1ccdc:	7c 08 03 a6 	mtlr    r0                                     
ffc1cce0:	38 21 00 18 	addi    r1,r1,24                               
ffc1cce4:	4e 80 00 20 	blr                                            
                                                                      

ffc1d3e8 <rtems_timer_server_fire_when>: rtems_id id, rtems_time_of_day *wall_time, rtems_timer_service_routine_entry routine, void *user_data ) {
ffc1d3e8:	94 21 ff c0 	stwu    r1,-64(r1)                             
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
ffc1d3ec:	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                        
)                                                                     
{                                                                     
ffc1d3f0:	7c 08 02 a6 	mflr    r0                                     
ffc1d3f4:	93 e1 00 3c 	stw     r31,60(r1)                             
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
ffc1d3f8:	83 e9 29 80 	lwz     r31,10624(r9)                          
  rtems_id                           id,                              
  rtems_time_of_day                  *wall_time,                      
  rtems_timer_service_routine_entry  routine,                         
  void                              *user_data                        
)                                                                     
{                                                                     
ffc1d3fc:	90 01 00 44 	stw     r0,68(r1)                              
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
ffc1d400:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
  rtems_id                           id,                              
  rtems_time_of_day                  *wall_time,                      
  rtems_timer_service_routine_entry  routine,                         
  void                              *user_data                        
)                                                                     
{                                                                     
ffc1d404:	93 01 00 20 	stw     r24,32(r1)                             
ffc1d408:	93 21 00 24 	stw     r25,36(r1)                             
ffc1d40c:	93 41 00 28 	stw     r26,40(r1)                             
ffc1d410:	93 61 00 2c 	stw     r27,44(r1)                             
ffc1d414:	93 81 00 30 	stw     r28,48(r1)                             
ffc1d418:	93 a1 00 34 	stw     r29,52(r1)                             
ffc1d41c:	93 c1 00 38 	stw     r30,56(r1)                             
  Timer_Control        *the_timer;                                    
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
ffc1d420:	41 9e 00 b0 	beq-    cr7,ffc1d4d0 <rtems_timer_server_fire_when+0xe8>
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD.is_set )                                                 
ffc1d424:	3f c0 00 00 	lis     r30,0                                  
ffc1d428:	3b de 70 80 	addi    r30,r30,28800                          
ffc1d42c:	89 5e 00 14 	lbz     r10,20(r30)                            
ffc1d430:	7c 7c 1b 78 	mr      r28,r3                                 
    return RTEMS_NOT_DEFINED;                                         
ffc1d434:	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 )                                                 
ffc1d438:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc1d43c:	40 9e 00 34 	bne-    cr7,ffc1d470 <rtems_timer_server_fire_when+0x88><== ALWAYS TAKEN
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc1d440:	80 01 00 44 	lwz     r0,68(r1)                              
ffc1d444:	83 01 00 20 	lwz     r24,32(r1)                             
ffc1d448:	7c 08 03 a6 	mtlr    r0                                     
ffc1d44c:	83 21 00 24 	lwz     r25,36(r1)                             
ffc1d450:	83 41 00 28 	lwz     r26,40(r1)                             
ffc1d454:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc1d458:	83 81 00 30 	lwz     r28,48(r1)                             
ffc1d45c:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc1d460:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc1d464:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc1d468:	38 21 00 40 	addi    r1,r1,64                               
ffc1d46c:	4e 80 00 20 	blr                                            
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD.is_set )                                                 
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
ffc1d470:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc1d474:	7c bd 2b 78 	mr      r29,r5                                 
    return RTEMS_INVALID_ADDRESS;                                     
ffc1d478:	38 60 00 09 	li      r3,9                                   
    return RTEMS_INCORRECT_STATE;                                     
                                                                      
  if ( !_TOD.is_set )                                                 
    return RTEMS_NOT_DEFINED;                                         
                                                                      
  if ( !routine )                                                     
ffc1d47c:	41 be ff c4 	beq-    cr7,ffc1d440 <rtems_timer_server_fire_when+0x58>
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
ffc1d480:	7c 83 23 78 	mr      r3,r4                                  
ffc1d484:	90 81 00 18 	stw     r4,24(r1)                              
ffc1d488:	7c db 33 78 	mr      r27,r6                                 
ffc1d48c:	4b ff bb 45 	bl      ffc18fd0 <_TOD_Validate>               
ffc1d490:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc1d494:	80 81 00 18 	lwz     r4,24(r1)                              
ffc1d498:	40 9e 00 6c 	bne-    cr7,ffc1d504 <rtems_timer_server_fire_when+0x11c>
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc1d49c:	80 01 00 44 	lwz     r0,68(r1)                              
                                                                      
  if ( !routine )                                                     
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
    return RTEMS_INVALID_CLOCK;                                       
ffc1d4a0:	38 60 00 14 	li      r3,20                                  
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc1d4a4:	83 01 00 20 	lwz     r24,32(r1)                             
ffc1d4a8:	7c 08 03 a6 	mtlr    r0                                     
ffc1d4ac:	83 21 00 24 	lwz     r25,36(r1)                             
ffc1d4b0:	83 41 00 28 	lwz     r26,40(r1)                             
ffc1d4b4:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc1d4b8:	83 81 00 30 	lwz     r28,48(r1)                             
ffc1d4bc:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc1d4c0:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc1d4c4:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc1d4c8:	38 21 00 40 	addi    r1,r1,64                               
ffc1d4cc:	4e 80 00 20 	blr                                            
ffc1d4d0:	80 01 00 44 	lwz     r0,68(r1)                              
  Objects_Locations     location;                                     
  rtems_interval        seconds;                                      
  Timer_server_Control *timer_server = _Timer_server;                 
                                                                      
  if ( !timer_server )                                                
    return RTEMS_INCORRECT_STATE;                                     
ffc1d4d4:	38 60 00 0e 	li      r3,14                                  
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
}                                                                     
ffc1d4d8:	83 01 00 20 	lwz     r24,32(r1)                             
ffc1d4dc:	7c 08 03 a6 	mtlr    r0                                     
ffc1d4e0:	83 21 00 24 	lwz     r25,36(r1)                             
ffc1d4e4:	83 41 00 28 	lwz     r26,40(r1)                             
ffc1d4e8:	83 61 00 2c 	lwz     r27,44(r1)                             
ffc1d4ec:	83 81 00 30 	lwz     r28,48(r1)                             
ffc1d4f0:	83 a1 00 34 	lwz     r29,52(r1)                             
ffc1d4f4:	83 c1 00 38 	lwz     r30,56(r1)                             
ffc1d4f8:	83 e1 00 3c 	lwz     r31,60(r1)                             
ffc1d4fc:	38 21 00 40 	addi    r1,r1,64                               
ffc1d500:	4e 80 00 20 	blr                                            
    return RTEMS_INVALID_ADDRESS;                                     
                                                                      
  if ( !_TOD_Validate( wall_time ) )                                  
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  seconds = _TOD_To_seconds( wall_time );                             
ffc1d504:	7c 83 23 78 	mr      r3,r4                                  
ffc1d508:	4b ff ba 15 	bl      ffc18f1c <_TOD_To_seconds>             
ffc1d50c:	80 9e 00 04 	lwz     r4,4(r30)                              
ffc1d510:	7c 7a 1b 78 	mr      r26,r3                                 
ffc1d514:	80 7e 00 00 	lwz     r3,0(r30)                              
ffc1d518:	3c c0 3b 9a 	lis     r6,15258                               
ffc1d51c:	38 a0 00 00 	li      r5,0                                   
ffc1d520:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc1d524:	48 01 64 a1 	bl      ffc339c4 <__divdi3>                    
  if ( seconds <= _TOD_Seconds_since_epoch() )                        
ffc1d528:	7f 9a 20 40 	cmplw   cr7,r26,r4                             
ffc1d52c:	40 9d ff 70 	ble+    cr7,ffc1d49c <rtems_timer_server_fire_when+0xb4>
ffc1d530:	3c 60 00 00 	lis     r3,0                                   
ffc1d534:	38 63 7a 1c 	addi    r3,r3,31260                            
ffc1d538:	7f 84 e3 78 	mr      r4,r28                                 
ffc1d53c:	38 a1 00 08 	addi    r5,r1,8                                
ffc1d540:	48 00 34 69 	bl      ffc209a8 <_Objects_Get>                
    return RTEMS_INVALID_CLOCK;                                       
                                                                      
  the_timer = _Timer_Get( id, &location );                            
  switch ( location ) {                                               
ffc1d544:	83 01 00 08 	lwz     r24,8(r1)                              
ffc1d548:	7c 79 1b 78 	mr      r25,r3                                 
ffc1d54c:	2f 98 00 00 	cmpwi   cr7,r24,0                              
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  return RTEMS_INVALID_ID;                                            
ffc1d550:	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 ) {                                               
ffc1d554:	40 be fe ec 	bne-    cr7,ffc1d440 <rtems_timer_server_fire_when+0x58>
                                                                      
    case OBJECTS_LOCAL:                                               
      (void) _Watchdog_Remove( &the_timer->Ticker );                  
ffc1d558:	38 79 00 10 	addi    r3,r25,16                              
ffc1d55c:	48 00 59 0d 	bl      ffc22e68 <_Watchdog_Remove>            
      the_timer->the_class = TIMER_TIME_OF_DAY_ON_TASK;               
ffc1d560:	39 20 00 03 	li      r9,3                                   
ffc1d564:	80 7e 00 00 	lwz     r3,0(r30)                              
ffc1d568:	3c c0 3b 9a 	lis     r6,15258                               
ffc1d56c:	80 9e 00 04 	lwz     r4,4(r30)                              
ffc1d570:	38 a0 00 00 	li      r5,0                                   
ffc1d574:	91 39 00 38 	stw     r9,56(r25)                             
ffc1d578:	60 c6 ca 00 	ori     r6,r6,51712                            
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
ffc1d57c:	93 19 00 18 	stw     r24,24(r25)                            
  the_watchdog->routine   = routine;                                  
ffc1d580:	93 b9 00 2c 	stw     r29,44(r25)                            
  the_watchdog->id        = id;                                       
ffc1d584:	93 99 00 30 	stw     r28,48(r25)                            
  the_watchdog->user_data = user_data;                                
ffc1d588:	93 79 00 34 	stw     r27,52(r25)                            
ffc1d58c:	48 01 64 39 	bl      ffc339c4 <__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 ); 
ffc1d590:	81 3f 00 04 	lwz     r9,4(r31)                              
                                                                      
    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();
ffc1d594:	7f 44 d0 50 	subf    r26,r4,r26                             
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
ffc1d598:	7f e3 fb 78 	mr      r3,r31                                 
ffc1d59c:	7d 29 03 a6 	mtctr   r9                                     
ffc1d5a0:	7f 24 cb 78 	mr      r4,r25                                 
                                                                      
    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();
ffc1d5a4:	93 59 00 1c 	stw     r26,28(r25)                            
                                                                      
      (*timer_server->schedule_operation)( timer_server, the_timer ); 
ffc1d5a8:	4e 80 04 21 	bctrl                                          
                                                                      
      _Thread_Enable_dispatch();                                      
ffc1d5ac:	48 00 44 e5 	bl      ffc21a90 <_Thread_Enable_dispatch>     
      return RTEMS_SUCCESSFUL;                                        
ffc1d5b0:	38 60 00 00 	li      r3,0                                   
ffc1d5b4:	4b ff fe 8c 	b       ffc1d440 <rtems_timer_server_fire_when+0x58>
                                                                      

ffc04840 <rtems_verror>: { int local_errno = 0; int chars_written = 0; rtems_status_code status; if (error_flag & RTEMS_ERROR_PANIC) {
ffc04840:	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                                         
)                                                                     
{                                                                     
ffc04844:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc04848:	7c 08 02 a6 	mflr    r0                                     
ffc0484c:	93 41 00 08 	stw     r26,8(r1)                              
ffc04850:	7c 9a 23 78 	mr      r26,r4                                 
ffc04854:	93 61 00 0c 	stw     r27,12(r1)                             
ffc04858:	7c bb 2b 78 	mr      r27,r5                                 
ffc0485c:	93 c1 00 18 	stw     r30,24(r1)                             
ffc04860:	7c 7e 1b 78 	mr      r30,r3                                 
ffc04864:	90 01 00 24 	stw     r0,36(r1)                              
ffc04868:	93 81 00 10 	stw     r28,16(r1)                             
ffc0486c:	93 a1 00 14 	stw     r29,20(r1)                             
ffc04870:	93 e1 00 1c 	stw     r31,28(r1)                             
  int               local_errno = 0;                                  
  int               chars_written = 0;                                
  rtems_status_code status;                                           
                                                                      
  if (error_flag & RTEMS_ERROR_PANIC) {                               
ffc04874:	41 82 00 3c 	beq-    ffc048b0 <rtems_verror+0x70>           
    if (rtems_panic_in_progress++)                                    
ffc04878:	3d 40 00 00 	lis     r10,0                                  
ffc0487c:	81 2a 28 48 	lwz     r9,10312(r10)                          
ffc04880:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc04884:	39 29 00 01 	addi    r9,r9,1                                
ffc04888:	91 2a 28 48 	stw     r9,10312(r10)                          
ffc0488c:	41 9e 00 18 	beq-    cr7,ffc048a4 <rtems_verror+0x64>       <== ALWAYS TAKEN
   *                                                                  
   * This rountine increments the thread dispatch level               
   */                                                                 
  RTEMS_INLINE_ROUTINE uint32_t _Thread_Dispatch_increment_disable_level(void)
  {                                                                   
    uint32_t level = _Thread_Dispatch_disable_level;                  
ffc04890:	3d 20 00 00 	lis     r9,0                                   <== NOT EXECUTED
ffc04894:	81 09 28 68 	lwz     r8,10344(r9)                           <== NOT EXECUTED
                                                                      
    ++level;                                                          
ffc04898:	39 08 00 01 	addi    r8,r8,1                                <== NOT EXECUTED
    _Thread_Dispatch_disable_level = level;                           
ffc0489c:	91 09 28 68 	stw     r8,10344(r9)                           <== NOT EXECUTED
void _Thread_Disable_dispatch( void );                                
#else                                                                 
RTEMS_INLINE_ROUTINE void _Thread_Disable_dispatch( void )            
{                                                                     
  _Thread_Dispatch_increment_disable_level();                         
  RTEMS_COMPILER_MEMORY_BARRIER();                                    
ffc048a0:	81 2a 28 48 	lwz     r9,10312(r10)                          <== NOT EXECUTED
      _Thread_Disable_dispatch();       /* disable task switches */   
                                                                      
    /* don't aggravate things */                                      
    if (rtems_panic_in_progress > 2)                                  
ffc048a4:	2f 89 00 02 	cmpwi   cr7,r9,2                               
      return 0;                                                       
ffc048a8:	3b a0 00 00 	li      r29,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)                                  
ffc048ac:	41 9d 00 ac 	bgt-    cr7,ffc04958 <rtems_verror+0x118>      <== NEVER TAKEN
      return 0;                                                       
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
ffc048b0:	3f e0 00 00 	lis     r31,0                                  
ffc048b4:	81 3f 27 e8 	lwz     r9,10216(r31)                          
ffc048b8:	80 69 00 08 	lwz     r3,8(r9)                               
ffc048bc:	48 00 ec 85 	bl      ffc13540 <fflush>                      
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
  if (error_flag & RTEMS_ERROR_ERRNO)     /* include errno? */        
ffc048c0:	77 c9 40 00 	andis.  r9,r30,16384                           
      return 0;                                                       
  }                                                                   
                                                                      
  (void) fflush(stdout);            /* in case stdout/stderr same */  
                                                                      
  status = error_flag & ~RTEMS_ERROR_MASK;                            
ffc048c4:	57 de 01 00 	rlwinm  r30,r30,0,4,0                          
  if (error_flag & RTEMS_ERROR_ERRNO)     /* include errno? */        
ffc048c8:	40 82 00 f0 	bne-    ffc049b8 <rtems_verror+0x178>          
  rtems_error_code_t  error_flag,                                     
  const char         *printf_format,                                  
  va_list             arglist                                         
)                                                                     
{                                                                     
  int               local_errno = 0;                                  
ffc048cc:	3b 80 00 00 	li      r28,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);          
ffc048d0:	81 3f 27 e8 	lwz     r9,10216(r31)                          
ffc048d4:	7f 44 d3 78 	mr      r4,r26                                 
ffc048d8:	7f 65 db 78 	mr      r5,r27                                 
ffc048dc:	80 69 00 0c 	lwz     r3,12(r9)                              
ffc048e0:	48 01 43 c1 	bl      ffc18ca0 <vfprintf>                    
                                                                      
  if (status)                                                         
ffc048e4:	2f 9e 00 00 	cmpwi   cr7,r30,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);          
ffc048e8:	7c 7d 1b 78 	mr      r29,r3                                 
                                                                      
  if (status)                                                         
ffc048ec:	40 9e 00 98 	bne-    cr7,ffc04984 <rtems_verror+0x144>      
    chars_written +=                                                  
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
                                                                      
  if (local_errno) {                                                  
ffc048f0:	2f 9c 00 00 	cmpwi   cr7,r28,0                              
ffc048f4:	41 9e 00 3c 	beq-    cr7,ffc04930 <rtems_verror+0xf0>       
    if ((local_errno > 0) && *strerror(local_errno))                  
ffc048f8:	40 9d 00 18 	ble-    cr7,ffc04910 <rtems_verror+0xd0>       
ffc048fc:	7f 83 e3 78 	mr      r3,r28                                 
ffc04900:	48 00 ff b5 	bl      ffc148b4 <strerror>                    
ffc04904:	89 23 00 00 	lbz     r9,0(r3)                               
ffc04908:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0490c:	40 9e 00 b8 	bne-    cr7,ffc049c4 <rtems_verror+0x184>      <== ALWAYS TAKEN
      chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
    else                                                              
      chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
ffc04910:	81 3f 27 e8 	lwz     r9,10216(r31)                          
ffc04914:	3c 80 ff c2 	lis     r4,-62                                 
ffc04918:	38 84 f9 94 	addi    r4,r4,-1644                            
ffc0491c:	80 69 00 0c 	lwz     r3,12(r9)                              
ffc04920:	7f 85 e3 78 	mr      r5,r28                                 
ffc04924:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04928:	48 00 f1 61 	bl      ffc13a88 <fprintf>                     
ffc0492c:	7f bd 1a 14 	add     r29,r29,r3                             
  }                                                                   
                                                                      
  chars_written += fprintf(stderr, "\n");                             
ffc04930:	81 3f 27 e8 	lwz     r9,10216(r31)                          
ffc04934:	3c 80 ff c2 	lis     r4,-62                                 
ffc04938:	38 84 ec b0 	addi    r4,r4,-4944                            
ffc0493c:	80 69 00 0c 	lwz     r3,12(r9)                              
ffc04940:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc04944:	48 00 f1 45 	bl      ffc13a88 <fprintf>                     
                                                                      
  (void) fflush(stderr);                                              
ffc04948:	81 3f 27 e8 	lwz     r9,10216(r31)                          
      chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
    else                                                              
      chars_written += fprintf(stderr, " (unknown errno=%d)", local_errno);
  }                                                                   
                                                                      
  chars_written += fprintf(stderr, "\n");                             
ffc0494c:	7f a3 ea 14 	add     r29,r3,r29                             
                                                                      
  (void) fflush(stderr);                                              
ffc04950:	80 69 00 0c 	lwz     r3,12(r9)                              
ffc04954:	48 00 eb ed 	bl      ffc13540 <fflush>                      
                                                                      
  return chars_written;                                               
}                                                                     
ffc04958:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0495c:	7f a3 eb 78 	mr      r3,r29                                 
ffc04960:	83 41 00 08 	lwz     r26,8(r1)                              
ffc04964:	7c 08 03 a6 	mtlr    r0                                     
ffc04968:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc0496c:	83 81 00 10 	lwz     r28,16(r1)                             
ffc04970:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc04974:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc04978:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0497c:	38 21 00 20 	addi    r1,r1,32                               
ffc04980:	4e 80 00 20 	blr                                            
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
                                                                      
  if (status)                                                         
    chars_written +=                                                  
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
ffc04984:	3d 20 00 00 	lis     r9,0                                   
ffc04988:	81 29 27 e8 	lwz     r9,10216(r9)                           
ffc0498c:	7f c3 f3 78 	mr      r3,r30                                 
ffc04990:	83 c9 00 0c 	lwz     r30,12(r9)                             
ffc04994:	4b ff fe 9d 	bl      ffc04830 <rtems_status_text>           
ffc04998:	3c 80 ff c2 	lis     r4,-62                                 
ffc0499c:	7c 65 1b 78 	mr      r5,r3                                  
ffc049a0:	38 84 f9 74 	addi    r4,r4,-1676                            
ffc049a4:	7f c3 f3 78 	mr      r3,r30                                 
ffc049a8:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc049ac:	48 00 f0 dd 	bl      ffc13a88 <fprintf>                     
  #endif                                                              
                                                                      
  chars_written += vfprintf(stderr, printf_format, arglist);          
                                                                      
  if (status)                                                         
    chars_written +=                                                  
ffc049b0:	7f bd 1a 14 	add     r29,r29,r3                             
ffc049b4:	4b ff ff 3c 	b       ffc048f0 <rtems_verror+0xb0>           
                                                                      
  (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;                                              
ffc049b8:	48 00 e6 c1 	bl      ffc13078 <__errno>                     
ffc049bc:	83 83 00 00 	lwz     r28,0(r3)                              
ffc049c0:	4b ff ff 10 	b       ffc048d0 <rtems_verror+0x90>           
    chars_written +=                                                  
      fprintf(stderr, " (status: %s)", rtems_status_text(status));    
                                                                      
  if (local_errno) {                                                  
    if ((local_errno > 0) && *strerror(local_errno))                  
      chars_written += fprintf(stderr, " (errno: %s)", strerror(local_errno));
ffc049c4:	81 3f 27 e8 	lwz     r9,10216(r31)                          
ffc049c8:	7f 83 e3 78 	mr      r3,r28                                 
ffc049cc:	83 c9 00 0c 	lwz     r30,12(r9)                             
ffc049d0:	48 00 fe e5 	bl      ffc148b4 <strerror>                    
ffc049d4:	3c 80 ff c2 	lis     r4,-62                                 
ffc049d8:	7c 65 1b 78 	mr      r5,r3                                  
ffc049dc:	38 84 f9 84 	addi    r4,r4,-1660                            
ffc049e0:	7f c3 f3 78 	mr      r3,r30                                 
ffc049e4:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc049e8:	48 00 f0 a1 	bl      ffc13a88 <fprintf>                     
ffc049ec:	7f bd 1a 14 	add     r29,r29,r3                             
ffc049f0:	4b ff ff 40 	b       ffc04930 <rtems_verror+0xf0>           
                                                                      

ffc2c8b8 <scanInt>: /** * Extract an integer value from the database */ static int scanInt(FILE *fp, int *val) {
ffc2c8b8:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc2c8bc:	7c 08 02 a6 	mflr    r0                                     
ffc2c8c0:	93 01 00 08 	stw     r24,8(r1)                              
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
ffc2c8c4:	3f 00 cc cc 	lis     r24,-13108                             
ffc2c8c8:	63 18 cc cd 	ori     r24,r24,52429                          
/**                                                                   
 *  Extract an integer value from the database                        
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
ffc2c8cc:	93 41 00 10 	stw     r26,16(r1)                             
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
ffc2c8d0:	3f 40 7f ff 	lis     r26,32767                              
ffc2c8d4:	63 5a ff ff 	ori     r26,r26,65535                          
/**                                                                   
 *  Extract an integer value from the database                        
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
ffc2c8d8:	90 01 00 2c 	stw     r0,44(r1)                              
ffc2c8dc:	93 21 00 0c 	stw     r25,12(r1)                             
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
ffc2c8e0:	3f 20 00 00 	lis     r25,0                                  
/**                                                                   
 *  Extract an integer value from the database                        
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
ffc2c8e4:	93 61 00 14 	stw     r27,20(r1)                             
ffc2c8e8:	7c 9b 23 78 	mr      r27,r4                                 
ffc2c8ec:	93 81 00 18 	stw     r28,24(r1)                             
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
ffc2c8f0:	3f 80 00 00 	lis     r28,0                                  
/**                                                                   
 *  Extract an integer value from the database                        
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
ffc2c8f4:	93 a1 00 1c 	stw     r29,28(r1)                             
  int c;                                                              
  unsigned int i = 0;                                                 
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
ffc2c8f8:	3b a0 00 00 	li      r29,0                                  
/**                                                                   
 *  Extract an integer value from the database                        
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
ffc2c8fc:	93 c1 00 20 	stw     r30,32(r1)                             
  int c;                                                              
  unsigned int i = 0;                                                 
ffc2c900:	3b c0 00 00 	li      r30,0                                  
/**                                                                   
 *  Extract an integer value from the database                        
 */                                                                   
static int                                                            
scanInt(FILE *fp, int *val)                                           
{                                                                     
ffc2c904:	93 e1 00 24 	stw     r31,36(r1)                             
ffc2c908:	7c 7f 1b 78 	mr      r31,r3                                 
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
ffc2c90c:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc2c910:	39 29 ff ff 	addi    r9,r9,-1                               
ffc2c914:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc2c918:	91 3f 00 04 	stw     r9,4(r31)                              
ffc2c91c:	41 9c 00 80 	blt-    cr7,ffc2c99c <scanInt+0xe4>            <== NEVER TAKEN
ffc2c920:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc2c924:	88 69 00 00 	lbz     r3,0(r9)                               
ffc2c928:	39 49 00 01 	addi    r10,r9,1                               
ffc2c92c:	91 5f 00 00 	stw     r10,0(r31)                             
    if (c == ':')                                                     
ffc2c930:	2f 83 00 3a 	cmpwi   cr7,r3,58                              
ffc2c934:	41 9e 00 7c 	beq-    cr7,ffc2c9b0 <scanInt+0xf8>            
      break;                                                          
    if (sign == 0) {                                                  
ffc2c938:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
ffc2c93c:	40 9e 00 10 	bne-    cr7,ffc2c94c <scanInt+0x94>            
      if (c == '-') {                                                 
ffc2c940:	2f 83 00 2d 	cmpwi   cr7,r3,45                              
        sign = -1;                                                    
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
ffc2c944:	3b a0 00 01 	li      r29,1                                  
  for (;;) {                                                          
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
ffc2c948:	41 9e 00 f0 	beq-    cr7,ffc2ca38 <scanInt+0x180>           
        limit++;                                                      
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
ffc2c94c:	81 39 34 44 	lwz     r9,13380(r25)                          
ffc2c950:	7d 29 1a 14 	add     r9,r9,r3                               
ffc2c954:	89 29 00 01 	lbz     r9,1(r9)                               
ffc2c958:	55 29 07 7a 	rlwinm  r9,r9,0,29,29                          
ffc2c95c:	71 2a 00 ff 	andi.   r10,r9,255                             
ffc2c960:	41 82 00 a4 	beq-    ffc2ca04 <scanInt+0x14c>               
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
ffc2c964:	7d 3a c0 16 	mulhwu  r9,r26,r24                             
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
ffc2c968:	38 63 ff d0 	addi    r3,r3,-48                              
    if ((i > (limit / 10))                                            
ffc2c96c:	55 29 e8 fe 	rlwinm  r9,r9,29,3,31                          
ffc2c970:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
ffc2c974:	41 9d 00 90 	bgt-    cr7,ffc2ca04 <scanInt+0x14c>           
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
ffc2c978:	7f 9e 48 00 	cmpw    cr7,r30,r9                             
ffc2c97c:	1f de 00 0a 	mulli   r30,r30,10                             
ffc2c980:	41 9e 00 78 	beq-    cr7,ffc2c9f8 <scanInt+0x140>           
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
ffc2c984:	81 3f 00 04 	lwz     r9,4(r31)                              
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
      return 0;                                                       
    i = i * 10 + d;                                                   
ffc2c988:	7f c3 f2 14 	add     r30,r3,r30                             
  unsigned int limit = INT_MAX;                                       
  int sign = 0;                                                       
  int d;                                                              
                                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
ffc2c98c:	39 29 ff ff 	addi    r9,r9,-1                               
ffc2c990:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc2c994:	91 3f 00 04 	stw     r9,4(r31)                              
ffc2c998:	40 9c ff 88 	bge+    cr7,ffc2c920 <scanInt+0x68>            <== ALWAYS TAKEN
ffc2c99c:	80 7c 34 54 	lwz     r3,13396(r28)                          <== NOT EXECUTED
ffc2c9a0:	7f e4 fb 78 	mr      r4,r31                                 <== NOT EXECUTED
ffc2c9a4:	48 01 d8 1d 	bl      ffc4a1c0 <__srget_r>                   <== NOT EXECUTED
    if (c == ':')                                                     
ffc2c9a8:	2f 83 00 3a 	cmpwi   cr7,r3,58                              <== NOT EXECUTED
ffc2c9ac:	40 9e ff 8c 	bne+    cr7,ffc2c938 <scanInt+0x80>            <== NOT EXECUTED
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
      return 0;                                                       
    i = i * 10 + d;                                                   
  }                                                                   
  if (sign == 0)                                                      
ffc2c9b0:	2f 9d 00 00 	cmpwi   cr7,r29,0                              
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
ffc2c9b4:	38 60 00 00 	li      r3,0                                   
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
      return 0;                                                       
    i = i * 10 + d;                                                   
  }                                                                   
  if (sign == 0)                                                      
ffc2c9b8:	41 9e 00 50 	beq-    cr7,ffc2ca08 <scanInt+0x150>           <== NEVER TAKEN
    return 0;                                                         
  *val = i * sign;                                                    
  return 1;                                                           
}                                                                     
ffc2c9bc:	80 01 00 2c 	lwz     r0,44(r1)                              
      return 0;                                                       
    i = i * 10 + d;                                                   
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
  *val = i * sign;                                                    
ffc2c9c0:	7f dd f1 d6 	mullw   r30,r29,r30                            
  return 1;                                                           
}                                                                     
ffc2c9c4:	83 01 00 08 	lwz     r24,8(r1)                              
ffc2c9c8:	7c 08 03 a6 	mtlr    r0                                     
ffc2c9cc:	83 21 00 0c 	lwz     r25,12(r1)                             
      return 0;                                                       
    i = i * 10 + d;                                                   
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
  *val = i * sign;                                                    
ffc2c9d0:	93 db 00 00 	stw     r30,0(r27)                             
  return 1;                                                           
ffc2c9d4:	38 60 00 01 	li      r3,1                                   
}                                                                     
ffc2c9d8:	83 41 00 10 	lwz     r26,16(r1)                             
ffc2c9dc:	83 61 00 14 	lwz     r27,20(r1)                             
ffc2c9e0:	83 81 00 18 	lwz     r28,24(r1)                             
ffc2c9e4:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc2c9e8:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc2c9ec:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc2c9f0:	38 21 00 28 	addi    r1,r1,40                               
ffc2c9f4:	4e 80 00 20 	blr                                            
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
    d = c - '0';                                                      
    if ((i > (limit / 10))                                            
     || ((i == (limit / 10)) && (d > (limit % 10))))                  
ffc2c9f8:	7d 3e d0 50 	subf    r9,r30,r26                             
ffc2c9fc:	7f 83 48 40 	cmplw   cr7,r3,r9                              
ffc2ca00:	40 9d ff 84 	ble+    cr7,ffc2c984 <scanInt+0xcc>            <== NEVER TAKEN
        continue;                                                     
      }                                                               
      sign = 1;                                                       
    }                                                                 
    if (!isdigit(c))                                                  
      return 0;                                                       
ffc2ca04:	38 60 00 00 	li      r3,0                                   
  }                                                                   
  if (sign == 0)                                                      
    return 0;                                                         
  *val = i * sign;                                                    
  return 1;                                                           
}                                                                     
ffc2ca08:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc2ca0c:	83 01 00 08 	lwz     r24,8(r1)                              
ffc2ca10:	7c 08 03 a6 	mtlr    r0                                     
ffc2ca14:	83 21 00 0c 	lwz     r25,12(r1)                             
ffc2ca18:	83 41 00 10 	lwz     r26,16(r1)                             
ffc2ca1c:	83 61 00 14 	lwz     r27,20(r1)                             
ffc2ca20:	83 81 00 18 	lwz     r28,24(r1)                             
ffc2ca24:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc2ca28:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc2ca2c:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc2ca30:	38 21 00 28 	addi    r1,r1,40                               
ffc2ca34:	4e 80 00 20 	blr                                            
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
        sign = -1;                                                    
        limit++;                                                      
ffc2ca38:	3b 5a 00 01 	addi    r26,r26,1                              
    c = getc(fp);                                                     
    if (c == ':')                                                     
      break;                                                          
    if (sign == 0) {                                                  
      if (c == '-') {                                                 
        sign = -1;                                                    
ffc2ca3c:	3b a0 ff ff 	li      r29,-1                                 
        limit++;                                                      
        continue;                                                     
ffc2ca40:	4b ff fe cc 	b       ffc2c90c <scanInt+0x54>                
                                                                      

ffc2ca44 <scanString>: /** * Extract a string value from the database */ static int scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag) {
ffc2ca44:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc2ca48:	7c 08 02 a6 	mflr    r0                                     
  int c;                                                              
                                                                      
  *name = *bufp;                                                      
ffc2ca4c:	81 25 00 00 	lwz     r9,0(r5)                               
/**                                                                   
 *  Extract a string value from the database                          
 */                                                                   
static int                                                            
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{                                                                     
ffc2ca50:	93 61 00 0c 	stw     r27,12(r1)                             
ffc2ca54:	7c fb 3b 78 	mr      r27,r7                                 
ffc2ca58:	93 81 00 10 	stw     r28,16(r1)                             
  int c;                                                              
                                                                      
  *name = *bufp;                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
ffc2ca5c:	3f 80 00 00 	lis     r28,0                                  
/**                                                                   
 *  Extract a string value from the database                          
 */                                                                   
static int                                                            
scanString(FILE *fp, char **name, char **bufp, size_t *nleft, int nlFlag)
{                                                                     
ffc2ca60:	93 a1 00 14 	stw     r29,20(r1)                             
ffc2ca64:	7c dd 33 78 	mr      r29,r6                                 
ffc2ca68:	93 c1 00 18 	stw     r30,24(r1)                             
ffc2ca6c:	7c be 2b 78 	mr      r30,r5                                 
ffc2ca70:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc2ca74:	7c 7f 1b 78 	mr      r31,r3                                 
ffc2ca78:	90 01 00 24 	stw     r0,36(r1)                              
  int c;                                                              
                                                                      
  *name = *bufp;                                                      
ffc2ca7c:	91 24 00 00 	stw     r9,0(r4)                               
ffc2ca80:	48 00 00 58 	b       ffc2cad8 <scanString+0x94>             
  for (;;) {                                                          
    c = getc(fp);                                                     
ffc2ca84:	81 3f 00 00 	lwz     r9,0(r31)                              
ffc2ca88:	88 69 00 00 	lbz     r3,0(r9)                               
ffc2ca8c:	39 49 00 01 	addi    r10,r9,1                               
ffc2ca90:	91 5f 00 00 	stw     r10,0(r31)                             
    if (c == ':') {                                                   
ffc2ca94:	2f 83 00 3a 	cmpwi   cr7,r3,58                              
        if (nlFlag)                                                   
            return 0;                                                 
        break;                                                        
    }                                                                 
    if (c == '\n') {                                                  
ffc2ca98:	2f 03 00 0a 	cmpwi   cr6,r3,10                              
        if (!nlFlag)                                                  
            return 0;                                                 
        break;                                                        
    }                                                                 
    if (c == EOF)                                                     
ffc2ca9c:	2c 83 ff ff 	cmpwi   cr1,r3,-1                              
  int c;                                                              
                                                                      
  *name = *bufp;                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
    if (c == ':') {                                                   
ffc2caa0:	41 9e 00 68 	beq-    cr7,ffc2cb08 <scanString+0xc4>         
        if (nlFlag)                                                   
            return 0;                                                 
        break;                                                        
    }                                                                 
    if (c == '\n') {                                                  
ffc2caa4:	41 9a 00 e4 	beq-    cr6,ffc2cb88 <scanString+0x144>        
        if (!nlFlag)                                                  
            return 0;                                                 
        break;                                                        
    }                                                                 
    if (c == EOF)                                                     
ffc2caa8:	41 86 00 b8 	beq-    cr1,ffc2cb60 <scanString+0x11c>        
      return 0;                                                       
    if (*nleft < 2)                                                   
ffc2caac:	81 3d 00 00 	lwz     r9,0(r29)                              
ffc2cab0:	2b 89 00 01 	cmplwi  cr7,r9,1                               
ffc2cab4:	40 9d 00 ac 	ble-    cr7,ffc2cb60 <scanString+0x11c>        
      return 0;                                                       
    **bufp = c;                                                       
ffc2cab8:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc2cabc:	98 69 00 00 	stb     r3,0(r9)                               
    ++(*bufp);                                                        
ffc2cac0:	81 5e 00 00 	lwz     r10,0(r30)                             
    --(*nleft);                                                       
ffc2cac4:	81 3d 00 00 	lwz     r9,0(r29)                              
    if (c == EOF)                                                     
      return 0;                                                       
    if (*nleft < 2)                                                   
      return 0;                                                       
    **bufp = c;                                                       
    ++(*bufp);                                                        
ffc2cac8:	39 4a 00 01 	addi    r10,r10,1                              
    --(*nleft);                                                       
ffc2cacc:	39 29 ff ff 	addi    r9,r9,-1                               
    if (c == EOF)                                                     
      return 0;                                                       
    if (*nleft < 2)                                                   
      return 0;                                                       
    **bufp = c;                                                       
    ++(*bufp);                                                        
ffc2cad0:	91 5e 00 00 	stw     r10,0(r30)                             
    --(*nleft);                                                       
ffc2cad4:	91 3d 00 00 	stw     r9,0(r29)                              
{                                                                     
  int c;                                                              
                                                                      
  *name = *bufp;                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
ffc2cad8:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc2cadc:	39 29 ff ff 	addi    r9,r9,-1                               
ffc2cae0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc2cae4:	91 3f 00 04 	stw     r9,4(r31)                              
ffc2cae8:	40 9c ff 9c 	bge+    cr7,ffc2ca84 <scanString+0x40>         
ffc2caec:	80 7c 34 54 	lwz     r3,13396(r28)                          
ffc2caf0:	7f e4 fb 78 	mr      r4,r31                                 
ffc2caf4:	48 01 d6 cd 	bl      ffc4a1c0 <__srget_r>                   
    if (c == ':') {                                                   
ffc2caf8:	2f 83 00 3a 	cmpwi   cr7,r3,58                              
        if (nlFlag)                                                   
            return 0;                                                 
        break;                                                        
    }                                                                 
    if (c == '\n') {                                                  
ffc2cafc:	2f 03 00 0a 	cmpwi   cr6,r3,10                              
        if (!nlFlag)                                                  
            return 0;                                                 
        break;                                                        
    }                                                                 
    if (c == EOF)                                                     
ffc2cb00:	2c 83 ff ff 	cmpwi   cr1,r3,-1                              
  int c;                                                              
                                                                      
  *name = *bufp;                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
    if (c == ':') {                                                   
ffc2cb04:	40 9e ff a0 	bne+    cr7,ffc2caa4 <scanString+0x60>         <== ALWAYS TAKEN
        if (nlFlag)                                                   
ffc2cb08:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
            return 0;                                                 
ffc2cb0c:	38 60 00 00 	li      r3,0                                   
                                                                      
  *name = *bufp;                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
    if (c == ':') {                                                   
        if (nlFlag)                                                   
ffc2cb10:	40 9e 00 54 	bne-    cr7,ffc2cb64 <scanString+0x120>        
      return 0;                                                       
    **bufp = c;                                                       
    ++(*bufp);                                                        
    --(*nleft);                                                       
  }                                                                   
  **bufp = '\0';                                                      
ffc2cb14:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc2cb18:	39 40 00 00 	li      r10,0                                  
  ++(*bufp);                                                          
  --(*nleft);                                                         
  return 1;                                                           
ffc2cb1c:	38 60 00 01 	li      r3,1                                   
      return 0;                                                       
    **bufp = c;                                                       
    ++(*bufp);                                                        
    --(*nleft);                                                       
  }                                                                   
  **bufp = '\0';                                                      
ffc2cb20:	99 49 00 00 	stb     r10,0(r9)                              
  ++(*bufp);                                                          
ffc2cb24:	81 5e 00 00 	lwz     r10,0(r30)                             
  --(*nleft);                                                         
ffc2cb28:	81 3d 00 00 	lwz     r9,0(r29)                              
    **bufp = c;                                                       
    ++(*bufp);                                                        
    --(*nleft);                                                       
  }                                                                   
  **bufp = '\0';                                                      
  ++(*bufp);                                                          
ffc2cb2c:	39 4a 00 01 	addi    r10,r10,1                              
  --(*nleft);                                                         
ffc2cb30:	39 29 ff ff 	addi    r9,r9,-1                               
    **bufp = c;                                                       
    ++(*bufp);                                                        
    --(*nleft);                                                       
  }                                                                   
  **bufp = '\0';                                                      
  ++(*bufp);                                                          
ffc2cb34:	91 5e 00 00 	stw     r10,0(r30)                             
  --(*nleft);                                                         
ffc2cb38:	91 3d 00 00 	stw     r9,0(r29)                              
  return 1;                                                           
}                                                                     
ffc2cb3c:	80 01 00 24 	lwz     r0,36(r1)                              
ffc2cb40:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc2cb44:	7c 08 03 a6 	mtlr    r0                                     
ffc2cb48:	83 81 00 10 	lwz     r28,16(r1)                             
ffc2cb4c:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc2cb50:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc2cb54:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc2cb58:	38 21 00 20 	addi    r1,r1,32                               
ffc2cb5c:	4e 80 00 20 	blr                                            
  *name = *bufp;                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
    if (c == ':') {                                                   
        if (nlFlag)                                                   
            return 0;                                                 
ffc2cb60:	38 60 00 00 	li      r3,0                                   
  }                                                                   
  **bufp = '\0';                                                      
  ++(*bufp);                                                          
  --(*nleft);                                                         
  return 1;                                                           
}                                                                     
ffc2cb64:	80 01 00 24 	lwz     r0,36(r1)                              
ffc2cb68:	83 61 00 0c 	lwz     r27,12(r1)                             
ffc2cb6c:	7c 08 03 a6 	mtlr    r0                                     
ffc2cb70:	83 81 00 10 	lwz     r28,16(r1)                             
ffc2cb74:	83 a1 00 14 	lwz     r29,20(r1)                             
ffc2cb78:	83 c1 00 18 	lwz     r30,24(r1)                             
ffc2cb7c:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc2cb80:	38 21 00 20 	addi    r1,r1,32                               
ffc2cb84:	4e 80 00 20 	blr                                            
        if (nlFlag)                                                   
            return 0;                                                 
        break;                                                        
    }                                                                 
    if (c == '\n') {                                                  
        if (!nlFlag)                                                  
ffc2cb88:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
  *name = *bufp;                                                      
  for (;;) {                                                          
    c = getc(fp);                                                     
    if (c == ':') {                                                   
        if (nlFlag)                                                   
            return 0;                                                 
ffc2cb8c:	38 60 00 00 	li      r3,0                                   
        break;                                                        
    }                                                                 
    if (c == '\n') {                                                  
        if (!nlFlag)                                                  
ffc2cb90:	41 be ff d4 	beq-    cr7,ffc2cb64 <scanString+0x120>        
      return 0;                                                       
    **bufp = c;                                                       
    ++(*bufp);                                                        
    --(*nleft);                                                       
  }                                                                   
  **bufp = '\0';                                                      
ffc2cb94:	81 3e 00 00 	lwz     r9,0(r30)                              
ffc2cb98:	39 40 00 00 	li      r10,0                                  
  ++(*bufp);                                                          
  --(*nleft);                                                         
  return 1;                                                           
ffc2cb9c:	38 60 00 01 	li      r3,1                                   
      return 0;                                                       
    **bufp = c;                                                       
    ++(*bufp);                                                        
    --(*nleft);                                                       
  }                                                                   
  **bufp = '\0';                                                      
ffc2cba0:	99 49 00 00 	stb     r10,0(r9)                              
  ++(*bufp);                                                          
ffc2cba4:	81 5e 00 00 	lwz     r10,0(r30)                             
  --(*nleft);                                                         
ffc2cba8:	81 3d 00 00 	lwz     r9,0(r29)                              
    **bufp = c;                                                       
    ++(*bufp);                                                        
    --(*nleft);                                                       
  }                                                                   
  **bufp = '\0';                                                      
  ++(*bufp);                                                          
ffc2cbac:	39 4a 00 01 	addi    r10,r10,1                              
  --(*nleft);                                                         
ffc2cbb0:	39 29 ff ff 	addi    r9,r9,-1                               
    **bufp = c;                                                       
    ++(*bufp);                                                        
    --(*nleft);                                                       
  }                                                                   
  **bufp = '\0';                                                      
  ++(*bufp);                                                          
ffc2cbb4:	91 5e 00 00 	stw     r10,0(r30)                             
  --(*nleft);                                                         
ffc2cbb8:	91 3d 00 00 	stw     r9,0(r29)                              
ffc2cbbc:	4b ff ff 80 	b       ffc2cb3c <scanString+0xf8>             
                                                                      

ffc2cbc0 <scangr>: FILE *fp, struct group *grp, char *buffer, size_t bufsize ) {
ffc2cbc0:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc2cbc4:	7c 08 02 a6 	mflr    r0                                     
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
ffc2cbc8:	38 e0 00 00 	li      r7,0                                   
  FILE *fp,                                                           
  struct group *grp,                                                  
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc2cbcc:	90 a1 00 18 	stw     r5,24(r1)                              
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
ffc2cbd0:	38 a1 00 18 	addi    r5,r1,24                               
  FILE *fp,                                                           
  struct group *grp,                                                  
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc2cbd4:	90 c1 00 1c 	stw     r6,28(r1)                              
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
ffc2cbd8:	38 c1 00 1c 	addi    r6,r1,28                               
  FILE *fp,                                                           
  struct group *grp,                                                  
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc2cbdc:	93 c1 00 20 	stw     r30,32(r1)                             
ffc2cbe0:	7c 9e 23 78 	mr      r30,r4                                 
ffc2cbe4:	93 e1 00 24 	stw     r31,36(r1)                             
ffc2cbe8:	7c 7f 1b 78 	mr      r31,r3                                 
ffc2cbec:	90 01 00 2c 	stw     r0,44(r1)                              
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
ffc2cbf0:	4b ff fe 55 	bl      ffc2ca44 <scanString>                  
ffc2cbf4:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2cbf8:	40 9e 00 20 	bne-    cr7,ffc2cc18 <scangr+0x58>             
   || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)          
   || !scanInt(fp, &grgid)                                            
   || !scanString(fp, &grmem, &buffer, &bufsize, 1))                  
    return 0;                                                         
ffc2cbfc:	38 60 00 00 	li      r3,0                                   
      grp->gr_mem[memcount++] = cp + 1;                               
    }                                                                 
  }                                                                   
  grp->gr_mem[memcount] = NULL;                                       
  return 1;                                                           
}                                                                     
ffc2cc00:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc2cc04:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc2cc08:	7c 08 03 a6 	mtlr    r0                                     
ffc2cc0c:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc2cc10:	38 21 00 28 	addi    r1,r1,40                               
ffc2cc14:	4e 80 00 20 	blr                                            
  int grgid;                                                          
  char *grmem, *cp;                                                   
  int memcount;                                                       
                                                                      
  if (!scanString(fp, &grp->gr_name, &buffer, &bufsize, 0)            
   || !scanString(fp, &grp->gr_passwd, &buffer, &bufsize, 0)          
ffc2cc18:	7f e3 fb 78 	mr      r3,r31                                 
ffc2cc1c:	38 9e 00 04 	addi    r4,r30,4                               
ffc2cc20:	38 a1 00 18 	addi    r5,r1,24                               
ffc2cc24:	38 c1 00 1c 	addi    r6,r1,28                               
ffc2cc28:	38 e0 00 00 	li      r7,0                                   
ffc2cc2c:	4b ff fe 19 	bl      ffc2ca44 <scanString>                  
ffc2cc30:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2cc34:	41 9e ff c8 	beq+    cr7,ffc2cbfc <scangr+0x3c>             <== NEVER TAKEN
   || !scanInt(fp, &grgid)                                            
ffc2cc38:	7f e3 fb 78 	mr      r3,r31                                 
ffc2cc3c:	38 81 00 0c 	addi    r4,r1,12                               
ffc2cc40:	4b ff fc 79 	bl      ffc2c8b8 <scanInt>                     
ffc2cc44:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2cc48:	41 9e ff b4 	beq+    cr7,ffc2cbfc <scangr+0x3c>             <== NEVER TAKEN
   || !scanString(fp, &grmem, &buffer, &bufsize, 1))                  
ffc2cc4c:	7f e3 fb 78 	mr      r3,r31                                 
ffc2cc50:	38 81 00 08 	addi    r4,r1,8                                
ffc2cc54:	38 a1 00 18 	addi    r5,r1,24                               
ffc2cc58:	38 c1 00 1c 	addi    r6,r1,28                               
ffc2cc5c:	38 e0 00 01 	li      r7,1                                   
ffc2cc60:	4b ff fd e5 	bl      ffc2ca44 <scanString>                  
ffc2cc64:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2cc68:	41 be ff 94 	beq-    cr7,ffc2cbfc <scangr+0x3c>             <== NEVER TAKEN
    return 0;                                                         
  grp->gr_gid = grgid;                                                
ffc2cc6c:	81 21 00 0c 	lwz     r9,12(r1)                              
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc2cc70:	80 e1 00 08 	lwz     r7,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;                                                
ffc2cc74:	b1 3e 00 08 	sth     r9,8(r30)                              
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc2cc78:	89 27 00 00 	lbz     r9,0(r7)                               
ffc2cc7c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc2cc80:	41 9e 00 b8 	beq-    cr7,ffc2cd38 <scangr+0x178>            <== NEVER TAKEN
ffc2cc84:	7c e8 3b 78 	mr      r8,r7                                  
ffc2cc88:	39 40 00 01 	li      r10,1                                  
    if(*cp == ',')                                                    
      memcount++;                                                     
ffc2cc8c:	69 26 00 2c 	xori    r6,r9,44                               
ffc2cc90:	20 c6 00 00 	subfic  r6,r6,0                                
ffc2cc94:	7c ca 01 94 	addze   r6,r10                                 
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc2cc98:	8d 28 00 01 	lbzu    r9,1(r8)                               
ffc2cc9c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    if(*cp == ',')                                                    
      memcount++;                                                     
ffc2cca0:	7c ca 33 78 	mr      r10,r6                                 
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc2cca4:	40 9e ff e8 	bne+    cr7,ffc2cc8c <scangr+0xcc>             
ffc2cca8:	54 ca 10 3a 	rlwinm  r10,r6,2,0,29                          
ffc2ccac:	39 4a 00 13 	addi    r10,r10,19                             
  }                                                                   
                                                                      
  /*                                                                  
   * Hack to produce (hopefully) a suitably-aligned array of pointers 
   */                                                                 
  if (bufsize < (((memcount+1)*sizeof(char *)) + 15))                 
ffc2ccb0:	81 21 00 1c 	lwz     r9,28(r1)                              
ffc2ccb4:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc2ccb8:	41 bc ff 44 	blt-    cr7,ffc2cbfc <scangr+0x3c>             <== NEVER TAKEN
    return 0;                                                         
  grp->gr_mem = (char **)(((uintptr_t)buffer + 15) & ~15);            
ffc2ccbc:	81 21 00 18 	lwz     r9,24(r1)                              
ffc2ccc0:	39 29 00 0f 	addi    r9,r9,15                               
ffc2ccc4:	55 29 00 36 	rlwinm  r9,r9,0,0,27                           
ffc2ccc8:	91 3e 00 0c 	stw     r9,12(r30)                             
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
ffc2cccc:	90 e9 00 00 	stw     r7,0(r9)                               
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc2ccd0:	81 21 00 08 	lwz     r9,8(r1)                               
ffc2ccd4:	89 49 00 00 	lbz     r10,0(r9)                              
ffc2ccd8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc2ccdc:	41 9e 00 64 	beq-    cr7,ffc2cd40 <scangr+0x180>            <== NEVER TAKEN
}                                                                     
                                                                      
/**                                                                   
 *  Extract a single group record from the database                   
 */                                                                   
static int scangr(                                                    
ffc2cce0:	39 29 00 01 	addi    r9,r9,1                                
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc2cce4:	39 00 00 01 	li      r8,1                                   
    if(*cp == ',') {                                                  
      *cp = '\0';                                                     
ffc2cce8:	38 c0 00 00 	li      r6,0                                   
ffc2ccec:	48 00 00 14 	b       ffc2cd00 <scangr+0x140>                
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc2ccf0:	89 49 00 00 	lbz     r10,0(r9)                              
ffc2ccf4:	39 29 00 01 	addi    r9,r9,1                                
ffc2ccf8:	2f 8a 00 00 	cmpwi   cr7,r10,0                              
ffc2ccfc:	41 9e 00 24 	beq-    cr7,ffc2cd20 <scangr+0x160>            
    if(*cp == ',') {                                                  
ffc2cd00:	2f 8a 00 2c 	cmpwi   cr7,r10,44                             
ffc2cd04:	40 9e ff ec 	bne+    cr7,ffc2ccf0 <scangr+0x130>            
      *cp = '\0';                                                     
ffc2cd08:	98 c9 ff ff 	stb     r6,-1(r9)                              
      grp->gr_mem[memcount++] = cp + 1;                               
ffc2cd0c:	55 07 10 3a 	rlwinm  r7,r8,2,0,29                           
ffc2cd10:	39 08 00 01 	addi    r8,r8,1                                
ffc2cd14:	81 5e 00 0c 	lwz     r10,12(r30)                            
ffc2cd18:	7d 2a 39 2e 	stwx    r9,r10,r7                              
ffc2cd1c:	4b ff ff d4 	b       ffc2ccf0 <scangr+0x130>                
ffc2cd20:	55 08 10 3a 	rlwinm  r8,r8,2,0,29                           
    }                                                                 
  }                                                                   
  grp->gr_mem[memcount] = NULL;                                       
ffc2cd24:	81 3e 00 0c 	lwz     r9,12(r30)                             
ffc2cd28:	39 40 00 00 	li      r10,0                                  
  return 1;                                                           
ffc2cd2c:	38 60 00 01 	li      r3,1                                   
    if(*cp == ',') {                                                  
      *cp = '\0';                                                     
      grp->gr_mem[memcount++] = cp + 1;                               
    }                                                                 
  }                                                                   
  grp->gr_mem[memcount] = NULL;                                       
ffc2cd30:	7d 49 41 2e 	stwx    r10,r9,r8                              
ffc2cd34:	4b ff fe cc 	b       ffc2cc00 <scangr+0x40>                 
  grp->gr_gid = grgid;                                                
                                                                      
  /*                                                                  
   * Determine number of members                                      
   */                                                                 
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc2cd38:	39 40 00 17 	li      r10,23                                 <== NOT EXECUTED
ffc2cd3c:	4b ff ff 74 	b       ffc2ccb0 <scangr+0xf0>                 <== NOT EXECUTED
                                                                      
  /*                                                                  
   * Fill in pointer array                                            
   */                                                                 
  grp->gr_mem[0] = grmem;                                             
  for (cp = grmem, memcount = 1 ; *cp != 0 ; cp++) {                  
ffc2cd40:	39 00 00 04 	li      r8,4                                   <== NOT EXECUTED
ffc2cd44:	4b ff ff e0 	b       ffc2cd24 <scangr+0x164>                <== NOT EXECUTED
                                                                      

ffc2cd48 <scanpw>: FILE *fp, struct passwd *pwd, char *buffer, size_t bufsize ) {
ffc2cd48:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc2cd4c:	7c 08 02 a6 	mflr    r0                                     
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
ffc2cd50:	38 e0 00 00 	li      r7,0                                   
  FILE *fp,                                                           
  struct passwd *pwd,                                                 
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc2cd54:	90 a1 00 18 	stw     r5,24(r1)                              
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
ffc2cd58:	38 a1 00 18 	addi    r5,r1,24                               
  FILE *fp,                                                           
  struct passwd *pwd,                                                 
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc2cd5c:	90 c1 00 1c 	stw     r6,28(r1)                              
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
ffc2cd60:	38 c1 00 1c 	addi    r6,r1,28                               
  FILE *fp,                                                           
  struct passwd *pwd,                                                 
  char *buffer,                                                       
  size_t bufsize                                                      
)                                                                     
{                                                                     
ffc2cd64:	93 c1 00 20 	stw     r30,32(r1)                             
ffc2cd68:	7c 9e 23 78 	mr      r30,r4                                 
ffc2cd6c:	93 e1 00 24 	stw     r31,36(r1)                             
ffc2cd70:	7c 7f 1b 78 	mr      r31,r3                                 
ffc2cd74:	90 01 00 2c 	stw     r0,44(r1)                              
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
ffc2cd78:	4b ff fc cd 	bl      ffc2ca44 <scanString>                  
ffc2cd7c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2cd80:	40 9e 00 20 	bne-    cr7,ffc2cda0 <scanpw+0x58>             
   || !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;                                                         
ffc2cd84:	38 60 00 00 	li      r3,0                                   
  pwd->pw_uid = pwuid;                                                
  pwd->pw_gid = pwgid;                                                
  return 1;                                                           
}                                                                     
ffc2cd88:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc2cd8c:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc2cd90:	7c 08 03 a6 	mtlr    r0                                     
ffc2cd94:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc2cd98:	38 21 00 28 	addi    r1,r1,40                               
ffc2cd9c:	4e 80 00 20 	blr                                            
)                                                                     
{                                                                     
  int pwuid, pwgid;                                                   
                                                                      
  if (!scanString(fp, &pwd->pw_name, &buffer, &bufsize, 0)            
   || !scanString(fp, &pwd->pw_passwd, &buffer, &bufsize, 0)          
ffc2cda0:	7f e3 fb 78 	mr      r3,r31                                 
ffc2cda4:	38 9e 00 04 	addi    r4,r30,4                               
ffc2cda8:	38 a1 00 18 	addi    r5,r1,24                               
ffc2cdac:	38 c1 00 1c 	addi    r6,r1,28                               
ffc2cdb0:	38 e0 00 00 	li      r7,0                                   
ffc2cdb4:	4b ff fc 91 	bl      ffc2ca44 <scanString>                  
ffc2cdb8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2cdbc:	41 9e ff c8 	beq+    cr7,ffc2cd84 <scanpw+0x3c>             <== NEVER TAKEN
   || !scanInt(fp, &pwuid)                                            
ffc2cdc0:	7f e3 fb 78 	mr      r3,r31                                 
ffc2cdc4:	38 81 00 0c 	addi    r4,r1,12                               
ffc2cdc8:	4b ff fa f1 	bl      ffc2c8b8 <scanInt>                     
ffc2cdcc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2cdd0:	41 9e ff b4 	beq+    cr7,ffc2cd84 <scanpw+0x3c>             
   || !scanInt(fp, &pwgid)                                            
ffc2cdd4:	7f e3 fb 78 	mr      r3,r31                                 
ffc2cdd8:	38 81 00 08 	addi    r4,r1,8                                
ffc2cddc:	4b ff fa dd 	bl      ffc2c8b8 <scanInt>                     
ffc2cde0:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2cde4:	41 9e ff a0 	beq+    cr7,ffc2cd84 <scanpw+0x3c>             
   || !scanString(fp, &pwd->pw_comment, &buffer, &bufsize, 0)         
ffc2cde8:	7f e3 fb 78 	mr      r3,r31                                 
ffc2cdec:	38 9e 00 0c 	addi    r4,r30,12                              
ffc2cdf0:	38 a1 00 18 	addi    r5,r1,24                               
ffc2cdf4:	38 c1 00 1c 	addi    r6,r1,28                               
ffc2cdf8:	38 e0 00 00 	li      r7,0                                   
ffc2cdfc:	4b ff fc 49 	bl      ffc2ca44 <scanString>                  
ffc2ce00:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2ce04:	41 9e ff 80 	beq+    cr7,ffc2cd84 <scanpw+0x3c>             <== NEVER TAKEN
   || !scanString(fp, &pwd->pw_gecos, &buffer, &bufsize, 0)           
ffc2ce08:	7f e3 fb 78 	mr      r3,r31                                 
ffc2ce0c:	38 9e 00 10 	addi    r4,r30,16                              
ffc2ce10:	38 a1 00 18 	addi    r5,r1,24                               
ffc2ce14:	38 c1 00 1c 	addi    r6,r1,28                               
ffc2ce18:	38 e0 00 00 	li      r7,0                                   
ffc2ce1c:	4b ff fc 29 	bl      ffc2ca44 <scanString>                  
ffc2ce20:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2ce24:	41 9e ff 60 	beq+    cr7,ffc2cd84 <scanpw+0x3c>             <== NEVER TAKEN
   || !scanString(fp, &pwd->pw_dir, &buffer, &bufsize, 0)             
ffc2ce28:	7f e3 fb 78 	mr      r3,r31                                 
ffc2ce2c:	38 9e 00 14 	addi    r4,r30,20                              
ffc2ce30:	38 a1 00 18 	addi    r5,r1,24                               
ffc2ce34:	38 c1 00 1c 	addi    r6,r1,28                               
ffc2ce38:	38 e0 00 00 	li      r7,0                                   
ffc2ce3c:	4b ff fc 09 	bl      ffc2ca44 <scanString>                  
ffc2ce40:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2ce44:	41 9e ff 40 	beq+    cr7,ffc2cd84 <scanpw+0x3c>             <== NEVER TAKEN
   || !scanString(fp, &pwd->pw_shell, &buffer, &bufsize, 1))          
ffc2ce48:	7f e3 fb 78 	mr      r3,r31                                 
ffc2ce4c:	38 9e 00 18 	addi    r4,r30,24                              
ffc2ce50:	38 a1 00 18 	addi    r5,r1,24                               
ffc2ce54:	38 c1 00 1c 	addi    r6,r1,28                               
ffc2ce58:	38 e0 00 01 	li      r7,1                                   
ffc2ce5c:	4b ff fb e9 	bl      ffc2ca44 <scanString>                  
ffc2ce60:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc2ce64:	41 be ff 20 	beq-    cr7,ffc2cd84 <scanpw+0x3c>             
    return 0;                                                         
  pwd->pw_uid = pwuid;                                                
ffc2ce68:	81 21 00 0c 	lwz     r9,12(r1)                              
  pwd->pw_gid = pwgid;                                                
  return 1;                                                           
ffc2ce6c:	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;                                                
ffc2ce70:	b1 3e 00 08 	sth     r9,8(r30)                              
  pwd->pw_gid = pwgid;                                                
ffc2ce74:	81 21 00 08 	lwz     r9,8(r1)                               
ffc2ce78:	b1 3e 00 0a 	sth     r9,10(r30)                             
ffc2ce7c:	4b ff ff 0c 	b       ffc2cd88 <scanpw+0x40>                 
                                                                      

ffc09ed8 <sched_get_priority_max>: int sched_get_priority_max( int policy ) { switch ( policy ) {
ffc09ed8:	2b 83 00 04 	cmplwi  cr7,r3,4                               
#include <rtems/posix/priority.h>                                     
                                                                      
int sched_get_priority_max(                                           
  int  policy                                                         
)                                                                     
{                                                                     
ffc09edc:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc09ee0:	7c 08 02 a6 	mflr    r0                                     
ffc09ee4:	90 01 00 0c 	stw     r0,12(r1)                              
  switch ( policy ) {                                                 
ffc09ee8:	40 9d 00 24 	ble-    cr7,ffc09f0c <sched_get_priority_max+0x34>
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      break;                                                          
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc09eec:	48 00 9c 21 	bl      ffc13b0c <__errno>                     
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MAXIMUM_PRIORITY;                            
}                                                                     
ffc09ef0:	80 01 00 0c 	lwz     r0,12(r1)                              
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      break;                                                          
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc09ef4:	39 20 00 16 	li      r9,22                                  
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MAXIMUM_PRIORITY;                            
}                                                                     
ffc09ef8:	7c 08 03 a6 	mtlr    r0                                     
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      break;                                                          
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc09efc:	91 23 00 00 	stw     r9,0(r3)                               
ffc09f00:	38 60 ff ff 	li      r3,-1                                  
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MAXIMUM_PRIORITY;                            
}                                                                     
ffc09f04:	38 21 00 08 	addi    r1,r1,8                                
ffc09f08:	4e 80 00 20 	blr                                            
                                                                      
int sched_get_priority_max(                                           
  int  policy                                                         
)                                                                     
{                                                                     
  switch ( policy ) {                                                 
ffc09f0c:	39 20 00 01 	li      r9,1                                   
ffc09f10:	7d 23 18 30 	slw     r3,r9,r3                               
ffc09f14:	70 69 00 17 	andi.   r9,r3,23                               
ffc09f18:	41 a2 ff d4 	beq-    ffc09eec <sched_get_priority_max+0x14> <== NEVER TAKEN
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MAXIMUM_PRIORITY;                            
}                                                                     
ffc09f1c:	80 01 00 0c 	lwz     r0,12(r1)                              
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MAXIMUM_PRIORITY;                            
ffc09f20:	3d 20 00 00 	lis     r9,0                                   
ffc09f24:	88 69 27 84 	lbz     r3,10116(r9)                           
}                                                                     
ffc09f28:	7c 08 03 a6 	mtlr    r0                                     
ffc09f2c:	38 21 00 08 	addi    r1,r1,8                                
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MAXIMUM_PRIORITY;                            
ffc09f30:	38 63 ff ff 	addi    r3,r3,-1                               
}                                                                     
ffc09f34:	4e 80 00 20 	blr                                            
                                                                      

ffc09f38 <sched_get_priority_min>: */ int sched_get_priority_min( int policy ) { switch ( policy ) {
ffc09f38:	2b 83 00 04 	cmplwi  cr7,r3,4                               
 *  13.3.6 Get Scheduling Parameter Limits, P1003.1b-1993, p. 258     
 */                                                                   
int sched_get_priority_min(                                           
  int  policy                                                         
)                                                                     
{                                                                     
ffc09f3c:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc09f40:	7c 08 02 a6 	mflr    r0                                     
ffc09f44:	90 01 00 0c 	stw     r0,12(r1)                              
  switch ( policy ) {                                                 
ffc09f48:	40 9d 00 28 	ble-    cr7,ffc09f70 <sched_get_priority_min+0x38>
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      break;                                                          
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc09f4c:	48 00 9b c1 	bl      ffc13b0c <__errno>                     
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MINIMUM_PRIORITY;                            
}                                                                     
ffc09f50:	80 01 00 0c 	lwz     r0,12(r1)                              
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      break;                                                          
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc09f54:	39 20 00 16 	li      r9,22                                  
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MINIMUM_PRIORITY;                            
}                                                                     
ffc09f58:	7c 08 03 a6 	mtlr    r0                                     
    case SCHED_RR:                                                    
    case SCHED_SPORADIC:                                              
      break;                                                          
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc09f5c:	91 23 00 00 	stw     r9,0(r3)                               
ffc09f60:	39 20 ff ff 	li      r9,-1                                  
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MINIMUM_PRIORITY;                            
}                                                                     
ffc09f64:	7d 23 4b 78 	mr      r3,r9                                  
ffc09f68:	38 21 00 08 	addi    r1,r1,8                                
ffc09f6c:	4e 80 00 20 	blr                                            
 */                                                                   
int sched_get_priority_min(                                           
  int  policy                                                         
)                                                                     
{                                                                     
  switch ( policy ) {                                                 
ffc09f70:	39 20 00 01 	li      r9,1                                   
ffc09f74:	7d 23 18 30 	slw     r3,r9,r3                               
ffc09f78:	70 69 00 17 	andi.   r9,r3,23                               
                                                                      
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MINIMUM_PRIORITY;                            
ffc09f7c:	39 20 00 01 	li      r9,1                                   
 */                                                                   
int sched_get_priority_min(                                           
  int  policy                                                         
)                                                                     
{                                                                     
  switch ( policy ) {                                                 
ffc09f80:	41 a2 ff cc 	beq-    ffc09f4c <sched_get_priority_min+0x14> <== NEVER TAKEN
    default:                                                          
      rtems_set_errno_and_return_minus_one( EINVAL );                 
  }                                                                   
                                                                      
  return POSIX_SCHEDULER_MINIMUM_PRIORITY;                            
}                                                                     
ffc09f84:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc09f88:	7d 23 4b 78 	mr      r3,r9                                  
ffc09f8c:	7c 08 03 a6 	mtlr    r0                                     
ffc09f90:	38 21 00 08 	addi    r1,r1,8                                
ffc09f94:	4e 80 00 20 	blr                                            
                                                                      

ffc09f98 <sched_rr_get_interval>: int sched_rr_get_interval( pid_t pid, struct timespec *interval ) {
ffc09f98:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc09f9c:	7c 08 02 a6 	mflr    r0                                     
ffc09fa0:	93 e1 00 14 	stw     r31,20(r1)                             
  /*                                                                  
   *  Only supported for the "calling process" (i.e. this node).      
   */                                                                 
                                                                      
  if ( pid && pid != getpid() )                                       
ffc09fa4:	7c 7f 1b 79 	mr.     r31,r3                                 
                                                                      
int sched_rr_get_interval(                                            
  pid_t             pid,                                              
  struct timespec  *interval                                          
)                                                                     
{                                                                     
ffc09fa8:	90 01 00 1c 	stw     r0,28(r1)                              
  /*                                                                  
   *  Only supported for the "calling process" (i.e. this node).      
   */                                                                 
                                                                      
  if ( pid && pid != getpid() )                                       
ffc09fac:	40 82 00 30 	bne-    ffc09fdc <sched_rr_get_interval+0x44>  <== ALWAYS TAKEN
    rtems_set_errno_and_return_minus_one( ESRCH );                    
                                                                      
  if ( !interval )                                                    
ffc09fb0:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc09fb4:	41 9e 00 50 	beq-    cr7,ffc0a004 <sched_rr_get_interval+0x6c>
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  _Timespec_From_ticks( _Thread_Ticks_per_timeslice, interval );      
ffc09fb8:	3d 20 00 00 	lis     r9,0                                   
ffc09fbc:	80 69 28 68 	lwz     r3,10344(r9)                           
ffc09fc0:	48 00 46 91 	bl      ffc0e650 <_Timespec_From_ticks>        
  return 0;                                                           
ffc09fc4:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc09fc8:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc09fcc:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc09fd0:	7c 08 03 a6 	mtlr    r0                                     
ffc09fd4:	38 21 00 18 	addi    r1,r1,24                               
ffc09fd8:	4e 80 00 20 	blr                                            
{                                                                     
  /*                                                                  
   *  Only supported for the "calling process" (i.e. this node).      
   */                                                                 
                                                                      
  if ( pid && pid != getpid() )                                       
ffc09fdc:	90 81 00 08 	stw     r4,8(r1)                               
ffc09fe0:	4b ff af 81 	bl      ffc04f60 <getpid>                      
ffc09fe4:	7f 83 f8 00 	cmpw    cr7,r3,r31                             
ffc09fe8:	80 81 00 08 	lwz     r4,8(r1)                               
ffc09fec:	41 9e ff c4 	beq+    cr7,ffc09fb0 <sched_rr_get_interval+0x18>
    rtems_set_errno_and_return_minus_one( ESRCH );                    
ffc09ff0:	48 00 9b 1d 	bl      ffc13b0c <__errno>                     
ffc09ff4:	39 20 00 03 	li      r9,3                                   
ffc09ff8:	91 23 00 00 	stw     r9,0(r3)                               
ffc09ffc:	38 60 ff ff 	li      r3,-1                                  
ffc0a000:	4b ff ff c8 	b       ffc09fc8 <sched_rr_get_interval+0x30>  
                                                                      
  if ( !interval )                                                    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc0a004:	48 00 9b 09 	bl      ffc13b0c <__errno>                     
ffc0a008:	39 20 00 16 	li      r9,22                                  
ffc0a00c:	91 23 00 00 	stw     r9,0(r3)                               
ffc0a010:	38 60 ff ff 	li      r3,-1                                  
ffc0a014:	4b ff ff b4 	b       ffc09fc8 <sched_rr_get_interval+0x30>  
                                                                      

ffc0ab64 <sem_open>: * * 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;
ffc0ab64:	3d 20 00 00 	lis     r9,0                                   
  int         oflag,                                                  
  ...                                                                 
  /* mode_t mode, */                                                  
  /* unsigned int value */                                            
)                                                                     
{                                                                     
ffc0ab68:	94 21 ff b8 	stwu    r1,-72(r1)                             
ffc0ab6c:	7c 08 02 a6 	mflr    r0                                     
ffc0ab70:	81 49 28 a8 	lwz     r10,10408(r9)                          
ffc0ab74:	7d 80 00 26 	mfcr    r12                                    
ffc0ab78:	93 a1 00 3c 	stw     r29,60(r1)                             
ffc0ab7c:	7c 7d 1b 78 	mr      r29,r3                                 
                                                                      
    ++level;                                                          
ffc0ab80:	39 4a 00 01 	addi    r10,r10,1                              
ffc0ab84:	93 e1 00 44 	stw     r31,68(r1)                             
ffc0ab88:	7c 9f 23 78 	mr      r31,r4                                 
ffc0ab8c:	90 01 00 4c 	stw     r0,76(r1)                              
ffc0ab90:	93 61 00 34 	stw     r27,52(r1)                             
ffc0ab94:	93 81 00 38 	stw     r28,56(r1)                             
ffc0ab98:	93 c1 00 40 	stw     r30,64(r1)                             
ffc0ab9c:	91 81 00 30 	stw     r12,48(r1)                             
ffc0aba0:	90 a1 00 28 	stw     r5,40(r1)                              
ffc0aba4:	90 c1 00 2c 	stw     r6,44(r1)                              
    _Thread_Dispatch_disable_level = level;                           
ffc0aba8:	91 49 28 a8 	stw     r10,10408(r9)                          
  Objects_Locations          location;                                
  size_t                     name_len;                                
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
ffc0abac:	54 89 bf fe 	rlwinm  r9,r4,23,31,31                         
ffc0abb0:	2e 09 00 00 	cmpwi   cr4,r9,0                               
  /* unsigned int value */                                            
)                                                                     
{                                                                     
  va_list                    arg;                                     
  mode_t                     mode;                                    
  unsigned int               value = 0;                               
ffc0abb4:	3b 60 00 00 	li      r27,0                                  
  Objects_Locations          location;                                
  size_t                     name_len;                                
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
ffc0abb8:	40 92 00 d8 	bne-    cr4,ffc0ac90 <sem_open+0x12c>          
  const char *name,                                                   
  Objects_Id *id,                                                     
  size_t     *len                                                     
)                                                                     
{                                                                     
  return _POSIX_Name_to_id( &_POSIX_Semaphore_Information, name, id, len );
ffc0abbc:	3f c0 00 00 	lis     r30,0                                  
ffc0abc0:	3b de 59 00 	addi    r30,r30,22784                          
ffc0abc4:	7f c3 f3 78 	mr      r3,r30                                 
ffc0abc8:	7f a4 eb 78 	mr      r4,r29                                 
ffc0abcc:	38 a1 00 20 	addi    r5,r1,32                               
ffc0abd0:	38 c1 00 14 	addi    r6,r1,20                               
ffc0abd4:	4b ff f7 a9 	bl      ffc0a37c <_POSIX_Name_to_id>           
   *  and we can just return a pointer to the id.  Otherwise we may   
   *  need to check to see if this is a "semaphore does not exist"    
   *  or some other miscellaneous error on the name.                  
   */                                                                 
                                                                      
  if ( status ) {                                                     
ffc0abd8:	7c 7c 1b 79 	mr.     r28,r3                                 
ffc0abdc:	41 82 00 4c 	beq-    ffc0ac28 <sem_open+0xc4>               
    /*                                                                
     * Unless provided a valid name that did not already exist        
     * and we are willing to create then it is an error.              
     */                                                               
                                                                      
    if ( !( status == ENOENT && (oflag & O_CREAT) ) ) {               
ffc0abe0:	2f 9c 00 02 	cmpwi   cr7,r28,2                              
ffc0abe4:	40 9e 00 08 	bne-    cr7,ffc0abec <sem_open+0x88>           
ffc0abe8:	40 92 00 c8 	bne-    cr4,ffc0acb0 <sem_open+0x14c>          
      _Thread_Enable_dispatch();                                      
ffc0abec:	48 00 43 a1 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
      rtems_set_errno_and_return_minus_one_cast( status, sem_t * );   
ffc0abf0:	48 00 ac 8d 	bl      ffc1587c <__errno>                     
    the_semaphore->Semaphore_id = the_semaphore->Object.id;           
    return &the_semaphore->Semaphore_id;                              
  #else                                                               
    return (sem_t *)&the_semaphore->Object.id;                        
  #endif                                                              
}                                                                     
ffc0abf4:	80 01 00 4c 	lwz     r0,76(r1)                              
ffc0abf8:	81 81 00 30 	lwz     r12,48(r1)                             
ffc0abfc:	7c 08 03 a6 	mtlr    r0                                     
     * and we are willing to create then it is an error.              
     */                                                               
                                                                      
    if ( !( status == ENOENT && (oflag & O_CREAT) ) ) {               
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one_cast( status, sem_t * );   
ffc0ac00:	93 83 00 00 	stw     r28,0(r3)                              
    the_semaphore->Semaphore_id = the_semaphore->Object.id;           
    return &the_semaphore->Semaphore_id;                              
  #else                                                               
    return (sem_t *)&the_semaphore->Object.id;                        
  #endif                                                              
}                                                                     
ffc0ac04:	7d 80 81 20 	mtcrf   8,r12                                  
     * and we are willing to create then it is an error.              
     */                                                               
                                                                      
    if ( !( status == ENOENT && (oflag & O_CREAT) ) ) {               
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one_cast( status, sem_t * );   
ffc0ac08:	38 60 ff ff 	li      r3,-1                                  
    the_semaphore->Semaphore_id = the_semaphore->Object.id;           
    return &the_semaphore->Semaphore_id;                              
  #else                                                               
    return (sem_t *)&the_semaphore->Object.id;                        
  #endif                                                              
}                                                                     
ffc0ac0c:	83 61 00 34 	lwz     r27,52(r1)                             
ffc0ac10:	83 81 00 38 	lwz     r28,56(r1)                             
ffc0ac14:	83 a1 00 3c 	lwz     r29,60(r1)                             
ffc0ac18:	83 c1 00 40 	lwz     r30,64(r1)                             
ffc0ac1c:	83 e1 00 44 	lwz     r31,68(r1)                             
ffc0ac20:	38 21 00 48 	addi    r1,r1,72                               
ffc0ac24:	4e 80 00 20 	blr                                            
                                                                      
    /*                                                                
     * Check for existence with creation.                             
     */                                                               
                                                                      
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
ffc0ac28:	73 ff 0a 00 	andi.   r31,r31,2560                           
ffc0ac2c:	2f 9f 0a 00 	cmpwi   cr7,r31,2560                           
ffc0ac30:	41 9e 00 b0 	beq-    cr7,ffc0ace0 <sem_open+0x17c>          
RTEMS_INLINE_ROUTINE POSIX_Semaphore_Control *_POSIX_Semaphore_Get (  
  sem_t             *id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (POSIX_Semaphore_Control *)                                  
ffc0ac34:	80 81 00 20 	lwz     r4,32(r1)                              
ffc0ac38:	38 a1 00 18 	addi    r5,r1,24                               
ffc0ac3c:	7f c3 f3 78 	mr      r3,r30                                 
ffc0ac40:	48 00 31 51 	bl      ffc0dd90 <_Objects_Get>                
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * );   
    }                                                                 
                                                                      
    the_semaphore = _POSIX_Semaphore_Get( (sem_t *) &the_semaphore_id, &location );
    the_semaphore->open_count += 1;                                   
ffc0ac44:	81 23 00 18 	lwz     r9,24(r3)                              
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
      _Thread_Enable_dispatch();                                      
      rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * );   
    }                                                                 
                                                                      
    the_semaphore = _POSIX_Semaphore_Get( (sem_t *) &the_semaphore_id, &location );
ffc0ac48:	90 61 00 1c 	stw     r3,28(r1)                              
    the_semaphore->open_count += 1;                                   
ffc0ac4c:	39 29 00 01 	addi    r9,r9,1                                
ffc0ac50:	91 23 00 18 	stw     r9,24(r3)                              
    _Thread_Enable_dispatch();                                        
ffc0ac54:	48 00 43 39 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
    _Thread_Enable_dispatch();                                        
ffc0ac58:	48 00 43 35 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
return_id:                                                            
  #if defined(RTEMS_USE_16_BIT_OBJECT)                                
    the_semaphore->Semaphore_id = the_semaphore->Object.id;           
    return &the_semaphore->Semaphore_id;                              
  #else                                                               
    return (sem_t *)&the_semaphore->Object.id;                        
ffc0ac5c:	80 61 00 1c 	lwz     r3,28(r1)                              
ffc0ac60:	38 63 00 08 	addi    r3,r3,8                                
  #endif                                                              
}                                                                     
ffc0ac64:	80 01 00 4c 	lwz     r0,76(r1)                              
ffc0ac68:	81 81 00 30 	lwz     r12,48(r1)                             
ffc0ac6c:	7c 08 03 a6 	mtlr    r0                                     
ffc0ac70:	83 61 00 34 	lwz     r27,52(r1)                             
ffc0ac74:	83 81 00 38 	lwz     r28,56(r1)                             
ffc0ac78:	7d 80 81 20 	mtcrf   8,r12                                  
ffc0ac7c:	83 a1 00 3c 	lwz     r29,60(r1)                             
ffc0ac80:	83 c1 00 40 	lwz     r30,64(r1)                             
ffc0ac84:	83 e1 00 44 	lwz     r31,68(r1)                             
ffc0ac88:	38 21 00 48 	addi    r1,r1,72                               
ffc0ac8c:	4e 80 00 20 	blr                                            
  size_t                     name_len;                                
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
    va_start(arg, oflag);                                             
ffc0ac90:	39 21 00 50 	addi    r9,r1,80                               
    mode = va_arg( arg, mode_t );                                     
    value = va_arg( arg, unsigned int );                              
ffc0ac94:	83 61 00 2c 	lwz     r27,44(r1)                             
  size_t                     name_len;                                
                                                                      
  _Thread_Disable_dispatch();                                         
                                                                      
  if ( oflag & O_CREAT ) {                                            
    va_start(arg, oflag);                                             
ffc0ac98:	91 21 00 0c 	stw     r9,12(r1)                              
ffc0ac9c:	39 21 00 20 	addi    r9,r1,32                               
ffc0aca0:	91 21 00 10 	stw     r9,16(r1)                              
    mode = va_arg( arg, mode_t );                                     
ffc0aca4:	39 20 00 03 	li      r9,3                                   
ffc0aca8:	99 21 00 08 	stb     r9,8(r1)                               
ffc0acac:	4b ff ff 10 	b       ffc0abbc <sem_open+0x58>               
  /*                                                                  
   *  At this point, the semaphore does not exist and everything has been
   *  checked. We should go ahead and create a semaphore.             
   */                                                                 
                                                                      
  status =_POSIX_Semaphore_Create_support(                            
ffc0acb0:	80 81 00 14 	lwz     r4,20(r1)                              
ffc0acb4:	38 a0 00 00 	li      r5,0                                   
ffc0acb8:	7f 66 db 78 	mr      r6,r27                                 
ffc0acbc:	38 e1 00 1c 	addi    r7,r1,28                               
ffc0acc0:	7f a3 eb 78 	mr      r3,r29                                 
ffc0acc4:	48 00 7b cd 	bl      ffc12890 <_POSIX_Semaphore_Create_support>
ffc0acc8:	7c 7f 1b 78 	mr      r31,r3                                 
                                                                      
  /*                                                                  
   * errno was set by Create_support, so don't set it again.          
   */                                                                 
                                                                      
  _Thread_Enable_dispatch();                                          
ffc0accc:	48 00 42 c1 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
                                                                      
  if ( status == -1 )                                                 
ffc0acd0:	2f 9f ff ff 	cmpwi   cr7,r31,-1                             
ffc0acd4:	40 9e ff 88 	bne+    cr7,ffc0ac5c <sem_open+0xf8>           <== ALWAYS TAKEN
    return SEM_FAILED;                                                
ffc0acd8:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc0acdc:	4b ff ff 88 	b       ffc0ac64 <sem_open+0x100>              <== NOT EXECUTED
    /*                                                                
     * Check for existence with creation.                             
     */                                                               
                                                                      
    if ( (oflag & (O_CREAT | O_EXCL)) == (O_CREAT | O_EXCL) ) {       
      _Thread_Enable_dispatch();                                      
ffc0ace0:	48 00 42 ad 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
      rtems_set_errno_and_return_minus_one_cast( EEXIST, sem_t * );   
ffc0ace4:	48 00 ab 99 	bl      ffc1587c <__errno>                     
ffc0ace8:	39 20 00 11 	li      r9,17                                  
ffc0acec:	91 23 00 00 	stw     r9,0(r3)                               
ffc0acf0:	38 60 ff ff 	li      r3,-1                                  
ffc0acf4:	4b ff ff 70 	b       ffc0ac64 <sem_open+0x100>              
                                                                      

ffc0cc08 <sem_timedwait>: int sem_timedwait( sem_t *sem, const struct timespec *abstime ) {
ffc0cc08:	94 21 ff e0 	stwu    r1,-32(r1)                             
ffc0cc0c:	7c 08 02 a6 	mflr    r0                                     
ffc0cc10:	93 e1 00 1c 	stw     r31,28(r1)                             
ffc0cc14:	7c 7f 1b 78 	mr      r31,r3                                 
   *                                                                  
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
ffc0cc18:	7c 83 23 78 	mr      r3,r4                                  
ffc0cc1c:	38 81 00 08 	addi    r4,r1,8                                
                                                                      
int sem_timedwait(                                                    
  sem_t                 *sem,                                         
  const struct timespec *abstime                                      
)                                                                     
{                                                                     
ffc0cc20:	90 01 00 24 	stw     r0,36(r1)                              
   *                                                                  
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
ffc0cc24:	48 00 66 39 	bl      ffc1325c <_POSIX_Absolute_timeout_to_ticks>
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
ffc0cc28:	2f 83 00 03 	cmpwi   cr7,r3,3                               
    do_wait = false;                                                  
                                                                      
  lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 
ffc0cc2c:	80 a1 00 08 	lwz     r5,8(r1)                               
ffc0cc30:	7f e3 fb 78 	mr      r3,r31                                 
   *  If the status is POSIX_ABSOLUTE_TIMEOUT_INVALID,                
   *  POSIX_ABSOLUTE_TIMEOUT_IS_IN_PAST, or POSIX_ABSOLUTE_TIMEOUT_IS_NOW,
   *  then we should not wait.                                        
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
ffc0cc34:	41 9e 00 20 	beq-    cr7,ffc0cc54 <sem_timedwait+0x4c>      <== ALWAYS TAKEN
    do_wait = false;                                                  
                                                                      
  lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 
ffc0cc38:	38 80 00 00 	li      r4,0                                   <== NOT EXECUTED
ffc0cc3c:	48 00 74 69 	bl      ffc140a4 <_POSIX_Semaphore_Wait_support><== NOT EXECUTED
         lock_status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )               
      rtems_set_errno_and_return_minus_one( ETIMEDOUT );              
  }                                                                   
                                                                      
  return lock_status;                                                 
}                                                                     
ffc0cc40:	80 01 00 24 	lwz     r0,36(r1)                              <== NOT EXECUTED
ffc0cc44:	83 e1 00 1c 	lwz     r31,28(r1)                             <== NOT EXECUTED
ffc0cc48:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0cc4c:	38 21 00 20 	addi    r1,r1,32                               <== NOT EXECUTED
ffc0cc50:	4e 80 00 20 	blr                                            <== NOT EXECUTED
   */                                                                 
  status = _POSIX_Absolute_timeout_to_ticks( abstime, &ticks );       
  if ( status != POSIX_ABSOLUTE_TIMEOUT_IS_IN_FUTURE )                
    do_wait = false;                                                  
                                                                      
  lock_status = _POSIX_Semaphore_Wait_support( sem, do_wait, ticks ); 
ffc0cc54:	38 80 00 01 	li      r4,1                                   
ffc0cc58:	48 00 74 4d 	bl      ffc140a4 <_POSIX_Semaphore_Wait_support>
         lock_status == POSIX_ABSOLUTE_TIMEOUT_IS_NOW )               
      rtems_set_errno_and_return_minus_one( ETIMEDOUT );              
  }                                                                   
                                                                      
  return lock_status;                                                 
}                                                                     
ffc0cc5c:	80 01 00 24 	lwz     r0,36(r1)                              
ffc0cc60:	83 e1 00 1c 	lwz     r31,28(r1)                             
ffc0cc64:	7c 08 03 a6 	mtlr    r0                                     
ffc0cc68:	38 21 00 20 	addi    r1,r1,32                               
ffc0cc6c:	4e 80 00 20 	blr                                            
                                                                      

ffc09e44 <sigaction>: struct sigaction *oact ) { ISR_Level level; if ( oact )
ffc09e44:	2c 05 00 00 	cmpwi   r5,0                                   
int sigaction(                                                        
  int                     sig,                                        
  const struct sigaction *act,                                        
  struct sigaction       *oact                                        
)                                                                     
{                                                                     
ffc09e48:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc09e4c:	7c 08 02 a6 	mflr    r0                                     
ffc09e50:	93 c1 00 10 	stw     r30,16(r1)                             
ffc09e54:	7c 9e 23 78 	mr      r30,r4                                 
ffc09e58:	93 e1 00 14 	stw     r31,20(r1)                             
ffc09e5c:	7c 7f 1b 78 	mr      r31,r3                                 
ffc09e60:	90 01 00 1c 	stw     r0,28(r1)                              
ffc09e64:	93 a1 00 0c 	stw     r29,12(r1)                             
  ISR_Level     level;                                                
                                                                      
  if ( oact )                                                         
ffc09e68:	41 82 00 2c 	beq-    ffc09e94 <sigaction+0x50>              
    *oact = _POSIX_signals_Vectors[ sig ];                            
ffc09e6c:	1d 03 00 0c 	mulli   r8,r3,12                               
ffc09e70:	3c e0 00 00 	lis     r7,0                                   
ffc09e74:	38 e7 32 60 	addi    r7,r7,12896                            
ffc09e78:	7d 47 42 14 	add     r10,r7,r8                              
ffc09e7c:	7c e7 40 2e 	lwzx    r7,r7,r8                               
ffc09e80:	81 0a 00 04 	lwz     r8,4(r10)                              
ffc09e84:	81 4a 00 08 	lwz     r10,8(r10)                             
ffc09e88:	90 e5 00 00 	stw     r7,0(r5)                               
ffc09e8c:	91 05 00 04 	stw     r8,4(r5)                               
ffc09e90:	91 45 00 08 	stw     r10,8(r5)                              
                                                                      
  if ( !sig )                                                         
ffc09e94:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc09e98:	41 9e 00 d0 	beq-    cr7,ffc09f68 <sigaction+0x124>         
                                                                      
static inline bool is_valid_signo(                                    
  int signo                                                           
)                                                                     
{                                                                     
  return ((signo) >= 1 && (signo) <= 32 );                            
ffc09e9c:	39 3f ff ff 	addi    r9,r31,-1                              
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !is_valid_signo(sig) )                                         
ffc09ea0:	2b 89 00 1f 	cmplwi  cr7,r9,31                              
ffc09ea4:	41 9d 00 c4 	bgt-    cr7,ffc09f68 <sigaction+0x124>         
   *                                                                  
   *  NOTE: Solaris documentation claims to "silently enforce" this which
   *        contradicts the POSIX specification.                      
   */                                                                 
                                                                      
  if ( sig == SIGKILL )                                               
ffc09ea8:	2f 9f 00 09 	cmpwi   cr7,r31,9                              
ffc09eac:	41 9e 00 bc 	beq-    cr7,ffc09f68 <sigaction+0x124>         
  /*                                                                  
   *  Evaluate the new action structure and set the global signal vector
   *  appropriately.                                                  
   */                                                                 
                                                                      
  if ( act ) {                                                        
ffc09eb0:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc09eb4:	41 9e 00 ac 	beq-    cr7,ffc09f60 <sigaction+0x11c>         <== NEVER TAKEN
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc09eb8:	7f a0 00 a6 	mfmsr   r29                                    
ffc09ebc:	7d 30 42 a6 	mfsprg  r9,0                                   
ffc09ec0:	7f a9 48 78 	andc    r9,r29,r9                              
ffc09ec4:	7d 20 01 24 	mtmsr   r9                                     
     *  Unless the user is installing the default signal actions, then
     *  we can just copy the provided sigaction structure into the vectors.
     */                                                               
                                                                      
    _ISR_Disable( level );                                            
      if ( act->sa_handler == SIG_DFL ) {                             
ffc09ec8:	81 3e 00 08 	lwz     r9,8(r30)                              
ffc09ecc:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09ed0:	41 9e 00 58 	beq-    cr7,ffc09f28 <sigaction+0xe4>          
        _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ];
      } else {                                                        
         _POSIX_signals_Clear_process_signals( sig );                 
ffc09ed4:	7f e3 fb 78 	mr      r3,r31                                 
ffc09ed8:	48 00 6c b5 	bl      ffc10b8c <_POSIX_signals_Clear_process_signals>
         _POSIX_signals_Vectors[ sig ] = *act;                        
ffc09edc:	1f ff 00 0c 	mulli   r31,r31,12                             
ffc09ee0:	80 de 00 00 	lwz     r6,0(r30)                              
ffc09ee4:	3d 40 00 00 	lis     r10,0                                  
ffc09ee8:	80 fe 00 04 	lwz     r7,4(r30)                              
ffc09eec:	81 1e 00 08 	lwz     r8,8(r30)                              
ffc09ef0:	39 4a 32 60 	addi    r10,r10,12896                          
ffc09ef4:	7d 2a fa 14 	add     r9,r10,r31                             
ffc09ef8:	7c ca f9 2e 	stwx    r6,r10,r31                             
ffc09efc:	90 e9 00 04 	stw     r7,4(r9)                               
ffc09f00:	91 09 00 08 	stw     r8,8(r9)                               
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc09f04:	7f a0 01 24 	mtmsr   r29                                    
   *      now (signals not posted when SIG_IGN).                      
   *    + If we are now ignoring a signal that was previously pending,
   *      we clear the pending signal indicator.                      
   */                                                                 
                                                                      
  return 0;                                                           
ffc09f08:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc09f0c:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc09f10:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc09f14:	7c 08 03 a6 	mtlr    r0                                     
ffc09f18:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc09f1c:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc09f20:	38 21 00 18 	addi    r1,r1,24                               
ffc09f24:	4e 80 00 20 	blr                                            
     *  we can just copy the provided sigaction structure into the vectors.
     */                                                               
                                                                      
    _ISR_Disable( level );                                            
      if ( act->sa_handler == SIG_DFL ) {                             
        _POSIX_signals_Vectors[ sig ] = _POSIX_signals_Default_vectors[ sig ];
ffc09f28:	1f ff 00 0c 	mulli   r31,r31,12                             
ffc09f2c:	3d 00 ff c2 	lis     r8,-62                                 
ffc09f30:	39 08 d9 4c 	addi    r8,r8,-9908                            
ffc09f34:	7d 28 fa 14 	add     r9,r8,r31                              
ffc09f38:	7d 08 f8 2e 	lwzx    r8,r8,r31                              
ffc09f3c:	3d 40 00 00 	lis     r10,0                                  
ffc09f40:	80 c9 00 04 	lwz     r6,4(r9)                               
ffc09f44:	39 4a 32 60 	addi    r10,r10,12896                          
ffc09f48:	80 e9 00 08 	lwz     r7,8(r9)                               
ffc09f4c:	7d 2a fa 14 	add     r9,r10,r31                             
ffc09f50:	7d 0a f9 2e 	stwx    r8,r10,r31                             
ffc09f54:	90 c9 00 04 	stw     r6,4(r9)                               
ffc09f58:	90 e9 00 08 	stw     r7,8(r9)                               
ffc09f5c:	4b ff ff a8 	b       ffc09f04 <sigaction+0xc0>              
   *      now (signals not posted when SIG_IGN).                      
   *    + If we are now ignoring a signal that was previously pending,
   *      we clear the pending signal indicator.                      
   */                                                                 
                                                                      
  return 0;                                                           
ffc09f60:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
ffc09f64:	4b ff ff a8 	b       ffc09f0c <sigaction+0xc8>              <== NOT EXECUTED
   *  NOTE: Solaris documentation claims to "silently enforce" this which
   *        contradicts the POSIX specification.                      
   */                                                                 
                                                                      
  if ( sig == SIGKILL )                                               
    rtems_set_errno_and_return_minus_one( EINVAL );                   
ffc09f68:	48 00 a0 45 	bl      ffc13fac <__errno>                     
ffc09f6c:	39 20 00 16 	li      r9,22                                  
ffc09f70:	91 23 00 00 	stw     r9,0(r3)                               
ffc09f74:	38 60 ff ff 	li      r3,-1                                  
ffc09f78:	4b ff ff 94 	b       ffc09f0c <sigaction+0xc8>              
                                                                      

ffc0a454 <sigtimedwait>: int sigtimedwait( const sigset_t *set, siginfo_t *info, const struct timespec *timeout ) {
ffc0a454:	94 21 ff d0 	stwu    r1,-48(r1)                             
ffc0a458:	7c 08 02 a6 	mflr    r0                                     
ffc0a45c:	93 81 00 20 	stw     r28,32(r1)                             
  ISR_Level          level;                                           
                                                                      
  /*                                                                  
   *  Error check parameters before disabling interrupts.             
   */                                                                 
  if ( !set )                                                         
ffc0a460:	7c 7c 1b 79 	mr.     r28,r3                                 
int sigtimedwait(                                                     
  const sigset_t         *set,                                        
  siginfo_t              *info,                                       
  const struct timespec  *timeout                                     
)                                                                     
{                                                                     
ffc0a464:	90 01 00 34 	stw     r0,52(r1)                              
ffc0a468:	93 41 00 18 	stw     r26,24(r1)                             
ffc0a46c:	93 61 00 1c 	stw     r27,28(r1)                             
ffc0a470:	93 a1 00 24 	stw     r29,36(r1)                             
ffc0a474:	93 c1 00 28 	stw     r30,40(r1)                             
ffc0a478:	93 e1 00 2c 	stw     r31,44(r1)                             
  ISR_Level          level;                                           
                                                                      
  /*                                                                  
   *  Error check parameters before disabling interrupts.             
   */                                                                 
  if ( !set )                                                         
ffc0a47c:	41 82 02 50 	beq-    ffc0a6cc <sigtimedwait+0x278>          
  /*  NOTE: This is very specifically a RELATIVE not ABSOLUTE time    
   *        in the Open Group specification.                          
   */                                                                 
                                                                      
  interval = 0;                                                       
  if ( timeout ) {                                                    
ffc0a480:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc0a484:	7c 9f 23 78 	mr      r31,r4                                 
ffc0a488:	7c be 2b 78 	mr      r30,r5                                 
ffc0a48c:	41 9e 01 9c 	beq-    cr7,ffc0a628 <sigtimedwait+0x1d4>      
                                                                      
    if ( !_Timespec_Is_valid( timeout ) )                             
ffc0a490:	7c a3 2b 78 	mr      r3,r5                                  
ffc0a494:	48 00 48 21 	bl      ffc0ecb4 <_Timespec_Is_valid>          
ffc0a498:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0a49c:	41 9e 02 30 	beq-    cr7,ffc0a6cc <sigtimedwait+0x278>      
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    interval = _Timespec_To_ticks( timeout );                         
ffc0a4a0:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a4a4:	48 00 48 51 	bl      ffc0ecf4 <_Timespec_To_ticks>          
                                                                      
    if ( !interval )                                                  
ffc0a4a8:	7c 64 1b 79 	mr.     r4,r3                                  
ffc0a4ac:	41 82 02 20 	beq-    ffc0a6cc <sigtimedwait+0x278>          <== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Initialize local variables.                                     
   */                                                                 
                                                                      
  the_info = ( info ) ? info : &signal_information;                   
ffc0a4b0:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0a4b4:	41 9e 01 80 	beq-    cr7,ffc0a634 <sigtimedwait+0x1e0>      <== NEVER TAKEN
                                                                      
  the_thread = _Thread_Executing;                                     
ffc0a4b8:	3f 60 00 00 	lis     r27,0                                  
ffc0a4bc:	3b 7b 31 e0 	addi    r27,r27,12768                          
ffc0a4c0:	81 3b 00 10 	lwz     r9,16(r27)                             
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
ffc0a4c4:	83 a9 01 50 	lwz     r29,336(r9)                            
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0a4c8:	7f 40 00 a6 	mfmsr   r26                                    
ffc0a4cc:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc0a4d0:	7f 4a 50 78 	andc    r10,r26,r10                            
ffc0a4d4:	7d 40 01 24 	mtmsr   r10                                    
   */                                                                 
                                                                      
  /* API signals pending? */                                          
                                                                      
  _ISR_Disable( level );                                              
  if ( *set & api->signals_pending ) {                                
ffc0a4d8:	81 5c 00 00 	lwz     r10,0(r28)                             
ffc0a4dc:	80 7d 00 d4 	lwz     r3,212(r29)                            
ffc0a4e0:	7d 48 18 39 	and.    r8,r10,r3                              
ffc0a4e4:	40 82 01 84 	bne-    ffc0a668 <sigtimedwait+0x214>          
    return the_info->si_signo;                                        
  }                                                                   
                                                                      
  /* Process pending signals? */                                      
                                                                      
  if ( *set & _POSIX_signals_Pending ) {                              
ffc0a4e8:	3d 00 00 00 	lis     r8,0                                   
ffc0a4ec:	80 68 29 04 	lwz     r3,10500(r8)                           
ffc0a4f0:	7d 48 18 39 	and.    r8,r10,r3                              
ffc0a4f4:	40 82 00 d0 	bne-    ffc0a5c4 <sigtimedwait+0x170>          
   *                                                                  
   * 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;                  
ffc0a4f8:	3d 40 00 00 	lis     r10,0                                  
ffc0a4fc:	81 0a 28 d4 	lwz     r8,10452(r10)                          
    the_info->si_code = SI_USER;                                      
    the_info->si_value.sival_int = 0;                                 
    return signo;                                                     
  }                                                                   
                                                                      
  the_info->si_signo = -1;                                            
ffc0a500:	38 e0 ff ff 	li      r7,-1                                  
ffc0a504:	90 ff 00 00 	stw     r7,0(r31)                              
                                                                      
    ++level;                                                          
ffc0a508:	39 08 00 01 	addi    r8,r8,1                                
    _Thread_Dispatch_disable_level = level;                           
ffc0a50c:	91 0a 28 d4 	stw     r8,10452(r10)                          
                                                                      
  _Thread_Disable_dispatch();                                         
    the_thread->Wait.queue           = &_POSIX_signals_Wait_queue;    
    the_thread->Wait.return_code     = EINTR;                         
ffc0a510:	39 40 00 04 	li      r10,4                                  
ffc0a514:	91 49 00 34 	stw     r10,52(r9)                             
  }                                                                   
                                                                      
  the_info->si_signo = -1;                                            
                                                                      
  _Thread_Disable_dispatch();                                         
    the_thread->Wait.queue           = &_POSIX_signals_Wait_queue;    
ffc0a518:	3d 40 00 00 	lis     r10,0                                  
ffc0a51c:	39 4a 33 ec 	addi    r10,r10,13292                          
    the_thread->Wait.return_code     = EINTR;                         
    the_thread->Wait.option          = *set;                          
ffc0a520:	81 1c 00 00 	lwz     r8,0(r28)                              
    the_thread->Wait.return_argument = the_info;                      
ffc0a524:	93 e9 00 28 	stw     r31,40(r9)                             
  the_info->si_signo = -1;                                            
                                                                      
  _Thread_Disable_dispatch();                                         
    the_thread->Wait.queue           = &_POSIX_signals_Wait_queue;    
    the_thread->Wait.return_code     = EINTR;                         
    the_thread->Wait.option          = *set;                          
ffc0a528:	91 09 00 30 	stw     r8,48(r9)                              
  }                                                                   
                                                                      
  the_info->si_signo = -1;                                            
                                                                      
  _Thread_Disable_dispatch();                                         
    the_thread->Wait.queue           = &_POSIX_signals_Wait_queue;    
ffc0a52c:	91 49 00 44 	stw     r10,68(r9)                             
                                                                      
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;
ffc0a530:	39 20 00 01 	li      r9,1                                   
ffc0a534:	91 2a 00 30 	stw     r9,48(r10)                             
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0a538:	7f 40 01 24 	mtmsr   r26                                    
    the_thread->Wait.return_code     = EINTR;                         
    the_thread->Wait.option          = *set;                          
    the_thread->Wait.return_argument = the_info;                      
    _Thread_queue_Enter_critical_section( &_POSIX_signals_Wait_queue );
    _ISR_Enable( level );                                             
    _Thread_queue_Enqueue( &_POSIX_signals_Wait_queue, interval );    
ffc0a53c:	3c a0 ff c1 	lis     r5,-63                                 
ffc0a540:	3c 60 00 00 	lis     r3,0                                   
ffc0a544:	38 a5 e9 f0 	addi    r5,r5,-5648                            
ffc0a548:	38 63 33 ec 	addi    r3,r3,13292                            
ffc0a54c:	48 00 40 1d 	bl      ffc0e568 <_Thread_queue_Enqueue_with_handler>
  _Thread_Enable_dispatch();                                          
ffc0a550:	48 00 3a 11 	bl      ffc0df60 <_Thread_Enable_dispatch>     
  /*                                                                  
   * When the thread is set free by a signal, it is need to eliminate 
   * the signal.                                                      
   */                                                                 
                                                                      
  _POSIX_signals_Clear_signals( api, the_info->si_signo, the_info, false, false );
ffc0a554:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc0a558:	7f a3 eb 78 	mr      r3,r29                                 
ffc0a55c:	7f e5 fb 78 	mr      r5,r31                                 
ffc0a560:	38 c0 00 00 	li      r6,0                                   
ffc0a564:	38 e0 00 00 	li      r7,0                                   
ffc0a568:	48 00 6f e1 	bl      ffc11548 <_POSIX_signals_Clear_signals>
  /* Set errno only if return code is not EINTR or                    
   * if EINTR was caused by a signal being caught, which              
   * was not in our set.                                              
   */                                                                 
                                                                      
  if ( (_Thread_Executing->Wait.return_code != EINTR)                 
ffc0a56c:	81 3b 00 10 	lwz     r9,16(r27)                             
ffc0a570:	81 29 00 34 	lwz     r9,52(r9)                              
ffc0a574:	2f 89 00 04 	cmpwi   cr7,r9,4                               
ffc0a578:	40 9e 01 68 	bne-    cr7,ffc0a6e0 <sigtimedwait+0x28c>      
       || !(*set & signo_to_mask( the_info->si_signo )) ) {           
ffc0a57c:	83 df 00 00 	lwz     r30,0(r31)                             
ffc0a580:	39 00 00 01 	li      r8,1                                   
ffc0a584:	81 3c 00 00 	lwz     r9,0(r28)                              
ffc0a588:	39 5e ff ff 	addi    r10,r30,-1                             
ffc0a58c:	7d 0a 50 30 	slw     r10,r8,r10                             
ffc0a590:	7d 48 48 39 	and.    r8,r10,r9                              
ffc0a594:	41 82 01 4c 	beq-    ffc0a6e0 <sigtimedwait+0x28c>          
    errno = _Thread_Executing->Wait.return_code;                      
    return -1;                                                        
  }                                                                   
                                                                      
  return the_info->si_signo;                                          
}                                                                     
ffc0a598:	80 01 00 34 	lwz     r0,52(r1)                              
ffc0a59c:	7f c3 f3 78 	mr      r3,r30                                 
ffc0a5a0:	83 41 00 18 	lwz     r26,24(r1)                             
ffc0a5a4:	7c 08 03 a6 	mtlr    r0                                     
ffc0a5a8:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc0a5ac:	83 81 00 20 	lwz     r28,32(r1)                             
ffc0a5b0:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc0a5b4:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc0a5b8:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc0a5bc:	38 21 00 30 	addi    r1,r1,48                               
ffc0a5c0:	4e 80 00 20 	blr                                            
  }                                                                   
                                                                      
  /* Process pending signals? */                                      
                                                                      
  if ( *set & _POSIX_signals_Pending ) {                              
    signo = _POSIX_signals_Get_lowest( _POSIX_signals_Pending );      
ffc0a5c4:	4b ff fe 35 	bl      ffc0a3f8 <_POSIX_signals_Get_lowest>   
    _POSIX_signals_Clear_signals( api, signo, the_info, true, false );
ffc0a5c8:	7f e5 fb 78 	mr      r5,r31                                 
  }                                                                   
                                                                      
  /* Process pending signals? */                                      
                                                                      
  if ( *set & _POSIX_signals_Pending ) {                              
    signo = _POSIX_signals_Get_lowest( _POSIX_signals_Pending );      
ffc0a5cc:	7c 7e 1b 78 	mr      r30,r3                                 
    _POSIX_signals_Clear_signals( api, signo, the_info, true, false );
ffc0a5d0:	7f c4 f3 78 	mr      r4,r30                                 
ffc0a5d4:	7f a3 eb 78 	mr      r3,r29                                 
ffc0a5d8:	38 c0 00 01 	li      r6,1                                   
ffc0a5dc:	38 e0 00 00 	li      r7,0                                   
ffc0a5e0:	48 00 6f 69 	bl      ffc11548 <_POSIX_signals_Clear_signals>
ffc0a5e4:	7f 40 01 24 	mtmsr   r26                                    
    _ISR_Enable( level );                                             
                                                                      
    the_info->si_signo = signo;                                       
    the_info->si_code = SI_USER;                                      
ffc0a5e8:	39 20 00 01 	li      r9,1                                   
  if ( *set & _POSIX_signals_Pending ) {                              
    signo = _POSIX_signals_Get_lowest( _POSIX_signals_Pending );      
    _POSIX_signals_Clear_signals( api, signo, the_info, true, false );
    _ISR_Enable( level );                                             
                                                                      
    the_info->si_signo = signo;                                       
ffc0a5ec:	93 df 00 00 	stw     r30,0(r31)                             
    errno = _Thread_Executing->Wait.return_code;                      
    return -1;                                                        
  }                                                                   
                                                                      
  return the_info->si_signo;                                          
}                                                                     
ffc0a5f0:	7f c3 f3 78 	mr      r3,r30                                 
    signo = _POSIX_signals_Get_lowest( _POSIX_signals_Pending );      
    _POSIX_signals_Clear_signals( api, signo, the_info, true, false );
    _ISR_Enable( level );                                             
                                                                      
    the_info->si_signo = signo;                                       
    the_info->si_code = SI_USER;                                      
ffc0a5f4:	91 3f 00 04 	stw     r9,4(r31)                              
    the_info->si_value.sival_int = 0;                                 
ffc0a5f8:	39 20 00 00 	li      r9,0                                   
ffc0a5fc:	91 3f 00 08 	stw     r9,8(r31)                              
    errno = _Thread_Executing->Wait.return_code;                      
    return -1;                                                        
  }                                                                   
                                                                      
  return the_info->si_signo;                                          
}                                                                     
ffc0a600:	80 01 00 34 	lwz     r0,52(r1)                              
ffc0a604:	83 41 00 18 	lwz     r26,24(r1)                             
ffc0a608:	7c 08 03 a6 	mtlr    r0                                     
ffc0a60c:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc0a610:	83 81 00 20 	lwz     r28,32(r1)                             
ffc0a614:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc0a618:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc0a61c:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc0a620:	38 21 00 30 	addi    r1,r1,48                               
ffc0a624:	4e 80 00 20 	blr                                            
                                                                      
  /*                                                                  
   *  Initialize local variables.                                     
   */                                                                 
                                                                      
  the_info = ( info ) ? info : &signal_information;                   
ffc0a628:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
                                                                      
  /*  NOTE: This is very specifically a RELATIVE not ABSOLUTE time    
   *        in the Open Group specification.                          
   */                                                                 
                                                                      
  interval = 0;                                                       
ffc0a62c:	38 80 00 00 	li      r4,0                                   
                                                                      
  /*                                                                  
   *  Initialize local variables.                                     
   */                                                                 
                                                                      
  the_info = ( info ) ? info : &signal_information;                   
ffc0a630:	40 9e fe 88 	bne+    cr7,ffc0a4b8 <sigtimedwait+0x64>       
                                                                      
  the_thread = _Thread_Executing;                                     
ffc0a634:	3f 60 00 00 	lis     r27,0                                  
ffc0a638:	3b 7b 31 e0 	addi    r27,r27,12768                          
ffc0a63c:	81 3b 00 10 	lwz     r9,16(r27)                             
                                                                      
  /*                                                                  
   *  Initialize local variables.                                     
   */                                                                 
                                                                      
  the_info = ( info ) ? info : &signal_information;                   
ffc0a640:	3b e1 00 08 	addi    r31,r1,8                               
                                                                      
  the_thread = _Thread_Executing;                                     
                                                                      
  api = the_thread->API_Extensions[ THREAD_API_POSIX ];               
ffc0a644:	83 a9 01 50 	lwz     r29,336(r9)                            
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc0a648:	7f 40 00 a6 	mfmsr   r26                                    
ffc0a64c:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc0a650:	7f 4a 50 78 	andc    r10,r26,r10                            
ffc0a654:	7d 40 01 24 	mtmsr   r10                                    
   */                                                                 
                                                                      
  /* API signals pending? */                                          
                                                                      
  _ISR_Disable( level );                                              
  if ( *set & api->signals_pending ) {                                
ffc0a658:	81 5c 00 00 	lwz     r10,0(r28)                             
ffc0a65c:	80 7d 00 d4 	lwz     r3,212(r29)                            
ffc0a660:	7d 48 18 39 	and.    r8,r10,r3                              
ffc0a664:	41 82 fe 84 	beq+    ffc0a4e8 <sigtimedwait+0x94>           
    /* XXX real info later */                                         
    the_info->si_signo = _POSIX_signals_Get_lowest( api->signals_pending );
ffc0a668:	4b ff fd 91 	bl      ffc0a3f8 <_POSIX_signals_Get_lowest>   
    _POSIX_signals_Clear_signals(                                     
ffc0a66c:	7f e5 fb 78 	mr      r5,r31                                 
  /* API signals pending? */                                          
                                                                      
  _ISR_Disable( level );                                              
  if ( *set & api->signals_pending ) {                                
    /* XXX real info later */                                         
    the_info->si_signo = _POSIX_signals_Get_lowest( api->signals_pending );
ffc0a670:	90 7f 00 00 	stw     r3,0(r31)                              
ffc0a674:	7c 64 1b 78 	mr      r4,r3                                  
    _POSIX_signals_Clear_signals(                                     
ffc0a678:	38 c0 00 00 	li      r6,0                                   
ffc0a67c:	7f a3 eb 78 	mr      r3,r29                                 
ffc0a680:	38 e0 00 00 	li      r7,0                                   
ffc0a684:	48 00 6e c5 	bl      ffc11548 <_POSIX_signals_Clear_signals>
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc0a688:	7f 40 01 24 	mtmsr   r26                                    
      false,                                                          
      false                                                           
    );                                                                
    _ISR_Enable( level );                                             
                                                                      
    the_info->si_code = SI_USER;                                      
ffc0a68c:	39 20 00 01 	li      r9,1                                   
    the_info->si_value.sival_int = 0;                                 
    return the_info->si_signo;                                        
ffc0a690:	83 df 00 00 	lwz     r30,0(r31)                             
      false,                                                          
      false                                                           
    );                                                                
    _ISR_Enable( level );                                             
                                                                      
    the_info->si_code = SI_USER;                                      
ffc0a694:	91 3f 00 04 	stw     r9,4(r31)                              
    the_info->si_value.sival_int = 0;                                 
ffc0a698:	39 20 00 00 	li      r9,0                                   
    errno = _Thread_Executing->Wait.return_code;                      
    return -1;                                                        
  }                                                                   
                                                                      
  return the_info->si_signo;                                          
}                                                                     
ffc0a69c:	7f c3 f3 78 	mr      r3,r30                                 
      false                                                           
    );                                                                
    _ISR_Enable( level );                                             
                                                                      
    the_info->si_code = SI_USER;                                      
    the_info->si_value.sival_int = 0;                                 
ffc0a6a0:	91 3f 00 08 	stw     r9,8(r31)                              
    errno = _Thread_Executing->Wait.return_code;                      
    return -1;                                                        
  }                                                                   
                                                                      
  return the_info->si_signo;                                          
}                                                                     
ffc0a6a4:	80 01 00 34 	lwz     r0,52(r1)                              
ffc0a6a8:	83 41 00 18 	lwz     r26,24(r1)                             
ffc0a6ac:	7c 08 03 a6 	mtlr    r0                                     
ffc0a6b0:	83 61 00 1c 	lwz     r27,28(r1)                             
ffc0a6b4:	83 81 00 20 	lwz     r28,32(r1)                             
ffc0a6b8:	83 a1 00 24 	lwz     r29,36(r1)                             
ffc0a6bc:	83 c1 00 28 	lwz     r30,40(r1)                             
ffc0a6c0:	83 e1 00 2c 	lwz     r31,44(r1)                             
ffc0a6c4:	38 21 00 30 	addi    r1,r1,48                               
ffc0a6c8:	4e 80 00 20 	blr                                            
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    interval = _Timespec_To_ticks( timeout );                         
                                                                      
    if ( !interval )                                                  
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc0a6cc:	48 00 a1 31 	bl      ffc147fc <__errno>                     
ffc0a6d0:	39 20 00 16 	li      r9,22                                  
ffc0a6d4:	91 23 00 00 	stw     r9,0(r3)                               
ffc0a6d8:	3b c0 ff ff 	li      r30,-1                                 
ffc0a6dc:	4b ff fe bc 	b       ffc0a598 <sigtimedwait+0x144>          
   * was not in our set.                                              
   */                                                                 
                                                                      
  if ( (_Thread_Executing->Wait.return_code != EINTR)                 
       || !(*set & signo_to_mask( the_info->si_signo )) ) {           
    errno = _Thread_Executing->Wait.return_code;                      
ffc0a6e0:	48 00 a1 1d 	bl      ffc147fc <__errno>                     
ffc0a6e4:	81 3b 00 10 	lwz     r9,16(r27)                             
    return -1;                                                        
ffc0a6e8:	3b c0 ff ff 	li      r30,-1                                 
   * was not in our set.                                              
   */                                                                 
                                                                      
  if ( (_Thread_Executing->Wait.return_code != EINTR)                 
       || !(*set & signo_to_mask( the_info->si_signo )) ) {           
    errno = _Thread_Executing->Wait.return_code;                      
ffc0a6ec:	81 29 00 34 	lwz     r9,52(r9)                              
ffc0a6f0:	91 23 00 00 	stw     r9,0(r3)                               
ffc0a6f4:	4b ff fe a4 	b       ffc0a598 <sigtimedwait+0x144>          
                                                                      

ffc0c694 <sigwait>: int sigwait( const sigset_t *set, int *sig ) {
ffc0c694:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc0c698:	7c 08 02 a6 	mflr    r0                                     
  int status;                                                         
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
ffc0c69c:	38 a0 00 00 	li      r5,0                                   
                                                                      
int sigwait(                                                          
  const sigset_t  *set,                                               
  int             *sig                                                
)                                                                     
{                                                                     
ffc0c6a0:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc0c6a4:	7c 9f 23 78 	mr      r31,r4                                 
  int status;                                                         
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
ffc0c6a8:	38 80 00 00 	li      r4,0                                   
                                                                      
int sigwait(                                                          
  const sigset_t  *set,                                               
  int             *sig                                                
)                                                                     
{                                                                     
ffc0c6ac:	90 01 00 14 	stw     r0,20(r1)                              
  int status;                                                         
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
ffc0c6b0:	4b ff fd 39 	bl      ffc0c3e8 <sigtimedwait>                
                                                                      
  if ( status != -1 ) {                                               
ffc0c6b4:	2f 83 ff ff 	cmpwi   cr7,r3,-1                              
ffc0c6b8:	41 9e 00 28 	beq-    cr7,ffc0c6e0 <sigwait+0x4c>            
    if ( sig )                                                        
ffc0c6bc:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc0c6c0:	41 9e 00 3c 	beq-    cr7,ffc0c6fc <sigwait+0x68>            <== NEVER TAKEN
      *sig = status;                                                  
    return 0;                                                         
  }                                                                   
                                                                      
  return errno;                                                       
}                                                                     
ffc0c6c4:	80 01 00 14 	lwz     r0,20(r1)                              
                                                                      
  status = sigtimedwait( set, NULL, NULL );                           
                                                                      
  if ( status != -1 ) {                                               
    if ( sig )                                                        
      *sig = status;                                                  
ffc0c6c8:	90 7f 00 00 	stw     r3,0(r31)                              
    return 0;                                                         
ffc0c6cc:	38 60 00 00 	li      r3,0                                   
  }                                                                   
                                                                      
  return errno;                                                       
}                                                                     
ffc0c6d0:	7c 08 03 a6 	mtlr    r0                                     
ffc0c6d4:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0c6d8:	38 21 00 10 	addi    r1,r1,16                               
ffc0c6dc:	4e 80 00 20 	blr                                            
    if ( sig )                                                        
      *sig = status;                                                  
    return 0;                                                         
  }                                                                   
                                                                      
  return errno;                                                       
ffc0c6e0:	48 00 9d 39 	bl      ffc16418 <__errno>                     
}                                                                     
ffc0c6e4:	80 01 00 14 	lwz     r0,20(r1)                              
    if ( sig )                                                        
      *sig = status;                                                  
    return 0;                                                         
  }                                                                   
                                                                      
  return errno;                                                       
ffc0c6e8:	80 63 00 00 	lwz     r3,0(r3)                               
}                                                                     
ffc0c6ec:	7c 08 03 a6 	mtlr    r0                                     
ffc0c6f0:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0c6f4:	38 21 00 10 	addi    r1,r1,16                               
ffc0c6f8:	4e 80 00 20 	blr                                            
ffc0c6fc:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
  status = sigtimedwait( set, NULL, NULL );                           
                                                                      
  if ( status != -1 ) {                                               
    if ( sig )                                                        
      *sig = status;                                                  
    return 0;                                                         
ffc0c700:	38 60 00 00 	li      r3,0                                   <== NOT EXECUTED
  }                                                                   
                                                                      
  return errno;                                                       
}                                                                     
ffc0c704:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc0c708:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc0c70c:	38 21 00 10 	addi    r1,r1,16                               <== NOT EXECUTED
ffc0c710:	4e 80 00 20 	blr                                            <== NOT EXECUTED
                                                                      

ffc082a8 <siproc>: /* * Process input character, with semaphore. */ static int siproc (unsigned char c, struct rtems_termios_tty *tty) {
ffc082a8:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc082ac:	7c 08 02 a6 	mflr    r0                                     
ffc082b0:	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)) {
ffc082b4:	81 24 00 3c 	lwz     r9,60(r4)                              
/*                                                                    
 * Process input character, with semaphore.                           
 */                                                                   
static int                                                            
siproc (unsigned char c, struct rtems_termios_tty *tty)               
{                                                                     
ffc082b8:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc082bc:	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)) {
ffc082c0:	71 2a 0e 78 	andi.   r10,r9,3704                            
/*                                                                    
 * Process input character, with semaphore.                           
 */                                                                   
static int                                                            
siproc (unsigned char c, struct rtems_termios_tty *tty)               
{                                                                     
ffc082c4:	93 c1 00 08 	stw     r30,8(r1)                              
  int i;                                                              
                                                                      
  /*                                                                  
   * Obtain output semaphore if character will be echoed              
   */                                                                 
  if (tty->termios.c_lflag & (ECHO|ECHOE|ECHOK|ECHONL|ECHOPRT|ECHOCTL|ECHOKE)) {
ffc082c8:	40 82 00 1c 	bne-    ffc082e4 <siproc+0x3c>                 <== ALWAYS TAKEN
  }                                                                   
  else {                                                              
    i = iproc (c, tty);                                               
  }                                                                   
  return i;                                                           
}                                                                     
ffc082cc:	80 01 00 14 	lwz     r0,20(r1)                              <== NOT EXECUTED
ffc082d0:	83 c1 00 08 	lwz     r30,8(r1)                              <== NOT EXECUTED
ffc082d4:	7c 08 03 a6 	mtlr    r0                                     <== NOT EXECUTED
ffc082d8:	83 e1 00 0c 	lwz     r31,12(r1)                             <== NOT EXECUTED
ffc082dc:	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);                                               
ffc082e0:	4b ff fd 68 	b       ffc08048 <iproc>                       <== NOT EXECUTED
ffc082e4:	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); 
ffc082e8:	80 64 00 18 	lwz     r3,24(r4)                              
ffc082ec:	38 a0 00 00 	li      r5,0                                   
ffc082f0:	38 80 00 00 	li      r4,0                                   
ffc082f4:	48 00 17 2d 	bl      ffc09a20 <rtems_semaphore_obtain>      
    i = iproc (c, tty);                                               
ffc082f8:	7f e4 fb 78 	mr      r4,r31                                 
ffc082fc:	7f c3 f3 78 	mr      r3,r30                                 
ffc08300:	4b ff fd 49 	bl      ffc08048 <iproc>                       
ffc08304:	7c 7e 1b 78 	mr      r30,r3                                 
    rtems_semaphore_release (tty->osem);                              
ffc08308:	80 7f 00 18 	lwz     r3,24(r31)                             
ffc0830c:	48 00 18 b5 	bl      ffc09bc0 <rtems_semaphore_release>     
  }                                                                   
  else {                                                              
    i = iproc (c, tty);                                               
  }                                                                   
  return i;                                                           
}                                                                     
ffc08310:	80 01 00 14 	lwz     r0,20(r1)                              
ffc08314:	7f c3 f3 78 	mr      r3,r30                                 
ffc08318:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc0831c:	7c 08 03 a6 	mtlr    r0                                     
ffc08320:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc08324:	38 21 00 10 	addi    r1,r1,16                               
ffc08328:	4e 80 00 20 	blr                                            
                                                                      

ffc11a54 <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 ) {
ffc11a54:	3d 40 c0 18 	lis     r10,-16360                             
                                                                      
/*                                                                    
 * ioctl handler to be passed to the block device handler             
 */                                                                   
static int sparse_disk_ioctl( rtems_disk_device *dd, uint32_t req, void *argp )
{                                                                     
ffc11a58:	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 ) {                                 
ffc11a5c:	61 4a 42 01 	ori     r10,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 )
{                                                                     
ffc11a60:	94 21 ff b0 	stwu    r1,-80(r1)                             
  rtems_status_code  sc;                                              
  rtems_sparse_disk *sd = rtems_disk_get_driver_data( dd );           
                                                                      
  if ( RTEMS_BLKIO_REQUEST == req ) {                                 
ffc11a64:	7f 84 50 00 	cmpw    cr7,r4,r10                             
                                                                      
/*                                                                    
 * ioctl handler to be passed to the block device handler             
 */                                                                   
static int sparse_disk_ioctl( rtems_disk_device *dd, uint32_t req, void *argp )
{                                                                     
ffc11a68:	7c 08 02 a6 	mflr    r0                                     
ffc11a6c:	93 a1 00 44 	stw     r29,68(r1)                             
ffc11a70:	90 01 00 54 	stw     r0,84(r1)                              
ffc11a74:	92 61 00 1c 	stw     r19,28(r1)                             
ffc11a78:	92 81 00 20 	stw     r20,32(r1)                             
ffc11a7c:	92 a1 00 24 	stw     r21,36(r1)                             
ffc11a80:	92 c1 00 28 	stw     r22,40(r1)                             
ffc11a84:	92 e1 00 2c 	stw     r23,44(r1)                             
ffc11a88:	93 01 00 30 	stw     r24,48(r1)                             
ffc11a8c:	93 21 00 34 	stw     r25,52(r1)                             
ffc11a90:	93 41 00 38 	stw     r26,56(r1)                             
ffc11a94:	93 61 00 3c 	stw     r27,60(r1)                             
ffc11a98:	93 81 00 40 	stw     r28,64(r1)                             
ffc11a9c:	93 c1 00 48 	stw     r30,72(r1)                             
ffc11aa0:	93 e1 00 4c 	stw     r31,76(r1)                             
ffc11aa4:	91 81 00 18 	stw     r12,24(r1)                             
  } else {                                                            
    sc = RTEMS_INVALID_NUMBER;                                        
  }                                                                   
                                                                      
  return sc;                                                          
}                                                                     
ffc11aa8:	83 a3 00 3c 	lwz     r29,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 ) {                                 
ffc11aac:	41 9e 00 9c 	beq-    cr7,ffc11b48 <sparse_disk_ioctl+0xf4>  
      case RTEMS_BLKDEV_REQ_WRITE:                                    
        return sparse_disk_read_write( sd, r, r->req == RTEMS_BLKDEV_REQ_READ );
      default:                                                        
        break;                                                        
    }                                                                 
  } else if ( RTEMS_BLKIO_DELETED == req ) {                          
ffc11ab0:	6c 8a 20 00 	xoris   r10,r4,8192                            
ffc11ab4:	2f 8a 42 07 	cmpwi   cr7,r10,16903                          
ffc11ab8:	41 9e 00 5c 	beq-    cr7,ffc11b14 <sparse_disk_ioctl+0xc0>  
    if ( NULL != sd->delete_handler )                                 
      ( *sd->delete_handler )( sd );                                  
                                                                      
    return 0;                                                         
  } else {                                                            
    return rtems_blkdev_ioctl( dd, req, argp );                       
ffc11abc:	48 00 3b b1 	bl      ffc1566c <rtems_blkdev_ioctl>          
ffc11ac0:	7c 7f 1b 78 	mr      r31,r3                                 
  }                                                                   
                                                                      
  errno = EINVAL;                                                     
  return -1;                                                          
}                                                                     
ffc11ac4:	80 01 00 54 	lwz     r0,84(r1)                              
ffc11ac8:	7f e3 fb 78 	mr      r3,r31                                 
ffc11acc:	81 81 00 18 	lwz     r12,24(r1)                             
ffc11ad0:	7c 08 03 a6 	mtlr    r0                                     
ffc11ad4:	82 61 00 1c 	lwz     r19,28(r1)                             
ffc11ad8:	82 81 00 20 	lwz     r20,32(r1)                             
ffc11adc:	7d 80 81 20 	mtcrf   8,r12                                  
ffc11ae0:	82 a1 00 24 	lwz     r21,36(r1)                             
ffc11ae4:	82 c1 00 28 	lwz     r22,40(r1)                             
ffc11ae8:	82 e1 00 2c 	lwz     r23,44(r1)                             
ffc11aec:	83 01 00 30 	lwz     r24,48(r1)                             
ffc11af0:	83 21 00 34 	lwz     r25,52(r1)                             
ffc11af4:	83 41 00 38 	lwz     r26,56(r1)                             
ffc11af8:	83 61 00 3c 	lwz     r27,60(r1)                             
ffc11afc:	83 81 00 40 	lwz     r28,64(r1)                             
ffc11b00:	83 a1 00 44 	lwz     r29,68(r1)                             
ffc11b04:	83 c1 00 48 	lwz     r30,72(r1)                             
ffc11b08:	83 e1 00 4c 	lwz     r31,76(r1)                             
ffc11b0c:	38 21 00 50 	addi    r1,r1,80                               
ffc11b10:	4e 80 00 20 	blr                                            
        return sparse_disk_read_write( sd, r, r->req == RTEMS_BLKDEV_REQ_READ );
      default:                                                        
        break;                                                        
    }                                                                 
  } else if ( RTEMS_BLKIO_DELETED == req ) {                          
    sc = rtems_semaphore_delete( sd->mutex );                         
ffc11b14:	80 7d 00 00 	lwz     r3,0(r29)                              
ffc11b18:	4b ff 9f c9 	bl      ffc0bae0 <rtems_semaphore_delete>      
                                                                      
    if ( RTEMS_SUCCESSFUL != sc )                                     
ffc11b1c:	2c 03 00 00 	cmpwi   r3,0                                   
ffc11b20:	40 82 02 44 	bne-    ffc11d64 <sparse_disk_ioctl+0x310>     <== NEVER TAKEN
      rtems_fatal_error_occurred( 0xdeadbeef );                       
                                                                      
    sd->mutex = RTEMS_ID_NONE;                                        
                                                                      
    if ( NULL != sd->delete_handler )                                 
ffc11b24:	81 3d 00 10 	lwz     r9,16(r29)                             
      ( *sd->delete_handler )( sd );                                  
                                                                      
    return 0;                                                         
ffc11b28:	3b e0 00 00 	li      r31,0                                  
    sc = rtems_semaphore_delete( sd->mutex );                         
                                                                      
    if ( RTEMS_SUCCESSFUL != sc )                                     
      rtems_fatal_error_occurred( 0xdeadbeef );                       
                                                                      
    sd->mutex = RTEMS_ID_NONE;                                        
ffc11b2c:	90 7d 00 00 	stw     r3,0(r29)                              
                                                                      
    if ( NULL != sd->delete_handler )                                 
ffc11b30:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc11b34:	41 be ff 90 	beq-    cr7,ffc11ac4 <sparse_disk_ioctl+0x70>  <== NEVER TAKEN
      ( *sd->delete_handler )( sd );                                  
ffc11b38:	7f a3 eb 78 	mr      r3,r29                                 
ffc11b3c:	7d 29 03 a6 	mtctr   r9                                     
ffc11b40:	4e 80 04 21 	bctrl                                          
ffc11b44:	4b ff ff 80 	b       ffc11ac4 <sparse_disk_ioctl+0x70>      
  rtems_sparse_disk *sd = rtems_disk_get_driver_data( dd );           
                                                                      
  if ( RTEMS_BLKIO_REQUEST == req ) {                                 
    rtems_blkdev_request *r = argp;                                   
                                                                      
    switch ( r->req ) {                                               
ffc11b48:	83 05 00 00 	lwz     r24,0(r5)                              
ffc11b4c:	7c b5 2b 78 	mr      r21,r5                                 
ffc11b50:	2b 98 00 01 	cmplwi  cr7,r24,1                              
ffc11b54:	41 9d 01 fc 	bgt-    cr7,ffc11d50 <sparse_disk_ioctl+0x2fc> <== 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 );
ffc11b58:	80 7d 00 00 	lwz     r3,0(r29)                              
ffc11b5c:	38 80 00 00 	li      r4,0                                   
ffc11b60:	38 a0 00 00 	li      r5,0                                   
ffc11b64:	4b ff a0 71 	bl      ffc0bbd4 <rtems_semaphore_obtain>      
ffc11b68:	3a c0 00 01 	li      r22,1                                  
ffc11b6c:	81 15 00 10 	lwz     r8,16(r21)                             
ffc11b70:	39 36 ff ff 	addi    r9,r22,-1                              
ffc11b74:	3f 20 ff c1 	lis     r25,-63                                
                                                                      
  for ( req_buffer = 0;                                               
        ( 0 <= rv ) && ( req_buffer < req->bufnum );                  
ffc11b78:	7f 89 40 40 	cmplw   cr7,r9,r8                              
    bytes_handled  = 0;                                               
    buff           = (uint8_t *) scatter_gather->buffer;              
    block          = scatter_gather->block;                           
    buff_size      = scatter_gather->length;                          
                                                                      
    while ( ( 0 <= rv ) && ( 0 < buff_size ) ) {                      
ffc11b7c:	3a e0 00 00 	li      r23,0                                  
ffc11b80:	2e 18 00 00 	cmpwi   cr4,r24,0                              
ffc11b84:	3b 39 1a 28 	addi    r25,r25,6696                           
  unsigned int            bytes_handled;                              
                                                                      
  rtems_semaphore_obtain( sparse_disk->mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
                                                                      
  for ( req_buffer = 0;                                               
        ( 0 <= rv ) && ( req_buffer < req->bufnum );                  
ffc11b88:	40 9c 00 ac 	bge-    cr7,ffc11c34 <sparse_disk_ioctl+0x1e0> <== NEVER TAKEN
        ++req_buffer ) {                                              
    scatter_gather = &req->bufs[req_buffer];                          
ffc11b8c:	56 c9 20 36 	rlwinm  r9,r22,4,0,27                          
ffc11b90:	7d 35 4a 14 	add     r9,r21,r9                              
                                                                      
    bytes_handled  = 0;                                               
    buff           = (uint8_t *) scatter_gather->buffer;              
    block          = scatter_gather->block;                           
    buff_size      = scatter_gather->length;                          
ffc11b94:	83 c9 00 0c 	lwz     r30,12(r9)                             
        ( 0 <= rv ) && ( req_buffer < req->bufnum );                  
        ++req_buffer ) {                                              
    scatter_gather = &req->bufs[req_buffer];                          
                                                                      
    bytes_handled  = 0;                                               
    buff           = (uint8_t *) scatter_gather->buffer;              
ffc11b98:	83 49 00 10 	lwz     r26,16(r9)                             
    block          = scatter_gather->block;                           
    buff_size      = scatter_gather->length;                          
                                                                      
    while ( ( 0 <= rv ) && ( 0 < buff_size ) ) {                      
ffc11b9c:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
        ++req_buffer ) {                                              
    scatter_gather = &req->bufs[req_buffer];                          
                                                                      
    bytes_handled  = 0;                                               
    buff           = (uint8_t *) scatter_gather->buffer;              
    block          = scatter_gather->block;                           
ffc11ba0:	83 89 00 08 	lwz     r28,8(r9)                              
    buff_size      = scatter_gather->length;                          
                                                                      
    while ( ( 0 <= rv ) && ( 0 < buff_size ) ) {                      
ffc11ba4:	41 9e 00 80 	beq-    cr7,ffc11c24 <sparse_disk_ioctl+0x1d0> <== NEVER TAKEN
ffc11ba8:	3b 60 00 00 	li      r27,0                                  
  const rtems_blkdev_bnum  block,                                     
  uint8_t                 *buffer,                                    
  const size_t             buffer_size )                              
{                                                                     
  rtems_sparse_disk_key *key;                                         
  rtems_sparse_disk_key  block_key = {                                
ffc11bac:	93 81 00 08 	stw     r28,8(r1)                              
    block          = scatter_gather->block;                           
    buff_size      = scatter_gather->length;                          
                                                                      
    while ( ( 0 <= rv ) && ( 0 < buff_size ) ) {                      
      if ( read )                                                     
        rv = sparse_disk_read_block( sparse_disk,                     
ffc11bb0:	7e 9a da 14 	add     r20,r26,r27                            
  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;
ffc11bb4:	81 3d 00 0c 	lwz     r9,12(r29)                             
    buff           = (uint8_t *) scatter_gather->buffer;              
    block          = scatter_gather->block;                           
    buff_size      = scatter_gather->length;                          
                                                                      
    while ( ( 0 <= rv ) && ( 0 < buff_size ) ) {                      
      if ( read )                                                     
ffc11bb8:	40 92 00 a0 	bne-    cr4,ffc11c58 <sparse_disk_ioctl+0x204> 
ffc11bbc:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
  const rtems_blkdev_bnum  block,                                     
  uint8_t                 *buffer,                                    
  const size_t             buffer_size )                              
{                                                                     
  rtems_sparse_disk_key *key;                                         
  rtems_sparse_disk_key  block_key = {                                
ffc11bc0:	93 01 00 0c 	stw     r24,12(r1)                             
ffc11bc4:	7f df f3 78 	mr      r31,r30                                
ffc11bc8:	40 9d 00 08 	ble-    cr7,ffc11bd0 <sparse_disk_ioctl+0x17c> 
ffc11bcc:	7d 3f 4b 78 	mr      r31,r9                                 
  size_t                 bytes_to_copy = sparse_disk->media_block_size;
                                                                      
  if ( buffer_size < bytes_to_copy )                                  
    bytes_to_copy = buffer_size;                                      
                                                                      
  key = bsearch(                                                      
ffc11bd0:	80 9d 00 18 	lwz     r4,24(r29)                             
ffc11bd4:	38 61 00 08 	addi    r3,r1,8                                
ffc11bd8:	80 bd 00 08 	lwz     r5,8(r29)                              
ffc11bdc:	38 c0 00 08 	li      r6,8                                   
ffc11be0:	7f 27 cb 78 	mr      r7,r25                                 
ffc11be4:	48 00 f9 e5 	bl      ffc215c8 <bsearch>                     
    sparse_disk->used_count,                                          
    sizeof( rtems_sparse_disk_key ),                                  
    sparse_disk_compare                                               
    );                                                                
                                                                      
  if ( NULL != key )                                                  
ffc11be8:	2c 03 00 00 	cmpwi   r3,0                                   
ffc11bec:	41 82 00 b4 	beq-    ffc11ca0 <sparse_disk_ioctl+0x24c>     
    memcpy( buffer, key->data, bytes_to_copy );                       
ffc11bf0:	80 83 00 04 	lwz     r4,4(r3)                               
ffc11bf4:	7f e5 fb 78 	mr      r5,r31                                 
ffc11bf8:	7e 83 a3 78 	mr      r3,r20                                 
ffc11bfc:	48 01 07 81 	bl      ffc2237c <memcpy>                      
  if ( NULL != key )                                                  
    memcpy( key->data, buffer, bytes_to_copy );                       
  else if ( block_needs_writing )                                     
    return -1;                                                        
                                                                      
  return bytes_to_copy;                                               
ffc11c00:	7f e9 fb 78 	mr      r9,r31                                 
    bytes_handled  = 0;                                               
    buff           = (uint8_t *) scatter_gather->buffer;              
    block          = scatter_gather->block;                           
    buff_size      = scatter_gather->length;                          
                                                                      
    while ( ( 0 <= rv ) && ( 0 < buff_size ) ) {                      
ffc11c04:	2f 89 00 00 	cmpwi   cr7,r9,0                               
        rv = sparse_disk_write_block( sparse_disk,                    
                                      block,                          
                                      &buff[bytes_handled],           
                                      buff_size );                    
                                                                      
      ++block;                                                        
ffc11c08:	3b 9c 00 01 	addi    r28,r28,1                              
      bytes_handled += rv;                                            
ffc11c0c:	7f 7b fa 14 	add     r27,r27,r31                            
      buff_size     -= rv;                                            
ffc11c10:	7f df f0 50 	subf    r30,r31,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 ) ) {                      
ffc11c14:	41 9c 01 0c 	blt-    cr7,ffc11d20 <sparse_disk_ioctl+0x2cc> <== NEVER TAKEN
ffc11c18:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc11c1c:	40 9e ff 90 	bne+    cr7,ffc11bac <sparse_disk_ioctl+0x158> 
ffc11c20:	81 15 00 10 	lwz     r8,16(r21)                             
ffc11c24:	3a d6 00 01 	addi    r22,r22,1                              
ffc11c28:	39 36 ff ff 	addi    r9,r22,-1                              
  unsigned int            bytes_handled;                              
                                                                      
  rtems_semaphore_obtain( sparse_disk->mutex, RTEMS_WAIT, RTEMS_NO_TIMEOUT );
                                                                      
  for ( req_buffer = 0;                                               
        ( 0 <= rv ) && ( req_buffer < req->bufnum );                  
ffc11c2c:	7f 89 40 40 	cmplw   cr7,r9,r8                              
ffc11c30:	41 9c ff 5c 	blt+    cr7,ffc11b8c <sparse_disk_ioctl+0x138> 
      bytes_handled += rv;                                            
      buff_size     -= rv;                                            
    }                                                                 
  }                                                                   
                                                                      
  rtems_semaphore_release( sparse_disk->mutex );                      
ffc11c34:	80 7d 00 00 	lwz     r3,0(r29)                              
    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 );
ffc11c38:	3b e0 00 00 	li      r31,0                                  
      bytes_handled += rv;                                            
      buff_size     -= rv;                                            
    }                                                                 
  }                                                                   
                                                                      
  rtems_semaphore_release( sparse_disk->mutex );                      
ffc11c3c:	4b ff a1 39 	bl      ffc0bd74 <rtems_semaphore_release>     
static inline void rtems_blkdev_request_done(                         
  rtems_blkdev_request *req,                                          
  rtems_status_code status                                            
)                                                                     
{                                                                     
  (*req->done)(req, status);                                          
ffc11c40:	81 35 00 04 	lwz     r9,4(r21)                              
ffc11c44:	7e a3 ab 78 	mr      r3,r21                                 
ffc11c48:	38 80 00 00 	li      r4,0                                   
ffc11c4c:	7d 29 03 a6 	mtctr   r9                                     
ffc11c50:	4e 80 04 21 	bctrl                                          
ffc11c54:	4b ff fe 70 	b       ffc11ac4 <sparse_disk_ioctl+0x70>      
ffc11c58:	7f 9e 48 40 	cmplw   cr7,r30,r9                             
  const size_t            buffer_size )                               
{                                                                     
  unsigned int           i;                                           
  bool                   block_needs_writing = false;                 
  rtems_sparse_disk_key *key;                                         
  rtems_sparse_disk_key  block_key           = {                      
ffc11c5c:	92 e1 00 0c 	stw     r23,12(r1)                             
ffc11c60:	7f df f3 78 	mr      r31,r30                                
ffc11c64:	40 9d 00 08 	ble-    cr7,ffc11c6c <sparse_disk_ioctl+0x218> 
ffc11c68:	7d 3f 4b 78 	mr      r31,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(                                                      
ffc11c6c:	80 9d 00 18 	lwz     r4,24(r29)                             
ffc11c70:	38 61 00 08 	addi    r3,r1,8                                
ffc11c74:	80 bd 00 08 	lwz     r5,8(r29)                              
ffc11c78:	38 c0 00 08 	li      r6,8                                   
ffc11c7c:	7f 27 cb 78 	mr      r7,r25                                 
ffc11c80:	48 00 f9 49 	bl      ffc215c8 <bsearch>                     
    sparse_disk->used_count,                                          
    sizeof( rtems_sparse_disk_key ),                                  
    sparse_disk_compare                                               
    );                                                                
                                                                      
  if ( NULL == key ) {                                                
ffc11c84:	7c 73 1b 79 	mr.     r19,r3                                 
ffc11c88:	41 82 00 2c 	beq-    ffc11cb4 <sparse_disk_ioctl+0x260>     
      key = sparse_disk_get_new_block( sparse_disk, block );          
    }                                                                 
  }                                                                   
                                                                      
  if ( NULL != key )                                                  
    memcpy( key->data, buffer, bytes_to_copy );                       
ffc11c8c:	80 73 00 04 	lwz     r3,4(r19)                              
ffc11c90:	7e 84 a3 78 	mr      r4,r20                                 
ffc11c94:	7f e5 fb 78 	mr      r5,r31                                 
ffc11c98:	48 01 06 e5 	bl      ffc2237c <memcpy>                      
ffc11c9c:	4b ff ff 64 	b       ffc11c00 <sparse_disk_ioctl+0x1ac>     
    );                                                                
                                                                      
  if ( NULL != key )                                                  
    memcpy( buffer, key->data, bytes_to_copy );                       
  else                                                                
    memset( buffer, sparse_disk->fill_pattern, buffer_size );         
ffc11ca0:	88 9d 00 14 	lbz     r4,20(r29)                             
ffc11ca4:	7e 83 a3 78 	mr      r3,r20                                 
ffc11ca8:	7f c5 f3 78 	mr      r5,r30                                 
ffc11cac:	48 01 07 c5 	bl      ffc22470 <memset>                      
ffc11cb0:	4b ff ff 50 	b       ffc11c00 <sparse_disk_ioctl+0x1ac>     
    sizeof( rtems_sparse_disk_key ),                                  
    sparse_disk_compare                                               
    );                                                                
                                                                      
  if ( NULL == key ) {                                                
    for ( i = 0; ( !block_needs_writing ) && ( i < bytes_to_copy ); ++i ) {
ffc11cb4:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc11cb8:	41 be ff 48 	beq-    cr7,ffc11c00 <sparse_disk_ioctl+0x1ac> <== NEVER TAKEN
      if ( buffer[i] != sparse_disk->fill_pattern )                   
ffc11cbc:	89 14 00 00 	lbz     r8,0(r20)                              
    sizeof( rtems_sparse_disk_key ),                                  
    sparse_disk_compare                                               
    );                                                                
                                                                      
  if ( NULL == key ) {                                                
    for ( i = 0; ( !block_needs_writing ) && ( i < bytes_to_copy ); ++i ) {
ffc11cc0:	89 3d 00 14 	lbz     r9,20(r29)                             
ffc11cc4:	7f 89 40 00 	cmpw    cr7,r9,r8                              
ffc11cc8:	40 9e 00 1c 	bne-    cr7,ffc11ce4 <sparse_disk_ioctl+0x290> 
}                                                                     
                                                                      
/*                                                                    
 * ioctl handler to be passed to the block device handler             
 */                                                                   
static int sparse_disk_ioctl( rtems_disk_device *dd, uint32_t req, void *argp )
ffc11ccc:	7f e9 03 a6 	mtctr   r31                                    
ffc11cd0:	7e 89 a3 78 	mr      r9,r20                                 
    sizeof( rtems_sparse_disk_key ),                                  
    sparse_disk_compare                                               
    );                                                                
                                                                      
  if ( NULL == key ) {                                                
    for ( i = 0; ( !block_needs_writing ) && ( i < bytes_to_copy ); ++i ) {
ffc11cd4:	42 40 ff 2c 	bdz+    ffc11c00 <sparse_disk_ioctl+0x1ac>     
ffc11cd8:	8d 49 00 01 	lbzu    r10,1(r9)                              
ffc11cdc:	7f 8a 40 00 	cmpw    cr7,r10,r8                             
ffc11ce0:	41 9e ff f4 	beq+    cr7,ffc11cd4 <sparse_disk_ioctl+0x280> 
  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 ) {  
ffc11ce4:	81 3d 00 08 	lwz     r9,8(r29)                              
ffc11ce8:	81 5d 00 04 	lwz     r10,4(r29)                             
ffc11cec:	7f 89 50 40 	cmplw   cr7,r9,r10                             
ffc11cf0:	40 9c 00 54 	bge-    cr7,ffc11d44 <sparse_disk_ioctl+0x2f0> <== NEVER TAKEN
    key        = &sparse_disk->key_table[sparse_disk->used_count];    
ffc11cf4:	81 5d 00 18 	lwz     r10,24(r29)                            
ffc11cf8:	55 33 18 38 	rlwinm  r19,r9,3,0,28                          
    key->block = block;                                               
    ++sparse_disk->used_count;                                        
ffc11cfc:	38 89 00 01 	addi    r4,r9,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;                                               
ffc11d00:	7f 8a 99 2e 	stwx    r28,r10,r19                            
    ++sparse_disk->used_count;                                        
    qsort( sparse_disk->key_table, sparse_disk->used_count,           
ffc11d04:	7d 43 53 78 	mr      r3,r10                                 
ffc11d08:	38 a0 00 08 	li      r5,8                                   
  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;                                        
ffc11d0c:	90 9d 00 08 	stw     r4,8(r29)                              
    qsort( sparse_disk->key_table, sparse_disk->used_count,           
ffc11d10:	7f 26 cb 78 	mr      r6,r25                                 
  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];    
ffc11d14:	7e 6a 9a 14 	add     r19,r10,r19                            
    key->block = block;                                               
    ++sparse_disk->used_count;                                        
    qsort( sparse_disk->key_table, sparse_disk->used_count,           
ffc11d18:	48 01 08 71 	bl      ffc22588 <qsort>                       
ffc11d1c:	4b ff ff 70 	b       ffc11c8c <sparse_disk_ioctl+0x238>     
      bytes_handled += rv;                                            
      buff_size     -= rv;                                            
    }                                                                 
  }                                                                   
                                                                      
  rtems_semaphore_release( sparse_disk->mutex );                      
ffc11d20:	80 7d 00 00 	lwz     r3,0(r29)                              <== NOT EXECUTED
    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 );
ffc11d24:	3b e0 00 00 	li      r31,0                                  <== NOT EXECUTED
      bytes_handled += rv;                                            
      buff_size     -= rv;                                            
    }                                                                 
  }                                                                   
                                                                      
  rtems_semaphore_release( sparse_disk->mutex );                      
ffc11d28:	4b ff a0 4d 	bl      ffc0bd74 <rtems_semaphore_release>     <== NOT EXECUTED
ffc11d2c:	81 35 00 04 	lwz     r9,4(r21)                              <== NOT EXECUTED
ffc11d30:	7e a3 ab 78 	mr      r3,r21                                 <== NOT EXECUTED
ffc11d34:	38 80 00 1b 	li      r4,27                                  <== NOT EXECUTED
ffc11d38:	7d 29 03 a6 	mtctr   r9                                     <== NOT EXECUTED
ffc11d3c:	4e 80 04 21 	bctrl                                          <== NOT EXECUTED
ffc11d40:	4b ff fd 84 	b       ffc11ac4 <sparse_disk_ioctl+0x70>      <== 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 ) {  
ffc11d44:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
  }                                                                   
                                                                      
  if ( NULL != key )                                                  
    memcpy( key->data, buffer, bytes_to_copy );                       
  else if ( block_needs_writing )                                     
    return -1;                                                        
ffc11d48:	39 20 ff ff 	li      r9,-1                                  <== NOT EXECUTED
ffc11d4c:	4b ff fe b8 	b       ffc11c04 <sparse_disk_ioctl+0x1b0>     <== NOT EXECUTED
    return 0;                                                         
  } else {                                                            
    return rtems_blkdev_ioctl( dd, req, argp );                       
  }                                                                   
                                                                      
  errno = EINVAL;                                                     
ffc11d50:	48 00 f9 4d 	bl      ffc2169c <__errno>                     <== NOT EXECUTED
ffc11d54:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc11d58:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
  return -1;                                                          
ffc11d5c:	3b e0 ff ff 	li      r31,-1                                 <== NOT EXECUTED
ffc11d60:	4b ff fd 64 	b       ffc11ac4 <sparse_disk_ioctl+0x70>      <== NOT EXECUTED
    }                                                                 
  } else if ( RTEMS_BLKIO_DELETED == req ) {                          
    sc = rtems_semaphore_delete( sd->mutex );                         
                                                                      
    if ( RTEMS_SUCCESSFUL != sc )                                     
      rtems_fatal_error_occurred( 0xdeadbeef );                       
ffc11d64:	3c 60 de ad 	lis     r3,-8531                               <== NOT EXECUTED
ffc11d68:	60 63 be ef 	ori     r3,r3,48879                            <== NOT EXECUTED
ffc11d6c:	4b ff a7 cd 	bl      ffc0c538 <rtems_fatal_error_occurred>  <== NOT EXECUTED
                                                                      

ffc19e14 <tcsetattr>: int fd, int opt, struct termios *tp ) { switch (opt) {
ffc19e14:	2c 04 00 00 	cmpwi   r4,0                                   
int tcsetattr(                                                        
  int             fd,                                                 
  int             opt,                                                
  struct termios *tp                                                  
)                                                                     
{                                                                     
ffc19e18:	94 21 ff f0 	stwu    r1,-16(r1)                             
ffc19e1c:	7c 08 02 a6 	mflr    r0                                     
ffc19e20:	93 c1 00 08 	stw     r30,8(r1)                              
ffc19e24:	7c 7e 1b 78 	mr      r30,r3                                 
ffc19e28:	93 e1 00 0c 	stw     r31,12(r1)                             
ffc19e2c:	7c bf 2b 78 	mr      r31,r5                                 
ffc19e30:	90 01 00 14 	stw     r0,20(r1)                              
  switch (opt) {                                                      
ffc19e34:	41 82 00 4c 	beq-    ffc19e80 <tcsetattr+0x6c>              
ffc19e38:	2f 84 00 01 	cmpwi   cr7,r4,1                               
ffc19e3c:	41 9e 00 2c 	beq-    cr7,ffc19e68 <tcsetattr+0x54>          
  default:                                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
ffc19e40:	48 00 55 7d 	bl      ffc1f3bc <__errno>                     
ffc19e44:	39 20 00 86 	li      r9,134                                 
ffc19e48:	91 23 00 00 	stw     r9,0(r3)                               
     * Fall through to....                                            
     */                                                               
  case TCSANOW:                                                       
    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );                  
  }                                                                   
}                                                                     
ffc19e4c:	80 01 00 14 	lwz     r0,20(r1)                              
ffc19e50:	38 60 ff ff 	li      r3,-1                                  
ffc19e54:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc19e58:	7c 08 03 a6 	mtlr    r0                                     
ffc19e5c:	83 e1 00 0c 	lwz     r31,12(r1)                             
ffc19e60:	38 21 00 10 	addi    r1,r1,16                               
ffc19e64:	4e 80 00 20 	blr                                            
  switch (opt) {                                                      
  default:                                                            
    rtems_set_errno_and_return_minus_one( ENOTSUP );                  
                                                                      
  case TCSADRAIN:                                                     
    if (ioctl( fd, RTEMS_IO_TCDRAIN, NULL ) < 0)                      
ffc19e68:	38 80 00 03 	li      r4,3                                   
ffc19e6c:	38 a0 00 00 	li      r5,0                                   
ffc19e70:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc19e74:	48 00 45 4d 	bl      ffc1e3c0 <ioctl>                       
ffc19e78:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc19e7c:	41 bc ff d0 	blt-    cr7,ffc19e4c <tcsetattr+0x38>          <== NEVER TAKEN
     * Fall through to....                                            
     */                                                               
  case TCSANOW:                                                       
    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );                  
  }                                                                   
}                                                                     
ffc19e80:	80 01 00 14 	lwz     r0,20(r1)                              
    	return -1;                                                       
    /*                                                                
     * Fall through to....                                            
     */                                                               
  case TCSANOW:                                                       
    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );                  
ffc19e84:	7f c3 f3 78 	mr      r3,r30                                 
ffc19e88:	7f e5 fb 78 	mr      r5,r31                                 
  }                                                                   
}                                                                     
ffc19e8c:	83 c1 00 08 	lwz     r30,8(r1)                              
ffc19e90:	7c 08 03 a6 	mtlr    r0                                     
ffc19e94:	83 e1 00 0c 	lwz     r31,12(r1)                             
    	return -1;                                                       
    /*                                                                
     * Fall through to....                                            
     */                                                               
  case TCSANOW:                                                       
    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );                  
ffc19e98:	38 80 00 02 	li      r4,2                                   
  }                                                                   
}                                                                     
ffc19e9c:	38 21 00 10 	addi    r1,r1,16                               
    	return -1;                                                       
    /*                                                                
     * Fall through to....                                            
     */                                                               
  case TCSANOW:                                                       
    return ioctl( fd, RTEMS_IO_SET_ATTRIBUTES, tp );                  
ffc19ea0:	4c c6 31 82 	crclr   4*cr1+eq                               
ffc19ea4:	48 00 45 1c 	b       ffc1e3c0 <ioctl>                       
                                                                      

ffc0acf8 <timer_create>: int timer_create( clockid_t clock_id, struct sigevent *evp, timer_t *timerid ) {
ffc0acf8:	7d 80 00 26 	mfcr    r12                                    
  POSIX_Timer_Control *ptimer;                                        
                                                                      
  if ( clock_id != CLOCK_REALTIME )                                   
ffc0acfc:	2f 83 00 01 	cmpwi   cr7,r3,1                               
int timer_create(                                                     
  clockid_t        clock_id,                                          
  struct sigevent *evp,                                               
  timer_t         *timerid                                            
)                                                                     
{                                                                     
ffc0ad00:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc0ad04:	7c 08 02 a6 	mflr    r0                                     
ffc0ad08:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc0ad0c:	90 01 00 1c 	stw     r0,28(r1)                              
ffc0ad10:	93 c1 00 10 	stw     r30,16(r1)                             
ffc0ad14:	93 e1 00 14 	stw     r31,20(r1)                             
ffc0ad18:	91 81 00 08 	stw     r12,8(r1)                              
  POSIX_Timer_Control *ptimer;                                        
                                                                      
  if ( clock_id != CLOCK_REALTIME )                                   
ffc0ad1c:	40 9e 01 0c 	bne-    cr7,ffc0ae28 <timer_create+0x130>      
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( !timerid )                                                     
ffc0ad20:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc0ad24:	7c be 2b 78 	mr      r30,r5                                 
ffc0ad28:	41 9e 01 00 	beq-    cr7,ffc0ae28 <timer_create+0x130>      
 /*                                                                   
  *  The data of the structure evp are checked in order to verify if they
  *  are coherent.                                                    
  */                                                                  
                                                                      
  if (evp != NULL) {                                                  
ffc0ad2c:	2e 04 00 00 	cmpwi   cr4,r4,0                               
ffc0ad30:	7c 9f 23 78 	mr      r31,r4                                 
ffc0ad34:	41 92 00 2c 	beq-    cr4,ffc0ad60 <timer_create+0x68>       
    /* The structure has data */                                      
    if ( ( evp->sigev_notify != SIGEV_NONE ) &&                       
ffc0ad38:	81 24 00 00 	lwz     r9,0(r4)                               
ffc0ad3c:	39 29 ff ff 	addi    r9,r9,-1                               
ffc0ad40:	2b 89 00 01 	cmplwi  cr7,r9,1                               
ffc0ad44:	41 9d 00 e4 	bgt-    cr7,ffc0ae28 <timer_create+0x130>      <== NEVER TAKEN
         ( evp->sigev_notify != SIGEV_SIGNAL ) ) {                    
       /* The value of the field sigev_notify is not valid */         
       rtems_set_errno_and_return_minus_one( EINVAL );                
     }                                                                
                                                                      
     if ( !evp->sigev_signo )                                         
ffc0ad48:	81 24 00 04 	lwz     r9,4(r4)                               
ffc0ad4c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0ad50:	41 9e 00 d8 	beq-    cr7,ffc0ae28 <timer_create+0x130>      <== NEVER TAKEN
                                                                      
static inline bool is_valid_signo(                                    
  int signo                                                           
)                                                                     
{                                                                     
  return ((signo) >= 1 && (signo) <= 32 );                            
ffc0ad54:	39 29 ff ff 	addi    r9,r9,-1                               
       rtems_set_errno_and_return_minus_one( EINVAL );                
                                                                      
     if ( !is_valid_signo(evp->sigev_signo) )                         
ffc0ad58:	2b 89 00 1f 	cmplwi  cr7,r9,31                              
ffc0ad5c:	41 9d 00 cc 	bgt-    cr7,ffc0ae28 <timer_create+0x130>      <== 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;                  
ffc0ad60:	3d 20 00 00 	lis     r9,0                                   
ffc0ad64:	81 49 28 a8 	lwz     r10,10408(r9)                          
                                                                      
    ++level;                                                          
ffc0ad68:	39 4a 00 01 	addi    r10,r10,1                              
    _Thread_Dispatch_disable_level = level;                           
ffc0ad6c:	91 49 28 a8 	stw     r10,10408(r9)                          
 *  the inactive chain of free timer control blocks.                  
 */                                                                   
                                                                      
RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Allocate( void )
{                                                                     
  return (POSIX_Timer_Control *) _Objects_Allocate( &_POSIX_Timer_Information );
ffc0ad70:	3f a0 00 00 	lis     r29,0                                  
ffc0ad74:	3b bd 59 40 	addi    r29,r29,22848                          
ffc0ad78:	7f a3 eb 78 	mr      r3,r29                                 
ffc0ad7c:	48 00 2a 2d 	bl      ffc0d7a8 <_Objects_Allocate>           
                                                                      
  /*                                                                  
   *  Allocate a timer                                                
   */                                                                 
  ptimer = _POSIX_Timer_Allocate();                                   
  if ( !ptimer ) {                                                    
ffc0ad80:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0ad84:	41 82 00 d8 	beq-    ffc0ae5c <timer_create+0x164>          
    rtems_set_errno_and_return_minus_one( EAGAIN );                   
  }                                                                   
                                                                      
  /* The data of the created timer are stored to use them later */    
                                                                      
  ptimer->state     = POSIX_TIMER_STATE_CREATE_NEW;                   
ffc0ad88:	39 40 00 02 	li      r10,2                                  
ffc0ad8c:	99 43 00 3c 	stb     r10,60(r3)                             
  ptimer->thread_id = _Thread_Executing->Object.id;                   
ffc0ad90:	3d 40 00 00 	lis     r10,0                                  
ffc0ad94:	81 4a 5b b0 	lwz     r10,23472(r10)                         
ffc0ad98:	81 4a 00 08 	lwz     r10,8(r10)                             
ffc0ad9c:	91 43 00 38 	stw     r10,56(r3)                             
                                                                      
  if ( evp != NULL ) {                                                
ffc0ada0:	41 92 00 1c 	beq-    cr4,ffc0adbc <timer_create+0xc4>       
    ptimer->inf.sigev_notify = evp->sigev_notify;                     
ffc0ada4:	80 ff 00 00 	lwz     r7,0(r31)                              
    ptimer->inf.sigev_signo  = evp->sigev_signo;                      
ffc0ada8:	81 1f 00 04 	lwz     r8,4(r31)                              
    ptimer->inf.sigev_value  = evp->sigev_value;                      
ffc0adac:	81 5f 00 08 	lwz     r10,8(r31)                             
                                                                      
  ptimer->state     = POSIX_TIMER_STATE_CREATE_NEW;                   
  ptimer->thread_id = _Thread_Executing->Object.id;                   
                                                                      
  if ( evp != NULL ) {                                                
    ptimer->inf.sigev_notify = evp->sigev_notify;                     
ffc0adb0:	90 e3 00 40 	stw     r7,64(r3)                              
    ptimer->inf.sigev_signo  = evp->sigev_signo;                      
ffc0adb4:	91 03 00 44 	stw     r8,68(r3)                              
    ptimer->inf.sigev_value  = evp->sigev_value;                      
ffc0adb8:	91 43 00 48 	stw     r10,72(r3)                             
  uint32_t             name                                           
)                                                                     
{                                                                     
  _Objects_Set_local_object(                                          
    information,                                                      
    _Objects_Get_index( the_object->id ),                             
ffc0adbc:	81 03 00 08 	lwz     r8,8(r3)                               
  }                                                                   
                                                                      
  ptimer->overrun  = 0;                                               
ffc0adc0:	39 40 00 00 	li      r10,0                                  
  #if defined(RTEMS_DEBUG)                                            
    if ( index > information->maximum )                               
      return;                                                         
  #endif                                                              
                                                                      
  information->local_table[ index ] = the_object;                     
ffc0adc4:	80 dd 00 1c 	lwz     r6,28(r29)                             
ffc0adc8:	55 07 13 ba 	rlwinm  r7,r8,2,14,29                          
ffc0adcc:	91 43 00 68 	stw     r10,104(r3)                            
  ptimer->timer_data.it_value.tv_sec     = 0;                         
ffc0add0:	91 43 00 5c 	stw     r10,92(r3)                             
  ptimer->timer_data.it_value.tv_nsec    = 0;                         
ffc0add4:	91 43 00 60 	stw     r10,96(r3)                             
  ptimer->timer_data.it_interval.tv_sec  = 0;                         
ffc0add8:	91 43 00 54 	stw     r10,84(r3)                             
  ptimer->timer_data.it_interval.tv_nsec = 0;                         
ffc0addc:	91 43 00 58 	stw     r10,88(r3)                             
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
ffc0ade0:	91 43 00 18 	stw     r10,24(r3)                             
  the_watchdog->routine   = routine;                                  
ffc0ade4:	91 43 00 2c 	stw     r10,44(r3)                             
  the_watchdog->id        = id;                                       
ffc0ade8:	91 43 00 30 	stw     r10,48(r3)                             
  the_watchdog->user_data = user_data;                                
ffc0adec:	91 43 00 34 	stw     r10,52(r3)                             
ffc0adf0:	7c 66 39 2e 	stwx    r3,r6,r7                               
    _Objects_Get_index( the_object->id ),                             
    the_object                                                        
  );                                                                  
                                                                      
  /* ASSERT: information->is_string == false */                       
  the_object->name.name_u32 = name;                                   
ffc0adf4:	91 43 00 0c 	stw     r10,12(r3)                             
                                                                      
  _Watchdog_Initialize( &ptimer->Timer, NULL, 0, NULL );              
  _Objects_Open_u32(&_POSIX_Timer_Information, &ptimer->Object, 0);   
                                                                      
  *timerid  = ptimer->Object.id;                                      
ffc0adf8:	91 1e 00 00 	stw     r8,0(r30)                              
  _Thread_Enable_dispatch();                                          
ffc0adfc:	48 00 41 91 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
  return 0;                                                           
ffc0ae00:	38 60 00 00 	li      r3,0                                   
}                                                                     
ffc0ae04:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0ae08:	81 81 00 08 	lwz     r12,8(r1)                              
ffc0ae0c:	7c 08 03 a6 	mtlr    r0                                     
ffc0ae10:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0ae14:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0ae18:	7d 80 81 20 	mtcrf   8,r12                                  
ffc0ae1c:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0ae20:	38 21 00 18 	addi    r1,r1,24                               
ffc0ae24:	4e 80 00 20 	blr                                            
                                                                      
     if ( !evp->sigev_signo )                                         
       rtems_set_errno_and_return_minus_one( EINVAL );                
                                                                      
     if ( !is_valid_signo(evp->sigev_signo) )                         
       rtems_set_errno_and_return_minus_one( EINVAL );                
ffc0ae28:	48 00 aa 55 	bl      ffc1587c <__errno>                     
  _Objects_Open_u32(&_POSIX_Timer_Information, &ptimer->Object, 0);   
                                                                      
  *timerid  = ptimer->Object.id;                                      
  _Thread_Enable_dispatch();                                          
  return 0;                                                           
}                                                                     
ffc0ae2c:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0ae30:	81 81 00 08 	lwz     r12,8(r1)                              
                                                                      
     if ( !evp->sigev_signo )                                         
       rtems_set_errno_and_return_minus_one( EINVAL );                
                                                                      
     if ( !is_valid_signo(evp->sigev_signo) )                         
       rtems_set_errno_and_return_minus_one( EINVAL );                
ffc0ae34:	39 20 00 16 	li      r9,22                                  
  _Objects_Open_u32(&_POSIX_Timer_Information, &ptimer->Object, 0);   
                                                                      
  *timerid  = ptimer->Object.id;                                      
  _Thread_Enable_dispatch();                                          
  return 0;                                                           
}                                                                     
ffc0ae38:	7c 08 03 a6 	mtlr    r0                                     
                                                                      
     if ( !evp->sigev_signo )                                         
       rtems_set_errno_and_return_minus_one( EINVAL );                
                                                                      
     if ( !is_valid_signo(evp->sigev_signo) )                         
       rtems_set_errno_and_return_minus_one( EINVAL );                
ffc0ae3c:	91 23 00 00 	stw     r9,0(r3)                               
  _Objects_Open_u32(&_POSIX_Timer_Information, &ptimer->Object, 0);   
                                                                      
  *timerid  = ptimer->Object.id;                                      
  _Thread_Enable_dispatch();                                          
  return 0;                                                           
}                                                                     
ffc0ae40:	7d 80 81 20 	mtcrf   8,r12                                  
                                                                      
     if ( !evp->sigev_signo )                                         
       rtems_set_errno_and_return_minus_one( EINVAL );                
                                                                      
     if ( !is_valid_signo(evp->sigev_signo) )                         
       rtems_set_errno_and_return_minus_one( EINVAL );                
ffc0ae44:	38 60 ff ff 	li      r3,-1                                  
  _Objects_Open_u32(&_POSIX_Timer_Information, &ptimer->Object, 0);   
                                                                      
  *timerid  = ptimer->Object.id;                                      
  _Thread_Enable_dispatch();                                          
  return 0;                                                           
}                                                                     
ffc0ae48:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0ae4c:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0ae50:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0ae54:	38 21 00 18 	addi    r1,r1,24                               
ffc0ae58:	4e 80 00 20 	blr                                            
  /*                                                                  
   *  Allocate a timer                                                
   */                                                                 
  ptimer = _POSIX_Timer_Allocate();                                   
  if ( !ptimer ) {                                                    
    _Thread_Enable_dispatch();                                        
ffc0ae5c:	48 00 41 31 	bl      ffc0ef8c <_Thread_Enable_dispatch>     
    rtems_set_errno_and_return_minus_one( EAGAIN );                   
ffc0ae60:	48 00 aa 1d 	bl      ffc1587c <__errno>                     
ffc0ae64:	39 20 00 0b 	li      r9,11                                  
ffc0ae68:	91 23 00 00 	stw     r9,0(r3)                               
ffc0ae6c:	38 60 ff ff 	li      r3,-1                                  
ffc0ae70:	4b ff ff 94 	b       ffc0ae04 <timer_create+0x10c>          
                                                                      

ffc0949c <timer_settime>: timer_t timerid, int flags, const struct itimerspec *value, struct itimerspec *ovalue ) {
ffc0949c:	94 21 ff b0 	stwu    r1,-80(r1)                             
ffc094a0:	7c 08 02 a6 	mflr    r0                                     
ffc094a4:	93 81 00 40 	stw     r28,64(r1)                             
  Objects_Locations    location;                                      
  bool                 activated;                                     
  uint32_t             initial_period;                                
  struct itimerspec    normalize;                                     
                                                                      
  if ( !value )                                                       
ffc094a8:	7c bc 2b 79 	mr.     r28,r5                                 
  timer_t                  timerid,                                   
  int                      flags,                                     
  const struct itimerspec *value,                                     
  struct itimerspec       *ovalue                                     
)                                                                     
{                                                                     
ffc094ac:	90 01 00 54 	stw     r0,84(r1)                              
ffc094b0:	93 61 00 3c 	stw     r27,60(r1)                             
ffc094b4:	93 a1 00 44 	stw     r29,68(r1)                             
ffc094b8:	93 c1 00 48 	stw     r30,72(r1)                             
ffc094bc:	93 e1 00 4c 	stw     r31,76(r1)                             
  Objects_Locations    location;                                      
  bool                 activated;                                     
  uint32_t             initial_period;                                
  struct itimerspec    normalize;                                     
                                                                      
  if ( !value )                                                       
ffc094c0:	41 82 02 58 	beq-    ffc09718 <timer_settime+0x27c>         <== NEVER TAKEN
ffc094c4:	7c 7d 1b 78 	mr      r29,r3                                 
                                                                      
  /*                                                                  
   * First, it verifies if the structure "value" is correct           
   * if the number of nanoseconds is not correct return EINVAL        
   */                                                                 
  if ( !_Timespec_Is_valid( &(value->it_value) ) ) {                  
ffc094c8:	38 7c 00 08 	addi    r3,r28,8                               
ffc094cc:	7c 9f 23 78 	mr      r31,r4                                 
ffc094d0:	7c db 33 78 	mr      r27,r6                                 
ffc094d4:	48 00 4a b9 	bl      ffc0df8c <_Timespec_Is_valid>          
ffc094d8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc094dc:	41 9e 02 3c 	beq-    cr7,ffc09718 <timer_settime+0x27c>     
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
  if ( !_Timespec_Is_valid( &(value->it_interval) ) ) {               
ffc094e0:	7f 83 e3 78 	mr      r3,r28                                 
ffc094e4:	48 00 4a a9 	bl      ffc0df8c <_Timespec_Is_valid>          
ffc094e8:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc094ec:	41 9e 02 2c 	beq-    cr7,ffc09718 <timer_settime+0x27c>     <== NEVER TAKEN
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) {    
ffc094f0:	2f 9f 00 04 	cmpwi   cr7,r31,4                              
ffc094f4:	41 9e 01 6c 	beq-    cr7,ffc09660 <timer_settime+0x1c4>     
ffc094f8:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc094fc:	40 9e 02 1c 	bne-    cr7,ffc09718 <timer_settime+0x27c>     
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  normalize = *value;                                                 
ffc09500:	81 3c 00 0c 	lwz     r9,12(r28)                             
RTEMS_INLINE_ROUTINE POSIX_Timer_Control *_POSIX_Timer_Get (          
  timer_t            id,                                              
  Objects_Locations *location                                         
)                                                                     
{                                                                     
  return (POSIX_Timer_Control *)                                      
ffc09504:	3c 60 00 00 	lis     r3,0                                   
ffc09508:	80 fc 00 00 	lwz     r7,0(r28)                              
ffc0950c:	7f a4 eb 78 	mr      r4,r29                                 
ffc09510:	81 1c 00 04 	lwz     r8,4(r28)                              
ffc09514:	38 63 2f 80 	addi    r3,r3,12160                            
ffc09518:	81 5c 00 08 	lwz     r10,8(r28)                             
ffc0951c:	38 a1 00 28 	addi    r5,r1,40                               
ffc09520:	91 21 00 14 	stw     r9,20(r1)                              
ffc09524:	90 e1 00 08 	stw     r7,8(r1)                               
ffc09528:	91 01 00 0c 	stw     r8,12(r1)                              
ffc0952c:	91 41 00 10 	stw     r10,16(r1)                             
ffc09530:	48 00 2c b9 	bl      ffc0c1e8 <_Objects_Get>                
ffc09534:	7c 7d 1b 78 	mr      r29,r3                                 
   * something with the structure of times of the timer: to stop, start
   * or start it again                                                
   */                                                                 
                                                                      
  ptimer = _POSIX_Timer_Get( timerid, &location );                    
  switch ( location ) {                                               
ffc09538:	81 21 00 28 	lwz     r9,40(r1)                              
ffc0953c:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09540:	40 9e 01 d8 	bne-    cr7,ffc09718 <timer_settime+0x27c>     <== NEVER TAKEN
                                                                      
    case OBJECTS_LOCAL:                                               
      /* First, it verifies if the timer must be stopped */           
      if ( normalize.it_value.tv_sec == 0 && normalize.it_value.tv_nsec == 0 ) {
ffc09544:	81 21 00 10 	lwz     r9,16(r1)                              
ffc09548:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc0954c:	40 9e 00 10 	bne-    cr7,ffc0955c <timer_settime+0xc0>      
ffc09550:	81 21 00 14 	lwz     r9,20(r1)                              
ffc09554:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09558:	41 9e 01 d4 	beq-    cr7,ffc0972c <timer_settime+0x290>     
        _Thread_Enable_dispatch();                                    
        return 0;                                                     
       }                                                              
                                                                      
       /* Convert from seconds and nanoseconds to ticks */            
       ptimer->ticks  = _Timespec_To_ticks( &value->it_interval );    
ffc0955c:	7f 83 e3 78 	mr      r3,r28                                 
ffc09560:	48 00 4a f5 	bl      ffc0e054 <_Timespec_To_ticks>          
ffc09564:	90 7d 00 64 	stw     r3,100(r29)                            
       initial_period = _Timespec_To_ticks( &normalize.it_value );    
ffc09568:	38 61 00 10 	addi    r3,r1,16                               
ffc0956c:	48 00 4a e9 	bl      ffc0e054 <_Timespec_To_ticks>          
                                                                      
                                                                      
       activated = _POSIX_Timer_Insert_helper(                        
ffc09570:	80 bd 00 08 	lwz     r5,8(r29)                              
ffc09574:	3c c0 ff c1 	lis     r6,-63                                 
        return 0;                                                     
       }                                                              
                                                                      
       /* Convert from seconds and nanoseconds to ticks */            
       ptimer->ticks  = _Timespec_To_ticks( &value->it_interval );    
       initial_period = _Timespec_To_ticks( &normalize.it_value );    
ffc09578:	7c 64 1b 78 	mr      r4,r3                                  
                                                                      
                                                                      
       activated = _POSIX_Timer_Insert_helper(                        
ffc0957c:	38 c6 97 b0 	addi    r6,r6,-26704                           
ffc09580:	38 7d 00 10 	addi    r3,r29,16                              
ffc09584:	7f a7 eb 78 	mr      r7,r29                                 
ffc09588:	48 00 75 95 	bl      ffc10b1c <_POSIX_Timer_Insert_helper>  
         initial_period,                                              
         ptimer->Object.id,                                           
         _POSIX_Timer_TSR,                                            
         ptimer                                                       
       );                                                             
       if ( !activated ) {                                            
ffc0958c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc09590:	41 9e 00 a4 	beq-    cr7,ffc09634 <timer_settime+0x198>     
                                                                      
       /*                                                             
        * The timer has been started and is running.  So we return the
        * old ones in "ovalue"                                        
        */                                                            
       if ( ovalue )                                                  
ffc09594:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc09598:	41 9e 00 24 	beq-    cr7,ffc095bc <timer_settime+0x120>     
         *ovalue = ptimer->timer_data;                                
ffc0959c:	81 3d 00 54 	lwz     r9,84(r29)                             
ffc095a0:	80 fd 00 58 	lwz     r7,88(r29)                             
ffc095a4:	81 1d 00 5c 	lwz     r8,92(r29)                             
ffc095a8:	81 5d 00 60 	lwz     r10,96(r29)                            
ffc095ac:	91 3b 00 00 	stw     r9,0(r27)                              
ffc095b0:	90 fb 00 04 	stw     r7,4(r27)                              
ffc095b4:	91 1b 00 08 	stw     r8,8(r27)                              
ffc095b8:	91 5b 00 0c 	stw     r10,12(r27)                            
       ptimer->timer_data = normalize;                                
ffc095bc:	81 21 00 08 	lwz     r9,8(r1)                               
)                                                                     
{                                                                     
  Timestamp_Control  tod_as_timestamp;                                
  Timestamp_Control *tod_as_timestamp_ptr;                            
                                                                      
  tod_as_timestamp_ptr =                                              
ffc095c0:	3c 80 00 00 	lis     r4,0                                   
ffc095c4:	38 84 2c a0 	addi    r4,r4,11424                            
ffc095c8:	91 3d 00 54 	stw     r9,84(r29)                             
ffc095cc:	38 61 00 20 	addi    r3,r1,32                               
ffc095d0:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc095d4:	91 3d 00 58 	stw     r9,88(r29)                             
ffc095d8:	81 21 00 10 	lwz     r9,16(r1)                              
ffc095dc:	91 3d 00 5c 	stw     r9,92(r29)                             
ffc095e0:	81 21 00 14 	lwz     r9,20(r1)                              
ffc095e4:	91 3d 00 60 	stw     r9,96(r29)                             
                                                                      
       /* Indicate that the time is running */                        
       ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;                  
ffc095e8:	39 20 00 03 	li      r9,3                                   
ffc095ec:	99 3d 00 3c 	stb     r9,60(r29)                             
ffc095f0:	48 00 1f b5 	bl      ffc0b5a4 <_TOD_Get_with_nanoseconds>   
static inline void _Timestamp64_implementation_To_timespec(           
  const Timestamp64_Control *_timestamp,                              
  struct timespec           *_timespec                                
)                                                                     
{                                                                     
  _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);           
ffc095f4:	3c c0 3b 9a 	lis     r6,15258                               
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
}                                                                     
ffc095f8:	83 e3 00 04 	lwz     r31,4(r3)                              
ffc095fc:	38 a0 00 00 	li      r5,0                                   
ffc09600:	83 c3 00 00 	lwz     r30,0(r3)                              
ffc09604:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc09608:	7f e4 fb 78 	mr      r4,r31                                 
ffc0960c:	7f c3 f3 78 	mr      r3,r30                                 
ffc09610:	48 01 42 11 	bl      ffc1d820 <__divdi3>                    
  _timespec->tv_nsec = (long) (*_timestamp % 1000000000L);            
ffc09614:	3c c0 3b 9a 	lis     r6,15258                               
static inline void _Timestamp64_implementation_To_timespec(           
  const Timestamp64_Control *_timestamp,                              
  struct timespec           *_timespec                                
)                                                                     
{                                                                     
  _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);           
ffc09618:	90 9d 00 6c 	stw     r4,108(r29)                            
  _timespec->tv_nsec = (long) (*_timestamp % 1000000000L);            
ffc0961c:	38 a0 00 00 	li      r5,0                                   
ffc09620:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc09624:	7f c3 f3 78 	mr      r3,r30                                 
ffc09628:	7f e4 fb 78 	mr      r4,r31                                 
ffc0962c:	48 01 46 19 	bl      ffc1dc44 <__moddi3>                    
ffc09630:	90 9d 00 70 	stw     r4,112(r29)                            
       ptimer->timer_data = normalize;                                
                                                                      
       /* Indicate that the time is running */                        
       ptimer->state = POSIX_TIMER_STATE_CREATE_RUN;                  
       _TOD_Get( &ptimer->time );                                     
       _Thread_Enable_dispatch();                                     
ffc09634:	48 00 3c 05 	bl      ffc0d238 <_Thread_Enable_dispatch>     
       return 0;                                                      
ffc09638:	38 60 00 00 	li      r3,0                                   
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
}                                                                     
ffc0963c:	80 01 00 54 	lwz     r0,84(r1)                              
ffc09640:	83 61 00 3c 	lwz     r27,60(r1)                             
ffc09644:	7c 08 03 a6 	mtlr    r0                                     
ffc09648:	83 81 00 40 	lwz     r28,64(r1)                             
ffc0964c:	83 a1 00 44 	lwz     r29,68(r1)                             
ffc09650:	83 c1 00 48 	lwz     r30,72(r1)                             
ffc09654:	83 e1 00 4c 	lwz     r31,76(r1)                             
ffc09658:	38 21 00 50 	addi    r1,r1,80                               
ffc0965c:	4e 80 00 20 	blr                                            
                                                                      
  if ( flags != TIMER_ABSTIME && flags != POSIX_TIMER_RELATIVE ) {    
    rtems_set_errno_and_return_minus_one( EINVAL );                   
  }                                                                   
                                                                      
  normalize = *value;                                                 
ffc09660:	80 fc 00 00 	lwz     r7,0(r28)                              
ffc09664:	3c 80 00 00 	lis     r4,0                                   
ffc09668:	81 1c 00 04 	lwz     r8,4(r28)                              
ffc0966c:	38 84 2c a0 	addi    r4,r4,11424                            
ffc09670:	81 5c 00 08 	lwz     r10,8(r28)                             
ffc09674:	38 61 00 20 	addi    r3,r1,32                               
ffc09678:	81 3c 00 0c 	lwz     r9,12(r28)                             
ffc0967c:	90 e1 00 08 	stw     r7,8(r1)                               
ffc09680:	91 01 00 0c 	stw     r8,12(r1)                              
ffc09684:	91 41 00 10 	stw     r10,16(r1)                             
ffc09688:	91 21 00 14 	stw     r9,20(r1)                              
ffc0968c:	48 00 1f 19 	bl      ffc0b5a4 <_TOD_Get_with_nanoseconds>   
static inline void _Timestamp64_implementation_To_timespec(           
  const Timestamp64_Control *_timestamp,                              
  struct timespec           *_timespec                                
)                                                                     
{                                                                     
  _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);           
ffc09690:	3c c0 3b 9a 	lis     r6,15258                               
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
}                                                                     
ffc09694:	83 c3 00 00 	lwz     r30,0(r3)                              
ffc09698:	38 a0 00 00 	li      r5,0                                   
ffc0969c:	83 e3 00 04 	lwz     r31,4(r3)                              
ffc096a0:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc096a4:	7f c3 f3 78 	mr      r3,r30                                 
ffc096a8:	7f e4 fb 78 	mr      r4,r31                                 
ffc096ac:	48 01 41 75 	bl      ffc1d820 <__divdi3>                    
  _timespec->tv_nsec = (long) (*_timestamp % 1000000000L);            
ffc096b0:	3c c0 3b 9a 	lis     r6,15258                               
static inline void _Timestamp64_implementation_To_timespec(           
  const Timestamp64_Control *_timestamp,                              
  struct timespec           *_timespec                                
)                                                                     
{                                                                     
  _timespec->tv_sec = (time_t) (*_timestamp / 1000000000L);           
ffc096b4:	90 81 00 18 	stw     r4,24(r1)                              
  _timespec->tv_nsec = (long) (*_timestamp % 1000000000L);            
ffc096b8:	38 a0 00 00 	li      r5,0                                   
ffc096bc:	60 c6 ca 00 	ori     r6,r6,51712                            
ffc096c0:	7f c3 f3 78 	mr      r3,r30                                 
ffc096c4:	7f e4 fb 78 	mr      r4,r31                                 
ffc096c8:	48 01 45 7d 	bl      ffc1dc44 <__moddi3>                    
  /* Convert absolute to relative time */                             
  if (flags == TIMER_ABSTIME) {                                       
    struct timespec now;                                              
    _TOD_Get( &now );                                                 
    /* Check for seconds in the past */                               
    if ( _Timespec_Greater_than( &now, &normalize.it_value ) )        
ffc096cc:	38 61 00 10 	addi    r3,r1,16                               
ffc096d0:	90 81 00 1c 	stw     r4,28(r1)                              
ffc096d4:	38 81 00 18 	addi    r4,r1,24                               
ffc096d8:	48 00 48 f5 	bl      ffc0dfcc <_Timespec_Less_than>         
ffc096dc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc096e0:	40 9e 00 38 	bne-    cr7,ffc09718 <timer_settime+0x27c>     
      rtems_set_errno_and_return_minus_one( EINVAL );                 
    _Timespec_Subtract( &now, &normalize.it_value, &normalize.it_value );
ffc096e4:	38 81 00 10 	addi    r4,r1,16                               
ffc096e8:	7c 85 23 78 	mr      r5,r4                                  
ffc096ec:	38 61 00 18 	addi    r3,r1,24                               
ffc096f0:	48 00 49 19 	bl      ffc0e008 <_Timespec_Subtract>          
ffc096f4:	3c 60 00 00 	lis     r3,0                                   
ffc096f8:	7f a4 eb 78 	mr      r4,r29                                 
ffc096fc:	38 63 2f 80 	addi    r3,r3,12160                            
ffc09700:	38 a1 00 28 	addi    r5,r1,40                               
ffc09704:	48 00 2a e5 	bl      ffc0c1e8 <_Objects_Get>                
   * something with the structure of times of the timer: to stop, start
   * or start it again                                                
   */                                                                 
                                                                      
  ptimer = _POSIX_Timer_Get( timerid, &location );                    
  switch ( location ) {                                               
ffc09708:	81 21 00 28 	lwz     r9,40(r1)                              
ffc0970c:	7c 7d 1b 78 	mr      r29,r3                                 
ffc09710:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09714:	41 be fe 30 	beq-    cr7,ffc09544 <timer_settime+0xa8>      
#endif                                                                
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
ffc09718:	48 00 a4 e9 	bl      ffc13c00 <__errno>                     
ffc0971c:	39 20 00 16 	li      r9,22                                  
ffc09720:	91 23 00 00 	stw     r9,0(r3)                               
ffc09724:	38 60 ff ff 	li      r3,-1                                  
ffc09728:	4b ff ff 14 	b       ffc0963c <timer_settime+0x1a0>         
                                                                      
    case OBJECTS_LOCAL:                                               
      /* First, it verifies if the timer must be stopped */           
      if ( normalize.it_value.tv_sec == 0 && normalize.it_value.tv_nsec == 0 ) {
         /* Stop the timer */                                         
         (void) _Watchdog_Remove( &ptimer->Timer );                   
ffc0972c:	38 63 00 10 	addi    r3,r3,16                               
ffc09730:	48 00 4d b5 	bl      ffc0e4e4 <_Watchdog_Remove>            
         /* The old data of the timer are returned */                 
         if ( ovalue )                                                
ffc09734:	2f 9b 00 00 	cmpwi   cr7,r27,0                              
ffc09738:	41 9e 00 24 	beq-    cr7,ffc0975c <timer_settime+0x2c0>     
           *ovalue = ptimer->timer_data;                              
ffc0973c:	81 3d 00 54 	lwz     r9,84(r29)                             
ffc09740:	80 fd 00 58 	lwz     r7,88(r29)                             
ffc09744:	81 1d 00 5c 	lwz     r8,92(r29)                             
ffc09748:	81 5d 00 60 	lwz     r10,96(r29)                            
ffc0974c:	91 3b 00 00 	stw     r9,0(r27)                              
ffc09750:	90 fb 00 04 	stw     r7,4(r27)                              
ffc09754:	91 1b 00 08 	stw     r8,8(r27)                              
ffc09758:	91 5b 00 0c 	stw     r10,12(r27)                            
         /* The new data are set */                                   
         ptimer->timer_data = normalize;                              
ffc0975c:	81 21 00 08 	lwz     r9,8(r1)                               
ffc09760:	91 3d 00 54 	stw     r9,84(r29)                             
ffc09764:	81 21 00 0c 	lwz     r9,12(r1)                              
ffc09768:	91 3d 00 58 	stw     r9,88(r29)                             
ffc0976c:	81 21 00 10 	lwz     r9,16(r1)                              
ffc09770:	91 3d 00 5c 	stw     r9,92(r29)                             
ffc09774:	81 21 00 14 	lwz     r9,20(r1)                              
ffc09778:	91 3d 00 60 	stw     r9,96(r29)                             
         /* Indicates that the timer is created and stopped */        
         ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;               
ffc0977c:	39 20 00 04 	li      r9,4                                   
ffc09780:	99 3d 00 3c 	stb     r9,60(r29)                             
         /* Returns with success */                                   
        _Thread_Enable_dispatch();                                    
ffc09784:	48 00 3a b5 	bl      ffc0d238 <_Thread_Enable_dispatch>     
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
}                                                                     
ffc09788:	80 01 00 54 	lwz     r0,84(r1)                              
ffc0978c:	83 61 00 3c 	lwz     r27,60(r1)                             
         ptimer->timer_data = normalize;                              
         /* Indicates that the timer is created and stopped */        
         ptimer->state = POSIX_TIMER_STATE_CREATE_STOP;               
         /* Returns with success */                                   
        _Thread_Enable_dispatch();                                    
        return 0;                                                     
ffc09790:	38 60 00 00 	li      r3,0                                   
    case OBJECTS_ERROR:                                               
      break;                                                          
  }                                                                   
                                                                      
  rtems_set_errno_and_return_minus_one( EINVAL );                     
}                                                                     
ffc09794:	7c 08 03 a6 	mtlr    r0                                     
ffc09798:	83 81 00 40 	lwz     r28,64(r1)                             
ffc0979c:	83 a1 00 44 	lwz     r29,68(r1)                             
ffc097a0:	83 c1 00 48 	lwz     r30,72(r1)                             
ffc097a4:	83 e1 00 4c 	lwz     r31,76(r1)                             
ffc097a8:	38 21 00 50 	addi    r1,r1,80                               
ffc097ac:	4e 80 00 20 	blr                                            
                                                                      

ffc0928c <ualarm>: useconds_t ualarm( useconds_t useconds, useconds_t interval ) {
ffc0928c:	94 21 ff d8 	stwu    r1,-40(r1)                             
ffc09290:	7c 08 02 a6 	mflr    r0                                     
ffc09294:	93 e1 00 24 	stw     r31,36(r1)                             
                                                                      
  /*                                                                  
   *  Initialize the timer used to implement alarm().                 
   */                                                                 
                                                                      
  if ( !the_timer->routine ) {                                        
ffc09298:	3f e0 00 00 	lis     r31,0                                  
ffc0929c:	3b ff 35 f4 	addi    r31,r31,13812                          
                                                                      
useconds_t ualarm(                                                    
  useconds_t useconds,                                                
  useconds_t interval                                                 
)                                                                     
{                                                                     
ffc092a0:	90 01 00 2c 	stw     r0,44(r1)                              
                                                                      
  /*                                                                  
   *  Initialize the timer used to implement alarm().                 
   */                                                                 
                                                                      
  if ( !the_timer->routine ) {                                        
ffc092a4:	81 3f 00 1c 	lwz     r9,28(r31)                             
                                                                      
useconds_t ualarm(                                                    
  useconds_t useconds,                                                
  useconds_t interval                                                 
)                                                                     
{                                                                     
ffc092a8:	93 c1 00 20 	stw     r30,32(r1)                             
ffc092ac:	7c 7e 1b 78 	mr      r30,r3                                 
                                                                      
  /*                                                                  
   *  Initialize the timer used to implement alarm().                 
   */                                                                 
                                                                      
  if ( !the_timer->routine ) {                                        
ffc092b0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
                                                                      
useconds_t ualarm(                                                    
  useconds_t useconds,                                                
  useconds_t interval                                                 
)                                                                     
{                                                                     
ffc092b4:	93 a1 00 1c 	stw     r29,28(r1)                             
                                                                      
  /*                                                                  
   *  Initialize the timer used to implement alarm().                 
   */                                                                 
                                                                      
  if ( !the_timer->routine ) {                                        
ffc092b8:	41 9e 00 a4 	beq-    cr7,ffc0935c <ualarm+0xd0>             
    _Watchdog_Initialize( the_timer, _POSIX_signals_Ualarm_TSR, 0, NULL );
  } else {                                                            
    Watchdog_States state;                                            
                                                                      
    state = _Watchdog_Remove( the_timer );                            
ffc092bc:	7f e3 fb 78 	mr      r3,r31                                 
ffc092c0:	48 00 4c 41 	bl      ffc0df00 <_Watchdog_Remove>            
useconds_t ualarm(                                                    
  useconds_t useconds,                                                
  useconds_t interval                                                 
)                                                                     
{                                                                     
  useconds_t        remaining = 0;                                    
ffc092c4:	3b a0 00 00 	li      r29,0                                  
    _Watchdog_Initialize( the_timer, _POSIX_signals_Ualarm_TSR, 0, NULL );
  } else {                                                            
    Watchdog_States state;                                            
                                                                      
    state = _Watchdog_Remove( the_timer );                            
    if ( (state == WATCHDOG_ACTIVE) || (state == WATCHDOG_REMOVE_IT) ) {
ffc092c8:	38 63 ff fe 	addi    r3,r3,-2                               
ffc092cc:	2b 83 00 01 	cmplwi  cr7,r3,1                               
ffc092d0:	40 9d 00 ac 	ble-    cr7,ffc0937c <ualarm+0xf0>             <== ALWAYS TAKEN
  /*                                                                  
   *  If useconds is non-zero, then the caller wants to schedule      
   *  the alarm repeatedly at that interval.  If the interval is      
   *  less than a single clock tick, then fudge it to a clock tick.   
   */                                                                 
  if ( useconds ) {                                                   
ffc092d4:	2f 9e 00 00 	cmpwi   cr7,r30,0                              
ffc092d8:	41 be 00 64 	beq+    cr7,ffc0933c <ualarm+0xb0>             
    Watchdog_Interval ticks;                                          
                                                                      
    tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;               
ffc092dc:	3d 20 43 1b 	lis     r9,17179                               
ffc092e0:	61 29 de 83 	ori     r9,r9,56963                            
ffc092e4:	7d 3e 48 16 	mulhwu  r9,r30,r9                              
    tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;     
    ticks = _Timespec_To_ticks( &tp );                                
ffc092e8:	38 61 00 08 	addi    r3,r1,8                                
   *  less than a single clock tick, then fudge it to a clock tick.   
   */                                                                 
  if ( useconds ) {                                                   
    Watchdog_Interval ticks;                                          
                                                                      
    tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;               
ffc092ec:	55 29 74 be 	rlwinm  r9,r9,14,18,31                         
    tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;     
ffc092f0:	55 28 40 2e 	rlwinm  r8,r9,8,0,23                           
   *  less than a single clock tick, then fudge it to a clock tick.   
   */                                                                 
  if ( useconds ) {                                                   
    Watchdog_Interval ticks;                                          
                                                                      
    tp.tv_sec = useconds / TOD_MICROSECONDS_PER_SECOND;               
ffc092f4:	91 21 00 08 	stw     r9,8(r1)                               
    tp.tv_nsec = (useconds % TOD_MICROSECONDS_PER_SECOND) * 1000;     
ffc092f8:	55 2a 18 38 	rlwinm  r10,r9,3,0,28                          
ffc092fc:	7d 4a 40 50 	subf    r10,r10,r8                             
ffc09300:	55 48 30 32 	rlwinm  r8,r10,6,0,25                          
ffc09304:	7d 4a 40 50 	subf    r10,r10,r8                             
ffc09308:	7d 4a 4a 14 	add     r10,r10,r9                             
ffc0930c:	55 4a 30 32 	rlwinm  r10,r10,6,0,25                         
ffc09310:	7f ca f0 50 	subf    r30,r10,r30                            
ffc09314:	1f de 03 e8 	mulli   r30,r30,1000                           
ffc09318:	93 c1 00 0c 	stw     r30,12(r1)                             
    ticks = _Timespec_To_ticks( &tp );                                
ffc0931c:	48 00 46 41 	bl      ffc0d95c <_Timespec_To_ticks>          
    if ( ticks == 0 )                                                 
      ticks = 1;                                                      
                                                                      
    _Watchdog_Insert_ticks( the_timer, _Timespec_To_ticks( &tp ) );   
ffc09320:	38 61 00 08 	addi    r3,r1,8                                
ffc09324:	48 00 46 39 	bl      ffc0d95c <_Timespec_To_ticks>          
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc09328:	7f e4 fb 78 	mr      r4,r31                                 
  Watchdog_Control      *the_watchdog,                                
  Watchdog_Interval      units                                        
)                                                                     
{                                                                     
                                                                      
  the_watchdog->initial = units;                                      
ffc0932c:	90 7f 00 0c 	stw     r3,12(r31)                             
                                                                      
  _Watchdog_Insert( &_Watchdog_Ticks_chain, the_watchdog );           
ffc09330:	3c 60 00 00 	lis     r3,0                                   
ffc09334:	38 63 2e 08 	addi    r3,r3,11784                            
ffc09338:	48 00 4a 01 	bl      ffc0dd38 <_Watchdog_Insert>            
  }                                                                   
                                                                      
  return remaining;                                                   
}                                                                     
ffc0933c:	80 01 00 2c 	lwz     r0,44(r1)                              
ffc09340:	7f a3 eb 78 	mr      r3,r29                                 
ffc09344:	83 c1 00 20 	lwz     r30,32(r1)                             
ffc09348:	7c 08 03 a6 	mtlr    r0                                     
ffc0934c:	83 a1 00 1c 	lwz     r29,28(r1)                             
ffc09350:	83 e1 00 24 	lwz     r31,36(r1)                             
ffc09354:	38 21 00 28 	addi    r1,r1,40                               
ffc09358:	4e 80 00 20 	blr                                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
  the_watchdog->routine   = routine;                                  
ffc0935c:	3d 40 ff c1 	lis     r10,-63                                
  Watchdog_Service_routine_entry  routine,                            
  Objects_Id                      id,                                 
  void                           *user_data                           
)                                                                     
{                                                                     
  the_watchdog->state     = WATCHDOG_INACTIVE;                        
ffc09360:	91 3f 00 08 	stw     r9,8(r31)                              
  the_watchdog->routine   = routine;                                  
ffc09364:	39 4a 92 40 	addi    r10,r10,-28096                         
useconds_t ualarm(                                                    
  useconds_t useconds,                                                
  useconds_t interval                                                 
)                                                                     
{                                                                     
  useconds_t        remaining = 0;                                    
ffc09368:	3b a0 00 00 	li      r29,0                                  
ffc0936c:	91 5f 00 1c 	stw     r10,28(r31)                            
  the_watchdog->id        = id;                                       
ffc09370:	91 3f 00 20 	stw     r9,32(r31)                             
  the_watchdog->user_data = user_data;                                
ffc09374:	91 3f 00 24 	stw     r9,36(r31)                             
ffc09378:	4b ff ff 5c 	b       ffc092d4 <ualarm+0x48>                 
       *  boot.  Since alarm() is dealing in seconds, we must account for
       *  this.                                                       
       */                                                             
                                                                      
      ticks = the_timer->initial;                                     
      ticks -= (the_timer->stop_time - the_timer->start_time);        
ffc0937c:	81 1f 00 14 	lwz     r8,20(r31)                             
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
ffc09380:	38 81 00 08 	addi    r4,r1,8                                
       *  boot.  Since alarm() is dealing in seconds, we must account for
       *  this.                                                       
       */                                                             
                                                                      
      ticks = the_timer->initial;                                     
      ticks -= (the_timer->stop_time - the_timer->start_time);        
ffc09384:	81 5f 00 0c 	lwz     r10,12(r31)                            
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
      remaining  = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;           
      remaining += tp.tv_nsec / 1000;                                 
ffc09388:	3f a0 10 62 	lis     r29,4194                               
       *  boot.  Since alarm() is dealing in seconds, we must account for
       *  this.                                                       
       */                                                             
                                                                      
      ticks = the_timer->initial;                                     
      ticks -= (the_timer->stop_time - the_timer->start_time);        
ffc0938c:	80 7f 00 18 	lwz     r3,24(r31)                             
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
      remaining  = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;           
      remaining += tp.tv_nsec / 1000;                                 
ffc09390:	63 bd 4d d3 	ori     r29,r29,19923                          
       *  boot.  Since alarm() is dealing in seconds, we must account for
       *  this.                                                       
       */                                                             
                                                                      
      ticks = the_timer->initial;                                     
      ticks -= (the_timer->stop_time - the_timer->start_time);        
ffc09394:	7d 48 52 14 	add     r10,r8,r10                             
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
ffc09398:	7c 63 50 50 	subf    r3,r3,r10                              
ffc0939c:	48 00 45 75 	bl      ffc0d910 <_Timespec_From_ticks>        
      remaining  = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;           
ffc093a0:	81 21 00 08 	lwz     r9,8(r1)                               
      remaining += tp.tv_nsec / 1000;                                 
ffc093a4:	81 41 00 0c 	lwz     r10,12(r1)                             
      ticks = the_timer->initial;                                     
      ticks -= (the_timer->stop_time - the_timer->start_time);        
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
      remaining  = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;           
ffc093a8:	55 27 40 2e 	rlwinm  r7,r9,8,0,23                           
ffc093ac:	55 28 18 38 	rlwinm  r8,r9,3,0,28                           
ffc093b0:	7d 08 38 50 	subf    r8,r8,r7                               
      remaining += tp.tv_nsec / 1000;                                 
ffc093b4:	7f aa e8 96 	mulhw   r29,r10,r29                            
      ticks = the_timer->initial;                                     
      ticks -= (the_timer->stop_time - the_timer->start_time);        
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
      remaining  = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;           
ffc093b8:	55 07 30 32 	rlwinm  r7,r8,6,0,25                           
ffc093bc:	7d 08 38 50 	subf    r8,r8,r7                               
ffc093c0:	7d 28 4a 14 	add     r9,r8,r9                               
      remaining += tp.tv_nsec / 1000;                                 
ffc093c4:	7f bd 36 70 	srawi   r29,r29,6                              
ffc093c8:	7d 4a fe 70 	srawi   r10,r10,31                             
      ticks = the_timer->initial;                                     
      ticks -= (the_timer->stop_time - the_timer->start_time);        
      /* remaining is now in ticks */                                 
                                                                      
      _Timespec_From_ticks( ticks, &tp );                             
      remaining  = tp.tv_sec * TOD_MICROSECONDS_PER_SECOND;           
ffc093cc:	55 29 30 32 	rlwinm  r9,r9,6,0,25                           
      remaining += tp.tv_nsec / 1000;                                 
ffc093d0:	7f aa e8 50 	subf    r29,r10,r29                            
ffc093d4:	7f bd 4a 14 	add     r29,r29,r9                             
ffc093d8:	4b ff fe fc 	b       ffc092d4 <ualarm+0x48>                 
                                                                      

ffc08ddc <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 ) {
ffc08ddc:	94 21 ff b0 	stwu    r1,-80(r1)                             
ffc08de0:	7c 08 02 a6 	mflr    r0                                     
ffc08de4:	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 =                
ffc08de8:	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 )                                       
{                                                                     
ffc08dec:	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 =                
ffc08df0:	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 )                                       
{                                                                     
ffc08df4:	93 e1 00 4c 	stw     r31,76(r1)                             
ffc08df8:	93 c1 00 48 	stw     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 =                
ffc08dfc:	4b ff d4 85 	bl      ffc06280 <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;
ffc08e00:	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)(                         
ffc08e04:	81 3f 00 0c 	lwz     r9,12(r31)                             
ffc08e08:	80 9f 00 24 	lwz     r4,36(r31)                             
ffc08e0c:	81 29 00 10 	lwz     r9,16(r9)                              
ffc08e10:	7d 29 03 a6 	mtctr   r9                                     
ffc08e14:	4e 80 04 21 	bctrl                                          
                                                                      
  if ( rtems_filesystem_location_is_instance_root( currentloc ) ) {   
ffc08e18:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc08e1c:	41 9e 00 d8 	beq-    cr7,ffc08ef4 <unmount+0x118>           
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;                                 
ffc08e20:	3d 20 00 00 	lis     r9,0                                   
ffc08e24:	81 29 27 b8 	lwz     r9,10168(r9)                           
  const rtems_filesystem_location_info_t *current =                   
    &rtems_filesystem_current->location;                              
                                                                      
  return mt_entry == root->mt_entry || mt_entry == current->mt_entry; 
ffc08e28:	81 49 00 04 	lwz     r10,4(r9)                              
)                                                                     
{                                                                     
  const rtems_filesystem_location_info_t *root =                      
    &rtems_filesystem_root->location;                                 
  const rtems_filesystem_location_info_t *current =                   
    &rtems_filesystem_current->location;                              
ffc08e2c:	81 09 00 00 	lwz     r8,0(r9)                               
                                                                      
  return mt_entry == root->mt_entry || mt_entry == current->mt_entry; 
ffc08e30:	81 2a 00 14 	lwz     r9,20(r10)                             
ffc08e34:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
ffc08e38:	41 9e 00 a8 	beq-    cr7,ffc08ee0 <unmount+0x104>           
ffc08e3c:	81 28 00 14 	lwz     r9,20(r8)                              
ffc08e40:	7f 9f 48 00 	cmpw    cr7,r31,r9                             
ffc08e44:	41 9e 00 9c 	beq-    cr7,ffc08ee0 <unmount+0x104>           
  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;              
ffc08e48:	81 3f 00 20 	lwz     r9,32(r31)                             
                                                                      
      rv = (*mt_point_ops->unmount_h)( mt_entry );                    
ffc08e4c:	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;              
ffc08e50:	81 29 00 14 	lwz     r9,20(r9)                              
                                                                      
      rv = (*mt_point_ops->unmount_h)( mt_entry );                    
ffc08e54:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc08e58:	81 29 00 38 	lwz     r9,56(r9)                              
ffc08e5c:	7d 29 03 a6 	mtctr   r9                                     
ffc08e60:	4e 80 04 21 	bctrl                                          
      if ( rv == 0 ) {                                                
ffc08e64:	7c 7e 1b 79 	mr.     r30,r3                                 
ffc08e68:	41 82 00 28 	beq-    ffc08e90 <unmount+0xb4>                
  } else {                                                            
    errno = EACCES;                                                   
    rv = -1;                                                          
  }                                                                   
                                                                      
  rtems_filesystem_eval_path_cleanup( &ctx );                         
ffc08e6c:	38 61 00 08 	addi    r3,r1,8                                
ffc08e70:	4b ff d5 59 	bl      ffc063c8 <rtems_filesystem_eval_path_cleanup>
      rtems_fatal_error_occurred( 0xdeadbeef );                       
    }                                                                 
  }                                                                   
                                                                      
  return rv;                                                          
}                                                                     
ffc08e74:	80 01 00 54 	lwz     r0,84(r1)                              
ffc08e78:	7f c3 f3 78 	mr      r3,r30                                 
ffc08e7c:	83 e1 00 4c 	lwz     r31,76(r1)                             
ffc08e80:	7c 08 03 a6 	mtlr    r0                                     
ffc08e84:	83 c1 00 48 	lwz     r30,72(r1)                             
ffc08e88:	38 21 00 50 	addi    r1,r1,80                               
ffc08e8c:	4e 80 00 20 	blr                                            
      const rtems_filesystem_operations_table *mt_point_ops =         
        mt_entry->mt_point_node->location.mt_entry->ops;              
                                                                      
      rv = (*mt_point_ops->unmount_h)( mt_entry );                    
      if ( rv == 0 ) {                                                
        rtems_id self_task_id = rtems_task_self();                    
ffc08e90:	48 00 13 bd 	bl      ffc0a24c <rtems_task_self>             
static inline uint32_t ppc_interrupt_disable( void )                  
{                                                                     
  uint32_t level;                                                     
  uint32_t mask;                                                      
                                                                      
  __asm__ volatile (                                                  
ffc08e94:	7d 20 00 a6 	mfmsr   r9                                     
ffc08e98:	7d 50 42 a6 	mfsprg  r10,0                                  
ffc08e9c:	7d 2a 50 78 	andc    r10,r9,r10                             
ffc08ea0:	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;                        
ffc08ea4:	90 7f 00 3c 	stw     r3,60(r31)                             
        mt_entry->mounted = false;                                    
ffc08ea8:	9b df 00 28 	stb     r30,40(r31)                            
  return level;                                                       
}                                                                     
                                                                      
static inline void ppc_interrupt_enable( uint32_t level )             
{                                                                     
  __asm__ volatile (                                                  
ffc08eac:	7d 20 01 24 	mtmsr   r9                                     
  } else {                                                            
    errno = EACCES;                                                   
    rv = -1;                                                          
  }                                                                   
                                                                      
  rtems_filesystem_eval_path_cleanup( &ctx );                         
ffc08eb0:	38 61 00 08 	addi    r3,r1,8                                
ffc08eb4:	4b ff d5 15 	bl      ffc063c8 <rtems_filesystem_eval_path_cleanup>
  rtems_interval ticks                                                
)                                                                     
{                                                                     
  rtems_event_set event_out;                                          
                                                                      
  return rtems_event_system_receive(                                  
ffc08eb8:	3c 60 80 00 	lis     r3,-32768                              
ffc08ebc:	38 80 00 00 	li      r4,0                                   
ffc08ec0:	38 a0 00 00 	li      r5,0                                   
ffc08ec4:	38 c1 00 40 	addi    r6,r1,64                               
ffc08ec8:	48 00 0f 79 	bl      ffc09e40 <rtems_event_system_receive>  
    rtems_status_code sc = rtems_event_transient_receive(             
      RTEMS_WAIT,                                                     
      RTEMS_NO_TIMEOUT                                                
    );                                                                
                                                                      
    if ( sc != RTEMS_SUCCESSFUL ) {                                   
ffc08ecc:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc08ed0:	41 9e ff a4 	beq+    cr7,ffc08e74 <unmount+0x98>            <== ALWAYS TAKEN
      rtems_fatal_error_occurred( 0xdeadbeef );                       
ffc08ed4:	3c 60 de ad 	lis     r3,-8531                               <== NOT EXECUTED
ffc08ed8:	60 63 be ef 	ori     r3,r3,48879                            <== NOT EXECUTED
ffc08edc:	48 00 16 49 	bl      ffc0a524 <rtems_fatal_error_occurred>  <== NOT EXECUTED
        mt_entry->unmount_task = self_task_id;                        
        mt_entry->mounted = false;                                    
        rtems_filesystem_mt_entry_unlock( lock_context );             
      }                                                               
    } else {                                                          
      errno = EBUSY;                                                  
ffc08ee0:	48 00 a2 65 	bl      ffc13144 <__errno>                     
ffc08ee4:	39 20 00 10 	li      r9,16                                  
ffc08ee8:	91 23 00 00 	stw     r9,0(r3)                               
      rv = -1;                                                        
ffc08eec:	3b c0 ff ff 	li      r30,-1                                 
ffc08ef0:	4b ff ff 7c 	b       ffc08e6c <unmount+0x90>                
    }                                                                 
  } else {                                                            
    errno = EACCES;                                                   
ffc08ef4:	48 00 a2 51 	bl      ffc13144 <__errno>                     
ffc08ef8:	39 20 00 0d 	li      r9,13                                  
ffc08efc:	91 23 00 00 	stw     r9,0(r3)                               
    rv = -1;                                                          
ffc08f00:	3b c0 ff ff 	li      r30,-1                                 
ffc08f04:	4b ff ff 68 	b       ffc08e6c <unmount+0x90>                
                                                                      

ffc08df0 <vprintk>: */ void vprintk( const char *fmt, va_list ap ) {
ffc08df0:	94 21 ff b0 	stwu    r1,-80(r1)                             
ffc08df4:	7d 80 00 26 	mfcr    r12                                    
ffc08df8:	7c 08 02 a6 	mflr    r0                                     
ffc08dfc:	93 c1 00 48 	stw     r30,72(r1)                             
ffc08e00:	7c 7e 1b 78 	mr      r30,r3                                 
ffc08e04:	90 01 00 54 	stw     r0,84(r1)                              
ffc08e08:	92 e1 00 2c 	stw     r23,44(r1)                             
ffc08e0c:	93 01 00 30 	stw     r24,48(r1)                             
ffc08e10:	93 21 00 34 	stw     r25,52(r1)                             
ffc08e14:	93 41 00 38 	stw     r26,56(r1)                             
ffc08e18:	93 61 00 3c 	stw     r27,60(r1)                             
ffc08e1c:	93 81 00 40 	stw     r28,64(r1)                             
ffc08e20:	93 a1 00 44 	stw     r29,68(r1)                             
ffc08e24:	93 e1 00 4c 	stw     r31,76(r1)                             
ffc08e28:	91 81 00 28 	stw     r12,40(r1)                             
  for (; *fmt != '\0'; fmt++) {                                       
ffc08e2c:	88 63 00 00 	lbz     r3,0(r3)                               
ffc08e30:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc08e34:	41 9e 00 ec 	beq-    cr7,ffc08f20 <vprintk+0x130>           <== NEVER TAKEN
ffc08e38:	7c 9c 23 78 	mr      r28,r4                                 
 *  console is not yet initialized or in ISR's.                       
 *                                                                    
 * Arguments:                                                         
 *    as in printf: fmt - format string, ... - unnamed arguments.     
 */                                                                   
void vprintk(                                                         
ffc08e3c:	3b a1 00 08 	addi    r29,r1,8                               
ffc08e40:	3f 60 ff c2 	lis     r27,-62                                
      char *s, *str;                                                  
                                                                      
      str = va_arg(ap, char *);                                       
                                                                      
      if ( str == NULL ) {                                            
        str = "";                                                     
ffc08e44:	3f 40 ff c2 	lis     r26,-62                                
    bool minus = false;                                               
    bool sign = false;                                                
    char lead = ' ';                                                  
    char c;                                                           
                                                                      
    if (*fmt != '%') {                                                
ffc08e48:	2f 83 00 25 	cmpwi   cr7,r3,37                              
ffc08e4c:	40 9e 00 c0 	bne-    cr7,ffc08f0c <vprintk+0x11c>           
      rtems_putc(*fmt);                                               
      continue;                                                       
    }                                                                 
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
ffc08e50:	88 7e 00 01 	lbz     r3,1(r30)                              
ffc08e54:	2f 83 00 30 	cmpwi   cr7,r3,48                              
ffc08e58:	41 9e 01 f0 	beq-    cr7,ffc09048 <vprintk+0x258>           
                                                                      
    if (*fmt != '%') {                                                
      rtems_putc(*fmt);                                               
      continue;                                                       
    }                                                                 
    fmt++;                                                            
ffc08e5c:	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 = ' ';                                                  
ffc08e60:	3b 20 00 20 	li      r25,32                                 
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
      fmt++;                                                          
    }                                                                 
    if (*fmt == '-' ) {                                               
ffc08e64:	2f 83 00 2d 	cmpwi   cr7,r3,45                              
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
    unsigned base = 0;                                                
    unsigned width = 0;                                               
    bool lflag = false;                                               
    bool minus = false;                                               
ffc08e68:	39 00 00 00 	li      r8,0                                   
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
      fmt++;                                                          
    }                                                                 
    if (*fmt == '-' ) {                                               
ffc08e6c:	41 9e 01 cc 	beq-    cr7,ffc09038 <vprintk+0x248>           
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
ffc08e70:	39 43 ff d0 	addi    r10,r3,-48                             
ffc08e74:	2b 8a 00 09 	cmplwi  cr7,r10,9                              
ffc08e78:	3b e0 00 00 	li      r31,0                                  
ffc08e7c:	41 9d 00 20 	bgt-    cr7,ffc08e9c <vprintk+0xac>            
      width *= 10;                                                    
ffc08e80:	1f ff 00 0a 	mulli   r31,r31,10                             
      width += ((unsigned) *fmt - '0');                               
ffc08e84:	7f ff 1a 14 	add     r31,r31,r3                             
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
ffc08e88:	8c 7e 00 01 	lbzu    r3,1(r30)                              
      width *= 10;                                                    
      width += ((unsigned) *fmt - '0');                               
ffc08e8c:	3b ff ff d0 	addi    r31,r31,-48                            
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
      fmt++;                                                          
    }                                                                 
    while (*fmt >= '0' && *fmt <= '9' ) {                             
ffc08e90:	39 43 ff d0 	addi    r10,r3,-48                             
ffc08e94:	2b 8a 00 09 	cmplwi  cr7,r10,9                              
ffc08e98:	40 9d ff e8 	ble+    cr7,ffc08e80 <vprintk+0x90>            
      width *= 10;                                                    
      width += ((unsigned) *fmt - '0');                               
      fmt++;                                                          
    }                                                                 
                                                                      
    if ((c = *fmt) == 'l') {                                          
ffc08e9c:	2f 83 00 6c 	cmpwi   cr7,r3,108                             
ffc08ea0:	41 9e 01 f4 	beq-    cr7,ffc09094 <vprintk+0x2a4>           
      lflag = true;                                                   
      c = *++fmt;                                                     
    }                                                                 
    if ( c == 'c' ) {                                                 
ffc08ea4:	2f 83 00 63 	cmpwi   cr7,r3,99                              
ffc08ea8:	41 9e 01 b0 	beq-    cr7,ffc09058 <vprintk+0x268>           
      /* need a cast here since va_arg() only takes fully promoted types */
      char chr = (char) va_arg(ap, int);                              
      rtems_putc(chr);                                                
      continue;                                                       
    }                                                                 
    if ( c == 's' ) {                                                 
ffc08eac:	2f 83 00 73 	cmpwi   cr7,r3,115                             
ffc08eb0:	41 9e 02 0c 	beq-    cr7,ffc090bc <vprintk+0x2cc>           
                                                                      
      continue;                                                       
    }                                                                 
                                                                      
    /* must be a numeric format or something unsupported */           
    if ( c == 'o' || c == 'O' ) {                                     
ffc08eb4:	2f 83 00 6f 	cmpwi   cr7,r3,111                             
ffc08eb8:	41 9e 01 f8 	beq-    cr7,ffc090b0 <vprintk+0x2c0>           
ffc08ebc:	2f 83 00 4f 	cmpwi   cr7,r3,79                              
ffc08ec0:	41 9e 01 f0 	beq-    cr7,ffc090b0 <vprintk+0x2c0>           
      base = 8; sign = false;                                         
    } else if ( c == 'i' || c == 'I' ||                               
ffc08ec4:	2f 83 00 69 	cmpwi   cr7,r3,105                             
ffc08ec8:	41 9e 00 94 	beq-    cr7,ffc08f5c <vprintk+0x16c>           
ffc08ecc:	2f 83 00 49 	cmpwi   cr7,r3,73                              
ffc08ed0:	41 9e 00 8c 	beq-    cr7,ffc08f5c <vprintk+0x16c>           
ffc08ed4:	2f 83 00 64 	cmpwi   cr7,r3,100                             
ffc08ed8:	41 9e 00 84 	beq-    cr7,ffc08f5c <vprintk+0x16c>           
                c == 'd' || c == 'D' ) {                              
ffc08edc:	2f 83 00 44 	cmpwi   cr7,r3,68                              
ffc08ee0:	41 9e 00 7c 	beq-    cr7,ffc08f5c <vprintk+0x16c>           
      base = 10; sign = true;                                         
    } else if ( c == 'u' || c == 'U' ) {                              
ffc08ee4:	2f 83 00 75 	cmpwi   cr7,r3,117                             
ffc08ee8:	41 9e 02 fc 	beq-    cr7,ffc091e4 <vprintk+0x3f4>           
ffc08eec:	2f 83 00 55 	cmpwi   cr7,r3,85                              
ffc08ef0:	41 9e 02 f4 	beq-    cr7,ffc091e4 <vprintk+0x3f4>           
      base = 10; sign = false;                                        
    } else if ( c == 'x' || c == 'X' ) {                              
ffc08ef4:	2f 83 00 78 	cmpwi   cr7,r3,120                             
ffc08ef8:	41 9e 02 f8 	beq-    cr7,ffc091f0 <vprintk+0x400>           
ffc08efc:	2f 83 00 58 	cmpwi   cr7,r3,88                              
ffc08f00:	41 9e 02 f0 	beq-    cr7,ffc091f0 <vprintk+0x400>           
      base = 16; sign = false;                                        
    } else if ( c == 'p' ) {                                          
ffc08f04:	2f 83 00 70 	cmpwi   cr7,r3,112                             
ffc08f08:	41 9e 02 e8 	beq-    cr7,ffc091f0 <vprintk+0x400>           
      base = 16; sign = false; lflag = true;                          
    } else {                                                          
      rtems_putc(c);                                                  
ffc08f0c:	48 00 64 1d 	bl      ffc0f328 <rtems_putc>                  
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
ffc08f10:	88 7e 00 01 	lbz     r3,1(r30)                              
ffc08f14:	3b de 00 01 	addi    r30,r30,1                              
ffc08f18:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc08f1c:	40 9e ff 2c 	bne+    cr7,ffc08e48 <vprintk+0x58>            
      sign,                                                           
      width,                                                          
      lead                                                            
    );                                                                
  }                                                                   
}                                                                     
ffc08f20:	80 01 00 54 	lwz     r0,84(r1)                              
ffc08f24:	81 81 00 28 	lwz     r12,40(r1)                             
ffc08f28:	7c 08 03 a6 	mtlr    r0                                     
ffc08f2c:	82 e1 00 2c 	lwz     r23,44(r1)                             
ffc08f30:	83 01 00 30 	lwz     r24,48(r1)                             
ffc08f34:	7d 80 81 20 	mtcrf   8,r12                                  
ffc08f38:	83 21 00 34 	lwz     r25,52(r1)                             
ffc08f3c:	83 41 00 38 	lwz     r26,56(r1)                             
ffc08f40:	83 61 00 3c 	lwz     r27,60(r1)                             
ffc08f44:	83 81 00 40 	lwz     r28,64(r1)                             
ffc08f48:	83 a1 00 44 	lwz     r29,68(r1)                             
ffc08f4c:	83 c1 00 48 	lwz     r30,72(r1)                             
ffc08f50:	83 e1 00 4c 	lwz     r31,76(r1)                             
ffc08f54:	38 21 00 50 	addi    r1,r1,80                               
ffc08f58:	4e 80 00 20 	blr                                            
    /* must be a numeric format or something unsupported */           
    if ( c == 'o' || c == 'O' ) {                                     
      base = 8; sign = false;                                         
    } else if ( c == 'i' || c == 'I' ||                               
                c == 'd' || c == 'D' ) {                              
      base = 10; sign = true;                                         
ffc08f5c:	39 20 00 01 	li      r9,1                                   
ffc08f60:	3b 00 00 0a 	li      r24,10                                 
      rtems_putc(c);                                                  
      continue;                                                       
    }                                                                 
                                                                      
    printNum(                                                         
      lflag ? va_arg(ap, long) : (long) va_arg(ap, int),              
ffc08f64:	89 5c 00 00 	lbz     r10,0(r28)                             
ffc08f68:	2b 8a 00 08 	cmplwi  cr7,r10,8                              
ffc08f6c:	40 9c 01 34 	bge-    cr7,ffc090a0 <vprintk+0x2b0>           
ffc08f70:	55 47 10 3a 	rlwinm  r7,r10,2,0,29                          
ffc08f74:	81 1c 00 08 	lwz     r8,8(r28)                              
ffc08f78:	39 4a 00 01 	addi    r10,r10,1                              
ffc08f7c:	99 5c 00 00 	stb     r10,0(r28)                             
ffc08f80:	7d 08 3a 14 	add     r8,r8,r7                               
  unsigned long unsigned_num;                                         
  unsigned long n;                                                    
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
ffc08f84:	2f 89 00 00 	cmpwi   cr7,r9,0                               
    } else {                                                          
      rtems_putc(c);                                                  
      continue;                                                       
    }                                                                 
                                                                      
    printNum(                                                         
ffc08f88:	82 e8 00 00 	lwz     r23,0(r8)                              
  unsigned long unsigned_num;                                         
  unsigned long n;                                                    
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
ffc08f8c:	41 9e 00 0c 	beq-    cr7,ffc08f98 <vprintk+0x1a8>           
ffc08f90:	2f 97 00 00 	cmpwi   cr7,r23,0                              
ffc08f94:	41 9c 02 34 	blt-    cr7,ffc091c8 <vprintk+0x3d8>           
    rtems_putc('-');                                                  
    unsigned_num = (unsigned long) -num;                              
    if (maxwidth) maxwidth--;                                         
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
ffc08f98:	7e e7 bb 78 	mr      r7,r23                                 
  }                                                                   
                                                                      
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
ffc08f9c:	7d 27 c3 96 	divwu   r9,r7,r24                              
ffc08fa0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc08fa4:	41 9e 02 58 	beq-    cr7,ffc091fc <vprintk+0x40c>           
ffc08fa8:	57 05 06 3e 	clrlwi  r5,r24,24                              
    if (maxwidth) maxwidth--;                                         
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
ffc08fac:	39 40 00 00 	li      r10,0                                  
ffc08fb0:	48 00 00 08 	b       ffc08fb8 <vprintk+0x1c8>               
  while ((n = unsigned_num / base) > 0) {                             
ffc08fb4:	7d 09 43 78 	mr      r9,r8                                  
ffc08fb8:	7d 09 c3 96 	divwu   r8,r9,r24                              
ffc08fbc:	2f 88 00 00 	cmpwi   cr7,r8,0                               
    toPrint[count++] = (char) (unsigned_num - (n * base));            
ffc08fc0:	7c c5 49 d6 	mullw   r6,r5,r9                               
ffc08fc4:	7c e6 38 50 	subf    r7,r6,r7                               
ffc08fc8:	7c fd 51 ae 	stbx    r7,r29,r10                             
ffc08fcc:	7d 27 4b 78 	mr      r7,r9                                  
ffc08fd0:	39 4a 00 01 	addi    r10,r10,1                              
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
ffc08fd4:	40 9e ff e0 	bne+    cr7,ffc08fb4 <vprintk+0x1c4>           
ffc08fd8:	3b 0a 00 01 	addi    r24,r10,1                              
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
ffc08fdc:	7f 9f c0 40 	cmplw   cr7,r31,r24                            
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
ffc08fe0:	7d 41 52 14 	add     r10,r1,r10                             
ffc08fe4:	99 2a 00 08 	stb     r9,8(r10)                              
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
ffc08fe8:	40 9d 00 18 	ble-    cr7,ffc09000 <vprintk+0x210>           
    rtems_putc(lead);                                                 
ffc08fec:	7f 23 cb 78 	mr      r3,r25                                 
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
ffc08ff0:	3b ff ff ff 	addi    r31,r31,-1                             
    rtems_putc(lead);                                                 
ffc08ff4:	48 00 63 35 	bl      ffc0f328 <rtems_putc>                  
    toPrint[count++] = (char) (unsigned_num - (n * base));            
    unsigned_num = n;                                                 
  }                                                                   
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
ffc08ff8:	7f 9f c0 40 	cmplw   cr7,r31,r24                            
ffc08ffc:	41 9d ff f0 	bgt+    cr7,ffc08fec <vprintk+0x1fc>           
    rtems_putc(lead);                                                 
                                                                      
  for (n = 0; n < count; n++) {                                       
ffc09000:	2f 98 00 00 	cmpwi   cr7,r24,0                              
ffc09004:	41 be ff 0c 	beq-    cr7,ffc08f10 <vprintk+0x120>           <== NEVER TAKEN
 *  console is not yet initialized or in ISR's.                       
 *                                                                    
 * Arguments:                                                         
 *    as in printf: fmt - format string, ... - unnamed arguments.     
 */                                                                   
void vprintk(                                                         
ffc09008:	7f fd c2 14 	add     r31,r29,r24                            
ffc0900c:	3b 3b fd c4 	addi    r25,r27,-572                           
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    rtems_putc(lead);                                                 
                                                                      
  for (n = 0; n < count; n++) {                                       
    rtems_putc("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);      
ffc09010:	8d 3f ff ff 	lbzu    r9,-1(r31)                             
ffc09014:	7c 79 48 ae 	lbzx    r3,r25,r9                              
ffc09018:	48 00 63 11 	bl      ffc0f328 <rtems_putc>                  
  toPrint[count++] = (char) unsigned_num;                             
                                                                      
  for (n=maxwidth ; n > count; n-- )                                  
    rtems_putc(lead);                                                 
                                                                      
  for (n = 0; n < count; n++) {                                       
ffc0901c:	7f 9f e8 00 	cmpw    cr7,r31,r29                            
ffc09020:	40 9e ff f0 	bne+    cr7,ffc09010 <vprintk+0x220>           
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
ffc09024:	88 7e 00 01 	lbz     r3,1(r30)                              
ffc09028:	3b de 00 01 	addi    r30,r30,1                              
ffc0902c:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc09030:	40 9e fe 18 	bne+    cr7,ffc08e48 <vprintk+0x58>            <== ALWAYS TAKEN
ffc09034:	4b ff fe ec 	b       ffc08f20 <vprintk+0x130>               <== NOT EXECUTED
ffc09038:	88 7e 00 01 	lbz     r3,1(r30)                              
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
      fmt++;                                                          
    }                                                                 
    if (*fmt == '-' ) {                                               
      minus = true;                                                   
ffc0903c:	39 00 00 01 	li      r8,1                                   
      fmt++;                                                          
ffc09040:	3b de 00 01 	addi    r30,r30,1                              
ffc09044:	4b ff fe 2c 	b       ffc08e70 <vprintk+0x80>                
ffc09048:	88 7e 00 02 	lbz     r3,2(r30)                              
      rtems_putc(*fmt);                                               
      continue;                                                       
    }                                                                 
    fmt++;                                                            
    if (*fmt == '0' ) {                                               
      lead = '0';                                                     
ffc0904c:	3b 20 00 30 	li      r25,48                                 
      fmt++;                                                          
ffc09050:	3b de 00 02 	addi    r30,r30,2                              
ffc09054:	4b ff fe 10 	b       ffc08e64 <vprintk+0x74>                
      lflag = true;                                                   
      c = *++fmt;                                                     
    }                                                                 
    if ( c == 'c' ) {                                                 
      /* need a cast here since va_arg() only takes fully promoted types */
      char chr = (char) va_arg(ap, int);                              
ffc09058:	89 3c 00 00 	lbz     r9,0(r28)                              
ffc0905c:	2b 89 00 08 	cmplwi  cr7,r9,8                               
ffc09060:	40 9c 01 38 	bge-    cr7,ffc09198 <vprintk+0x3a8>           <== NEVER TAKEN
ffc09064:	55 28 10 3a 	rlwinm  r8,r9,2,0,29                           
ffc09068:	81 5c 00 08 	lwz     r10,8(r28)                             
ffc0906c:	39 29 00 01 	addi    r9,r9,1                                
ffc09070:	99 3c 00 00 	stb     r9,0(r28)                              
ffc09074:	7d 4a 42 14 	add     r10,r10,r8                             
      rtems_putc(chr);                                                
ffc09078:	88 6a 00 03 	lbz     r3,3(r10)                              
ffc0907c:	48 00 62 ad 	bl      ffc0f328 <rtems_putc>                  
void vprintk(                                                         
  const char *fmt,                                                    
  va_list     ap                                                      
)                                                                     
{                                                                     
  for (; *fmt != '\0'; fmt++) {                                       
ffc09080:	88 7e 00 01 	lbz     r3,1(r30)                              
ffc09084:	3b de 00 01 	addi    r30,r30,1                              
ffc09088:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0908c:	40 9e fd bc 	bne+    cr7,ffc08e48 <vprintk+0x58>            
ffc09090:	4b ff fe 90 	b       ffc08f20 <vprintk+0x130>               
      fmt++;                                                          
    }                                                                 
                                                                      
    if ((c = *fmt) == 'l') {                                          
      lflag = true;                                                   
      c = *++fmt;                                                     
ffc09094:	88 7e 00 01 	lbz     r3,1(r30)                              
ffc09098:	3b de 00 01 	addi    r30,r30,1                              
ffc0909c:	4b ff fe 08 	b       ffc08ea4 <vprintk+0xb4>                
      rtems_putc(c);                                                  
      continue;                                                       
    }                                                                 
                                                                      
    printNum(                                                         
      lflag ? va_arg(ap, long) : (long) va_arg(ap, int),              
ffc090a0:	81 1c 00 04 	lwz     r8,4(r28)                              
ffc090a4:	39 48 00 04 	addi    r10,r8,4                               
ffc090a8:	91 5c 00 04 	stw     r10,4(r28)                             
ffc090ac:	4b ff fe d8 	b       ffc08f84 <vprintk+0x194>               
      continue;                                                       
    }                                                                 
                                                                      
    /* must be a numeric format or something unsupported */           
    if ( c == 'o' || c == 'O' ) {                                     
      base = 8; sign = false;                                         
ffc090b0:	39 20 00 00 	li      r9,0                                   
ffc090b4:	3b 00 00 08 	li      r24,8                                  
ffc090b8:	4b ff fe ac 	b       ffc08f64 <vprintk+0x174>               
    }                                                                 
    if ( c == 's' ) {                                                 
      unsigned i, len;                                                
      char *s, *str;                                                  
                                                                      
      str = va_arg(ap, char *);                                       
ffc090bc:	89 3c 00 00 	lbz     r9,0(r28)                              
ffc090c0:	2b 89 00 08 	cmplwi  cr7,r9,8                               
ffc090c4:	40 9c 00 e4 	bge-    cr7,ffc091a8 <vprintk+0x3b8>           <== NEVER TAKEN
ffc090c8:	55 27 10 3a 	rlwinm  r7,r9,2,0,29                           
ffc090cc:	81 5c 00 08 	lwz     r10,8(r28)                             
ffc090d0:	39 29 00 01 	addi    r9,r9,1                                
ffc090d4:	99 3c 00 00 	stb     r9,0(r28)                              
ffc090d8:	7d 4a 3a 14 	add     r10,r10,r7                             
ffc090dc:	83 0a 00 00 	lwz     r24,0(r10)                             
                                                                      
      if ( str == NULL ) {                                            
ffc090e0:	2f 98 00 00 	cmpwi   cr7,r24,0                              
ffc090e4:	41 9e 00 dc 	beq-    cr7,ffc091c0 <vprintk+0x3d0>           
        str = "";                                                     
      }                                                               
                                                                      
      /* calculate length of string */                                
      for ( len=0, s=str ; *s ; len++, s++ )                          
ffc090e8:	89 38 00 00 	lbz     r9,0(r24)                              
ffc090ec:	3b 20 00 00 	li      r25,0                                  
ffc090f0:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc090f4:	41 9e 00 14 	beq-    cr7,ffc09108 <vprintk+0x318>           
ffc090f8:	3b 39 00 01 	addi    r25,r25,1                              
ffc090fc:	7d 38 c8 ae 	lbzx    r9,r24,r25                             
ffc09100:	2f 89 00 00 	cmpwi   cr7,r9,0                               
ffc09104:	40 9e ff f4 	bne+    cr7,ffc090f8 <vprintk+0x308>           
        ;                                                             
                                                                      
      /* leading spaces */                                            
      if ( !minus )                                                   
ffc09108:	2e 08 00 00 	cmpwi   cr4,r8,0                               
ffc0910c:	40 92 00 24 	bne-    cr4,ffc09130 <vprintk+0x340>           
        for ( i=len ; i<width ; i++ )                                 
ffc09110:	7f 9f c8 40 	cmplw   cr7,r31,r25                            
ffc09114:	40 9d 00 1c 	ble-    cr7,ffc09130 <vprintk+0x340>           
ffc09118:	7f 37 cb 78 	mr      r23,r25                                
          rtems_putc(' ');                                            
ffc0911c:	38 60 00 20 	li      r3,32                                  
      for ( len=0, s=str ; *s ; len++, s++ )                          
        ;                                                             
                                                                      
      /* leading spaces */                                            
      if ( !minus )                                                   
        for ( i=len ; i<width ; i++ )                                 
ffc09120:	3a f7 00 01 	addi    r23,r23,1                              
          rtems_putc(' ');                                            
ffc09124:	48 00 62 05 	bl      ffc0f328 <rtems_putc>                  
      for ( len=0, s=str ; *s ; len++, s++ )                          
        ;                                                             
                                                                      
      /* leading spaces */                                            
      if ( !minus )                                                   
        for ( i=len ; i<width ; i++ )                                 
ffc09128:	7f 97 f8 40 	cmplw   cr7,r23,r31                            
ffc0912c:	41 9c ff f0 	blt+    cr7,ffc0911c <vprintk+0x32c>           
          rtems_putc(' ');                                            
                                                                      
      /* no width option */                                           
      if (width == 0) {                                               
ffc09130:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
ffc09134:	40 9e 00 10 	bne-    cr7,ffc09144 <vprintk+0x354>           
          width = len;                                                
      }                                                               
                                                                      
      /* output the string */                                         
      for ( i=0 ; i<width && *str ; str++ )                           
ffc09138:	2f 99 00 00 	cmpwi   cr7,r25,0                              
ffc0913c:	41 be fd d4 	beq-    cr7,ffc08f10 <vprintk+0x120>           
ffc09140:	7f 3f cb 78 	mr      r31,r25                                
ffc09144:	88 78 00 00 	lbz     r3,0(r24)                              
ffc09148:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0914c:	41 9e 00 14 	beq-    cr7,ffc09160 <vprintk+0x370>           <== NEVER TAKEN
        rtems_putc(*str);                                             
ffc09150:	48 00 61 d9 	bl      ffc0f328 <rtems_putc>                  
      if (width == 0) {                                               
          width = len;                                                
      }                                                               
                                                                      
      /* output the string */                                         
      for ( i=0 ; i<width && *str ; str++ )                           
ffc09154:	8c 78 00 01 	lbzu    r3,1(r24)                              
ffc09158:	2f 83 00 00 	cmpwi   cr7,r3,0                               
ffc0915c:	40 9e ff f4 	bne+    cr7,ffc09150 <vprintk+0x360>           
        rtems_putc(*str);                                             
                                                                      
      /* trailing spaces */                                           
      if ( minus )                                                    
ffc09160:	41 b2 fd b0 	beq-    cr4,ffc08f10 <vprintk+0x120>           
        for ( i=len ; i<width ; i++ )                                 
ffc09164:	7f 9f c8 40 	cmplw   cr7,r31,r25                            
ffc09168:	40 bd fd a8 	ble-    cr7,ffc08f10 <vprintk+0x120>           
          rtems_putc(' ');                                            
ffc0916c:	38 60 00 20 	li      r3,32                                  
      for ( i=0 ; i<width && *str ; str++ )                           
        rtems_putc(*str);                                             
                                                                      
      /* trailing spaces */                                           
      if ( minus )                                                    
        for ( i=len ; i<width ; i++ )                                 
ffc09170:	3b 39 00 01 	addi    r25,r25,1                              
          rtems_putc(' ');                                            
ffc09174:	48 00 61 b5 	bl      ffc0f328 <rtems_putc>                  
      for ( i=0 ; i<width && *str ; str++ )                           
        rtems_putc(*str);                                             
                                                                      
      /* trailing spaces */                                           
      if ( minus )                                                    
        for ( i=len ; i<width ; i++ )                                 
ffc09178:	7f 99 f8 40 	cmplw   cr7,r25,r31                            
ffc0917c:	40 bc fd 94 	bge-    cr7,ffc08f10 <vprintk+0x120>           <== NEVER TAKEN
          rtems_putc(' ');                                            
ffc09180:	38 60 00 20 	li      r3,32                                  
      for ( i=0 ; i<width && *str ; str++ )                           
        rtems_putc(*str);                                             
                                                                      
      /* trailing spaces */                                           
      if ( minus )                                                    
        for ( i=len ; i<width ; i++ )                                 
ffc09184:	3b 39 00 01 	addi    r25,r25,1                              
          rtems_putc(' ');                                            
ffc09188:	48 00 61 a1 	bl      ffc0f328 <rtems_putc>                  
      for ( i=0 ; i<width && *str ; str++ )                           
        rtems_putc(*str);                                             
                                                                      
      /* trailing spaces */                                           
      if ( minus )                                                    
        for ( i=len ; i<width ; i++ )                                 
ffc0918c:	7f 99 f8 40 	cmplw   cr7,r25,r31                            
ffc09190:	41 9c ff dc 	blt+    cr7,ffc0916c <vprintk+0x37c>           
ffc09194:	4b ff fd 7c 	b       ffc08f10 <vprintk+0x120>               
      lflag = true;                                                   
      c = *++fmt;                                                     
    }                                                                 
    if ( c == 'c' ) {                                                 
      /* need a cast here since va_arg() only takes fully promoted types */
      char chr = (char) va_arg(ap, int);                              
ffc09198:	81 5c 00 04 	lwz     r10,4(r28)                             <== NOT EXECUTED
ffc0919c:	39 2a 00 04 	addi    r9,r10,4                               <== NOT EXECUTED
ffc091a0:	91 3c 00 04 	stw     r9,4(r28)                              <== NOT EXECUTED
ffc091a4:	4b ff fe d4 	b       ffc09078 <vprintk+0x288>               <== NOT EXECUTED
    }                                                                 
    if ( c == 's' ) {                                                 
      unsigned i, len;                                                
      char *s, *str;                                                  
                                                                      
      str = va_arg(ap, char *);                                       
ffc091a8:	81 5c 00 04 	lwz     r10,4(r28)                             <== NOT EXECUTED
ffc091ac:	39 2a 00 04 	addi    r9,r10,4                               <== NOT EXECUTED
ffc091b0:	91 3c 00 04 	stw     r9,4(r28)                              <== NOT EXECUTED
ffc091b4:	83 0a 00 00 	lwz     r24,0(r10)                             <== NOT EXECUTED
                                                                      
      if ( str == NULL ) {                                            
ffc091b8:	2f 98 00 00 	cmpwi   cr7,r24,0                              <== NOT EXECUTED
ffc091bc:	40 9e ff 2c 	bne+    cr7,ffc090e8 <vprintk+0x2f8>           <== NOT EXECUTED
        str = "";                                                     
ffc091c0:	3b 1a f6 a4 	addi    r24,r26,-2396                          
ffc091c4:	4b ff ff 24 	b       ffc090e8 <vprintk+0x2f8>               
  unsigned long n;                                                    
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
    rtems_putc('-');                                                  
ffc091c8:	38 60 00 2d 	li      r3,45                                  
ffc091cc:	48 00 61 5d 	bl      ffc0f328 <rtems_putc>                  
    unsigned_num = (unsigned long) -num;                              
    if (maxwidth) maxwidth--;                                         
ffc091d0:	2f 9f 00 00 	cmpwi   cr7,r31,0                              
  unsigned count;                                                     
  char toPrint[20];                                                   
                                                                      
  if ( sign && (num <  0) ) {                                         
    rtems_putc('-');                                                  
    unsigned_num = (unsigned long) -num;                              
ffc091d4:	7c f7 00 d0 	neg     r7,r23                                 
    if (maxwidth) maxwidth--;                                         
ffc091d8:	41 be fd c4 	beq-    cr7,ffc08f9c <vprintk+0x1ac>           
ffc091dc:	3b ff ff ff 	addi    r31,r31,-1                             
ffc091e0:	4b ff fd bc 	b       ffc08f9c <vprintk+0x1ac>               
      base = 8; sign = false;                                         
    } else if ( c == 'i' || c == 'I' ||                               
                c == 'd' || c == 'D' ) {                              
      base = 10; sign = true;                                         
    } else if ( c == 'u' || c == 'U' ) {                              
      base = 10; sign = false;                                        
ffc091e4:	39 20 00 00 	li      r9,0                                   
ffc091e8:	3b 00 00 0a 	li      r24,10                                 
ffc091ec:	4b ff fd 78 	b       ffc08f64 <vprintk+0x174>               
    } else if ( c == 'x' || c == 'X' ) {                              
      base = 16; sign = false;                                        
    } else if ( c == 'p' ) {                                          
      base = 16; sign = false; lflag = true;                          
ffc091f0:	39 20 00 00 	li      r9,0                                   
ffc091f4:	3b 00 00 10 	li      r24,16                                 
ffc091f8:	4b ff fd 6c 	b       ffc08f64 <vprintk+0x174>               
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
  while ((n = unsigned_num / base) > 0) {                             
ffc091fc:	7c e9 3b 78 	mr      r9,r7                                  
ffc09200:	3b 00 00 01 	li      r24,1                                  
    if (maxwidth) maxwidth--;                                         
  } else {                                                            
    unsigned_num = (unsigned long) num;                               
  }                                                                   
                                                                      
  count = 0;                                                          
ffc09204:	39 40 00 00 	li      r10,0                                  
ffc09208:	4b ff fd d4 	b       ffc08fdc <vprintk+0x1ec>               
                                                                      

ffc1dfbc <write>: size_t count ) { rtems_libio_t *iop; rtems_libio_check_fd( fd );
ffc1dfbc:	3d 20 00 00 	lis     r9,0                                   
ssize_t write(                                                        
  int         fd,                                                     
  const void *buffer,                                                 
  size_t      count                                                   
)                                                                     
{                                                                     
ffc1dfc0:	94 21 ff f8 	stwu    r1,-8(r1)                              
ffc1dfc4:	7c 08 02 a6 	mflr    r0                                     
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc1dfc8:	81 29 27 98 	lwz     r9,10136(r9)                           
ssize_t write(                                                        
  int         fd,                                                     
  const void *buffer,                                                 
  size_t      count                                                   
)                                                                     
{                                                                     
ffc1dfcc:	90 01 00 0c 	stw     r0,12(r1)                              
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc1dfd0:	7f 83 48 40 	cmplw   cr7,r3,r9                              
ffc1dfd4:	40 9c 00 68 	bge-    cr7,ffc1e03c <write+0x80>              
  iop = rtems_libio_iop( fd );                                        
ffc1dfd8:	3d 20 00 00 	lis     r9,0                                   
ffc1dfdc:	81 29 28 4c 	lwz     r9,10316(r9)                           
ffc1dfe0:	1c 63 00 38 	mulli   r3,r3,56                               
ffc1dfe4:	7c 69 1a 14 	add     r3,r9,r3                               
  rtems_libio_check_is_open( iop );                                   
ffc1dfe8:	81 23 00 10 	lwz     r9,16(r3)                              
ffc1dfec:	71 27 01 00 	andi.   r7,r9,256                              
ffc1dff0:	41 82 00 4c 	beq-    ffc1e03c <write+0x80>                  
  rtems_libio_check_buffer( buffer );                                 
ffc1dff4:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc1dff8:	41 9e 00 58 	beq-    cr7,ffc1e050 <write+0x94>              <== NEVER TAKEN
  rtems_libio_check_count( count );                                   
ffc1dffc:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc1e000:	41 9e 00 28 	beq-    cr7,ffc1e028 <write+0x6c>              
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
ffc1e004:	71 2a 00 04 	andi.   r10,r9,4                               
ffc1e008:	41 82 00 34 	beq-    ffc1e03c <write+0x80>                  
                                                                      
  /*                                                                  
   *  Now process the write() request.                                
   */                                                                 
  return (*iop->pathinfo.handlers->write_h)( iop, buffer, count );    
ffc1e00c:	81 23 00 24 	lwz     r9,36(r3)                              
}                                                                     
ffc1e010:	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 );    
ffc1e014:	81 29 00 0c 	lwz     r9,12(r9)                              
}                                                                     
ffc1e018:	7c 08 03 a6 	mtlr    r0                                     
ffc1e01c:	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 );    
ffc1e020:	7d 29 03 a6 	mtctr   r9                                     
ffc1e024:	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 );                                   
ffc1e028:	38 60 00 00 	li      r3,0                                   
                                                                      
  /*                                                                  
   *  Now process the write() request.                                
   */                                                                 
  return (*iop->pathinfo.handlers->write_h)( iop, buffer, count );    
}                                                                     
ffc1e02c:	80 01 00 0c 	lwz     r0,12(r1)                              
ffc1e030:	38 21 00 08 	addi    r1,r1,8                                
ffc1e034:	7c 08 03 a6 	mtlr    r0                                     
ffc1e038:	4e 80 00 20 	blr                                            
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
  rtems_libio_check_buffer( buffer );                                 
  rtems_libio_check_count( count );                                   
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
ffc1e03c:	4b ff 50 3d 	bl      ffc13078 <__errno>                     
ffc1e040:	39 20 00 09 	li      r9,9                                   
ffc1e044:	91 23 00 00 	stw     r9,0(r3)                               
ffc1e048:	38 60 ff ff 	li      r3,-1                                  
ffc1e04c:	4b ff ff e0 	b       ffc1e02c <write+0x70>                  
  rtems_libio_t     *iop;                                             
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
  rtems_libio_check_buffer( buffer );                                 
ffc1e050:	4b ff 50 29 	bl      ffc13078 <__errno>                     <== NOT EXECUTED
ffc1e054:	39 20 00 16 	li      r9,22                                  <== NOT EXECUTED
ffc1e058:	91 23 00 00 	stw     r9,0(r3)                               <== NOT EXECUTED
ffc1e05c:	38 60 ff ff 	li      r3,-1                                  <== NOT EXECUTED
ffc1e060:	4b ff ff cc 	b       ffc1e02c <write+0x70>                  <== NOT EXECUTED
                                                                      

ffc09f48 <writev>: int bytes; rtems_libio_t *iop; ssize_t old; bool all_zeros; rtems_libio_check_fd( fd );
ffc09f48:	3d 20 00 00 	lis     r9,0                                   
ssize_t writev(                                                       
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
ffc09f4c:	94 21 ff e8 	stwu    r1,-24(r1)                             
ffc09f50:	7c 08 02 a6 	mflr    r0                                     
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  ssize_t        old;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc09f54:	81 29 27 78 	lwz     r9,10104(r9)                           
ssize_t writev(                                                       
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
ffc09f58:	90 01 00 1c 	stw     r0,28(r1)                              
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  ssize_t        old;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc09f5c:	7f 83 48 40 	cmplw   cr7,r3,r9                              
ssize_t writev(                                                       
  int                 fd,                                             
  const struct iovec *iov,                                            
  int                 iovcnt                                          
)                                                                     
{                                                                     
ffc09f60:	93 81 00 08 	stw     r28,8(r1)                              
ffc09f64:	93 a1 00 0c 	stw     r29,12(r1)                             
ffc09f68:	93 c1 00 10 	stw     r30,16(r1)                             
ffc09f6c:	93 e1 00 14 	stw     r31,20(r1)                             
  int            bytes;                                               
  rtems_libio_t *iop;                                                 
  ssize_t        old;                                                 
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
ffc09f70:	40 9c 01 38 	bge-    cr7,ffc0a0a8 <writev+0x160>            
  iop = rtems_libio_iop( fd );                                        
ffc09f74:	3d 20 00 00 	lis     r9,0                                   
ffc09f78:	83 89 28 28 	lwz     r28,10280(r9)                          
ffc09f7c:	1c 63 00 38 	mulli   r3,r3,56                               
ffc09f80:	7f 9c 1a 14 	add     r28,r28,r3                             
  rtems_libio_check_is_open( iop );                                   
ffc09f84:	81 3c 00 10 	lwz     r9,16(r28)                             
ffc09f88:	71 2a 01 00 	andi.   r10,r9,256                             
ffc09f8c:	41 82 01 1c 	beq-    ffc0a0a8 <writev+0x160>                
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
ffc09f90:	71 2a 00 04 	andi.   r10,r9,4                               
ffc09f94:	41 82 01 14 	beq-    ffc0a0a8 <writev+0x160>                <== NEVER TAKEN
                                                                      
  /*                                                                  
   *  Argument validation on IO vector                                
   */                                                                 
  if ( !iov )                                                         
ffc09f98:	2f 84 00 00 	cmpwi   cr7,r4,0                               
ffc09f9c:	41 9e 00 d8 	beq-    cr7,ffc0a074 <writev+0x12c>            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt <= 0 )                                                  
ffc09fa0:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc09fa4:	40 9d 00 d0 	ble-    cr7,ffc0a074 <writev+0x12c>            
    rtems_set_errno_and_return_minus_one( EINVAL );                   
                                                                      
  if ( iovcnt > IOV_MAX )                                             
ffc09fa8:	2f 85 04 00 	cmpwi   cr7,r5,1024                            
ffc09fac:	41 9d 00 c8 	bgt-    cr7,ffc0a074 <writev+0x12c>            <== NEVER TAKEN
#include <sys/uio.h>                                                  
                                                                      
#include <rtems/libio_.h>                                             
#include <rtems/seterr.h>                                             
                                                                      
ssize_t writev(                                                       
ffc09fb0:	54 be 18 38 	rlwinm  r30,r5,3,0,28                          
ffc09fb4:	39 1e ff f8 	addi    r8,r30,-8                              
ffc09fb8:	55 08 e8 fe 	rlwinm  r8,r8,29,3,31                          
ffc09fbc:	39 08 00 01 	addi    r8,r8,1                                
ffc09fc0:	7d 09 03 a6 	mtctr   r8                                     
ffc09fc4:	7c 9f 23 78 	mr      r31,r4                                 
ffc09fc8:	7c 89 23 78 	mr      r9,r4                                  
ffc09fcc:	38 c0 00 01 	li      r6,1                                   
ffc09fd0:	39 40 00 00 	li      r10,0                                  
ffc09fd4:	7f c4 f2 14 	add     r30,r4,r30                             
                                                                      
    /*                                                                
     *  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 )                                       
ffc09fd8:	81 09 00 00 	lwz     r8,0(r9)                               
ffc09fdc:	2f 88 00 00 	cmpwi   cr7,r8,0                               
ffc09fe0:	41 9e 00 94 	beq-    cr7,ffc0a074 <writev+0x12c>            
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
ffc09fe4:	80 e9 00 04 	lwz     r7,4(r9)                               
ffc09fe8:	39 29 00 08 	addi    r9,r9,8                                
      all_zeros = false;                                              
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
ffc09fec:	7d 07 52 14 	add     r8,r7,r10                              
    if ( total < old || total > SSIZE_MAX )                           
ffc09ff0:	7f 88 50 00 	cmpw    cr7,r8,r10                             
     */                                                               
    if ( iov[v].iov_base == 0 )                                       
      rtems_set_errno_and_return_minus_one( EINVAL );                 
                                                                      
    if ( iov[v].iov_len )                                             
      all_zeros = false;                                              
ffc09ff4:	30 e7 ff ff 	addic   r7,r7,-1                               
ffc09ff8:	7c e7 39 10 	subfe   r7,r7,r7                               
ffc09ffc:	7c c6 38 38 	and     r6,r6,r7                               
   *  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++ ) {                    
ffc0a000:	7d 0a 43 78 	mr      r10,r8                                 
      all_zeros = false;                                              
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old || total > SSIZE_MAX )                           
ffc0a004:	41 9c 00 70 	blt-    cr7,ffc0a074 <writev+0x12c>            
   *  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++ ) {                    
ffc0a008:	42 00 ff d0 	bdnz+   ffc09fd8 <writev+0x90>                 
  }                                                                   
                                                                      
  /*                                                                  
   * A writev with all zeros is supposed to have no effect per OpenGroup.
   */                                                                 
  if ( all_zeros == true ) {                                          
ffc0a00c:	2f 86 00 00 	cmpwi   cr7,r6,0                               
    return 0;                                                         
ffc0a010:	3b a0 00 00 	li      r29,0                                  
  }                                                                   
                                                                      
  /*                                                                  
   * A writev with all zeros is supposed to have no effect per OpenGroup.
   */                                                                 
  if ( all_zeros == true ) {                                          
ffc0a014:	40 9e 00 70 	bne-    cr7,ffc0a084 <writev+0x13c>            
  /*                                                                  
   *  Now process the writev().                                       
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
    /* all zero lengths has no effect */                              
    if ( iov[v].iov_len == 0 )                                        
ffc0a018:	80 bf 00 04 	lwz     r5,4(r31)                              
ffc0a01c:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc0a020:	40 9e 00 1c 	bne-    cr7,ffc0a03c <writev+0xf4>             <== ALWAYS TAKEN
ffc0a024:	3b ff 00 08 	addi    r31,r31,8                              
  }                                                                   
                                                                      
  /*                                                                  
   *  Now process the writev().                                       
   */                                                                 
  for ( total=0, v=0 ; v < iovcnt ; v++ ) {                           
ffc0a028:	7f 9f f0 00 	cmpw    cr7,r31,r30                            
ffc0a02c:	41 9e 00 58 	beq-    cr7,ffc0a084 <writev+0x13c>            
    /* all zero lengths has no effect */                              
    if ( iov[v].iov_len == 0 )                                        
ffc0a030:	80 bf 00 04 	lwz     r5,4(r31)                              
ffc0a034:	2f 85 00 00 	cmpwi   cr7,r5,0                               
ffc0a038:	41 9e ff ec 	beq+    cr7,ffc0a024 <writev+0xdc>             <== NEVER TAKEN
      continue;                                                       
                                                                      
    bytes = (*iop->pathinfo.handlers->write_h)(                       
ffc0a03c:	81 3c 00 24 	lwz     r9,36(r28)                             
ffc0a040:	7f 83 e3 78 	mr      r3,r28                                 
ffc0a044:	80 9f 00 00 	lwz     r4,0(r31)                              
ffc0a048:	81 29 00 0c 	lwz     r9,12(r9)                              
ffc0a04c:	7d 29 03 a6 	mtctr   r9                                     
ffc0a050:	4e 80 04 21 	bctrl                                          
      iop,                                                            
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
ffc0a054:	2c 03 00 00 	cmpwi   r3,0                                   
ffc0a058:	41 80 00 64 	blt-    ffc0a0bc <writev+0x174>                <== NEVER TAKEN
      return -1;                                                      
                                                                      
    if ( bytes > 0 ) {                                                
ffc0a05c:	41 82 00 08 	beq-    ffc0a064 <writev+0x11c>                <== NEVER TAKEN
      total       += bytes;                                           
ffc0a060:	7f bd 1a 14 	add     r29,r29,r3                             
    }                                                                 
                                                                      
    if (bytes != iov[ v ].iov_len)                                    
ffc0a064:	81 3f 00 04 	lwz     r9,4(r31)                              
ffc0a068:	7f 83 48 00 	cmpw    cr7,r3,r9                              
ffc0a06c:	41 9e ff b8 	beq+    cr7,ffc0a024 <writev+0xdc>             <== ALWAYS TAKEN
ffc0a070:	48 00 00 14 	b       ffc0a084 <writev+0x13c>                <== NOT EXECUTED
                                                                      
    /* check for wrap */                                              
    old    = total;                                                   
    total += iov[v].iov_len;                                          
    if ( total < old || total > SSIZE_MAX )                           
      rtems_set_errno_and_return_minus_one( EINVAL );                 
ffc0a074:	48 00 99 ed 	bl      ffc13a60 <__errno>                     
ffc0a078:	39 20 00 16 	li      r9,22                                  
ffc0a07c:	91 23 00 00 	stw     r9,0(r3)                               
ffc0a080:	3b a0 ff ff 	li      r29,-1                                 
    if (bytes != iov[ v ].iov_len)                                    
      break;                                                          
  }                                                                   
                                                                      
  return total;                                                       
}                                                                     
ffc0a084:	80 01 00 1c 	lwz     r0,28(r1)                              
ffc0a088:	7f a3 eb 78 	mr      r3,r29                                 
ffc0a08c:	83 81 00 08 	lwz     r28,8(r1)                              
ffc0a090:	7c 08 03 a6 	mtlr    r0                                     
ffc0a094:	83 a1 00 0c 	lwz     r29,12(r1)                             
ffc0a098:	83 c1 00 10 	lwz     r30,16(r1)                             
ffc0a09c:	83 e1 00 14 	lwz     r31,20(r1)                             
ffc0a0a0:	38 21 00 18 	addi    r1,r1,24                               
ffc0a0a4:	4e 80 00 20 	blr                                            
  bool           all_zeros;                                           
                                                                      
  rtems_libio_check_fd( fd );                                         
  iop = rtems_libio_iop( fd );                                        
  rtems_libio_check_is_open( iop );                                   
  rtems_libio_check_permissions_with_error( iop, LIBIO_FLAGS_WRITE, EBADF );
ffc0a0a8:	48 00 99 b9 	bl      ffc13a60 <__errno>                     
ffc0a0ac:	39 20 00 09 	li      r9,9                                   
ffc0a0b0:	91 23 00 00 	stw     r9,0(r3)                               
ffc0a0b4:	3b a0 ff ff 	li      r29,-1                                 
ffc0a0b8:	4b ff ff cc 	b       ffc0a084 <writev+0x13c>                
      iov[v].iov_base,                                                
      iov[v].iov_len                                                  
    );                                                                
                                                                      
    if ( bytes < 0 )                                                  
      return -1;                                                      
ffc0a0bc:	3b a0 ff ff 	li      r29,-1                                 <== NOT EXECUTED
ffc0a0c0:	4b ff ff c4 	b       ffc0a084 <writev+0x13c>                <== NOT EXECUTED